574a1a300d1b7f2a4f24b91ef9f7209784d847e2
[gnulib.git] / ChangeLog
1 2010-07-31  Bruno Haible  <bruno@clisp.org>
2
3         copysign: Does not require -lm on glibc systems.
4         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
5         gl_COMMON_DOUBLE_MATHFUNC.
6         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
7
8 2010-07-31  Bruno Haible  <bruno@clisp.org>
9
10         duplocale: Work around AIX 7.1 bug.
11         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
12         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
13         * lib/duplocale.c (rpl_duplocale): Update comment.
14         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
15         Reported by Rainer Tammer.
16
17 2010-07-30  Bruno Haible  <bruno@clisp.org>
18
19         dirfd: Avoid link error on AIX 7.1.
20         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
21         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
22         exist, set REPLACE_DIRFD.
23         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
24         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
25         * doc/posix-functions/dirfd.texi: Update.
26         Reported by Rainer Tammer.
27
28 2010-07-30  Eric Blake  <eblake@redhat.com>
29
30         strtod: next round of AIX fixes
31         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
32         exponent.
33         * tests/test-strtod.c (main): Enhance tests.
34         * doc/posix-functions/strtod.texi (strtod): Document next bug.
35         Reported by Rainer Tammer.
36
37         futimens: fix configure check
38         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
39         Reported by Bruno Haible.
40
41 2010-07-30  Bruno Haible  <bruno@clisp.org>
42
43         getline: Update regarding AIX.
44         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
45         Reported by Rainer Tammer.
46
47 2010-07-30  Bruno Haible  <bruno@clisp.org>
48
49         wcwidth: Drop replacement on AIX 7.
50         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
51         AIX 7.
52         Reported by Rainer Tammer.
53
54 2010-07-30  Bruno Haible  <bruno@clisp.org>
55
56         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
57         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
58         a 'char *'.
59         Reported by Rainer Tammer.
60
61 2010-07-30  Bruno Haible  <bruno@clisp.org>
62
63         unlink: Update regarding AIX.
64         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
65         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
66         Reported by Rainer Tammer.
67
68 2010-07-30  Bruno Haible  <bruno@clisp.org>
69
70         symlink: Update regarding AIX.
71         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
72         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
73         Reported by Rainer Tammer.
74
75 2010-07-30  Bruno Haible  <bruno@clisp.org>
76
77         strndup: Update regarding AIX.
78         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
79         AIX 7.
80         Reported by Rainer Tammer.
81
82 2010-07-30  Bruno Haible  <bruno@clisp.org>
83
84         stat: Update regarding AIX.
85         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
86         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
87         Reported by Rainer Tammer.
88
89 2010-07-30  Bruno Haible  <bruno@clisp.org>
90
91         truncl: Fix autoconf test.
92         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
93         whether truncl works.
94         Reported by Rainer Tammer.
95
96 2010-07-30  Bruno Haible  <bruno@clisp.org>
97
98         round: Update regarding AIX.
99         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
100         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
101         Reported by Rainer Tammer.
102
103 2010-07-30  Bruno Haible  <bruno@clisp.org>
104
105         rename: Update regarding AIX.
106         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
107         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
108         Reported by Rainer Tammer.
109
110 2010-07-30  Bruno Haible  <bruno@clisp.org>
111
112         printf.m4: Update regarding AIX.
113         * m4/printf.m4: Update comments regarding AIX.
114         Reported by Rainer Tammer.
115
116 2010-07-30  Bruno Haible  <bruno@clisp.org>
117
118         iconv: Update regarding AIX.
119         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
120         AIX 7.
121         Reported by Rainer Tammer.
122
123 2010-07-30  Bruno Haible  <bruno@clisp.org>
124
125         getopt: Update regarding AIX.
126         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
127         no on AIX.
128         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
129         Reported by Rainer Tammer.
130
131 2010-07-30  Bruno Haible  <bruno@clisp.org>
132
133         ldexpl; Update regarding AIX.
134         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
135         on AIX 7.
136         Reported by Rainer Tammer.
137
138 2010-07-30  Bruno Haible  <bruno@clisp.org>
139
140         frexpl: Update regarding AIX.
141         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
142         on AIX 7.
143         Reported by Rainer Tammer.
144
145 2010-07-30  Bruno Haible  <bruno@clisp.org>
146
147         open, fopen: Update regarding AIX.
148         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
149         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
150         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
151         * doc/posix-functions/fopen.texi: Likewise.
152         Reported by Rainer Tammer.
153
154 2010-07-30  Bruno Haible  <bruno@clisp.org>
155
156         chown: Update doc regarding AIX.
157         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
158         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
159         Reported by Rainer Tammer.
160
161 2010-07-30  Eric Blake  <eblake@redhat.com>
162
163         strtod: fix bug in replacement function on AIX
164         * lib/strtod.c (strtod): Special case broken "0x" parse in
165         underlying strtod.
166         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
167         * doc/posix-functions/strtod.texi (strtod): Likewise.
168         Reported by Rainer Tammer.
169
170 2010-07-30  Bruno Haible  <bruno@clisp.org>
171
172         mbrlen: Fix cross-compilation guess for AIX.
173         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
174         guess. Leftover from 2008-12-22.
175
176 2010-07-30  Bruno Haible  <bruno@clisp.org>
177
178         mbrtowc: Fix cross-compilation guess for AIX.
179         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
180         guess. Leftover from 2008-12-21.
181
182 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
183
184         init.sh: work around trap limitation of some shells
185         * tests/init.sh (setup_): Move exit trap outside of shell function.
186
187 2010-07-29  Eric Blake  <eblake@redhat.com>
188
189         strtod: aid debugging
190         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
191         understanding why strtod is rejected.
192
193 2010-07-28  Bruno Haible  <bruno@clisp.org>
194
195         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
196         * lib/unistr/u8-chr.c: Include <string.h>.
197         * tests/unistr/test-u8-chr.c: Likewise.
198         * tests/unistr/test-u16-chr.c: Likewise.
199         * tests/unistr/test-u32-chr.c: Likewise.
200         * tests/unistr/test-u8-strchr.c: Likewise.
201         * tests/unistr/test-u16-strchr.c: Likewise.
202         * tests/unistr/test-u32-strchr.c: Likewise.
203         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
204         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
205         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
206         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
207
208 2010-07-28  Bruno Haible  <bruno@clisp.org>
209
210         Use spaces for indentation, not tabs.
211         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
212
213 2010-07-27  Bruno Haible  <bruno@clisp.org>
214
215         mbspcasecmp: Fix function specification.
216         * lib/string.in.h (mbspcasecmp): Fix specification comment.
217         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
218         Reported by Eric Blake <eblake@redhat.com>.
219
220 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
221
222         timespec: use cast and not conditional, as truncation isn't possible
223         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
224         instead of a conditional.  Comment about the situation in more detail.
225         This undoes most of the 2009-10-29 patch.
226
227 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
228
229         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
230         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
231         * lib/unistr/u8-strchr.c: Likewise.
232         * modules/unistr/u8-chr: Depend on memchr.
233
234         unistr/u*-strchr: add tests
235         * modules/unistr/u8-strchr-tests: New file.
236         * modules/unistr/u16-strchr-tests: New file.
237         * modules/unistr/u32-strchr-tests: New file.
238         * tests/unistr/test-strchr.h: New file.
239         * tests/unistr/test-u8-strchr.c: New file.
240         * tests/unistr/test-u16-strchr.c: New file.
241         * tests/unistr/test-u32-strchr.c: New file.
242
243         unistr/u*-chr: test multibyte sequences more
244         * tests/unistr/test-chr.h: Do complete testing of the characters in the
245         test vector.
246         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
247         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
248         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
249
250         unistr/u*-chr: test multibyte sequences
251         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
252
253         unistr/u*-chr: prepare for multibyte tests
254         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
255         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
256         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
257         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
258         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
259         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
260
261 2010-07-18  Bruno Haible  <bruno@clisp.org>
262
263         unistr/u8-strchr: Optimize non-ASCII argument case.
264         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
265         because the first byte often matches anyway.
266         Reported by Pádraig Brady <P@draigbrady.com>.
267
268 2010-07-15  Karl Berry  <karl@gnu.org>
269
270         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
271
272 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
273
274         getcwd: on Solaris, work better if ancestors are inaccessible
275         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
276         buffer and size, try again with a large buffer.  This works better
277         on Solaris, since its getcwd succeeds even if the path to the root
278         is inaccessible, and this is helpful in common cases such as .zfs
279         hidden directories.  Problem reported by J Chapman Flack in
280         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
281         Use system getcwd if it's declared, not merely if it's partly
282         working; use the partly-working test only to avoid needless effort
283         if the system getcwd fails.
284         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
285         comment that was already obsolete and is now even more obsolete.
286         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
287         now might call strdup.
288
289 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
290
291         pthread: Add enough so that coreutils/src/sort.c compiles.
292         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
293         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
294         gnulib. Include <sched.h> and <time.h>, as per POSIX.
295         Include <sys/types.h>, in case it defines pthread_t.
296         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
297         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
298         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
299         (pthread_rwlockattr_t, pthread_spinlock_t):
300         New typedefs, if HAVE_PTHREAD_T is not defined.
301         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
302         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
303         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
304         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
305         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
306         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
307         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
308         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
309         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
310         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
311         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
312         New macros.
313         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
314         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
315         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
316         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
317         (pthread_spin_unlock): New dummy functions.
318         (pthread_create): Return EAGAIN; don't set errno.
319         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
320         require AC_C_INLINE.
321         * modules/pthread (Depends-on): Add sched, time.
322         (pthread.h): Use AM_V_GEN.
323
324 2010-07-13  Bruno Haible  <bruno@clisp.org>
325
326         striconveh: Don't malloc memory if the result buffer is sufficient.
327         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
328         buffer if its size is sufficient.
329         Reported by Ludovic Courtès <ludo@gnu.org>.
330
331 2010-07-13  Bruno Haible  <bruno@clisp.org>
332
333         strtod: Add safety check.
334         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
335
336 2010-07-12  Bruno Haible  <bruno@clisp.org>
337
338         Unify tests that set gl_cv_func_ldexpl_no_libm.
339         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
340         gl_FUNC_LDEXPL.
341         (gl_FUNC_LDEXPL): Invoke it.
342         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
343
344 2010-07-12  Bruno Haible  <bruno@clisp.org>
345
346         Unify tests that set gl_cv_func_ldexp_no_libm.
347         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
348         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
349         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
350         (configure.ac): Simply invoke gl_FUNC_LDEXP.
351         * modules/strtod (Files): Add m4/ldexp.m4.
352
353 2010-07-12  Bruno Haible  <bruno@clisp.org>
354
355         Unify tests that set gl_cv_func_frexpl_no_libm.
356         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
357         gl_FUNC_FREXPL_NO_LIBM.
358         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
359         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
360
361 2010-07-12  Bruno Haible  <bruno@clisp.org>
362
363         Unify tests that set gl_cv_func_frexp_no_libm.
364         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
365         gl_FUNC_FREXP_NO_LIBM.
366         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
367         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
368
369 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
370
371         memcoll: clarify sizes versus lengths, document better, and tweak perf
372         * lib/memcoll.c (strcoll_loop, memcoll0):
373         Improve quality of descriptive comments.  Name variables
374         consistently as to whether they are lengths (which do not include
375         terminating null) versus sizes (which do).
376         * lib/xmemcoll.c (xmemcoll0): Likewise.
377         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
378         returned when s1size == 0; this is easier to compile and saves
379         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
380
381 2010-07-12  Bruno Haible  <bruno@clisp.org>
382
383         Tests for module '_Exit'.
384         * modules/_Exit-tests: New file.
385         * tests/test-_Exit.sh: New file.
386         * tests/test-_Exit.c: New file.
387
388         New module '_Exit'.
389         * lib/stdlib.in.h (__attribute__): New macro.
390         (_Exit): New declaration.
391         * lib/_Exit.c: New file.
392         * m4/_Exit.m4: New file.
393         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
394         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
395         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
396         * modules/_Exit: New file.
397         * tests/test-stdlib-c++.cc (_Exit): Check signature.
398         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
399
400 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
401
402         strtod: make it more-accurate typically, and don't require libm
403         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
404         Include limits.h.  Don't include string.h.
405         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
406         (locale_isspace): New function, so that no casts are needed to
407         check whether *s is a space.
408         (ldexp): Provide an unused dummy if not available.
409         (scale_radix_exp, parse_number, underlying_strtod): New functions.
410         (strtod): Use them.  This implementation prefers to use the
411         underlying strtod if available, falling back on our own code
412         only to fix known bugs.  This is more likely to produce an
413         accurate result.  Also, it avoids the use of libm functions.
414         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
415         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
416         was absent, but it caused a test failure with coreutils.
417         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
418         with libm.
419         * modules/strtod (Makefile.am, Link): libm is no longer needed.
420         * modules/strtod-tests (Makefile.am): Likewise.
421
422 2010-07-11  Pádraig Brady  <P@draigBrady.com>
423             Bruno Haible  <bruno@clisp.org>
424
425         unistr/u8-strchr: Optimize ASCII argument case.
426         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
427
428 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
429
430         (x)memcoll: minor tweaks
431         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
432         is after the type that it qualifies.
433         (memcoll0): Likewise.
434         * lib/memcoll.h (memcoll0): Likewise.
435         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
436         * lib/xmemcoll.h (xmemcoll0): Likewise.
437         * lib/memcoll.c (memcoll0): Correct the comment.  This function
438         differs from memcoll in that the NUL byte is part of the argument.
439         Omit the abort-checks, as performance is a real issue here.  Plus,
440         the checks were wrong anyway (an off-by-one error).  Omit local
441         variable 'diff', as it's a bit clearer that way.
442         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
443         no longer needed.
444
445 2010-07-08  Chen Guo <chenguo4@yahoo.com>
446
447         (x)memcoll: speedup when input is known to be NUL delimited
448         * lib/memcoll.c: Include stdlib.
449         (memcoll0) New function.
450         (strcoll_loop) New function, refactored for use in both memcoll
451         and memcoll0.
452         * lib/memcoll.h: Add prototype for memcoll0.
453         * lib/xmemcoll.c: (xmemcoll0) New function.
454         (collate_error) New function, refactored for use in both xmemcoll
455         and xmemcoll0.
456         * lib/xmemcoll.h: Add prototype for xmemcoll0.
457         * m4/memcoll.m4: add inline invocation.
458
459 2010-07-06  Pádraig Brady  <P@draigBrady.com>
460
461         * build-aux/bootstrap: Remove any local translations
462         from the translation project synchronization directory,
463         so that local only translations are not distributed.
464
465 2010-07-04  Bruno Haible  <bruno@clisp.org>
466
467         fsusage: Clarify which code applies to which platforms.
468         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
469         platform.
470         * lib/fsusage.c (get_fs_usage): Likewise.
471
472 2010-07-04  Bruno Haible  <bruno@clisp.org>
473
474         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
475         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
476         Reported by Martin Lambers <marlam@marlam.de>.
477
478 2010-07-04  Jim Meyering  <meyering@redhat.com>
479
480         hash: once again explicitly disallow insertion of NULL
481         * lib/hash.c (hash_insert0): Reinstate just-removed test:
482         inserting a NULL pointer cannot work with these functions.
483         Add a comment with details.
484         This reverts part of the 2010-07-01 commit, 5bef1a35
485         "hash: extend module to deal with non-pointer keys".
486
487 2010-07-01  Bruno Haible  <bruno@clisp.org>
488
489         stdbool: Update doc.
490         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
491         Info from Christian Weisgerber <naddy@mips.inka.de>.
492
493 2010-07-01  Jim Meyering  <meyering@redhat.com>
494
495         hash: extend module to deal with non-pointer keys
496         * lib/hash.c (hash_insert0): New interface, much like hash_insert
497         but that allows insertion of non-pointer entries.
498         Do not disallow an ENTRY value of NULL.
499         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
500         * lib/hash.h (hash_insert0): Declare.
501
502 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
503
504         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
505         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
506         not present (i.e. with autoconf 2.59 and when using gettextize, not
507         gnulib), require AC_GNU_SOURCE instead.
508
509 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
510
511         idpriv-drop: Fix tests.
512         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
513         not to the test-idpriv-droptemp program.
514
515 2010-06-29  Bruno Haible  <bruno@clisp.org>
516
517         string: Fix syntax error with g++ 2.96.
518         * lib/string.in.h (__pure__): Remove definition.
519         (_GL_ATTRIBUTE_PURE): New macro.
520         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
521         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
522         Reported by Christian Weisgerber <naddy@mips.inka.de>.
523
524 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
525
526         unitypes: Fix bug introduced on 2010-05-18.
527         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
528
529 2010-06-22  Eric Blake  <eblake@redhat.com>
530
531         memmem: slight optimization
532         * lib/str-two-way.h (critical_factorization): Update comments.
533         Reduce work during factorization phase.
534         Reported by Carlos Bueno <carlos@bueno.org>.
535
536 2010-06-21  Bruno Haible  <bruno@clisp.org>
537
538         Fix HAVE_CALLOC_POSIX misnomer.
539         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
540         !HAVE_CALLOC_POSIX.
541         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
542         HAVE_CALLOC_POSIX.
543         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
544         instead of HAVE_CALLOC_POSIX.
545         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
546         HAVE_CALLOC_POSIX.
547
548         Use modern idiom for calloc() replacement.
549         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
550         AC_FUNC_CALLOC.
551         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
552         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
553         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
554         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
555         (gl_REPLACE_CALLOC): New macro.
556
557 2010-06-21  Bruno Haible  <bruno@clisp.org>
558
559         Fix HAVE_REALLOC_POSIX misnomer.
560         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
561         !HAVE_REALLOC_POSIX.
562         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
563         HAVE_REALLOC_POSIX.
564         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
565         instead of HAVE_REALLOC_POSIX.
566         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
567         HAVE_REALLOC_POSIX.
568
569         Use modern idiom for realloc() replacement.
570         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
571         AC_FUNC_REALLOC.
572         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
573         Autoconf's AC_FUNC_REALLOC.
574         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
575         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
576         (gl_REPLACE_REALLOC): New macro.
577         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
578
579 2010-06-21  Bruno Haible  <bruno@clisp.org>
580
581         Fix HAVE_MALLOC_POSIX misnomer.
582         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
583         !HAVE_MALLOC_POSIX.
584         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
585         HAVE_MALLOC_POSIX.
586         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
587         instead of HAVE_MALLOC_POSIX.
588         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
589         HAVE_MALLOC_POSIX.
590
591         Use modern idiom for malloc() replacement.
592         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
593         AC_FUNC_MALLOC.
594         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
595         Autoconf's AC_FUNC_MALLOC.
596         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
597         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
598         (gl_REPLACE_MALLOC): New macro.
599         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
600
601 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
602
603         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
604         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
605         This macro takes 3 arguments, not 4.
606
607 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
608
609         ipv6: fix detection under mingw
610         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
611         in6_addr.
612
613 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
614
615         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
616         that strtod() works when cross-compiling to a glibc version known
617         to work.
618
619 2010-06-15  Bruno Haible  <bruno@clisp.org>
620
621         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
622
623 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
624
625         select: Correct timeout.
626         * lib/select.c (rpl_select): Compute wait_timeout correctly.
627
628 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
629
630         git-version-gen: init shell var to avoid env var influence
631         * build-aux/git-version-gen (v): Init shell var to empty.
632
633 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
634
635         priv-set: Don't assume that priv.h exists merely because getppriv does.
636         See Jan Andersen's bug report about AIX 5L in
637         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
638         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
639         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
640         * lib/priv-set.h: Likewise.
641         * tests/test-priv-set.c: Likewise.
642
643 2010-06-13  Bruno Haible  <bruno@clisp.org>
644
645         relocatable: Make it easier to test whether to install wrappers.
646         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
647         RELOCATABLE_VIA_WRAPPER.
648
649 2010-06-13  Bruno Haible  <bruno@clisp.org>
650
651         gnulib-tool: Display specified modules and dependencies differently.
652         * gnulib-tool (func_show_module_list): New function.
653         (func_import, func_create_testdir): Invoke it.
654         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
655
656 2010-06-13  Bruno Haible  <bruno@clisp.org>
657
658         gnulib-tool: Align code of func_import and func_create_testdir.
659         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
660         specified_modules.
661
662 2010-06-12  Jim Meyering  <meyering@redhat.com>
663
664         test-inttostr: avoid spurious failure on Solaris 9
665         * tests/test-inttostr.c (main): Skip the test when snprintf fails
666         to accept "%ju".  Reported by Bruno Haible.
667
668 2010-06-11  Jim Meyering  <meyering@redhat.com>
669
670         test-sys_socket: mark variables as used more readably
671         * tests/test-sys_socket.c (main): Mark otherwise unused variables
672         as "used" explicitly via (void) statement casts.  This is more
673         readable than using them in an artificial return expression.
674         Suggestion from Bruno Haible.
675
676 2010-06-11  Bruno Haible  <bruno@clisp.org>
677
678         Avoid some more warnings from "gcc -Wwrite-strings".
679         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
680         to 'const char *'.
681         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
682         * tests/test-c-strcasestr.c (main): Likewise.
683         * tests/test-mbscasestr1.c (main): Likewise.
684         * tests/test-mbscasestr2.c (main): Likewise.
685         * tests/test-memmem.c (main): Likewise.
686         * tests/test-strstr.c (main): Likewise.
687         * tests/test-strcasestr.c (main): Likewise.
688
689 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
690
691         init.sh: change framework_failure_ to fail with status 99, not 1
692         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
693         automake's parallel-tests rule that this is an unexpected failure,
694         even if the test is listed in XFAIL_TESTS.
695
696 2010-06-11  Jim Meyering  <meyering@redhat.com>
697
698         test-inttostr: avoid warnings about 4-6KB literal strings
699         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
700         Include "macros.h", for its definition of ASSERT.
701         (CK): s/assert/ASSERT/
702         * modules/inttostr-tests (Files): Add macros.h.
703
704         init.sh: don't use $ME_ or skip_ before they are defined
705         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
706         their first uses.  Also hoist their companions: warn_, fail_,
707         framework_failure_, $stderr_fileno.  Prompted by a patch from
708         Stefano Lattarini.
709
710         test-sys_socket: avoid set-but-not-used warnings from gcc
711         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
712         avoid warning about set-but-not-used variables.
713
714         test-xvasprintf: avoid 'const' discard warnings
715         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
716         "const" when assigning from literal strings.
717         (test_xasprintf): Add "void" in function argument list to placate
718         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
719
720         tests: avoid compilation warnings in argmatch and exclude tests...
721         in packages that define ARGMATCH_DIE_DECL, like coreutils.
722         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
723         Since it always exits, declare with the "noreturn" attribute.
724         * tests/test-argmatch.c: Likewise.
725
726         tests: avoid 'const' discard warnings in mbsstr tests
727         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
728         * tests/test-mbsstr2.c (main): Likewise.
729
730         test-verify: avoid warning from gcc's -Wmissing-declarations
731         * tests/test-verify.c (function): Declare to be static.
732
733         test-inttostr.c: include <string.h> for use of strcmp
734         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
735
736         test-linkat: avoid failed assertion on "other" architectures
737         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
738         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
739         sparc: https://bugs.launchpad.net/bugs/591968
740
741 2010-06-11  Jim Meyering  <meyering@redhat.com>
742
743         printf.m4: avoid autoconf's "Expanded Before Required" warning
744         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
745         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
746         autoconf warning.
747
748 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
749
750         Replacement header templates are now named with ".in", not "_".
751         * doc/gnulib-intro.texi: Correct.
752
753 2010-06-10  Jim Meyering  <meyering@redhat.com>
754
755         inttostr-tests: depend on snprintf, not snprintf-posix
756         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
757         snprintf-posix, to avoid this aclocal failure:
758           missing file gnulib-tests/vasnprintf.c
759           configure.ac:45: error: expected source file, required through \
760           AC_LIBSOURCES, not found
761
762 2010-06-10  Jim Meyering  <meyering@redhat.com>
763
764         inttostr: add a new function, inttostr, and tests
765         The namesake function was not available.  The existence of the
766         template file, inttostr.c makes its addition nontrivial.
767         * lib/anytostr.c: Rename from inttostr.c.
768         (anytostr): Rename from inttostr.
769         * lib/inttostr.c: New file.
770         * modules/inttostr (Files): Add anytostr.c.
771         (Makefile.am): Set lib_SOURCES instead of ...
772         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
773         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
774         * lib/offtostr.c: Likewise.
775         * lib/uinttostr.c: Likewise.
776         * lib/umaxtostr.c: Likewise.
777         * modules/inttostr-tests: New file.
778         * tests/test-inttostr.c: New file.  Test these functions.
779
780 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
781             Bruno Haible  <bruno@clisp.org>
782
783         Add "Extending Gnulib" chapter to manual.
784         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
785         chapter.
786         (Extending Gnulib): New chapter.
787         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
788         chapter.
789
790 2010-06-09  Bruno Haible  <bruno@clisp.org>
791
792         Avoid relocwrapper link errors due to gnulib replacement functions.
793         * lib/areadlink.c: Use the system's malloc, realloc functions.
794         (areadlink): Set errno to ENOMEM explicitly.
795         * modules/areadlink (Depends-on): Remove malloc-posix.
796         Reported by Ben Pfaff <blp@cs.stanford.edu>.
797
798 2010-06-09  Bruno Haible  <bruno@clisp.org>
799
800         Avoid relocwrapper link errors due to gnulib replacement functions.
801         * lib/canonicalize-lgpl.c: Use the system's malloc function.
802         * lib/malloca.c: Likewise.
803         * lib/relocatable.c: Likewise.
804         * lib/progreloc.c: Use the system's malloc, sprintf functions.
805         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
806         * lib/setenv.c: Use the system's malloc, realloc functions.
807         * lib/strerror.c: Use the system's sprintf function.
808         Reported by Ben Pfaff <blp@cs.stanford.edu>.
809
810 2010-06-04  Bruno Haible  <bruno@clisp.org>
811
812         Prefer documented low-level autoconf macro names.
813         * m4/lib-link.m4: Use m4_translit instead of translit.
814         * m4/environ.m4: Likewise.
815         * m4/mathfunc.m4: Likewise.
816         * m4/onceonly.m4: Likewise.
817         * m4/stdint.m4: Likewise.
818         Suggested by Eric Blake.
819
820 2010-06-04  Martin Lambers  <marlam@marlam.de>
821             Bruno Haible  <bruno@clisp.org>
822
823         havelib: Allow library names with '+' characters.
824         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
825         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
826
827 2010-06-09  Bruno Haible  <bruno@clisp.org>
828
829         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
830         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
831         realloc failed.
832
833 2010-06-08  Peter Simons  <simons@cryp.to>
834
835         maint.mk: make the news-check rule more configurable
836         * top/maint.mk (news-check-lines-spec) New variable.
837         (news-check): Use "sed -n 1,10p" in place of "head".
838
839 2010-06-07  Jim Meyering  <meyering@redhat.com>
840
841         do-release-commit-and-tag: fix typo in --help
842         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
843
844         regex: avoid new dead-code warning with gcc-4.6.0
845         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
846         if-block containing a while-loop.  It's been unused for at least
847         5 years.
848
849 2010-06-05  Bruno Haible  <bruno@clisp.org>
850
851         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
852         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
853
854 2010-06-04  Bruno Haible  <bruno@clisp.org>
855
856         Update to GNU gettext 0.18.1.
857         * modules/gettext (configure.ac): Require gettext infrastructure from
858         version 0.18.1.
859
860 2010-06-03  Bruno Haible  <bruno@clisp.org>
861
862         Don't use AC_LIBOBJ with file names in subdirectories.
863         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
864         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
865         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
866         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
867         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
868         gl_LIBUNISTRING_LIBSOURCE.
869         (Makefile.am): Augment lib_SOURCES here, conditionally.
870         * NEWS: Drop requirement for Automake option 'subdir-objects'.
871
872 2010-06-03  Bruno Haible  <bruno@clisp.org>
873
874         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
875         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
876         expansion does not end with a newline.
877         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
878         unnecessary newline.
879
880 2010-06-03  Bruno Haible  <bruno@clisp.org>
881
882         Reduce dependencies.
883         * tests/test-quotearg.h: New file, extracted from
884         tests/test-quotearg.c.
885         * tests/test-quotearg-simple.c: New file, extracted from
886         tests/test-quotearg.c.
887         * tests/test-quotearg.c: Don't include <ctype.h>.
888         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
889         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
890         use_quote_double_quotes, use_quotearg_colon): Moved to
891         tests/test-quotearg.h.
892         (results_g, flag_results, custom_quotes, custom_results): Moved
893         to tests/test-quotearg-simple.c.
894         (main): Moved the part that does not depend on gettext to
895         tests/test-quotearg-simple.c. Return 77 if the test cannot be
896         performed.
897         * modules/quotearg-simple: New file.
898         * modules/quotearg-simple-tests: New file.
899         * modules/quotearg (Depends-on): Add quotearg-simple.
900         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
901         (Files): Add tests/test-quotearg.h.
902         Reported by Paolo Bonzini.
903
904 2010-06-03  Bruno Haible  <bruno@clisp.org>
905
906         Reduce dependencies.
907         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
908
909 2010-06-03  Bruno Haible  <bruno@clisp.org>
910
911         time: Undefine more broken macros.
912         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
913         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
914         Reported by Eric Blake.
915
916 2010-06-03  Bruno Haible  <bruno@clisp.org>
917
918         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
919         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
920         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
921         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
922         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
923         Reported by Ludovic Courtès <ludo@gnu.org>.
924
925 2010-06-02  Eric Blake  <eblake@redhat.com>
926
927         time: work with mingw + pthreads-win32 library
928         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
929         if timespec is defined only in pthread.h.
930         * modules/time (Makefile.am): Substitute it.
931         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
932         <pthread.h>, when needed.
933         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
934         from the library.
935
936 2010-05-31  Bruno Haible  <bruno@clisp.org>
937
938         Avoid expanding two macros in the wrong order.
939         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
940         gl_LIBUNISTRING if it is defined.
941         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
942         autoconf >= 2.64.
943         Reported by Ludovic Courtès <ludo@gnu.org>.
944
945 2010-05-27  Jim Meyering  <meyering@redhat.com>
946
947         maint.mk: also prohibit "#undef" of always-defined symbols
948         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
949         Allow more than one space before the symbol name.
950         (sc_prohibit_always-defined_macros): Use grep's -E, now that
951         the regexp uses alternation.
952
953 2010-05-26  Eric Blake  <eblake@redhat.com>
954
955         maint.mk: avoid echo -e
956         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
957         Convert all uses of echo -* to printf.
958         Reported by Matthias Bolte.
959
960 2010-05-25  Bruno Haible  <bruno@clisp.org>
961
962         Update to GNU gettext 0.18, part 2.
963         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
964         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
965
966 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
967
968         Add missing include in test-pwrite.c.
969         * tests/test-pwrite.c: Include string.h, for strcmp.
970
971 2010-05-24  Bruno Haible  <bruno@clisp.org>
972
973         * NEWS: Mention requirement for Automake option 'subdir-objects'.
974
975 2010-05-24  Bruno Haible  <bruno@clisp.org>
976
977         Don't use conversion with transliteration in u{8,16,32}_strcoll.
978         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
979         iconveh_error argument.
980         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
981         U_STRCONV_TO_LOCALE.
982         * lib/unistr/u16-strcoll.c: Likewise.
983         * lib/unistr/u32-strcoll.c: Likewise.
984         * modules/unistr/u8-strcoll (Depends-on): Add
985         uniconv/u8-strconv-to-enc, localcharset. Remove
986         uniconv/u8-strconv-to-locale.
987         (configure.ac): Bump version number.
988         * modules/unistr/u16-strcoll (Depends-on): Add
989         uniconv/u16-strconv-to-enc, localcharset. Remove
990         uniconv/u16-strconv-to-locale.
991         (configure.ac): Bump version number.
992         * modules/unistr/u32-strcoll (Depends-on): Add
993         uniconv/u32-strconv-to-enc, localcharset. Remove
994         uniconv/u32-strconv-to-locale.
995         (configure.ac): Bump version number.
996
997 2010-05-24  Bruno Haible  <bruno@clisp.org>
998
999         Avoid a test failure on NetBSD 5.0.
1000         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
1001         an iconv() bug.
1002
1003 2010-05-24  Bruno Haible  <bruno@clisp.org>
1004
1005         Adjust #include directive style.
1006         * modules/regex (Includes): Recommend to write <regex.h>.
1007
1008 2010-05-24  Bruno Haible  <bruno@clisp.org>
1009
1010         regex: Don't require alloca.
1011         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
1012         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
1013         only inside if (0).
1014
1015 2010-05-23  Jim Meyering  <meyering@redhat.com>
1016
1017         test-renameat.c: include <sys/stat.h>
1018         * tests/test-renameat.c: Include <sys/stat.h>; required for
1019         definition of S_IS* macros.
1020
1021 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
1022
1023         Update maintainer documentation for 'relocatable-prog' module.
1024         * doc/relocatable-maint.texi: Update.
1025         Comments by Bruno Haible.
1026
1027 2010-05-23  Bruno Haible  <bruno@clisp.org>
1028
1029         git-merge-changelog: Enable --split-merged-entry by default.
1030         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
1031         (usage): Don't mention this option any more.
1032         Reported by Ralf Wildenhues.
1033
1034 2010-05-23  Jim Meyering  <meyering@redhat.com>
1035
1036         test-pwrite: do not leave behind a test file named "out"
1037         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
1038         The trivial-looking use of init.sh is really necessary.
1039         It ensures that the temporary file, "out", is created in
1040         a temporary directory, and removed upon termination.
1041         * tests/test-pwrite.sh: Re-add file.
1042         * modules/pwrite-tests: Reference it.
1043
1044 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1045
1046         Fix output redirection buglet in init.sh.
1047         * tests/init.sh: Fix redirection of stderr.
1048
1049 2010-05-20  Simon Josefsson  <simon@josefsson.org>
1050
1051         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
1052
1053 2010-05-17  Simon Josefsson  <simon@josefsson.org>
1054
1055         * modules/valgrind-tests: New file.
1056         * m4/valgrind-tests.m4: New file.
1057         * doc/valgrind-tests.texi: New file.
1058         * doc/gnulib.texi (Running self-tests under valgrind): New
1059         section.
1060
1061 2010-05-19  Bruno Haible  <bruno@clisp.org>
1062
1063         Clean up dead code in recent commit.
1064         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
1065         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
1066         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
1067         Suggested by Paolo Bonzini.
1068
1069 2010-05-19  Bruno Haible  <bruno@clisp.org>
1070
1071         Avoid valgrind error reports from libunistring.
1072         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
1073         * modules/libunistring (Files): Add it.
1074         * modules/libunistring-optional (Files): Likewise.
1075
1076 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
1077             Bruno Haible  <bruno@clisp.org>
1078
1079         New module 'libunistring-optional'.
1080         * modules/libunistring-optional: New file.
1081         * m4/libunistring-base.m4: New file.
1082         * m4/libunistring-optional.m4: New file.
1083         * lib/unicase.in.h: Renamed from lib/unicase.h.
1084         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
1085         * lib/unictype.in.h: Renamed from lib/unictype.h.
1086         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
1087         * lib/uniname.in.h: Renamed from lib/uniname.h.
1088         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
1089         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
1090         * lib/unistr.in.h: Renamed from lib/unistr.h.
1091         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
1092         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
1093         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
1094         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
1095         gl_LIBUNISTRING. If the library was found, determine the installed
1096         version and set LIBUNISTRING_VERSION.
1097         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
1098         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
1099         handle a configuration option --with-included-libunistring.
1100         * modules/libunistring (Files): Add m4/absolute-header.m4.
1101         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
1102         Add m4/libunistring-base.m4.
1103         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1104         (Makefile.am): Build unicase.h from unicase.in.h.
1105         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
1106         Add m4/libunistring-base.m4.
1107         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1108         (Makefile.am): Build uniconv.h from uniconv.in.h.
1109         * modules/unictype/base (Files): Use unictype.in.h instead of
1110         unictype.h. Add m4/libunistring-base.m4.
1111         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1112         (Makefile.am): Build unictype.h from unictype.in.h.
1113         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
1114         Add m4/libunistring-base.m4.
1115         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1116         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
1117         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
1118         Add m4/libunistring-base.m4.
1119         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1120         (Makefile.am): Build uniname.h from uniname.in.h.
1121         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
1122         Add m4/libunistring-base.m4.
1123         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1124         (Makefile.am): Build uninorm.h from uninorm.in.h.
1125         * modules/unistdio/base (Files): Use unistdio.in.h instead of
1126         unistdio.h. Add m4/libunistring-base.m4.
1127         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1128         (Makefile.am): Build unistdio.h from unistdio.in.h.
1129         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
1130         Add m4/libunistring-base.m4.
1131         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1132         (Makefile.am): Build unistr.h from unistr.in.h.
1133         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
1134         Add m4/libunistring-base.m4.
1135         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1136         (Makefile.am): Build unitypes.h from unitypes.in.h.
1137         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
1138         Add m4/libunistring-base.m4.
1139         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1140         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
1141         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
1142         uniwidth.h. Add m4/libunistring-base.m4.
1143         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1144         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
1145         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
1146         instead of augmenting lib_SOURCES.
1147         * modules/unicase/empty-suffix-context: Likewise.
1148         * modules/unicase/locale-language: Likewise.
1149         * modules/unicase/tolower: Likewise.
1150         * modules/unicase/totitle: Likewise.
1151         * modules/unicase/toupper: Likewise.
1152         * modules/unicase/u8-casecmp: Likewise.
1153         * modules/unicase/u8-casecoll: Likewise.
1154         * modules/unicase/u8-casefold: Likewise.
1155         * modules/unicase/u8-casexfrm: Likewise.
1156         * modules/unicase/u8-ct-casefold: Likewise.
1157         * modules/unicase/u8-ct-tolower: Likewise.
1158         * modules/unicase/u8-ct-totitle: Likewise.
1159         * modules/unicase/u8-ct-toupper: Likewise.
1160         * modules/unicase/u8-is-cased: Likewise.
1161         * modules/unicase/u8-is-casefolded: Likewise.
1162         * modules/unicase/u8-is-lowercase: Likewise.
1163         * modules/unicase/u8-is-titlecase: Likewise.
1164         * modules/unicase/u8-is-uppercase: Likewise.
1165         * modules/unicase/u8-prefix-context: Likewise.
1166         * modules/unicase/u8-suffix-context: Likewise.
1167         * modules/unicase/u8-tolower: Likewise.
1168         * modules/unicase/u8-totitle: Likewise.
1169         * modules/unicase/u8-toupper: Likewise.
1170         * modules/unicase/u16-casecmp: Likewise.
1171         * modules/unicase/u16-casecoll: Likewise.
1172         * modules/unicase/u16-casefold: Likewise.
1173         * modules/unicase/u16-casexfrm: Likewise.
1174         * modules/unicase/u16-ct-casefold: Likewise.
1175         * modules/unicase/u16-ct-tolower: Likewise.
1176         * modules/unicase/u16-ct-totitle: Likewise.
1177         * modules/unicase/u16-ct-toupper: Likewise.
1178         * modules/unicase/u16-is-cased: Likewise.
1179         * modules/unicase/u16-is-casefolded: Likewise.
1180         * modules/unicase/u16-is-lowercase: Likewise.
1181         * modules/unicase/u16-is-titlecase: Likewise.
1182         * modules/unicase/u16-is-uppercase: Likewise.
1183         * modules/unicase/u16-prefix-context: Likewise.
1184         * modules/unicase/u16-suffix-context: Likewise.
1185         * modules/unicase/u16-tolower: Likewise.
1186         * modules/unicase/u16-totitle: Likewise.
1187         * modules/unicase/u16-toupper: Likewise.
1188         * modules/unicase/u32-casecmp: Likewise.
1189         * modules/unicase/u32-casecoll: Likewise.
1190         * modules/unicase/u32-casefold: Likewise.
1191         * modules/unicase/u32-casexfrm: Likewise.
1192         * modules/unicase/u32-ct-casefold: Likewise.
1193         * modules/unicase/u32-ct-tolower: Likewise.
1194         * modules/unicase/u32-ct-totitle: Likewise.
1195         * modules/unicase/u32-ct-toupper: Likewise.
1196         * modules/unicase/u32-is-cased: Likewise.
1197         * modules/unicase/u32-is-casefolded: Likewise.
1198         * modules/unicase/u32-is-lowercase: Likewise.
1199         * modules/unicase/u32-is-titlecase: Likewise.
1200         * modules/unicase/u32-is-uppercase: Likewise.
1201         * modules/unicase/u32-prefix-context: Likewise.
1202         * modules/unicase/u32-suffix-context: Likewise.
1203         * modules/unicase/u32-tolower: Likewise.
1204         * modules/unicase/u32-totitle: Likewise.
1205         * modules/unicase/u32-toupper: Likewise.
1206         * modules/unicase/ulc-casecmp: Likewise.
1207         * modules/unicase/ulc-casecoll: Likewise.
1208         * modules/unicase/ulc-casexfrm: Likewise.
1209         * modules/uniconv/u8-conv-from-enc: Likewise.
1210         * modules/uniconv/u8-conv-to-enc: Likewise.
1211         * modules/uniconv/u8-strconv-from-enc: Likewise.
1212         * modules/uniconv/u8-strconv-from-locale: Likewise.
1213         * modules/uniconv/u8-strconv-to-enc: Likewise.
1214         * modules/uniconv/u8-strconv-to-locale: Likewise.
1215         * modules/uniconv/u16-conv-from-enc: Likewise.
1216         * modules/uniconv/u16-conv-to-enc: Likewise.
1217         * modules/uniconv/u16-strconv-from-enc: Likewise.
1218         * modules/uniconv/u16-strconv-from-locale: Likewise.
1219         * modules/uniconv/u16-strconv-to-enc: Likewise.
1220         * modules/uniconv/u16-strconv-to-locale: Likewise.
1221         * modules/uniconv/u32-conv-from-enc: Likewise.
1222         * modules/uniconv/u32-conv-to-enc: Likewise.
1223         * modules/uniconv/u32-strconv-from-enc: Likewise.
1224         * modules/uniconv/u32-strconv-from-locale: Likewise.
1225         * modules/uniconv/u32-strconv-to-enc: Likewise.
1226         * modules/uniconv/u32-strconv-to-locale: Likewise.
1227         * modules/unictype/bidicategory-byname: Likewise.
1228         * modules/unictype/bidicategory-name: Likewise.
1229         * modules/unictype/bidicategory-of: Likewise.
1230         * modules/unictype/bidicategory-test: Likewise.
1231         * modules/unictype/block-list: Likewise.
1232         * modules/unictype/block-test: Likewise.
1233         * modules/unictype/category-C: Likewise.
1234         * modules/unictype/category-Cc: Likewise.
1235         * modules/unictype/category-Cf: Likewise.
1236         * modules/unictype/category-Cn: Likewise.
1237         * modules/unictype/category-Co: Likewise.
1238         * modules/unictype/category-Cs: Likewise.
1239         * modules/unictype/category-L: Likewise.
1240         * modules/unictype/category-Ll: Likewise.
1241         * modules/unictype/category-Lm: Likewise.
1242         * modules/unictype/category-Lo: Likewise.
1243         * modules/unictype/category-Lt: Likewise.
1244         * modules/unictype/category-Lu: Likewise.
1245         * modules/unictype/category-M: Likewise.
1246         * modules/unictype/category-Mc: Likewise.
1247         * modules/unictype/category-Me: Likewise.
1248         * modules/unictype/category-Mn: Likewise.
1249         * modules/unictype/category-N: Likewise.
1250         * modules/unictype/category-Nd: Likewise.
1251         * modules/unictype/category-Nl: Likewise.
1252         * modules/unictype/category-No: Likewise.
1253         * modules/unictype/category-P: Likewise.
1254         * modules/unictype/category-Pc: Likewise.
1255         * modules/unictype/category-Pd: Likewise.
1256         * modules/unictype/category-Pe: Likewise.
1257         * modules/unictype/category-Pf: Likewise.
1258         * modules/unictype/category-Pi: Likewise.
1259         * modules/unictype/category-Po: Likewise.
1260         * modules/unictype/category-Ps: Likewise.
1261         * modules/unictype/category-S: Likewise.
1262         * modules/unictype/category-Sc: Likewise.
1263         * modules/unictype/category-Sk: Likewise.
1264         * modules/unictype/category-Sm: Likewise.
1265         * modules/unictype/category-So: Likewise.
1266         * modules/unictype/category-Z: Likewise.
1267         * modules/unictype/category-Zl: Likewise.
1268         * modules/unictype/category-Zp: Likewise.
1269         * modules/unictype/category-Zs: Likewise.
1270         * modules/unictype/category-and: Likewise.
1271         * modules/unictype/category-and-not: Likewise.
1272         * modules/unictype/category-byname: Likewise.
1273         * modules/unictype/category-name: Likewise.
1274         * modules/unictype/category-none: Likewise.
1275         * modules/unictype/category-of: Likewise.
1276         * modules/unictype/category-or: Likewise.
1277         * modules/unictype/category-test: Likewise.
1278         * modules/unictype/combining-class: Likewise.
1279         * modules/unictype/ctype-alnum: Likewise.
1280         * modules/unictype/ctype-alpha: Likewise.
1281         * modules/unictype/ctype-blank: Likewise.
1282         * modules/unictype/ctype-cntrl: Likewise.
1283         * modules/unictype/ctype-digit: Likewise.
1284         * modules/unictype/ctype-graph: Likewise.
1285         * modules/unictype/ctype-lower: Likewise.
1286         * modules/unictype/ctype-print: Likewise.
1287         * modules/unictype/ctype-punct: Likewise.
1288         * modules/unictype/ctype-space: Likewise.
1289         * modules/unictype/ctype-upper: Likewise.
1290         * modules/unictype/ctype-xdigit: Likewise.
1291         * modules/unictype/decimal-digit: Likewise.
1292         * modules/unictype/digit: Likewise.
1293         * modules/unictype/mirror: Likewise.
1294         * modules/unictype/numeric: Likewise.
1295         * modules/unictype/property-alphabetic: Likewise.
1296         * modules/unictype/property-ascii-hex-digit: Likewise.
1297         * modules/unictype/property-bidi-arabic-digit: Likewise.
1298         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
1299         * modules/unictype/property-bidi-block-separator: Likewise.
1300         * modules/unictype/property-bidi-boundary-neutral: Likewise.
1301         * modules/unictype/property-bidi-common-separator: Likewise.
1302         * modules/unictype/property-bidi-control: Likewise.
1303         * modules/unictype/property-bidi-embedding-or-override: Likewise.
1304         * modules/unictype/property-bidi-eur-num-separator: Likewise.
1305         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
1306         * modules/unictype/property-bidi-european-digit: Likewise.
1307         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
1308         * modules/unictype/property-bidi-left-to-right: Likewise.
1309         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
1310         * modules/unictype/property-bidi-other-neutral: Likewise.
1311         * modules/unictype/property-bidi-pdf: Likewise.
1312         * modules/unictype/property-bidi-segment-separator: Likewise.
1313         * modules/unictype/property-bidi-whitespace: Likewise.
1314         * modules/unictype/property-byname: Likewise.
1315         * modules/unictype/property-combining: Likewise.
1316         * modules/unictype/property-composite: Likewise.
1317         * modules/unictype/property-currency-symbol: Likewise.
1318         * modules/unictype/property-dash: Likewise.
1319         * modules/unictype/property-decimal-digit: Likewise.
1320         * modules/unictype/property-default-ignorable-code-point: Likewise.
1321         * modules/unictype/property-deprecated: Likewise.
1322         * modules/unictype/property-diacritic: Likewise.
1323         * modules/unictype/property-extender: Likewise.
1324         * modules/unictype/property-format-control: Likewise.
1325         * modules/unictype/property-grapheme-base: Likewise.
1326         * modules/unictype/property-grapheme-extend: Likewise.
1327         * modules/unictype/property-grapheme-link: Likewise.
1328         * modules/unictype/property-hex-digit: Likewise.
1329         * modules/unictype/property-hyphen: Likewise.
1330         * modules/unictype/property-id-continue: Likewise.
1331         * modules/unictype/property-id-start: Likewise.
1332         * modules/unictype/property-ideographic: Likewise.
1333         * modules/unictype/property-ids-binary-operator: Likewise.
1334         * modules/unictype/property-ids-trinary-operator: Likewise.
1335         * modules/unictype/property-ignorable-control: Likewise.
1336         * modules/unictype/property-iso-control: Likewise.
1337         * modules/unictype/property-join-control: Likewise.
1338         * modules/unictype/property-left-of-pair: Likewise.
1339         * modules/unictype/property-line-separator: Likewise.
1340         * modules/unictype/property-logical-order-exception: Likewise.
1341         * modules/unictype/property-lowercase: Likewise.
1342         * modules/unictype/property-math: Likewise.
1343         * modules/unictype/property-non-break: Likewise.
1344         * modules/unictype/property-not-a-character: Likewise.
1345         * modules/unictype/property-numeric: Likewise.
1346         * modules/unictype/property-other-alphabetic: Likewise.
1347         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
1348         * modules/unictype/property-other-grapheme-extend: Likewise.
1349         * modules/unictype/property-other-id-continue: Likewise.
1350         * modules/unictype/property-other-id-start: Likewise.
1351         * modules/unictype/property-other-lowercase: Likewise.
1352         * modules/unictype/property-other-math: Likewise.
1353         * modules/unictype/property-other-uppercase: Likewise.
1354         * modules/unictype/property-paired-punctuation: Likewise.
1355         * modules/unictype/property-paragraph-separator: Likewise.
1356         * modules/unictype/property-pattern-syntax: Likewise.
1357         * modules/unictype/property-pattern-white-space: Likewise.
1358         * modules/unictype/property-private-use: Likewise.
1359         * modules/unictype/property-punctuation: Likewise.
1360         * modules/unictype/property-quotation-mark: Likewise.
1361         * modules/unictype/property-radical: Likewise.
1362         * modules/unictype/property-sentence-terminal: Likewise.
1363         * modules/unictype/property-soft-dotted: Likewise.
1364         * modules/unictype/property-space: Likewise.
1365         * modules/unictype/property-terminal-punctuation: Likewise.
1366         * modules/unictype/property-test: Likewise.
1367         * modules/unictype/property-titlecase: Likewise.
1368         * modules/unictype/property-unassigned-code-value: Likewise.
1369         * modules/unictype/property-unified-ideograph: Likewise.
1370         * modules/unictype/property-uppercase: Likewise.
1371         * modules/unictype/property-variation-selector: Likewise.
1372         * modules/unictype/property-white-space: Likewise.
1373         * modules/unictype/property-xid-continue: Likewise.
1374         * modules/unictype/property-xid-start: Likewise.
1375         * modules/unictype/property-zero-width: Likewise.
1376         * modules/unictype/scripts: Likewise.
1377         * modules/unictype/syntax-c-ident: Likewise.
1378         * modules/unictype/syntax-c-whitespace: Likewise.
1379         * modules/unictype/syntax-java-ident: Likewise.
1380         * modules/unictype/syntax-java-whitespace: Likewise.
1381         * modules/unilbrk/u8-possible-linebreaks: Likewise.
1382         * modules/unilbrk/u8-width-linebreaks: Likewise.
1383         * modules/unilbrk/u16-possible-linebreaks: Likewise.
1384         * modules/unilbrk/u16-width-linebreaks: Likewise.
1385         * modules/unilbrk/u32-possible-linebreaks: Likewise.
1386         * modules/unilbrk/u32-width-linebreaks: Likewise.
1387         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
1388         * modules/unilbrk/ulc-width-linebreaks: Likewise.
1389         * modules/uniname/uniname: Likewise.
1390         * modules/uninorm/canonical-decomposition: Likewise.
1391         * modules/uninorm/composition: Likewise.
1392         * modules/uninorm/decomposing-form: Likewise.
1393         * modules/uninorm/decomposition: Likewise.
1394         * modules/uninorm/filter: Likewise.
1395         * modules/uninorm/nfc: Likewise.
1396         * modules/uninorm/nfd: Likewise.
1397         * modules/uninorm/nfkc: Likewise.
1398         * modules/uninorm/nfkd: Likewise.
1399         * modules/uninorm/u8-normalize: Likewise.
1400         * modules/uninorm/u8-normcmp: Likewise.
1401         * modules/uninorm/u8-normcoll: Likewise.
1402         * modules/uninorm/u8-normxfrm: Likewise.
1403         * modules/uninorm/u16-normalize: Likewise.
1404         * modules/uninorm/u16-normcmp: Likewise.
1405         * modules/uninorm/u16-normcoll: Likewise.
1406         * modules/uninorm/u16-normxfrm: Likewise.
1407         * modules/uninorm/u32-normalize: Likewise.
1408         * modules/uninorm/u32-normcmp: Likewise.
1409         * modules/uninorm/u32-normcoll: Likewise.
1410         * modules/uninorm/u32-normxfrm: Likewise.
1411         * modules/unistdio/u8-asnprintf: Likewise.
1412         * modules/unistdio/u8-asprintf: Likewise.
1413         * modules/unistdio/u8-snprintf: Likewise.
1414         * modules/unistdio/u8-sprintf: Likewise.
1415         * modules/unistdio/u8-u8-asnprintf: Likewise.
1416         * modules/unistdio/u8-u8-asprintf: Likewise.
1417         * modules/unistdio/u8-u8-snprintf: Likewise.
1418         * modules/unistdio/u8-u8-sprintf: Likewise.
1419         * modules/unistdio/u8-u8-vasnprintf: Likewise.
1420         * modules/unistdio/u8-u8-vasprintf: Likewise.
1421         * modules/unistdio/u8-u8-vsnprintf: Likewise.
1422         * modules/unistdio/u8-u8-vsprintf: Likewise.
1423         * modules/unistdio/u8-vasnprintf: Likewise.
1424         * modules/unistdio/u8-vasprintf: Likewise.
1425         * modules/unistdio/u8-vsnprintf: Likewise.
1426         * modules/unistdio/u8-vsprintf: Likewise.
1427         * modules/unistdio/u16-asnprintf: Likewise.
1428         * modules/unistdio/u16-asprintf: Likewise.
1429         * modules/unistdio/u16-snprintf: Likewise.
1430         * modules/unistdio/u16-sprintf: Likewise.
1431         * modules/unistdio/u16-u16-asnprintf: Likewise.
1432         * modules/unistdio/u16-u16-asprintf: Likewise.
1433         * modules/unistdio/u16-u16-snprintf: Likewise.
1434         * modules/unistdio/u16-u16-sprintf: Likewise.
1435         * modules/unistdio/u16-u16-vasnprintf: Likewise.
1436         * modules/unistdio/u16-u16-vasprintf: Likewise.
1437         * modules/unistdio/u16-u16-vsnprintf: Likewise.
1438         * modules/unistdio/u16-u16-vsprintf: Likewise.
1439         * modules/unistdio/u16-vasnprintf: Likewise.
1440         * modules/unistdio/u16-vasprintf: Likewise.
1441         * modules/unistdio/u16-vsnprintf: Likewise.
1442         * modules/unistdio/u16-vsprintf: Likewise.
1443         * modules/unistdio/u32-asnprintf: Likewise.
1444         * modules/unistdio/u32-asprintf: Likewise.
1445         * modules/unistdio/u32-snprintf: Likewise.
1446         * modules/unistdio/u32-sprintf: Likewise.
1447         * modules/unistdio/u32-u32-asnprintf: Likewise.
1448         * modules/unistdio/u32-u32-asprintf: Likewise.
1449         * modules/unistdio/u32-u32-snprintf: Likewise.
1450         * modules/unistdio/u32-u32-sprintf: Likewise.
1451         * modules/unistdio/u32-u32-vasnprintf: Likewise.
1452         * modules/unistdio/u32-u32-vasprintf: Likewise.
1453         * modules/unistdio/u32-u32-vsnprintf: Likewise.
1454         * modules/unistdio/u32-u32-vsprintf: Likewise.
1455         * modules/unistdio/u32-vasnprintf: Likewise.
1456         * modules/unistdio/u32-vasprintf: Likewise.
1457         * modules/unistdio/u32-vsnprintf: Likewise.
1458         * modules/unistdio/u32-vsprintf: Likewise.
1459         * modules/unistdio/ulc-asnprintf: Likewise.
1460         * modules/unistdio/ulc-asprintf: Likewise.
1461         * modules/unistdio/ulc-fprintf: Likewise.
1462         * modules/unistdio/ulc-snprintf: Likewise.
1463         * modules/unistdio/ulc-sprintf: Likewise.
1464         * modules/unistdio/ulc-vasnprintf: Likewise.
1465         * modules/unistdio/ulc-vasprintf: Likewise.
1466         * modules/unistdio/ulc-vfprintf: Likewise.
1467         * modules/unistdio/ulc-vsnprintf: Likewise.
1468         * modules/unistdio/ulc-vsprintf: Likewise.
1469         * modules/unistr/u8-check: Likewise.
1470         * modules/unistr/u8-chr: Likewise.
1471         * modules/unistr/u8-cmp: Likewise.
1472         * modules/unistr/u8-cmp2: Likewise.
1473         * modules/unistr/u8-cpy: Likewise.
1474         * modules/unistr/u8-cpy-alloc: Likewise.
1475         * modules/unistr/u8-endswith: Likewise.
1476         * modules/unistr/u8-mblen: Likewise.
1477         * modules/unistr/u8-mbsnlen: Likewise.
1478         * modules/unistr/u8-mbtouc: Likewise.
1479         * modules/unistr/u8-mbtouc-unsafe: Likewise.
1480         * modules/unistr/u8-mbtoucr: Likewise.
1481         * modules/unistr/u8-move: Likewise.
1482         * modules/unistr/u8-next: Likewise.
1483         * modules/unistr/u8-prev: Likewise.
1484         * modules/unistr/u8-set: Likewise.
1485         * modules/unistr/u8-startswith: Likewise.
1486         * modules/unistr/u8-stpcpy: Likewise.
1487         * modules/unistr/u8-stpncpy: Likewise.
1488         * modules/unistr/u8-strcat: Likewise.
1489         * modules/unistr/u8-strchr: Likewise.
1490         * modules/unistr/u8-strcmp: Likewise.
1491         * modules/unistr/u8-strcoll: Likewise.
1492         * modules/unistr/u8-strcpy: Likewise.
1493         * modules/unistr/u8-strcspn: Likewise.
1494         * modules/unistr/u8-strdup: Likewise.
1495         * modules/unistr/u8-strlen: Likewise.
1496         * modules/unistr/u8-strmblen: Likewise.
1497         * modules/unistr/u8-strmbtouc: Likewise.
1498         * modules/unistr/u8-strncat: Likewise.
1499         * modules/unistr/u8-strncmp: Likewise.
1500         * modules/unistr/u8-strncpy: Likewise.
1501         * modules/unistr/u8-strnlen: Likewise.
1502         * modules/unistr/u8-strpbrk: Likewise.
1503         * modules/unistr/u8-strrchr: Likewise.
1504         * modules/unistr/u8-strspn: Likewise.
1505         * modules/unistr/u8-strstr: Likewise.
1506         * modules/unistr/u8-strtok: Likewise.
1507         * modules/unistr/u8-to-u16: Likewise.
1508         * modules/unistr/u8-to-u32: Likewise.
1509         * modules/unistr/u8-uctomb: Likewise.
1510         * modules/unistr/u16-check: Likewise.
1511         * modules/unistr/u16-chr: Likewise.
1512         * modules/unistr/u16-cmp: Likewise.
1513         * modules/unistr/u16-cmp2: Likewise.
1514         * modules/unistr/u16-cpy: Likewise.
1515         * modules/unistr/u16-cpy-alloc: Likewise.
1516         * modules/unistr/u16-endswith: Likewise.
1517         * modules/unistr/u16-mblen: Likewise.
1518         * modules/unistr/u16-mbsnlen: Likewise.
1519         * modules/unistr/u16-mbtouc: Likewise.
1520         * modules/unistr/u16-mbtouc-unsafe: Likewise.
1521         * modules/unistr/u16-mbtoucr: Likewise.
1522         * modules/unistr/u16-move: Likewise.
1523         * modules/unistr/u16-next: Likewise.
1524         * modules/unistr/u16-prev: Likewise.
1525         * modules/unistr/u16-set: Likewise.
1526         * modules/unistr/u16-startswith: Likewise.
1527         * modules/unistr/u16-stpcpy: Likewise.
1528         * modules/unistr/u16-stpncpy: Likewise.
1529         * modules/unistr/u16-strcat: Likewise.
1530         * modules/unistr/u16-strchr: Likewise.
1531         * modules/unistr/u16-strcmp: Likewise.
1532         * modules/unistr/u16-strcoll: Likewise.
1533         * modules/unistr/u16-strcpy: Likewise.
1534         * modules/unistr/u16-strcspn: Likewise.
1535         * modules/unistr/u16-strdup: Likewise.
1536         * modules/unistr/u16-strlen: Likewise.
1537         * modules/unistr/u16-strmblen: Likewise.
1538         * modules/unistr/u16-strmbtouc: Likewise.
1539         * modules/unistr/u16-strncat: Likewise.
1540         * modules/unistr/u16-strncmp: Likewise.
1541         * modules/unistr/u16-strncpy: Likewise.
1542         * modules/unistr/u16-strnlen: Likewise.
1543         * modules/unistr/u16-strpbrk: Likewise.
1544         * modules/unistr/u16-strrchr: Likewise.
1545         * modules/unistr/u16-strspn: Likewise.
1546         * modules/unistr/u16-strstr: Likewise.
1547         * modules/unistr/u16-strtok: Likewise.
1548         * modules/unistr/u16-to-u32: Likewise.
1549         * modules/unistr/u16-to-u8: Likewise.
1550         * modules/unistr/u16-uctomb: Likewise.
1551         * modules/unistr/u32-check: Likewise.
1552         * modules/unistr/u32-chr: Likewise.
1553         * modules/unistr/u32-cmp: Likewise.
1554         * modules/unistr/u32-cmp2: Likewise.
1555         * modules/unistr/u32-cpy: Likewise.
1556         * modules/unistr/u32-cpy-alloc: Likewise.
1557         * modules/unistr/u32-endswith: Likewise.
1558         * modules/unistr/u32-mblen: Likewise.
1559         * modules/unistr/u32-mbsnlen: Likewise.
1560         * modules/unistr/u32-mbtouc: Likewise.
1561         * modules/unistr/u32-mbtouc-unsafe: Likewise.
1562         * modules/unistr/u32-mbtoucr: Likewise.
1563         * modules/unistr/u32-move: Likewise.
1564         * modules/unistr/u32-next: Likewise.
1565         * modules/unistr/u32-prev: Likewise.
1566         * modules/unistr/u32-set: Likewise.
1567         * modules/unistr/u32-startswith: Likewise.
1568         * modules/unistr/u32-stpcpy: Likewise.
1569         * modules/unistr/u32-stpncpy: Likewise.
1570         * modules/unistr/u32-strcat: Likewise.
1571         * modules/unistr/u32-strchr: Likewise.
1572         * modules/unistr/u32-strcmp: Likewise.
1573         * modules/unistr/u32-strcoll: Likewise.
1574         * modules/unistr/u32-strcpy: Likewise.
1575         * modules/unistr/u32-strcspn: Likewise.
1576         * modules/unistr/u32-strdup: Likewise.
1577         * modules/unistr/u32-strlen: Likewise.
1578         * modules/unistr/u32-strmblen: Likewise.
1579         * modules/unistr/u32-strmbtouc: Likewise.
1580         * modules/unistr/u32-strncat: Likewise.
1581         * modules/unistr/u32-strncmp: Likewise.
1582         * modules/unistr/u32-strncpy: Likewise.
1583         * modules/unistr/u32-strnlen: Likewise.
1584         * modules/unistr/u32-strpbrk: Likewise.
1585         * modules/unistr/u32-strrchr: Likewise.
1586         * modules/unistr/u32-strspn: Likewise.
1587         * modules/unistr/u32-strstr: Likewise.
1588         * modules/unistr/u32-strtok: Likewise.
1589         * modules/unistr/u32-to-u16: Likewise.
1590         * modules/unistr/u32-to-u8: Likewise.
1591         * modules/unistr/u32-uctomb: Likewise.
1592         * modules/uniwbrk/u8-wordbreaks: Likewise.
1593         * modules/uniwbrk/u16-wordbreaks: Likewise.
1594         * modules/uniwbrk/u32-wordbreaks: Likewise.
1595         * modules/uniwbrk/ulc-wordbreaks: Likewise.
1596         * modules/uniwbrk/wordbreak-property: Likewise.
1597         * modules/uniwidth/u8-strwidth: Likewise.
1598         * modules/uniwidth/u8-width: Likewise.
1599         * modules/uniwidth/u16-strwidth: Likewise.
1600         * modules/uniwidth/u16-width: Likewise.
1601         * modules/uniwidth/u32-strwidth: Likewise.
1602         * modules/uniwidth/u32-width: Likewise.
1603         * modules/uniwidth/width: Likewise.
1604         * modules/unicase/cased-tests (Makefile.am): Link all test programs
1605         with $(LIBUNISTRING).
1606         * modules/unicase/ignorable-tests: Likewise.
1607         * modules/unicase/locale-language-tests: Likewise.
1608         * modules/unicase/tolower-tests: Likewise.
1609         * modules/unicase/totitle-tests: Likewise.
1610         * modules/unicase/toupper-tests: Likewise.
1611         * modules/unicase/u8-casecmp-tests: Likewise.
1612         * modules/unicase/u8-casecoll-tests: Likewise.
1613         * modules/unicase/u8-casefold-tests: Likewise.
1614         * modules/unicase/u8-is-cased-tests: Likewise.
1615         * modules/unicase/u8-is-casefolded-tests: Likewise.
1616         * modules/unicase/u8-is-lowercase-tests: Likewise.
1617         * modules/unicase/u8-is-titlecase-tests: Likewise.
1618         * modules/unicase/u8-is-uppercase-tests: Likewise.
1619         * modules/unicase/u8-tolower-tests: Likewise.
1620         * modules/unicase/u8-totitle-tests: Likewise.
1621         * modules/unicase/u8-toupper-tests: Likewise.
1622         * modules/unicase/u16-casecmp-tests: Likewise.
1623         * modules/unicase/u16-casecoll-tests: Likewise.
1624         * modules/unicase/u16-casefold-tests: Likewise.
1625         * modules/unicase/u16-is-cased-tests: Likewise.
1626         * modules/unicase/u16-is-casefolded-tests: Likewise.
1627         * modules/unicase/u16-is-lowercase-tests: Likewise.
1628         * modules/unicase/u16-is-titlecase-tests: Likewise.
1629         * modules/unicase/u16-is-uppercase-tests: Likewise.
1630         * modules/unicase/u16-tolower-tests: Likewise.
1631         * modules/unicase/u16-totitle-tests: Likewise.
1632         * modules/unicase/u16-toupper-tests: Likewise.
1633         * modules/unicase/u32-casecmp-tests: Likewise.
1634         * modules/unicase/u32-casecoll-tests: Likewise.
1635         * modules/unicase/u32-casefold-tests: Likewise.
1636         * modules/unicase/u32-is-cased-tests: Likewise.
1637         * modules/unicase/u32-is-casefolded-tests: Likewise.
1638         * modules/unicase/u32-is-lowercase-tests: Likewise.
1639         * modules/unicase/u32-is-titlecase-tests: Likewise.
1640         * modules/unicase/u32-is-uppercase-tests: Likewise.
1641         * modules/unicase/u32-tolower-tests: Likewise.
1642         * modules/unicase/u32-totitle-tests: Likewise.
1643         * modules/unicase/u32-toupper-tests: Likewise.
1644         * modules/unicase/ulc-casecmp-tests: Likewise.
1645         * modules/unicase/ulc-casecoll-tests: Likewise.
1646         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
1647         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
1648         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
1649         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
1650         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
1651         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
1652         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
1653         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
1654         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
1655         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
1656         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
1657         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
1658         * modules/unictype/bidicategory-byname-tests: Likewise.
1659         * modules/unictype/bidicategory-name-tests: Likewise.
1660         * modules/unictype/bidicategory-of-tests: Likewise.
1661         * modules/unictype/bidicategory-test-tests: Likewise.
1662         * modules/unictype/block-list-tests: Likewise.
1663         * modules/unictype/block-of-tests: Likewise.
1664         * modules/unictype/block-test-tests: Likewise.
1665         * modules/unictype/category-C-tests: Likewise.
1666         * modules/unictype/category-Cc-tests: Likewise.
1667         * modules/unictype/category-Cf-tests: Likewise.
1668         * modules/unictype/category-Cn-tests: Likewise.
1669         * modules/unictype/category-Co-tests: Likewise.
1670         * modules/unictype/category-Cs-tests: Likewise.
1671         * modules/unictype/category-L-tests: Likewise.
1672         * modules/unictype/category-Ll-tests: Likewise.
1673         * modules/unictype/category-Lm-tests: Likewise.
1674         * modules/unictype/category-Lo-tests: Likewise.
1675         * modules/unictype/category-Lt-tests: Likewise.
1676         * modules/unictype/category-Lu-tests: Likewise.
1677         * modules/unictype/category-M-tests: Likewise.
1678         * modules/unictype/category-Mc-tests: Likewise.
1679         * modules/unictype/category-Me-tests: Likewise.
1680         * modules/unictype/category-Mn-tests: Likewise.
1681         * modules/unictype/category-N-tests: Likewise.
1682         * modules/unictype/category-Nd-tests: Likewise.
1683         * modules/unictype/category-Nl-tests: Likewise.
1684         * modules/unictype/category-No-tests: Likewise.
1685         * modules/unictype/category-P-tests: Likewise.
1686         * modules/unictype/category-Pc-tests: Likewise.
1687         * modules/unictype/category-Pd-tests: Likewise.
1688         * modules/unictype/category-Pe-tests: Likewise.
1689         * modules/unictype/category-Pf-tests: Likewise.
1690         * modules/unictype/category-Pi-tests: Likewise.
1691         * modules/unictype/category-Po-tests: Likewise.
1692         * modules/unictype/category-Ps-tests: Likewise.
1693         * modules/unictype/category-S-tests: Likewise.
1694         * modules/unictype/category-Sc-tests: Likewise.
1695         * modules/unictype/category-Sk-tests: Likewise.
1696         * modules/unictype/category-Sm-tests: Likewise.
1697         * modules/unictype/category-So-tests: Likewise.
1698         * modules/unictype/category-Z-tests: Likewise.
1699         * modules/unictype/category-Zl-tests: Likewise.
1700         * modules/unictype/category-Zp-tests: Likewise.
1701         * modules/unictype/category-Zs-tests: Likewise.
1702         * modules/unictype/category-and-not-tests: Likewise.
1703         * modules/unictype/category-and-tests: Likewise.
1704         * modules/unictype/category-byname-tests: Likewise.
1705         * modules/unictype/category-name-tests: Likewise.
1706         * modules/unictype/category-none-tests: Likewise.
1707         * modules/unictype/category-of-tests: Likewise.
1708         * modules/unictype/category-or-tests: Likewise.
1709         * modules/unictype/category-test-withtable-tests: Likewise.
1710         * modules/unictype/combining-class-tests: Likewise.
1711         * modules/unictype/ctype-alnum-tests: Likewise.
1712         * modules/unictype/ctype-alpha-tests: Likewise.
1713         * modules/unictype/ctype-blank-tests: Likewise.
1714         * modules/unictype/ctype-cntrl-tests: Likewise.
1715         * modules/unictype/ctype-digit-tests: Likewise.
1716         * modules/unictype/ctype-graph-tests: Likewise.
1717         * modules/unictype/ctype-lower-tests: Likewise.
1718         * modules/unictype/ctype-print-tests: Likewise.
1719         * modules/unictype/ctype-punct-tests: Likewise.
1720         * modules/unictype/ctype-space-tests: Likewise.
1721         * modules/unictype/ctype-upper-tests: Likewise.
1722         * modules/unictype/ctype-xdigit-tests: Likewise.
1723         * modules/unictype/decimal-digit-tests: Likewise.
1724         * modules/unictype/digit-tests: Likewise.
1725         * modules/unictype/mirror-tests: Likewise.
1726         * modules/unictype/numeric-tests: Likewise.
1727         * modules/unictype/property-alphabetic-tests: Likewise.
1728         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
1729         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
1730         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
1731         * modules/unictype/property-bidi-block-separator-tests: Likewise.
1732         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
1733         * modules/unictype/property-bidi-common-separator-tests: Likewise.
1734         * modules/unictype/property-bidi-control-tests: Likewise.
1735         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
1736         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
1737         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
1738         * modules/unictype/property-bidi-european-digit-tests: Likewise.
1739         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
1740         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
1741         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
1742         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
1743         * modules/unictype/property-bidi-pdf-tests: Likewise.
1744         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
1745         * modules/unictype/property-bidi-whitespace-tests: Likewise.
1746         * modules/unictype/property-byname-tests: Likewise.
1747         * modules/unictype/property-combining-tests: Likewise.
1748         * modules/unictype/property-composite-tests: Likewise.
1749         * modules/unictype/property-currency-symbol-tests: Likewise.
1750         * modules/unictype/property-dash-tests: Likewise.
1751         * modules/unictype/property-decimal-digit-tests: Likewise.
1752         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
1753         * modules/unictype/property-deprecated-tests: Likewise.
1754         * modules/unictype/property-diacritic-tests: Likewise.
1755         * modules/unictype/property-extender-tests: Likewise.
1756         * modules/unictype/property-format-control-tests: Likewise.
1757         * modules/unictype/property-grapheme-base-tests: Likewise.
1758         * modules/unictype/property-grapheme-extend-tests: Likewise.
1759         * modules/unictype/property-grapheme-link-tests: Likewise.
1760         * modules/unictype/property-hex-digit-tests: Likewise.
1761         * modules/unictype/property-hyphen-tests: Likewise.
1762         * modules/unictype/property-id-continue-tests: Likewise.
1763         * modules/unictype/property-id-start-tests: Likewise.
1764         * modules/unictype/property-ideographic-tests: Likewise.
1765         * modules/unictype/property-ids-binary-operator-tests: Likewise.
1766         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
1767         * modules/unictype/property-ignorable-control-tests: Likewise.
1768         * modules/unictype/property-iso-control-tests: Likewise.
1769         * modules/unictype/property-join-control-tests: Likewise.
1770         * modules/unictype/property-left-of-pair-tests: Likewise.
1771         * modules/unictype/property-line-separator-tests: Likewise.
1772         * modules/unictype/property-logical-order-exception-tests: Likewise.
1773         * modules/unictype/property-lowercase-tests: Likewise.
1774         * modules/unictype/property-math-tests: Likewise.
1775         * modules/unictype/property-non-break-tests: Likewise.
1776         * modules/unictype/property-not-a-character-tests: Likewise.
1777         * modules/unictype/property-numeric-tests: Likewise.
1778         * modules/unictype/property-other-alphabetic-tests: Likewise.
1779         * modules/unictype/property-other-default-ignorable-code-point-tests:
1780         Likewise.
1781         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
1782         * modules/unictype/property-other-id-continue-tests: Likewise.
1783         * modules/unictype/property-other-id-start-tests: Likewise.
1784         * modules/unictype/property-other-lowercase-tests: Likewise.
1785         * modules/unictype/property-other-math-tests: Likewise.
1786         * modules/unictype/property-other-uppercase-tests: Likewise.
1787         * modules/unictype/property-paired-punctuation-tests: Likewise.
1788         * modules/unictype/property-paragraph-separator-tests: Likewise.
1789         * modules/unictype/property-pattern-syntax-tests: Likewise.
1790         * modules/unictype/property-pattern-white-space-tests: Likewise.
1791         * modules/unictype/property-private-use-tests: Likewise.
1792         * modules/unictype/property-punctuation-tests: Likewise.
1793         * modules/unictype/property-quotation-mark-tests: Likewise.
1794         * modules/unictype/property-radical-tests: Likewise.
1795         * modules/unictype/property-sentence-terminal-tests: Likewise.
1796         * modules/unictype/property-soft-dotted-tests: Likewise.
1797         * modules/unictype/property-space-tests: Likewise.
1798         * modules/unictype/property-terminal-punctuation-tests: Likewise.
1799         * modules/unictype/property-test-tests: Likewise.
1800         * modules/unictype/property-titlecase-tests: Likewise.
1801         * modules/unictype/property-unassigned-code-value-tests: Likewise.
1802         * modules/unictype/property-unified-ideograph-tests: Likewise.
1803         * modules/unictype/property-uppercase-tests: Likewise.
1804         * modules/unictype/property-variation-selector-tests: Likewise.
1805         * modules/unictype/property-white-space-tests: Likewise.
1806         * modules/unictype/property-xid-continue-tests: Likewise.
1807         * modules/unictype/property-xid-start-tests: Likewise.
1808         * modules/unictype/property-zero-width-tests: Likewise.
1809         * modules/unictype/scripts-tests: Likewise.
1810         * modules/unictype/syntax-c-ident-tests: Likewise.
1811         * modules/unictype/syntax-c-whitespace-tests: Likewise.
1812         * modules/unictype/syntax-java-ident-tests: Likewise.
1813         * modules/unictype/syntax-java-whitespace-tests: Likewise.
1814         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
1815         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
1816         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
1817         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
1818         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
1819         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
1820         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
1821         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
1822         * modules/uniname/uniname-tests: Likewise.
1823         * modules/uninorm/canonical-decomposition-tests: Likewise.
1824         * modules/uninorm/compat-decomposition-tests: Likewise.
1825         * modules/uninorm/composition-tests: Likewise.
1826         * modules/uninorm/decomposing-form-tests: Likewise.
1827         * modules/uninorm/decomposition-tests: Likewise.
1828         * modules/uninorm/filter-tests: Likewise.
1829         * modules/uninorm/nfc-tests: Likewise.
1830         * modules/uninorm/nfd-tests: Likewise.
1831         * modules/uninorm/nfkc-tests: Likewise.
1832         * modules/uninorm/nfkd-tests: Likewise.
1833         * modules/uninorm/u8-normcmp-tests: Likewise.
1834         * modules/uninorm/u8-normcoll-tests: Likewise.
1835         * modules/uninorm/u16-normcmp-tests: Likewise.
1836         * modules/uninorm/u16-normcoll-tests: Likewise.
1837         * modules/uninorm/u32-normcmp-tests: Likewise.
1838         * modules/uninorm/u32-normcoll-tests: Likewise.
1839         * modules/unistdio/u8-asnprintf-tests: Likewise.
1840         * modules/unistdio/u8-vasnprintf-tests: Likewise.
1841         * modules/unistdio/u8-vasprintf-tests: Likewise.
1842         * modules/unistdio/u8-vsnprintf-tests: Likewise.
1843         * modules/unistdio/u8-vsprintf-tests: Likewise.
1844         * modules/unistdio/u16-asnprintf-tests: Likewise.
1845         * modules/unistdio/u16-vasnprintf-tests: Likewise.
1846         * modules/unistdio/u16-vasprintf-tests: Likewise.
1847         * modules/unistdio/u16-vsnprintf-tests: Likewise.
1848         * modules/unistdio/u16-vsprintf-tests: Likewise.
1849         * modules/unistdio/u32-asnprintf-tests: Likewise.
1850         * modules/unistdio/u32-vasnprintf-tests: Likewise.
1851         * modules/unistdio/u32-vasprintf-tests: Likewise.
1852         * modules/unistdio/u32-vsnprintf-tests: Likewise.
1853         * modules/unistdio/u32-vsprintf-tests: Likewise.
1854         * modules/unistdio/ulc-asnprintf-tests: Likewise.
1855         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
1856         * modules/unistdio/ulc-vasprintf-tests: Likewise.
1857         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
1858         * modules/unistdio/ulc-vsprintf-tests: Likewise.
1859         * modules/unistr/u8-check-tests: Likewise.
1860         * modules/unistr/u8-chr-tests: Likewise.
1861         * modules/unistr/u8-cmp-tests: Likewise.
1862         * modules/unistr/u8-cmp2-tests: Likewise.
1863         * modules/unistr/u8-cpy-alloc-tests: Likewise.
1864         * modules/unistr/u8-cpy-tests: Likewise.
1865         * modules/unistr/u8-mblen-tests: Likewise.
1866         * modules/unistr/u8-mbsnlen-tests: Likewise.
1867         * modules/unistr/u8-mbtouc-tests: Likewise.
1868         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
1869         * modules/unistr/u8-mbtoucr-tests: Likewise.
1870         * modules/unistr/u8-move-tests: Likewise.
1871         * modules/unistr/u8-next-tests: Likewise.
1872         * modules/unistr/u8-prev-tests: Likewise.
1873         * modules/unistr/u8-set-tests: Likewise.
1874         * modules/unistr/u8-stpcpy-tests: Likewise.
1875         * modules/unistr/u8-stpncpy-tests: Likewise.
1876         * modules/unistr/u8-strcat-tests: Likewise.
1877         * modules/unistr/u8-strcmp-tests: Likewise.
1878         * modules/unistr/u8-strcoll-tests: Likewise.
1879         * modules/unistr/u8-strcpy-tests: Likewise.
1880         * modules/unistr/u8-strdup-tests: Likewise.
1881         * modules/unistr/u8-strlen-tests: Likewise.
1882         * modules/unistr/u8-strmblen-tests: Likewise.
1883         * modules/unistr/u8-strmbtouc-tests: Likewise.
1884         * modules/unistr/u8-strncat-tests: Likewise.
1885         * modules/unistr/u8-strncmp-tests: Likewise.
1886         * modules/unistr/u8-strncpy-tests: Likewise.
1887         * modules/unistr/u8-strnlen-tests: Likewise.
1888         * modules/unistr/u8-to-u16-tests: Likewise.
1889         * modules/unistr/u8-to-u32-tests: Likewise.
1890         * modules/unistr/u8-uctomb-tests: Likewise.
1891         * modules/unistr/u16-check-tests: Likewise.
1892         * modules/unistr/u16-chr-tests: Likewise.
1893         * modules/unistr/u16-cmp-tests: Likewise.
1894         * modules/unistr/u16-cmp2-tests: Likewise.
1895         * modules/unistr/u16-cpy-alloc-tests: Likewise.
1896         * modules/unistr/u16-cpy-tests: Likewise.
1897         * modules/unistr/u16-mblen-tests: Likewise.
1898         * modules/unistr/u16-mbsnlen-tests: Likewise.
1899         * modules/unistr/u16-mbtouc-tests: Likewise.
1900         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
1901         * modules/unistr/u16-mbtoucr-tests: Likewise.
1902         * modules/unistr/u16-move-tests: Likewise.
1903         * modules/unistr/u16-next-tests: Likewise.
1904         * modules/unistr/u16-prev-tests: Likewise.
1905         * modules/unistr/u16-set-tests: Likewise.
1906         * modules/unistr/u16-stpcpy-tests: Likewise.
1907         * modules/unistr/u16-stpncpy-tests: Likewise.
1908         * modules/unistr/u16-strcat-tests: Likewise.
1909         * modules/unistr/u16-strcmp-tests: Likewise.
1910         * modules/unistr/u16-strcoll-tests: Likewise.
1911         * modules/unistr/u16-strcpy-tests: Likewise.
1912         * modules/unistr/u16-strdup-tests: Likewise.
1913         * modules/unistr/u16-strlen-tests: Likewise.
1914         * modules/unistr/u16-strmblen-tests: Likewise.
1915         * modules/unistr/u16-strmbtouc-tests: Likewise.
1916         * modules/unistr/u16-strncat-tests: Likewise.
1917         * modules/unistr/u16-strncmp-tests: Likewise.
1918         * modules/unistr/u16-strncpy-tests: Likewise.
1919         * modules/unistr/u16-strnlen-tests: Likewise.
1920         * modules/unistr/u16-to-u32-tests: Likewise.
1921         * modules/unistr/u16-to-u8-tests: Likewise.
1922         * modules/unistr/u16-uctomb-tests: Likewise.
1923         * modules/unistr/u32-check-tests: Likewise.
1924         * modules/unistr/u32-chr-tests: Likewise.
1925         * modules/unistr/u32-cmp-tests: Likewise.
1926         * modules/unistr/u32-cmp2-tests: Likewise.
1927         * modules/unistr/u32-cpy-alloc-tests: Likewise.
1928         * modules/unistr/u32-cpy-tests: Likewise.
1929         * modules/unistr/u32-mblen-tests: Likewise.
1930         * modules/unistr/u32-mbsnlen-tests: Likewise.
1931         * modules/unistr/u32-mbtouc-tests: Likewise.
1932         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
1933         * modules/unistr/u32-mbtoucr-tests: Likewise.
1934         * modules/unistr/u32-move-tests: Likewise.
1935         * modules/unistr/u32-next-tests: Likewise.
1936         * modules/unistr/u32-prev-tests: Likewise.
1937         * modules/unistr/u32-set-tests: Likewise.
1938         * modules/unistr/u32-stpcpy-tests: Likewise.
1939         * modules/unistr/u32-stpncpy-tests: Likewise.
1940         * modules/unistr/u32-strcat-tests: Likewise.
1941         * modules/unistr/u32-strcmp-tests: Likewise.
1942         * modules/unistr/u32-strcoll-tests: Likewise.
1943         * modules/unistr/u32-strcpy-tests: Likewise.
1944         * modules/unistr/u32-strdup-tests: Likewise.
1945         * modules/unistr/u32-strlen-tests: Likewise.
1946         * modules/unistr/u32-strmblen-tests: Likewise.
1947         * modules/unistr/u32-strmbtouc-tests: Likewise.
1948         * modules/unistr/u32-strncat-tests: Likewise.
1949         * modules/unistr/u32-strncmp-tests: Likewise.
1950         * modules/unistr/u32-strncpy-tests: Likewise.
1951         * modules/unistr/u32-strnlen-tests: Likewise.
1952         * modules/unistr/u32-to-u16-tests: Likewise.
1953         * modules/unistr/u32-to-u8-tests: Likewise.
1954         * modules/unistr/u32-uctomb-tests: Likewise.
1955         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
1956         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
1957         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
1958         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
1959         * modules/uniwidth/u8-strwidth-tests: Likewise.
1960         * modules/uniwidth/u8-width-tests: Likewise.
1961         * modules/uniwidth/u16-strwidth-tests: Likewise.
1962         * modules/uniwidth/u16-width-tests: Likewise.
1963         * modules/uniwidth/u32-strwidth-tests: Likewise.
1964         * modules/uniwidth/u32-width-tests: Likewise.
1965         * modules/uniwidth/width-tests: Likewise.
1966
1967 2010-05-18  Richard Jones  <rjones@redhat.com>
1968
1969         doc: users.txt: list hivex
1970         * users.txt: Add hivex.
1971
1972 2010-05-18  Richard Jones  <rjones@redhat.com>
1973
1974         doc: users.txt: list febootstrap
1975         * users.txt: Add febootstrap.
1976
1977 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
1978
1979         bootstrap: fix an error when gnulib is not used as a git submodule
1980         * build-aux/bootstrap (gnulib_path): If its length is zero then
1981         assign "gnulib" to it.
1982         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
1983
1984 2010-05-16  Bruno Haible  <bruno@clisp.org>
1985
1986         Avoid autoconf warnings about AM_ICONV.
1987         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
1988         2.64.
1989
1990 2010-05-16  Bruno Haible  <bruno@clisp.org>
1991
1992         absolute-header: Make the macro usable in more situations.
1993         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
1994         from gl_ABSOLUTE_HEADER.
1995         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
1996
1997 2010-05-16  James Youngman  <jay@gnu.org>
1998
1999         doc: update users.txt
2000         * users.txt: Add CSSC.
2001
2002 2010-05-16  Jim Meyering  <meyering@redhat.com>
2003
2004         init.sh: fix an error in the previous change; add more comments
2005         * tests/init.sh: Compare exit code in loop against 9, not 2.
2006         Patch by Bruno Haible.
2007         Make the two tests more similar by adding an empty "then" clause.
2008         Add comments.
2009
2010         init.sh: avoid unnecessary shell re-exec
2011         * tests/init.sh: Improve the re-exec-required check to first test the
2012         current shell.  If it passes the test, do not search for a shell that
2013         does pass, and do not re-exec.  This test is particularly contorted to
2014         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
2015         of $(...) evokes a syntax error and causes immediate shell exit with
2016         status 2.  Bruno Haible reported that the re-exec made it impossible
2017         to single-step through any init.sh-using script.
2018
2019 2010-05-16  Bruno Haible  <bruno@clisp.org>
2020
2021         Fix collision between gnulib's and libintl's printf replacements.
2022         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
2023         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
2024         (printf): When using GNU C, map the __printf__ function to rpl_printf
2025         via __asm__. When not using GNU C, define rpl_printf instead of
2026         __printf__.
2027         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
2028         commit.
2029         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
2030         commit.
2031         * m4/asm-underscore.m4: New file.
2032         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
2033         * modules/stdio (Files): Add m4/asm-underscore.m4.
2034         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
2035         Reported by Ben Pfaff.
2036
2037 2010-05-16  Bruno Haible  <bruno@clisp.org>
2038
2039         verify: Avoid skipping the test on openSUSE 11.0.
2040         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
2041
2042 2010-05-13  Bruno Haible  <bruno@clisp.org>
2043
2044         Avoid useless warnings from G++.
2045         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
2046         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
2047         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
2048
2049 2010-05-11  Jim Meyering  <meyering@redhat.com>
2050
2051         maint.mk: tweak preceding change
2052         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
2053         regexps tighter by anchoring at EOL, and make the new group "shy"
2054         for slightly decreased overhead.
2055
2056 2010-05-11  Eric Blake  <eblake@redhat.com>
2057
2058         maint.mk: gnulib doesn't guarantee NSIG
2059         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
2060
2061 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
2062
2063         test-pwrite.c: Remove unused variable declaration.
2064         * tests/test-pwrite.c (main): Remove read_buf declaration.
2065
2066         Remove useless test-pwrite.sh file.
2067         * tests/test-pwrite.sh: Delete file.
2068         * modules/pwrite-tests: Remove references.
2069         Reported by Bruno Haible.
2070
2071 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
2072
2073         init.sh: fix a typo
2074         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
2075
2076 2010-05-10  Jim Meyering  <meyering@redhat.com>
2077
2078         maint.mk: avoid using a temporary file in the always-defined-macros check
2079         * top/maint.mk (.re-defmac): Remove rule.
2080         (gl_trap_): Remove definition.
2081         (sc_prohibit_always-defined_macros): Rewrite not to create and
2082         depend on a temporary file.  Instead, depend on GNU grep's ability
2083         to read a list of regular expressions from stdin when given "-f -".
2084
2085 2010-05-09  Bruno Haible  <bruno@clisp.org>
2086
2087         Update to GNU gettext 0.18, part 1.
2088         * m4/gettext.m4: Update to GNU gettext 0.18.
2089         * m4/intl.m4: Likewise.
2090         * m4/po.m4: Likewise.
2091         * modules/gettext (Files): Add m4/fcntl-o.m4.
2092         (configure.ac): Require gettext infrastructure from version 0.18.
2093
2094 2010-05-09  Jim Meyering  <meyering@redhat.com>
2095
2096         init.sh: enable MALLOC_PERTURB_
2097         * tests/init.sh: Enable glibc's malloc-perturbing option.
2098
2099         maint.mk: improve sc_cross_check_PATH_usage_in_tests
2100         With my recent change in init.sh from the two-line form:
2101             -#   : ${srcdir=.}
2102             -#   . "$srcdir/init.sh"; path_prepend_ .
2103             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
2104         I noticed that using the one-line form would cause this test
2105         to fail with a false-positive, or to stop working altogether,
2106         depending on whether help-version changed or all the tests did.
2107         * top/maint.mk (_hv_regex): Remove this definition.
2108         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
2109         (_hv_regex_strong): Use a stronger regex to check for conformance.
2110         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
2111         Give a separate diagnostic for lack of conforming use.
2112
2113         maint.mk: prohibit definition of symbols defined by gnulib
2114         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
2115         definition of symbols defined by gnulib.
2116
2117 2010-05-09  Bruno Haible  <bruno@clisp.org>
2118
2119         acl: Avoid test failure on Cygwin-hosted mingw.
2120         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
2121
2122 2010-05-09  Bruno Haible  <bruno@clisp.org>
2123
2124         error: Use system's fcntl function.
2125         * lib/error.c (fcntl): Undefine.
2126
2127 2010-05-09  Jim Meyering  <meyering@redhat.com>
2128
2129         verify: adjust formatting to be more consistent
2130         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
2131         argument-list '('s, and after one comma.
2132
2133 2010-05-09  Bruno Haible  <bruno@clisp.org>
2134
2135         error: More reliable output on mingw.
2136         * lib/error.c: Include <windows.h>.
2137         (is_open): New function.
2138         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
2139         defined.
2140
2141 2010-05-09  Bruno Haible  <bruno@clisp.org>
2142
2143         vasnprintf: Fix syntax errors in libintl build on mingw.
2144         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
2145         pad_ourselves and prec_ourselves after use.
2146
2147 2010-05-08  Bruno Haible  <bruno@clisp.org>
2148
2149         * lib/config.charset: Update comments for Cygwin 1.7.
2150         * lib/localcharset.c: Likewise.
2151
2152 2010-05-07  Jim Meyering  <meyering@redhat.com>
2153
2154         init.sh: improve comments
2155         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
2156         . "${srcdir=.}/init.sh"; path_prepend_ .
2157         Add a note about path_prepend_ and the alternative of using
2158         TESTS_ENVIRONMENT.
2159
2160 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
2161
2162         exclude: Unescape hashed patterns in wildcard mode.
2163         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
2164         to the hash list.
2165         * tests/test-exclude8.sh: New test case.
2166         * modules/exclude-tests: Add new test.
2167
2168 2010-05-05  Eric Blake  <eblake@redhat.com>
2169
2170         verify: automate tests
2171         * modules/verify-tests: New module.
2172         * tests/test-verify.sh: New file.
2173         * tests/test-verify.c: Guard each negative test with a unique id.
2174         Also avoid warning about unused left hand of comma expressions.
2175
2176 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
2177
2178         Further improvements to verify.h, suggested by Eric Blake.
2179         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
2180         the GL_* versions, to avoid collision with OpenGL.
2181         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
2182         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
2183         than testing merely whether it's defined.
2184
2185         Modify verify.h to pacify gcc -Wredundant_decls.
2186         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
2187         These use the prefix "GL_" since they're likely to be useful elsewhere.
2188         We may need to break them out into a different .h file.
2189         (__COUNTER__): Define to 0 if the compiler doesn't support it.
2190         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
2191         of verify_function__.
2192
2193 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
2194
2195         Tests for module pwrite.
2196         * modules/pwrite-tests: New file.
2197         * tests/test-pwrite.sh: New file.
2198         * tests/test-pwrite.c: New file.
2199
2200         New module pwrite.
2201         * lib/unistd.in.h (pwrite): New declaration.
2202         * lib/pwrite.c: New file, from glibc with modifications.
2203         * m4/pwrite.m4: New file.
2204         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
2205         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
2206         REPLACE_PWRITE.
2207         * modules/pwrite: New file.
2208         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
2209         REPLACE_PWRITE.
2210         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
2211         * doc/posix-functions/pwrite.texi: Mention the new module.
2212
2213 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
2214
2215         pread: Update documentation.
2216         * doc/posix-functions/pread.texi: Mention the 'pread' module.
2217
2218 2010-05-04  Eric Blake  <eblake@redhat.com>
2219
2220         docs: update cygwin progress
2221         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
2222         this bug.
2223         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
2224         Added in cygwin 1.7.2.
2225         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
2226         Likewise.
2227         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
2228         Likewise.
2229         * doc/glibc-functions/dup3.texi (dup3): Likewise.
2230         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
2231         * doc/glibc-functions/accept4.texi (accept4): Likewise.
2232         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
2233         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
2234         Mention nproc module.
2235         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
2236         bug in cygwin 1.7.5 addition.
2237         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
2238         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
2239         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
2240         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
2241         1.7.5.
2242         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
2243         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
2244         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
2245         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
2246         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
2247         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
2248         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
2249         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
2250         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
2251         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
2252         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
2253         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
2254         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
2255         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
2256         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
2257         Likewise.
2258         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
2259         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
2260         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
2261         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
2262         Likewise.
2263         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
2264         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
2265         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
2266         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
2267         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
2268         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
2269         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
2270         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
2271         Likewise.
2272         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
2273         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
2274         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
2275         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
2276         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
2277         Likewise.
2278         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
2279         Likewise.
2280         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
2281         Likewise.
2282         * doc/glibc-functions/xdrrec_endofrecord.texi
2283         (xdrrec_endofrecord): Likewise.
2284         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
2285         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
2286         Likewise.
2287         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
2288         Likewise.
2289
2290 2010-05-04  Jim Meyering  <meyering@redhat.com>
2291
2292         gendocs.sh: make its "-s FILE" option more useful
2293         * build-aux/gendocs.sh: When honoring the -s FILE option, update
2294         $PACKAGE to reflect the probably-different basename of "FILE".
2295
2296 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
2297
2298         bootstrap: don't ignore download_po_files failure
2299         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
2300         failure.
2301
2302 2010-05-03  Jim Meyering  <meyering@redhat.com>
2303
2304         maint.mk: allow to pass options to gendocs.sh
2305         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
2306         (gendocs_options_): New overridable variable.
2307
2308         gnu-web-doc-update: don't ignore configure or build failure
2309         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
2310
2311         announce-gen: backslash-escape '@'s in --help output
2312         * build-aux/announce-gen: Fix syntax errors.
2313
2314         maint.mk, announce-gen: allow project-specific announcement mail headers
2315         * top/maint.mk (translation_project_): Define default.
2316         (announcement_Cc_, announcement_mail_headers_): Likewise.
2317         (announcement): Invoke announce-gen with new --mail-headers option.
2318         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
2319
2320         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
2321         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
2322         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
2323         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
2324         line in the "err2" output file when running "make check" in verbose
2325         mode (i.e., with set -x enabled).
2326
2327 2010-05-03  Bruno Haible  <bruno@clisp.org>
2328
2329         wctob: Fix for weird platforms.
2330         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
2331         argument value.
2332
2333 2010-05-03  Jim Meyering  <meyering@redhat.com>
2334
2335         maint.mk: prohibit unwarranted use of <strings.h>
2336         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
2337         strings.h in a file that does not also use strcasecmp, strncasecmp,
2338         ffs or ffsll.
2339
2340         maint.mk: remove obsolete comments
2341         * top/maint.mk: Remove stale, commented-out rules.
2342
2343 2010-05-02  Bruno Haible  <bruno@clisp.org>
2344
2345         wcwidth: Declare also when it's aliased.
2346         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
2347         macro.
2348
2349 2010-05-02  Bruno Haible  <bruno@clisp.org>
2350
2351         Fix regression from 2010-04-25.
2352         * gnulib-tool (func_modules_transitive_closure): Check the status of
2353         all modules, not only of the tests that are of the form foo-tests where
2354         foo is a module.
2355
2356 2010-05-02  Bruno Haible  <bruno@clisp.org>
2357
2358         wctob: Work around nasty Cygwin 1.7.2 bug.
2359         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
2360         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
2361
2362 2010-05-01  Bruno Haible  <bruno@clisp.org>
2363
2364         fpurge: Sharper test.
2365         * tests/test-fpurge.c (main): Add one more ftell check.
2366         * modules/fpurge-tests (Depends-on): Add ftell.
2367         Suggested by Eric Blake.
2368
2369 2010-05-01  Bruno Haible  <bruno@clisp.org>
2370
2371         ftello: Another test.
2372         * tests/test-ftello3.c: New file.
2373         * modules/ftello-tests (Files): Add it.
2374         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
2375         MOSTLYCLEANFILES.
2376
2377         ftell: Another test.
2378         * tests/test-ftell3.c: New file.
2379         * modules/ftell-tests (Files): Add it.
2380         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
2381         MOSTLYCLEANFILES.
2382
2383 2010-05-01  Bruno Haible  <bruno@clisp.org>
2384
2385         ftell, ftello: Work around Solaris bug.
2386         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
2387         * lib/ftello.c: Include stdio-impl.h.
2388         (ftello): On Solaris, when _IOWRT is set, compute the result without
2389         looking at _IOREAD.
2390         * modules/ftello (Files): Add lib/stdio-impl.h.
2391         * doc/posix-functions/ftell.texi: Mention Solaris bug.
2392         * doc/posix-functions/ftello.texi: Likewise.
2393         Reported by Eric Blake.
2394
2395 2010-05-01  Bruno Haible  <bruno@clisp.org>
2396
2397         freading: Adapt to special meaning of _IOREAD flag on Solaris.
2398         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
2399         the _IOWRT flag is also set.
2400
2401 2010-05-01  Bruno Haible  <bruno@clisp.org>
2402
2403         Fix doc about a HP-UX stdio bug.
2404         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
2405         * doc/posix-functions/ftello.texi: Likewise.
2406
2407 2010-05-01  Bruno Haible  <bruno@clisp.org>
2408
2409         lseek test: Fix failure on Solaris.
2410         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
2411         output.
2412
2413 2010-04-30  Jim Meyering  <meyering@redhat.com>
2414
2415         bootstrap: don't ignore failure to generate po*/Makevars
2416         * build-aux/bootstrap (with_gettext): Don't ignore failure
2417         to create po/Makevars or runtime-po/Makevars.
2418
2419 2010-04-29  Eric Blake  <eblake@redhat.com>
2420
2421         headers: relax license to LGPLv2+
2422         * modules/fcntl-h (License): Relax license.
2423         * modules/getopt-posix (License): Likewise.
2424         * modules/locale (License): Likewise.
2425         * modules/math (License): Likewise.
2426         * modules/pty (License): Likewise.
2427         * modules/sched (License): Likewise.
2428         * modules/search (License): Likewise.
2429         * modules/spawn (License): Likewise.
2430         * modules/stdarg (License): Likewise.
2431         * modules/sysexits (License): Likewise.
2432
2433 2010-04-29  Jim Meyering  <meyering@redhat.com>
2434
2435         inttypes: relax license to LGPLv2+
2436         * modules/inttypes (License): Relax license.
2437
2438 2010-04-29  Simon Josefsson  <simon@josefsson.org>
2439
2440         * top/maint.mk (indent): Run twice to produce idempotent results.
2441
2442 2010-04-28  Bruno Haible  <bruno@clisp.org>
2443
2444         getdate: Generate getdate.c in the source directory.
2445         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
2446         MOSTLYCLEANFILES.
2447         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
2448
2449 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
2450
2451         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
2452         is not declared as a const *; avoid warnings in that case.
2453
2454 2010-04-28  Eric Blake  <eblake@redhat.com>
2455
2456         canonicalize-lgpl: avoid compiler warning
2457         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
2458         declaration' / 'extraneous semicolon' warning with some compilers.
2459         Reported by Andreas Gruenbacher.
2460
2461 2010-04-28  Jim Meyering  <meyering@redhat.com>
2462
2463         init.sh: ensure a more reliable exit status when exiting via trap
2464         * tests/init.sh (setup_): Don't rely on $? in signal handler.
2465         Inspired by patches from Dmitry V. Levin.
2466         Also trap on signal 3 (SIGQUIT).
2467
2468 2010-04-27  Bruno Haible  <bruno@clisp.org>
2469
2470         Update doc about utimes().
2471         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
2472         'utimens' module.
2473         Reported by Andreas Gruenbacher <agruen@suse.de>.
2474
2475 2010-04-27  Eric Blake  <eblake@redhat.com>
2476
2477         full-read, full-write: relax license
2478         * modules/full-read (License): Drop to LGPLv2+.
2479         * modules/full-write (License): Likewise.
2480         * modules/safe-read (License): Likewise.
2481         * modules/safe-write (License): Likewise.
2482
2483         pthread: mention library for linking
2484         * modules/pthread (Link): Mention $(LIB_PTHREAD).
2485
2486 2010-04-27  Jim Meyering  <meyering@redhat.com>
2487
2488         maint.mk: fix a bug introduced in last change
2489         * top/maint.mk (gl_assured_headers_): Now that all names are on
2490         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
2491         is not anchored to end of word, it should be adequate.
2492
2493         maint.mk: avoid side-effect in latest syntax-check
2494         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
2495         to run commands via $(shell...), and hence to incur cost only when
2496         the new rule is actually run.
2497
2498         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
2499         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
2500         and use that to create a regexp used to detect all #if HAVE_..._H uses.
2501         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
2502         (gl_assured_headers_, az_, AZ_): Define.
2503         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
2504
2505 2010-04-26  Jim Meyering  <jim@meyering.net>
2506             Bruno Haible  <bruno@clisp.org>
2507
2508         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
2509         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
2510         Prompted by an exchange with Gilles Espinasse.
2511
2512 2010-04-26  Jim Meyering  <meyering@redhat.com>
2513
2514         git-version-gen: aesthetic tweak
2515         * build-aux/git-version-gen: Use "$nl" rather than a literal,
2516         so that the command remains on a single line.
2517
2518 2010-04-26  Eric Blake  <eblake@redhat.com>
2519
2520         git-version-gen: allow use on EBCDIC hosts
2521         * build-aux/git-version-gen (dirty): Use literal rather than tying
2522         ourselves to ascii.
2523         Reported by Steve Goetze.
2524
2525 2010-04-25  Bruno Haible  <bruno@clisp.org>
2526
2527         netdb: Add support for GNULIB_POSIXCHECK.
2528         * lib/netdb.in.h: Include warn-on-use.h.
2529         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
2530         functions are used when GNULIB_POSIXCHECK is defined and the
2531         getaddrinfo module is not in use.
2532         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
2533         freeaddrinfo, gai_strerror, getnameinfo are declared.
2534         * modules/netdb (Depends-on): Add warn-on-use.
2535         (Makefile.am): Include warn-on-use.h in netdb.h.
2536
2537 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
2538
2539         build: avoid "make check" failure without .git/ directory
2540         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
2541         there is no .git/ directory.
2542
2543 2010-04-25  Bruno Haible  <bruno@clisp.org>
2544
2545         ptsname: Fix misuse of ttyname_r.
2546         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
2547         of errno.
2548
2549 2010-04-25  Bruno Haible  <bruno@clisp.org>
2550
2551         ttyname_r: Make it work on Solaris 10.
2552         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
2553         if the system function has the POSIX declaration. Test whether the
2554         function fails if the buffer is less than 128 bytes large.
2555         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
2556         system's ttyname_r function. Provide a reasonably large buffer.
2557         * modules/ttyname_r (Depends-on): Add extensions.
2558         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
2559
2560 2010-04-25  Bruno Haible  <bruno@clisp.org>
2561
2562         Use the 'extensions' module for some more functions on Solaris.
2563         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
2564         module.
2565         * doc/posix-functions/ctime_r.texi: Likewise.
2566         * doc/posix-functions/getgrgid_r.texi: Likewise.
2567         * doc/posix-functions/getgrnam_r.texi: Likewise.
2568         * doc/posix-functions/getpwnam_r.texi: Likewise.
2569         * doc/posix-functions/getpwuid_r.texi: Likewise.
2570         * doc/posix-functions/readdir_r.texi: Likewise.
2571         * doc/posix-functions/sigwait.texi: Likewise.
2572         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
2573         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
2574
2575 2010-04-25  Bruno Haible  <bruno@clisp.org>
2576
2577         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
2578         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
2579         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
2580         * lib/ttyname_r.c: Include <limits.h>.
2581         (ttyname_r): Define using the system's ttyname_r function, if it exists
2582         and not on Solaris.
2583         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
2584         set.
2585         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
2586         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
2587         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
2588         Reported by Simon Josefsson.
2589
2590 2010-04-25  Bruno Haible  <bruno@clisp.org>
2591
2592         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
2593         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
2594         * doc/posix-functions/ctime_r.texi: Likewise.
2595         * doc/posix-functions/getgrgid_r.texi: Likewise.
2596         * doc/posix-functions/getgrnam_r.texi: Likewise.
2597         * doc/posix-functions/getlogin_r.texi: Likewise.
2598         * doc/posix-functions/getpwnam_r.texi: Likewise.
2599         * doc/posix-functions/getpwuid_r.texi: Likewise.
2600         * doc/posix-functions/readdir_r.texi: Likewise.
2601         * doc/posix-functions/sigwait.texi: Likewise.
2602         * doc/posix-functions/ttyname_r.texi: Likewise.
2603         Reported by Simon Josefsson.
2604
2605 2010-04-25  Bruno Haible  <bruno@clisp.org>
2606
2607         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
2608         * gnulib-tool (func_usage): Document that --with-*-tests options apply
2609         also to --create-testdir.
2610         (func_acceptable): Don't consider the status of *-tests modules here.
2611         (func_modules_transitive_closure): Consider it here, before including a
2612         test module.
2613         (func_import, func_create_testdir): Set inc_all_direct_tests,
2614         inc_all_indirect_tests.
2615         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
2616         --create-testdir and --create-megatestdir.
2617
2618 2010-04-25  Bruno Haible  <bruno@clisp.org>
2619
2620         gnulib-tool: Add --without-*-tests options.
2621         * gnulib-tool (func_usage): Document the --without-*-tests options.
2622         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
2623         excl_unportable_tests): New variables.
2624         Fail if they are specified with --import or --update.
2625         (func_acceptable): Respect the excl_*_tests variables.
2626         (func_import): Set the excl_*_tests variables to empty.
2627
2628 2010-04-25  Simon Josefsson  <simon@josefsson.org>
2629             Bruno Haible  <bruno@clisp.org>
2630
2631         Work around a MacOS X 10.4 bug with openpty.
2632         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
2633         * tests/test-openpty.c (main): Close the master side explicitly.
2634
2635 2010-04-25  Bruno Haible  <bruno@clisp.org>
2636
2637         strnlen: Fix a C++ test error on MacOS X and Solaris.
2638         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
2639         the function is not declared.
2640         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
2641         Simon Josefsson.
2642
2643 2010-04-24  Bruno Haible  <bruno@clisp.org>
2644
2645         Avoid a gcc warning.
2646         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
2647         of correct type for %08lx directive.
2648         Reported by Eric Blake.
2649
2650 2010-04-24  Bruno Haible  <bruno@clisp.org>
2651
2652         vasnprintf: Correct errno value in case of out-of-memory.
2653         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
2654         or sprintf. Use the errno value from SNPRINTF or sprintf.
2655         Reported by Ian Beckwith <ianb@erislabs.net>.
2656
2657 2010-04-24  Bruno Haible  <bruno@clisp.org>
2658
2659         ansi-c++-opt: Find correct compiler when cross-compiling.
2660         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
2661         AC_CHECK_PROGS.
2662         Reported by Simon Josefsson.
2663
2664 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
2665
2666         vc-list-files: Add support for subversion
2667         * build-aux/vc-list-files: Use "svn list" to generate the list of
2668         files controlled by subversion.
2669
2670 2010-04-23  Jim Meyering  <meyering@redhat.com>
2671
2672         vc-list-files tests: convert to use init.sh
2673         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
2674         path_prepend_.
2675         Use Exit, not exit.
2676         Use skip_ rather than open coding it.
2677         Remove trap set-up and compare definitions.
2678         * tests/test-vc-list-files-git.sh: Likewise.
2679         * modules/vc-list-files-tests (Files): Add tests/init.sh.
2680
2681 2010-04-22  Simon Josefsson  <simon@josefsson.org>
2682
2683         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
2684         backup files.
2685
2686 2010-04-21  Simon Josefsson  <simon@josefsson.org>
2687
2688         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
2689
2690 2010-04-20  Eric Blake  <eblake@redhat.com>
2691
2692         tests: be robust to ignored SIGPIPE
2693         * tests/test-select-in.sh: Consume all output.
2694         * tests/test-lseek.sh: Check correct exit status, while avoiding
2695         EPIPE.
2696
2697 2010-04-20  Simon Josefsson  <simon@josefsson.org>
2698             Bruno Haible  <bruno@clisp.org>
2699
2700         visibility: Don't use -fvisibility if it leads to a warning.
2701         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
2702         yes, don't pretend that visibility works if it leads to a warning.
2703         Reported by Mike Gran <spk121@yahoo.com>.
2704
2705 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
2706
2707         * build-aux/bootstrap: Use "git -h" for testing for supported options
2708         instead of "git --help".  The short-form option only shows a summary,
2709         and doesn't layout the full man page.  Grep for the full option name
2710         in the summary, too.
2711
2712 2010-04-19  Bruno Haible  <bruno@clisp.org>
2713
2714         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
2715         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
2716         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
2717         mention of RELOCATABLE_STRIP.
2718         Reported by Sylvain Beucler <beuc@beuc.net>.
2719
2720 2010-04-19  Bruno Haible  <bruno@clisp.org>
2721
2722         * lib/diffseq.h: Fix typo in comment.
2723         Reported by Eric Blake.
2724
2725 2010-04-19  Bruno Haible  <bruno@clisp.org>
2726
2727         ioctl: Move autoconf macro to a .m4 file.
2728         * m4/ioctl.m4: New file, extracted from modules/ioctl.
2729         * modules/ioctl (Files): Add it.
2730         (configure.ac): Simply invoke gl_FUNC_IOCTL.
2731         Reported by Ian Beckwith <ianb@erislabs.net>.
2732
2733 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
2734             Bruno Haible  <bruno@clisp.org>
2735
2736         diffseq: Accommodate use-case with abstract arrays.
2737         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
2738         is not defined.
2739         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
2740         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
2741
2742 2010-04-18  Bruno Haible  <bruno@clisp.org>
2743
2744         * doc/posix-headers/stdbool.texi: More precise wording.
2745
2746 2010-04-17  Jim Meyering  <meyering@redhat.com>
2747
2748         maint.mk: use gnu-style indentation in an embedded perl script
2749         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
2750         Rename variable: s/two/last_two_bytes/
2751
2752 2010-04-16  Eric Blake  <eblake@redhat.com>
2753
2754         test-stdbool: skip test that fails with Solaris CC
2755         * tests/test-stdbool.c (f): Skip test that causes compilation
2756         error under buggy C++ compiler.
2757         * lib/stdbool.in.h: Document the limitation.
2758         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
2759
2760         setenv: allow compilation with C++
2761         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
2762         register keyword.
2763
2764         stdint: allow test to pass with C++
2765         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
2766
2767         getopt: allow compilation with C++
2768         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
2769         struct.
2770         * lib/getopt.c (_getopt_internal_r): Use correct type.
2771         Reported by Dagobert Michelson, via Joel E. Denny.
2772
2773 2010-04-16  Bruno Haible  <bruno@clisp.org>
2774
2775         Override netdb.h always.
2776         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
2777         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
2778         Reported by Ludovic Courtès <ludo@gnu.org>.
2779
2780 2010-04-15  Bruno Haible  <bruno@clisp.org>
2781
2782         openpty: Fix mistake from 2010-03-21.
2783         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
2784         Reported by Simon Josefsson.
2785
2786 2010-04-15  Eric Blake  <eblake@redhat.com>
2787
2788         test-forkpty: fix expected signature
2789         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
2790         Reported by Simon Josefsson.
2791
2792 2010-04-15  Jim Meyering  <meyering@redhat.com>
2793
2794         maint.mk: texinfo_suffix_re_: correct the default regexp
2795         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
2796
2797         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
2798         make it configurable via texinfo_suffix_re_.
2799
2800 2010-04-14  Eric Blake  <eblake@redhat.com>
2801
2802         strtok_r: relax license to LGPLv2+
2803         * modules/strtok_r (License): Relax license.
2804         Reported by Matthias Bolte.
2805
2806 2010-04-14  Simon Josefsson  <simon@josefsson.org>
2807
2808         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
2809         version 1.4.4 by default instead of requiring the libgcrypt
2810         version used during build.  This makes it possible to use the
2811         application with older but still binary compatible libgcrypt
2812         versions.
2813
2814 2010-04-13  Eric Blake  <eblake@redhat.com>
2815
2816         getopt-gnu: match recent glibc fixes and posix ruling
2817         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
2818         '+' handling, when requesting extensions.
2819         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
2820         'W;' handling.
2821         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
2822         * doc/posix-functions/getopt.texi (getopt): Document this.
2823         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
2824         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
2825         Likewise.
2826
2827         getopt: merge bug fixes from glibc
2828         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
2829         diagnostics.  Honor '+:' correctly.  Reject ';'.
2830
2831         getopt-posix: detect MacOS bug
2832         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
2833         optind when missing a required argument.
2834         * doc/posix-functions/getopt.texi (getopt): Document the bug.
2835         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
2836         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
2837         Likewise.
2838
2839         getopt-posix: avoid spurious failure on Solaris
2840         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
2841         an indicator that setting optind=1 is sufficient for reset.
2842
2843         getopt-posix: avoid spurious failure on FreeBSD
2844         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
2845         in POSIX mode, since the m4 test uses it.
2846
2847         gnulib-tool: silence warning on BSD sh
2848         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
2849
2850 2010-04-13  Jim Meyering  <meyering@redhat.com>
2851
2852         doc: users.txt: GNU patch now uses gnulib
2853         * users.txt: Add patch.
2854
2855 2010-04-12  Jim Meyering  <meyering@redhat.com>
2856
2857         maint.mk: generate more concise timing data for syntax-check rules
2858         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
2859         " done" from each line that reports a syntax-check test duration.
2860
2861 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
2862
2863         git-version-gen: use "git update-index..." rather than "git status"
2864         * build-aux/git-version-gen: Use git update-index --refresh, not
2865         "git status".  With some versions of git, "git status" would fail
2866         to update the index and result in an unwarranted "-dirty" suffix.
2867
2868 2010-04-11  Jim Meyering  <meyering@redhat.com>
2869
2870         openat: correct formatting (no semantic change)
2871         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
2872         Suggested by Bruno Haible.
2873
2874 2010-04-11  Bruno Haible  <bruno@clisp.org>
2875
2876         Stricter declaration checking in testdirs.
2877         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
2878         If for_tests is true, augment AM_CPPFLAGS to define
2879         GNULIB_STRICT_CHECKING.
2880         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
2881         GNULIB_STRICT_CHECKING is defined, verify that the function is
2882         declared.
2883
2884 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
2885             Bruno Haible  <bruno@clisp.org>
2886
2887         libunistring: Improve configure output.
2888         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
2889         Don't say "consider installing GNU libunistring" when checking again
2890         with libiconv.
2891
2892 2010-04-11  Bruno Haible  <bruno@clisp.org>
2893
2894         libunistring: Correct value of $LTLIBUNISTRING.
2895         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
2896         correct the value of $LTLIBUNISTRING.
2897
2898 2010-04-11  Bruno Haible  <bruno@clisp.org>
2899
2900         havelib: Add static libraries to LIBS in the right order.
2901         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
2902         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
2903
2904 2010-04-11  Bruno Haible  <bruno@clisp.org>
2905
2906         libunistring: Detect libunistring also when it depends on libiconv.
2907         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
2908         the second AC_LIB_HAVE_LINKFLAGS invocation.
2909
2910 2010-04-11  James Youngman  <jay@gnu.org>
2911
2912         close-stream: declare local scalars to be "const"
2913         * lib/close-stream.c (close_stream): Make boolean variables const
2914         to document the fact that we set but do not change them.
2915
2916 2010-04-11  Bruno Haible  <bruno@clisp.org>
2917
2918         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
2919
2920 2010-04-11  Jim Meyering  <meyering@redhat.com>
2921
2922         maint.mk: don't include dist-check.mk
2923         * top/maint.mk: Remove bogus include directive.
2924
2925         maint.mk: improve empty-line-at-EOF check
2926         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
2927         solution, rather than tail+Perl-based one.  The latter would read
2928         a few kilobytes from the end of each file, and did not handle empty
2929         files properly.
2930
2931         maint.mk: print the elapsed time for each syntax-check rule
2932         * top/maint.mk (sc_m_rules_): Save start time in a file.
2933         (sc_z_rules_): New rules: remove temp file and print elapsed time.
2934         (local-check): Interpose the .z rules
2935
2936 2010-04-11  Jim Meyering  <meyering@redhat.com>
2937
2938         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
2939         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
2940         empty file with one that ends in an empty line.
2941
2942 2010-04-10  Bruno Haible  <bruno@clisp.org>
2943
2944         mkdir: Make it work on mingw64.
2945         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
2946         * lib/mkdir.c: Update comment.
2947         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
2948
2949 2010-04-10  Bruno Haible  <bruno@clisp.org>
2950
2951         Don't override improved macro from newer autoconf.
2952         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
2953         autoconf >= 2.62.
2954         Reported by Joel E. Denny <jdenny@clemson.edu>.
2955
2956 2010-04-10  Jim Meyering  <meyering@redhat.com>
2957
2958         maint.mk: new syntax-check rule: prohibit empty lines at end of file
2959         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
2960
2961         maint.mk: correct a diagnostic
2962         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
2963         in diagnostic; now use $prohibit.
2964
2965 2010-04-10  Bruno Haible  <address@hidden>
2966
2967         fchownat: Fix a C++ test error on Solaris 8.
2968         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
2969         the function does not exist.
2970
2971 2010-04-10  Bruno Haible  <bruno@clisp.org>
2972
2973         vasnprintf: Add more tests.
2974         * tests/test-vasnprintf-posix.c: Include <errno.h>.
2975         (test_function): Test converting an invalid wide string.
2976
2977         vasnprintf: Correct handling of unconvertible wide string arguments.
2978         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
2979         VASNPRINTF.
2980         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
2981         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
2982         smaller than the expected maximum need for the directive. Set errno to
2983         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
2984         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
2985         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
2986         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
2987         * modules/vasnprintf (Files): Add m4/printf.m4.
2988         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
2989
2990 2010-04-10  Bruno Haible  <bruno@clisp.org>
2991
2992         vasnprintf: Fix crash in %ls directive.
2993         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
2994         string is passed as argument to %ls, with no precision and no width.
2995         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
2996
2997 2010-04-10  Bruno Haible  <bruno@clisp.org>
2998
2999         vasnprintf: Fix multiple test failures on mingw.
3000         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
3001         _snprintf, or snwprintf, not _snwprintf.
3002
3003 2010-04-10  Bruno Haible  <bruno@clisp.org>
3004
3005         write: Fix a C++ test error on mingw.
3006         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
3007
3008 2010-04-10  Bruno Haible  <bruno@clisp.org>
3009
3010         vasnprintf test: Reduce code duplication.
3011         * tests/test-vasnprintf.c (test_function): New function, extracted from
3012         test_vasnprintf.
3013         (test_vasnprintf, test_asnprintf): Invoke it.
3014
3015 2010-04-10  Bruno Haible  <bruno@clisp.org>
3016
3017         strnlen: Fix warning in C++ mode on MacOS X.
3018         * lib/string.in.h (strnlen): Use the modern idiom.
3019         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
3020         defining strnlen as a macro already in <config.h>.
3021         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
3022         REPLACE_STRNLEN.
3023         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
3024         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
3025
3026 2010-04-08  James Youngman  <jay@gnu.org>
3027
3028         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
3029         the example.
3030
3031 2010-04-09  Jim Meyering  <meyering@redhat.com>
3032
3033         maint.mk: print better diagnostic when there is no $(_hv_file)
3034         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
3035         announce that when $(_hv_file) (aka help-version) does not exist.
3036
3037         init.sh: run tr in the "C" locale to avoid multibyte interpretation
3038         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
3039         not try to interpret its random input bytes.  Jarno Rajahalme reported
3040         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
3041         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
3042         (mktempd_): Likewise, just in case.
3043
3044         ftruncate: add two years to projected module removal date: 2012
3045         * m4/ftruncate.m4: Adjust comments.
3046
3047         ftruncate: mark module as obsolete; even MinGW provides it, now
3048         * modules/ftruncate (Status): Obsolete.
3049         (Notice): Say that.
3050         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
3051         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
3052
3053 2010-04-08  Bruno Haible  <bruno@clisp.org>
3054
3055         Fix side effects from tests-related modules.
3056         * modules/dprintf-posix (Comment): New section.
3057         * modules/fprintf-posix (Comment): Likewise.
3058         * modules/obstack-printf-posix (Comment): Likewise.
3059         * modules/printf-posix (Comment): Likewise.
3060         * modules/snprintf-posix (Comment): Likewise.
3061         * modules/sprintf-posix (Comment): Likewise.
3062         * modules/vasnprintf-posix (Comment): Likewise.
3063         * modules/vasprintf-posix (Comment): Likewise.
3064         * modules/vdprintf-posix (Comment): Likewise.
3065         * modules/vfprintf-posix (Comment): Likewise.
3066         * modules/vprintf-posix (Comment): Likewise.
3067         * modules/vsnprintf-posix (Comment): Likewise.
3068         * modules/vsprintf-posix (Comment): Likewise.
3069         * modules/xprintf-posix (Comment): Likewise.
3070         * modules/xvasprintf-posix (Comment): Likewise.
3071         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
3072         * modules/floorf-tests (Depends-on): Likewise.
3073         * modules/round-tests (Depends-on): Likewise.
3074         * modules/roundf-tests (Depends-on): Likewise.
3075         * modules/trunc-tests (Depends-on): Likewise.
3076         * modules/truncf-tests (Depends-on): Likewise.
3077         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
3078         'fprintf-posix' module is not present.
3079         * tests/test-floorf2.c (check): Likewise.
3080         * tests/test-trunc2.c (check): Likewise.
3081         * tests/test-truncf2.c (check): Likewise.
3082         * tests/test-round2.c (equal): Likewise.
3083         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
3084
3085 2010-04-07  Karl Berry  <karl@gnu.org>
3086
3087         * config/srclist.txt,
3088         * config/srclistvars.sh,
3089         * config/srclist-update: doc fixes.
3090
3091 2010-04-07  Jim Meyering  <meyering@redhat.com>
3092
3093         maint.mk: add a PATH crosschecking syntax-check rule
3094         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
3095         Useful if you use a test like the one in help-version (coreutils,
3096         diffutils, grep, gzip) that ensures $(VERSION) matches what is
3097         printed by prog --version.
3098
3099 2010-04-06  Bruno Haible  <bruno@clisp.org>
3100
3101         Fix link error on mingw.
3102         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
3103         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
3104
3105 2010-04-06  Bruno Haible  <bruno@clisp.org>
3106
3107         Assume rmdir exists.
3108         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
3109
3110 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
3111
3112         doc: update users.txt
3113         * users.txt: Add gcal.
3114
3115 2010-04-06  Jim Meyering  <meyering@redhat.com>
3116
3117         init.sh: simply unset TMPDIR rather than risking env -i
3118         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
3119         although it probably works fine on all Unix-based systems, some
3120         systems (Cygwin?) cannot tolerate a totally cleared environment.
3121         Suggestion from Eric Blake.
3122
3123 2010-04-06  Jim Meyering  <meyering@redhat.com>
3124
3125         init.sh: portability fix: use env's POSIX-specified -i option not -u
3126         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
3127         than unportable env -u.  Solaris 5.11's env lacks support for -u.
3128
3129 2010-04-05  Bruno Haible  <bruno@clisp.org>
3130
3131         btowc: Work around Cygwin 1.7.2 bug.
3132         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
3133         does not map NUL to 0.
3134         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
3135
3136 2010-04-05  Bruno Haible  <bruno@clisp.org>
3137
3138         Make the multithread modules work on Cygwin 1.7.2.
3139         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
3140         imported symbols can be declared weak, so that it returns "no" on
3141         Cygwin 1.7.2.
3142
3143 2010-04-05  Bruno Haible  <bruno@clisp.org>
3144
3145         Use the module 'strncat'.
3146         * modules/unistr/u8-strncat (Depends-on): Add strncat.
3147
3148         Tests for module 'strncat'.
3149         * modules/strncat-tests: New file.
3150         * tests/test-strncat.c: New file.
3151
3152         New module 'strncat'.
3153         * lib/string.in.h (strncat): New declaration.
3154         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
3155         * m4/strncat.m4: New file, based on m4/memchr.m4.
3156         * modules/strncat: New file.
3157         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
3158         is declared.
3159         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
3160         REPLACE_STRNCAT.
3161         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
3162         REPLACE_STRNCAT.
3163         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
3164         module.
3165         * tests/test-string-c++.cc: Check signature of strncat.
3166
3167 2010-04-05  Jim Meyering  <meyering@redhat.com>
3168
3169         xstrtoumax-tests: convert to use init.sh
3170         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
3171         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
3172         Use Exit, not exit.
3173         Remove uses of $EXEEXT and "./" to run a program in the current dir.
3174
3175         xstrtoimax-tests: convert to use init.sh
3176         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
3177         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
3178         Use Exit, not exit.
3179         Remove uses of $EXEEXT and "./" to run a program in the current dir.
3180
3181 2010-04-05  Bruno Haible  <bruno@clisp.org>
3182
3183         sys_socket: Avoid #define replacements in C++ mode.
3184         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
3185         warning to the function if possible, rather than #defining the symbol
3186         to a dysfunctional alias.
3187
3188 2010-04-05  Bruno Haible  <bruno@clisp.org>
3189
3190         fseeko: Fix C++ test error on mingw.
3191         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
3192         gl_FUNC_FSEEKO.
3193         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
3194         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
3195         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
3196         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
3197
3198 2010-04-05  Bruno Haible  <bruno@clisp.org>
3199
3200         duplocale: Improve test output.
3201         * tests/test-duplocale.c (main): Print reason for skipped test.
3202
3203 2010-04-05  Bruno Haible  <bruno@clisp.org>
3204
3205         Assume rmdir exists.
3206         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
3207         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
3208
3209 2010-04-05  Bruno Haible  <bruno@clisp.org>
3210
3211         Fix link error on Solaris 8 with cc.
3212         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
3213
3214 2010-04-05  Bruno Haible  <bruno@clisp.org>
3215
3216         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
3217         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
3218
3219 2010-04-05  Bruno Haible  <bruno@clisp.org>
3220
3221         vasprintf: Update documentation.
3222         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
3223
3224 2010-04-05  Bruno Haible  <bruno@clisp.org>
3225
3226         ptsname: Improve test.
3227         * tests/test-ptsname.c (main): Also try the various master names of BSD
3228         systems.
3229
3230 2010-04-05  Bruno Haible  <bruno@clisp.org>
3231
3232         memchr: Avoid a possible C++ test error.
3233         * lib/string.in.h (memchr): Provide declaration if function is missing.
3234         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
3235         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
3236         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
3237         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
3238
3239 2010-04-05  Bruno Haible  <bruno@clisp.org>
3240
3241         strtok_r: Improve idiom.
3242         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
3243         AC_LIBOBJ is used.
3244
3245 2010-04-05  Bruno Haible  <bruno@clisp.org>
3246
3247         strdup: Improve idiom.
3248         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
3249         AC_LIBOBJ is used.
3250         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
3251         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
3252         when AC_LIBOBJ is used.
3253
3254 2010-04-05  Bruno Haible  <bruno@clisp.org>
3255
3256         mbsinit, mbrtowc, wcrtomb: Improve idioms.
3257         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
3258         don't set REPLACE_MBSINIT to 1.
3259         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
3260         don't set REPLACE_MBRTOWC to 1.
3261         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
3262         exist, don't set REPLACE_MBSRTOWCS to 1.
3263         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
3264         exist, don't set REPLACE_MBSNRTOWCS to 1.
3265         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
3266         don't set REPLACE_WCRTOMB to 1.
3267         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
3268         exist, don't set REPLACE_WCSRTOMBS to 1.
3269         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
3270         exist, don't set REPLACE_WCSNRTOMBS to 1.
3271
3272 2010-04-05  Bruno Haible  <bruno@clisp.org>
3273
3274         ldexpl: Improve idiom.
3275         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
3276         make sure to set HAVE_DECL_LDEXPL to 0.
3277
3278 2010-04-05  Jim Meyering  <meyering@redhat.com>
3279
3280         xstrtol-tests: convert to use init.sh
3281         * modules/xstrtol-tests (Files): Add tests/init.sh.
3282         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
3283         Use Exit, not exit.
3284         Remove uses of $EXEEXT and "./" to run a program in the current dir.
3285
3286         atexit-tests: convert to use init.sh
3287         * modules/atexit-tests (Files): Add tests/init.sh.
3288         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
3289         Use Exit, not exit.
3290         Remove uses of $EXEEXT and "./" to run a program in the current dir.
3291
3292         init.sh: fix typo
3293         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
3294
3295         init.sh: make it easier for a test script to write to the tty, ...
3296         when using automake's parallel-tests mode.
3297         * tests/init.sh (stderr_fileno_): Define overridable variable.
3298         (warn_): New function, to use it.
3299         (fail_, skip_, framework_failure_): Use warn_.
3300
3301 2010-04-04  Bruno Haible  <bruno@clisp.org>
3302
3303         btowc: Avoid warning.
3304         * lib/btowc.c: Include <stdlib.h>.
3305         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
3306
3307 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
3308             Bruno Haible  <bruno@clisp.org>
3309
3310         wchar: Port to NetBSD 1.5.
3311         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
3312         * lib/wctype.in.h (WEOF): Likewise.
3313
3314 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
3315             Bruno Haible  <bruno@clisp.org>
3316
3317         Port extended stdio to NetBSD 1.5.
3318         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
3319         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
3320         older.
3321
3322 2010-04-04  Bruno Haible  <bruno@clisp.org>
3323
3324         string: Remove unused substitution.
3325         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
3326         HAVE_DECL_STRERROR.
3327         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
3328
3329 2010-04-04  Bruno Haible  <bruno@clisp.org>
3330
3331         strtod: Avoid a possible C++ test error.
3332         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
3333         set REPLACE_STRTOD.
3334
3335 2010-04-04  Bruno Haible  <bruno@clisp.org>
3336
3337         strerror: Update documentation.
3338         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
3339
3340 2010-04-04  Bruno Haible  <bruno@clisp.org>
3341
3342         stdio: Fix some C++ test errors on Solaris 8 with GCC.
3343         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
3344         _GL_CXXALIAS_SYS_CAST.
3345
3346 2010-04-04  Bruno Haible  <bruno@clisp.org>
3347
3348         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
3349         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
3350         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
3351         REPLACE_FREXPL to 1.
3352         * doc/posix-functions/frexpl.texi: Update documentation.
3353
3354 2010-04-04  Bruno Haible  <bruno@clisp.org>
3355
3356         math: Fix some C++ test errors on Solaris 8 and Cygwin.
3357         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
3358
3359 2010-04-04  Bruno Haible  <bruno@clisp.org>
3360
3361         Implement nanosleep for native Windows.
3362         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
3363
3364 2010-04-04  Bruno Haible  <bruno@clisp.org>
3365
3366         math: Fix some C++ test errors on Solaris 8.
3367         * lib/math.in.h (truncf, trunc): Use simpler idiom.
3368
3369 2010-04-04  Bruno Haible  <bruno@clisp.org>
3370
3371         math: Fix some C++ test errors on Cygwin.
3372         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
3373         truncl): Provide declaration if the system does not have it.
3374         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
3375         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
3376         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
3377         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
3378         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
3379         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
3380         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
3381         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
3382         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
3383         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
3384         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
3385         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
3386         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
3387         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
3388         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
3389         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
3390         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
3391         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
3392         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
3393         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
3394         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
3395         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
3396
3397 2010-04-04  Bruno Haible  <bruno@clisp.org>
3398
3399         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
3400         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
3401         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
3402         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
3403         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
3404         * m4/isinf.m4 (gl_ISINF): Likewise.
3405         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
3406
3407 2010-04-04  Bruno Haible  <bruno@clisp.org>
3408
3409         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
3410         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
3411
3412 2010-04-04  Bruno Haible  <bruno@clisp.org>
3413
3414         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
3415         * modules/tmpfile (configure.ac): Update.
3416
3417         tmpfile: Fix C++ test error on mingw.
3418         * lib/stdio.in.h (tmpfile): New declaration.
3419         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
3420         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
3421         * modules/tmpfile (Depends-on): Add stdio.
3422         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
3423         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
3424         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
3425         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
3426         REPLACE_TMPFILE.
3427         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
3428
3429 2010-04-04  Bruno Haible  <bruno@clisp.org>
3430
3431         ioctl: Fix C++ test error on mingw.
3432         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
3433         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
3434         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
3435
3436 2010-04-03  Bruno Haible  <bruno@clisp.org>
3437
3438         wcwidth: Fix C++ test error on mingw.
3439         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
3440         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
3441         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
3442
3443 2010-04-03  Bruno Haible  <bruno@clisp.org>
3444
3445         nanosleep: Fix C++ test error on mingw.
3446         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
3447         * lib/time.in.h (nanosleep): Use modern idiom.
3448         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
3449         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
3450         REPLACE_NANOSLEEP to 1.
3451         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
3452         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
3453
3454 2010-04-03  Bruno Haible  <bruno@clisp.org>
3455
3456         strptime: Fix C++ test error on mingw.
3457         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
3458         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
3459         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
3460         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
3461         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
3462         not REPLACE_STRPTIME.
3463         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
3464         REPLACE_STRPTIME.
3465
3466 2010-04-03  Bruno Haible  <bruno@clisp.org>
3467
3468         timegm: Fix C++ test error on mingw.
3469         * lib/time.in.h (timegm): Use modern idiom.
3470         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
3471         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
3472         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
3473         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
3474
3475 2010-04-03  Bruno Haible  <bruno@clisp.org>
3476
3477         timegm: Assume declaration if function exists.
3478         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
3479         if it exists. Don't clobber ac_cv_func_timegm.
3480
3481 2010-04-03  Bruno Haible  <bruno@clisp.org>
3482
3483         time_r: Fix C++ test error on mingw.
3484         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
3485         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
3486         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
3487         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
3488         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
3489
3490 2010-04-03  Bruno Haible  <bruno@clisp.org>
3491
3492         time_r: Minor updates.
3493         * modules/time_r (Description): Mention the provided functions.
3494         * lib/time_r.c: Don't include <string.h>.
3495         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
3496         * doc/posix-functions/localtime_r.texi: Likewise.
3497
3498 2010-04-03  Bruno Haible  <bruno@clisp.org>
3499
3500         time: Fix regression introduced on 2010-03-08.
3501         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
3502         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
3503
3504 2010-04-03  Jim Meyering  <meyering@redhat.com>
3505
3506         maint.mk: don't silently disable project-specific syntax-check rules
3507         * top/maint.mk (_prohibit_regexp): Define, to help people realize
3508         that they need to convert their project-specific syntax-check rules
3509         to use the new _sc_search_regexp.
3510
3511 2010-04-03  Bruno Haible  <bruno@clisp.org>
3512
3513         fchdir: Fix regression introduced on 2010-03-08.
3514         * lib/unistd.in.h (fchdir): Fix declaration.
3515         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
3516         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
3517         REPLACE_FCHDIR.
3518         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
3519         REPLACE_FCHDIR.
3520
3521 2010-04-03  Bruno Haible  <bruno@clisp.org>
3522
3523         getpagesize: Fix C++ test error on mingw.
3524         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
3525         system does not declare the function.
3526         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
3527         declared.
3528         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
3529         HAVE_DECL_GETPAGESIZE.
3530         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
3531
3532 2010-04-03  Bruno Haible  <bruno@clisp.org>
3533
3534         stdio: Make C++ tests work on mingw.
3535         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
3536         does not declare the function.
3537
3538 2010-04-03  Bruno Haible  <bruno@clisp.org>
3539
3540         ftello: Fix C++ test error on mingw.
3541         * lib/stdio.in.h (ftello): Use modern idiom.
3542         * lib/ftello.c (ftello): Renamed from rpl_ftello.
3543         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
3544         is missing and that it needs to be replaced.
3545         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
3546         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
3547         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
3548
3549 2010-04-03  Bruno Haible  <bruno@clisp.org>
3550
3551         fseeko: Fix C++ test error on mingw.
3552         * lib/stdio.in.h (fseeko): Use modern idiom.
3553         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
3554         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
3555         is missing and that it needs to be replaced.
3556         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
3557         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
3558         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
3559
3560 2010-04-03  Bruno Haible  <bruno@clisp.org>
3561
3562         mkstemp: Fix C++ test error on mingw.
3563         * lib/stdlib.in.h (mkstemp): Use modern idiom.
3564         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
3565         function is missing and that it needs to be replaced.
3566         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
3567         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
3568
3569 2010-04-03  Bruno Haible  <bruno@clisp.org>
3570
3571         stpncpy: Fix C++ test error on mingw.
3572         * lib/string.in.h (stpncpy): Use modern idiom.
3573         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
3574         function is missing and that it needs to be replaced.
3575         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
3576         REPLACE_STPNCPY.
3577         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
3578
3579 2010-04-03  Bruno Haible  <bruno@clisp.org>
3580
3581         sys_stat: Fix C++ test error on mingw.
3582         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
3583         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
3584
3585 2010-04-03  Bruno Haible  <bruno@clisp.org>
3586
3587         pty: Update doc.
3588         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
3589
3590 2010-04-03  Bruno Haible  <bruno@clisp.org>
3591
3592         unistd: Fix C++ test error on mingw.
3593         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
3594
3595 2010-04-03  Bruno Haible  <bruno@clisp.org>
3596
3597         Update doc regarding mingw.
3598         * doc/glibc-functions/openpty.texi: Update regarding mingw.
3599         * doc/glibc-functions/login_tty.texi: Likewise.
3600         * doc/glibc-functions/forkpty.texi: Likewise.
3601
3602 2010-04-03  Bruno Haible  <bruno@clisp.org>
3603
3604         stdlib: Avoid compilation failure of c-strtold on mingw.
3605         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
3606
3607 2010-04-03  Bruno Haible  <bruno@clisp.org>
3608
3609         locale: Make C++ tests work on Cygwin and mingw.
3610         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
3611         cannot provide the function.
3612         Reported by Simon Josefsson.
3613
3614 2010-04-03  Bruno Haible  <bruno@clisp.org>
3615
3616         localename: Port to MacOS X 10.6.
3617         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
3618         memory layout of the locales in MacOS X 10.6 as well.
3619         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
3620
3621 2010-04-02  Bruno Haible  <bruno@clisp.org>
3622
3623         gnulib-tool: Ensure that long-running tests are executed last.
3624         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
3625         running tests after the one for the other tests.
3626
3627 2010-04-02  Bruno Haible  <bruno@clisp.org>
3628
3629         gnulib-tool: Ensure the tests in the main directory are executed first.
3630         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
3631         start with the current directory.
3632
3633 2010-04-02  Bruno Haible  <bruno@clisp.org>
3634
3635         Tests for module 'havelib', moved here from GNU gettext.
3636         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
3637         modifications.
3638         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
3639         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
3640         with modifications.
3641         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
3642         modifications.
3643         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
3644         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
3645         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
3646         with modifications.
3647         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
3648         with modifications.
3649         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
3650         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
3651         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
3652         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
3653         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
3654         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
3655         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
3656         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
3657         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
3658         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
3659         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
3660         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
3661         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
3662         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
3663         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
3664         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
3665         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
3666         with modifications.
3667         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
3668         with modifications.
3669         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
3670         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
3671         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
3672         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
3673         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
3674         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
3675         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
3676         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
3677         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
3678         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
3679         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
3680         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
3681         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
3682         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
3683         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
3684         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
3685         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
3686         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
3687         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
3688         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
3689         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
3690         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
3691         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
3692         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
3693         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
3694         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
3695         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
3696         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
3697         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
3698         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
3699         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
3700         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
3701         * tests/havelib/rpathx/rpathx.c: New file, from
3702         gettext/autoconf-lib-link.
3703         * tests/havelib/rpathx/Makefile.am: New file, from
3704         gettext/autoconf-lib-link.
3705         * tests/havelib/rpathx/configure.ac: New file, from
3706         gettext/autoconf-lib-link with modifications.
3707         * tests/havelib/rpathy/rpathy.c: New file, from
3708         gettext/autoconf-lib-link.
3709         * tests/havelib/rpathy/Makefile.am: New file, from
3710         gettext/autoconf-lib-link.
3711         * tests/havelib/rpathy/configure.ac: New file, from
3712         gettext/autoconf-lib-link with modifications.
3713         * tests/havelib/rpathz/rpathz.c: New file, from
3714         gettext/autoconf-lib-link.
3715         * tests/havelib/rpathz/Makefile.am: New file, from
3716         gettext/autoconf-lib-link.
3717         * tests/havelib/rpathz/configure.ac: New file, from
3718         gettext/autoconf-lib-link with modifications.
3719         * tests/havelib/rpathlx/usex.c: New file, from
3720         gettext/autoconf-lib-link.
3721         * tests/havelib/rpathlx/Makefile.am: New file, from
3722         gettext/autoconf-lib-link.
3723         * tests/havelib/rpathlx/configure.ac: New file, from
3724         gettext/autoconf-lib-link with modifications.
3725         * tests/havelib/rpathly/usey.c: New file, from
3726         gettext/autoconf-lib-link.
3727         * tests/havelib/rpathly/Makefile.am: New file, from
3728         gettext/autoconf-lib-link.
3729         * tests/havelib/rpathly/configure.ac: New file, from
3730         gettext/autoconf-lib-link with modifications.
3731         * tests/havelib/rpathlz/usez.c: New file, from
3732         gettext/autoconf-lib-link.
3733         * tests/havelib/rpathlz/Makefile.am: New file, from
3734         gettext/autoconf-lib-link.
3735         * tests/havelib/rpathlz/configure.ac: New file, from
3736         gettext/autoconf-lib-link with modifications.
3737         * tests/havelib/rpathlyx/usey.c: New file, from
3738         gettext/autoconf-lib-link.
3739         * tests/havelib/rpathlyx/Makefile.am: New file, from
3740         gettext/autoconf-lib-link.
3741         * tests/havelib/rpathlyx/configure.ac: New file, from
3742         gettext/autoconf-lib-link with modifications.
3743         * tests/havelib/rpathlzyx/usez.c: New file, from
3744         gettext/autoconf-lib-link.
3745         * tests/havelib/rpathlzyx/Makefile.am: New file, from
3746         gettext/autoconf-lib-link.
3747         * tests/havelib/rpathlzyx/configure.ac: New file, from
3748         gettext/autoconf-lib-link with modifications.
3749         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
3750         with modifications.
3751
3752 2010-04-02  Bruno Haible  <bruno@clisp.org>
3753
3754         gnulib-tool: Create distributed built sources also for the tests.
3755         * gnulib-tool (func_create_testdir): Also generate distributed built
3756         sources in the tests directory.
3757
3758 2010-04-02  Bruno Haible  <bruno@clisp.org>
3759
3760         gnulib-tool: Obey user's environment variables.
3761         * gnulib-tool (func_create_testdir): When creating built sources,
3762         respect the environment variables for autoconf, automake, etc. given by
3763         the user.
3764
3765 2010-04-02  Bruno Haible  <bruno@clisp.org>
3766
3767         gnulib-tool: Provide the value of --m4-base to modules.
3768         * gnulib-tool (func_import, func_create_testdir): Emit a definition
3769         of gl_m4_base.
3770
3771 2010-04-02  Eric Blake  <eblake@redhat.com>
3772
3773         maint.mk: fix some fallout
3774         * NEWS: Document the incompatible change, and its effect on cfg.mk.
3775         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
3776
3777 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
3778
3779         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
3780         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
3781         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
3782         (sc_cast_of_x_alloc_return_value): Likewise.
3783         (sc_cast_of_alloca_return_value): Likewise.
3784         (sc_space_tab): Likewise.
3785         (sc_prohibit_atoi_atof): Likewise.
3786         (sc_prohibit_magic_number_exit): Likewise.
3787         (sc_error_exit_success): Likewise.
3788         (sc_file_system): Likewise.
3789         (sc_prohibit_have_config_h): Likewise.
3790         (sc_require_config_h): Likewise.
3791         (sc_prohibit_HAVE_MBRTOWC): Likewise.
3792         (sc_obsolete_symbols): Likewise.
3793         (sc_changelog): Likewise.
3794         (sc_program_name): Likewise.
3795         (sc_the_the): Likewise.
3796         (sc_trailing_blank): Likewise.
3797         (sc_two_space_separator_in_usage): Likewise.
3798         (sc_useless_cpp_parens): Likewise.
3799         (sc_GPL_version): Likewise.
3800         (sc_GFDL_version): Likewise.
3801         (sc_texinfo_acronym): Likewise.
3802         (sc_prohibit_cvs_keyword): Likewise.
3803         (sc_prohibit_stat_st_blocks): Likewise.
3804         (sc_prohibit_S_IS_definition): Likewise.
3805         (sc_redundant_const): Likewise.
3806         (sc_makefile_TAB_only_indentation): Likewise.
3807         (sc_m4_quote_check): Likewise.
3808         (sc_makefile_path_separator_check): Likewise.
3809         (sc_copyright_check): Likewise.
3810         (sc_Wundef_boolean): Likewise.
3811         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
3812
3813         maint.mk: match 0 or more whitespace-before-function-call '('
3814         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
3815         that have zero or two-and-more spaces between the function name
3816         and the open parenthesis.
3817         (sc_error_message_warn_fatal): Likewise.
3818         (sc_error_message_uppercase): Likewise.
3819         (sc_error_message_period): Likewise.
3820
3821 2010-03-31  Eric Blake  <eblake@redhat.com>
3822
3823         maint.mk: check for [ as well as test
3824         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
3825         Based on a libvirt report by Matthias Bolte.
3826
3827         gnumakefile: don't squelch _version output
3828         * top/GNUmakefile (_version): Create one-shot dependency rather
3829         than using $(shell) when version must be regenerated.
3830         (_autoreconf): Run verbosely, by default.
3831
3832         sys_time: avoid compiler warnings
3833         * lib/sys_time.in.h (includes): Ensure gcc pragma is
3834         unconditional, fixing regression from 2010-03-29.
3835         Reported by Simon Josefsson.
3836
3837 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
3838
3839         maint.mk: s/_header_without_use/_sc_header_without_use/
3840         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
3841         (sc_prohibit_assert_without_use): Use the new name.
3842         (sc_prohibit_close_stream_without_use): Likewise.
3843         (sc_prohibit_getopt_without_use): Likewise.
3844         (sc_prohibit_quotearg_without_use): Likewise.
3845         (sc_prohibit_quote_without_use): Likewise.
3846         (sc_prohibit_long_options_without_use): Likewise.
3847         (sc_prohibit_inttostr_without_use): Likewise.
3848         (sc_prohibit_ignore_value_without_use): Likewise.
3849         (sc_prohibit_error_without_use): Likewise.
3850         (sc_prohibit_xalloc_without_use): Likewise.
3851         (sc_prohibit_hash_without_use): Likewise.
3852         (sc_prohibit_hash_pjw_without_use): Likewise.
3853         (sc_prohibit_safe_read_without_use): Likewise.
3854         (sc_prohibit_argmatch_without_use): Likewise.
3855         (sc_prohibit_canonicalize_without_use): Likewise.
3856         (sc_prohibit_root_dev_ino_without_use): Likewise.
3857         (sc_prohibit_openat_without_use): Likewise.
3858         (sc_prohibit_c_ctype_without_use): Likewise.
3859         (sc_prohibit_signal_without_use): Likewise.
3860         (sc_prohibit_intprops_without_use): Likewise.
3861
3862 2010-03-30  Eric Blake  <eblake@redhat.com>
3863
3864         maint: improve module indicators
3865         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
3866         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
3867         columns, and avoid extra macro expansion.
3868
3869         fdopendir: work around FreeBSD bug
3870         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
3871         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
3872         * modules/dirent (Makefile.am): Substitute it.
3873         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
3874         declaration.
3875         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
3876         fix.
3877         Reported by Christian Weisgerber <naddy@mips.inka.de>.
3878
3879 2010-03-29  Bruno Haible  <bruno@clisp.org>
3880
3881         Emit #pragma system_header after the inclusion guard, not before.
3882         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
3883         guard that spans the entire file, not before. This enables an
3884         optimization in GCC's preprocessor.
3885         * lib/ctype.in.h: Likewise.
3886         * lib/dirent.in.h: Likewise.
3887         * lib/errno.in.h: Likewise.
3888         * lib/float.in.h: Likewise.
3889         * lib/getopt.in.h: Likewise.
3890         * lib/iconv.in.h: Likewise.
3891         * lib/langinfo.in.h: Likewise.
3892         * lib/locale.in.h: Likewise.
3893         * lib/math.in.h: Likewise.
3894         * lib/netdb.in.h: Likewise.
3895         * lib/netinet_in.in.h: Likewise.
3896         * lib/pty.in.h: Likewise.
3897         * lib/sched.in.h: Likewise.
3898         * lib/se-selinux.in.h: Likewise.
3899         * lib/search.in.h: Likewise.
3900         * lib/spawn.in.h: Likewise.
3901         * lib/stdarg.in.h: Likewise.
3902         * lib/stdint.in.h: Likewise.
3903         * lib/string.in.h: Likewise.
3904         * lib/strings.in.h: Likewise.
3905         * lib/sys_file.in.h: Likewise.
3906         * lib/sys_ioctl.in.h: Likewise.
3907         * lib/sys_time.in.h: Likewise.
3908         * lib/sys_times.in.h: Likewise.
3909         * lib/sys_utsname.in.h: Likewise.
3910         * lib/sys_wait.in.h: Likewise.
3911         * lib/sysexits.in.h: Likewise.
3912         * lib/wctype.in.h: Likewise.
3913
3914 2010-03-28  James Youngman  <jay@gnu.org>
3915
3916         save-cwd: don't leak a file descriptor when the caller execs.
3917         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
3918         saved file descriptor.
3919         * modules/save-cwd (Depends-on): Depend on cloexec.
3920
3921 2010-03-29  Bruno Haible  <bruno@clisp.org>
3922
3923         Remove vestiges of fts-lgpl module.
3924         * lib/fts_.h: Assume GNULIB_FTS is 1.
3925         * lib/fts.c: Likewise.
3926         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
3927
3928 2010-03-28  Bruno Haible  <bruno@clisp.org>
3929
3930         Fix definition of tests witness macro.
3931         * gnulib-tool (func_import): Fix definition of witness macro.
3932
3933 2010-03-28  Bruno Haible  <bruno@clisp.org>
3934
3935         Fix ioctl's protoype on glibc systems.
3936         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
3937         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
3938         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
3939         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
3940         signature. If not, arrange to replace the ioctl function.
3941         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
3942         REPLACE_IOCTL.
3943         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
3944         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
3945         Reported by Ludovic Courtès <ludo@gnu.org>.
3946
3947 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
3948
3949         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
3950         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
3951         made it so grep -r --include=GLOB* ... did not work.
3952
3953 2010-03-26  Jim Meyering  <meyering@redhat.com>
3954             Eric Blake  <eblake@redhat.com>
3955
3956         maint.mk: prohibit use of test's -o and -a operators
3957         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
3958
3959 2010-03-28  Bruno Haible  <bruno@clisp.org>
3960
3961         Remove unused GNULIB_XYZ macro definitions.
3962         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
3963         invocation.
3964
3965 2010-03-28  Bruno Haible  <bruno@clisp.org>
3966
3967         Mark privileged tests modules.
3968         * modules/idpriv-drop-tests (Status): New section.
3969         * modules/idpriv-droptemp-tests (Status): New section.
3970
3971 2010-03-28  Bruno Haible  <bruno@clisp.org>
3972
3973         Split C++ tests into separate tests modules.
3974         * modules/dirent-c++-tests: New file, extracted from
3975         modules/dirent-tests.
3976         * modules/dirent-tests: Depend on it.
3977         * modules/fcntl-h-c++-tests: New file, extracted from
3978         modules/fcntl-h-tests.
3979         * modules/fcntl-h-tests: Depend on it.
3980         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
3981         * modules/glob-tests: Depend on it.
3982         * modules/iconv-h-c++-tests: New file, extracted from
3983         modules/iconv-h-tests.
3984         * modules/iconv-h-tests: Depend on it.
3985         * modules/langinfo-c++-tests: New file, extracted from
3986         modules/langinfo-tests.
3987         * modules/langinfo-tests: Depend on it.
3988         * modules/locale-c++-tests: New file, extracted from
3989         modules/locale-tests.
3990         * modules/locale-tests: Depend on it.
3991         * modules/math-c++-tests: New file, extracted from modules/math-tests.
3992         * modules/math-tests: Depend on it.
3993         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
3994         * modules/pty-tests: Depend on it.
3995         * modules/search-c++-tests: New file, extracted from
3996         modules/search-tests.
3997         * modules/search-tests: Depend on it.
3998         * modules/signal-c++-tests: New file, extracted from
3999         modules/signal-tests.
4000         * modules/signal-tests: Depend on it.
4001         * modules/spawn-c++-tests: New file, extracted from
4002         modules/spawn-tests.
4003         * modules/spawn-tests: Depend on it.
4004         * modules/stdio-c++-tests: New file, extracted from
4005         modules/stdio-tests.
4006         * modules/stdio-tests: Depend on it.
4007         * modules/stdlib-c++-tests: New file, extracted from
4008         modules/stdlib-tests.
4009         * modules/stdlib-tests: Depend on it.
4010         * modules/string-c++-tests: New file, extracted from
4011         modules/string-tests.
4012         * modules/string-tests: Depend on it.
4013         * modules/sys_ioctl-c++-tests: New file, extracted from
4014         modules/sys_ioctl-tests.
4015         * modules/sys_ioctl-tests: Depend on it.
4016         * modules/sys_select-c++-tests: New file, extracted from
4017         modules/sys_select-tests.
4018         * modules/sys_select-tests: Depend on it.
4019         * modules/sys_socket-c++-tests: New file, extracted from
4020         modules/sys_socket-tests.
4021         * modules/sys_socket-tests: Depend on it.
4022         * modules/sys_stat-c++-tests: New file, extracted from
4023         modules/sys_stat-tests.
4024         * modules/sys_stat-tests: Depend on it.
4025         * modules/sys_time-c++-tests: New file, extracted from
4026         modules/sys_time-tests.
4027         * modules/sys_time-tests: Depend on it.
4028         * modules/time-c++-tests: New file, extracted from modules/time-tests.
4029         * modules/time-tests: Depend on it.
4030         * modules/unistd-c++-tests: New file, extracted from
4031         modules/unistd-tests.
4032         * modules/unistd-tests: Depend on it.
4033         * modules/wchar-c++-tests: New file, extracted from
4034         modules/wchar-tests.
4035         * modules/wchar-tests: Depend on it.
4036         * modules/wctype-c++-tests: New file, extracted from
4037         modules/wctype-tests.
4038         * modules/wctype-tests: Depend on it.
4039         Reported by Simon Josefsson.
4040
4041 2010-03-28  Bruno Haible  <bruno@clisp.org>
4042
4043         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
4044         * gnulib-tool (func_exists_module): New function, extracted from
4045         func_verify_module.
4046         (func_verify_module): Use it.
4047         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
4048         'foo' only if 'foo' exists.
4049         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
4050         module.
4051
4052 2010-03-28  Bruno Haible  <bruno@clisp.org>
4053
4054         gnulib-tool: Add support for special categories of tests.
4055         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
4056         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
4057         (func_usage): Document them.
4058         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
4059         inc_unportable_tests, inc_all_tests): New variables.
4060         (func_acceptable): Consider these variables.
4061         (func_modules_transitive_closure): Make it work when the 'Status' field
4062         consists of multiple words.
4063         (func_import): Store and restore the values of inc_cxx_tests,
4064         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
4065         inc_all_tests in gnulib-comp.m4.
4066         (func_create_testdir): Set inc_all_tests to true.
4067         * doc/gnulib.texi (Extra tests modules): New section.
4068         Suggested by Jim Meyering.
4069
4070 2010-03-28  Bruno Haible  <bruno@clisp.org>
4071
4072         ansi-c++-opt: Allow turning off the C++ build by default.
4073         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
4074         gl_CXX_CHOICE_DEFAULT_NO is defined.
4075         Requested by Eric Blake.
4076
4077 2010-03-28  Bruno Haible  <bruno@clisp.org>
4078
4079         unistd: Avoid #define replacements in C++ mode.
4080         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
4081         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
4082         setsockopt, shutdown, select): In C++, attach a warning to the function
4083         if possible, rather than #defining the symbol to a dysfunctional alias.
4084         Reported by John W. Eaton <jwe@gnu.org>.
4085
4086 2010-03-28  Bruno Haible  <bruno@clisp.org>
4087
4088         Fix link errors on mingw.
4089         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
4090         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
4091         $(LIBSOCKET).
4092         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
4093         $(LIBSOCKET).
4094
4095 2010-03-28  Bruno Haible  <bruno@clisp.org>
4096             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4097
4098         lib-ignore: Determine different options for different compilers.
4099         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
4100         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
4101         Add comments.
4102         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
4103         * NEWS: Mention the change.
4104
4105 2010-03-27  Bruno Haible  <bruno@clisp.org>
4106
4107         Remove unused GNULIB_XYZ macro definitions.
4108         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
4109         * modules/fseek (configure.ac): Likewise.
4110         * modules/ioctl (configure.ac): Likewise.
4111         * modules/open (configure.ac): Likewise.
4112         * modules/stdlib-safer (configure.ac): Likewise.
4113
4114 2010-03-27  Bruno Haible  <bruno@clisp.org>
4115
4116         Add a remark about certain modules.
4117         * modules/malloc (Comment): New section.
4118         * modules/realloc (Comment): Likewise.
4119         * modules/sigpipe (Comment): Likewise.
4120
4121 2010-03-27  Bruno Haible  <bruno@clisp.org>
4122
4123         Resolve conflict between the two kinds of module indicators.
4124         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
4125         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
4126         * modules/canonicalize (configure.ac): Invoke
4127         gl_MODULE_INDICATOR_FOR_TESTS.
4128         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
4129         GNULIB_XYZ.
4130         * tests/test-dirent-c++.cc: Likewise.
4131         * tests/test-dirent-safer.c: Likewise.
4132         * tests/test-dup2.c: Likewise.
4133         * tests/test-fchdir.c: Likewise.
4134         * tests/test-fcntl-h-c++.cc: Likewise.
4135         * tests/test-getopt.c: Likewise.
4136         * tests/test-getopt.h: Likewise.
4137         * tests/test-langinfo-c++.cc: Likewise.
4138         * tests/test-locale-c++.cc: Likewise.
4139         * tests/test-math-c++.cc: Likewise.
4140         * tests/test-pty-c++.cc: Likewise.
4141         * tests/test-search-c++.cc: Likewise.
4142         * tests/test-signal-c++.cc: Likewise.
4143         * tests/test-spawn-c++.cc: Likewise.
4144         * tests/test-stdio-c++.cc: Likewise.
4145         * tests/test-stdlib-c++.cc: Likewise.
4146         * tests/test-string-c++.cc: Likewise.
4147         * tests/test-sys_ioctl-c++.cc: Likewise.
4148         * tests/test-sys_select-c++.cc: Likewise.
4149         * tests/test-sys_socket-c++.cc: Likewise.
4150         * tests/test-sys_stat-c++.cc: Likewise.
4151         * tests/test-sys_time-c++.cc: Likewise.
4152         * tests/test-time-c++.cc: Likewise.
4153         * tests/test-unistd-c++.cc: Likewise.
4154         * tests/test-wchar-c++.cc: Likewise.
4155         * tests/uninorm/test-u8-nfc.c: Likewise.
4156         * tests/uninorm/test-u8-nfd.c: Likewise.
4157         * tests/uninorm/test-u8-nfkc.c: Likewise.
4158         * tests/uninorm/test-u8-nfkd.c: Likewise.
4159         * tests/uninorm/test-u16-nfc.c: Likewise.
4160         * tests/uninorm/test-u16-nfd.c: Likewise.
4161         * tests/uninorm/test-u16-nfkc.c: Likewise.
4162         * tests/uninorm/test-u16-nfkd.c: Likewise.
4163         * tests/uninorm/test-u32-nfc.c: Likewise.
4164         * tests/uninorm/test-u32-nfc-big.c: Likewise.
4165         * tests/uninorm/test-u32-nfd.c: Likewise.
4166         * tests/uninorm/test-u32-nfd-big.c: Likewise.
4167         * tests/uninorm/test-u32-nfkc.c: Likewise.
4168         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
4169         * tests/uninorm/test-u32-nfkd.c: Likewise.
4170         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
4171         * tests/uninorm/test-u32-normalize-big.c: Likewise.
4172
4173 2010-03-27  Bruno Haible  <bruno@clisp.org>
4174
4175         Distinguish two kinds of module indicators.
4176         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
4177         gl_MODULE_INDICATOR.
4178         (gl_MODULE_INDICATOR): New macro.
4179         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
4180         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
4181         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
4182         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
4183         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
4184         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
4185         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
4186         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
4187         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
4188         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
4189         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
4190         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
4191         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
4192         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
4193         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
4194         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
4195         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
4196         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
4197         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
4198         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
4199         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
4200         * modules/cloexec (configure.ac): Likewise.
4201         * modules/getopt-gnu (configure.ac): Likewise.
4202         * modules/uninorm/u8-normalize (configure.ac): Likewise.
4203         * modules/uninorm/u16-normalize (configure.ac): Likewise.
4204         * modules/uninorm/u32-normalize (configure.ac): Likewise.
4205         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
4206
4207 2010-03-27  Bruno Haible  <bruno@clisp.org>
4208
4209         New module description field 'Comment'.
4210         * gnulib-tool: New option --extract-comment.
4211         (func_usage): Document it.
4212         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
4213         (func_get_comment): New function.
4214         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
4215
4216 2010-03-27  Bruno Haible  <bruno@clisp.org>
4217
4218         Addendum to 2010-02-07 commit.
4219         * gnulib-tool (func_usage): Document --extract-applicability option.
4220
4221 2010-03-27  Bruno Haible  <bruno@clisp.org>
4222
4223         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
4224         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
4225         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
4226         rather than link errors.
4227
4228 2010-03-27  Bruno Haible  <bruno@clisp.org>
4229
4230         Avoid side effects from tests-related modules on the compilation of lib.
4231         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
4232         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
4233         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
4234         parameter. Emit into AM_CPPFLAGS a definition of the designated C
4235         macro.
4236         (func_import): Define a witness macro. Assign it a value that depends
4237         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
4238         tests-related modules.
4239         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
4240         Reported by Jim Meyering.
4241
4242 2010-03-27  Bruno Haible  <bruno@clisp.org>
4243
4244         Factorize common .m4 code.
4245         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
4246         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
4247         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
4248         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
4249         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
4250         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
4251         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
4252         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
4253         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
4254         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
4255         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
4256         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
4257         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
4258         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
4259         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
4260         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
4261         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
4262         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
4263         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
4264         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
4265         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
4266         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
4267         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
4268         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
4269         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
4270         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
4271         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
4272         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
4273         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
4274         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
4275         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
4276         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
4277
4278 2010-03-27  Bruno Haible  <bruno@clisp.org>
4279
4280         Fix a compilation error on Cygwin with g++ >= 4.3.
4281         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
4282         if it is undefined or if we alias it to chmod.
4283         (lstat): Don't warn about the use of this function if it is undefined
4284         or if we alias it to stat.
4285         Reported by Simon Josefsson.
4286
4287 2010-03-27  Bruno Haible  <bruno@clisp.org>
4288
4289         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
4290         * modules/getlogin (configure.ac): Update.
4291
4292         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
4293         * modules/getlogin_r (configure.ac): Update.
4294
4295         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
4296         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
4297         * modules/inet_ntop (configure.ac): Update.
4298
4299         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
4300         * modules/inet_pton (configure.ac): Update.
4301
4302         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
4303         * modules/mbslen (configure.ac): Update.
4304
4305         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
4306         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
4307         * modules/forkpty (configure.ac): Update.
4308         * modules/openpty (configure.ac): Update.
4309
4310 2010-03-26  Simon Josefsson  <simon@josefsson.org>
4311
4312         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
4313         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
4314
4315 2010-03-25  Eric Blake  <eblake@redhat.com>
4316
4317         maint: use pragma consistently across replacement headers
4318         * lib/ctype.in.h (system_header): Hoist for consistent placement.
4319         * lib/dirent.in.h (system_header): Likewise.
4320         * lib/errno.in.h (system_header): Likewise.
4321         * lib/float.in.h (system_header): Likewise.
4322         * lib/getopt.in.h (system_header): Likewise.
4323         * lib/iconv.in.h (system_header): Likewise.
4324         * lib/inttypes.in.h (system_header): Likewise.
4325         * lib/langinfo.in.h (system_header): Likewise.
4326         * lib/locale.in.h (system_header): Likewise.
4327         * lib/math.in.h (system_header): Likewise.
4328         * lib/netdb.in.h (system_header): Likewise.
4329         * lib/netinet_in.in.h (system_header): Likewise.
4330         * lib/pty.in.h (system_header): Likewise.
4331         * lib/sched.in.h (system_header): Likewise.
4332         * lib/se-selinux.in.h (system_header): Likewise.
4333         * lib/search.in.h (system_header): Likewise.
4334         * lib/spawn.in.h (system_header): Likewise.
4335         * lib/stdarg.in.h (system_header): Likewise.
4336         * lib/stdint.in.h (system_header): Likewise.
4337         * lib/string.in.h (system_header): Likewise.
4338         * lib/strings.in.h (system_header): Likewise.
4339         * lib/sys_file.in.h (system_header): Likewise.
4340         * lib/sys_ioctl.in.h (system_header): Likewise.
4341         * lib/sys_socket.in.h (system_header): Likewise.
4342         * lib/sys_times.in.h (system_header): Likewise.
4343         * lib/sys_utsname.in.h (system_header): Likewise.
4344         * lib/sys_wait.in.h (system_header): Likewise.
4345         * lib/sysexits.in.h (system_header): Likewise.
4346         * lib/unistd.in.h (system_header): Likewise.
4347         * lib/wctype.in.h (system_header): Likewise.
4348
4349         arpa/inet: fix mingw compilation warning
4350         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
4351         Reported by Matthew Bolte.
4352
4353 2010-03-25  Bruno Haible  <bruno@clisp.org>
4354
4355         Avoid collision between gnulib wrapper and libintl wrapper.
4356         * lib/printf.c (printf): Don't define if a printf wrapper is already
4357         defined in intl/printf.c.
4358         Reported by Michel Boaventura <michel@michelboaventura.com>.
4359
4360 2010-03-25  Bruno Haible  <bruno@clisp.org>
4361
4362         Use ANSI C.
4363         * lib/readutmp.h (getutent): Provide ANSI C prototype.
4364
4365 2010-03-25  Bruno Haible  <bruno@clisp.org>
4366
4367         Minor formatting changes.
4368         * lib/acosl.c: Insert space before function argument list.
4369         * lib/argz.c: Likewise.
4370         * lib/asinl.c: Likewise.
4371         * lib/expl.c: Likewise.
4372         * lib/gen-uni-tables.c: Likewise.
4373         * lib/gettext.h: Likewise.
4374         * lib/glthread/lock.h: Likewise.
4375         * lib/tanl.c: Likewise.
4376         * lib/uniname/uniname.c: Likewise.
4377         * tests/test-idpriv-drop.c: Likewise.
4378         * tests/test-idpriv-droptemp.c: Likewise.
4379         * tests/test-lock.c: Likewise.
4380         * tests/test-tls.c: Likewise.
4381         * lib/argp-help.c: Insert space before function-like macro argument
4382         list.
4383         * lib/memcmp.c: Likewise.
4384         * tests/test-base64.c: Likewise.
4385         * lib/localename.c: Insert space before sizeof's argument list.
4386         * lib/safe-alloc.h: Likewise.
4387         * lib/file-set.h: Insert space before macro argument list.
4388         * tests/test-argp.c: Likewise.
4389         * lib/argp-namefrob.h: Insert space before function parameter list.
4390         * lib/getaddrinfo.c: Likewise.
4391         * lib/netdb.in.h: Likewise.
4392         * lib/parse-duration.h: Likewise.
4393         * lib/parse-duration.c: Likewise.
4394         * lib/poll.c: Likewise.
4395         * lib/select.c: Likewise.
4396         * lib/trim.h: Likewise.
4397         * tests/test-usleep.c: Likewise.
4398         * lib/ldexpl.c: Insert space before function parameter list and before
4399         function argument list.
4400         * lib/logl.c: Likewise.
4401         * lib/sqrtl.c: Likewise.
4402         * lib/trim.c: Likewise.
4403         * lib/cosl.c: Use GNU style indentation. Insert space before function
4404         argument list.
4405         * lib/sinl.c: Likewise.
4406         * lib/tsearch.c: Insert space after 'for'.
4407         Reported by Jim Meyering.
4408
4409 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
4410
4411         * maint.mk (sc_Wundef_boolean): Check for the presence of the
4412         config header before grepping, as it's not present before
4413         autoreconf/configure are run.  Reported by Simon Josefsson.
4414
4415 2010-03-23  Bruno Haible  <bruno@clisp.org>
4416
4417         pt_chown: Make it work with automake < 1.11.
4418         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
4419         Reported by Simon Josefsson.
4420
4421 2010-03-23  Bruno Haible  <bruno@clisp.org>
4422
4423         pt_chown: Don't depend on GPLed modules.
4424         * lib/pt_chown.c: Don't include idpriv.h.
4425         (main): Don't drop privileges.
4426         * modules/pt_chown (Depends-on): Remove idpriv-drop.
4427         Reported by Simon Josefsson.
4428
4429 2010-03-24  Simon Josefsson  <simon@josefsson.org>
4430
4431         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
4432         suggestions from karl@freefriends.org (Karl Berry).
4433
4434 2010-03-22  Eric Blake  <eblake@redhat.com>
4435
4436         gethostname: further tweaks
4437         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
4438         are overriding gethostname.
4439         Suggested by Bruno Haible.
4440
4441 2010-03-21  Bruno Haible  <bruno@clisp.org>
4442
4443         Fix comments.
4444         * lib/forkpty.c (rpl_forkpty): Fix comment.
4445         * lib/openpty.c (rpl_openpty): Likewise.
4446         Reported by Eric Blake.
4447
4448 2010-03-22  Eric Blake  <eblake@redhat.com>
4449
4450         gethostname: fix build on mingw
4451         * lib/unistd.in.h (includes): Work around fact that mingw
4452         <winsock2.h> re-includes <unistd.h>, by avoiding any
4453         redeclarations if we are being included by <winsock2.h>.
4454         Reported by Matthias Bolte.
4455
4456 2010-03-21  Bruno Haible  <bruno@clisp.org>
4457
4458         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
4459         * lib/forkpty.c (forkpty): New replacement function, from glibc with
4460         modifications.
4461         * lib/pty.in.h (forkpty): Update declaration. Add comments.
4462         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
4463         provide the replacement.
4464         * modules/forkpty (Depends-on): Add openpty, login_tty.
4465         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
4466         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
4467         * doc/glibc-functions/forkpty.texi: More supported platforms.
4468         * config/srclist.txt: Add forkpty.c (commented).
4469
4470 2010-03-21  Bruno Haible  <bruno@clisp.org>
4471
4472         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
4473         (Makefile.am): Verify that PTY_LIB is defined.
4474
4475         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
4476
4477 2010-03-21  Bruno Haible  <bruno@clisp.org>
4478
4479         Tests for module 'login_tty'.
4480         * modules/login_tty-tests: New file.
4481         * tests/test-login_tty.c: New file.
4482
4483         New module 'login_tty'.
4484         * lib/login_tty.c: New file.
4485         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
4486         * modules/login_tty: New file.
4487         * doc/glibc-functions/login_tty.texi: Mention the new module.
4488
4489 2010-03-21  Bruno Haible  <bruno@clisp.org>
4490
4491         login_tty: Documentation.
4492         * doc/glibc-functions/login_tty.texi: New file.
4493         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
4494
4495 2010-03-21  Bruno Haible  <bruno@clisp.org>
4496
4497         pty: Consistent macro naming.
4498         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
4499         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
4500         * modules/pty (configure.ac): Update.
4501
4502 2010-03-21  Bruno Haible  <bruno@clisp.org>
4503
4504         Tests for openpty: Make stricter.
4505         * tests/test-openpty.c (main): Add test of canonical processing and
4506         erase.
4507         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
4508
4509         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
4510         * lib/openpty.c (openpty): New replacement function.
4511         * lib/pty.in.h: Include <termios.h>.
4512         (openpty): Update declaration. Add comments.
4513         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
4514         is not declared, arrange to provide the replacement. Check for _getpty
4515         and posix_openpt.
4516         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
4517         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
4518         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
4519         * modules/pty-tests (test_pty_c___LDADD): New variable.
4520         * doc/glibc-functions/openpty.texi: More supported platforms.
4521
4522 2010-03-21  Bruno Haible  <bruno@clisp.org>
4523
4524         setenv: Tweaks.
4525         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
4526         the test program.
4527         * doc/posix-functions/setenv.texi: Update platforms list.
4528
4529 2010-03-21  Bruno Haible  <bruno@clisp.org>
4530
4531         New module 'unlockpt'.
4532         * lib/unlockpt.c: New file, from glibc with modifications.
4533         * m4/unlockpt.m4: New file.
4534         * modules/unlockpt: New file.
4535         * lib/stdlib.in.h (unlockpt): New declaration.
4536         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
4537         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
4538         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
4539         HAVE_UNLOCKPT.
4540         * doc/posix-functions/unlockpt.texi: Mention the new module.
4541         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
4542         * config/srclist.txt: Add unlockpt.c (commented).
4543
4544 2010-03-21  Jim Meyering  <meyering@redhat.com>
4545
4546         maint.mk: prohibit inclusion of "intprops.h" without use
4547         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
4548
4549 2010-03-21  Bruno Haible  <bruno@clisp.org>
4550
4551         New module 'grantpt'.
4552         * lib/grantpt.c: New file, from glibc with modifications.
4553         * m4/grantpt.m4: New file.
4554         * modules/grantpt: New file.
4555         * lib/stdlib.in.h (grantpt): New declaration.
4556         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
4557         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
4558         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
4559         HAVE_GRANTPT.
4560         * doc/posix-functions/grantpt.texi: Mention the new module.
4561         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
4562         * config/srclist.txt: Add grantpt.c (commented).
4563
4564 2010-03-21  Bruno Haible  <bruno@clisp.org>
4565
4566         New module 'pt_chown'.
4567         * lib/pt_chown.c: New file, from glibc with modifications.
4568         * lib/pty-private.h: New file, from glibc with modifications.
4569         * modules/pt_chown: New file.
4570         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
4571
4572 2010-03-21  Bruno Haible  <bruno@clisp.org>
4573
4574         Tests for module 'ptsname'.
4575         * modules/ptsname-tests: New file.
4576         * tests/test-ptsname.c: New file.
4577
4578         New module 'ptsname'.
4579         * lib/ptsname.c: New file, from glibc with modifications.
4580         * m4/ptsname.m4: New file.
4581         * modules/ptsname: New file.
4582         * lib/stdlib.in.h (ptsname): New declaration.
4583         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
4584         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
4585         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
4586         HAVE_PTSNAME.
4587         * doc/posix-functions/ptsname.texi: Mention the new module.
4588         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
4589         * config/srclist.txt: Add ptsname.c (commented).
4590
4591 2010-03-21  Bruno Haible  <bruno@clisp.org>
4592
4593         Tests for module 'ttyname_r'.
4594         * modules/ttyname_r-tests: New file.
4595         * tests/test-ttyname_r.c: New file.
4596
4597         New module 'ttyname_r'.
4598         * lib/ttyname_r.c: New file.
4599         * m4/ttyname_r.m4: New file.
4600         * modules/ttyname_r: New file.
4601         * lib/unistd.in.h (ttyname_r): New declaration.
4602         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
4603         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
4604         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
4605         HAVE_TTYNAME_R.
4606         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
4607         * doc/posix-functions/ttyname_r.texi: Mention the new module.
4608
4609 2010-03-20  Bruno Haible  <bruno@clisp.org>
4610
4611         signal: Undefine macro definitions in C++ mode.
4612         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
4613         sigfillset): Undefine macro definitions from the system header in C++
4614         mode.
4615         Reported by John W. Eaton <jwe@gnu.org>.
4616
4617 2010-03-20  Bruno Haible  <bruno@clisp.org>
4618
4619         Ensure no #include statements inside extern "C" { ... }.
4620         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
4621         contain #include statements.
4622         * lib/time.in.h: Likewise.
4623
4624 2010-03-20  Bruno Haible  <bruno@clisp.org>
4625
4626         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
4627         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
4628         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
4629         Reported by John W. Eaton <jwe@gnu.org>.
4630
4631 2010-03-20  Bruno Haible  <bruno@clisp.org>
4632
4633         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
4634         Reported by Jim Meyering.
4635
4636 2010-03-20  Bruno Haible  <bruno@clisp.org>
4637
4638         pipe: Set errno upon failure.
4639         * lib/pipe.h: Specify that when -1 is returned, errno is set.
4640         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
4641         errno value in error message.
4642
4643 2010-03-20  Bruno Haible  <bruno@clisp.org>
4644             Jim Meyering  <meyering@redhat.com>
4645
4646         lchown: Avoid "unused variable" warning.
4647         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
4648
4649 2010-03-20  Bruno Haible  <bruno@clisp.org>
4650
4651         Work around unlink() bug on MacOS X 10.5.6.
4652         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
4653         attempting to unlink a parent directory.
4654         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
4655         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
4656         activate for the replacement function.
4657         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
4658
4659 2010-03-20  Bruno Haible  <bruno@clisp.org>
4660
4661         Fix link errors on Solaris 8.
4662         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
4663         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
4664
4665 2010-03-19  Jim Meyering  <meyering@redhat.com>
4666
4667         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
4668         The _LIBC implementation of build_range_exp correctly honors the
4669         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
4670         However, the non-_LIBC implementation would ignore that syntax-bit
4671         flag and return REG_ERANGE unconditionally.
4672         This change makes it honor that flag.
4673         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
4674         Make two pointer parameters "const".
4675         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
4676         (parse_bracket_exp): Update caller.
4677
4678         regex.m4: correct the reversed range endpoint ([b-a]) test
4679         * m4/regex.m4: When requiring that [b-a] evoke failure,
4680         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
4681         test pass once again for x86-based systems.
4682
4683 2010-03-19  Bruno Haible  <bruno@clisp.org>
4684
4685         scandir: Fix link error on Solaris 8.
4686         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
4687         macros.
4688
4689 2010-03-19  Bruno Haible  <bruno@clisp.org>
4690
4691         getusershell: Fix documentation.
4692         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
4693         module.
4694         * doc/glibc-functions/setusershell.texi: Likewise.
4695
4696         getusershell: Provide declaration, missing on Solaris 9.
4697         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
4698         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
4699         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
4700         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
4701         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
4702         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
4703         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
4704         HAVE_GETUSERSHELL.
4705         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
4706
4707 2010-03-19  Bruno Haible  <bruno@clisp.org>
4708
4709         wctype: Provide iswblank function.
4710         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
4711         exists and is fine.
4712         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
4713         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
4714         * tests/test-wctype.c (main): Re-enable the iswblank tests.
4715         * doc/posix-functions/iswblank.texi: Update.
4716
4717 2010-03-19  Bruno Haible  <bruno@clisp.org>
4718
4719         Tests of module 'pty' in C++ mode.
4720         * modules/pty-tests: New file.
4721         * tests/test-pty-c++.cc: New file.
4722         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
4723
4724 2010-03-19  Eric Blake  <eblake@redhat.com>
4725
4726         logb: fix documentation
4727         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
4728         1.5 declaration bug.
4729
4730         forkpty, openpty: prefer glibc's const-safe prototype
4731         * lib/forkpty.c (rpl_forkpty): New file.
4732         * lib/openpty.c (rpl_openpty): Likewise.
4733         * modules/forkpty (Files): Distribute it.
4734         * modules/openpty (Files): Likewise.
4735         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
4736         check...
4737         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
4738         replacement for for non-const BSD signature.
4739         * modules/pty (Makefile.am): Substitute witnesses.
4740         * lib/pty.in.h (forkpty, openpty): Declare replacements.
4741         * tests/test-forkpty.c: Update signature check.
4742         * tests/test-openpty.c: Likewise.
4743         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
4744         * doc/glibc-functions/openpty.texi (openpty): Likewise.
4745
4746         forkpty, openpty: split functions into new modules
4747         * modules/pty (Makefile.am): Substitute new witnesses.
4748         (Libraries): Move library detection...
4749         * modules/forkpty: ...into new module.
4750         * modules/openpty: Another new module.
4751         * modules/pty-tests: Rename and split...
4752         * modules/forkpty-tests: ...to this...
4753         * modules/openpty-tests: ...and this.
4754         * tests/test-pty.c: Rename and split...
4755         * tests/test-forkpty.c: ...to this...
4756         * tests/test-openpty.c: ...and this.
4757         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
4758         (gl_PTY): Split library searching...
4759         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
4760         (gl_FORKPTY, gl_OPENPTY): New macros.
4761         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
4762         * NEWS: Mention the split.
4763         * MODULES.html.sh (Misc): Document the modules.
4764         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
4765         * doc/glibc-functions/openpty.texi (openpty): Likewise.
4766
4767         pty: improve replacement header
4768         * lib/pty.in.h: New file.
4769         * modules/pty (Files): Ship it.
4770         (Makefile.am): Always build replacement.
4771         * m4/pty.m4: Rename...
4772         * m4/pty_h.m4: ...to this.
4773         (gl_PTY): Modernize setting of witness macros; update check of
4774         forkpty to take proper advantage of cache.
4775         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
4776
4777         getopt: avoid compiler warning
4778         * lib/getopt.c (attribute_hidden): Remove unused macro.
4779
4780 2010-03-18  Bruno Haible  <bruno@clisp.org>
4781
4782         Fix link errors on Solaris 8.
4783         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
4784         * modules/search-tests (test_search_c___LDADD): Likewise.
4785         * modules/signal-tests (test_signal_c___LDADD): Likewise.
4786         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
4787         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
4788         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
4789         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
4790         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
4791         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
4792
4793 2010-03-18  Bruno Haible  <bruno@clisp.org>
4794
4795         Fix bug introduced on 2010-03-14.
4796         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
4797         (gl_SPAWN_H): Require it.
4798         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
4799         Reported by Simon Josefsson.
4800
4801 2010-03-18  Bruno Haible  <bruno@clisp.org>
4802
4803         Fix typo introduced on 2009-12-31.
4804         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
4805         posix_spawn_file_actions_adddup2.
4806
4807 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
4808         and Eric Blake  <eblake@redhat.com>
4809
4810         test-vc-list-files-git: make more robust
4811         * tests/test-vc-list-files-git.sh: Unset problematic environment
4812         variables.  Chain commands together.
4813
4814 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
4815
4816         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
4817         `AC_CHECK_DECL' invocation.
4818
4819 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
4820
4821         * lib/inttostr.c (inttostr): Make sure the invocation of verify
4822         appears before executable statements. Suggested by Petr Sumbera
4823         <Petr.Sumbera@Sun.COM>.
4824
4825 2010-03-14  Bruno Haible  <bruno@clisp.org>
4826
4827         * tests/test-flock.c (test_exclusive): Comment out a test that causes
4828         portability problems. Instead use a simpler test.
4829         (main): Check that invalid arguments are rejected only on Linux.
4830
4831 2010-03-14  Bruno Haible  <bruno@clisp.org>
4832
4833         Fix bug introduced on 2009-12-31.
4834         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
4835         gl_PREREQ_SYS_H_WINSOCK2 always.
4836         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
4837         SYS_SOCKET_H variable.
4838         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
4839         Update comments.
4840         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
4841         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
4842         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
4843         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
4844         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
4845
4846 2010-03-14  Bruno Haible  <bruno@clisp.org>
4847
4848         Fix values returned by sinl, cosl.
4849         * lib/trigl.h: Add specification comments.
4850         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
4851         that combines the values from the precomputed table with the values of
4852         the Chebyshev polynomials.
4853
4854 2010-03-14  Bruno Haible  <bruno@clisp.org>
4855
4856         Fix compilation error when modules 'posix_spawn[p]' are not used.
4857         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
4858         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
4859
4860 2010-03-14  Bruno Haible  <bruno@clisp.org>
4861
4862         Fix compilation error on mingw when module 'time_r' is not used.
4863         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
4864         is 1.
4865         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
4866         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
4867         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
4868         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
4869
4870 2010-03-14  Bruno Haible  <bruno@clisp.org>
4871
4872         Fix compilation error with Sun C.
4873         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
4874         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
4875         instead of GCC specific ULONG_LONG_MAX.
4876         * lib/xstrtoll.c: Likewise.
4877         * lib/xstrtoull.c: Likewise.
4878
4879 2010-03-13  Bruno Haible  <bruno@clisp.org>
4880
4881         Allow the user to disable C++ code and tests.
4882         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
4883         (gl_PROG_ANSI_CXX): Require it.
4884
4885 2010-03-13  Bruno Haible  <bruno@clisp.org>
4886
4887         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
4888         cases.
4889
4890 2010-03-13  Bruno Haible  <bruno@clisp.org>
4891
4892         Test that gnulib does not break the standard C++ headers.
4893         * tests/test-locale-c++2.cc: New file.
4894         * modules/locale-tests (Files): Add it.
4895         (Makefile.am): Compile it for test-locale-c++.
4896         * tests/test-math-c++2.cc: New file.
4897         * modules/math-tests (Files): Add it.
4898         (Makefile.am): Compile it for test-math-c++.
4899         * tests/test-signal-c++2.cc: New file.
4900         * modules/signal-tests (Files): Add it.
4901         (Makefile.am): Compile it for test-signal-c++.
4902         * tests/test-stdio-c++2.cc: New file.
4903         * modules/stdio-tests (Files): Add it.
4904         (Makefile.am): Compile it for test-stdio-c++.
4905         * tests/test-stdlib-c++2.cc: New file.
4906         * modules/stdlib-tests (Files): Add it.
4907         (Makefile.am): Compile it for test-stdlib-c++.
4908         * tests/test-string-c++2.cc: New file.
4909         * modules/string-tests (Files): Add it.
4910         (Makefile.am): Compile it for test-string-c++.
4911         * tests/test-time-c++2.cc: New file.
4912         * modules/time-tests (Files): Add it.
4913         (Makefile.am): Compile it for test-time-c++.
4914         Reported by John W. Eaton <jwe@gnu.org>.
4915
4916 2010-03-13  Bruno Haible  <bruno@clisp.org>
4917
4918         * gnulib-tool (func_usage): Clarify which options are available for
4919         --create-testdir and --create-megatestdir.
4920
4921 2010-03-13  Bruno Haible  <bruno@clisp.org>
4922
4923         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
4924         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
4925         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
4926         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
4927         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
4928         when appropriate.
4929         Reported by Jim Meyering.
4930
4931 2010-03-12  Simon Josefsson  <simon@josefsson.org>
4932
4933         * gnulib-tool (func_import): Explain origin of code.
4934
4935 2010-03-12  Bruno Haible  <bruno@clisp.org>
4936
4937         Fix problem with automake's definition of CXXLINK.
4938         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
4939         Reported by Simon Josefsson and Ludovic Courtès.
4940
4941 2010-03-12  Bruno Haible  <bruno@clisp.org>
4942
4943         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
4944         stable releases.
4945
4946 2010-03-11  Bruno Haible  <bruno@clisp.org>
4947
4948         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
4949         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
4950         whether the system provides one variant or multiple variants of the
4951         function.
4952         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
4953         C++ compilers.
4954         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
4955         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
4956         Reported by Jim Meyering.
4957
4958 2010-03-09  Simon Josefsson  <simon@josefsson.org>
4959
4960         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
4961
4962 2010-03-08  Bruno Haible  <bruno@clisp.org>
4963
4964         gnulib-tool: Add support for --libtool in --create-testdir.
4965         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
4966         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
4967
4968 2010-03-08  Eric Blake  <eblake@redhat.com>
4969
4970         gnulib-tool.texi: mention possibility of git submodule
4971         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
4972         submodules.
4973         * doc/.gitignore: Ignore another generated file.
4974
4975 2010-03-08  Karl Berry  <karl@gnu.org>
4976
4977         * doc/gnulib-tool.texi (VCS Issues): Mention third option
4978         of committing gnulib files while skipping others.
4979
4980 2010-03-07  Bruno Haible  <bruno@clisp.org>
4981
4982         Tests of module 'wctype' in C++ mode.
4983         * tests/test-wctype-c++.cc: New file.
4984         * modules/wctype-tests (Files): Add it and tests/signature.h.
4985         (Depends-on): Add ansi-c++-opt.
4986         (Makefile.am): Arrange to compile and run test-wctype-c++.
4987
4988         Tests of module 'wchar' in C++ mode.
4989         * tests/test-wchar-c++.cc: New file.
4990         * modules/wchar-tests (Files): Add it and tests/signature.h.
4991         (Depends-on): Add ansi-c++-opt.
4992         (Makefile.am): Arrange to compile and run test-wchar-c++.
4993         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
4994         gl_MODULE_INDICATOR.
4995
4996         Tests of module 'unistd' in C++ mode.
4997         * tests/test-unistd-c++.cc: New file.
4998         * modules/unistd-tests (Files): Add it and tests/signature.h.
4999         (Depends-on): Add ansi-c++-opt.
5000         (Makefile.am): Arrange to compile and run test-unistd-c++.
5001         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
5002         gl_MODULE_INDICATOR.
5003
5004         Tests of module 'time' in C++ mode.
5005         * tests/test-time-c++.cc: New file.
5006         * modules/time-tests (Files): Add it and tests/signature.h.
5007         (Depends-on): Add ansi-c++-opt.
5008         (Makefile.am): Arrange to compile and run test-time-c++.
5009         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
5010
5011         Tests of module 'sys_time' in C++ mode.
5012         * tests/test-sys_time-c++.cc: New file.
5013         * modules/sys_time-tests (Files): Add it and tests/signature.h.
5014         (Depends-on): Add ansi-c++-opt.
5015         (Makefile.am): Arrange to compile and run test-sys_time-c++.
5016         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
5017         gl_MODULE_INDICATOR.
5018
5019         Tests of module 'sys_stat' in C++ mode.
5020         * tests/test-sys_stat-c++.cc: New file.
5021         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
5022         (Depends-on): Add ansi-c++-opt.
5023         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
5024         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
5025         gl_MODULE_INDICATOR.
5026
5027         Tests of module 'sys_socket' in C++ mode.
5028         * tests/test-sys_socket-c++.cc: New file.
5029         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
5030         (Depends-on): Add ansi-c++-opt.
5031         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
5032         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
5033         gl_MODULE_INDICATOR.
5034
5035         Tests of module 'sys_select' in C++ mode.
5036         * tests/test-sys_select-c++.cc: New file.
5037         * modules/sys_select-tests (Files): Add it and tests/signature.h.
5038         (Depends-on): Add ansi-c++-opt.
5039         (Makefile.am): Arrange to compile and run test-sys_select-c++.
5040         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
5041         gl_MODULE_INDICATOR.
5042
5043         Tests of module 'sys_ioctl' in C++ mode.
5044         * tests/test-sys_ioctl-c++.cc: New file.
5045         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
5046         (Depends-on): Add ansi-c++-opt.
5047         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
5048         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
5049         gl_MODULE_INDICATOR.
5050
5051         Tests of module 'string' in C++ mode.
5052         * tests/test-string-c++.cc: New file.
5053         * modules/string-tests (Files): Add it and tests/signature.h.
5054         (Depends-on): Add ansi-c++-opt.
5055         (Makefile.am): Arrange to compile and run test-string-c++.
5056         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
5057         gl_MODULE_INDICATOR.
5058
5059         Tests of module 'stdlib' in C++ mode.
5060         * tests/test-stdlib-c++.cc: New file.
5061         * modules/stdlib-tests (Files): Add it and tests/signature.h.
5062         (Depends-on): Add ansi-c++-opt.
5063         (Makefile.am): Arrange to compile and run test-stdlib-c++.
5064         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
5065         gl_MODULE_INDICATOR.
5066
5067         Tests of module 'stdio' in C++ mode.
5068         * tests/test-stdio-c++.cc: New file.
5069         * modules/stdio-tests (Files): Add it and tests/signature.h.
5070         (Depends-on): Add ansi-c++-opt.
5071         (Makefile.am): Arrange to compile and run test-stdio-c++.
5072         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
5073         gl_MODULE_INDICATOR.
5074
5075         Tests of module 'spawn' in C++ mode.
5076         * tests/test-spawn-c++.cc: New file.
5077         * modules/spawn-tests (Files): Add it and tests/signature.h.
5078         (Depends-on): Add ansi-c++-opt.
5079         (Makefile.am): Arrange to compile and run test-spawn-c++.
5080         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
5081         gl_MODULE_INDICATOR.
5082
5083         Tests of module 'signal' in C++ mode.
5084         * tests/test-signal-c++.cc: New file.
5085         * modules/signal-tests (Files): Add it and tests/signature.h.
5086         (Depends-on): Add ansi-c++-opt.
5087         (Makefile.am): Arrange to compile and run test-signal-c++.
5088         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
5089         gl_MODULE_INDICATOR.
5090
5091         Tests of module 'search' in C++ mode.
5092         * tests/test-search-c++.cc: New file.
5093         * modules/search-tests (Files): Add it and tests/signature.h.
5094         (Depends-on): Add ansi-c++-opt.
5095         (Makefile.am): Arrange to compile and run test-search-c++.
5096         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
5097         gl_MODULE_INDICATOR.
5098
5099         Tests of module 'math' in C++ mode.
5100         * tests/test-math-c++.cc: New file.
5101         * modules/math-tests (Files): Add it and tests/signature.h.
5102         (Depends-on): Add ansi-c++-opt.
5103         (Makefile.am): Arrange to compile and run test-math-c++.
5104         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
5105
5106         Tests of module 'locale' in C++ mode.
5107         * tests/test-locale-c++.cc: New file.
5108         * modules/locale-tests (Files): Add it and tests/signature.h.
5109         (Depends-on): Add ansi-c++-opt.
5110         (Makefile.am): Arrange to compile and run test-locale-c++.
5111         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
5112         gl_MODULE_INDICATOR.
5113
5114         Tests of module 'langinfo' in C++ mode.
5115         * tests/test-langinfo-c++.cc: New file.
5116         * modules/langinfo-tests (Files): Add it and tests/signature.h.
5117         (Depends-on): Add ansi-c++-opt.
5118         (Makefile.am): Arrange to compile and run test-langinfo-c++.
5119         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
5120         gl_MODULE_INDICATOR.
5121
5122         Tests of module 'iconv-h' in C++ mode.
5123         * tests/test-iconv-h-c++.cc: New file.
5124         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
5125         (Depends-on): Add ansi-c++-opt.
5126         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
5127
5128         Tests of module 'glob' in C++ mode.
5129         * tests/test-glob-c++.cc: New file.
5130         * modules/glob-tests (Files): Add it.
5131         (Depends-on): Add ansi-c++-opt.
5132         (Makefile.am): Arrange to compile and run test-glob-c++.
5133
5134         Tests of module 'fcntl-h' in C++ mode.
5135         * tests/test-fcntl-h-c++.cc: New file.
5136         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
5137         (Depends-on): Add ansi-c++-opt.
5138         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
5139         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
5140         gl_MODULE_INDICATOR.
5141
5142         Tests of module 'dirent' in C++ mode.
5143         * tests/test-dirent-c++.cc: New file.
5144         * modules/dirent-tests (Files): Add it and tests/signature.h.
5145         (Depends-on): Add ansi-c++-opt.
5146         (Makefile.am): Arrange to compile and run test-dirent-c++.
5147         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
5148         gl_MODULE_INDICATOR.
5149
5150         New module 'ansi-c++-opt'.
5151         * modules/ansi-c++-opt: New file.
5152         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
5153
5154         Document C++ namespace mode.
5155         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
5156
5157         wctype: Avoid #define replacements in C++ mode.
5158         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
5159         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
5160         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
5161         In C++, define a namespaced alias symbol.
5162         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
5163         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
5164         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
5165         rule.
5166
5167         wchar: Avoid #define replacements in C++ mode.
5168         * lib/wchar.in.h: Include c++defs.h.
5169         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
5170         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
5171         symbol.
5172         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
5173         * modules/wchar (Depends-on): Add c++defs.
5174         (Makefile.am): Update wchar.h rule.
5175
5176         unistd: Avoid #define replacements in C++ mode.
5177         * lib/unistd.in.h: Include c++defs.h.
5178         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
5179         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
5180         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
5181         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
5182         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
5183         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
5184         symbol.
5185         (environ): Update.
5186         * modules/unistd (Depends-on): Add c++defs.
5187         (Makefile.am): Update unistd.h rule.
5188
5189         time: Avoid #define replacements in C++ mode.
5190         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
5191         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
5192         define a namespaced alias symbol.
5193         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
5194         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
5195         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
5196         * modules/time (Depends-on): Add c++defs, warn-on-use.
5197         (Makefile.am): Update time.h rule.
5198         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
5199         * modules/nanosleep (configure.ac): Likewise.
5200         * modules/strptime (configure.ac): Likewise.
5201         * modules/timegm (configure.ac): Likewise.
5202
5203         sys_time: Avoid #define replacements in C++ mode.
5204         * lib/sys_time.in.h: Include c++defs.h.
5205         (gettimeofday): In C++, define a namespaced alias symbol.
5206         * modules/sys_time (Depends-on): Add c++defs.
5207         (Makefile.am): Update sys/time.h rule.
5208
5209         sys_stat: Avoid #define replacements in C++ mode.
5210         * lib/sys_stat.in.h: Include c++defs.h.
5211         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
5212         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
5213         namespaced alias symbol.
5214         In C++, define a namespaced alias symbol.
5215         * modules/sys_stat (Depends-on): Add c++defs.
5216         (Makefile.am): Update sys/stat.h rule.
5217
5218         sys_socket: Avoid #define replacements in C++ mode.
5219         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
5220         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
5221         definitions also when the system has a <sys/socket.h>.
5222         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
5223         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
5224         In C++, define a namespaced alias symbol.
5225         * modules/sys_socket (Depends-on): Add c++defs.
5226         (Makefile.am): Update sys/socket.h rule.
5227
5228         sys_select: Avoid #define replacements in C++ mode.
5229         * lib/sys_select.in.h: Include c++defs.h. Enable the function
5230         definitions also when the system has a <sys/select.h>.
5231         (select): In C++, define a namespaced alias symbol.
5232         * modules/sys_select (Depends-on): Add c++defs.
5233         (Makefile.am): Update sys/select.h rule.
5234
5235         sys_ioctl: Avoid #define replacements in C++ mode.
5236         * lib/sys_ioctl.in.h: Include c++defs.h.
5237         (ioctl): In C++, define a namespaced alias symbol.
5238         * modules/sys_ioctl (Depends-on): Add c++defs.
5239         (Makefile.am): Update sys/ioctl.h rule.
5240
5241         string: Avoid #define replacements in C++ mode.
5242         * lib/string.in.h: Include c++defs.h.
5243         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
5244         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
5245         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
5246         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
5247         strsignal, strverscmp): In C++, define a namespaced alias symbol.
5248         * modules/string (Depends-on): Add c++defs.
5249         (Makefile.am): Update string.h rule.
5250
5251         stdlib: Avoid #define replacements in C++ mode.
5252         * lib/stdlib.in.h: Include c++defs.h.
5253         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
5254         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
5255         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
5256         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
5257         symbol.
5258         * modules/stdlib (Depends-on): Add c++defs.
5259         (Makefile.am): Update stdlib.h rule.
5260
5261         stdio: Avoid #define replacements in C++ mode.
5262         * lib/stdio.in.h: Include c++defs.h.
5263         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
5264         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
5265         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
5266         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
5267         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
5268         namespaced alias symbol.
5269         * modules/stdio (Depends-on): Add c++defs.
5270         (Makefile.am): Update stdio.h rule.
5271
5272         spawn: Avoid #define replacements in C++ mode.
5273         * lib/spawn.in.h: Include c++defs.h.
5274         (posix_spawn, posix_spawnp, posix_spawnattr_init,
5275         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
5276         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
5277         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
5278         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
5279         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
5280         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
5281         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
5282         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
5283         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
5284         In C++, define a namespaced alias symbol.
5285         * modules/spawn (Depends-on): Add c++defs.
5286         (Makefile.am): Update spawn.h rule.
5287
5288         signal: Avoid #define replacements in C++ mode.
5289         * lib/signal.in.h: Include c++defs.h.
5290         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
5291         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
5292         namespaced alias symbol.
5293         * modules/signal (Depends-on): Add c++defs.
5294         (Makefile.am): Update signal.h rule.
5295
5296         search: Avoid #define replacements in C++ mode.
5297         * lib/search.in.h: Include c++defs.h.
5298         (_gl_search_compar_fn, _gl_search_action_fn): New types.
5299         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
5300         symbol.
5301         * modules/search (Depends-on): Add c++defs.
5302         (Makefile.am): Update search.h rule.
5303
5304         math: Avoid #define replacements in C++ mode.
5305         * lib/math.in.h: Include c++defs.h.
5306         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
5307         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
5308         trunc, truncl): In C++, define a namespaced alias symbol.
5309         * modules/math (Depends-on): Add c++defs.
5310         (Makefile.am): Update math.h rule.
5311
5312         locale: Avoid #define replacements in C++ mode.
5313         * lib/locale.in.h: Include c++defs.h.
5314         (duplocale): In C++, define a namespaced alias symbol.
5315         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
5316         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
5317         * modules/locale (Depends-on): Add c++defs.
5318         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
5319
5320         langinfo: Avoid #define replacements in C++ mode.
5321         * lib/langinfo.in.h: Include c++defs.h.
5322         (nl_langinfo): In C++, define a namespaced alias symbol.
5323         * modules/langinfo (Depends-on): Add c++defs.
5324         (Makefile.am): Update langinfo.h rule.
5325
5326         iconv-h: Avoid #define replacements in C++ mode.
5327         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
5328         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
5329         symbol.
5330         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
5331         whenever iconv is present.
5332         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
5333         (Makefile.am): Update iconv.h rule.
5334
5335         glob: Avoid #define replacements in C++ mode.
5336         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
5337         (_gl_glob_errfunc_fn): New type.
5338         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
5339         symbol.
5340         * modules/glob (Depends-on): Add c++defs, warn-on-use.
5341         (Makefile.am): Update glob.h rule.
5342
5343         fcntl-h: Avoid #define replacements in C++ mode.
5344         * lib/fcntl.in.h: Include c++defs.h.
5345         (fcntl, open, openat): In C++, define a namespaced alias symbol.
5346         * modules/fcntl-h (Depends-on): Add c++defs.
5347         (Makefile.am): Update fcntl.h rule.
5348
5349         dirent: Avoid #define replacements in C++ mode.
5350         * lib/dirent.in.h: Include c++defs.h.
5351         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
5352         namespaced alias symbol.
5353         (dirfd): Update declaration.
5354         * modules/dirent (Depends-on): Add c++defs.
5355         (Makefile.am): Update dirent.h rule.
5356
5357         ctype: Make it usable in C++ code.
5358         * lib/ctype.in.h: Include c++defs.h.
5359         (isblank): Declare as extern "C".
5360         * modules/ctype (Depends-on): Add c++defs.
5361         (Makefile.am): Update ctype.h rule.
5362
5363         New module 'c++defs'.
5364         * modules/c++defs: New file.
5365         * build-aux/c++defs.h: New file.
5366         Reported by John W. Eaton <jwe@gnu.org>.
5367
5368 2010-03-07  Bruno Haible  <bruno@clisp.org>
5369
5370         logb: Provide missing declaration for Cygwin.
5371         * lib/math.in.h (logb): New declaration.
5372         * m4/logb.m4: New file.
5373         * modules/logb (Files): Add m4/logb.m4.
5374         (Depends-on): Add math.
5375         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
5376         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
5377         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
5378         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
5379         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
5380
5381 2010-03-07  Bruno Haible  <bruno@clisp.org>
5382
5383         Fix test-cond link error.
5384         * tests/test-cond.c: Include <stdio.h>.
5385
5386 2010-03-07  Bruno Haible  <bruno@clisp.org>
5387
5388         Fix test-dirent-safer link error.
5389         * modules/dirent-safer-tests (Makefile.am): Define
5390         test_dirent_safer_LDADD.
5391
5392 2010-03-07  Bruno Haible  <bruno@clisp.org>
5393
5394         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
5395         among default module list.
5396
5397 2010-03-07  Bruno Haible  <bruno@clisp.org>
5398
5399         Fix link error on platforms with GNU libiconv.
5400         * modules/unistr/u8-strcoll-tests (Makefile): Define
5401         test_u8_strcoll_LDADD.
5402         * modules/unistr/u16-strcoll-tests (Makefile): Define
5403         test_u16_strcoll_LDADD.
5404         * modules/unistr/u32-strcoll-tests (Makefile): Define
5405         test_u32_strcoll_LDADD.
5406
5407 2010-03-07  Bruno Haible  <bruno@clisp.org>
5408
5409         Use POSIX declarations for socket functions.
5410         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
5411         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
5412         rpl_sendto): Change declaration to match POSIX.
5413         * lib/connect.c (rpl_connect): Likewise.
5414         * lib/accept.c (rpl_accept): Likewise.
5415         * lib/bind.c (rpl_bind): Likewise.
5416         * lib/getpeername.c (rpl_getpeername): Likewise.
5417         * lib/getsockname.c (rpl_getsockname): Likewise.
5418         * lib/recv.c (rpl_recv): Likewise.
5419         * lib/send.c (rpl_send): Likewise.
5420         * lib/recvfrom.c (rpl_recvfrom): Likewise.
5421         * lib/sendto.c (rpl_sendto): Likewise.
5422
5423 2010-03-06  Bruno Haible  <bruno@clisp.org>
5424
5425         Clarify access, euidaccess, faccessat.
5426         * doc/posix-functions/faccessat.texi: Mention security problem under
5427         "Other problems", not "Portability problems".
5428         * doc/posix-functions/access.texi: Likewise. Mention a related security
5429         problem.
5430         * doc/glibc-functions/euidaccess.texi: Mention security problems.
5431         * lib/euidaccess.c: Add comments about platforms.
5432         * lib/unistd.in.h (access, euidaccess): Add warnings.
5433
5434 2010-03-07  Bruno Haible  <bruno@clisp.org>
5435
5436         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
5437         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
5438         (POSIX_SPAWN_SETSCHEDULER): Likewise.
5439         (POSIX_SPAWN_USEVFORK): Define in a way that works when
5440         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
5441         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
5442         declare when POSIX_SPAWN_SETSCHEDULER is zero.
5443         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
5444         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
5445         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
5446         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
5447         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
5448         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
5449         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
5450         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
5451         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
5452         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
5453         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
5454         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
5455         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
5456         Likewise.
5457         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
5458         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
5459         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
5460         Likewise.
5461         * tests/test-spawn.c (main): Make it work when
5462         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
5463
5464 2010-03-07  Bruno Haible  <bruno@clisp.org>
5465
5466         Fix incorrect Makefile.am generation in German locale.
5467         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
5468         Execute sed command with character range in C locale.
5469
5470 2010-03-06  Bruno Haible  <bruno@clisp.org>
5471
5472         Tests for module 'iconv-h'.
5473         * modules/iconv-h-tests: New file.
5474         * tests/test-iconv-h.c: New file.
5475
5476         New module 'iconv-h'.
5477         * modules/iconv-h: New file.
5478         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
5479         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
5480         (configure.ac): Remove gl_ICONV_H.
5481         (Makefile.am): Remove rule for iconv.h.
5482
5483 2010-03-06  Bruno Haible  <bruno@clisp.org>
5484
5485         More consistent naming of *.m4 files.
5486         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
5487         * modules/wctype (Files): Update.
5488
5489         More consistent naming of *.m4 files.
5490         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
5491         * modules/wchar (Files): Update.
5492
5493 2010-03-06  Jim Meyering  <meyering@redhat.com>
5494
5495         euidaccess: relax license to LGPLv2+
5496         * modules/euidaccess (License): Relax to LGPLv2+.
5497
5498 2010-03-06  Bruno Haible  <bruno@clisp.org>
5499
5500         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
5501         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
5502         (Makefile.am): Augment lib_SOURCES instead.
5503
5504 2010-03-04  Jim Meyering  <meyering@redhat.com>
5505
5506         utime: remove obsolete module
5507         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
5508         unnecessary for years, and has been marked as obsolete for 10 months.
5509         * modules/utime: Remove file.
5510         * lib/utime.c: Remove file.
5511         * m4/utime.m4: Remove file.
5512         * m4/utimes-null.m4: Remove file.
5513         * doc/posix-functions/utime.texi (utime): Remove reference to
5514         the module.  Move the sole "fixed by gnulib" item into the
5515         "problems not fixed by Gnulib" list.
5516         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
5517
5518 2010-03-05  Simon Josefsson  <simon@josefsson.org>
5519
5520         * modules/exit (License): Relax license to LGPLv2+.
5521         (Status): Mark as obsolete.
5522         * NEWS: Mention deprecated 'exit' module.
5523         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
5524         of now obsolete 'exit'.
5525
5526 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5527
5528         fts-lgpl: remove unused module
5529         * modules/fts-lgpl: Remove.
5530         * MODULES.html.sh (func_all_modules): Adjust.
5531         * check-module (find_included_lib_files): Adjust.
5532         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
5533
5534 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
5535
5536         copy-acl: enhance Solaris ACL error handling
5537         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
5538         * lib/set-mode-acl.c (qset_acl): Likewise.
5539
5540 2010-03-02  Bruno Haible  <bruno@clisp.org>
5541
5542         spawn: Don't override the system defined values on FreeBSD 8.
5543         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
5544         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
5545         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
5546         if HAVE_POSIX_SPAWN is 1.
5547         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
5548
5549 2010-03-01  Bruno Haible  <bruno@clisp.org>
5550
5551         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
5552         regarding Automake.
5553
5554 2010-02-25  Bruno Haible  <bruno@clisp.org>
5555
5556         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
5557         * gnulib-tool: Define 'echo' as a function only before the ksh alias
5558         setting, not afterwards.
5559         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
5560
5561 2010-02-24  Eric Blake  <eblake@redhat.com>
5562
5563         bootstrap, git-version-gen: use timestamp
5564         * build-aux/git-version-gen (scriptversion): Force UTC.
5565         * build-aux/bootstrap (scriptversion): New variable.
5566
5567         bootstrap: allow older git
5568         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
5569         older than 1.6.4.  Requested by the libvirt project.
5570
5571 2010-02-23  Eric Blake  <eblake@redhat.com>
5572
5573         warn-on-use: work with old autoconf
5574         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
5575         AS_VAR semantics of autoconf 2.60.
5576         Reported by Bruno Haible.
5577
5578         bootstrap: improve some comments
5579         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
5580         clarification comments.
5581
5582         gettimeofday: provide correct function
5583         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
5584         when replacement is declared, otherwise provide gettimeofday.
5585         Reported by Michael Goffioul.
5586
5587 2010-02-23  Jim Meyering  <meyering@redhat.com>
5588
5589         lib-ignore: relax license to "unlimited", not LGPLv2+
5590         * modules/lib-ignore (License): Relax to "unlimited".
5591
5592 2010-02-23  Jim Meyering  <meyering@redhat.com>
5593
5594         lib-ignore: relax license to LGPLv2+
5595         * modules/lib-ignore (License): Relax to LGPLv2+.
5596
5597 2010-02-22  Eric Blake  <eblake@redhat.com>
5598
5599         lseek: avoid bash 3.2 broken pipe bug
5600         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
5601         warning from bash 3.2.
5602         Reported by Ben Pfaff, with analysis from Bruno Haible.
5603
5604         bootstrap: support non-FSF copyright holder
5605         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
5606         bootstrap.conf override of COPYRIGHT_HOLDER.
5607         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
5608
5609         bootstrap: interoperate with gettext 0.14.1
5610         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
5611
5612         bootstrap: allow for alternate submodule location
5613         * build-aux/bootstrap (gnulib_path): New variable; use instead of
5614         hardcoding submodule location.
5615         (gnulib_mk): Allow direct use of Makefile.am.
5616
5617         bootstrap: use GNULIB_SRCDIR to reduce disk usage
5618         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
5619         rather than reconfiguring where the submodule points.
5620
5621         gettimeofday: restore support for platforms that lack function
5622         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
5623         replacement if function is missing.
5624         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
5625         * modules/sys_time (Makefile.am): Substitute it.
5626         * lib/sys_time.in.h (gettimeofday): Check it.
5627         Reported by Michael Goffioul.
5628
5629 2010-02-21  Bruno Haible  <bruno@clisp.org>
5630
5631         * lib/stdio.in.h (obstack_printf): Fix typo.
5632
5633 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
5634
5635         vc-list-files: use bzr ls's -R option
5636         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
5637         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
5638
5639 2010-02-21  Jim Meyering  <meyering@redhat.com>
5640
5641         init.sh: fix EXEEXT shims to work also for names like test-prog
5642         * tests/init.sh: Re-exec a better shell, when needed.
5643         If the current shell lacks support for posix $(...), an init.sh-using
5644         test will now try to find a shell that supports that.  If EXEEXT is
5645         nonempty, we also require support for hyphen-in-alias-name and shell
5646         substitutions like ${var#glob}.  Failure to find such a shell results
5647         in a skipped test.
5648
5649 2010-02-21  Bruno Haible  <bruno@clisp.org>
5650
5651         Really work around around "broken pipe" error message from bash 3.2.
5652         * gnulib-tool (func_reset_sigpipe): Remove function.
5653         (echo): In bash 3.2, define to a function that uses printf.
5654         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
5655
5656 2010-02-20  Bruno Haible  <bruno@clisp.org>
5657
5658         Restore support for automake 1.9.6 with autoconf 2.61.
5659         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
5660         Reported by James Youngman <jay@gnu.org>.
5661
5662 2010-02-20  Bruno Haible  <bruno@clisp.org>
5663
5664         Improve *printf warning condition.
5665         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
5666         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
5667         and the function is overridden due to SIGPIPE emulation.
5668
5669 2010-02-20  Bruno Haible  <bruno@clisp.org>
5670
5671         * lib/stdio.in.h: Tweak comments.
5672
5673 2010-02-19  Bruno Haible  <bruno@clisp.org>
5674
5675         Make it easier to find modules. New gnulib-tool option '--find'.
5676         * gnulib-tool: New option --find.
5677         (func_usage): Document it.
5678         (func_sanitize_modulelist): New function, extracted from
5679         func_all_modules.
5680         (func_all_modules): Invoke it.
5681         * doc/gnulib-tool.texi (Which modules?): New node.
5682
5683 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
5684
5685         * lib/sys_select.in.h: Provide select replacement even if
5686         sys/select.h exists on a system, for Interix.
5687
5688 2010-02-18  Jim Meyering  <meyering@redhat.com>
5689
5690         init.sh: don't use $(...) just yet
5691         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
5692         to accommodate e.g., Solaris' /bin/sh.
5693
5694 2010-02-17  Bruno Haible  <bruno@clisp.org>
5695
5696         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
5697         Reported by Ludovic Courtès <ludo@gnu.org>.
5698
5699 2010-02-16  Simon Josefsson  <simon@josefsson.org>
5700
5701         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
5702         linking with -lintl.
5703
5704 2010-02-17  Simon Josefsson  <simon@josefsson.org>
5705
5706         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
5707         if not provided by the system's netdb.h.  Reported by
5708         ludo@gnu.org (Ludovic Courtès).
5709
5710 2010-02-15  Jim Meyering  <meyering@redhat.com>
5711
5712         init.sh: improve portability and efficiency
5713         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
5714         "dummy" in a for loop.
5715         Use '!', not '^' to select the complement of a character set used
5716         in a "case" statement.
5717         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
5718         Suggestions from Eric Blake.
5719
5720         init.sh: automatically accommodate programs with the .exe suffix
5721         Automatically arrange for an invocation of "prog" to execute the
5722         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
5723         may use the simpler "prog", yet still work when built on a system
5724         that requires specifying the added suffix.
5725         Do this by constructing a function named "prog" that invokes
5726         "prog.exe" for each .exe file in selected directories.
5727         * tests/init.sh (find_exe_basenames_): New function.
5728         (create_exe_shim_functions_): New function.
5729         (path_prepend_): Use it.
5730
5731         maint.mk: mark syntax-check sc_*.m rules as .PHONY
5732         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
5733         "make -t syntax-check" doesn't create a ton of sc_*.m files.
5734
5735 2010-02-14  Jim Meyering  <meyering@redhat.com>
5736
5737         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
5738         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
5739         (sc_prohibit_hash_pjw_without_use): New rule.
5740
5741         maint.mk: allow the default upload destination dir to be overridden
5742         * top/maint.mk (upload_dest_dir_): Define with a default that
5743         preserves the status quo.
5744         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
5745         Reported by Peter Simons.
5746
5747         maint.mk: prohibit inclusion of "hash.h" without_use
5748         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
5749
5750 2010-02-10  Jim Meyering  <meyering@redhat.com>
5751
5752         maint.mk: prohibit inclusion of "ignore-value.h" without_use
5753         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
5754
5755 2010-02-09  Eric Blake  <ebb9@byu.net>
5756         and Bruno Haible  <bruno@clisp.org>
5757
5758         obstack-printf-posix: ensure declaration
5759         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
5760         extracted from gl_FUNC_OBSTACK_PRINTF.
5761         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
5762         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
5763         Likewise.
5764         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
5765         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
5766         0.
5767
5768 2010-02-08  Bruno Haible  <bruno@clisp.org>
5769
5770         gnulib-tool: Fix typo in 2010-02-07 commit.
5771         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
5772         Reported by Eric Blake.
5773
5774 2010-02-07  Bruno Haible  <bruno@clisp.org>
5775
5776         gnulib-tool: Fix up caching patches.
5777         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
5778         option --no-cache. Use associative arrays when supported by the shell.
5779         (sed_comments): New variable.
5780         (modcache): Renamed from do_cache.
5781         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
5782         abbreviate unnecessarily.
5783         (have_associative): New variable.
5784         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
5785         way also for ksh and zsh.
5786         (func_init_sed_convert_to_cache_statements): New function, extracted
5787         from func_cache_lookup_module. Add support for associative arrays.
5788         Don't set the c_MODULE_cached variable here. Ignore all lines before
5789         the first field header. Remove only the final newline, not all trailing
5790         newlines. Support empty fields correctly. Limit the use of 'eval' to
5791         assignments.
5792         (func_get_description, func_get_status, func_get_notice,
5793         func_get_applicability, func_get_filelist, func_get_dependencies,
5794         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
5795         func_get_automake_snippet, func_get_include_directive,
5796         func_get_link_directive, func_get_license, func_get_maintainer):
5797         Update documentation. List the unoptimized code first. Add support for
5798         associative arrays. Limit the use of 'eval' to assignments.
5799         (func_get_applicability): Undo stylistic pessimisations.
5800         (func_get_automake_snippet, func_get_include_directive): Reduce code
5801         duplication.
5802         (func_modules_transitive_closure, func_modules_add_dummy,
5803         func_modules_notice, func_modules_to_filelist, func_add_file,
5804         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
5805         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
5806         func_create_testdir, func_create_megatestdir): Update documentation.
5807
5808 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5809
5810         * gnulib-tool (func_cache_lookup_module): Store the module name
5811         belonging to the cache variable; error out if two different
5812         module names map to the same cache variable name.
5813
5814 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5815
5816         gnulib-tool: Make caching optional.
5817         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
5818         Update matching short versions of --no-changelog.
5819         (func_usage): Update.
5820         (sed_extract_cache_prog): Renamed from ...
5821         (sed_extract_prog): ... this; revert to old extraction script.
5822         (func_get_description, func_get_status)
5823         (func_get_notice, func_get_applicability, func_get_filelist)
5824         (func_get_dependencies, func_get_autoconf_early_snippet)
5825         (func_get_autoconf_snippet, func_get_automake_snippet)
5826         (func_get_include_directive, func_get_link_directive)
5827         (func_get_license, func_get_maintainer): If $do_cache is false,
5828         use old, non-caching extraction scripts.
5829         Suggestion by Bruno Haible.
5830
5831 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5832
5833         gnulib-tool: cache module metainformation.
5834         * gnulib-tool (sed_extract_prog): Match newline before each
5835         header, and rewrite header to a shell variable suffix.
5836         (func_cache_var, func_cache_lookup_module): New functions,
5837         to turn a module name into a cache variable prefix, and to
5838         look up and cache module metainformation.
5839         (func_get_description, func_get_status)
5840         (func_get_notice, func_get_applicability, func_get_filelist)
5841         (func_get_dependencies, func_get_autoconf_early_snippet)
5842         (func_get_autoconf_snippet, func_get_automake_snippet)
5843         (func_get_include_directive, func_get_link_directive)
5844         (func_get_license, func_get_maintainer): Use
5845         func_cache_lookup_module.
5846
5847 2010-02-07  Bruno Haible  <bruno@clisp.org>
5848
5849         fnctl: Fix missing dependency.
5850         * modules/fcntl (Depends-on): Add getdtablesize.
5851         Reported by John W. Eaton <jwe@gnu.org>.
5852
5853 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
5854
5855         Argp: fix recognition of short alias options.
5856
5857         * lib/argp-parse.c (convert_options): Fix improper use of
5858         `|' between character values.
5859         * tests/test-argp.c (group1_option): New alias option
5860         --read (-r).
5861         (group1_parser): Special handling for 'r'.
5862         (test15): New test case.
5863         (test_fun): Add test15.
5864         * tests/test-argp-2.sh: Update expected --help and --usage
5865         outputs.
5866
5867 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
5868
5869         * tests/test-argp.c: Fix indentation.
5870
5871 2010-02-04  Eric Blake  <ebb9@byu.net>
5872
5873         gettimeofday: expose type of second argument
5874         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
5875         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
5876         * tests/test-gettimeofday.c: Use it to silence warning.
5877         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
5878         the issue.
5879
5880 2010-02-03  Jim Meyering  <meyering@redhat.com>
5881
5882         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
5883         * lib/regcomp.c (TYPE_SIGNED): Define.
5884         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
5885
5886         regcomp.c: avoid a new -Wshadow warning
5887         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
5888
5889 2010-02-01  Jim Meyering  <meyering@redhat.com>
5890
5891         removing useless parentheses in cpp #define directives
5892         For motivation, see commit c0221df4, "define STREQ(a,b)
5893         consistently, removing useless parentheses"
5894         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
5895         * lib/mountlist.c (MNT_IGNORE): Likewise.
5896         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
5897
5898 2010-02-01  Eric Blake  <ebb9@byu.net>
5899
5900         sys_time: use link-warning
5901         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
5902         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
5903         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
5904         * modules/sys_time (Depends-on): Add warn-on-use.
5905         (Makefile.am): Always build replacement.
5906         (configure.ac): Update substitutions.
5907         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
5908         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
5909         bother with SYS_TIME_H.
5910         * modules/gettimeofday (configure.ac): Declare indicator.
5911         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
5912         in use.
5913
5914         closein-tests: silence compiler warning
5915         * tests/test-closein.c (main): Ignore fread result.
5916         * modules/closein-tests (Depends-on): Add ignore-value.
5917
5918         tests: silence warning about system return
5919         * tests/test-areadlink-with-size.c (main): Ignore system result.
5920         * tests/test-areadlink.c (main): Likewise.
5921         * tests/test-areadlinkat-with-size.c (main): Likewise.
5922         * tests/test-areadlinkat.c (main): Likewise.
5923         * tests/test-canonicalize-lgpl.c (main): Likewise.
5924         * tests/test-canonicalize.c (main): Likewise.
5925         * tests/test-chown.c (main): Likewise.
5926         * tests/test-fchownat.c (main): Likewise.
5927         * tests/test-fdutimensat.c (main): Likewise.
5928         * tests/test-fstatat.c (main): Likewise.
5929         * tests/test-futimens.c (main): Likewise.
5930         * tests/test-lchown.c (main): Likewise.
5931         * tests/test-link.c (main): Likewise.
5932         * tests/test-linkat.c (main): Likewise.
5933         * tests/test-lstat.c (main): Likewise.
5934         * tests/test-mkdir.c (main): Likewise.
5935         * tests/test-mkdirat.c (main): Likewise.
5936         * tests/test-mkfifo.c (main): Likewise.
5937         * tests/test-mkfifoat.c (main): Likewise.
5938         * tests/test-mknod.c (main): Likewise.
5939         * tests/test-readlink.c (main): Likewise.
5940         * tests/test-remove.c (main): Likewise.
5941         * tests/test-rename.c (main): Likewise.
5942         * tests/test-renameat.c (main): Likewise.
5943         * tests/test-rmdir.c (main): Likewise.
5944         * tests/test-symlink.c (main): Likewise.
5945         * tests/test-symlinkat.c (main): Likewise.
5946         * tests/test-unlink.c (main): Likewise.
5947         * tests/test-unlinkat.c (main): Likewise.
5948         * tests/test-utimens.c (main): Likewise.
5949         * tests/test-utimensat.c (main): Likewise.
5950         * modules/areadlink-tests (Depends-on): Add ignore-value.
5951         * modules/areadlink-with-size-tests (Depends-on): Likewise.
5952         * modules/areadlinkat-tests (Depends-on): Likewise.
5953         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
5954         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
5955         * modules/canonicalize-tests (Depends-on): Likewise.
5956         * modules/chown-tests (Depends-on): Likewise.
5957         * modules/fdutimensat-tests (Depends-on): Likewise.
5958         * modules/futimens-tests (Depends-on): Likewise.
5959         * modules/lchown-tests (Depends-on): Likewise.
5960         * modules/link-tests (Depends-on): Likewise.
5961         * modules/linkat-tests (Depends-on): Likewise.
5962         * modules/lstat-tests (Depends-on): Likewise.
5963         * modules/mkdir-tests (Depends-on): Likewise.
5964         * modules/mkfifo-tests (Depends-on): Likewise.
5965         * modules/mkfifoat-tests (Depends-on): Likewise.
5966         * modules/mknod-tests (Depends-on): Likewise.
5967         * modules/openat-tests (Depends-on): Likewise.
5968         * modules/readlink-tests (Depends-on): Likewise.
5969         * modules/remove-tests (Depends-on): Likewise.
5970         * modules/rename-tests (Depends-on): Likewise.
5971         * modules/renameat-tests (Depends-on): Likewise.
5972         * modules/rmdir-tests (Depends-on): Likewise.
5973         * modules/symlink-tests (Depends-on): Likewise.
5974         * modules/symlinkat-tests (Depends-on): Likewise.
5975         * modules/unlink-tests (Depends-on): Likewise.
5976         * modules/utimens-tests (Depends-on): Likewise.
5977         * modules/utimensat-tests (Depends-on): Likewise.
5978
5979 2010-01-31  Bruno Haible  <bruno@clisp.org>
5980
5981         Perform the same test for many <math.h> functions.
5982         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
5983         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
5984         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
5985         of gl_MATHFUNC.
5986         * modules/acos (configure.ac): Likewise.
5987         * modules/asin (configure.ac): Likewise.
5988         * modules/atan (configure.ac): Likewise.
5989         * modules/atan2 (configure.ac): Likewise.
5990         * modules/cbrt (configure.ac): Likewise.
5991         * modules/copysign (configure.ac): Likewise.
5992         * modules/cos (configure.ac): Likewise.
5993         * modules/cosh (configure.ac): Likewise.
5994         * modules/erf (configure.ac): Likewise.
5995         * modules/erfc (configure.ac): Likewise.
5996         * modules/exp (configure.ac): Likewise.
5997         * modules/fmod (configure.ac): Likewise.
5998         * modules/hypot (configure.ac): Likewise.
5999         * modules/j0 (configure.ac): Likewise.
6000         * modules/j1 (configure.ac): Likewise.
6001         * modules/jn (configure.ac): Likewise.
6002         * modules/lgamma (configure.ac): Likewise.
6003         * modules/log (configure.ac): Likewise.
6004         * modules/log10 (configure.ac): Likewise.
6005         * modules/log1p (configure.ac): Likewise.
6006         * modules/pow (configure.ac): Likewise.
6007         * modules/remainder (configure.ac): Likewise.
6008         * modules/sin (configure.ac): Likewise.
6009         * modules/sinh (configure.ac): Likewise.
6010         * modules/tan (configure.ac): Likewise.
6011         * modules/tanh (configure.ac): Likewise.
6012         * modules/y0 (configure.ac): Likewise.
6013         * modules/y1 (configure.ac): Likewise.
6014         * modules/yn (configure.ac): Likewise.
6015         Suggested by Paolo Bonzini.
6016
6017 2010-01-31  Bruno Haible  <bruno@clisp.org>
6018
6019         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
6020
6021 2010-01-31  Bruno Haible  <bruno@clisp.org>
6022
6023         Work around getdelim() bug on FreeBSD 8.0.
6024         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
6025         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
6026         not work.
6027         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
6028         is 1.
6029         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
6030         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
6031         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
6032         a non-zero size.
6033         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
6034
6035 2010-01-31  Bruno Haible  <bruno@clisp.org>
6036
6037         Work around getline() bug on FreeBSD 8.0.
6038         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
6039         and a non-zero size.
6040         * tests/test-getline.c (main): Likewise.
6041         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
6042         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
6043
6044 2010-01-28  Eric Blake  <ebb9@byu.net>
6045
6046         regex: fix build failure
6047         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
6048         platforms.
6049
6050 2010-01-28  Jim Meyering  <meyering@redhat.com>
6051
6052         regex: do not ignore memory allocation failure
6053         * lib/regex_internal.c (create_cd_newstate): Detect
6054         re_node_set_init_copy failure.   Extracted from glibc commit
6055         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
6056
6057         regex: sync more white-space changes from libc
6058         * lib/regex_internal.c: White-space only changes.
6059         * lib/regexec.c: Likewise.
6060
6061         regex: add many uses of __attribute_warn_unused_result__
6062         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
6063         * lib/regexec.c: Likewise.
6064         Extracted from a messy glibc commit.
6065
6066         regcomp.c: spelling and merge-artifact from glibc
6067         * lib/regcomp.c: Merge remainder of glibc's
6068         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
6069
6070         regcomp.c: sync white-space changes from glibc
6071         * lib/regcomp.c: Merge to accommodate white space
6072         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
6073
6074         regcomp.c: do not ignore internal return values
6075         * lib/regcomp.c: Do not ignore internal return values.
6076         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
6077         but without its white-space changes and spelling fixes.
6078
6079         regex_internal.h: define __attribute_warn_unused_result__
6080         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
6081
6082         maint: add a syntax-check rule to check for vulnerable Makefile.in
6083         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
6084
6085 2010-01-27  Jim Meyering  <meyering@redhat.com>
6086
6087         ncftpput-ftp: clean up spaces
6088         * build-aux/ncftpput-ftp: Make Copyright line consistent.
6089         Remove trailing blanks.
6090
6091 2010-01-27  Simon Josefsson  <simon@josefsson.org>
6092
6093         * build-aux/git-version-gen: Fix copyright statement.
6094         * build-aux/gnupload: Likewise.
6095         * tests/test-arcfour.c: Likewise.
6096         * tests/test-arctwo.c: Likewise.
6097         * tests/test-count-one-bits.c: Likewise.
6098         * tests/test-crc.c: Likewise.
6099         * tests/test-des.c: Likewise.
6100         * tests/test-gc-arcfour.c: Likewise.
6101         * tests/test-gc-arctwo.c: Likewise.
6102         * tests/test-gc-des.c: Likewise.
6103         * tests/test-gc-hmac-md5.c: Likewise.
6104         * tests/test-gc-hmac-sha1.c: Likewise.
6105         * tests/test-gc-md2.c: Likewise.
6106         * tests/test-gc-md4.c: Likewise.
6107         * tests/test-gc-md5.c: Likewise.
6108         * tests/test-gc-pbkdf2-sha1.c: Likewise.
6109         * tests/test-gc-rijndael.c: Likewise.
6110         * tests/test-gc-sha1.c: Likewise.
6111         * tests/test-gc.c: Likewise.
6112         * tests/test-gethostname.c: Likewise.
6113         * tests/test-gettimeofday.c: Likewise.
6114         * tests/test-hash.c: Likewise.
6115         * tests/test-hmac-md5.c: Likewise.
6116         * tests/test-hmac-sha1.c: Likewise.
6117         * tests/test-md2.c: Likewise.
6118         * tests/test-md4.c: Likewise.
6119         * tests/test-md5.c: Likewise.
6120         * tests/test-memchr.c: Likewise.
6121         * tests/test-memchr2.c: Likewise.
6122         * tests/test-memcmp.c: Likewise.
6123         * tests/test-memmem.c: Likewise.
6124         * tests/test-memrchr.c: Likewise.
6125         * tests/test-rawmemchr.c: Likewise.
6126         * tests/test-read-file.c: Likewise.
6127         * tests/test-rijndael.c: Likewise.
6128         * tests/test-sockets.c: Likewise.
6129         * tests/test-strchrnul.c: Likewise.
6130         * tests/test-strstr.c: Likewise.
6131         * tests/test-strtod.c: Likewise.
6132         * build-aux/ncftpput-ftp: Likewise.
6133
6134 2010-01-26  Eric Blake  <ebb9@byu.net>
6135
6136         ignore-value: update recommended header name
6137         * modules/ignore-value (Include): Only use <> for headers that
6138         exist in glibc.
6139
6140 2010-01-26  Jim Meyering  <meyering@redhat.com>
6141
6142         test-userspec.c: avoid compiler warnings
6143         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
6144         and "initialization discards qualifiers..." warnings.
6145         Put the first "uid" in its own scope, and make char* members "const".
6146
6147 2010-01-25  Bruno Haible  <bruno@clisp.org>
6148
6149         gnulib-tool: Make warning diagnostics consistent.
6150         * gnulib-tool (func_warning): New function.
6151         Use it everywhere where gnulib-tool produces output to stderr and it is
6152         not a fatal error.
6153
6154 2010-01-25  Bruno Haible  <bruno@clisp.org>
6155
6156         Fix test dependencies.
6157         * modules/xstrtol-tests (Depends-on): Add inttypes.
6158         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
6159
6160 2010-01-25 Pádraig Brady <P@draigBrady.com>
6161
6162         syntax-check: detect incorrect boolean macro values in config.h
6163         * modules/maintainer-makefile (configure.ac): Parameterize the location
6164         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
6165         The logic is from Eric Blake and the location indicated by Jim Meyering.
6166         Note the more natural CONFIG_HEADER name is prohibited by automake
6167         for backwards compatibility reasons.
6168         * top/maint.mk (sc_Wundef_boolean): New rule.
6169
6170 2010-01-25  Jim Meyering  <meyering@redhat.com>
6171
6172         bootstrap: detect MacOS 10.6's shasum, too
6173         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
6174         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
6175
6176 2010-01-23  Jim Meyering  <meyering@redhat.com>
6177
6178         xstrtoll: new module
6179         * modules/xstrtoll: New file.
6180         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
6181         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
6182         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
6183         ./configure fails if you use this module and lack "long long".
6184         * modules/xstrtoll-tests: New module.
6185         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
6186         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
6187         new init.sh-based test framework.
6188
6189 2010-01-24  Bruno Haible  <bruno@clisp.org>
6190
6191         Tests for module 'yn'.
6192         * modules/yn-tests: New file.
6193         * tests/test-yn.c: New file.
6194
6195         Tests for module 'y1'.
6196         * modules/y1-tests: New file.
6197         * tests/test-y1.c: New file.
6198
6199         Tests for module 'y0'.
6200         * modules/y0-tests: New file.
6201         * tests/test-y0.c: New file.
6202
6203         Tests for module 'tanh'.
6204         * modules/tanh-tests: New file.
6205         * tests/test-tanh.c: New file.
6206
6207         Tests for module 'tan'.
6208         * modules/tan-tests: New file.
6209         * tests/test-tan.c: New file.
6210
6211         Tests for module 'sqrt'.
6212         * modules/sqrt-tests: New file.
6213         * tests/test-sqrt.c: New file.
6214
6215         Tests for module 'sinh'.
6216         * modules/sinh-tests: New file.
6217         * tests/test-sinh.c: New file.
6218
6219         Tests for module 'sin'.
6220         * modules/sin-tests: New file.
6221         * tests/test-sin.c: New file.
6222
6223         Tests for module 'rint'.
6224         * modules/rint-tests: New file.
6225         * tests/test-rint.c: New file.
6226
6227         Tests for module 'remainder'.
6228         * modules/remainder-tests: New file.
6229         * tests/test-remainder.c: New file.
6230
6231         Tests for module 'pow'.
6232         * modules/pow-tests: New file.
6233         * tests/test-pow.c: New file.
6234
6235         Tests for module 'nextafter'.
6236         * modules/nextafter-tests: New file.
6237         * tests/test-nextafter.c: New file.
6238
6239         Tests for module 'modf'.
6240         * modules/modf-tests: New file.
6241         * tests/test-modf.c: New file.
6242
6243         Tests for module 'logb'.
6244         * modules/logb-tests: New file.
6245         * tests/test-logb.c: New file.
6246
6247         Tests for module 'log1p'.
6248         * modules/log1p-tests: New file.
6249         * tests/test-log1p.c: New file.
6250
6251         Tests for module 'log10'.
6252         * modules/log10-tests: New file.
6253         * tests/test-log10.c: New file.
6254
6255         Tests for module 'log'.
6256         * modules/log-tests: New file.
6257         * tests/test-log.c: New file.
6258
6259         Tests for module 'lgamma'.
6260         * modules/lgamma-tests: New file.
6261         * tests/test-lgamma.c: New file.
6262
6263         Tests for module 'ldexp'.
6264         * modules/ldexp-tests: New file.
6265         * tests/test-ldexp.c: New file.
6266
6267         Tests for module 'jn'.
6268         * modules/jn-tests: New file.
6269         * tests/test-jn.c: New file.
6270
6271         Tests for module 'j1'.
6272         * modules/j1-tests: New file.
6273         * tests/test-j1.c: New file.
6274
6275         Tests for module 'j0'.
6276         * modules/j0-tests: New file.
6277         * tests/test-j0.c: New file.
6278
6279         Tests for module 'hypot'.
6280         * modules/hypot-tests: New file.
6281         * tests/test-hypot.c: New file.
6282
6283         Tests for module 'fmod'.
6284         * modules/fmod-tests: New file.
6285         * tests/test-fmod.c: New file.
6286
6287         Tests for module 'fabs'.
6288         * modules/fabs-tests: New file.
6289         * tests/test-fabs.c: New file.
6290
6291         Tests for module 'exp'.
6292         * modules/exp-tests: New file.
6293         * tests/test-exp.c: New file.
6294
6295         Tests for module 'erfc'.
6296         * modules/erfc-tests: New file.
6297         * tests/test-erfc.c: New file.
6298
6299         Tests for module 'erf'.
6300         * modules/erf-tests: New file.
6301         * tests/test-erf.c: New file.
6302
6303         Tests for module 'cosh'.
6304         * modules/cosh-tests: New file.
6305         * tests/test-cosh.c: New file.
6306
6307         Tests for module 'cos'.
6308         * modules/cos-tests: New file.
6309         * tests/test-cos.c: New file.
6310
6311         Tests for module 'copysign'.
6312         * modules/copysign-tests: New file.
6313         * tests/test-copysign.c: New file.
6314
6315         Tests for module 'cbrt'.
6316         * modules/cbrt-tests: New file.
6317         * tests/test-cbrt.c: New file.
6318
6319         Tests for module 'atan2'.
6320         * modules/atan2-tests: New file.
6321         * tests/test-atan2.c: New file.
6322
6323         Tests for module 'atan'.
6324         * modules/atan-tests: New file.
6325         * tests/test-atan.c: New file.
6326
6327         Tests for module 'asin'.
6328         * modules/asin-tests: New file.
6329         * tests/test-asin.c: New file.
6330
6331         Tests for module 'acos'.
6332         * modules/acos-tests: New file.
6333         * tests/test-acos.c: New file.
6334
6335 2010-01-24  Bruno Haible  <bruno@clisp.org>
6336
6337         Fix tests for common <math.h> functions.
6338         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
6339         code snippet that references the function pointer, rather than merely
6340         calling the function. Substitute the FUNC_LIBM variable.
6341         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
6342         * modules/acos (configure.ac): Likewise.
6343         * modules/asin (configure.ac): Likewise.
6344         * modules/atan (configure.ac): Likewise.
6345         * modules/atan2 (configure.ac): Likewise.
6346         * modules/cbrt (configure.ac): Likewise.
6347         * modules/copysign (configure.ac): Likewise.
6348         * modules/cos (configure.ac): Likewise.
6349         * modules/cosh (configure.ac): Likewise.
6350         * modules/erf (configure.ac): Likewise.
6351         * modules/erfc (configure.ac): Likewise.
6352         * modules/exp (configure.ac): Likewise.
6353         * modules/fabs (configure.ac): Likewise.
6354         * modules/fmod (configure.ac): Likewise.
6355         * modules/hypot (configure.ac): Likewise.
6356         * modules/j0 (configure.ac): Likewise.
6357         * modules/j1 (configure.ac): Likewise.
6358         * modules/jn (configure.ac): Likewise.
6359         * modules/ldexp (configure.ac): Likewise.
6360         * modules/lgamma (configure.ac): Likewise.
6361         * modules/log (configure.ac): Likewise.
6362         * modules/log10 (configure.ac): Likewise.
6363         * modules/log1p (configure.ac): Likewise.
6364         * modules/logb (configure.ac): Likewise.
6365         * modules/modf (configure.ac): Likewise.
6366         * modules/nextafter (configure.ac): Likewise.
6367         * modules/pow (configure.ac): Likewise.
6368         * modules/remainder (configure.ac): Likewise.
6369         * modules/rint (configure.ac): Likewise.
6370         * modules/sin (configure.ac): Likewise.
6371         * modules/sinh (configure.ac): Likewise.
6372         * modules/tan (configure.ac): Likewise.
6373         * modules/tanh (configure.ac): Likewise.
6374         * modules/y0 (configure.ac): Likewise.
6375         * modules/y1 (configure.ac): Likewise.
6376         * modules/yn (configure.ac): Likewise.
6377
6378 2010-01-24  Bruno Haible  <bruno@clisp.org>
6379
6380         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
6381         * tests/test-acosl.c (x): New variable.
6382         (main): Store argument in x and fetch it from x.
6383         * tests/test-asinl.c (x): New variable.
6384         (main): Store argument in x and fetch it from x.
6385         * tests/test-atanl.c (x): New variable.
6386         (main): Store argument in x and fetch it from x.
6387         * tests/test-cosl.c (x): New variable.
6388         (main): Store argument in x and fetch it from x.
6389         * tests/test-expl.c (x): New variable.
6390         (main): Store argument in x and fetch it from x.
6391         * tests/test-logl.c (x): New variable.
6392         (main): Store argument in x and fetch it from x.
6393         * tests/test-sinl.c (x): New variable.
6394         (main): Store argument in x and fetch it from x.
6395         * tests/test-sqrtl.c (x): New variable.
6396         (main): Store argument in x and fetch it from x.
6397         * tests/test-tanl.c (x): New variable.
6398         (main): Store argument in x and fetch it from x.
6399
6400 2010-01-24  Bruno Haible  <bruno@clisp.org>
6401
6402         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
6403         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
6404         assignments to the initial TESTS_ENVIRONMENT.
6405         * doc/gnulib.texi (Unit test modules): Document it.
6406         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
6407         TESTS_ENVIRONMENT.
6408         * modules/btowc-tests (Makefile.am): Likewise.
6409         * modules/c-stack-tests (Makefile.am): Likewise.
6410         * modules/c-strcase-tests (Makefile.am): Likewise.
6411         * modules/copy-file-tests (Makefile.am): Likewise.
6412         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
6413         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
6414         * modules/mbrtowc-tests (Makefile.am): Likewise.
6415         * modules/mbscasecmp-tests (Makefile.am): Likewise.
6416         * modules/mbscasestr-tests (Makefile.am): Likewise.
6417         * modules/mbschr-tests (Makefile.am): Likewise.
6418         * modules/mbscspn-tests (Makefile.am): Likewise.
6419         * modules/mbsinit-tests (Makefile.am): Likewise.
6420         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
6421         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
6422         * modules/mbspbrk-tests (Makefile.am): Likewise.
6423         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
6424         * modules/mbsrchr-tests (Makefile.am): Likewise.
6425         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
6426         * modules/mbsspn-tests (Makefile.am): Likewise.
6427         * modules/mbsstr-tests (Makefile.am): Likewise.
6428         * modules/nl_langinfo-tests (Makefile.am): Likewise.
6429         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
6430         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
6431         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
6432         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
6433         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
6434         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
6435         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
6436         * modules/wcrtomb-tests (Makefile.am): Likewise.
6437         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
6438         * modules/wcsrtombs-tests (Makefile.am): Likewise.
6439         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
6440         assignments from TESTS_ENVIRONMENT.
6441         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
6442         augmentation.
6443         * modules/argp-version-etc-tests (Makefile.am): Likewise.
6444         * modules/atexit-tests (Makefile.am): Likewise.
6445         * modules/binary-io-tests (Makefile.am): Likewise.
6446         * modules/closein-tests (Makefile.am): Likewise.
6447         * modules/dprintf-posix-tests (Makefile.am): Likewise.
6448         * modules/exclude-tests (Makefile.am): Likewise.
6449         * modules/fflush-tests (Makefile.am): Likewise.
6450         * modules/fpending-tests (Makefile.am): Likewise.
6451         * modules/fprintf-posix-tests (Makefile.am): Likewise.
6452         * modules/freadahead-tests (Makefile.am): Likewise.
6453         * modules/freadptr-tests (Makefile.am): Likewise.
6454         * modules/freadseek-tests (Makefile.am): Likewise.
6455         * modules/fseek-tests (Makefile.am): Likewise.
6456         * modules/fseeko-tests (Makefile.am): Likewise.
6457         * modules/ftell-tests (Makefile.am): Likewise.
6458         * modules/ftello-tests (Makefile.am): Likewise.
6459         * modules/idpriv-drop-tests (Makefile.am): Likewise.
6460         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
6461         * modules/lseek-tests (Makefile.am): Likewise.
6462         * modules/parse-duration-tests (Makefile.am): Likewise.
6463         * modules/perror-tests (Makefile.am): Likewise.
6464         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
6465         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
6466         * modules/pipe-tests (Makefile.am): Likewise.
6467         * modules/pread-tests (Makefile.am): Likewise.
6468         * modules/printf-posix-tests (Makefile.am): Likewise.
6469         * modules/select-tests (Makefile.am): Likewise.
6470         * modules/sigpipe-tests (Makefile.am): Likewise.
6471         * modules/tsearch-tests (Makefile.am): Likewise.
6472         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
6473         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
6474         * modules/uniname/uniname-tests (Makefile.am): Likewise.
6475         * modules/uniwidth/width-tests (Makefile.am): Likewise.
6476         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
6477         * modules/version-etc-tests (Makefile.am): Likewise.
6478         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
6479         * modules/vprintf-posix-tests (Makefile.am): Likewise.
6480         * modules/xalloc-die-tests (Makefile.am): Likewise.
6481         * modules/xprintf-posix-tests (Makefile.am): Likewise.
6482         * modules/xstrtoimax-tests (Makefile.am): Likewise.
6483         * modules/xstrtol-tests (Makefile.am): Likewise.
6484         * modules/xstrtoumax-tests (Makefile.am): Likewise.
6485         * modules/yesno-tests (Makefile.am): Likewise.
6486         Suggested by Jim Meyering.
6487
6488 2010-01-24  Bruno Haible  <bruno@clisp.org>
6489
6490         More documentation.
6491         * doc/gnulib.texi (Writing modules): New chapter.
6492         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
6493         the new chapter.
6494
6495 2010-01-24  Jim Meyering  <meyering@redhat.com>
6496
6497         maint.mk: do not prepend "./" after filtering
6498         * top/maint.mk (_prepend_srcdir_prefix): New variable
6499         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
6500         "./" when $(srcdir) is ".".
6501
6502         define STREQ(a,b) consistently, removing useless parentheses
6503         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
6504         since the only risk is that "a" or "b" contains an unparenthesized
6505         comma, but if either did that, STREQ would have 3 or more arguments.
6506         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
6507         * lib/fts.c (STREQ): Remove unnecessary parentheses.
6508         * lib/hash-triple.c (STREQ): Likewise.
6509         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
6510         * lib/getugroups.c (STREQ): Likewise.
6511
6512 2010-01-23  Jim Meyering  <meyering@redhat.com>
6513
6514         maint.mk: fix syntax-check in a non-srcdir build directory
6515         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
6516         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
6517
6518 2010-01-22  Jim Meyering  <meyering@redhat.com>
6519
6520         userspec: add unit tests
6521         * tests/test-userspec.c: New file.
6522         * modules/userspec-tests: Likewise.
6523
6524 2010-01-21  Jim Meyering  <meyering@redhat.com>
6525
6526         maint.mk: handle source file names containing "." robustly
6527         * top/maint.mk (_dot_escaped_srcdir): Define.
6528         (VC_LIST): Use it in LHS of sed substitution.
6529
6530 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
6531
6532         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
6533         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
6534         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
6535         from a non-srcdir build.
6536
6537 2010-01-20  Eric Blake  <ebb9@byu.net>
6538
6539         warn-on-use: use instead of link-warning
6540         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
6541         * modules/unistd (Depends-on, Makefile.am): Likewise.
6542         * modules/arpa_inet (Depends-on): Replace link-warning with
6543         warn-on-use.
6544         (Makefile.am): Update rules accordingly.
6545         * modules/ctype (Depends-on, Makefile.am): Likewise.
6546         * modules/dirent (Depends-on, Makefile.am): Likewise.
6547         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
6548         * modules/inttypes (Depends-on, Makefile.am): Likewise.
6549         * modules/langinfo (Depends-on, Makefile.am): Likewise.
6550         * modules/locale (Depends-on, Makefile.am): Likewise.
6551         * modules/math (Depends-on, Makefile.am): Likewise.
6552         * modules/search (Depends-on, Makefile.am): Likewise.
6553         * modules/signal (Depends-on, Makefile.am): Likewise.
6554         * modules/spawn (Depends-on, Makefile.am): Likewise.
6555         * modules/stdlib (Depends-on, Makefile.am): Likewise.
6556         * modules/string (Depends-on, Makefile.am): Likewise.
6557         * modules/strings (Depends-on, Makefile.am): Likewise.
6558         * modules/sys_file (Depends-on, Makefile.am): Likewise.
6559         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
6560         * modules/sys_select (Depends-on, Makefile.am): Likewise.
6561         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
6562         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
6563         * modules/sys_times (Depends-on, Makefile.am): Likewise.
6564         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
6565         * modules/wchar (Depends-on, Makefile.am): Likewise.
6566         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
6567         should be poisoned.
6568         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
6569         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
6570         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
6571         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
6572         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
6573         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
6574         * m4/math_h.m4 (gl_MATH_H): Likewise.
6575         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
6576         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
6577         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
6578         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
6579         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
6580         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
6581         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
6582         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
6583         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
6584         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
6585         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
6586         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
6587         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
6588         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
6589         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
6590         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
6591         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
6592         GL_LINK_WARNING.
6593         * lib/ctype.in.h: Likewise.
6594         * lib/dirent.in.h: Likewise.
6595         * lib/fcntl.in.h: Likewise.
6596         * lib/inttypes.in.h: Likewise.
6597         * lib/langinfo.in.h: Likewise.
6598         * lib/locale.in.h: Likewise.
6599         * lib/math.in.h: Likewise.
6600         * lib/search.in.h: Likewise.
6601         * lib/signal.in.h: Likewise.
6602         * lib/spawn.in.h: Likewise.
6603         * lib/stdio.in.h: Likewise.
6604         * lib/stdlib.in.h: Likewise.
6605         * lib/string.in.h: Likewise.
6606         * lib/strings.in.h: Likewise.
6607         * lib/sys_file.in.h: Likewise.
6608         * lib/sys_ioctl.in.h: Likewise.
6609         * lib/sys_select.in.h: Likewise.
6610         * lib/sys_socket.in.h: Likewise.
6611         * lib/sys_stat.in.h: Likewise.
6612         * lib/sys_times.in.h: Likewise.
6613         * lib/sys_utsname.in.h: Likewise.
6614         * lib/unistd.in.h: Likewise.
6615         * lib/wchar.in.h: Likewise.
6616
6617 2010-01-20  Bruno Haible  <bruno@clisp.org>
6618
6619         Avoid duplicate -lm.
6620         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
6621         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
6622         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
6623         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
6624         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
6625         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
6626         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
6627         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
6628         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
6629         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
6630         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
6631         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
6632         Reported by Paolo Bonzini.
6633
6634 2010-01-19  Bruno Haible  <bruno@clisp.org>
6635
6636         langinfo, nl_langinfo: Relicense under LGPLv2+.
6637         * modules/langinfo (License): Change to LGPLv2+.
6638         * modules/nl_langinfo (License): Likewise.
6639         Patch by David Lutterkort <lutter@redhat.com>.
6640
6641 2010-01-19  Bruno Haible  <bruno@clisp.org>
6642
6643         Avoid compilation error with cc on OSF/1 5.1.
6644         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
6645         statement, not before.
6646         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6647
6648 2010-01-18  Bruno Haible  <bruno@clisp.org>
6649
6650         Avoid a link error due to the __printf__ symbol.
6651         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
6652         and 2.6.x.
6653         (__format__, __printf__): Remove definitions.
6654         * lib/argp-fmtstream.h: Likewise.
6655         * lib/argp.h: Likewise.
6656         * lib/error.h: Likewise.
6657         * lib/vasnprintf.h: Likewise.
6658         * lib/xprintf.h: Likewise.
6659         * lib/xvasprintf.h: Likewise.
6660         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6661
6662 2010-01-18  Bruno Haible  <bruno@clisp.org>
6663
6664         Tests for module 'tanl'.
6665         * modules/tanl-tests: New file.
6666         * tests/test-tanl.c: New file.
6667
6668         Tests for module 'sqrtl'.
6669         * modules/sqrtl-tests: New file.
6670         * tests/test-sqrtl.c: New file.
6671
6672         Tests for module 'sinl'.
6673         * modules/sinl-tests: New file.
6674         * tests/test-sinl.c: New file.
6675
6676         Tests for module 'logl'.
6677         * modules/logl-tests: New file.
6678         * tests/test-logl.c: New file.
6679
6680         Tests for module 'expl'.
6681         * modules/expl-tests: New file.
6682         * tests/test-expl.c: New file.
6683
6684         Tests for module 'cosl'.
6685         * modules/cosl-tests: New file.
6686         * tests/test-cosl.c: New file.
6687
6688         Tests for module 'atanl'.
6689         * modules/atanl-tests: New file.
6690         * tests/test-atanl.c: New file.
6691
6692         Tests for module 'asinl'.
6693         * modules/asinl-tests: New file.
6694         * tests/test-asinl.c: New file.
6695
6696         Tests for module 'acosl'.
6697         * modules/acosl-tests: New file.
6698         * tests/test-acosl.c: New file.
6699
6700         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
6701         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
6702         tanl): Use the standard gnulib idiom.
6703         * lib/cosl.c: Don't include trigl.c and sincosl.c.
6704         * lib/sinl.c: Likewise.
6705         * lib/tanl.c: Don't include trigl.c.
6706         (kernel_tanl): Make static.
6707         * lib/sincosl.c: Include trigl.h first.
6708         * lib/trigl.c: Likewise.
6709         * m4/acosl.m4: New file.
6710         * m4/asinl.m4: New file.
6711         * m4/atanl.m4: New file.
6712         * m4/cosl.m4: New file.
6713         * m4/expl.m4: New file.
6714         * m4/logl.m4: New file.
6715         * m4/sinl.m4: New file.
6716         * m4/sqrtl.m4: New file.
6717         * m4/tanl.m4: New file.
6718         * m4/mathl.m4: Remove file.
6719         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
6720         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
6721         Don't initialize GNULIB_MATHL.
6722         * modules/acosl: New file.
6723         * modules/asinl: New file.
6724         * modules/atanl: New file.
6725         * modules/cosl: New file.
6726         * modules/expl: New file.
6727         * modules/logl: New file.
6728         * modules/sinl: New file.
6729         * modules/sqrtl: New file.
6730         * modules/tanl: New file.
6731         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
6732         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
6733         substitute GNULIB_MATHL.
6734         * modules/mathl: Rewritten.
6735         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
6736         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
6737         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
6738         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
6739         * doc/posix-functions/expl.texi: Mention the 'expl' module.
6740         * doc/posix-functions/logl.texi: Mention the 'logl' module.
6741         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
6742         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
6743         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
6744
6745 2010-01-18  Bruno Haible  <bruno@clisp.org>
6746
6747         sqrt: Make gl_FUNC_SQRT requirable.
6748         * m4/sqrt.m4: New file.
6749         * modules/sqrt (Files): Add it.
6750         (configure.ac): Invoke gl_FUNC_SQRT.
6751
6752 2010-01-18  Bruno Haible  <bruno@clisp.org>
6753
6754         New modules for common <math.h> functions.
6755         * m4/mathfunc.m4: New file.
6756         * modules/acos: New file.
6757         * modules/asin: New file.
6758         * modules/atan: New file.
6759         * modules/atan2: New file.
6760         * modules/cbrt: New file.
6761         * modules/copysign: New file.
6762         * modules/cos: New file.
6763         * modules/cosh: New file.
6764         * modules/erf: New file.
6765         * modules/erfc: New file.
6766         * modules/exp: New file.
6767         * modules/fabs: New file.
6768         * modules/fmod: New file.
6769         * modules/hypot: New file.
6770         * modules/j0: New file.
6771         * modules/j1: New file.
6772         * modules/jn: New file.
6773         * modules/ldexp: New file.
6774         * modules/lgamma: New file.
6775         * modules/log: New file.
6776         * modules/log10: New file.
6777         * modules/log1p: New file.
6778         * modules/logb: New file.
6779         * modules/modf: New file.
6780         * modules/nextafter: New file.
6781         * modules/pow: New file.
6782         * modules/remainder: New file.
6783         * modules/rint: New file.
6784         * modules/sin: New file.
6785         * modules/sinh: New file.
6786         * modules/sqrt: New file.
6787         * modules/tan: New file.
6788         * modules/tanh: New file.
6789         * modules/y0: New file.
6790         * modules/y1: New file.
6791         * modules/yn: New file.
6792         * doc/posix-functions/acos.texi: Mention the 'acos' module.
6793         * doc/posix-functions/asin.texi: Mention the 'asin' module.
6794         * doc/posix-functions/atan.texi: Mention the 'atan' module.
6795         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
6796         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
6797         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
6798         * doc/posix-functions/cos.texi: Mention the 'cos' module.
6799         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
6800         * doc/posix-functions/erf.texi: Mention the 'erf' module.
6801         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
6802         * doc/posix-functions/exp.texi: Mention the 'exp' module.
6803         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
6804         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
6805         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
6806         * doc/posix-functions/j0.texi: Mention the 'j0' module.
6807         * doc/posix-functions/j1.texi: Mention the 'j1' module.
6808         * doc/posix-functions/jn.texi: Mention the 'jn' module.
6809         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
6810         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
6811         * doc/posix-functions/log.texi: Mention the 'log' module.
6812         * doc/posix-functions/log10.texi: Mention the 'log10' module.
6813         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
6814         * doc/posix-functions/logb.texi: Mention the 'logb' module.
6815         * doc/posix-functions/modf.texi: Mention the 'modf' module.
6816         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
6817         * doc/posix-functions/pow.texi: Mention the 'pow' module.
6818         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
6819         * doc/posix-functions/rint.texi: Mention the 'rint' module.
6820         * doc/posix-functions/sin.texi: Mention the 'sin' module.
6821         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
6822         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
6823         * doc/posix-functions/tan.texi: Mention the 'tan' module.
6824         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
6825         * doc/posix-functions/y0.texi: Mention the 'y0' module.
6826         * doc/posix-functions/y1.texi: Mention the 'y1' module.
6827         * doc/posix-functions/yn.texi: Mention the 'yn' module.
6828
6829 2010-01-18  Jim Meyering  <meyering@redhat.com>
6830
6831         ignore-value: relax license to LGPLv2+
6832         * modules/ignore-value (License): Relax to LGPLv2+.
6833
6834         getdate: don't leak when TZ contains two or more '"'s
6835         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
6836         double quote in TZ after the first one.
6837
6838         readtokens: do not leak internal token_lengths buffer
6839         * lib/readtokens.c (readtokens): Free the local, lengths,
6840         when the supplied "token_lengths" parameter is NULL.
6841
6842 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6843
6844         Fix a couple of missing LIBTHREAD link failures on AIX.
6845         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
6846         $(LIBTHREAD).
6847         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
6848
6849         Link test-poll against INET_PTON_LIB.
6850         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
6851         for inet_pton on Solaris 10.
6852
6853 2010-01-17  Bruno Haible  <bruno@clisp.org>
6854
6855         unistdio/*-sprintf: Fix typo in module description.
6856         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
6857         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
6858         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
6859         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
6860         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
6861         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
6862         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
6863         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6864
6865 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6866
6867         gnulib-tool: fix filelist for AIX, HP-UX ksh.
6868         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
6869         variables in shell case patterns, for AIX and HP-UX ksh.
6870
6871         Split large sed scripts, for HP-UX sed.
6872         * modules/stdio: Split sed scripts around 50 sed commands,
6873         to avoid HP-UX limit of 99 commands, in the near future.
6874         * modules/string: Likewise.
6875         * modules/unistd: Likewise.
6876
6877         gnulib-tool: avoid writing in the current directory.
6878         * gnulib-tool (func_emit_lib_Makefile_am)
6879         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
6880         not in the current directory, so concurrent gnulib-tool
6881         instances do not interfere.
6882
6883 2010-01-16  Jim Meyering  <meyering@redhat.com>
6884
6885         doc: update users.txt
6886         * users.txt: Add grep.
6887         (diffutils, gzip): Update URLs.
6888
6889 2010-01-12  Bruno Haible  <bruno@clisp.org>
6890
6891         posix_spawn: Avoid test failure on Cygwin.
6892         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
6893         characters.
6894         Reported by Simon Josefsson.
6895
6896 2010-01-12  Bruno Haible  <bruno@clisp.org>
6897
6898         * tests/test-cond.c (main): When skipping the test, show the reason.
6899
6900 2010-01-12  Simon Josefsson  <simon@josefsson.org>
6901
6902         * lib/striconv.c (str_cd_iconv): Avoid if before free.
6903
6904 2010-01-12  Simon Josefsson  <simon@josefsson.org>
6905
6906         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
6907         VC_LIST_ALWAYS_EXCLUDE_REGEX.
6908
6909 2010-01-12  Eric Blake  <ebb9@byu.net>
6910
6911         build: guarantee AS_VAR_IF
6912         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
6913         (gl_AS_VAR_IF): Move...
6914         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
6915         Reported by Simon Josefsson.
6916
6917 2010-01-12  Simon Josefsson  <simon@josefsson.org>
6918
6919         * lib/stdio.in.h: Fix typo.
6920
6921 2010-01-12  Simon Josefsson  <simon@josefsson.org>
6922
6923         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
6924         libgpg-error.
6925
6926 2010-01-12  Simon Josefsson  <simon@josefsson.org>
6927
6928         * tests/test-xalloc-die.sh: Use $EXEEXT.
6929
6930 2010-01-12  Simon Josefsson  <simon@josefsson.org>
6931             Bruno Haible  <bruno@clisp.org>
6932
6933         getlogin, getlogin_r: Avoid test failure.
6934         * tests/test-getlogin.c: Include <stdio.h>.
6935         (main): Skip the test when the function fails because stdin is not a
6936         tty.
6937         * tests/test-getlogin_r.c: Include <stdio.h>.
6938         (main): Skip the test when the function fails because stdin is not a
6939         tty.
6940
6941 2010-01-11  Eric Blake  <ebb9@byu.net>
6942
6943         tests: avoid more large file warnings
6944         * tests/test-fflush.c: Avoid warning about ftell use.
6945         * tests/test-fseek.c: Avoid warning about fseek use.
6946
6947 2010-01-10  Bruno Haible  <bruno@clisp.org>
6948
6949         nproc: Work better on Linux when /proc and /sys are not mounted.
6950         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
6951         as lower bound when, on glibc/Linux systems,
6952         sysconf (_SC_NPROCESSORS_CONF) returns 1.
6953         Suggested by Pádraig Brady <P@draigbrady.com>.
6954         Reported by Dmitry V. Levin <ldv@altlinux.org>.
6955
6956         nproc: Refactor.
6957         * lib/nproc.c (num_processors_via_affinity_mask): New function,
6958         extracted from num_processors.
6959         (num_processors): Call it.
6960
6961 2010-01-11  Jim Meyering  <meyering@redhat.com>
6962
6963         utimecmp: avoid new warning from upcoming gcc-4.5.0
6964         * lib/utimecmp.c (BILLION): Define using #define rather than an
6965         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
6966
6967 2010-01-11  Eric Blake  <ebb9@byu.net>
6968
6969         math: add portability warnings for classification macros
6970         * modules/math (Depends-on): Add warn-on-use.
6971         (Makefile.am): Provide new substitutions.
6972         * m4/math_h.m4 (gl_MATH_H): Require inline.
6973         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
6974         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
6975         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
6976         implement warnings.
6977
6978         unistd: warn on use of environ without module
6979         * modules/unistd (Depends-on): Add warn-on-use.
6980         (Makefile.am): Provide new substitutions.
6981         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
6982         * lib/unistd.in.h (environ): Wrap with a warning helper function.
6983
6984         stdio: warn on suspicious uses
6985         * modules/stdio (Depends-on): Add warn-on-use.
6986         (Makefile.am): Provide new substitutions.
6987         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
6988         fseeko.
6989         * lib/stdio.in.h (gets): Always warn on use.
6990         (fseek, ftell): Adjust when warnings are issued, and honor
6991         _GL_NO_LARGE_FILES as a way to silence the warning.
6992         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
6993         any warning about large file offsets.
6994         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
6995         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
6996         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
6997         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
6998         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
6999         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
7000         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
7001         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
7002
7003         warn-on-use: new module
7004         * modules/warn-on-use: New file.
7005         * build-aux/warn-on-use.h: Likewise.
7006         * m4/warn-on-use.m4: Likewise.
7007         * MODULES.html.sh (Support for building): Mention it.
7008
7009 2010-01-10  Bruno Haible  <bruno@clisp.org>
7010
7011         Tests for module 'unistr/u32-strdup'.
7012         * modules/unistr/u32-strdup-tests: New file.
7013         * tests/unistr/test-u32-strdup.c: New file.
7014
7015         Tests for module 'unistr/u16-strdup'.
7016         * modules/unistr/u16-strdup-tests: New file.
7017         * tests/unistr/test-u16-strdup.c: New file.
7018
7019         Tests for module 'unistr/u8-strdup'.
7020         * modules/unistr/u8-strdup-tests: New file.
7021         * tests/unistr/test-u8-strdup.c: New file.
7022         * tests/unistr/test-strdup.h: New file.
7023
7024         Tests for module 'unistr/u32-strncmp'.
7025         * modules/unistr/u32-strncmp-tests: New file.
7026         * tests/unistr/test-u32-strncmp.c: New file.
7027
7028         Tests for module 'unistr/u16-strncmp'.
7029         * modules/unistr/u16-strncmp-tests: New file.
7030         * tests/unistr/test-u16-strncmp.c: New file.
7031
7032         Tests for module 'unistr/u8-strncmp'.
7033         * modules/unistr/u8-strncmp-tests: New file.
7034         * tests/unistr/test-u8-strncmp.c: New file.
7035         * tests/unistr/test-strncmp.h: New file.
7036
7037         Tests for module 'unistr/u32-strcoll'.
7038         * modules/unistr/u32-strcoll-tests: New file.
7039         * tests/unistr/test-u32-strcoll.c: New file.
7040
7041         Tests for module 'unistr/u16-strcoll'.
7042         * modules/unistr/u16-strcoll-tests: New file.
7043         * tests/unistr/test-u16-strcoll.c: New file.
7044
7045         Tests for module 'unistr/u8-strcoll'.
7046         * modules/unistr/u8-strcoll-tests: New file.
7047         * tests/unistr/test-u8-strcoll.c: New file.
7048
7049         Tests for module 'unistr/u32-strcmp'.
7050         * modules/unistr/u32-strcmp-tests: New file.
7051         * tests/unistr/test-u32-strcmp.c: New file.
7052         * tests/unistr/test-u32-strcmp.h: New file.
7053
7054         Tests for module 'unistr/u16-strcmp'.
7055         * modules/unistr/u16-strcmp-tests: New file.
7056         * tests/unistr/test-u16-strcmp.c: New file.
7057         * tests/unistr/test-u16-strcmp.h: New file.
7058
7059         Tests for module 'unistr/u8-strcmp'.
7060         * modules/unistr/u8-strcmp-tests: New file.
7061         * tests/unistr/test-u8-strcmp.c: New file.
7062         * tests/unistr/test-u8-strcmp.h: New file.
7063         * tests/unistr/test-strcmp.h: New file.
7064
7065         Tests for module 'unistr/u32-strncat'.
7066         * modules/unistr/u32-strncat-tests: New file.
7067         * tests/unistr/test-u32-strncat.c: New file.
7068
7069         Tests for module 'unistr/u16-strncat'.
7070         * modules/unistr/u16-strncat-tests: New file.
7071         * tests/unistr/test-u16-strncat.c: New file.
7072
7073         Tests for module 'unistr/u8-strncat'.
7074         * modules/unistr/u8-strncat-tests: New file.
7075         * tests/unistr/test-u8-strncat.c: New file.
7076         * tests/unistr/test-strncat.h: New file.
7077
7078         Tests for module 'unistr/u32-strcat'.
7079         * modules/unistr/u32-strcat-tests: New file.
7080         * tests/unistr/test-u32-strcat.c: New file.
7081
7082         Tests for module 'unistr/u16-strcat'.
7083         * modules/unistr/u16-strcat-tests: New file.
7084         * tests/unistr/test-u16-strcat.c: New file.
7085
7086         Tests for module 'unistr/u8-strcat'.
7087         * modules/unistr/u8-strcat-tests: New file.
7088         * tests/unistr/test-u8-strcat.c: New file.
7089         * tests/unistr/test-strcat.h: New file.
7090
7091         Tests for module 'unistr/u32-stpncpy'.
7092         * modules/unistr/u32-stpncpy-tests: New file.
7093         * tests/unistr/test-u32-stpncpy.c: New file.
7094
7095         Tests for module 'unistr/u16-stpncpy'.
7096         * modules/unistr/u16-stpncpy-tests: New file.
7097         * tests/unistr/test-u16-stpncpy.c: New file.
7098
7099         Tests for module 'unistr/u8-stpncpy'.
7100         * modules/unistr/u8-stpncpy-tests: New file.
7101         * tests/unistr/test-u8-stpncpy.c: New file.
7102         * tests/unistr/test-stpncpy.h: New file.
7103
7104         Tests for module 'unistr/u32-strncpy'.
7105         * modules/unistr/u32-strncpy-tests: New file.
7106         * tests/unistr/test-u32-strncpy.c: New file.
7107
7108         Tests for module 'unistr/u16-strncpy'.
7109         * modules/unistr/u16-strncpy-tests: New file.
7110         * tests/unistr/test-u16-strncpy.c: New file.
7111
7112         Tests for module 'unistr/u8-strncpy'.
7113         * modules/unistr/u8-strncpy-tests: New file.
7114         * tests/unistr/test-u8-strncpy.c: New file.
7115         * tests/unistr/test-strncpy.h: New file.
7116
7117         Tests for module 'unistr/u32-stpcpy'.
7118         * modules/unistr/u32-stpcpy-tests: New file.
7119         * tests/unistr/test-u32-stpcpy.c: New file.
7120
7121         Tests for module 'unistr/u16-stpcpy'.
7122         * modules/unistr/u16-stpcpy-tests: New file.
7123         * tests/unistr/test-u16-stpcpy.c: New file.
7124
7125         Tests for module 'unistr/u8-stpcpy'.
7126         * modules/unistr/u8-stpcpy-tests: New file.
7127         * tests/unistr/test-u8-stpcpy.c: New file.
7128         * tests/unistr/test-stpcpy.h: New file.
7129
7130         Tests for module 'unistr/u32-strcpy'.
7131         * modules/unistr/u32-strcpy-tests: New file.
7132         * tests/unistr/test-u32-strcpy.c: New file.
7133
7134         Tests for module 'unistr/u16-strcpy'.
7135         * modules/unistr/u16-strcpy-tests: New file.
7136         * tests/unistr/test-u16-strcpy.c: New file.
7137
7138         Tests for module 'unistr/u8-strcpy'.
7139         * modules/unistr/u8-strcpy-tests: New file.
7140         * tests/unistr/test-u8-strcpy.c: New file.
7141         * tests/unistr/test-strcpy.h: New file.
7142
7143         Tests for module 'unistr/u32-strnlen'.
7144         * modules/unistr/u32-strnlen-tests: New file.
7145         * tests/unistr/test-u32-strnlen.c: New file.
7146
7147         Tests for module 'unistr/u16-strnlen'.
7148         * modules/unistr/u16-strnlen-tests: New file.
7149         * tests/unistr/test-u16-strnlen.c: New file.
7150
7151         Tests for module 'unistr/u8-strnlen'.
7152         * modules/unistr/u8-strnlen-tests: New file.
7153         * tests/unistr/test-u8-strnlen.c: New file.
7154         * tests/unistr/test-strnlen.h: New file.
7155
7156         Tests for module 'unistr/u32-strlen'.
7157         * modules/unistr/u32-strlen-tests: New file.
7158         * tests/unistr/test-u32-strlen.c: New file.
7159
7160         Tests for module 'unistr/u16-strlen'.
7161         * modules/unistr/u16-strlen-tests: New file.
7162         * tests/unistr/test-u16-strlen.c: New file.
7163
7164         Tests for module 'unistr/u8-strlen'.
7165         * modules/unistr/u8-strlen-tests: New file.
7166         * tests/unistr/test-u8-strlen.c: New file.
7167
7168         Tests for module 'unistr/u32-prev'.
7169         * modules/unistr/u32-prev-tests: New file.
7170         * tests/unistr/test-u32-prev.c: New file.
7171
7172         Tests for module 'unistr/u16-prev'.
7173         * modules/unistr/u16-prev-tests: New file.
7174         * tests/unistr/test-u16-prev.c: New file.
7175
7176         Tests for module 'unistr/u8-prev'.
7177         * modules/unistr/u8-prev-tests: New file.
7178         * tests/unistr/test-u8-prev.c: New file.
7179
7180         Tests for module 'unistr/u32-next'.
7181         * modules/unistr/u32-next-tests: New file.
7182         * tests/unistr/test-u32-next.c: New file.
7183
7184         Tests for module 'unistr/u16-next'.
7185         * modules/unistr/u16-next-tests: New file.
7186         * tests/unistr/test-u16-next.c: New file.
7187
7188         Tests for module 'unistr/u8-next'.
7189         * modules/unistr/u8-next-tests: New file.
7190         * tests/unistr/test-u8-next.c: New file.
7191
7192         Tests for module 'unistr/u32-strmbtouc'.
7193         * modules/unistr/u32-strmbtouc-tests: New file.
7194         * tests/unistr/test-u32-strmbtouc.c: New file.
7195
7196         Tests for module 'unistr/u16-strmbtouc'.
7197         * modules/unistr/u16-strmbtouc-tests: New file.
7198         * tests/unistr/test-u16-strmbtouc.c: New file.
7199
7200         Tests for module 'unistr/u8-strmbtouc'.
7201         * modules/unistr/u8-strmbtouc-tests: New file.
7202         * tests/unistr/test-u8-strmbtouc.c: New file.
7203
7204         Tests for module 'unistr/u32-strmblen'.
7205         * modules/unistr/u32-strmblen-tests: New file.
7206         * tests/unistr/test-u32-strmblen.c: New file.
7207
7208         Tests for module 'unistr/u16-strmblen'.
7209         * modules/unistr/u16-strmblen-tests: New file.
7210         * tests/unistr/test-u16-strmblen.c: New file.
7211
7212         Tests for module 'unistr/u8-strmblen'.
7213         * modules/unistr/u8-strmblen-tests: New file.
7214         * tests/unistr/test-u8-strmblen.c: New file.
7215
7216         Tests for module 'unistr/u32-cpy-alloc'.
7217         * modules/unistr/u32-cpy-alloc-tests: New file.
7218         * tests/unistr/test-u32-cpy-alloc.c: New file.
7219
7220         Tests for module 'unistr/u16-cpy-alloc'.
7221         * modules/unistr/u16-cpy-alloc-tests: New file.
7222         * tests/unistr/test-u16-cpy-alloc.c: New file.
7223
7224         Tests for module 'unistr/u8-cpy-alloc'.
7225         * modules/unistr/u8-cpy-alloc-tests: New file.
7226         * tests/unistr/test-u8-cpy-alloc.c: New file.
7227         * tests/unistr/test-cpy-alloc.h: New file.
7228
7229         Tests for module 'unistr/u32-mbsnlen'.
7230         * modules/unistr/u32-mbsnlen-tests: New file.
7231         * tests/unistr/test-u32-mbsnlen.c: New file.
7232
7233         Tests for module 'unistr/u16-mbsnlen'.
7234         * modules/unistr/u16-mbsnlen-tests: New file.
7235         * tests/unistr/test-u16-mbsnlen.c: New file.
7236
7237         Tests for module 'unistr/u8-mbsnlen'.
7238         * modules/unistr/u8-mbsnlen-tests: New file.
7239         * tests/unistr/test-u8-mbsnlen.c: New file.
7240
7241         Tests for module 'unistr/u32-chr'.
7242         * modules/unistr/u32-chr-tests: New file.
7243         * tests/unistr/test-u32-chr.c: New file.
7244
7245         Tests for module 'unistr/u16-chr'.
7246         * modules/unistr/u16-chr-tests: New file.
7247         * tests/unistr/test-u16-chr.c: New file.
7248
7249         Tests for module 'unistr/u8-chr'.
7250         * modules/unistr/u8-chr-tests: New file.
7251         * tests/unistr/test-u8-chr.c: New file.
7252         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
7253
7254         Tests for module 'unistr/u32-cmp2'.
7255         * modules/unistr/u32-cmp2-tests: New file.
7256         * tests/unistr/test-u32-cmp2.c: New file.
7257
7258         Tests for module 'unistr/u16-cmp2'.
7259         * modules/unistr/u16-cmp2-tests: New file.
7260         * tests/unistr/test-u16-cmp2.c: New file.
7261
7262         Tests for module 'unistr/u8-cmp2'.
7263         * modules/unistr/u8-cmp2-tests: New file.
7264         * tests/unistr/test-u8-cmp2.c: New file.
7265         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
7266
7267         Tests for module 'unistr/u32-cmp'.
7268         * modules/unistr/u32-cmp-tests: New file.
7269         * tests/unistr/test-u32-cmp.c: New file.
7270
7271         Tests for module 'unistr/u16-cmp'.
7272         * modules/unistr/u16-cmp-tests: New file.
7273         * tests/unistr/test-u16-cmp.c: New file.
7274
7275         Tests for module 'unistr/u8-cmp'.
7276         * modules/unistr/u8-cmp-tests: New file.
7277         * tests/unistr/test-u8-cmp.c: New file.
7278         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
7279
7280         Tests for module 'unistr/u32-set'.
7281         * modules/unistr/u32-set-tests: New file.
7282         * tests/unistr/test-u32-set.c: New file.
7283
7284         Tests for module 'unistr/u16-set'.
7285         * modules/unistr/u16-set-tests: New file.
7286         * tests/unistr/test-u16-set.c: New file.
7287
7288         Tests for module 'unistr/u8-set'.
7289         * modules/unistr/u8-set-tests: New file.
7290         * tests/unistr/test-u8-set.c: New file.
7291         * tests/unistr/test-set.h: New file.
7292
7293         Tests for module 'unistr/u32-move'.
7294         * modules/unistr/u32-move-tests: New file.
7295         * tests/unistr/test-u32-move.c: New file.
7296
7297         Tests for module 'unistr/u16-move'.
7298         * modules/unistr/u16-move-tests: New file.
7299         * tests/unistr/test-u16-move.c: New file.
7300
7301         Tests for module 'unistr/u8-move'.
7302         * modules/unistr/u8-move-tests: New file.
7303         * tests/unistr/test-u8-move.c: New file.
7304         * tests/unistr/test-move.h: New file.
7305
7306         Tests for module 'unistr/u32-cpy'.
7307         * modules/unistr/u32-cpy-tests: New file.
7308         * tests/unistr/test-u32-cpy.c: New file.
7309
7310         Tests for module 'unistr/u16-cpy'.
7311         * modules/unistr/u16-cpy-tests: New file.
7312         * tests/unistr/test-u16-cpy.c: New file.
7313
7314         Tests for module 'unistr/u8-cpy'.
7315         * modules/unistr/u8-cpy-tests: New file.
7316         * tests/unistr/test-u8-cpy.c: New file.
7317         * tests/unistr/test-cpy.h: New file.
7318
7319 2010-01-09  Bruno Haible  <bruno@clisp.org>
7320
7321         Tests for module 'unistr/u32-uctomb'.
7322         * modules/unistr/u32-uctomb-tests: New file.
7323         * tests/unistr/test-u32-uctomb.c: New file.
7324
7325         Tests for module 'unistr/u16-uctomb'.
7326         * modules/unistr/u16-uctomb-tests: New file.
7327         * tests/unistr/test-u16-uctomb.c: New file.
7328
7329         Tests for module 'unistr/u8-uctomb'.
7330         * modules/unistr/u8-uctomb-tests: New file.
7331         * tests/unistr/test-u8-uctomb.c: New file.
7332
7333         Tests for module 'unistr/u32-mbtoucr'.
7334         * modules/unistr/u32-mbtoucr-tests: New file.
7335         * tests/unistr/test-u32-mbtoucr.c: New file.
7336
7337         Tests for module 'unistr/u16-mbtoucr'.
7338         * modules/unistr/u16-mbtoucr-tests: New file.
7339         * tests/unistr/test-u16-mbtoucr.c: New file.
7340
7341         Tests for module 'unistr/u8-mbtoucr'.
7342         * modules/unistr/u8-mbtoucr-tests: New file.
7343         * tests/unistr/test-u8-mbtoucr.c: New file.
7344
7345         Tests for module 'unistr/u32-mbtouc'.
7346         * modules/unistr/u32-mbtouc-tests: New file.
7347         * tests/unistr/test-u32-mbtouc.c: New file.
7348
7349         Tests for module 'unistr/u16-mbtouc'.
7350         * modules/unistr/u16-mbtouc-tests: New file.
7351         * tests/unistr/test-u16-mbtouc.c: New file.
7352
7353         Tests for module 'unistr/u8-mbtouc'.
7354         * modules/unistr/u8-mbtouc-tests: New file.
7355         * tests/unistr/test-u8-mbtouc.c: New file.
7356
7357         Tests for module 'unistr/u32-mbtouc-unsafe'.
7358         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
7359         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
7360         * tests/unistr/test-u32-mbtouc.h: New file.
7361
7362         Tests for module 'unistr/u16-mbtouc-unsafe'.
7363         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
7364         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
7365         * tests/unistr/test-u16-mbtouc.h: New file.
7366
7367         Tests for module 'unistr/u8-mbtouc-unsafe'.
7368         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
7369         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
7370         * tests/unistr/test-u8-mbtouc.h: New file.
7371
7372         Tests for module 'unistr/u32-mblen'.
7373         * modules/unistr/u32-mblen-tests: New file.
7374         * tests/unistr/test-u32-mblen.c: New file.
7375
7376         Tests for module 'unistr/u16-mblen'.
7377         * modules/unistr/u16-mblen-tests: New file.
7378         * tests/unistr/test-u16-mblen.c: New file.
7379
7380         Tests for module 'unistr/u8-mblen'.
7381         * modules/unistr/u8-mblen-tests: New file.
7382         * tests/unistr/test-u8-mblen.c: New file.
7383
7384         Tests for module 'unistr/u32-to-u16'.
7385         * modules/unistr/u32-to-u16-tests: New file.
7386         * tests/unistr/test-u32-to-u16.c: New file.
7387
7388         Tests for module 'unistr/u32-to-u8'.
7389         * modules/unistr/u32-to-u8-tests: New file.
7390         * tests/unistr/test-u32-to-u8.c: New file.
7391
7392         Tests for module 'unistr/u16-to-u32'.
7393         * modules/unistr/u16-to-u32-tests: New file.
7394         * tests/unistr/test-u16-to-u32.c: New file.
7395
7396         Tests for module 'unistr/u16-to-u8'.
7397         * modules/unistr/u16-to-u8-tests: New file.
7398         * tests/unistr/test-u16-to-u8.c: New file.
7399
7400         Tests for module 'unistr/u8-to-u32'.
7401         * modules/unistr/u8-to-u32-tests: New file.
7402         * tests/unistr/test-u8-to-u32.c: New file.
7403
7404         Tests for module 'unistr/u8-to-u16'.
7405         * modules/unistr/u8-to-u16-tests: New file.
7406         * tests/unistr/test-u8-to-u16.c: New file.
7407
7408         Tests for module 'unistr/u32-check'.
7409         * modules/unistr/u32-check-tests: New file.
7410         * tests/unistr/test-u32-check.c: New file.
7411
7412         Tests for module 'unistr/u16-check'.
7413         * modules/unistr/u16-check-tests: New file.
7414         * tests/unistr/test-u16-check.c: New file.
7415
7416         Tests for module 'unistr/u8-check'.
7417         * modules/unistr/u8-check-tests: New file.
7418         * tests/unistr/test-u8-check.c: New file.
7419
7420         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
7421         (category_equals): New function.
7422         (main): Add more tests.
7423         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
7424
7425         * tests/unictype/test-bidi_byname.c (main): Add more tests.
7426
7427 2010-01-10  Bruno Haible  <bruno@clisp.org>
7428
7429         unistr/u*-strcoll: Try harder to distinguish different strings.
7430         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
7431         compare s1 and s2 to see if they are different.
7432
7433 2010-01-10  Bruno Haible  <bruno@clisp.org>
7434
7435         unistr/u*-stpncpy: Fix the return value.
7436         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
7437         description of the return value consistent with stpncpy in glibc.
7438         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
7439         written non-NUL unit.
7440
7441 2010-01-10  Bruno Haible  <bruno@clisp.org>
7442
7443         unistr/u*-next: Add missing dependencies.
7444         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
7445         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
7446         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
7447
7448 2010-01-10  Bruno Haible  <bruno@clisp.org>
7449
7450         unistr/u8-mbsnlen: Fix return value for incomplete character.
7451         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
7452         u8_mblen.
7453         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
7454         Remove unistr/u8-mblen.
7455         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
7456         u16_mblen.
7457         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
7458         Remove unistr/u16-mblen.
7459
7460 2010-01-10  Bruno Haible  <bruno@clisp.org>
7461
7462         wchar: Fix compilation error when <wchar.h> is used from coreutils.
7463         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
7464         Reported by Brian Gough <bjg@gnu.org> and
7465         Chris Clayton <chris2553@googlemail.com> via
7466         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
7467
7468 2010-01-09  Bruno Haible  <bruno@clisp.org>
7469
7470         unistr/u16-to-u32: Reject invalid input.
7471         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
7472         u16_mbtouc.
7473         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
7474         Remove unistr/u16-mbtouc.
7475
7476         unistr/u16-to-u8: Reject invalid input.
7477         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
7478         u16_mbtouc.
7479         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
7480         Remove unistr/u16-mbtouc.
7481
7482         unistr/u8-to-u32: Reject invalid input.
7483         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
7484         u8_mbtouc.
7485         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
7486         Remove unistr/u8-mbtouc.
7487
7488         unistr/u8-to-u16: Reject invalid input.
7489         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
7490         u8_mbtouc.
7491         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
7492         Remove unistr/u8-mbtouc.
7493
7494 2010-01-09  Bruno Haible  <bruno@clisp.org>
7495
7496         Tests for module 'getlogin'.
7497         * modules/getlogin-tests: New file.
7498         * tests/test-getlogin.c: New file.
7499
7500         New module 'getlogin'.
7501         * lib/unistd.in.h (getlogin): New declaration.
7502         * lib/getlogin.c: New file.
7503         * m4/getlogin.m4: New file.
7504         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
7505         HAVE_GETLOGIN.
7506         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
7507         HAVE_GETLOGIN.
7508         * modules/getlogin: New file.
7509         * doc/posix-functions/getlogin.texi: Mention the new module.
7510         Reported by John W. Eaton <jwe@gnu.org>.
7511
7512 2010-01-09  Bruno Haible  <bruno@clisp.org>
7513
7514         getlogin_r: Support for native Windows.
7515         * lib/getlogin_r.c: Include <windows.h>
7516         (getlogin_r): Implement for native Windows.
7517         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
7518         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
7519         via John W. Eaton <jwe@gnu.org>.
7520
7521 2010-01-09  Bruno Haible  <bruno@clisp.org>
7522
7523         getlogin_r: Small fixes.
7524         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
7525         succeeds.
7526         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
7527         before testing whether getlogin_r is declared. No need to set
7528         HAVE_DECL_GETLOGIN_R to 1.
7529         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
7530
7531 2010-01-09  Bruno Haible  <bruno@clisp.org>
7532
7533         * lib/unistd.in.h (getlogin_r): Add comment.
7534
7535 2010-01-09  Bruno Haible  <bruno@clisp.org>
7536
7537         Tests for module 'getlogin_r'.
7538         * modules/getlogin_r-tests: New file.
7539         * tests/test-getlogin_r.c: New file.
7540
7541 2010-01-09  Jim Meyering  <meyering@redhat.com>
7542
7543         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
7544         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
7545         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
7546
7547 2010-01-08  Simon Josefsson  <simon@josefsson.org>
7548
7549         * lib/dup2.c (rpl_dup2): Improve comment.
7550
7551 2010-01-08  Eric Blake  <ebb9@byu.net>
7552
7553         maint.mk: allow packages to add makefile @@ exceptions
7554         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
7555         (sc_makefile_check): Rename...
7556         (sc_makefile_at_at_check): ...to this, and use hook.
7557
7558         dup2: work around mingw bug
7559         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
7560         Reported by Simon Josefsson.
7561
7562 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
7563
7564         glob: Fix C++ compilation.
7565         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
7566         C++.
7567
7568 2010-01-07  Bruno Haible  <bruno@clisp.org>
7569
7570         Fix indentation of wctype.in.h, broken since 2007-01-06.
7571         * lib/wctype.in.h: Fix indentation of preprocessor directives.
7572
7573 2010-01-07  Bruno Haible  <bruno@clisp.org>
7574
7575         mbslen: Avoid collision with system function.
7576         * lib/string.in.h [MirBSD]: Include <wchar.h>.
7577         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
7578         * m4/mbslen.m4: New file.
7579         * modules/mbslen (Files): Add it.
7580         (configure.ac): Invoke gl_MBSLEN.
7581         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
7582         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
7583         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
7584         via Ian Beckwith <ianb@erislabs.net>.
7585
7586 2010-01-07  Bruno Haible  <bruno@clisp.org>
7587
7588         dirent: Document the last fix.
7589         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
7590
7591 2010-01-07  Bruno Haible  <bruno@clisp.org>
7592
7593         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
7594         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
7595         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
7596         va_list are defined.
7597         * doc/posix-headers/stdio.texi: Document the bug of missing types.
7598         Reported by Eric Blake.
7599
7600 2010-01-07  Bruno Haible  <bruno@clisp.org>
7601
7602         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
7603         * modules/xlist (Depends-on): Add 'list',
7604         * modules/xoset (Depends-on): Add 'oset'.
7605         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7606
7607 2010-01-07  Bruno Haible  <bruno@clisp.org>
7608
7609         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
7610         * doc/posix-functions/strncasecmp.texi: Likewise.
7611
7612 2010-01-07  Bruno Haible  <bruno@clisp.org>
7613
7614         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
7615
7616 2010-01-07  John W. Eaton  <jwe@octave.org>
7617
7618         wctype: allow C++ use
7619         * lib/wctype.in.h: Add extern "C" block for C++.
7620
7621 2010-01-06  Eric Blake  <ebb9@byu.net>
7622
7623         maint.mk: detect incorrect GFDL usage
7624         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
7625
7626 2010-01-06  Jim Meyering  <meyering@redhat.com>
7627         and Eric Blake  <ebb9@byu.net>
7628
7629         maint.mk: ignore multi-line copyright in NEWS
7630         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
7631
7632 2010-01-06  Eric Blake  <ebb9@byu.net>
7633
7634         select: add missing dependency
7635         * modules/select-tests (Depends-on): Move sockets dependency...
7636         * modules/select (Depends-on): ...here.
7637         Reported by Ian Beckwith.
7638
7639         doc: regenerate INSTALL
7640         * doc/INSTALL: Reflect recent autoconf update.
7641         * doc/INSTALL.ISO: Likewise.
7642         * doc/INSTALL.UTF-8: Likewise.
7643
7644         pread: fix compilation on glibc
7645         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
7646         Reported by Ralf Wildenhues.
7647
7648         dirent: fix test failure
7649         * lib/dirent.in.h (includes): Guarantee ino_t.
7650         Reported by Ralf Wildenhues.
7651
7652 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
7653
7654         linkat, renameat: avoid bad free
7655         * lib/at-func2.c (at_func2): Fix typo.
7656         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
7657
7658 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7659
7660         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
7661         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
7662         to avoid failure of symlink test later.
7663
7664 2010-01-06  Eric Blake  <ebb9@byu.net>
7665
7666         stdio, unistd: guarantee ssize_t
7667         * lib/unistd.in.h (includes): Ensure that types required by POSIX
7668         2008 are exposed when needed.
7669         * lib/stdio.in.h (includes): Likewise.
7670         Reported by Ralf Wildenhues.
7671
7672 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
7673
7674         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
7675         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
7676         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
7677
7678 2010-01-06  Jim Meyering  <meyering@redhat.com>
7679
7680         readtokens: this module *does* require xalloc.h
7681         It uses only functions that were omitted by the old syntax-check rule.
7682         * lib/readtokens.c: Include "xalloc.h" once again.
7683         * modules/readtokens (Depends-on): Add xalloc.
7684         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
7685
7686 2010-01-05  Eric Blake  <ebb9@byu.net>
7687
7688         maint: support 'make announcement' from a VPATH build
7689         * top/maint.mk (announcement): Look for correct NEWS file.
7690
7691 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
7692
7693         utimens (fdutimens): ignore a negative FD, per contract
7694         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
7695         when we have a valid file descriptor.  Otherwise, using a brand
7696         new glibc (with just-patched futimens that now fails with EBADF)
7697         would cause this function to fail with ENOSYS.
7698         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
7699         See also http://bugzilla.redhat.com/552320.
7700
7701 2010-01-05  Eric Blake  <ebb9@byu.net>
7702
7703         strcase: document what it provides
7704         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
7705         gnulib module.
7706         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
7707         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
7708
7709 2010-01-05  Jim Meyering  <meyering@redhat.com>
7710
7711         maint: remove useless inclusions of "xalloc.h"
7712         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
7713         * lib/readtokens.c: Likewise.
7714         * lib/same.c: Likewise.
7715         * modules/getloadavg (Depends-on): Remove xalloc.
7716         * modules/readtokens: Likewise.
7717         * modules/same: Likewise.
7718
7719         maint.mk: include 4 more function names in alloca.h-checking regexp
7720         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
7721         regexp.  Before, we would give a false-positive (saying alloca.h
7722         is included unnecessarily) when the only uses involved omitted symbols.
7723
7724         xalloc.h: use consistent formatting
7725         * lib/xalloc.h: Move declarations to start in the first column.
7726
7727 2010-01-05  Eric Blake  <ebb9@byu.net>
7728
7729         mkdir: avoid xalloc
7730         * lib/mkdir.c (includes): Drop unused header.
7731         Reported by John W. Eaton.
7732
7733 2010-01-04  Jim Meyering  <meyering@redhat.com>
7734
7735         nl_langinfo: avoid configure-time syntax error
7736         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
7737         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
7738         the empty string.  Don't let that provoke a shell syntax error.
7739
7740         regcomp, regexec, fnmatch: avoid array bounds read error
7741         * lib/regcomp.c (build_equiv_class): From glibc:
7742         Use only the low 24 bits of a findidx return value as an index
7743         into the weights array.  Patch by Ulrich Drepper:
7744         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
7745         * lib/regexec.c (check_node_accept_bytes): Likewise.
7746         * lib/fnmatch_loop.c (FCT): Likewise.
7747
7748         regcomp: skip collseq lookup when there are no rules
7749         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
7750         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
7751
7752         regcomp: recognize ill-formed { } expressions
7753         * lib/regcomp.c (parse_dup_op): From glibc:
7754         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
7755
7756         regcomp: fix typo in comment
7757         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
7758         s/satisfy/satisfies/.
7759
7760         regcomp: sync from glibc: remove dead store
7761         * lib/regcomp.c (duplicate_node_closure): Remove useless
7762         search_duplicated_node call and dead store.
7763
7764         regcomp: sync from glibc; always use nl_langinfo
7765         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
7766         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
7767         * modules/regex (Depends-on): Add nl_langinfo.
7768
7769 2010-01-04  Eric Blake  <ebb9@byu.net>
7770
7771         fdopendir: fix configure test
7772         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
7773
7774 2010-01-01  Bruno Haible  <bruno@clisp.org>
7775
7776         wchar: Remove unused configure check.
7777         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
7778
7779 2010-01-01  Eric Blake  <ebb9@byu.net>
7780
7781         headers: make check of system header explicit
7782         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
7783         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
7784         ourselves.
7785         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
7786         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
7787         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
7788         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
7789         internals.
7790         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
7791         missing.
7792         Suggested by Bruno Haible.
7793
7794 2010-01-01  Jim Meyering  <meyering@redhat.com>
7795
7796         ChangeLog: tweak to eliminate unnecessary copyright line
7797         * ChangeLog: Remove a copyright line that was mistakenly updated
7798         by today's update-copyright run.  Reported by Eric Blake.
7799
7800         test-update-copyright: don't let envvar setting cause test failure
7801         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
7802
7803 2010-01-01  Bruno Haible  <bruno@clisp.org>
7804
7805         localename: Avoid gcc warning.
7806         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
7807         function if it is not used.
7808
7809 2010-01-01  Jim Meyering  <meyering@redhat.com>
7810
7811         update nearly all FSF copyright year lists to include 2010
7812         Use the same procedure as for 2009, outlined in
7813         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
7814
7815         version-etc: set COPYRIGHT_YEAR to 2010
7816         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
7817
7818 2009-12-31  Eric Blake  <ebb9@byu.net>
7819
7820         doc: correct availability of cygwin 1.5.x getopt
7821         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
7822         variables.
7823         * doc/posix-functions/opterr.texi (opterr): Likewise.
7824         * doc/posix-functions/optind.texi (optind): Likewise.
7825         * doc/posix-functions/optopt.texi (optopt): Likewise.
7826         * doc/posix-functions/tzname.texi (tzname): Likewise.
7827
7828         openat: update maintainer
7829         * modules/openat (Maintainer): Add myself.
7830
7831         utimens: avoid shadowing warning
7832         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
7833         buffers into one, to avoid shadowing, as well as avoiding a
7834         redundant stat.
7835         Reported by Jim Meyering.
7836
7837         test-dup2: avoid compiler warning
7838         * tests/test-dup2.c (is_inheritable): Only define if used.
7839
7840 2010-01-01  Bruno Haible  <bruno@clisp.org>
7841
7842         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
7843         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
7844         defined, use wctomb instead of wcrtomb.
7845
7846 2010-01-01  Bruno Haible  <bruno@clisp.org>
7847
7848         iconv: Reject native Solaris iconv.
7849         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
7850         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
7851
7852 2009-12-31  Bruno Haible  <bruno@clisp.org>
7853
7854         * tests/test-signal.c (main): Remove test of 'SIG'.
7855
7856 2009-12-31  Bruno Haible  <bruno@clisp.org>
7857
7858         spawn: Fix incomplete fix.
7859         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
7860         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
7861         warnings for GNULIB_POSIXCHECK again.
7862         Reported by Eric Blake.
7863
7864 2009-12-31  Bruno Haible  <bruno@clisp.org>
7865
7866         Avoid namespace pollution on glibc systems.
7867         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
7868         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
7869         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
7870         glibc systems.
7871
7872 2009-12-31  Bruno Haible  <bruno@clisp.org>
7873
7874         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
7875         (gl_REPLACE_WCHAR_H): Turn into a no-op.
7876         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
7877         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
7878         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
7879         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
7880         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
7881
7882 2009-12-31  Bruno Haible  <bruno@clisp.org>
7883
7884         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
7885         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
7886         afterwards.
7887
7888 2009-12-31  Bruno Haible  <bruno@clisp.org>
7889
7890         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
7891         SYS_UTSNAME_H.
7892
7893 2009-12-31  Bruno Haible  <bruno@clisp.org>
7894
7895         spawn: Fix misapplied patch.
7896         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
7897         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
7898         warnings for GNULIB_POSIXCHECK.
7899
7900 2009-12-31  Bruno Haible  <bruno@clisp.org>
7901
7902         times: Update after sys_times changed.
7903         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
7904         * modules/times (Files): Add it.
7905         (configure.ac): Invoke gl_FUNC_TIMES.
7906
7907 2009-12-31  Bruno Haible  <bruno@clisp.org>
7908
7909         Use AC_C_INLINE where necessary.
7910         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
7911         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
7912         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
7913         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
7914         * m4/mbfile.m4 (gl_MBFILE): Likewise.
7915         * m4/mbiter.m4 (gl_MBITER): Likewise.
7916         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
7917         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
7918         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
7919         * modules/u64 (configure.ac): Likewise.
7920
7921 2009-12-31  Bruno Haible  <bruno@clisp.org>
7922
7923         Use AC_C_INLINE instead of module 'inline' where possible.
7924         * modules/inline (Description): Clarify purpose.
7925         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
7926         * modules/count-one-bits (Depends-on): Remove inline.
7927         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
7928         * modules/openat (Depends-on): Remove inline.
7929         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
7930         instead of depending on module 'inline'.
7931         * modules/filevercmp (Depends-on, configure.ac): Likewise.
7932         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
7933         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
7934         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
7935         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
7936         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
7937         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
7938         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
7939         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
7940         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
7941         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
7942         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
7943         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
7944         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
7945         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
7946         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
7947         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
7948         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
7949         Likewise.
7950         * modules/unictype/property-ascii-hex-digit (Depends-on,
7951         configure.ac): Likewise.
7952         * modules/unictype/property-bidi-arabic-digit (Depends-on,
7953         configure.ac): Likewise.
7954         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
7955         configure.ac): Likewise.
7956         * modules/unictype/property-bidi-block-separator (Depends-on,
7957         configure.ac): Likewise.
7958         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
7959         configure.ac): Likewise.
7960         * modules/unictype/property-bidi-common-separator (Depends-on,
7961         configure.ac): Likewise.
7962         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
7963         Likewise.
7964         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
7965         configure.ac): Likewise.
7966         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
7967         configure.ac): Likewise.
7968         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
7969         configure.ac): Likewise.
7970         * modules/unictype/property-bidi-european-digit (Depends-on,
7971         configure.ac): Likewise.
7972         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
7973         configure.ac): Likewise.
7974         * modules/unictype/property-bidi-left-to-right (Depends-on,
7975         configure.ac): Likewise.
7976         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
7977         configure.ac): Likewise.
7978         * modules/unictype/property-bidi-other-neutral (Depends-on,
7979         configure.ac): Likewise.
7980         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
7981         Likewise.
7982         * modules/unictype/property-bidi-segment-separator (Depends-on,
7983         configure.ac): Likewise.
7984         * modules/unictype/property-bidi-whitespace (Depends-on,
7985         configure.ac): Likewise.
7986         * modules/unictype/property-combining (Depends-on, configure.ac):
7987         Likewise.
7988         * modules/unictype/property-composite (Depends-on, configure.ac):
7989         Likewise.
7990         * modules/unictype/property-currency-symbol (Depends-on,
7991         configure.ac): Likewise.
7992         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
7993         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
7994         Likewise.
7995         * modules/unictype/property-default-ignorable-code-point (Depends-on,
7996         configure.ac): Likewise.
7997         * modules/unictype/property-deprecated (Depends-on, configure.ac):
7998         Likewise.
7999         * modules/unictype/property-diacritic (Depends-on, configure.ac):
8000         Likewise.
8001         * modules/unictype/property-extender (Depends-on, configure.ac):
8002         Likewise.
8003         * modules/unictype/property-format-control (Depends-on, configure.ac):
8004         Likewise.
8005         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
8006         Likewise.
8007         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
8008         Likewise.
8009         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
8010         Likewise.
8011         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
8012         Likewise.
8013         * modules/unictype/property-hyphen (Depends-on, configure.ac):
8014         Likewise.
8015         * modules/unictype/property-id-continue (Depends-on, configure.ac):
8016         Likewise.
8017         * modules/unictype/property-id-start (Depends-on, configure.ac):
8018         Likewise.
8019         * modules/unictype/property-ideographic (Depends-on, configure.ac):
8020         Likewise.
8021         * modules/unictype/property-ids-binary-operator (Depends-on,
8022         configure.ac): Likewise.
8023         * modules/unictype/property-ids-trinary-operator (Depends-on,
8024         configure.ac): Likewise.
8025         * modules/unictype/property-ignorable-control (Depends-on,
8026         configure.ac): Likewise.
8027         * modules/unictype/property-iso-control (Depends-on, configure.ac):
8028         Likewise.
8029         * modules/unictype/property-join-control (Depends-on, configure.ac):
8030         Likewise.
8031         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
8032         Likewise.
8033         * modules/unictype/property-line-separator (Depends-on, configure.ac):
8034         Likewise.
8035         * modules/unictype/property-logical-order-exception (Depends-on,
8036         configure.ac): Likewise.
8037         * modules/unictype/property-lowercase (Depends-on, configure.ac):
8038         Likewise.
8039         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
8040         * modules/unictype/property-non-break (Depends-on, configure.ac):
8041         Likewise.
8042         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
8043         Likewise.
8044         * modules/unictype/property-numeric (Depends-on, configure.ac):
8045         Likewise.
8046         * modules/unictype/property-other-alphabetic (Depends-on,
8047         configure.ac): Likewise.
8048         * modules/unictype/property-other-default-ignorable-code-point
8049         (Depends-on, configure.ac): Likewise.
8050         * modules/unictype/property-other-grapheme-extend (Depends-on,
8051         configure.ac): Likewise.
8052         * modules/unictype/property-other-id-continue (Depends-on,
8053         configure.ac): Likewise.
8054         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
8055         Likewise.
8056         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
8057         Likewise.
8058         * modules/unictype/property-other-math (Depends-on, configure.ac):
8059         Likewise.
8060         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
8061         Likewise.
8062         * modules/unictype/property-paired-punctuation (Depends-on,
8063         configure.ac): Likewise.
8064         * modules/unictype/property-paragraph-separator (Depends-on,
8065         configure.ac): Likewise.
8066         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
8067         Likewise.
8068         * modules/unictype/property-pattern-white-space (Depends-on,
8069         configure.ac): Likewise.
8070         * modules/unictype/property-private-use (Depends-on, configure.ac):
8071         Likewise.
8072         * modules/unictype/property-punctuation (Depends-on, configure.ac):
8073         Likewise.
8074         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
8075         Likewise.
8076         * modules/unictype/property-radical (Depends-on, configure.ac):
8077         Likewise.
8078         * modules/unictype/property-sentence-terminal (Depends-on,
8079         configure.ac): Likewise.
8080         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
8081         Likewise.
8082         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
8083         * modules/unictype/property-terminal-punctuation (Depends-on,
8084         configure.ac): Likewise.
8085         * modules/unictype/property-titlecase (Depends-on, configure.ac):
8086         Likewise.
8087         * modules/unictype/property-unassigned-code-value (Depends-on,
8088         configure.ac): Likewise.
8089         * modules/unictype/property-unified-ideograph (Depends-on,
8090         configure.ac): Likewise.
8091         * modules/unictype/property-uppercase (Depends-on, configure.ac):
8092         Likewise.
8093         * modules/unictype/property-variation-selector (Depends-on,
8094         configure.ac): Likewise.
8095         * modules/unictype/property-white-space (Depends-on, configure.ac):
8096         Likewise.
8097         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
8098         Likewise.
8099         * modules/unictype/property-xid-start (Depends-on, configure.ac):
8100         Likewise.
8101         * modules/unictype/property-zero-width (Depends-on, configure.ac):
8102         Likewise.
8103         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
8104         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
8105         Likewise.
8106
8107 2009-12-31  Bruno Haible  <bruno@clisp.org>
8108
8109         Remove unnecessary AC_C_INLINE invocation.
8110         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
8111         since 2009-08-21.
8112
8113 2009-12-31  Jim Meyering  <meyering@redhat.com>
8114
8115         maint.mk: don't require explicit gpg_key_ID in cfg.mk
8116         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
8117         With this change, we can all remove the gpg_key_ID = ... definition
8118         from our respective cfg.mk files.
8119
8120         maint.mk: create announcement template in ~/, not in /tmp
8121         * top/maint.mk (emit_upload_commands): Adjust.
8122         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
8123         Remove temporary file, .ci-msg.
8124
8125 2009-12-31  Eric Blake  <ebb9@byu.net>
8126
8127         link-warning: always build headers with link warnings
8128         * modules/arpa_inet (Makefile.am): Always build replacement
8129         header.
8130         * modules/ctype (Makefile.am): Likewise.
8131         * modules/dirent (Makefile.am): Likewise.
8132         * modules/inttypes (Makefile.am): Likewise.
8133         * modules/langinfo (Makefile.am): Likewise.
8134         * modules/locale (Makefile.am): Likewise.
8135         * modules/spawn (Makefile.am): Likewise.
8136         * modules/sys_file (Makefile.am): Likewise.
8137         * modules/sys_ioctl (Makefile.am): Likewise.
8138         * modules/sys_select (Makefile.am): Likewise.
8139         * modules/sys_socket (Makefile.am): Likewise.
8140         * modules/sys_times (Makefile.am): Likewise.
8141         * modules/sys_utsname (Makefile.am): Likewise.
8142         * modules/sys_wait (Makefile.am): Likewise.
8143         * modules/wchar (Makefile.am): Likewise.
8144         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
8145         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
8146         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
8147         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
8148         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
8149         Likewise.
8150         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
8151         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
8152         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
8153         Likewise.
8154         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
8155         Likewise.
8156         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
8157         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
8158         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
8159         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
8160         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
8161         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
8162         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
8163         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
8164         (gl_WCHAR_H_DEFAULTS): Likewise.
8165
8166 2009-12-31  Eric Blake  <ebb9@byu.net>
8167
8168         signal, spawn: use link warnings
8169         * lib/signal.in.h (sigset_t): Make unconditional.
8170         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
8171         (sigpending, sigprocmask, sigaction): Add link warnings.
8172         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
8173         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
8174         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
8175         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
8176         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
8177         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
8178         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
8179         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
8180         (posix_spawn_file_actions_destroy)
8181         (posix_spawn_file_actions_addopen)
8182         (posix_spawn_file_actions_addclose)
8183         (posix_spawn_file_actions_adddup2): Likewise.
8184         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
8185         * tests/test-signal.c (main): Enhance test.
8186
8187         spawn: improve wrapper support
8188         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
8189         (gl_SPAWN_H_DEFAULTS): New defaults.
8190         * modules/spawn (Makefile.am): Substitute them.
8191         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
8192         Only declare if missing or broken.
8193
8194         sys_times, sys_utsname: use include_next
8195         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
8196         header.
8197         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
8198         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
8199         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
8200         * modules/sys_times (Depends-on): Add include_next.
8201         (Makefile.am): Substitute additional values.
8202         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
8203         * lib/sys_times.in.h (includes): Include native header, if
8204         available.
8205         * lib/sys_utsname.in.h (includes): Likewise.
8206         * tests/test-sys_times.c (main): Enhance test.
8207
8208         fdutimensat: revert prior patch
8209         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
8210         utimens.h.
8211         Reported by Bruno Haible.
8212
8213 2009-12-30  Eric Blake  <ebb9@byu.net>
8214
8215         sys_wait: drop link-warning dependency
8216         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
8217         link-warning efforts.
8218         * lib/sys_wait.in.h: Likewise.
8219
8220         fdutimensat: remove bogus dependency
8221         * modules/fdutimensat (Depends-on): Drop inline.
8222
8223         unistd: fix typo
8224         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
8225
8226 2009-12-30  Bruno Haible  <bruno@clisp.org>
8227
8228         Fix compilation error with Solaris cc.
8229         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
8230         * lib/unicase/u16-is-invariant.c: Likewise.
8231         * lib/unicase/u32-is-invariant.c: Likewise.
8232         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
8233
8234 2009-12-30  Bruno Haible  <bruno@clisp.org>
8235
8236         Fix test crash.
8237         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
8238         locales.
8239         Reported by Simon Josefsson <simon@josefsson.org>.
8240
8241 2009-12-30  Bruno Haible  <bruno@clisp.org>
8242
8243         Fix compilation error on most platforms.
8244         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
8245         Reported by Simon Josefsson <simon@josefsson.org>
8246         and Nelson H. F. Beebe <beebe@math.utah.edu>.
8247
8248 2009-12-30  Eric Blake  <ebb9@byu.net>
8249
8250         futimens, utimensat: work around ntfs-3g bug
8251         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
8252         a ctime bug is present, and expand workaround to cover ntfs-3g.
8253         * lib/utimens.c (fdutimens, lutimens): Likewise.
8254         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
8255         (validate_timespec): Adjust return value.
8256         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
8257         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
8258         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
8259
8260 2009-12-29  Eric Blake  <ebb9@byu.net>
8261
8262         link-warning: make usage consistent
8263         * modules/ctype (Depends-on): Add link-warning.
8264         (Makefile.am): Update rules accordingly.
8265         * modules/langinfo (Depends-on, Makefile.am): Likewise.
8266         * modules/locale (Depends-on, Makefile.am): Likewise.
8267         * modules/sys_file (Makefile.am): Likewise.
8268         * modules/getopt-posix (Makefile.am): Delete unused link warning
8269         efforts.
8270         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
8271         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
8272         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
8273         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
8274
8275         stdio: remove unused variables
8276         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
8277         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
8278         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
8279
8280         tests: test more substitute headers
8281         * modules/ctype-tests: New file.
8282         * modules/dirent-tests: Likewise.
8283         * modules/spawn-tests: Likewise.
8284         * modules/sys_file-tests: Likewise.
8285         * modules/sys_ioctl-tests: Likewise.
8286         * modules/sys_wait-tests: Likewise.
8287         * tests/test-ctype.c: Likewise.
8288         * tests/test-dirent.c: Likewise.
8289         * tests/test-spawn.c: Likewise.
8290         * tests/test-sys_file.c: Likewise.
8291         * tests/test-sys_ioctl.c: Likewise.
8292         * tests/test-sys_wait.c: Likewise.
8293         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
8294         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
8295         whether or not flock is in use.
8296
8297         tests: remove License section from module
8298         * modules/arpa_inet-tests: Remove unneeded section.
8299         * modules/byteswap-tests: Likewise.
8300         * modules/ceilf-tests: Likewise.
8301         * modules/ceill-tests: Likewise.
8302         * modules/crypto/des-tests: Likewise.
8303         * modules/crypto/gc-arcfour-tests: Likewise.
8304         * modules/crypto/gc-arctwo-tests: Likewise.
8305         * modules/crypto/gc-des-tests: Likewise.
8306         * modules/crypto/gc-hmac-md5-tests: Likewise.
8307         * modules/crypto/gc-hmac-sha1-tests: Likewise.
8308         * modules/crypto/gc-md2-tests: Likewise.
8309         * modules/crypto/gc-md4-tests: Likewise.
8310         * modules/crypto/gc-md5-tests: Likewise.
8311         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
8312         * modules/crypto/gc-rijndael-tests: Likewise.
8313         * modules/crypto/gc-sha1-tests: Likewise.
8314         * modules/crypto/gc-tests: Likewise.
8315         * modules/crypto/md2-tests: Likewise.
8316         * modules/crypto/md4-tests: Likewise.
8317         * modules/fcntl-h-tests: Likewise.
8318         * modules/floorf-tests: Likewise.
8319         * modules/floorl-tests: Likewise.
8320         * modules/frexp-nolibm-tests: Likewise.
8321         * modules/frexp-tests: Likewise.
8322         * modules/frexpl-nolibm-tests: Likewise.
8323         * modules/frexpl-tests: Likewise.
8324         * modules/getaddrinfo-tests: Likewise.
8325         * modules/inttypes-tests: Likewise.
8326         * modules/isfinite-tests: Likewise.
8327         * modules/isinf-tests: Likewise.
8328         * modules/ldexpl-tests: Likewise.
8329         * modules/locale-tests: Likewise.
8330         * modules/math-tests: Likewise.
8331         * modules/netdb-tests: Likewise.
8332         * modules/netinet_in-tests: Likewise.
8333         * modules/printf-frexp-tests: Likewise.
8334         * modules/printf-frexpl-tests: Likewise.
8335         * modules/priv-set-tests: Likewise.
8336         * modules/random_r-tests: Likewise.
8337         * modules/round-tests: Likewise.
8338         * modules/roundf-tests: Likewise.
8339         * modules/roundl-tests: Likewise.
8340         * modules/search-tests: Likewise.
8341         * modules/select-tests: Likewise.
8342         * modules/signal-tests: Likewise.
8343         * modules/stdbool-tests: Likewise.
8344         * modules/stddef-tests: Likewise.
8345         * modules/stdint-tests: Likewise.
8346         * modules/stdio-tests: Likewise.
8347         * modules/stdlib-tests: Likewise.
8348         * modules/string-tests: Likewise.
8349         * modules/strings-tests: Likewise.
8350         * modules/sys_select-tests: Likewise.
8351         * modules/sys_socket-tests: Likewise.
8352         * modules/sys_stat-tests: Likewise.
8353         * modules/sys_time-tests: Likewise.
8354         * modules/sys_utsname-tests: Likewise.
8355         * modules/sysexits-tests: Likewise.
8356         * modules/time-tests: Likewise.
8357         * modules/trunc-tests: Likewise.
8358         * modules/truncf-tests: Likewise.
8359         * modules/truncl-tests: Likewise.
8360         * modules/tsearch-tests: Likewise.
8361         * modules/unistd-tests: Likewise.
8362         * modules/wchar-tests: Likewise.
8363         * modules/wctype-tests: Likewise.
8364
8365         tests: fix license on several tests
8366         * tests/test-des.c: Update to GPLv3+.
8367         * tests/test-flock.c: Likewise.
8368         * tests/test-fsync.c: Likewise.
8369         * tests/test-futimens.h: Likewise.
8370         * tests/test-gc-arcfour.c: Likewise.
8371         * tests/test-gc-arctwo.c: Likewise.
8372         * tests/test-gc-des.c: Likewise.
8373         * tests/test-gc-hmac-md5.c: Likewise.
8374         * tests/test-gc-hmac-sha1.c: Likewise.
8375         * tests/test-gc-md2.c: Likewise.
8376         * tests/test-gc-md4.c: Likewise.
8377         * tests/test-gc-md5.c: Likewise.
8378         * tests/test-gc-pbkdf2-sha1.c: Likewise.
8379         * tests/test-gc-rijndael.c: Likewise.
8380         * tests/test-gc-sha1.c: Likewise.
8381         * tests/test-gc.c: Likewise.
8382         * tests/test-getcwd.c: Likewise.
8383         * tests/test-link.c: Likewise.
8384         * tests/test-link.h: Likewise.
8385         * tests/test-lutimens.h: Likewise.
8386         * tests/test-md2.c: Likewise.
8387         * tests/test-md4.c: Likewise.
8388         * tests/test-mkdir.h: Likewise.
8389         * tests/test-rename.c: Likewise.
8390         * tests/test-rename.h: Likewise.
8391         * tests/test-safe-alloc.c: Likewise.
8392         * tests/test-utimens-common.h: Likewise.
8393         * tests/test-utimens.h: Likewise.
8394
8395         maint: sync license texts
8396         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
8397         * doc/gpl-3.0.texi: Revert copyright year update.
8398         * doc/lgpl-3.0.texi: Likewise.
8399
8400 2009-12-29  Jim Meyering  <meyering@redhat.com>
8401
8402         update nearly all FSF copyright year lists to include 2009
8403         The files named by the following are exempted:
8404             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
8405               test -f "$dst" && { echo "$dst"; continue; }
8406               test -d "$dst" || continue
8407               echo "$dst"/$(basename "$src")
8408             done > exempt
8409             git ls-files tests/unictype >> exempt
8410         In the remaining files, convert to all-interval notation if
8411         - there is already at least one year interval like 2000-2003
8412         - the file is maintained by me
8413         - the file is in lib/uni*/, where that style already prevails
8414         Otherwise, use update-copyright's default.
8415
8416 2009-12-29  Simon Josefsson  <simon@josefsson.org>
8417         and Eric Blake  <ebb9@byu.net>
8418
8419         tests: don't require debug system() to pass
8420         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
8421         * tests/test-rmdir.h (test_rmdir_func): Likewise.
8422         * tests/test-unlink.h (test_unlink_func): Likewise.
8423         * tests/test-fstatat.c (main): ...into callers.
8424         * tests/test-lstat.c (main): Likewise.
8425         * tests/test-rmdir.c (main): Likewise.
8426         * tests/test-unlink.c (main): Likewise.
8427         * tests/test-unlinkat.c (main): Likewise.
8428         * tests/test-areadlink-with-size.c (main): Don't require a
8429         debug-only system call to pass, aiding cross-testing to mingw.
8430         * tests/test-areadlink.c (main): Likewise.
8431         * tests/test-areadlinkat-with-size.c (main): Likewise.
8432         * tests/test-areadlinkat.c (main): Likewise.
8433         * tests/test-canonicalize-lgpl.c (main): Likewise.
8434         * tests/test-canonicalize.c (main): Likewise.
8435         * tests/test-chown.c (main): Likewise.
8436         * tests/test-fchownat.c (main): Likewise.
8437         * tests/test-lchown.c (main): Likewise.
8438         * tests/test-fdutimensat.c (main): Likewise.
8439         * tests/test-futimens.c (main): Likewise.
8440         * tests/test-link.c (main): Likewise.
8441         * tests/test-linkat.c (main): Likewise.
8442         * tests/test-mkdir.c (main): Likewise.
8443         * tests/test-mkdirat.c (main): Likewise.
8444         * tests/test-mkfifo.c (main): Likewise.
8445         * tests/test-mkfifoat.c (main): Likewise.
8446         * tests/test-mknod.c (main): Likewise.
8447         * tests/test-readlink.c (main): Likewise.
8448         * tests/test-remove.c (main): Likewise.
8449         * tests/test-rename.c (main): Likewise.
8450         * tests/test-renameat.c (main): Likewise.
8451         * tests/test-symlink.c (main): Likewise.
8452         * tests/test-symlinkat.c (main): Likewise.
8453         * tests/test-utimens.c (main): Likewise.
8454         * tests/test-utimensat.c (main): Likewise.
8455
8456 2009-12-29  Simon Josefsson  <simon@josefsson.org>
8457
8458         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
8459         on $(UNUSED_PARAMETER_H) to avoid build failure.
8460
8461 2009-12-28  Jim Meyering  <meyering@redhat.com>
8462
8463         update-copyright: you may specify a max. line length other than 72
8464         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
8465
8466         maint: use consistent FSF copyright line syntax
8467         * lib/posixtm.c: Add missing comma in FSF copyright line.
8468         * lib/posixtm.h: Likewise.
8469         * lib/getugroups.c: Add missing ", Inc.".
8470
8471         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
8472         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
8473         FSF copyright line.  Remove trailing blanks.
8474
8475 2009-12-28  Eric Blake  <ebb9@byu.net>
8476
8477         test-dup2: reduce dependencies
8478         * modules/cloexec (Configure.ac): Set witness.
8479         * modules/dup2-tests (Depends-on): Drop cloexec.
8480         * tests/test-dup2.c (main): Skip portion of test if cloexec module
8481         not present.
8482         Suggested by Bruno Haible.
8483
8484 2009-12-26  Bruno Haible  <bruno@clisp.org>
8485
8486         Remove an unneeded dependency.
8487         * modules/fseterr (Depends-on): Remove dup2.
8488
8489 2009-12-26  Eric Blake  <ebb9@byu.net>
8490
8491         tests: use macros.h in more places
8492         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
8493         (ASSERT_STREAM): Provide default of stderr.
8494         * tests/test-dirent-safer.c: Include macros.h, using alternate
8495         stream for assertions.
8496         * tests/test-dup-safer.c: Likewise.
8497         * tests/test-freopen-safer.c: Likewise.
8498         * tests/test-getopt.c: Likewise.
8499         * tests/test-openat-safer.c: Likewise.
8500         * tests/test-pipe.c: Likewise.
8501         * tests/test-popen-safer.c: Likewise.
8502         * modules/dirent-safer-tests (Files): Include macros.h.
8503         * modules/unistd-safer-tests (Files): Likewise.
8504         * modules/freopen-safer-tests (Files): Likewise.
8505         * modules/getopt-posix-tests (Files): Likewise.
8506         * modules/openat-safer-tests (Files): Likewise.
8507         * modules/pipe-tests (Files): Likewise.
8508
8509 2009-12-26  Bruno Haible  <bruno@clisp.org>
8510
8511         javacomp: Portability fix.
8512         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
8513         that it also works on Solaris.
8514
8515 2009-12-26  Bruno Haible  <bruno@clisp.org>
8516
8517         localename: Fix storage allocation of gl_locale_name_thread's result.
8518         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
8519         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
8520         all platforms that have 'uselocale'.
8521         (gl_locale_name_thread_unsafe): New function, extracted from
8522         gl_locale_name_thread.
8523         (gl_locale_name_thread): Call struniq on all platforms that have
8524         'uselocale'.
8525         * tests/test-localename.c (test_locale_name_thread): Check that the
8526         resulting strings are permanently allocated.
8527         * modules/localename-tests (Depends-on): Add strdup.
8528
8529 2009-12-26  Bruno Haible  <bruno@clisp.org>
8530
8531         * tests/test-localename.c (categories): Fill in the strings.
8532
8533 2009-12-26  Jim Meyering  <meyering@redhat.com>
8534
8535         isdir: complete the removal of m4/isdir.m4
8536         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
8537
8538         isdir: clean up, since at least grep still uses it
8539         * lib/isdir.c: Include "isdir.h".
8540         (S_ISDIR): Remove now-unneeded definition.
8541         * modules/isdir (Files): Add lib/isdir.h.
8542         * lib/isdir.h: New file, with declaration.
8543         * m4/isdir.m4: Remove file -- unneeded.
8544
8545 2009-12-25  Bruno Haible  <bruno@clisp.org>
8546
8547         selinux-h: Make generated .h files standalone.
8548         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
8549         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
8550         * lib/se-selinux.in.h: Likewise.
8551         * modules/selinux-h (Depends-on): Add unused-parameter.
8552         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
8553         selinux/selinux.h and selinux/context.h.
8554         Suggested by Eric Blake.
8555
8556 2009-12-25  Bruno Haible  <bruno@clisp.org>
8557
8558         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
8559         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
8560         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
8561         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
8562         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
8563
8564 2009-12-24  Bruno Haible  <bruno@clisp.org>
8565
8566         openat: Fix warning.
8567         * lib/openat-proc.c: Include <unistd.h>.
8568
8569 2009-12-24  Bruno Haible  <bruno@clisp.org>
8570
8571         New module 'unused-parameter'.
8572         * build-aux/unused-parameter.h: New file, extracted from earlier
8573         gnulib-common.m4.
8574         * modules/unused-parameter: New file.
8575         * lib/unistr.h: Include unused-parameter.h.
8576         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
8577         _GL_UNUSED.
8578         * modules/unistr/base (Depends-on): Add unused-parameter.
8579
8580 2009-12-24  Bruno Haible  <bruno@clisp.org>
8581
8582         Add missing dependencies to 'extensions' module.
8583         * m4/extensions.m4: Add comment.
8584         * modules/accept4 (Depends-on): Add extensions.
8585         * modules/dup3 (Depends-on): Likewise.
8586         * modules/fcntl (Depends-on): Likewise.
8587         * modules/futimens (Depends-on): Likewise.
8588         * modules/mknod (Depends-on): Likewise.
8589         * modules/pipe2 (Depends-on): Likewise.
8590         * modules/stat-time (Depends-on): Likewise.
8591         * modules/strcasestr-simple (Depends-on): Likewise.
8592         * modules/strsignal (Depends-on): Likewise.
8593         * modules/utimensat (Depends-on): Likewise.
8594         * modules/localcharset (Depends-on): Likewise. Needed because of
8595         gl_FCNTL_O_FLAGS.
8596         * modules/wcrtomb (Depends-on): Likewise. Needed because of
8597         AC_TYPE_MBSTATE_T.
8598         * modules/wcsnrtombs (Depends-on): Likewise.
8599         * modules/wcsrtombs (Depends-on): Likewise.
8600
8601 2009-12-24  Bruno Haible  <bruno@clisp.org>
8602
8603         binary-io: Avoid gcc warning due to SET_BINARY.
8604         * lib/binary-io.h (SET_BINARY): Cast the result to void.
8605         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
8606
8607 2009-12-24  Bruno Haible  <bruno@clisp.org>
8608
8609         Avoid future namespace pollution on glibc systems.
8610         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
8611         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
8612         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
8613         glibc systems.
8614
8615 2009-12-24  Bruno Haible  <bruno@clisp.org>
8616
8617         Refactor common macros used in tests.
8618         * tests/macros.h: New file.
8619         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
8620         and/or <stdlib.h>, if appropriate.
8621         (ASSERT, SIZEOF): Remove macros.
8622         * tests/test-areadlink-with-size.c: Likewise.
8623         * tests/test-areadlinkat.c: Likewise.
8624         * tests/test-areadlinkat-with-size.c: Likewise.
8625         * tests/test-argmatch.c: Likewise.
8626         * tests/test-argv-iter.c: Likewise.
8627         * tests/test-array-mergesort.c: Likewise.
8628         * tests/test-array_list.c: Likewise.
8629         * tests/test-array_oset.c: Likewise.
8630         * tests/test-avltree_list.c: Likewise.
8631         * tests/test-avltree_oset.c: Likewise.
8632         * tests/test-avltreehash_list.c: Likewise.
8633         * tests/test-base64.c: Likewise.
8634         * tests/test-binary-io.c: Likewise.
8635         * tests/test-bitrotate.c: Likewise.
8636         * tests/test-btowc.c: Likewise.
8637         * tests/test-byteswap.c: Likewise.
8638         * tests/test-c-ctype.c: Likewise.
8639         * tests/test-c-stack.c: Likewise.
8640         * tests/test-c-strcasecmp.c: Likewise.
8641         * tests/test-c-strcasestr.c: Likewise.
8642         * tests/test-c-strncasecmp.c: Likewise.
8643         * tests/test-c-strstr.c: Likewise.
8644         * tests/test-canonicalize-lgpl.c: Likewise.
8645         * tests/test-canonicalize.c: Likewise.
8646         * tests/test-carray_list.c: Likewise.
8647         * tests/test-ceilf1.c: Likewise.
8648         * tests/test-ceilf2.c: Likewise.
8649         * tests/test-ceill.c: Likewise.
8650         * tests/test-chown.c: Likewise.
8651         * tests/test-cloexec.c: Likewise.
8652         * tests/test-copy-acl.c: Likewise.
8653         * tests/test-copy-file.c: Likewise.
8654         * tests/test-count-one-bits.c: Likewise.
8655         * tests/test-dprintf-posix.c: Likewise.
8656         * tests/test-dup2.c: Likewise.
8657         * tests/test-dup3.c: Likewise.
8658         * tests/test-duplocale.c: Likewise.
8659         * tests/test-fbufmode.c: Likewise.
8660         * tests/test-fchdir.c: Likewise.
8661         * tests/test-fchownat.c: Likewise.
8662         * tests/test-fcntl-safer.c: Likewise.
8663         * tests/test-fcntl.c: Likewise.
8664         * tests/test-fdopendir.c: Likewise.
8665         * tests/test-fdutimensat.c: Likewise.
8666         * tests/test-fflush2.c: Likewise.
8667         * tests/test-file-has-acl.c: Likewise.
8668         * tests/test-filevercmp.c: Likewise.
8669         * tests/test-flock.c: Likewise.
8670         * tests/test-floorf1.c: Likewise.
8671         * tests/test-floorf2.c: Likewise.
8672         * tests/test-floorl.c: Likewise.
8673         * tests/test-fnmatch.c: Likewise.
8674         * tests/test-fopen.h: Likewise.
8675         * tests/test-fpending.c: Likewise.
8676         * tests/test-fprintf-posix.c: Likewise.
8677         * tests/test-fpurge.c: Likewise.
8678         * tests/test-freadable.c: Likewise.
8679         * tests/test-freadahead.c: Likewise.
8680         * tests/test-freading.c: Likewise.
8681         * tests/test-freadptr.c: Likewise.
8682         * tests/test-freadptr2.c: Likewise.
8683         * tests/test-freadseek.c: Likewise.
8684         * tests/test-freopen.c: Likewise.
8685         * tests/test-frexp.c: Likewise.
8686         * tests/test-frexpl.c: Likewise.
8687         * tests/test-fseek.c: Likewise.
8688         * tests/test-fseeko.c: Likewise.
8689         * tests/test-fstatat.c: Likewise.
8690         * tests/test-fstrcmp.c: Likewise.
8691         * tests/test-fsync.c: Likewise.
8692         * tests/test-ftell.c: Likewise.
8693         * tests/test-ftello.c: Likewise.
8694         * tests/test-func.c: Likewise.
8695         * tests/test-futimens.c: Likewise.
8696         * tests/test-fwritable.c: Likewise.
8697         * tests/test-fwriting.c: Likewise.
8698         * tests/test-getcwd.c: Likewise.
8699         * tests/test-getdate.c: Likewise.
8700         * tests/test-getdelim.c: Likewise.
8701         * tests/test-getdtablesize.c: Likewise.
8702         * tests/test-getgroups.c: Likewise.
8703         * tests/test-getline.c: Likewise.
8704         * tests/test-getndelim2.c: Likewise.
8705         * tests/test-glob.c: Likewise.
8706         * tests/test-hash.c: Likewise.
8707         * tests/test-i-ring.c: Likewise.
8708         * tests/test-iconv-utf.c: Likewise.
8709         * tests/test-iconv.c: Likewise.
8710         * tests/test-idpriv-drop.c: Likewise.
8711         * tests/test-idpriv-droptemp.c: Likewise.
8712         * tests/test-inet_ntop.c: Likewise.
8713         * tests/test-inet_pton.c: Likewise.
8714         * tests/test-isblank.c: Likewise.
8715         * tests/test-isfinite.c: Likewise.
8716         * tests/test-isinf.c: Likewise.
8717         * tests/test-isnan.c: Likewise.
8718         * tests/test-isnand.h: Likewise.
8719         * tests/test-isnanf.h: Likewise.
8720         * tests/test-isnanl.h: Likewise.
8721         * tests/test-lchown.c: Likewise.
8722         * tests/test-ldexpl.c: Likewise.
8723         * tests/test-link.c: Likewise.
8724         * tests/test-linkat.c: Likewise.
8725         * tests/test-linked_list.c: Likewise.
8726         * tests/test-linkedhash_list.c: Likewise.
8727         * tests/test-localename.c: Likewise.
8728         * tests/test-lseek.c: Likewise.
8729         * tests/test-lstat.c: Likewise.
8730         * tests/test-mbmemcasecmp.c: Likewise.
8731         * tests/test-mbmemcasecoll.c: Likewise.
8732         * tests/test-mbrtowc.c: Likewise.
8733         * tests/test-mbscasecmp.c: Likewise.
8734         * tests/test-mbscasestr1.c: Likewise.
8735         * tests/test-mbscasestr2.c: Likewise.
8736         * tests/test-mbscasestr3.c: Likewise.
8737         * tests/test-mbscasestr4.c: Likewise.
8738         * tests/test-mbschr.c: Likewise.
8739         * tests/test-mbscspn.c: Likewise.
8740         * tests/test-mbsinit.c: Likewise.
8741         * tests/test-mbsncasecmp.c: Likewise.
8742         * tests/test-mbsnrtowcs.c: Likewise.
8743         * tests/test-mbspbrk.c: Likewise.
8744         * tests/test-mbspcasecmp.c: Likewise.
8745         * tests/test-mbsrchr.c: Likewise.
8746         * tests/test-mbsrtowcs.c: Likewise.
8747         * tests/test-mbsspn.c: Likewise.
8748         * tests/test-mbsstr1.c: Likewise.
8749         * tests/test-mbsstr2.c: Likewise.
8750         * tests/test-mbsstr3.c: Likewise.
8751         * tests/test-memchr.c: Likewise.
8752         * tests/test-memchr2.c: Likewise.
8753         * tests/test-memcmp.c: Likewise.
8754         * tests/test-memmem.c: Likewise.
8755         * tests/test-memrchr.c: Likewise.
8756         * tests/test-mkdir.c: Likewise.
8757         * tests/test-mkdirat.c: Likewise.
8758         * tests/test-mkfifo.c: Likewise.
8759         * tests/test-mkfifoat.c: Likewise.
8760         * tests/test-mknod.c: Likewise.
8761         * tests/test-nanosleep.c: Likewise.
8762         * tests/test-nl_langinfo.c: Likewise.
8763         * tests/test-obstack-printf.c: Likewise.
8764         * tests/test-open.c: Likewise.
8765         * tests/test-openat.c: Likewise.
8766         * tests/test-pipe-filter-gi1.c: Likewise.
8767         * tests/test-pipe-filter-gi2-main.c: Likewise.
8768         * tests/test-pipe-filter-ii1.c: Likewise.
8769         * tests/test-pipe-filter-ii2-main.c: Likewise.
8770         * tests/test-pipe2.c: Likewise.
8771         * tests/test-popen.h: Likewise.
8772         * tests/test-posixtm.c: Likewise.
8773         * tests/test-pread.c: Likewise.
8774         * tests/test-printf-frexp.c: Likewise.
8775         * tests/test-printf-frexpl.c: Likewise.
8776         * tests/test-printf-posix.c: Likewise.
8777         * tests/test-priv-set.c: Likewise.
8778         * tests/test-quotearg.c: Likewise.
8779         * tests/test-random_r.c: Likewise.
8780         * tests/test-rawmemchr.c: Likewise.
8781         * tests/test-rbtree_list.c: Likewise.
8782         * tests/test-rbtree_oset.c: Likewise.
8783         * tests/test-rbtreehash_list.c: Likewise.
8784         * tests/test-readlink.c: Likewise.
8785         * tests/test-remove.c: Likewise.
8786         * tests/test-rename.c: Likewise.
8787         * tests/test-renameat.c: Likewise.
8788         * tests/test-rmdir.c: Likewise.
8789         * tests/test-round1.c: Likewise.
8790         * tests/test-roundf1.c: Likewise.
8791         * tests/test-roundl.c: Likewise.
8792         * tests/test-safe-alloc.c: Likewise.
8793         * tests/test-sameacls.c: Likewise.
8794         * tests/test-set-mode-acl.c: Likewise.
8795         * tests/test-setenv.c: Likewise.
8796         * tests/test-sigaction.c: Likewise.
8797         * tests/test-signbit.c: Likewise.
8798         * tests/test-sleep.c: Likewise.
8799         * tests/test-snprintf-posix.c: Likewise.
8800         * tests/test-snprintf.c: Likewise.
8801         * tests/test-sprintf-posix.c: Likewise.
8802         * tests/test-stat-time.c: Likewise.
8803         * tests/test-stat.c: Likewise.
8804         * tests/test-strcasestr.c: Likewise.
8805         * tests/test-strchrnul.c: Likewise.
8806         * tests/test-strerror.c: Likewise.
8807         * tests/test-striconv.c: Likewise.
8808         * tests/test-striconveh.c: Likewise.
8809         * tests/test-striconveha.c: Likewise.
8810         * tests/test-strsignal.c: Likewise.
8811         * tests/test-strstr.c: Likewise.
8812         * tests/test-strtod.c: Likewise.
8813         * tests/test-strverscmp.c: Likewise.
8814         * tests/test-symlink.c: Likewise.
8815         * tests/test-symlinkat.c: Likewise.
8816         * tests/test-trunc1.c: Likewise.
8817         * tests/test-trunc2.c: Likewise.
8818         * tests/test-truncf1.c: Likewise.
8819         * tests/test-truncf2.c: Likewise.
8820         * tests/test-truncl.c: Likewise.
8821         * tests/test-uname.c: Likewise.
8822         * tests/test-unlink.c: Likewise.
8823         * tests/test-unlinkat.c: Likewise.
8824         * tests/test-unsetenv.c: Likewise.
8825         * tests/test-usleep.c: Likewise.
8826         * tests/test-utimens.c: Likewise.
8827         * tests/test-utimensat.c: Likewise.
8828         * tests/test-vasnprintf-posix.c: Likewise.
8829         * tests/test-vasnprintf-posix2.c: Likewise.
8830         * tests/test-vasnprintf.c: Likewise.
8831         * tests/test-vasprintf-posix.c: Likewise.
8832         * tests/test-vasprintf.c: Likewise.
8833         * tests/test-vdprintf-posix.c: Likewise.
8834         * tests/test-vfprintf-posix.c: Likewise.
8835         * tests/test-vprintf-posix.c: Likewise.
8836         * tests/test-vsnprintf-posix.c: Likewise.
8837         * tests/test-vsnprintf.c: Likewise.
8838         * tests/test-vsprintf-posix.c: Likewise.
8839         * tests/test-wcrtomb.c: Likewise.
8840         * tests/test-wcsnrtombs.c: Likewise.
8841         * tests/test-wcsrtombs.c: Likewise.
8842         * tests/test-wctype.c: Likewise.
8843         * tests/test-wcwidth.c: Likewise.
8844         * tests/test-xfprintf-posix.c: Likewise.
8845         * tests/test-xmemdup0.c: Likewise.
8846         * tests/test-xprintf-posix.c: Likewise.
8847         * tests/test-xvasprintf.c: Likewise.
8848         * tests/unicase/test-locale-language.c: Likewise.
8849         * tests/unicase/test-mapping-part1.h: Likewise.
8850         * tests/unicase/test-predicate-part1.h: Likewise.
8851         * tests/unicase/test-u8-casecmp.c: Likewise.
8852         * tests/unicase/test-u8-casecoll.c: Likewise.
8853         * tests/unicase/test-u8-casefold.c: Likewise.
8854         * tests/unicase/test-u8-is-cased.c: Likewise.
8855         * tests/unicase/test-u8-is-casefolded.c: Likewise.
8856         * tests/unicase/test-u8-is-lowercase.c: Likewise.
8857         * tests/unicase/test-u8-is-titlecase.c: Likewise.
8858         * tests/unicase/test-u8-is-uppercase.c: Likewise.
8859         * tests/unicase/test-u8-tolower.c: Likewise.
8860         * tests/unicase/test-u8-totitle.c: Likewise.
8861         * tests/unicase/test-u8-toupper.c: Likewise.
8862         * tests/unicase/test-u16-casecmp.c: Likewise.
8863         * tests/unicase/test-u16-casecoll.c: Likewise.
8864         * tests/unicase/test-u16-casefold.c: Likewise.
8865         * tests/unicase/test-u16-is-cased.c: Likewise.
8866         * tests/unicase/test-u16-is-casefolded.c: Likewise.
8867         * tests/unicase/test-u16-is-lowercase.c: Likewise.
8868         * tests/unicase/test-u16-is-titlecase.c: Likewise.
8869         * tests/unicase/test-u16-is-uppercase.c: Likewise.
8870         * tests/unicase/test-u16-tolower.c: Likewise.
8871         * tests/unicase/test-u16-totitle.c: Likewise.
8872         * tests/unicase/test-u16-toupper.c: Likewise.
8873         * tests/unicase/test-u32-casecmp.c: Likewise.
8874         * tests/unicase/test-u32-casecoll.c: Likewise.
8875         * tests/unicase/test-u32-casefold.c: Likewise.
8876         * tests/unicase/test-u32-is-cased.c: Likewise.
8877         * tests/unicase/test-u32-is-casefolded.c: Likewise.
8878         * tests/unicase/test-u32-is-lowercase.c: Likewise.
8879         * tests/unicase/test-u32-is-titlecase.c: Likewise.
8880         * tests/unicase/test-u32-is-uppercase.c: Likewise.
8881         * tests/unicase/test-u32-tolower.c: Likewise.
8882         * tests/unicase/test-u32-totitle.c: Likewise.
8883         * tests/unicase/test-u32-toupper.c: Likewise.
8884         * tests/unicase/test-ulc-casecmp.c: Likewise.
8885         * tests/unicase/test-ulc-casecoll.c: Likewise.
8886         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
8887         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
8888         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
8889         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
8890         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
8891         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
8892         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
8893         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
8894         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
8895         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
8896         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
8897         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
8898         * tests/unictype/test-bidi_byname.c: Likewise.
8899         * tests/unictype/test-bidi_name.c: Likewise.
8900         * tests/unictype/test-bidi_of.c: Likewise.
8901         * tests/unictype/test-bidi_test.c: Likewise.
8902         * tests/unictype/test-block_list.c: Likewise.
8903         * tests/unictype/test-block_of.c: Likewise.
8904         * tests/unictype/test-block_test.c: Likewise.
8905         * tests/unictype/test-categ_and.c: Likewise.
8906         * tests/unictype/test-categ_and_not.c: Likewise.
8907         * tests/unictype/test-categ_byname.c: Likewise.
8908         * tests/unictype/test-categ_name.c: Likewise.
8909         * tests/unictype/test-categ_none.c: Likewise.
8910         * tests/unictype/test-categ_of.c: Likewise.
8911         * tests/unictype/test-categ_or.c: Likewise.
8912         * tests/unictype/test-categ_test_withtable.c: Likewise.
8913         * tests/unictype/test-combining.c: Likewise.
8914         * tests/unictype/test-decdigit.c: Likewise.
8915         * tests/unictype/test-digit.c: Likewise.
8916         * tests/unictype/test-mirror.c: Likewise.
8917         * tests/unictype/test-numeric.c: Likewise.
8918         * tests/unictype/test-pr_byname.c: Likewise.
8919         * tests/unictype/test-pr_test.c: Likewise.
8920         * tests/unictype/test-predicate-part1.h: Likewise.
8921         * tests/unictype/test-scripts.c: Likewise.
8922         * tests/unictype/test-sy_c_ident.c: Likewise.
8923         * tests/unictype/test-sy_java_ident.c: Likewise.
8924         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
8925         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
8926         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
8927         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
8928         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
8929         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
8930         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
8931         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
8932         * tests/uninorm/test-canonical-decomposition.c: Likewise.
8933         * tests/uninorm/test-compat-decomposition.c: Likewise.
8934         * tests/uninorm/test-composition.c: Likewise.
8935         * tests/uninorm/test-decomposing-form.c: Likewise.
8936         * tests/uninorm/test-decomposition.c: Likewise.
8937         * tests/uninorm/test-u8-nfc.c: Likewise.
8938         * tests/uninorm/test-u8-nfd.c: Likewise.
8939         * tests/uninorm/test-u8-nfkc.c: Likewise.
8940         * tests/uninorm/test-u8-nfkd.c: Likewise.
8941         * tests/uninorm/test-u8-normcmp.c: Likewise.
8942         * tests/uninorm/test-u8-normcoll.c: Likewise.
8943         * tests/uninorm/test-u16-nfc.c: Likewise.
8944         * tests/uninorm/test-u16-nfd.c: Likewise.
8945         * tests/uninorm/test-u16-nfkc.c: Likewise.
8946         * tests/uninorm/test-u16-nfkd.c: Likewise.
8947         * tests/uninorm/test-u16-normcmp.c: Likewise.
8948         * tests/uninorm/test-u16-normcoll.c: Likewise.
8949         * tests/uninorm/test-u32-nfc.c: Likewise.
8950         * tests/uninorm/test-u32-nfd.c: Likewise.
8951         * tests/uninorm/test-u32-nfkc.c: Likewise.
8952         * tests/uninorm/test-u32-nfkd.c: Likewise.
8953         * tests/uninorm/test-u32-normalize-big.c: Likewise.
8954         * tests/uninorm/test-u32-normcmp.c: Likewise.
8955         * tests/uninorm/test-u32-normcoll.c: Likewise.
8956         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
8957         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
8958         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
8959         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
8960         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
8961         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
8962         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
8963         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
8964         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
8965         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
8966         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
8967         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
8968         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
8969         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
8970         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
8971         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
8972         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
8973         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
8974         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
8975         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
8976         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
8977         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
8978         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
8979         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
8980         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
8981         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
8982         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
8983         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
8984         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
8985         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
8986         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
8987         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
8988         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
8989         * tests/uniwidth/test-u8-strwidth.c: Likewise.
8990         * tests/uniwidth/test-u8-width.c: Likewise.
8991         * tests/uniwidth/test-u16-strwidth.c: Likewise.
8992         * tests/uniwidth/test-u16-width.c: Likewise.
8993         * tests/uniwidth/test-u32-strwidth.c: Likewise.
8994         * tests/uniwidth/test-u32-width.c: Likewise.
8995         * tests/uniwidth/test-uc_width.c: Likewise.
8996         * tests/uniwidth/test-uc_width2.c: Likewise.
8997         * modules/acl-tests (Files): Add tests/macros.h.
8998         * modules/areadlink-tests (Files): Likewise.
8999         * modules/areadlink-with-size-tests (Files): Likewise.
9000         * modules/areadlinkat-tests (Files): Likewise.
9001         * modules/areadlinkat-with-size-tests (Files): Likewise.
9002         * modules/argmatch-tests (Files): Likewise.
9003         * modules/argv-iter-tests (Files): Likewise.
9004         * modules/array-list-tests (Files): Likewise.
9005         * modules/array-mergesort-tests (Files): Likewise.
9006         * modules/array-oset-tests (Files): Likewise.
9007         * modules/avltree-list-tests (Files): Likewise.
9008         * modules/avltree-oset-tests (Files): Likewise.
9009         * modules/avltreehash-list-tests (Files): Likewise.
9010         * modules/base64-tests (Files): Likewise.
9011         * modules/binary-io-tests (Files): Likewise.
9012         * modules/bitrotate-tests (Files): Likewise.
9013         * modules/btowc-tests (Files): Likewise.
9014         * modules/byteswap-tests (Files): Likewise.
9015         * modules/c-ctype-tests (Files): Likewise.
9016         * modules/c-stack-tests (Files): Likewise.
9017         * modules/c-strcase-tests (Files): Likewise.
9018         * modules/c-strcasestr-tests (Files): Likewise.
9019         * modules/c-strstr-tests (Files): Likewise.
9020         * modules/canonicalize-lgpl-tests (Files): Likewise.
9021         * modules/canonicalize-tests (Files): Likewise.
9022         * modules/carray-list-tests (Files): Likewise.
9023         * modules/ceilf-tests (Files): Likewise.
9024         * modules/ceill-tests (Files): Likewise.
9025         * modules/chown-tests (Files): Likewise.
9026         * modules/cloexec-tests (Files): Likewise.
9027         * modules/copy-file-tests (Files): Likewise.
9028         * modules/count-one-bits-tests (Files): Likewise.
9029         * modules/dprintf-posix-tests (Files): Likewise.
9030         * modules/dup2-tests (Files): Likewise.
9031         * modules/dup3-tests (Files): Likewise.
9032         * modules/duplocale-tests (Files): Likewise.
9033         * modules/fbufmode-tests (Files): Likewise.
9034         * modules/fchdir-tests (Files): Likewise.
9035         * modules/fcntl-safer-tests (Files): Likewise.
9036         * modules/fcntl-tests (Files): Likewise.
9037         * modules/fdopendir-tests (Files): Likewise.
9038         * modules/fdutimensat-tests (Files): Likewise.
9039         * modules/fflush-tests (Files): Likewise.
9040         * modules/filevercmp-tests (Files): Likewise.
9041         * modules/flock-tests (Files): Likewise.
9042         * modules/floorf-tests (Files): Likewise.
9043         * modules/floorl-tests (Files): Likewise.
9044         * modules/fnmatch-tests (Files): Likewise.
9045         * modules/fopen-safer-tests (Files): Likewise.
9046         * modules/fopen-tests (Files): Likewise.
9047         * modules/fpending-tests (Files): Likewise.
9048         * modules/fprintf-posix-tests (Files): Likewise.
9049         * modules/fpurge-tests (Files): Likewise.
9050         * modules/freadable-tests (Files): Likewise.
9051         * modules/freadahead-tests (Files): Likewise.
9052         * modules/freading-tests (Files): Likewise.
9053         * modules/freadptr-tests (Files): Likewise.
9054         * modules/freadseek-tests (Files): Likewise.
9055         * modules/freopen-tests (Files): Likewise.
9056         * modules/frexp-nolibm-tests (Files): Likewise.
9057         * modules/frexp-tests (Files): Likewise.
9058         * modules/frexpl-nolibm-tests (Files): Likewise.
9059         * modules/frexpl-tests (Files): Likewise.
9060         * modules/fseek-tests (Files): Likewise.
9061         * modules/fseeko-tests (Files): Likewise.
9062         * modules/fstrcmp-tests (Files): Likewise.
9063         * modules/fsync-tests (Files): Likewise.
9064         * modules/ftell-tests (Files): Likewise.
9065         * modules/ftello-tests (Files): Likewise.
9066         * modules/func-tests (Files): Likewise.
9067         * modules/futimens-tests (Files): Likewise.
9068         * modules/fwritable-tests (Files): Likewise.
9069         * modules/fwriting-tests (Files): Likewise.
9070         * modules/getcwd-tests (Files): Likewise.
9071         * modules/getdate-tests (Files): Likewise.
9072         * modules/getdelim-tests (Files): Likewise.
9073         * modules/getdtablesize-tests (Files): Likewise.
9074         * modules/getgroups-tests (Files): Likewise.
9075         * modules/getline-tests (Files): Likewise.
9076         * modules/getndelim2-tests (Files): Likewise.
9077         * modules/glob-tests (Files): Likewise.
9078         * modules/hash-tests (Files): Likewise.
9079         * modules/i-ring-tests (Files): Likewise.
9080         * modules/iconv-tests (Files): Likewise.
9081         * modules/iconv_open-utf-tests (Files): Likewise.
9082         * modules/idpriv-drop-tests (Files): Likewise.
9083         * modules/idpriv-droptemp-tests (Files): Likewise.
9084         * modules/inet_ntop-tests (Files): Likewise.
9085         * modules/inet_pton-tests (Files): Likewise.
9086         * modules/isblank-tests (Files): Likewise.
9087         * modules/isfinite-tests (Files): Likewise.
9088         * modules/isinf-tests (Files): Likewise.
9089         * modules/isnan-tests (Files): Likewise.
9090         * modules/isnand-nolibm-tests (Files): Likewise.
9091         * modules/isnand-tests (Files): Likewise.
9092         * modules/isnanf-nolibm-tests (Files): Likewise.
9093         * modules/isnanf-tests (Files): Likewise.
9094         * modules/isnanl-nolibm-tests (Files): Likewise.
9095         * modules/isnanl-tests (Files): Likewise.
9096         * modules/lchown-tests (Files): Likewise.
9097         * modules/ldexpl-tests (Files): Likewise.
9098         * modules/link-tests (Files): Likewise.
9099         * modules/linkat-tests (Files): Likewise.
9100         * modules/linked-list-tests (Files): Likewise.
9101         * modules/linkedhash-list-tests (Files): Likewise.
9102         * modules/localename-tests (Files): Likewise.
9103         * modules/lseek-tests (Files): Likewise.
9104         * modules/lstat-tests (Files): Likewise.
9105         * modules/mbmemcasecmp-tests (Files): Likewise.
9106         * modules/mbmemcasecoll-tests (Files): Likewise.
9107         * modules/mbrtowc-tests (Files): Likewise.
9108         * modules/mbscasecmp-tests (Files): Likewise.
9109         * modules/mbscasestr-tests (Files): Likewise.
9110         * modules/mbschr-tests (Files): Likewise.
9111         * modules/mbscspn-tests (Files): Likewise.
9112         * modules/mbsinit-tests (Files): Likewise.
9113         * modules/mbsncasecmp-tests (Files): Likewise.
9114         * modules/mbsnrtowcs-tests (Files): Likewise.
9115         * modules/mbspbrk-tests (Files): Likewise.
9116         * modules/mbspcasecmp-tests (Files): Likewise.
9117         * modules/mbsrchr-tests (Files): Likewise.
9118         * modules/mbsrtowcs-tests (Files): Likewise.
9119         * modules/mbsspn-tests (Files): Likewise.
9120         * modules/mbsstr-tests (Files): Likewise.
9121         * modules/memchr-tests (Files): Likewise.
9122         * modules/memchr2-tests (Files): Likewise.
9123         * modules/memcmp-tests (Files): Likewise.
9124         * modules/memmem-tests (Files): Likewise.
9125         * modules/memrchr-tests (Files): Likewise.
9126         * modules/mkdir-tests (Files): Likewise.
9127         * modules/mkfifo-tests (Files): Likewise.
9128         * modules/mkfifoat-tests (Files): Likewise.
9129         * modules/mknod-tests (Files): Likewise.
9130         * modules/nanosleep-tests (Files): Likewise.
9131         * modules/nl_langinfo-tests (Files): Likewise.
9132         * modules/obstack-printf-tests (Files): Likewise.
9133         * modules/open-tests (Files): Likewise.
9134         * modules/openat-tests (Files): Likewise.
9135         * modules/pipe-filter-gi-tests (Files): Likewise.
9136         * modules/pipe-filter-ii-tests (Files): Likewise.
9137         * modules/pipe2-tests (Files): Likewise.
9138         * modules/popen-safer-tests (Files): Likewise.
9139         * modules/popen-tests (Files): Likewise.
9140         * modules/posixtm-tests (Files): Likewise.
9141         * modules/pread-tests (Files): Likewise.
9142         * modules/printf-frexp-tests (Files): Likewise.
9143         * modules/printf-frexpl-tests (Files): Likewise.
9144         * modules/printf-posix-tests (Files): Likewise.
9145         * modules/priv-set-tests (Files): Likewise.
9146         * modules/quotearg-tests (Files): Likewise.
9147         * modules/random_r-tests (Files): Likewise.
9148         * modules/rawmemchr-tests (Files): Likewise.
9149         * modules/rbtree-list-tests (Files): Likewise.
9150         * modules/rbtree-oset-tests (Files): Likewise.
9151         * modules/rbtreehash-list-tests (Files): Likewise.
9152         * modules/readlink-tests (Files): Likewise.
9153         * modules/remove-tests (Files): Likewise.
9154         * modules/rename-tests (Files): Likewise.
9155         * modules/renameat-tests (Files): Likewise.
9156         * modules/rmdir-tests (Files): Likewise.
9157         * modules/round-tests (Files): Likewise.
9158         * modules/roundf-tests (Files): Likewise.
9159         * modules/roundl-tests (Files): Likewise.
9160         * modules/safe-alloc-tests (Files): Likewise.
9161         * modules/setenv-tests (Files): Likewise.
9162         * modules/sigaction-tests (Files): Likewise.
9163         * modules/signbit-tests (Files): Likewise.
9164         * modules/sleep-tests (Files): Likewise.
9165         * modules/snprintf-posix-tests (Files): Likewise.
9166         * modules/snprintf-tests (Files): Likewise.
9167         * modules/sprintf-posix-tests (Files): Likewise.
9168         * modules/stat-tests (Files): Likewise.
9169         * modules/stat-time-tests (Files): Likewise.
9170         * modules/strcasestr-tests (Files): Likewise.
9171         * modules/strchrnul-tests (Files): Likewise.
9172         * modules/strerror-tests (Files): Likewise.
9173         * modules/striconv-tests (Files): Likewise.
9174         * modules/striconveh-tests (Files): Likewise.
9175         * modules/striconveha-tests (Files): Likewise.
9176         * modules/strsignal-tests (Files): Likewise.
9177         * modules/strstr-tests (Files): Likewise.
9178         * modules/strtod-tests (Files): Likewise.
9179         * modules/strverscmp-tests (Files): Likewise.
9180         * modules/symlink-tests (Files): Likewise.
9181         * modules/symlinkat-tests (Files): Likewise.
9182         * modules/trunc-tests (Files): Likewise.
9183         * modules/truncf-tests (Files): Likewise.
9184         * modules/truncl-tests (Files): Likewise.
9185         * modules/uname-tests (Files): Likewise.
9186         * modules/unicase/cased-tests (Files): Likewise.
9187         * modules/unicase/ignorable-tests (Files): Likewise.
9188         * modules/unicase/locale-language-tests (Files): Likewise.
9189         * modules/unicase/tolower-tests (Files): Likewise.
9190         * modules/unicase/totitle-tests (Files): Likewise.
9191         * modules/unicase/toupper-tests (Files): Likewise.
9192         * modules/unicase/u8-casecmp-tests (Files): Likewise.
9193         * modules/unicase/u8-casecoll-tests (Files): Likewise.
9194         * modules/unicase/u8-casefold-tests (Files): Likewise.
9195         * modules/unicase/u8-is-cased-tests (Files): Likewise.
9196         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
9197         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
9198         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
9199         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
9200         * modules/unicase/u8-tolower-tests (Files): Likewise.
9201         * modules/unicase/u8-totitle-tests (Files): Likewise.
9202         * modules/unicase/u8-toupper-tests (Files): Likewise.
9203         * modules/unicase/u16-casecmp-tests (Files): Likewise.
9204         * modules/unicase/u16-casecoll-tests (Files): Likewise.
9205         * modules/unicase/u16-casefold-tests (Files): Likewise.
9206         * modules/unicase/u16-is-cased-tests (Files): Likewise.
9207         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
9208         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
9209         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
9210         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
9211         * modules/unicase/u16-tolower-tests (Files): Likewise.
9212         * modules/unicase/u16-totitle-tests (Files): Likewise.
9213         * modules/unicase/u16-toupper-tests (Files): Likewise.
9214         * modules/unicase/u32-casecmp-tests (Files): Likewise.
9215         * modules/unicase/u32-casecoll-tests (Files): Likewise.
9216         * modules/unicase/u32-casefold-tests (Files): Likewise.
9217         * modules/unicase/u32-is-cased-tests (Files): Likewise.
9218         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
9219         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
9220         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
9221         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
9222         * modules/unicase/u32-tolower-tests (Files): Likewise.
9223         * modules/unicase/u32-totitle-tests (Files): Likewise.
9224         * modules/unicase/u32-toupper-tests (Files): Likewise.
9225         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
9226         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
9227         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
9228         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
9229         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
9230         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
9231         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
9232         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
9233         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
9234         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
9235         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
9236         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
9237         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
9238         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
9239         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
9240         * modules/unictype/bidicategory-name-tests (Files): Likewise.
9241         * modules/unictype/bidicategory-of-tests (Files): Likewise.
9242         * modules/unictype/bidicategory-test-tests (Files): Likewise.
9243         * modules/unictype/block-list-tests (Files): Likewise.
9244         * modules/unictype/block-of-tests (Files): Likewise.
9245         * modules/unictype/block-test-tests (Files): Likewise.
9246         * modules/unictype/category-C-tests (Files): Likewise.
9247         * modules/unictype/category-Cc-tests (Files): Likewise.
9248         * modules/unictype/category-Cf-tests (Files): Likewise.
9249         * modules/unictype/category-Cn-tests (Files): Likewise.
9250         * modules/unictype/category-Co-tests (Files): Likewise.
9251         * modules/unictype/category-Cs-tests (Files): Likewise.
9252         * modules/unictype/category-L-tests (Files): Likewise.
9253         * modules/unictype/category-Ll-tests (Files): Likewise.
9254         * modules/unictype/category-Lm-tests (Files): Likewise.
9255         * modules/unictype/category-Lo-tests (Files): Likewise.
9256         * modules/unictype/category-Lt-tests (Files): Likewise.
9257         * modules/unictype/category-Lu-tests (Files): Likewise.
9258         * modules/unictype/category-M-tests (Files): Likewise.
9259         * modules/unictype/category-Mc-tests (Files): Likewise.
9260         * modules/unictype/category-Me-tests (Files): Likewise.
9261         * modules/unictype/category-Mn-tests (Files): Likewise.
9262         * modules/unictype/category-N-tests (Files): Likewise.
9263         * modules/unictype/category-Nd-tests (Files): Likewise.
9264         * modules/unictype/category-Nl-tests (Files): Likewise.
9265         * modules/unictype/category-No-tests (Files): Likewise.
9266         * modules/unictype/category-P-tests (Files): Likewise.
9267         * modules/unictype/category-Pc-tests (Files): Likewise.
9268         * modules/unictype/category-Pd-tests (Files): Likewise.
9269         * modules/unictype/category-Pe-tests (Files): Likewise.
9270         * modules/unictype/category-Pf-tests (Files): Likewise.
9271         * modules/unictype/category-Pi-tests (Files): Likewise.
9272         * modules/unictype/category-Po-tests (Files): Likewise.
9273         * modules/unictype/category-Ps-tests (Files): Likewise.
9274         * modules/unictype/category-S-tests (Files): Likewise.
9275         * modules/unictype/category-Sc-tests (Files): Likewise.
9276         * modules/unictype/category-Sk-tests (Files): Likewise.
9277         * modules/unictype/category-Sm-tests (Files): Likewise.
9278         * modules/unictype/category-So-tests (Files): Likewise.
9279         * modules/unictype/category-Z-tests (Files): Likewise.
9280         * modules/unictype/category-Zl-tests (Files): Likewise.
9281         * modules/unictype/category-Zp-tests (Files): Likewise.
9282         * modules/unictype/category-Zs-tests (Files): Likewise.
9283         * modules/unictype/category-and-not-tests (Files): Likewise.
9284         * modules/unictype/category-and-tests (Files): Likewise.
9285         * modules/unictype/category-byname-tests (Files): Likewise.
9286         * modules/unictype/category-name-tests (Files): Likewise.
9287         * modules/unictype/category-none-tests (Files): Likewise.
9288         * modules/unictype/category-of-tests (Files): Likewise.
9289         * modules/unictype/category-or-tests (Files): Likewise.
9290         * modules/unictype/category-test-withtable-tests (Files): Likewise.
9291         * modules/unictype/combining-class-tests (Files): Likewise.
9292         * modules/unictype/ctype-alnum-tests (Files): Likewise.
9293         * modules/unictype/ctype-alpha-tests (Files): Likewise.
9294         * modules/unictype/ctype-blank-tests (Files): Likewise.
9295         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
9296         * modules/unictype/ctype-digit-tests (Files): Likewise.
9297         * modules/unictype/ctype-graph-tests (Files): Likewise.
9298         * modules/unictype/ctype-lower-tests (Files): Likewise.
9299         * modules/unictype/ctype-print-tests (Files): Likewise.
9300         * modules/unictype/ctype-punct-tests (Files): Likewise.
9301         * modules/unictype/ctype-space-tests (Files): Likewise.
9302         * modules/unictype/ctype-upper-tests (Files): Likewise.
9303         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
9304         * modules/unictype/decimal-digit-tests (Files): Likewise.
9305         * modules/unictype/digit-tests (Files): Likewise.
9306         * modules/unictype/mirror-tests (Files): Likewise.
9307         * modules/unictype/numeric-tests (Files): Likewise.
9308         * modules/unictype/property-alphabetic-tests (Files): Likewise.
9309         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
9310         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
9311         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
9312         Likewise.
9313         * modules/unictype/property-bidi-block-separator-tests (Files):
9314         Likewise.
9315         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
9316         Likewise.
9317         * modules/unictype/property-bidi-common-separator-tests (Files):
9318         Likewise.
9319         * modules/unictype/property-bidi-control-tests (Files): Likewise.
9320         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
9321         Likewise.
9322         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
9323         Likewise.
9324         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
9325         Likewise.
9326         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
9327         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
9328         Likewise.
9329         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
9330         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
9331         Likewise.
9332         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
9333         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
9334         * modules/unictype/property-bidi-segment-separator-tests (Files):
9335         Likewise.
9336         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
9337         * modules/unictype/property-byname-tests (Files): Likewise.
9338         * modules/unictype/property-combining-tests (Files): Likewise.
9339         * modules/unictype/property-composite-tests (Files): Likewise.
9340         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
9341         * modules/unictype/property-dash-tests (Files): Likewise.
9342         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
9343         * modules/unictype/property-default-ignorable-code-point-tests (Files):
9344         Likewise.
9345         * modules/unictype/property-deprecated-tests (Files): Likewise.
9346         * modules/unictype/property-diacritic-tests (Files): Likewise.
9347         * modules/unictype/property-extender-tests (Files): Likewise.
9348         * modules/unictype/property-format-control-tests (Files): Likewise.
9349         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
9350         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
9351         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
9352         * modules/unictype/property-hex-digit-tests (Files): Likewise.
9353         * modules/unictype/property-hyphen-tests (Files): Likewise.
9354         * modules/unictype/property-id-continue-tests (Files): Likewise.
9355         * modules/unictype/property-id-start-tests (Files): Likewise.
9356         * modules/unictype/property-ideographic-tests (Files): Likewise.
9357         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
9358         * modules/unictype/property-ids-trinary-operator-tests (Files):
9359         Likewise.
9360         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
9361         * modules/unictype/property-iso-control-tests (Files): Likewise.
9362         * modules/unictype/property-join-control-tests (Files): Likewise.
9363         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
9364         * modules/unictype/property-line-separator-tests (Files): Likewise.
9365         * modules/unictype/property-logical-order-exception-tests (Files):
9366         Likewise.
9367         * modules/unictype/property-lowercase-tests (Files): Likewise.
9368         * modules/unictype/property-math-tests (Files): Likewise.
9369         * modules/unictype/property-non-break-tests (Files): Likewise.
9370         * modules/unictype/property-not-a-character-tests (Files): Likewise.
9371         * modules/unictype/property-numeric-tests (Files): Likewise.
9372         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
9373         * modules/unictype/property-other-default-ignorable-code-point-tests
9374         (Files): Likewise.
9375         * modules/unictype/property-other-grapheme-extend-tests (Files):
9376         Likewise.
9377         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
9378         * modules/unictype/property-other-id-start-tests (Files): Likewise.
9379         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
9380         * modules/unictype/property-other-math-tests (Files): Likewise.
9381         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
9382         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
9383         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
9384         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
9385         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
9386         * modules/unictype/property-private-use-tests (Files): Likewise.
9387         * modules/unictype/property-punctuation-tests (Files): Likewise.
9388         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
9389         * modules/unictype/property-radical-tests (Files): Likewise.
9390         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
9391         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
9392         * modules/unictype/property-space-tests (Files): Likewise.
9393         * modules/unictype/property-terminal-punctuation-tests (Files):
9394         Likewise.
9395         * modules/unictype/property-test-tests (Files): Likewise.
9396         * modules/unictype/property-titlecase-tests (Files): Likewise.
9397         * modules/unictype/property-unassigned-code-value-tests (Files):
9398         Likewise.
9399         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
9400         * modules/unictype/property-uppercase-tests (Files): Likewise.
9401         * modules/unictype/property-variation-selector-tests (Files): Likewise.
9402         * modules/unictype/property-white-space-tests (Files): Likewise.
9403         * modules/unictype/property-xid-continue-tests (Files): Likewise.
9404         * modules/unictype/property-xid-start-tests (Files): Likewise.
9405         * modules/unictype/property-zero-width-tests (Files): Likewise.
9406         * modules/unictype/scripts-tests (Files): Likewise.
9407         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
9408         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
9409         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
9410         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
9411         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
9412         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
9413         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
9414         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
9415         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
9416         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
9417         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
9418         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
9419         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
9420         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
9421         * modules/uninorm/composition-tests (Files): Likewise.
9422         * modules/uninorm/decomposing-form-tests (Files): Likewise.
9423         * modules/uninorm/decomposition-tests (Files): Likewise.
9424         * modules/uninorm/filter-tests (Files): Likewise.
9425         * modules/uninorm/nfc-tests (Files): Likewise.
9426         * modules/uninorm/nfd-tests (Files): Likewise.
9427         * modules/uninorm/nfkc-tests (Files): Likewise.
9428         * modules/uninorm/nfkd-tests (Files): Likewise.
9429         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
9430         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
9431         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
9432         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
9433         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
9434         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
9435         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
9436         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
9437         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
9438         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
9439         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
9440         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
9441         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
9442         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
9443         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
9444         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
9445         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
9446         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
9447         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
9448         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
9449         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
9450         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
9451         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
9452         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
9453         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
9454         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
9455         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
9456         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
9457         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
9458         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
9459         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
9460         * modules/uniwidth/u8-width-tests (Files): Likewise.
9461         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
9462         * modules/uniwidth/u16-width-tests (Files): Likewise.
9463         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
9464         * modules/uniwidth/u32-width-tests (Files): Likewise.
9465         * modules/uniwidth/width-tests (Files): Likewise.
9466         * modules/unlink-tests (Files): Likewise.
9467         * modules/unsetenv-tests (Files): Likewise.
9468         * modules/usleep-tests (Files): Likewise.
9469         * modules/utimens-tests (Files): Likewise.
9470         * modules/utimensat-tests (Files): Likewise.
9471         * modules/vasnprintf-posix-tests (Files): Likewise.
9472         * modules/vasnprintf-tests (Files): Likewise.
9473         * modules/vasprintf-posix-tests (Files): Likewise.
9474         * modules/vasprintf-tests (Files): Likewise.
9475         * modules/vdprintf-posix-tests (Files): Likewise.
9476         * modules/vfprintf-posix-tests (Files): Likewise.
9477         * modules/vprintf-posix-tests (Files): Likewise.
9478         * modules/vsnprintf-posix-tests (Files): Likewise.
9479         * modules/vsnprintf-tests (Files): Likewise.
9480         * modules/vsprintf-posix-tests (Files): Likewise.
9481         * modules/wcrtomb-tests (Files): Likewise.
9482         * modules/wcsnrtombs-tests (Files): Likewise.
9483         * modules/wcsrtombs-tests (Files): Likewise.
9484         * modules/wctype-tests (Files): Likewise.
9485         * modules/wcwidth-tests (Files): Likewise.
9486         * modules/xmemdup0-tests (Files): Likewise.
9487         * modules/xprintf-posix-tests (Files): Likewise.
9488         * modules/xvasprintf-tests (Files): Likewise.
9489
9490 2009-12-24  Eric Blake  <ebb9@byu.net>
9491
9492         test-nanosleep: fix typo
9493         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
9494         patch.
9495         Reported by Bruno Haible.
9496
9497 2009-12-24  Bruno Haible  <bruno@clisp.org>
9498
9499         Reduce namespace pollution on glibc systems.
9500         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
9501         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
9502         systems.
9503         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
9504         <getopt.h> on glibc systems.
9505         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
9506         systems.
9507         * lib/fcntl.c: Include <unistd.h> here instead.
9508
9509 2009-12-24  Bruno Haible  <bruno@clisp.org>
9510
9511         * lib/stdlib.in.h (includes): Fix typo in today's commit.
9512
9513 2009-12-24  Eric Blake  <ebb9@byu.net>
9514
9515         tests: add signature checks
9516         * tests/signature.h (SIGNATURE_CHECK): New file.
9517         * modules/atexit-tests (Files): Use it.
9518         * modules/btowc-tests (Files): Likewise.
9519         * modules/canonicalize-lgpl-tests (Files): Likewise.
9520         * modules/ceilf-tests (Files): Likewise.
9521         * modules/ceill-tests (Files): Likewise.
9522         * modules/chown-tests (Files): Likewise.
9523         * modules/dprintf-posix-tests (Files): Likewise.
9524         * modules/dup2-tests (Files): Likewise.
9525         * modules/dup3-tests (Files): Likewise.
9526         * modules/duplocale-tests (Files): Likewise.
9527         * modules/fchdir-tests (Files): Likewise.
9528         * modules/fcntl-tests (Files): Likewise.
9529         * modules/fdopendir-tests (Files): Likewise.
9530         * modules/fflush-tests (Files): Likewise.
9531         * modules/flock-tests (Files): Likewise.
9532         * modules/floorf-tests (Files): Likewise.
9533         * modules/floorl-tests (Files): Likewise.
9534         * modules/fnmatch-tests (Files): Likewise.
9535         * modules/fopen-tests (Files): Likewise.
9536         * modules/fprintf-posix-tests (Files): Likewise.
9537         * modules/freopen-tests (Files): Likewise.
9538         * modules/frexp-nolibm-tests (Files): Likewise.
9539         * modules/frexp-tests (Files): Likewise.
9540         * modules/frexpl-nolibm-tests (Files): Likewise.
9541         * modules/frexpl-tests (Files): Likewise.
9542         * modules/fseek-tests (Files): Likewise.
9543         * modules/fseeko-tests (Files): Likewise.
9544         * modules/fsync-tests (Files): Likewise.
9545         * modules/ftell-tests (Files): Likewise.
9546         * modules/ftello-tests (Files): Likewise.
9547         * modules/futimens-tests (Files): Likewise.
9548         * modules/getaddrinfo-tests (Files): Likewise.
9549         * modules/getcwd-tests (Files): Likewise.
9550         * modules/getdelim-tests (Files): Likewise.
9551         * modules/getdtablesize-tests (Files): Likewise.
9552         * modules/getgroups-tests (Files): Likewise.
9553         * modules/gethostname-tests (Files): Likewise.
9554         * modules/getline-tests (Files): Likewise.
9555         * modules/getopt-posix-tests (Files): Likewise.
9556         * modules/gettimeofday-tests (Files): Likewise.
9557         * modules/glob-tests (Files): Likewise.
9558         * modules/iconv-tests (Files): Likewise.
9559         * modules/inet_ntop-tests (Files): Likewise.
9560         * modules/inet_pton-tests (Files): Likewise.
9561         * modules/isblank-tests (Files): Likewise.
9562         * modules/lchown-tests (Files): Likewise.
9563         * modules/ldexpl-tests (Files): Likewise.
9564         * modules/link-tests (Files): Likewise.
9565         * modules/linkat-tests (Files): Likewise.
9566         * modules/lseek-tests (Files): Likewise.
9567         * modules/lstat-tests (Files): Likewise.
9568         * modules/mbrtowc-tests (Files): Likewise.
9569         * modules/mbsinit-tests (Files): Likewise.
9570         * modules/mbsnrtowcs-tests (Files): Likewise.
9571         * modules/mbsrtowcs-tests (Files): Likewise.
9572         * modules/memchr-tests (Files): Likewise.
9573         * modules/memcmp-tests (Files): Likewise.
9574         * modules/memmem-tests (Files): Likewise.
9575         * modules/memrchr-tests (Files): Likewise.
9576         * modules/mkdir-tests (Files): Likewise.
9577         * modules/mkfifo-tests (Files): Likewise.
9578         * modules/mkfifoat-tests (Files): Likewise.
9579         * modules/mknod-tests (Files): Likewise.
9580         * modules/nanosleep-tests (Files): Likewise.
9581         * modules/nl_langinfo-tests (Files): Likewise.
9582         * modules/obstack-printf-tests (Files): Likewise.
9583         * modules/open-tests (Files): Likewise.
9584         * modules/openat-tests (Files): Likewise.
9585         * modules/perror-tests (Files): Likewise.
9586         * modules/pipe2-tests (Files): Likewise.
9587         * modules/poll-tests (Files): Likewise.
9588         * modules/popen-tests (Files): Likewise.
9589         * modules/posix_spawn-tests (Files): Likewise.
9590         * modules/posix_spawnp-tests (Files): Likewise.
9591         * modules/pread-tests (Files): Likewise.
9592         * modules/printf-posix-tests (Files): Likewise.
9593         * modules/pty-tests (Files): Likewise.
9594         * modules/random_r-tests (Files): Likewise.
9595         * modules/rawmemchr-tests (Files): Likewise.
9596         * modules/readlink-tests (Files): Likewise.
9597         * modules/remove-tests (Files): Likewise.
9598         * modules/rename-tests (Files): Likewise.
9599         * modules/renameat-tests (Files): Likewise.
9600         * modules/rmdir-tests (Files): Likewise.
9601         * modules/round-tests (Files): Likewise.
9602         * modules/roundf-tests (Files): Likewise.
9603         * modules/roundl-tests (Files): Likewise.
9604         * modules/select-tests (Files): Likewise.
9605         * modules/setenv-tests (Files): Likewise.
9606         * modules/sigaction-tests (Files): Likewise.
9607         * modules/sleep-tests (Files): Likewise.
9608         * modules/snprintf-posix-tests (Files): Likewise.
9609         * modules/snprintf-tests (Files): Likewise.
9610         * modules/sprintf-posix-tests (Files): Likewise.
9611         * modules/stat-tests (Files): Likewise.
9612         * modules/strcasestr-tests (Files): Likewise.
9613         * modules/strchrnul-tests (Files): Likewise.
9614         * modules/strerror-tests (Files): Likewise.
9615         * modules/strsignal-tests (Files): Likewise.
9616         * modules/strstr-tests (Files): Likewise.
9617         * modules/strtod-tests (Files): Likewise.
9618         * modules/strverscmp-tests (Files): Likewise.
9619         * modules/symlink-tests (Files): Likewise.
9620         * modules/symlinkat-tests (Files): Likewise.
9621         * modules/times-tests (Files): Likewise.
9622         * modules/trunc-tests (Files): Likewise.
9623         * modules/truncf-tests (Files): Likewise.
9624         * modules/truncl-tests (Files): Likewise.
9625         * modules/tsearch-tests (Files): Likewise.
9626         * modules/uname-tests (Files): Likewise.
9627         * modules/unlink-tests (Files): Likewise.
9628         * modules/unsetenv-tests (Files): Likewise.
9629         * modules/usleep-tests (Files): Likewise.
9630         * modules/utimensat-tests (Files): Likewise.
9631         * modules/vasprintf-tests (Files): Likewise.
9632         * modules/vdprintf-posix-tests (Files): Likewise.
9633         * modules/vfprintf-posix-tests (Files): Likewise.
9634         * modules/vprintf-posix-tests (Files): Likewise.
9635         * modules/vsnprintf-posix-tests (Files): Likewise.
9636         * modules/vsnprintf-tests (Files): Likewise.
9637         * modules/vsprintf-posix-tests (Files): Likewise.
9638         * modules/wcrtomb-tests (Files): Likewise.
9639         * modules/wcsnrtombs-tests (Files): Likewise.
9640         * modules/wcsrtombs-tests (Files): Likewise.
9641         * modules/wcwidth-tests (Files): Likewise.
9642         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
9643         * tests/test-isinf.c (isinf): Likewise.
9644         * tests/test-isnan.c (isnan): Likewise.
9645         * tests/test-signbit.c (signbit): Likewise.
9646         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
9647         declaration, either as macro or with correct signature.
9648         (select): Ensure function under test is declared with correct
9649         signature in correct header.
9650         * tests/test-atexit.c (atexit): Likewise.
9651         * tests/test-btowc.c (btowc): Likewise.
9652         * tests/test-canonicalize-lgpl.c (realpath)
9653         (canonicalize_file_name): Likewise.
9654         * tests/test-ceilf1.c (ceilf): Likewise.
9655         * tests/test-ceill.c (ceill): Likewise.
9656         * tests/test-chown.c (chown): Likewise.
9657         * tests/test-dprintf-posix.c (dprintf): Likewise.
9658         * tests/test-dup2.c (dup2): Likewise.
9659         * tests/test-dup3.c (dup3): Likewise.
9660         * tests/test-duplocale.c (duplocale): Likewise.
9661         * tests/test-fchdir.c (fchdir): Likewise.
9662         * tests/test-fchownat.c (fchownat): Likewise.
9663         * tests/test-fcntl.c (fcntl): Likewise.
9664         * tests/test-fdopendir.c (fdopendir): Likewise.
9665         * tests/test-fflush.c (fflush): Likewise.
9666         * tests/test-flock.c (flock): Likewise.
9667         * tests/test-floorf1.c (floorf): Likewise.
9668         * tests/test-floorl.c (floorl): Likewise.
9669         * tests/test-fnmatch.c (fnmatch): Likewise.
9670         * tests/test-fopen.c (fopen): Likewise.
9671         * tests/test-fprintf-posix.c (fprintf): Likewise.
9672         * tests/test-freopen.c (freopen): Likewise.
9673         * tests/test-frexp.c (frexp): Likewise.
9674         * tests/test-frexpl.c (frexpl): Likewise.
9675         * tests/test-fseek.c (fseek): Likewise.
9676         * tests/test-fseeko.c (fseeko): Likewise.
9677         * tests/test-fstatat.c (fstatat): Likewise.
9678         * tests/test-fsync.c (fsync): Likewise.
9679         * tests/test-ftell.c (ftell): Likewise.
9680         * tests/test-ftello.c (ftello): Likewise.
9681         * tests/test-futimens.c (futimens): Likewise.
9682         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
9683         (gai_strerror): Likewise.
9684         * tests/test-getcwd.c (getcwd): Likewise.
9685         * tests/test-getdelim.c (getdelim): Likewise.
9686         * tests/test-getdtablesize.c (getdtablesize): Likewise.
9687         * tests/test-getgroups.c (getgroups): Likewise.
9688         * tests/test-gethostname.c (gethostname): Likewise.
9689         * tests/test-getline.c (getline): Likewise.
9690         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
9691         Likewise.
9692         * tests/test-gettimeofday.c (gettimeofday): Likewise.
9693         * tests/test-glob.c (glob, globfree): Likewise.
9694         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
9695         * tests/test-inet_ntop.c (inet_ntop): Likewise.
9696         * tests/test-inet_pton.c (inet_pton): Likewise.
9697         * tests/test-isblank.c (isblank): Likewise.
9698         * tests/test-lchown.c (lchown): Likewise.
9699         * tests/test-ldexpl.c (ldexpl): Likewise.
9700         * tests/test-link.c (link): Likewise.
9701         * tests/test-linkat.c (linkat): Likewise.
9702         * tests/test-lseek.c (lseek): Likewise.
9703         * tests/test-lstat.c (lstat): Likewise.
9704         * tests/test-mbrtowc.c (mbrtowc): Likewise.
9705         * tests/test-mbsinit.c (mbsinit): Likewise.
9706         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
9707         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
9708         * tests/test-memchr.c (memchr): Likewise.
9709         * tests/test-memcmp.c (memcmp): Likewise.
9710         * tests/test-memmem.c (memmem): Likewise.
9711         * tests/test-memrchr.c (memrchr): Likewise.
9712         * tests/test-mkdir.c (mkdir): Likewise.
9713         * tests/test-mkdirat.c (mkdirat): Likewise.
9714         * tests/test-mkfifo.c (mkfifo): Likewise.
9715         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
9716         * tests/test-mknod.c (mknod): Likewise.
9717         * tests/test-nanosleep.c (nanosleep): Likewise.
9718         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
9719         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
9720         Likewise.
9721         * tests/test-open.c (open): Likewise.
9722         * tests/test-openat.c (openat): Likewise.
9723         * tests/test-perror.c (perror): Likewise.
9724         * tests/test-pipe2.c (pipe2): Likewise.
9725         * tests/test-poll.c (poll): Likewise.
9726         * tests/test-popen.c (popen, pclose): Likewise.
9727         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
9728         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
9729         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
9730         (posix_spawn_file_actions_destroy)
9731         (posix_spawn_file_actions_addclose)
9732         (posix_spawn_file_actions_addopen)
9733         (posix_spawn_file_actions_adddup2): Likewise.
9734         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
9735         * tests/test-pread.c (pread): Likewise.
9736         * tests/test-printf-posix.c (printf): Likewise.
9737         * tests/test-pty.c (openpty, forkpty): Likewise.
9738         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
9739         (random_r): Likewise.
9740         * tests/test-rawmemchr.c (rawmemchr): Likewise.
9741         * tests/test-readlink.c (readlink): Likewise.
9742         * tests/test-remove.c (remove): Likewise.
9743         * tests/test-rename.c (rename): Likewise.
9744         * tests/test-renameat.c (renameat): Likewise.
9745         * tests/test-rmdir.c (rmdir): Likewise.
9746         * tests/test-round1.c (round): Likewise.
9747         * tests/test-roundf1.c (roundf): Likewise.
9748         * tests/test-roundl.c (roundl): Likewise.
9749         * tests/test-setenv.c (setenv): Likewise.
9750         * tests/test-sigaction.c (sigaction): Likewise.
9751         * tests/test-sleep.c (sleep): Likewise.
9752         * tests/test-snprintf.c (snprintf): Likewise.
9753         * tests/test-sprintf-posix.c (sprintf): Likewise.
9754         * tests/test-stat.c (stat): Likewise.
9755         * tests/test-stpncpy.c (stpncpy): Likewise.
9756         * tests/test-strcasestr.c (strcasestr): Likewise.
9757         * tests/test-strchrnul.c (strchrnul): Likewise.
9758         * tests/test-strerror.c (strerror): Likewise.
9759         * tests/test-strsignal.c (strsignal): Likewise.
9760         * tests/test-strstr.c (strstr): Likewise.
9761         * tests/test-strtod.c (strtod): Likewise.
9762         * tests/test-strverscmp.c (strverscmp): Likewise.
9763         * tests/test-symlink.c (symlink): Likewise.
9764         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
9765         * tests/test-times.c (times): Likewise.
9766         * tests/test-trunc1.c (trunc): Likewise.
9767         * tests/test-truncf1.c (truncf): Likewise.
9768         * tests/test-truncl.c (truncl): Likewise.
9769         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
9770         Likewise.
9771         * tests/test-uname.c (uname): Likewise.
9772         * tests/test-unlink.c (unlink): Likewise.
9773         * tests/test-unlinkat.c (unlinkat): Likewise.
9774         * tests/test-unsetenv.c (unsetenv): Likewise.
9775         * tests/test-usleep.c (usleep): Likewise.
9776         * tests/test-utimensat.c (utimensat): Likewise.
9777         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
9778         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
9779         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
9780         * tests/test-vprintf-posix.c (vprintf): Likewise.
9781         * tests/test-vsnprintf.c (vsnprintf): Likewise.
9782         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
9783         * tests/test-wcrtomb.c (wcrtomb): Likewise.
9784         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
9785         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
9786         * tests/test-wcwidth.c (wcwidth): Likewise.
9787
9788         build: pull in conditional headers during GNULIB_POSIXCHECK
9789         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
9790         definitions from any conditionally-included headers.
9791         * lib/stdlib.in.h (includes): Likewise.
9792         * lib/unistd.in.h (includes): Likewise.
9793
9794 2009-12-24  Bruno Haible  <bruno@clisp.org>
9795
9796         * tests/test-argv-iter.c: Include header file being tested immediately
9797         after config.h.
9798         * tests/test-base64.c: Likewise.
9799         * tests/test-flock.c: Likewise.
9800         * tests/test-fsync.c: Likewise.
9801         * tests/test-getdate.c: Likewise.
9802         * tests/test-getndelim2.c: Likewise.
9803         * tests/test-isfinite.c: Likewise.
9804         * tests/test-isinf.c: Likewise.
9805         * tests/test-strerror.c: Likewise.
9806         * tests/test-strsignal.c: Likewise.
9807
9808 2009-12-23  Eric Blake  <ebb9@byu.net>
9809
9810         unistd: work around cygwin bug
9811         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
9812         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
9813         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
9814
9815 2009-12-23  Bruno Haible  <bruno@clisp.org>
9816
9817         localename: More tests.
9818         * tests/test-localename.c (SIZEOF): New macro.
9819         (categories): New variable.
9820         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
9821         test_locale_name_default): Add test w.r.t. thread locale.
9822         (test_locale_name_thread): New function.
9823         (main): Invoke it.
9824
9825         localename: Make aware of thread locale.
9826         * lib/localename.h (gl_locale_name_thread): New declaration.
9827         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
9828         behaviour with respect to thread locale.
9829         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
9830         <langinfo.h>, glthread/lock.h.
9831         (SIZE_BITS): New macro.
9832         (string_hash): New function.
9833         (struct hash_node): New type.
9834         (HASH_TABLE_SIZE): New macro.
9835         (struniq_hash_table, struniq_lock): New variables.
9836         (struniq): New function.
9837         (gl_locale_name_thread): New function.
9838         (gl_locale_name): Invoke it.
9839         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
9840         * modules/localename (Depends-on): Add lock.
9841         Reported by Mike Gran <spk121@yahoo.com>.
9842
9843 2009-12-23  Eric Blake  <ebb9@byu.net>
9844
9845         va-args: new module
9846         * modules/va-args: New file.
9847         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
9848         * MODULES.html.sh (Core language properties): Mention it.
9849
9850         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
9851         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
9852         named alias for __attribute__((__unused__)).
9853         * lib/chown.c: Update client.
9854         * lib/fchmodat.c: Likewise.
9855         * lib/fts.c: Likewise.
9856         * lib/getdate.y: Likewise.
9857         * lib/getgroups.c: Likewise.
9858         * lib/getopt.c: Likewise.
9859         * lib/getugroups.c: Likewise.
9860         * lib/mkdir.c: Likewise.
9861         * lib/mkfifo.c: Likewise.
9862         * lib/mkfifoat.c: Likewise.
9863         * lib/mknod.c: Likewise.
9864         * lib/mknodat.c: Likewise.
9865         * lib/readlink.c: Likewise.
9866         * lib/se-context.in.h: Likewise.
9867         * lib/se-selinux.in.h: Likewise.
9868         * lib/sockets.c: Likewise.
9869         * lib/symlink.c: Likewise.
9870         * lib/symlinkat.c: Likewise.
9871         * lib/unicodeio.c: Likewise.
9872         * lib/unistr.h: Likewise.
9873         * tests/test-areadlink.c: Likewise.
9874         * tests/test-areadlinkat.c: Likewise.
9875         * tests/test-filenamecat.c: Likewise.
9876         * tests/test-fseeko.c: Likewise.
9877         * tests/test-ftello.c: Likewise.
9878         * tests/test-getdate.c: Likewise.
9879         * tests/test-getgroups.c: Likewise.
9880         * tests/test-gethostname.c: Likewise.
9881         * tests/test-quotearg.c: Likewise.
9882         * tests/test-version-etc.c: Likewise.
9883         * tests/test-xalloc-die.c: Likewise.
9884         * tests/test-xfprintf-posix.c: Likewise.
9885         * tests/test-xprintf-posix.c: Likewise.
9886         * tests/test-xvasprintf.c: Likewise.
9887
9888         tests: avoid compiler warnings
9889         * tests/test-fcntl.c (main): Delete unused parameters.
9890         * tests/test-freopen-safer.c (main): Likewise.
9891         * tests/test-xalloc-die.c (main): Mark unused parameters.
9892         * tests/test-fseeko.c (main): Likewise.
9893         * tests/test-ftello.c (main): Likewise.
9894         * tests/test-nanosleep.c (main): Avoid declaration warning.
9895         * tests/test-sleep.c (main): Likewise.
9896         * tests/test-unsetenv.c (main): Silence warning about string
9897         literal.
9898         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
9899
9900 2009-12-23  Bruno Haible  <bruno@clisp.org>
9901
9902         * tests/test-localename.c (test_locale_name): New function, extracted
9903         from main. Also test mixed situations.
9904         (test_locale_name_posix, test_locale_name_environ,
9905         test_locale_name_default): New functions.
9906         (main): Invoke them all.
9907         * modules/localename-tests (configure.ac): Test for newlocale.
9908
9909 2009-12-23  Bruno Haible  <bruno@clisp.org>
9910
9911         unistd: Ensure getcwd gets declared before being overridden.
9912         * lib/unistd.in.h: Conditionally include <io.h>.
9913
9914 2009-12-22  Bruno Haible  <bruno@clisp.org>
9915
9916         wchar: Diagnose broken combination of glibc and gcc versions and flags.
9917         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
9918         (gl_WCHAR_H): Invoke it.
9919         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
9920         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
9921         Reported by Karl Berry <karl@freefriends.org>.
9922
9923 2009-12-22  Eric Blake  <ebb9@byu.net>
9924
9925         math, unistd: avoid redundant includes
9926         * lib/math.in.h (isnan): No need to re-include <math.h>.
9927         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
9928
9929         getsubopt: work around cygwin bug
9930         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
9931         avoid conflicting with system getsubopt.
9932         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
9933         bug.
9934
9935         getopt: synchronize from glibc
9936         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
9937         parameter order.  Adjust all callers.
9938         (_getopt_internal_r, main): Adjust quoting in error messages.
9939         Drop considerations for outdated POSIX 1003.2 error message.
9940         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
9941         callers.
9942         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
9943
9944         test-getopt: test stderr behavior
9945         * modules/getopt-posix-tests (Depends-on): Add dup2.
9946         * tests/test-getopt.c (ASSERT): Avoid stderr.
9947         (main): Move stderr to a temporary file.
9948         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
9949         Instead, add parameter to inform caller if output occurred.
9950         (test_getopt): Adjust all existing tests to expect silence, and
9951         add new tests of leading ":".
9952         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
9953         glibc shortcomings with leading "-:" or "+:" in optstring.
9954         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
9955         Likewise.
9956         * doc/posix-functions/getopt.texi (getopt): Likewise.
9957
9958         test-getopt: enhance test
9959         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
9960         supports optind=0.
9961         * tests/test-getopt.c (OPTIND_MIN): Move...
9962         * tests/test-getopt.h (OPTIND_MIN): ...here.
9963         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
9964         Require that optind=0 works, since modern BSD supports it in
9965         addition to optreset, and since coreutils expects it.
9966         (test_getopt_long_only): New test.
9967         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
9968         glibc shortcomings with 'W;', and enforcement of optind=0.
9969         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
9970         Likewise.
9971
9972 2009-12-21  Bruno Haible  <bruno@clisp.org>
9973
9974         localename: Improvements for MacOS X and Cygwin.
9975         * lib/localename.h (gl_locale_name_environ): New declaration.
9976         * lib/localename.c (gl_locale_name_environ): New function, extracted from
9977         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
9978         (gl_locale_name_posix): Invoke it.
9979         (gl_locale_name_default): Add comments. Use Windows native API also on
9980         Cygwin.
9981
9982 2009-12-21  Bruno Haible  <bruno@clisp.org>
9983
9984         Update list of Win32 locale ids.
9985         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
9986         (LANG_SAMI): Renamed from LANG_SAAMI.
9987         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
9988         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
9989         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
9990         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
9991         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
9992         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
9993         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
9994         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
9995         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
9996         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
9997         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
9998         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
9999         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
10000         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
10001         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
10002         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
10003         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
10004         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
10005         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
10006         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
10007         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
10008         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
10009         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
10010         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
10011         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
10012         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
10013         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
10014         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
10015         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
10016         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
10017         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
10018         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
10019         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
10020         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
10021         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
10022         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
10023         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
10024         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
10025         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
10026         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
10027         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
10028         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
10029         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
10030         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
10031         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
10032         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
10033         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
10034         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
10035         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
10036         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
10037         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
10038         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
10039         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
10040         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
10041         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
10042         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
10043         Add more languages and countries for Sami, Sorbian. Add more countries
10044         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
10045         for Pashto. Change country for Syriac, Tswana.
10046
10047 2009-12-21  Eric Blake  <ebb9@byu.net>
10048
10049         test-utimens: avoid spurious failure
10050         * tests/test-chown.h (nap): Factor...
10051         * tests/nap.h: ...into new file.
10052         * tests/test-lchown.h (nap): Avoid duplication.
10053         * tests/test-utimens-common.h (nap): Use shared implementation,
10054         necessary on file systems with 1-second resolution.
10055         * modules/chown-tests (Files): Include new file.
10056         * modules/fdutimensat-tests (Files): Likewise.
10057         * modules/futimens-tests (Files): Likewise.
10058         * modules/lchown-tests (Files): Likewise.
10059         * modules/openat-tests (Files): Likewise.
10060         * modules/utimens-tests (Files): Likewise.
10061         * modules/utimensat-tests (Files): Likewise.
10062
10063 2009-12-19  Eric Blake  <ebb9@byu.net>
10064
10065         futimens, utimensat: work around Linux bug
10066         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
10067         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
10068         * lib/utimensat.c (rpl_utimensat): Work around it.
10069         * lib/futimens.c (rpl_futimens): Adjust comment.
10070
10071         utimens: work around Linux ctime bug
10072         * lib/utimens.c (detect_ctime_bug): New helper function.
10073         (update_timespec): Differentiate between workaround needed for
10074         this bug vs. what is needed for systems that lack utimensat.
10075         (fdutimens, lutimens): Work around bug.
10076
10077         utimens: check for ctime update
10078         * tests/test-utimens-common.h (check_ctime): Define.
10079         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
10080         * tests/test-futimens.h (test_futimens): Likewise.
10081         * tests/test-lutimens.h (test_lutimens): Likewise.
10082         * doc/posix-functions/futimens.texi (futimens): Document the bug.
10083         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
10084
10085 2009-12-19  Bruno Haible  <bruno@clisp.org>
10086
10087         dprintf-posix: Check against memory leak fixed on 2009-12-15.
10088         * tests/test-dprintf-posix2.sh: New file.
10089         * tests/test-dprintf-posix2.c: New file.
10090         * modules/dprintf-posix-tests (Files): Add them.
10091         (configure.ac): Check for getrlimit and setrlimit.
10092         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
10093
10094 2009-12-19  Bruno Haible  <bruno@clisp.org>
10095
10096         fprintf-posix: Check against memory leak fixed on 2009-12-15.
10097         * tests/test-fprintf-posix3.sh: New file.
10098         * tests/test-fprintf-posix3.c: New file.
10099         * modules/fprintf-posix-tests (Files): Add them.
10100         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
10101
10102 2009-12-19  Eric Blake  <ebb9@byu.net>
10103
10104         dirfd: fix prototype
10105         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
10106         * lib/dirfd.c (dirfd): Likewise.
10107
10108         canonicalize: reduce memory usage
10109         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
10110         allocation to size.
10111         Reported by Solar Designer <solar@openwall.com>.
10112
10113 2009-12-19  Bruno Haible  <bruno@clisp.org>
10114
10115         New module attribute 'Applicability'.
10116         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
10117         * gnulib-tool: New option --extract-applicability.
10118         (func_usage): Document it.
10119         (sed_extract_prog): Recognize it.
10120         (func_get_applicability): New function.
10121         (func_import): Generalize handling of 'link-warning' module.
10122         * modules/link-warning (Applicability): New section.
10123         * modules/arg-nonnull (Applicability): New section.
10124         Repoted by Simon Josefsson <simon@josefsson.org>.
10125
10126 2009-12-19  Bruno Haible  <bruno@clisp.org>
10127
10128         fflush: tweak
10129         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
10130         * lib/fseeko.c (rpl_fseeko): Likewise.
10131
10132 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
10133
10134         * lib/gl_list.h: Fix typo in comment.
10135
10136 2009-12-16  Eric Blake  <ebb9@byu.net>
10137
10138         fcntl: use to simplify other modules
10139         * modules/cloexec (Depends-on): Add fcntl.
10140         * modules/fchdir (Depends-on): Likewise.
10141         * modules/fd-safer-flag (Depends-on): Likewise.
10142         * modules/unistd-safer (Depends-on): Likewise.
10143         * modules/dup3 (configure.ac): Set module indicator.
10144         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
10145         missing.
10146         * lib/fchdir.c (_gl_register_dup): Fix comment.
10147         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
10148         * lib/dup-safer.c (dup_safer): Likewise.
10149         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
10150         * lib/dup3.c (dup3): Likewise.
10151         * tests/test-fchdir.c (main): Enhance test.
10152         Fixes a dup_cloexec bug reported by Ondřej Vašík.
10153
10154         fcntl: port portions of fcntl to mingw
10155         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
10156         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
10157         replacement for mingw.
10158         * modules/fcntl (Description): Update.
10159         (Depends-on): Add dup2.
10160         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
10161         * modules/fcntl-h (Makefile.am): Substitute it.
10162         * lib/fcntl.in.h (fcntl): Update declaration.
10163         (F_DUPFD, F_GETFD): New macros, when needed.
10164         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
10165         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
10166         * tests/test-fcntl.c (check_flags, main): Enhance test for items
10167         we now guarantee.
10168
10169         fcntl: work around cygwin bug in F_DUPFD
10170         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
10171         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
10172         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
10173         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
10174         * doc/posix-functions/fcntl.texi (fcntl): Document it.
10175
10176         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
10177         * modules/fcntl (Files): List new files.
10178         (configure.ac): Run a test.
10179         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
10180         * lib/fcntl.c (rpl_fcntl): Likewise.
10181         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
10182         (gl_FCNTL_H): Always replace fcntl.h.
10183         * modules/fcntl-h (Makefile.am): Substitute witnesses.
10184         * lib/fcntl.in.h (fcntl): Declare replacement.
10185         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
10186         needed, plus a witness.
10187         * doc/posix-functions/fcntl.texi (fcntl): Document this.
10188         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
10189         * tests/test-fcntl.c: New file.
10190         * modules/fcntl-tests: Likewise.
10191
10192         binary-io: avoid potential compilation warning
10193         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
10194         directives.
10195
10196         fflush: avoid compilation error on NetBSD
10197         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
10198         between off_t and fpos_t, since the latter is sometimes a struct.
10199         * lib/fseeko.c (rpl_fseeko): Likewise.
10200         Reported by Alexander Nasonov <alnsn@yandex.ru>.
10201
10202 2009-12-15  Eric Blake  <ebb9@byu.net>
10203
10204         fcntl-h, stdio, sys_ioctl: fix declarations
10205         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
10206         function must not take arguments.
10207         * lib/sys_ioctl.in.h (ioctl): Likewise.
10208         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
10209         (open): Add a link warning.
10210
10211 2009-12-15  Jim Meyering  <meyering@redhat.com>
10212
10213         areadlink, areadlink-with-size: relax license to LGPLv2+
10214         * modules/areadlink (License): Relax to LGPLv2+.
10215         * modules/areadlink-with-size (License): Likewise.
10216
10217 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
10218             Bruno Haible  <bruno@clisp.org>
10219
10220         *printf: Fix memory leak.
10221         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
10222         * lib/vfprintf.c (vfprintf): Likewise.
10223         * lib/dprintf.c (dprintf): Likewise.
10224         * lib/vdprintf.c (vdprintf): Likewise.
10225
10226 2009-12-14  Eric Blake  <ebb9@byu.net>
10227
10228         accept4: adjust module dependencies
10229         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
10230
10231         utimens: one more try at avoiding compiler warning
10232         * lib/utimens.c (lutimens): Lower scope of result.
10233
10234 2009-12-13  Bruno Haible  <bruno@clisp.org>
10235
10236         Move the malloc checking from module 'list' to new module 'xlist'.
10237         * modules/xlist: New file.
10238         * lib/gl_xlist.h: New file.
10239         * lib/gl_xlist.c: New file.
10240         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
10241         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
10242         gl_list_add_last, gl_list_add_before, gl_list_add_after,
10243         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
10244         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
10245         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
10246         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
10247         gl_sortedlist_nx_add): New declarations.
10248         (struct gl_list_implementation): Rename and change methods accordingly.
10249         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
10250         (gl_list_nx_create): Renamed from gl_list_create.
10251         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
10252         (gl_list_nx_set_at): Renamed from gl_list_set_at.
10253         (gl_list_nx_add_first): Renamed from gl_list_add_first.
10254         (gl_list_nx_add_last): Renamed from gl_list_add_last.
10255         (gl_list_nx_add_before): Renamed from gl_list_add_before.
10256         (gl_list_nx_add_after): Renamed from gl_list_add_after.
10257         (gl_list_nx_add_at): Renamed from gl_list_add_at.
10258         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
10259         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
10260         gl_list_create_empty.
10261         (gl_list_nx_create): Renamed from gl_list_create.
10262         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
10263         (gl_list_nx_set_at): Renamed from gl_list_set_at.
10264         (gl_list_nx_add_first): Renamed from gl_list_add_first.
10265         (gl_list_nx_add_last): Renamed from gl_list_add_last.
10266         (gl_list_nx_add_before): Renamed from gl_list_add_before.
10267         (gl_list_nx_add_after): Renamed from gl_list_add_after.
10268         (gl_list_nx_add_at): Renamed from gl_list_add_at.
10269         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
10270         * lib/gl_array_list.c: Don't include xalloc.h.
10271         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
10272         NULL upon out-of-memory.
10273         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
10274         out-of-memory.
10275         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
10276         Change return type to 'int'.
10277         (gl_array_nx_set_at): Renamed from gl_array_set_at.
10278         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
10279         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
10280         upon out-of-memory.
10281         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
10282         upon out-of-memory.
10283         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
10284         upon out-of-memory.
10285         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
10286         upon out-of-memory.
10287         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
10288         out-of-memory.
10289         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
10290         Update.
10291         (gl_array_list_implementation): Update.
10292         * lib/gl_carray_list.c: Don't include xalloc.h.
10293         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
10294         Return NULL upon out-of-memory.
10295         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
10296         out-of-memory.
10297         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
10298         Change return type to 'int'.
10299         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
10300         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
10301         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
10302         upon out-of-memory.
10303         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
10304         upon out-of-memory.
10305         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
10306         out-of-memory.
10307         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
10308         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
10309         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
10310         Update.
10311         (gl_carray_list_implementation): Update.
10312         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
10313         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
10314         gl_linked_create_empty. Return NULL upon out-of-memory.
10315         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
10316         out-of-memory.
10317         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
10318         Change return type to 'int'. Return -1 upon out-of-memory.
10319         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
10320         out-of-memory.
10321         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
10322         upon out-of-memory.
10323         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
10324         upon out-of-memory.
10325         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
10326         NULL upon out-of-memory.
10327         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
10328         upon out-of-memory.
10329         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
10330         out-of-memory.
10331         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
10332         Update.
10333         * lib/gl_linked_list.c: Don't include xalloc.h.
10334         (gl_linked_list_implementation): Update.
10335         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
10336         (add_to_bucket): Change return type to 'int'.
10337         (gl_linkedhash_list_implementation): Update.
10338         * lib/gl_anytree_list1.h (free_subtree): New function.
10339         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
10340         gl_tree_create_empty. Return NULL upon out-of-memory.
10341         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
10342         Change return type to 'int'. Return -1 upon out-of-memory.
10343         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
10344         out-of-memory.
10345         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
10346         (gl_tree_remove_node): New function, moved here from
10347         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
10348         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
10349         Update.
10350         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
10351         malloc, not xmalloc. Return NULL upon out-of-memory.
10352         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
10353         out-of-memory.
10354         (gl_tree_remove_node_from_tree): New function, extracted from
10355         gl_tree_remove_node.
10356         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
10357         upon out-of-memory.
10358         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
10359         out-of-memory.
10360         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
10361         upon out-of-memory.
10362         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
10363         upon out-of-memory.
10364         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
10365         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
10366         not xmalloc. Return NULL upon out-of-memory.
10367         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
10368         out-of-memory.
10369         (gl_tree_remove_node_from_tree): New function, extracted from
10370         gl_tree_remove_node.
10371         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
10372         upon out-of-memory.
10373         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
10374         out-of-memory.
10375         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
10376         upon out-of-memory.
10377         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
10378         upon out-of-memory.
10379         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
10380         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
10381         gl_anytree_list1.h before gl_anyavltree_list2.h.
10382         (gl_avltree_list_implementation): Update.
10383         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
10384         gl_anytree_list1.h before gl_anyavltree_list2.h.
10385         (gl_rbtree_list_implementation): Update.
10386         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
10387         Change return type to 'int'. Return -1 upon out-of-memory. Use
10388         __builtin_expect.
10389         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
10390         (gl_avltreehash_list_implementation): Update.
10391         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
10392         (gl_rbtreehash_list_implementation): Update.
10393         * modules/array-list (Depends-on): Remove xalloc.
10394         * modules/carray-list (Depends-on): Likewise.
10395         * modules/linked-list (Depends-on): Likewise.
10396         * modules/linkedhash-list (Depends-on): Likewise.
10397         * modules/avltree-list (Depends-on): Likewise.
10398         * modules/rbtree-list (Depends-on): Likewise.
10399         * modules/avltreehash-list (Depends-on): Likewise.
10400         * modules/rbtreehash-list (Depends-on): Likewise.
10401
10402         * modules/xsublist: New file.
10403         * lib/gl_xsublist.h: New file.
10404         * lib/gl_xsublist.c: New file.
10405         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
10406         (gl_sublist_nx_create): New declaration.
10407         * lib/gl_sublist.c: Don't include xalloc.h.
10408         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
10409         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
10410         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
10411         Change return type to 'int'. Return -1 upon out-of-memory.
10412         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
10413         upon out-of-memory.
10414         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
10415         NULL upon out-of-memory.
10416         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
10417         upon out-of-memory.
10418         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
10419         NULL upon out-of-memory.
10420         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
10421         NULL upon out-of-memory.
10422         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
10423         upon out-of-memory.
10424         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
10425         (gl_sublist_list_implementation): Update.
10426         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
10427         upon out-of-memory.
10428         * modules/sublist (Depends-on): Remove xalloc.
10429
10430         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
10431         * tests/test-carray_list.c: Likewise.
10432         * tests/test-linked_list.c: Likewise.
10433         * tests/test-linkedhash_list.c: Likewise.
10434         * tests/test-avltree_list.c: Likewise.
10435         * tests/test-rbtree_list.c: Likewise.
10436         * tests/test-avltreehash_list.c: Likewise.
10437         * tests/test-rbtreehash_list.c: Likewise.
10438         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
10439         * modules/carray-list-tests (Makefile.am): Likewise.
10440         * modules/linked-list-tests (Makefile.am): Likewise.
10441         * modules/linkedhash-list-tests (Makefile.am): Likewise.
10442         * modules/avltree-list-tests (Makefile.am): Likewise.
10443         * modules/rbtree-list-tests (Makefile.am): Likewise.
10444         * modules/avltreehash-list-tests (Makefile.am): Likewise.
10445         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
10446
10447         * NEWS: Mention the changes.
10448
10449         * lib/clean-temp.c: Include gl_xlist.h.
10450         * modules/clean-temp (Depends-on): Add xlist.
10451
10452         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
10453         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
10454
10455         * tests/test-array_oset.c: Include gl_xlist.h.
10456         * modules/array-oset-tests (Depends-on): Add xlist.
10457
10458         Reported by José E. Marchesi <jemarch@gnu.org>.
10459
10460 2009-12-13  Bruno Haible  <bruno@clisp.org>
10461
10462         Move the malloc checking from module 'oset' to new module 'xoset'.
10463         * modules/xoset: New file.
10464         * lib/gl_xoset.h: New file.
10465         * lib/gl_xoset.c: New file.
10466         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
10467         declarations.
10468         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
10469         (struct gl_oset_implementation): Rename and change methods accordingly.
10470         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
10471         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
10472         'int'. Mark as __warn_unused_result__.
10473         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
10474         gl_oset_create_empty.
10475         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
10476         'int'.
10477         * lib/gl_array_oset.c: Don't include xalloc.h.
10478         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
10479         malloc, not xmalloc.
10480         (grow): Change return type to 'int'. Don't call xalloc_die.
10481         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
10482         to 'int'.
10483         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
10484         'int'.
10485         (gl_array_oset_implementation): Update.
10486         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
10487         gl_tree_create_empty.
10488         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
10489         'int'.
10490         * lib/gl_avltree_oset.c: Don't include xalloc.h.
10491         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
10492         xmalloc.
10493         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
10494         not xmalloc.
10495         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
10496         xmalloc.
10497         (gl_avltree_oset_implementation): Update.
10498         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
10499         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
10500         xmalloc.
10501         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
10502         not xmalloc.
10503         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
10504         xmalloc.
10505         (gl_rbtree_oset_implementation): Update.
10506         * modules/array-oset (Depends-on): Remove xalloc.
10507         * modules/avltree-oset (Depends-on): Likewise.
10508         * modules/rbtree-oset (Depends-on): Likewise.
10509         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
10510         * tests/test-avltree_oset.c: Likewise.
10511         * tests/test-rbtree_oset.c: Likewise.
10512         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
10513         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
10514         * modules/rbtree-oset-tests (Makefile.am): Likewise.
10515         * NEWS: Mention the change.
10516
10517 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
10518
10519         maint.mk: allow a project to override release-prep commands
10520         * top/maint.mk (alpha, beta, stable): Move release-preparatory
10521         commands into a new rule.
10522         (release-prep): New rule.
10523         (release-prep-hook): New overridable variable.
10524
10525 2009-12-13  Bruno Haible  <bruno@clisp.org>
10526
10527         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
10528
10529 2009-12-13  Jim Meyering  <meyering@redhat.com>
10530
10531         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
10532         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
10533
10534 2009-12-12  Bruno Haible  <bruno@clisp.org>
10535
10536         duplocale: Tweak.
10537         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
10538
10539 2009-12-12  Karl Berry  <karl@gnu.org>
10540
10541         * config/srclist.txt (strtoll.c): tab changes, no more sync.
10542
10543 2009-12-12  Bruno Haible  <bruno@clisp.org>
10544
10545         * m4/po.m4: Undo incorrect untabification.
10546
10547 2009-12-12  Bruno Haible  <bruno@clisp.org>
10548
10549         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
10550         * modules/c-strtod (Depends-on): Add locale.
10551         * modules/c-strtold (Depends-on): Likewise.
10552
10553 2009-12-12  Bruno Haible  <bruno@clisp.org>
10554
10555         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
10556
10557 2009-12-11  Eric Blake  <ebb9@byu.net>
10558
10559         setenv: relax requirement in light of POSIX ruling
10560         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
10561         not NULL.
10562         * tests/test-setenv.c (main): Relax test.
10563         * tests/test-unsetenv.c (main): Likewise.
10564         * doc/posix-functions/setenv.texi (setenv): Document this.
10565         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
10566
10567 2009-12-11  Bruno Haible  <bruno@clisp.org>
10568
10569         New module 'fd-safer-flag'.
10570         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
10571         * lib/dup-safer.c (dup_safer_flag): Remove function.
10572         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
10573         * lib/fd-safer.c (fd_safer_flag): Remove function.
10574         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
10575         * modules/cloexec (configure.ac): Drop indicator macro.
10576         * modules/fd-safer-flag: New file.
10577         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
10578         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
10579         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
10580
10581 2009-12-11  Bruno Haible  <bruno@clisp.org>
10582
10583         Tests for module 'nl_langinfo'.
10584         * modules/nl_langinfo-tests: New file.
10585         * tests/test-nl_langinfo.sh: New file.
10586         * tests/test-nl_langinfo.c: New file.
10587
10588         New module 'nl_langinfo'.
10589         * lib/nl_langinfo.c: New file.
10590         * m4/nl_langinfo.m4: New file.
10591         * modules/nl_langinfo: New file.
10592         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
10593
10594 2009-12-11  Bruno Haible  <bruno@clisp.org>
10595
10596         Tests for module 'langinfo'.
10597         * modules/langinfo-tests: New file.
10598         * tests/test-langinfo.c: New file.
10599
10600         New module 'langinfo'.
10601         * lib/langinfo.in.h: New file.
10602         * m4/langinfo_h.m4: New file.
10603         * modules/langinfo: New file.
10604         * doc/posix-headers/langinfo.texi: Mention the new module.
10605
10606 2009-12-11  Bruno Haible  <bruno@clisp.org>
10607
10608         * lib/config.charset: Untabify.
10609
10610 2009-12-11  Bruno Haible  <bruno@clisp.org>
10611
10612         * modules/unistd-safer (configure.ac): Drop indicator macro.
10613
10614 2009-12-11  Bruno Haible  <bruno@clisp.org>
10615
10616         Move pipe2-safer code to its own file.
10617         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
10618         * lib/pipe-safer.c (pipe2_safer): Remove function.
10619         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
10620         (Makefile.am): Add it to lib_SOURCES.
10621
10622 2009-12-10  Bruno Haible  <bruno@clisp.org>
10623
10624         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
10625
10626 2009-12-10  Bruno Haible  <bruno@clisp.org>
10627
10628         Declare which arguments expect non-NULL values, for GCC and clang.
10629         * build-aux/arg-nonnull.h: New file.
10630         * modules/arg-nonnull: New file.
10631         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
10632         (inet_ntop, inet_pton): Use it.
10633         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
10634         (closedir, dirfd, opendir, scandir, alphasort): Use it.
10635         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
10636         (open, openat): Use it.
10637         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
10638         (fnmatch): Use it.
10639         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
10640         (getopt, getopt_long, getopt_long_only): Use it.
10641         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
10642         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
10643         Use it.
10644         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
10645         (iconv_open): Use it.
10646         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
10647         (strtoimax, strtoumax): Use it.
10648         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
10649         (duplocale): Use it.
10650         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
10651         (frexp, frexpl): Use it.
10652         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
10653         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
10654         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
10655         (tsearch, tfind, tdelete, twalk): Use it.
10656         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
10657         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
10658         sigpending): Use it.
10659         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
10660         (posix_spawn, posix_spawnp, posix_spawnattr_init,
10661         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
10662         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
10663         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
10664         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
10665         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
10666         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
10667         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
10668         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
10669         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
10670         Use it.
10671         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
10672         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
10673         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
10674         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
10675         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
10676         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
10677         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
10678         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
10679         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
10680         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
10681         strtoull, unsetenv): Use it.
10682         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
10683         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
10684         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
10685         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
10686         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
10687         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
10688         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
10689         (strcasecmp, strncasecmp): Use it.
10690         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
10691         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
10692         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
10693         rpl_setsockopt): Use it.
10694         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
10695         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
10696         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
10697         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
10698         (gettimeofday): Use it.
10699         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
10700         (times): Use it.
10701         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
10702         (uname): Use it.
10703         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
10704         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
10705         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
10706         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
10707         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
10708         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
10709         unlinkat, write): Use it.
10710         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
10711         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
10712         * lib/argv-iter.h: Include arg-nonnull.h.
10713         (_ATTRIBUTE_NONNULL_): Remove macro.
10714         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
10715         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
10716         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
10717         optimization.
10718         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
10719         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
10720         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
10721         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
10722         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
10723         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
10724         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
10725         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
10726         * modules/arpa_inet (Depends-on): Add arg-nonnull.
10727         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
10728         * modules/dirent (Depends-on): Add arg-nonnull.
10729         (Makefile.am): Insert arg-nonnull.h into dirent.h.
10730         * modules/fcntl-h (Depends-on): Add arg-nonnull.
10731         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
10732         * modules/fnmatch (Depends-on): Add arg-nonnull.
10733         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
10734         * modules/getopt-posix (Depends-on): Add arg-nonnull.
10735         (Makefile.am): Insert arg-nonnull.h into getopt.h.
10736         * modules/glob (Depends-on): Add arg-nonnull.
10737         (Makefile.am): Insert arg-nonnull.h into glob.h.
10738         * modules/iconv_open (Depends-on): Add arg-nonnull.
10739         (Makefile.am): Insert arg-nonnull.h into iconv.h.
10740         * modules/inttypes (Depends-on): Add arg-nonnull.
10741         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
10742         * modules/locale (Depends-on): Add arg-nonnull.
10743         (Makefile.am): Insert arg-nonnull.h into locale.h.
10744         * modules/math (Depends-on): Add arg-nonnull.
10745         (Makefile.am): Insert arg-nonnull.h into math.h.
10746         * modules/netdb (Depends-on): Add arg-nonnull.
10747         (Makefile.am): Insert arg-nonnull.h into netdb.h.
10748         * modules/search (Depends-on): Add arg-nonnull.
10749         (Makefile.am): Insert arg-nonnull.h into search.h.
10750         * modules/signal (Depends-on): Add arg-nonnull.
10751         (Makefile.am): Insert arg-nonnull.h into signal.h.
10752         * modules/spawn (Depends-on): Add arg-nonnull.
10753         (Makefile.am): Insert arg-nonnull.h into spawn.h.
10754         * modules/stdio (Depends-on): Add arg-nonnull.
10755         (Makefile.am): Insert arg-nonnull.h into stdio.h.
10756         * modules/stdlib (Depends-on): Add arg-nonnull.
10757         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
10758         * modules/string (Depends-on): Add arg-nonnull.
10759         (Makefile.am): Insert arg-nonnull.h into string.h.
10760         * modules/strings (Depends-on): Add arg-nonnull.
10761         (Makefile.am): Insert arg-nonnull.h into strings.h.
10762         * modules/sys_socket (Depends-on): Add arg-nonnull.
10763         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
10764         * modules/sys_stat (Depends-on): Add arg-nonnull.
10765         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
10766         * modules/sys_time (Depends-on): Add arg-nonnull.
10767         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
10768         * modules/sys_times (Depends-on): Add arg-nonnull.
10769         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
10770         * modules/sys_utsname (Depends-on): Add arg-nonnull.
10771         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
10772         * modules/time (Depends-on): Add arg-nonnull.
10773         (Makefile.am): Insert arg-nonnull.h into time.h.
10774         * modules/unistd (Depends-on): Add arg-nonnull.
10775         (Makefile.am): Insert arg-nonnull.h into unistd.h.
10776         * modules/wchar (Depends-on): Add arg-nonnull.
10777         (Makefile.am): Insert arg-nonnull.h into wchar.h.
10778         * modules/argv-iter (Depends-on): Add arg-nonnull.
10779         * tests/test-canonicalize.c (null_ptr): New function.
10780         (main): Use it.
10781         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
10782         (main): Use it.
10783         * tests/test-memmem.c (null_ptr): New function.
10784         (main): Use it.
10785         Reported by Jim Meyering.
10786
10787 2009-12-10  Bruno Haible  <bruno@clisp.org>
10788
10789         Use spaces for indentation, not tabs.
10790         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
10791         * m4/*.m4: Untabify.
10792         * build-aux/*.h: Untabify.
10793         * tests/**/*.[hc]: Untabify.
10794         * README: New section "Indent with spaces, not TABs", based on
10795         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
10796         * NEWS: Mention the change.
10797
10798 2009-12-10  Bruno Haible  <bruno@clisp.org>
10799
10800         pty test: Fix link error.
10801         * modules/pty-tests (Makefile.am): Add the default LDADD value to
10802         test_pty_LDADD.
10803
10804 2009-12-07  Simon Josefsson  <simon@josefsson.org>
10805
10806         * modules/pty: New file.
10807         * modules/pty-tests: New file.
10808         * m4/pty.m4: New file.
10809         * tests/test-pty.c: New file.
10810         * doc/glibc-headers/pty.texi: Modified.
10811         * doc/glibc-functions/forkpty.texi: Modified.
10812         * doc/glibc-functions/openpty.texi: Modified.
10813
10814 2009-12-10  Bruno Haible  <bruno@clisp.org>
10815
10816         Avoid syntax error in C++ mode.
10817         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
10818
10819 2009-12-10  Bruno Haible  <bruno@clisp.org>
10820
10821         Use sed with option -e.
10822         * gnulib-tool (func_version, func_emit_copyright_notice,
10823         func_emit_initmacro_end, func_import, func_create_testdir): Pass
10824         option -e to sed.
10825         * modules/link-warning (Makefile.am): Likewise.
10826
10827 2009-12-10  Jim Meyering  <meyering@redhat.com>
10828
10829         mgetgroups: do not write bytes beyond end of malloc'd buffer
10830         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
10831         username, we call getgroups with a one-element-shorter buffer,
10832         but still told it the length was original, max_n_groups.
10833
10834 2009-12-09  Eric Blake  <ebb9@byu.net>
10835
10836         cloexec: relax license
10837         * modules/cloexec (Maintainer): Add myself.
10838         (License): Use LGPL, not GPL.
10839
10840         link-warning: optimize generation
10841         * modules/link-warning (Makefile.am): Reduce process usage.
10842
10843 2009-12-09  Bruno Haible  <bruno@clisp.org>
10844
10845         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
10846         workaround was added on 2009-11-17.
10847
10848 2009-12-09  Jim Meyering  <meyering@redhat.com>
10849             Bruno Haible  <bruno@clisp.org>
10850
10851         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
10852         * modules/link-warning (Makefile.am): Make the comment-removing sed
10853         command more robust in the face of bootstrap-prepended comment lines.
10854
10855 2009-12-09  Bruno Haible  <bruno@clisp.org>
10856
10857         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
10858         most one group.
10859
10860 2009-12-09  Simon Josefsson <simon@josefsson.org>
10861             Bruno Haible  <bruno@clisp.org>
10862
10863         * build-aux/link-warning.h: Add copyright notice.
10864         * modules/link-warning (Makefile.am): Generate link-warning.h from
10865         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
10866         * NEWS: Mention change in link-warning module.
10867         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
10868         * modules/dirent (Makefile.am): Add dependency to dirent.h.
10869         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
10870         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
10871         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
10872         * modules/math (Makefile.am): Add dependency to math.h.
10873         * modules/search (Makefile.am): Add dependency to search.h.
10874         * modules/signal (Makefile.am): Add dependency to signal.h.
10875         * modules/spawn (Makefile.am): Add dependency to spawn.h.
10876         * modules/stdio (Makefile.am): Add dependency to stdio.h.
10877         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
10878         * modules/string (Makefile.am): Add dependency to string.h.
10879         * modules/strings (Makefile.am): Add dependency to strings.h.
10880         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
10881         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
10882         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
10883         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
10884         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
10885         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
10886         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
10887         * modules/unistd (Makefile.am): Add dependency to unistd.h.
10888         * modules/wchar (Makefile.am): Add dependency to wchar.h.
10889
10890 2009-12-09  Bruno Haible  <bruno@clisp.org>
10891
10892         fchdir: Optimize away rpl_fstat when possible.
10893         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
10894         REPLACE_OPEN_DIRECTORY.
10895         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
10896
10897 2009-12-09  Bruno Haible  <bruno@clisp.org>
10898
10899         * lib/fchdir.c: Update comment.
10900
10901 2009-12-09  Bruno Haible  <bruno@clisp.org>
10902
10903         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
10904
10905 2009-12-08  Eric Blake  <ebb9@byu.net>
10906
10907         fchdir: avoid memory leak on re-registration.
10908         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
10909
10910 2009-12-08  Jim Meyering  <meyering@redhat.com>
10911
10912         init.sh: avoid Solaris 10 /bin/sh portability problem
10913         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
10914         sourced script:
10915           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
10916           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
10917           bar
10918         tests/init.sh relied on that, accepting a --set-path=DIR argument,
10919         and two tests used that idiom.
10920         * tests/init.sh: Update suggested usage comments.
10921         (path_prepend_): New function, to be used in place
10922         of the --src-path=DIR option.
10923         (setup_): Move PATH-prepending code into path_prepend_.
10924         * tests/test-pread.sh: Adapt to new usage.
10925         * tests/test-xalloc-die.sh: Likewise.
10926
10927 2009-12-08  Simon Josefsson  <simon@josefsson.org>
10928
10929         * doc/gnulib.texi (Glibc pty.h): Add.
10930         * doc/glibc-functions/forkpty.texi: Add.
10931         * doc/glibc-functions/openpty.texi: Add.
10932         Suggested by Bruno Haible.
10933
10934 2009-12-08  Eric Blake  <ebb9@byu.net>
10935
10936         fchdir: fix logic bugs
10937         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
10938         * tests/test-fchdir.c (main): Enhance test.
10939         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
10940         is in use.
10941
10942         dup2: fix logic bugs
10943         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
10944         REPLACE_DUP2 to decide when rpl_dup2 is needed.
10945         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
10946         exists.
10947         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
10948
10949 2009-12-07  Eric Blake  <ebb9@byu.net>
10950
10951         unlink: fix m4 detection
10952         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
10953
10954         unistd-safer: add unit test
10955         * modules/unistd-safer-tests: New file.
10956         * tests/test-dup-safer.c: Likewise.
10957         * tests/test-cloexec.c (setmode): Avoid compiler warning.
10958         * tests/test-dup2.c (setmode): Likewise.
10959         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
10960
10961         cloexec: preserve text vs. binary across dup_cloexec
10962         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
10963         mode.
10964         * modules/dup2-tests (Depends-on): Add binary-io.
10965         * modules/cloexec-tests (Depends-on): Likewise.
10966         * tests/test-dup2.c (setmode, is_mode): New helpers.
10967         (main): Add tests that translation mode is preserved.
10968         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
10969         Reported by Bruno Haible.
10970
10971         mgetgroups: reduce duplicate listings
10972         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
10973         resulting array.
10974         * tests/test-chown.h (test_chown): Simplify client.
10975         * tests/test-lchown.h (test_lchown): Likewise.
10976
10977 2009-12-06  Bruno Haible  <bruno@clisp.org>
10978
10979         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
10980         value.
10981
10982 2009-12-06  Bruno Haible  <bruno@clisp.org>
10983
10984         * lib/progname.c: Include stdio.h, stdlib.h.
10985         (set_program_name): Reject a NULL argument.
10986
10987 2009-12-05  Eric Blake  <ebb9@byu.net>
10988
10989         pipe2-safer: new module
10990         * modules/pipe2-safer: New file.
10991         * lib/unistd-safer.h (pipe2_safer): New prototype.
10992         * lib/unistd--.h (pipe2): New wrapper.
10993         * lib/pipe-safer.c (pipe2_safer): New function.
10994         * modules/pipe (Depends-on): Add pipe2-safer.
10995         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
10996
10997         stdlib-safer: preserve cloexec flag for mkostemp[s]
10998         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
10999         fd_safer_flag.
11000
11001         unistd-safer: allow preservation of cloexec status via flag
11002         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
11003         prototypes.
11004         * lib/dup-safer.c (dup_safer_flag): New function.
11005         * lib/fd-safer.c (fd_safer_flag): Likewise.
11006         * modules/cloexec (configure.ac): Set witness.
11007
11008         test-dup2: enhance test
11009         * modules/dup2-tests (Depends-on): Add cloexec.
11010         * tests/test-dup2.c (main): Enhance test.
11011
11012         cloexec: add dup_cloexec
11013         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
11014         header and comments.
11015         * lib/cloexec.c (set_cloexec_flag): Add comments.
11016         (dup_cloexec): New function, with mingw implementation borrowed
11017         from...
11018         * lib/w32spawn.h (dup_noinherit): ...here.
11019         * modules/execute (Depends-on): Add cloexec.
11020         * modules/pipe (Depends-on): Likewise.
11021         * modules/cloexec (Depends-on): Add dup2.
11022         * modules/cloexec-tests (Files): New file.
11023         * tests/test-cloexec.c: Likewise.
11024
11025         test-xalloc-die: fix test for mingw
11026         * modules/xalloc-die-tests (Files): Add tests/init.sh.
11027         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
11028         directory and .exe suffix off argv[0] output.
11029
11030         test-fseeko: fix test for mingw
11031         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
11032         than undefining fseek, so test will pass on mingw.
11033
11034 2009-12-05  Bruno Haible  <bruno@clisp.org>
11035
11036         * lib/progname.h (set_program_name): Clarify specification.
11037         * lib/progname.c (set_program_name): Likewise.
11038         Reported by Jim Meyering.
11039
11040 2009-12-05  Jim Meyering  <meyering@redhat.com>
11041
11042         maint.mk: backslash-escape parens in default regexp
11043         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
11044         backslash-escape the literal parentheses.
11045
11046         maint.mk: news-date-check: use grep -E
11047         * top/maint.mk (today): Define a Make variable, not a...
11048         (news-date-check): ...shell variable.
11049         (news-date-regexp): Use the Make variable.
11050         Use grep's -E option.  Change the failing diagnostic to mention
11051         the variable, $(news-date-regexp).
11052
11053 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
11054
11055         maintainer-makefile: allow customization of NEWS entry format
11056         * top/maint.mk (news-date-regexp): New overridable variable.
11057         (news-date-check): Use it.
11058
11059 2009-12-04  Eric Blake  <ebb9@byu.net>
11060
11061         mgetgroups: add xgetgroups, and avoid ENOSYS failures
11062         * lib/mgetgroups.h (xgetgroups): New prototype.
11063         * lib/mgetgroups.c (xgetgroups): New wrapper.
11064         (mgetgroups): Handle ENOSYS.
11065         * modules/mgetgroups (Depends-on): Add realloc.
11066         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
11067
11068         mgetgroups: avoid argument promotion issues with -1
11069         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
11070         for invalid gid_t.
11071         * tests/test-chown.h (getegid, test_chown): Likewise.
11072         * tests/test-lchown.h (getegid, test_lchown): Likewise.
11073
11074 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
11075
11076         exclude: Fix header file problems.
11077         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
11078
11079 2009-12-01  Jim Meyering  <meyering@redhat.com>
11080
11081         fts: fts_open: do not let an empty string cause immediate failure
11082         This is required in support of GNU rm, for which the command
11083         "rm A '' B" must process and remove both A and B, in spite of
11084         the empty string argument.
11085         * lib/fts.c (fts_open): Do not let the presence of an empty string
11086         cause fts_open to fail immediately.  Most fts-using tools must be
11087         able to process all arguments, in order, and can be expected to
11088         diagnose such arguments themselves.
11089
11090 2009-11-30  Eric Blake  <ebb9@byu.net>
11091
11092         utimens: fix compilation error
11093         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
11094         Declare variable at right scope.
11095
11096 2009-11-29  Jim Meyering  <meyering@redhat.com>
11097
11098         bootstrap: handle perl-5.11's changed --version output
11099         * build-aux/bootstrap (get_version): Handle perl separately,
11100         since perl-5.11's --version output is different.
11101
11102 2009-11-28  Jim Meyering  <meyering@redhat.com>
11103
11104         userspec: depend on the inttostr module, too
11105         * modules/userspec (Depends-on): Add inttostr.
11106
11107         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
11108         * lib/userspec.c (parse_with_separator): Do not accept a user ID
11109         number of MAXUID when it evaluates to (uid_t) -1.
11110         Likewise for group ID.  Reported by Matt McCutchen in
11111         <http://savannah.gnu.org/bugs/?28113>
11112
11113         userspec: reformat to use spaces, not TABs
11114         * lib/userspec.c: Expand TABs to spaces.
11115         Add Emacs' "indent-tabs-mode: nil" hint.
11116
11117 2009-11-27  Eric Blake  <ebb9@byu.net>
11118
11119         getopt-gnu: flush out another BSD bug
11120         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
11121         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
11122         flush out BSD bug.
11123         * tests/test-getopt.h (test_getopt): End lists with NULL.
11124         * tests/test-getopt_long.h (test_getopt_long): Likewise.
11125         (test_getopt_long_posix): Enhance test.
11126         * modules/getopt-posix-tests (Depends-on): Add stdbool.
11127         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
11128         getopt-gnu.
11129         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11130         Likewise.
11131
11132 2009-11-27  Simon Josefsson  <simon@josefsson.org>
11133
11134         * modules/idpriv-droptemp-tests (Notice): Fix text.
11135
11136 2009-11-27  Jim Meyering  <meyering@redhat.com>
11137
11138         test-xalloc-die: avoid spurious failure due to libtool argv difference
11139         In a libtool-enabled project, this test would fail due to a difference
11140         in the emitted program name, e.g.,
11141         -test-xalloc-die: memory exhausted
11142         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
11143         Use program to avoid that.
11144         * modules/xalloc-die-tests (Depends-on): Add progname.
11145         * tests/test-xalloc-die.c: Include progname.h".
11146         (program_name): Remove decl.
11147         (main): Call set_program_name.
11148         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
11149
11150 2009-11-26  Richard Jones  <rjones@redhat.com>
11151
11152         w32sock: leave win32 error in place.
11153         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
11154
11155 2009-11-26  Eric Blake  <ebb9@byu.net>
11156
11157         init.sh: suggest to use skip_ and fail_ functions in comments
11158         * tests/init.sh: Add a sentence.
11159
11160 2009-11-25  Bruno Haible  <bruno@clisp.org>
11161
11162         init.sh: add documentation in comments
11163         * tests/init.sh: Add some developer and user documentation.
11164
11165 2009-11-26  Jim Meyering  <meyering@redhat.com>
11166
11167         init.sh: accommodate even those who specify bogus srcdir manually
11168         * tests/init.sh: Normally, srcdir is guaranteed by automake and
11169         configure-time tests to be sanitized, so that there is no need to
11170         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
11171         (with no double quotes) suffices.  However, since tests may be
11172         invoked manually, and since you may explicitly set srcdir to the
11173         name of a directory containing spaces, do quote its uses here.
11174         * tests/test-pread.sh: Likewise.
11175         Suggested by Bruno Haible.
11176
11177         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
11178         * tests/test-pread.sh: Write no data into the pipe, because
11179         test-pread actually reads none.  This avoids a diagnostic,
11180         "bash: echo: write error: Broken pipe", that arises in the unusual
11181         event something is ignoring SIGPIPE, and might be interpreted
11182         as some sort of failure.  Reported by Bruno Haible.
11183
11184 2009-11-25  Jim Meyering  <meyering@redhat.com>
11185
11186         test-pread: cover failure with ESPIPE and EINVAL
11187         * tests/test-pread.c (main): Test for failure, too.
11188         * tests/test-pread.sh: Invoke with stdin on a pipe.
11189         Suggested by Eric Blake.
11190
11191         pread: improvement and fix
11192         * modules/pread (Depends-on): Depend on lseek, for portability to
11193         e.g., mingw.  Suggested by Eric Blake.
11194         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
11195
11196         unistd.in.h: correct declaration of pread
11197         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
11198         Reported by Richard W.M. Jones.
11199
11200         test-pread.sh: distribute the test script
11201         * modules/pread-tests (Files): Include test-pread.sh.
11202
11203         test-pread.sh: clean up
11204         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
11205         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
11206         That is unnecessary, since it's always ".".
11207         Suggestion from Eric Blake.
11208
11209         test-pread.sh: make executable
11210         * tests/test-pread.sh: Set executable bit.
11211         Reported by Eric Blake.
11212
11213         correct typo in test-pread.sh
11214         * tests/test-pread.sh: Add #! line.
11215
11216         test pread
11217         * tests/test-pread.c: New file.
11218         * tests/test-pread.sh: Likewise.
11219         * modules/pread-tests: Likewise.
11220
11221         pread: new module
11222         * modules/pread: New file.
11223         * lib/unistd.in.h (pread): Define/declare.
11224         * lib/pread.c (pread): New file.
11225         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
11226         * modules/unistd (Makefile.am): Substitute witnesses.
11227         * doc/posix-functions/pread.texi (pread): Update.
11228         * MODULES.html.sh: Add pread.
11229
11230 2009-11-25  Jim Meyering  <meyering@redhat.com>
11231
11232         tests/init.sh: new file to be used via most *.sh tests
11233         * tests/init.sh: New file.
11234
11235 2009-11-25  Eric Blake  <ebb9@byu.net>
11236
11237         utimens: work around older Linux failure with symlinks
11238         * lib/utimens.c (lutimensat_works_really): New variable.
11239         (fdutimens, lutimens): Use it to manage kernels that support
11240         nanosecond times on files, but not on symlinks.
11241         Reported by Ondřej Vašík.
11242
11243         utimes: fix configure grammar
11244         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
11245
11246 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
11247
11248         regex: Fix fastmap for multibyte character ranges.
11249         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
11250         characters when a multibyte character range is included.
11251
11252 2009-11-22  Andy Wingo  <wingo@pobox.com>
11253
11254         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
11255         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
11256
11257 2009-11-24  Bruno Haible  <bruno@clisp.org>
11258
11259         doc: Most *_l functions exist in MacOS X 10.5.
11260         * doc/posix-functions/duplocale.texi: Update platforms list.
11261         * doc/posix-functions/freelocale.texi: Likewise.
11262         * doc/posix-functions/newlocale.texi: Likewise.
11263         * doc/posix-functions/uselocale.texi: Likewise.
11264         * doc/posix-functions/isalnum_l.texi: Likewise.
11265         * doc/posix-functions/isalpha_l.texi: Likewise.
11266         * doc/posix-functions/isblank_l.texi: Likewise.
11267         * doc/posix-functions/iscntrl_l.texi: Likewise.
11268         * doc/posix-functions/isdigit_l.texi: Likewise.
11269         * doc/posix-functions/isgraph_l.texi: Likewise.
11270         * doc/posix-functions/islower_l.texi: Likewise.
11271         * doc/posix-functions/isprint_l.texi: Likewise.
11272         * doc/posix-functions/ispunct_l.texi: Likewise.
11273         * doc/posix-functions/isspace_l.texi: Likewise.
11274         * doc/posix-functions/isupper_l.texi: Likewise.
11275         * doc/posix-functions/iswalnum_l.texi: Likewise.
11276         * doc/posix-functions/iswalpha_l.texi: Likewise.
11277         * doc/posix-functions/iswblank_l.texi: Likewise.
11278         * doc/posix-functions/iswcntrl_l.texi: Likewise.
11279         * doc/posix-functions/iswctype_l.texi: Likewise.
11280         * doc/posix-functions/iswdigit_l.texi: Likewise.
11281         * doc/posix-functions/iswgraph_l.texi: Likewise.
11282         * doc/posix-functions/iswlower_l.texi: Likewise.
11283         * doc/posix-functions/iswprint_l.texi: Likewise.
11284         * doc/posix-functions/iswpunct_l.texi: Likewise.
11285         * doc/posix-functions/iswspace_l.texi: Likewise.
11286         * doc/posix-functions/iswupper_l.texi: Likewise.
11287         * doc/posix-functions/iswxdigit_l.texi: Likewise.
11288         * doc/posix-functions/isxdigit_l.texi: Likewise.
11289         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
11290         * doc/posix-functions/strcasecmp_l.texi: Likewise.
11291         * doc/posix-functions/strcoll_l.texi: Likewise.
11292         * doc/posix-functions/strfmon_l.texi: Likewise.
11293         * doc/posix-functions/strftime_l.texi: Likewise.
11294         * doc/posix-functions/strncasecmp_l.texi: Likewise.
11295         * doc/posix-functions/strxfrm_l.texi: Likewise.
11296         * doc/posix-functions/tolower_l.texi: Likewise.
11297         * doc/posix-functions/toupper_l.texi: Likewise.
11298         * doc/posix-functions/towctrans_l.texi: Likewise.
11299         * doc/posix-functions/towlower_l.texi: Likewise.
11300         * doc/posix-functions/towupper_l.texi: Likewise.
11301         * doc/posix-functions/wcscoll_l.texi: Likewise.
11302         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
11303         * doc/posix-functions/wctrans_l.texi: Likewise.
11304         * doc/posix-functions/wctype_l.texi: Likewise.
11305         * doc/glibc-functions/strptime_l.texi: Likewise.
11306         * doc/glibc-functions/strtod_l.texi: Likewise.
11307         * doc/glibc-functions/strtof_l.texi: Likewise.
11308         * doc/glibc-functions/strtol_l.texi: Likewise.
11309         * doc/glibc-functions/strtold_l.texi: Likewise.
11310         * doc/glibc-functions/strtoll_l.texi: Likewise.
11311         * doc/glibc-functions/strtoul_l.texi: Likewise.
11312         * doc/glibc-functions/strtoull_l.texi: Likewise.
11313         * doc/glibc-functions/wcsftime_l.texi: Likewise.
11314         * doc/glibc-functions/wcstod_l.texi: Likewise.
11315         * doc/glibc-functions/wcstof_l.texi: Likewise.
11316         * doc/glibc-functions/wcstol_l.texi: Likewise.
11317         * doc/glibc-functions/wcstold_l.texi: Likewise.
11318         * doc/glibc-functions/wcstoll_l.texi: Likewise.
11319         * doc/glibc-functions/wcstoul_l.texi: Likewise.
11320         * doc/glibc-functions/wcstoull_l.texi: Likewise.
11321
11322 2009-11-24  Bruno Haible  <bruno@clisp.org>
11323
11324         duplocale: Fix logic bug.
11325         * lib/duplocale.c: Don't include <langinfo.h>.
11326         (_NL_LOCALE_NAME): Remove macro.
11327         (rpl_duplocale): Use setlocale instead of nl_langinfo.
11328         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
11329
11330 2009-11-23  Jim Meyering  <meyering@redhat.com>
11331
11332         test-update-copyright: don't hard-code /usr/bin/perl
11333         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
11334         perl to print the current year.  Gilles Espinasse reported that
11335         the replaced use of perl was hard-coded as /usr/bin/perl.
11336
11337 2009-11-23  Bruno Haible  <bruno@clisp.org>
11338
11339         duplocale: Add support for glibc 2.3.x.
11340         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
11341
11342 2009-11-22  Bruno Haible  <bruno@clisp.org>
11343
11344         vasnprintf: Tiny optimization.
11345         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
11346         MacOS X.
11347
11348 2009-11-22  Bruno Haible  <bruno@clisp.org>
11349
11350         Tests for module 'duplocale'.
11351         * modules/duplocale-tests: New file.
11352         * tests/test-duplocale.c: New file.
11353
11354         New module 'duplocale'.
11355         * m4/duplocale.m4: New file.
11356         * lib/locale.in.h (duplocale): New declaration.
11357         * lib/duplocale.c: New file.
11358         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
11359         gl_LOCALE_H_DEFAULTS): New macros.
11360         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
11361         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
11362         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
11363         REPLACE_DUPLOCALE.
11364         * modules/duplocale: New file.
11365         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
11366
11367 2009-11-22  Bruno Haible  <bruno@clisp.org>
11368
11369         * modules/locale-tests (configure.ac): Test for newlocale function.
11370         * tests/test-locale.c: When the system has extended locale functions,
11371         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
11372
11373         locale: Make locale_t available when possible.
11374         * lib/locale.in.h: Include <xlocale.h> when it exists.
11375         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
11376         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
11377         * modules/locale (Depends-on): Add extensions.
11378         (Makefile.am): Also substitute HAVE_XLOCALE_H.
11379         * doc/posix-headers/locale.texi: Document the problem with locale_t.
11380
11381 2009-11-22  Bruno Haible  <bruno@clisp.org>
11382
11383         Add comments.
11384         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
11385         invocation.
11386         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
11387         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
11388         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
11389
11390 2009-11-22  Bruno Haible  <bruno@clisp.org>
11391
11392         error: account for the possibility of freopen (stdout).
11393         * lib/error.c: Include <unistd.h>.
11394         (flush_stdout): New function, extracted from error and error_at_line.
11395         Determine stdout's fd dynamically.
11396         (error, error_at_line): Invoke flush_stdout.
11397         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
11398         * modules/error (Depends-on): Add unistd.
11399
11400 2009-11-22  Bruno Haible  <bruno@clisp.org>
11401
11402         diffseq: Add comment.
11403         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
11404
11405 2009-11-22  Jim Meyering  <meyering@redhat.com>
11406
11407         c-stack: avoid defining an unused static function
11408         * lib/c-stack.c (find_stack_direction): Do not define this function
11409         when it will not be used.
11410
11411         diffseq: avoid spurious gcc warnings
11412         * lib/diffseq.h (IF_LINT2): Define.
11413         (compareseq): Use it to initialize two members of "part".
11414         This avoids two used-uninitialized warnings.
11415
11416 2009-11-21  Jim Meyering  <meyering@redhat.com>
11417
11418         c-stack: avoid "ignoring return value of `write'" warning
11419         * lib/c-stack.c: Include "ignore-value.h".
11420         (die): Explicitly ignore each write return value.
11421         * modules/c-stack (Depends-on): Add ignore-value.
11422
11423 2009-11-21  Bruno Haible  <bruno@clisp.org>
11424
11425         diffseq: reduce scope of variable 'best'.
11426         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
11427         variable, earlier used for two different purposes.
11428
11429 2009-11-21  Jim Meyering  <meyering@redhat.com>
11430
11431         diffseq: remove useless assignment to "best"
11432         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
11433         assignment.  At that point "best" is already guaranteed to be zero.
11434
11435 2009-11-20  Eric Blake  <ebb9@byu.net>
11436
11437         build: mention ftp redirector in release announcements
11438         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
11439         values that used to come from cfg.mk; mention FTP redirect URL.
11440         * build-aux/announce-gen: Mention the mirror list.
11441         Suggested by Karl Berry.
11442
11443         nanosleep: improve port to mingw
11444         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
11445         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
11446         LIB_NANOSLEEP, but only when needed.
11447         * modules/select (Link): Document LIBSOCKET.
11448         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
11449         enough.
11450
11451         nanosleep: work around cygwin bug
11452         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
11453         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
11454         bug.
11455         (getnow): Delete, not needed.
11456         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
11457         LIB_CLOCK_GETTIME.
11458         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
11459         clock-time, gettime.
11460         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
11461         bug.
11462         * modules/nanosleep-tests: New test.
11463         * tests/test-nanosleep.c: New file.
11464
11465         sleep: work around cygwin bug
11466         * lib/sleep.c (rpl_sleep): Work around the bug.
11467         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
11468         (gl_PREREQ_SLEEP): Delete unused macro.
11469         * modules/sleep (Depends-on): Add verify.
11470         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
11471         * modules/unistd (Makefile.am): Substitute witness.
11472         * lib/unistd.in.h (sleep): Update prototype.
11473         * doc/posix-functions/sleep.texi (sleep): Document the bug.
11474         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
11475         * modules/sleep-tests (Depends-on): Check for alarm.
11476
11477 2009-11-20  Jim Meyering  <meyering@redhat.com>
11478
11479         maint.mk: improve sc_prohibit_magic_number_exit
11480         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
11481         so it does not match uses like System.exit(1).
11482         Add comments showing how to correct all offenders.
11483
11484 2009-11-19  Eric Blake  <ebb9@byu.net>
11485
11486         xalloc-die-tests: add missing library
11487         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
11488
11489         test-xvasprintf: silence compiler warnings
11490         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
11491         empty string from gcc.
11492
11493 2009-11-19  Jim Meyering  <meyering@redhat.com>
11494
11495         xfreopen: new module, from coreutils
11496         * modules/xfreopen: New module.
11497         * lib/xfreopen.c: New file.
11498         * lib/xfreopen.h: New file.
11499         * MODULES.html.sh (File stream based Input/Output"): Add it.
11500
11501 2009-11-19  Eric Blake  <ebb9@byu.net>
11502
11503         manywarnings: depend on warnings
11504         * modules/manywarnings (Depends-on): Add warnings.
11505
11506         build: avoid compiler warnings
11507         * lib/select.c (rpl_select): Delete unused variable.
11508         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
11509
11510 2009-11-18  Eric Blake  <ebb9@byu.net>
11511
11512         tests: avoid false negative with --with-packager
11513         * tests/test-version-etc.sh: Discard packager information.
11514         * tests/test-argp-version-etc-1.sh: Likewise.
11515         Reported by Mike Frysinger.
11516
11517         utimens: fix regression on Solaris
11518         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
11519         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
11520         can only change fd timestamps via futimesat.  Instead, use an
11521         additional witness macro to avoid BSD bug.
11522         Reported by Jim Meyering.
11523
11524 2009-11-17  Eric Blake  <ebb9@byu.net>
11525
11526         usleep: use it to simplify tests
11527         * modules/stat-time-tests (Depends-on): Add usleep.
11528         (configure.ac): Drop usleep check.
11529         * modules/chown-tests (Depends-on, configure.ac): Likewise.
11530         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
11531         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
11532         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
11533         * modules/openat-tests (Depends-on, configure.ac): Likewise.
11534         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
11535         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
11536         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
11537         Likewise.
11538         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
11539         * tests/test-lchown.h (nap): Likewise.
11540         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
11541         * tests/test-stat-time.c (nap): Likewise.
11542         * tests/test-utimens-common.h (nap): Update comments.
11543
11544         usleep: new module
11545         * modules/usleep: New file.
11546         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
11547         * lib/usleep.c (usleep): Likewise.
11548         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
11549         * modules/unistd (Makefile.am): Substitute witnesses.
11550         * lib/unistd.in.h (usleep): Add declaration.
11551         * doc/pastposix-functions/usleep.texi (usleep): Document this.
11552         * MODULES.html.sh (Date and time): Likewise.
11553         * modules/usleep-tests (Depends-on): New test.
11554         * tests/test-usleep.c: New file.
11555
11556         chown: work around OpenBSD bug
11557         * lib/chown.c (rpl_chown): Work around the bug.
11558         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
11559         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
11560         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
11561         * modules/chown (Depends-on): Add stdbool.
11562         * modules/lchown (Depends-on): Likewise.
11563         * doc/posix-functions/chown.texi (chown): Document the bug.
11564         * doc/posix-functions/lchown.texi (lchown): Likewise.
11565         * tests/test-lchown.h (test_chown): Relax test.
11566
11567         mkstemp: avoid conflict with C++ keyword template
11568         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
11569         * lib/mkostemp.c (mkostemp): Likewise.
11570         * lib/mkostemps.c (mkostemps): Likewise.
11571         * lib/mkstemp.c (mkstemp): Likewise.
11572         * lib/mkstemps.c (mkstemps): Likewise.
11573
11574         xalloc-die-tests: optimize
11575         * tests/test-xalloc-die.sh: Reduce number of processes.
11576
11577 2009-11-17  Simon Josefsson  <simon@josefsson.org>
11578
11579         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
11580         patch from ludo@gnu.org (Ludovic Courtès).
11581
11582 2009-11-17  Jim Meyering  <meyering@redhat.com>
11583
11584         version-etc: use proper license string
11585         * modules/version-etc (License): Use LGPL, not LGPLv3+.
11586         * modules/version-etc-fsf: Likewise.
11587
11588 2009-11-17  Simon Josefsson  <simon@josefsson.org>
11589
11590         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
11591         printed to stdout.  Deal with EOL differences.
11592
11593 2009-11-17  Eric Blake  <ebb9@byu.net>
11594
11595         unsetenv: work around Solaris bug
11596         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
11597         * lib/unsetenv.c (rpl_unsetenv): Work around it.
11598         Reported by Jim Meyering.
11599
11600         vasnprintf: avoid compiler warnings
11601         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
11602         variables.
11603         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
11604
11605 2009-11-17  Simon Josefsson  <simon@josefsson.org>
11606
11607         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
11608         settings since xalloc-die is no longer the self test,
11609         xalloc-die.sh is.
11610
11611 2009-11-17  Jim Meyering  <meyering@redhat.com>
11612
11613         test-xalloc-die.sh: make the code agree with the commit log
11614         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
11615         at the end, just in case you happen to have a test-xalloc-die
11616         program in some other PATH directory.
11617
11618         test-xalloc-die.sh: fix a portability bug
11619         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
11620         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
11621         Otherwise, argv[0] (as often seen in diagnostics) would be too
11622         system-dependent, sometimes with, and sometimes without the leading "./".
11623
11624         version-etc-fsf: relax license to LGPLv3+
11625         * modules/version-etc-fsf (License): Relax license.
11626
11627 2009-11-16  Eric Blake  <ebb9@byu.net>
11628
11629         xalloc-die-tests: avoid printing null pointer
11630         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
11631         shell script.
11632         * tests/test-xalloc-die.c (program_name): Declare.
11633         * tests/test-xalloc-die.sh (tmpfiles): New file.
11634
11635         setenv, unsetenv: work around various bugs
11636         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
11637         (setenv) [HAVE_SETENV]: Work around bugs.
11638         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
11639         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
11640         for bugs.
11641         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
11642         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
11643         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
11644         * modules/stdlib (Makefile.am): Update substitutions.
11645         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
11646         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
11647         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
11648         * modules/setenv-tests: New test.
11649         * modules/unsetenv-tests: Likewise.
11650         * tests/test-setenv.c: New file.
11651         * tests/test-unsetenv.c: Likewise.
11652
11653 2009-11-16  Jim Meyering  <meyering@redhat.com>
11654
11655         version-etc: relax license to LGPLv3+
11656         * modules/version-etc (License): Relax license.
11657
11658         better AC_REQUIRE expanded-before-required-warning avoidance
11659         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
11660         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
11661         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
11662         which is no longer needed.
11663
11664 2009-11-16  Eric Blake  <ebb9@byu.net>
11665
11666         test-freading: clean up temporary file
11667         * tests/test-freading.c (main): Remove file on success, and use
11668         ASSERT more liberally.
11669         Reported by Jim Meyering.
11670
11671 2009-11-16  Jim Meyering  <meyering@redhat.com>
11672
11673         avoid new AC_REQUIRE expanded-before-required warnings
11674         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
11675         merely using it.
11676         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
11677         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
11678
11679 2009-11-15  Simon Josefsson  <simon@josefsson.org>
11680
11681         * tests/test-xalloc-die.c: New file.
11682         * modules/xalloc-die-tests: New file.
11683         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
11684         XFAIL_TESTS so it can be appended by modules.
11685
11686 2009-11-15  Simon Josefsson  <simon@josefsson.org>
11687
11688         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
11689         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
11690
11691 2009-11-14  Eric Blake  <ebb9@byu.net>
11692
11693         fnmatch: avoid compiler warning
11694         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
11695         to silence compiler warning about mismatch signedness in ?:.
11696         Reported by Robert Millan.
11697
11698         intprops: add double-inclusion guard
11699         * lib/intprops.h: Allow idempotent includes.
11700         Suggested by Bruce Korb.
11701
11702         openat: detect Solaris fchownat bug
11703         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
11704         penalizing glibc chownat when only lchownat is broken.
11705         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
11706         trailing slash bugs.
11707         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
11708         * modules/openat-tests (Files): Include more files.
11709         (Depends-on): Add mgetgroups, sleep, stat-time.
11710         (configure.ac): Add additional checks.
11711         (Makefile.am): Build new test.
11712         * tests/test-fchownat.c: New file.
11713
11714         lchown: detect Solaris and FreeBSD bug
11715         * lib/lchown.c (rpl_lchown): Work around bug.
11716         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
11717         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
11718         * modules/unistd (Makefile.am): Populate it.
11719         * lib/unistd.in.h (lchown): Update declaration.
11720         * doc/posix-functions/lchown.texi (lchown): Document the bug.
11721         * modules/lchown-tests: New file.
11722         * tests/test-lchown.h (test_lchown): Likewise.
11723         * tests/test-lchown.c (main): Likewise.
11724
11725         chown: detect Solaris and FreeBSD bug
11726         * lib/chown.c (rpl_chown): Work around bug.
11727         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
11728         (gl_PREREQ_CHOWN): Delete.
11729         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
11730         * modules/unistd (Makefile.am): Populate it.
11731         * lib/unistd.in.h (chown): Update declaration.
11732         * lib/lchown.c (chown): Update client.
11733         * modules/lchown (Depends-on): Add lstat.
11734         * doc/posix-functions/chown.texi (chown): Document the bug.
11735         * doc/posix-functions/getgroups.texi (getgroups): Document
11736         getgroups pitfall.
11737         * modules/chown-tests: New file.
11738         * tests/test-chown.h (test_chown): Likewise.
11739         * tests/test-chown.c (main): Likewise.
11740
11741 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
11742
11743         gnulib-tool: correctly detect absence of m4 directories
11744         * gnulib-tool: Avoid extra newline on data passed to wc -l.
11745
11746 2009-11-14  Jim Meyering  <meyering@redhat.com>
11747
11748         maint.mk: Prohibit inclusion of "xalloc.h" without use.
11749         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
11750
11751 2009-11-14  John W. Eaton  <jwe@gnu.org>
11752
11753         strftime.h: wrap funtion declaration in extern "C" block
11754         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
11755
11756 2009-11-13  Eric Blake  <ebb9@byu.net>
11757
11758         getgroups: avoid compiler warning
11759         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
11760
11761         getgroups: work around FreeBSD bug
11762         * lib/getgroups.c (rpl_getgroups): Work around the bug.
11763         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
11764         * doc/posix-functions/getgroups.texi (getgroups): Document it.
11765         * tests/test-getgroups.c (main): Fix buffer overrun.
11766
11767         getgroups: avoid compilation failure
11768         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
11769         * modules/getgroups (Depends-on): Add stdint.
11770
11771 2009-11-13  Jim Meyering  <meyering@redhat.com>
11772
11773         test-getgroups: avoid compilation failure
11774         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
11775
11776 2009-11-13  Eric Blake  <ebb9@byu.net>
11777
11778         mgetgroups: new module, taken from coreutils
11779         * modules/mgetgroups: New file.
11780         * lib/mgetgroups.h: Likewise.
11781         * lib/mgetgroups.c (mgetgroups): Likewise.
11782         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
11783         * MODULES.html.sh (Users and groups): Mention it.
11784
11785         getgroups: don't expose GETGROUPS_T to user
11786         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
11787         an element at a time if GETGROUPS_T is wrong size.
11788         * lib/getugroups.h (getugroups): Change signature.
11789         * lib/unistd.in.h (getgroups): Likewise.
11790         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
11791         signature needs fixing.
11792         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
11793         AC_TYPE_GETGROUPS.
11794         * modules/group-member (Depends-on): Add getgroups.
11795         * lib/group-member.c (group_info, get_group_info): Use gid_t.
11796         (group_member): Rely on getgroups replacement.
11797         * lib/getugroups.c (getugroups): Use gid_t.
11798         * tests/test-getgroups.c (main): Likewise.
11799         * NEWS: Mention the signature change.
11800         * doc/posix-functions/getgroups.texi (getgroups): Mention the
11801         problem with signature.
11802         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
11803         GETGROUPS_T is still useful for setgroups.
11804
11805         getgroups, getugroups: provide stubs for mingw
11806         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
11807         * lib/getugroups.c (getugroups): Likewise.
11808         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
11809         function.  Modernize replacement scheme.
11810         (gl_PREREQ_GETGROUPS): Delete.
11811         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
11812         * modules/getgroups (configure.ac): Declare witness.
11813         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
11814         * modules/unistd (Depends-on): Substitute witness.
11815         * lib/unistd.in.h (getgroups): Declare replacement.
11816
11817         getgroups: avoid calling exit
11818         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
11819         drop xalloc.
11820         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
11821         dependencies.
11822         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
11823         exiting, in the rare case of malloc failure.
11824
11825         getgroups: fix logic error
11826         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
11827         has more than 20 groups.
11828         * modules/getgroups-tests: New test.
11829         * tests/test-getgroups.c: New file.
11830
11831 2009-11-13  Simon Josefsson  <simon@josefsson.org>
11832
11833         * tests/test-base64.c: Improve.
11834
11835 2009-11-13  Simon Josefsson  <simon@josefsson.org>
11836
11837         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
11838         Blake <ebb9@byu.net>.
11839
11840 2009-11-13  Simon Josefsson  <simon@josefsson.org>
11841
11842         * tests/test-xvasprintf.c: Add %s%s related checks.
11843
11844 2009-11-12  Eric Blake  <ebb9@byu.net>
11845
11846         version-etc: match standards.texi style
11847         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
11848         and use <> only for URLs.
11849
11850 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
11851
11852         fts: do not fail on a submount during traversal
11853         * lib/fts.c (fts_build): Read the stat info again after opening
11854         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
11855         Original report at http://bugzilla.redhat.com/501848.
11856
11857 2009-11-12  Jim Meyering  <meyering@redhat.com>
11858
11859         bootstrap: sync from coreutils
11860         * build-aux/bootstrap (bootstrap_epilogue): New function.
11861         Use git_modules_config in one more place.  This make bootstrap's
11862         --gnulib-srcdir option more useful for testing.
11863
11864         bootstrap: generalize autoheader check
11865         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
11866         AC_CONFIG_HEADERS.
11867
11868 2009-11-11  Eric Blake  <ebb9@byu.net>
11869
11870         mkfifoat: use new modules for Solaris and BSD bugs
11871         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
11872         * lib/mkfifoat.c (mknodat): Split...
11873         * lib/mknodat.c (mknodat): ...into new file.
11874         * modules/mkfifoat (Files): Ship new file.
11875         (Depends-on): Add mkfifo, mknod.
11876         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
11877         (Depends-on): Add symlink.
11878         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
11879         redundant with test_mkfifo.h.
11880         (do_mkfifoat, do_mknodat): New helpers.
11881
11882         mknod: new module
11883         * modules/mknod: New file.
11884         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
11885         * lib/mknod.c (mknod): Likewise.
11886         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
11887         defaults.
11888         * modules/sys_stat (Makefile.am): Substitute them.
11889         * lib/sys_stat.in.h (mknod): Declare replacement.
11890         * MODULES.html.sh (Support for systems lacking POSIX:2008):
11891         Document it.
11892         * doc/posix-functions/mknod.texi (mknod): Likewise.
11893         * modules/mknod-tests: New test.
11894         * tests/test-mknod.c: Likewise.
11895
11896         mkfifo: new module
11897         * modules/mkfifo: New file.
11898         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
11899         * lib/mkfifo.c (mkfifo): Likewise.
11900         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
11901         defaults.
11902         * modules/sys_stat (Makefile.am): Substitute them.
11903         * lib/sys_stat.in.h (mkfifo): Declare replacement.
11904         * MODULES.html.sh (Support for systems lacking POSIX:2008):
11905         Document it.
11906         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
11907         * modules/mkfifo-tests: New test.
11908         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
11909         from test-mkfifoat.c.
11910         * tests/test-mkfifo.c: New file.
11911
11912         readlink: detect FreeBSD bug
11913         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
11914         slash on symlink.
11915         * doc/posix-functions/readlink.texi (readlink): Document the bug.
11916         * tests/test-readlink.h (test_readlink): Enhance test.
11917
11918         symlink: detect FreeBSD bug
11919         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
11920         slash on symlink.
11921         * doc/posix-functions/symlink.texi (symlink): Document the bug.
11922         * tests/test-symlink.h (test_symlink): Enhance test.
11923
11924 2009-11-10  Eric Blake  <ebb9@byu.net>
11925
11926         link: detect FreeBSD bug
11927         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
11928         symlink.
11929         * doc/posix-functions/link.texi (link): Document the bug.
11930         * tests/test-link.h (test_link): Enhance test.
11931         * tests/test-linkat.c (main): Update caller.
11932
11933         unlink, remove: detect FreeBSD bug
11934         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
11935         slash on symlink.
11936         * doc/posix-functions/unlink.texi (unlink): Document the bug.
11937         * doc/posix-functions/remove.texi (remove): Likewise.
11938         * tests/test-unlink.h (test_unlink): Enhance test.
11939         * tests/test-remove.c (main): Likewise.
11940
11941 2009-11-09  Eric Blake  <ebb9@byu.net>
11942
11943         rename: detect FreeBSD bug
11944         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
11945         slash on symlink.
11946         * modules/renameat-tests (Depends-on): Add filenamecat.
11947         * tests/test-rename.h (test_rename): Allow one more errno.
11948         * tests/test-renameat.c (main): Likewise.
11949         * doc/posix-functions/rename.texi (rename): Document the bug.
11950
11951         open: detect FreeBSD bug
11952         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
11953         symlink.
11954         * doc/posix-functions/open.texi (open): Document the bug.
11955         * doc/posix-functions/utimes.texi (utimes): Likewise.
11956         * tests/test-open.h (test_open): Add parameters, and test symlink
11957         handling.
11958         * tests/test-open.c (main): Adjust caller.
11959         * tests/test-fcntl-safer.c (main): Likewise.
11960         * modules/open-tests (Depends-on): Add stdbool, symlink.
11961         * modules/fcntl-safer-tests (Depends-on): Likewise.
11962         * tests/test-openat.c (main): Add test-open tests.
11963
11964         stat: detect FreeBSD bug
11965         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
11966         symlink.
11967         * doc/posix-functions/stat.texi (stat): Document the bug.
11968         * tests/test-stat.h (test_stat_func): Add argument.
11969         * tests/test-stat.c (main): Adjust caller.
11970         * tests/test-fstatat.c (main): Likewise.
11971         * modules/stat-tests (Depends-on): Add stdbool, symlink.
11972         Reported by Jim Meyering.
11973
11974 2009-11-09  James Youngman  <jay@gnu.org>
11975
11976         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
11977         * lib/strftime.c: Correct placement of #include "ignore-value.h".
11978
11979 2009-11-08  Jim Meyering  <meyering@redhat.com>
11980
11981         utimens: remove invalid futimesat call
11982         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
11983         It used the file descriptor of the target file as the DIR_FD
11984         parameter and NULL as the file name.  That caused failure with
11985         errno == EFAULT on FreeBSD-8.0-rc2
11986
11987 2009-11-07  Eric Blake  <ebb9@byu.net>
11988
11989         fflush, freadseek: use fseeko, not fseek
11990         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
11991         (clear_ungetc_buffer): Avoid potential problems on large files.
11992         * lib/freadseek.c (freadseek): Likewise.
11993         * modules/freadseek (Depends-on): Add fseeko.
11994         * modules/fseek (configure.ac): Set a witness.
11995         * tests/test-fflush.c (main): Use fseeko.
11996         * tests/test-fpurge.c (fseek): Disable link warning.
11997         * tests/test-freadable.c (fseek): Likewise.
11998         * tests/test-freading.c (fseek): Likewise.
11999         * tests/test-fseeko.c (fseek): Likewise.
12000         * tests/test-ftell.c (fseek): Likewise.
12001         * tests/test-ftello.c (fseek): Likewise.
12002         * tests/test-fwritable.c (fseek): Likewise.
12003         * tests/test-fwriting.c (fseek): Likewise.
12004
12005 2009-11-06  Simon Josefsson  <simon@josefsson.org>
12006
12007         * modules/memchr (Depends-on): Drop getpagesize dependency.
12008
12009 2009-11-06  Simon Josefsson  <simon@josefsson.org>
12010
12011         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
12012         Reported by Ludovic Courtès.
12013         * build-aux/pmccabe2html: Improve example usage.
12014         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
12015
12016 2009-11-06  Jim Meyering  <meyering@redhat.com>
12017
12018         do-release-commit-and-tag: New module.
12019         Automate the release-commit and tag process.
12020         * build-aux/do-release-commit-and-tag: New script, from coreutils.
12021         * modules/do-release-commit-and-tag: New file.
12022         * MODULES.html.sh (Support for maintaining and releasing): Add it.
12023
12024 2009-11-06  Simon Josefsson  <simon@josefsson.org>
12025
12026         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
12027         because test-select.c uses inet_pton.
12028
12029 2009-11-06  Simon Josefsson  <simon@josefsson.org>
12030
12031         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
12032         GETADDRINFO_LIB.  Bump serial number.
12033         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
12034         Suggested by Eric Blake <ebb9@byu.net>.
12035
12036 2009-11-05  Eric Blake  <ebb9@byu.net>
12037
12038         strtod: detect darwin bug
12039         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
12040         Reported by Leo Davis.
12041
12042         freopen-safer: new module
12043         * modules/freopen-safer: New module.
12044         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
12045         * lib/freopen-safer.c (freopen_safer): New file.
12046         * lib/stdio-safer.h (freopen_safer): New declaration.
12047         * lib/stdio--.h (freopen): New override.
12048         * MODULES.html.sh (File stream based Input/Output): Mention it.
12049         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
12050         freopen-safer module.
12051         * doc/posix-functions/stderr.texi (stderr): Likewise.
12052         * doc/posix-functions/stdin.texi (stdin): Likewise.
12053         * doc/posix-functions/stdout.texi (stdout): Likewise.
12054         * modules/freopen-safer-tests: New test.
12055         * tests/test-reopen-safer.c: New file.
12056
12057 2009-11-05  Jim Meyering  <meyering@redhat.com>
12058
12059         maint.mk: Prohibit inclusion of "close-stream.h" without use.
12060         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
12061
12062 2009-11-05  Simon Josefsson  <simon@josefsson.org>
12063
12064         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
12065
12066 2009-11-05  Simon Josefsson  <simon@josefsson.org>
12067
12068         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
12069
12070 2009-11-05  Simon Josefsson  <simon@josefsson.org>
12071
12072         Fix link error.
12073         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
12074         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
12075
12076 2009-11-05  Simon Josefsson  <simon@josefsson.org>
12077
12078         * tests/test-func.c: Also test value of __func__.
12079
12080 2009-11-05  Simon Josefsson  <simon@josefsson.org>
12081
12082         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
12083         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
12084
12085 2009-11-05  Bruno Haible  <bruno@clisp.org>
12086
12087         Fix link error.
12088         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
12089         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
12090         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
12091
12092 2009-11-05  Bruno Haible  <bruno@clisp.org>
12093
12094         Tests for module 'inet_pton'.
12095         * modules/inet_pton-tests: New file.
12096         * tests/test-inet_pton.c: New file.
12097
12098 2009-11-05  Bruno Haible  <bruno@clisp.org>
12099
12100         Tests for module 'inet_ntop'.
12101         * modules/inet_ntop-tests: New file.
12102         * tests/test-inet_ntop.c: New file.
12103
12104 2009-11-04  Eric Blake  <ebb9@byu.net>
12105
12106         stdlib-safer: wrap all mkstemp variants
12107         * modules/mkostemp (configure.ac): Set witness.
12108         * modules/mkostemps (configure.ac): Likewise.
12109         * modules/mkstemps (configure.ac): Likewise.
12110         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
12111         (mkstemps_safer): Wrap more functions.
12112         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
12113         wrapping.
12114         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
12115         (mkstemps_safer): Implement the wrappers.
12116
12117         mkstemps, mkostemps: new modules
12118         * modules/mkostemps: New module.
12119         * modules/mkstemps: Likewise.
12120         * lib/mkostemps.c (mkostemps): New file.
12121         * lib/mkstemps.c (mkstemps): Likewise.
12122         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
12123         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
12124         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
12125         * modules/stdlib (Makefile.am): Substitute them.
12126         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
12127         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
12128         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
12129         * doc/gnulib.texi (Glibc stdlib.h): Include them.
12130         * MODULES.html.sh (File system functions): Mention them.
12131
12132         tempname: resync from glibc
12133         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
12134         same values for __GT_FILE as glibc.  Abort even when assertions
12135         are disabled.
12136         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
12137         match its value otherwise.  Allow idempotent inclusion.
12138         * lib/mkdtemp.c (mkdtemp): Adjust caller.
12139         * lib/mkostemp.c (mkostemp): Likewise.
12140         * lib/mkstemp.c (mkstemp): Likewise.
12141         * lib/tmpfile.c (tmpfile): Likewise.
12142         * NEWS: Document this.
12143
12144         utimens: fix use of futimens on older Linux
12145         * lib/utimens.c (fdutimens): Use updated, rather than original,
12146         timespec to avoid bug in older Linux kernel.
12147         Reported by Simon Josefsson.
12148
12149 2009-11-04  Bruno Haible  <bruno@clisp.org>
12150
12151         Make num_processors more flexible and consistent.
12152         * lib/nproc.h (enum nproc_query): New type.
12153         (num_processors): Add a 'query' argument.
12154         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
12155         (num_processors): Add a 'query' argument. Test the value of the
12156         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
12157         mingw, count the number of CPUs available for the current process.
12158         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
12159         Check for sched_getaffinity and sched_getaffinity_np.
12160         * modules/nproc (Depends-on): Add c-ctype, extensions.
12161         * NEWS: Mention the change.
12162
12163 2009-11-03  Bruno Haible  <bruno@clisp.org>
12164
12165         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
12166
12167 2009-11-03  Jim Meyering  <meyering@redhat.com>
12168
12169         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
12170         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
12171         if it is defined.
12172
12173 2009-11-02  Eric Blake  <ebb9@byu.net>
12174
12175         mktime, timegm: share common declaration
12176         * lib/mktime-internal.h: New file.
12177         * lib/mktime.c: Use it rather than open-coding a declaration.
12178         * lib/timegm.c: Likewise.
12179         * modules/mktime (Files): Ship it.
12180         * modules/timegm (Files): Likewise.
12181         Suggested by Bruno Haible.
12182
12183         test-update-copyright: update test to match script changes
12184         * tests/test-update-copyright.sh: Avoid hard-coding perl
12185         location.  Don't update *.bak created by earlier runs.
12186
12187 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
12188             Simon Josefsson  <simon@josefsson.org>
12189             Bruno Haible  <bruno@clisp.org>
12190
12191         Fix link error on Solaris 8.
12192         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
12193         also in libnsl. Define also INET_PTON_LIB.
12194         * modules/inet_pton (Link): New section.
12195
12196 2009-11-02  Simon Josefsson  <simon@josefsson.org>
12197             Bruno Haible  <bruno@clisp.org>
12198
12199         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
12200         * modules/inet_ntop (Link): New section.
12201         Reported by Boyan Kasarov <bkasarov@gmail.com>.
12202
12203 2009-11-02  Eric Blake  <ebb9@byu.net>
12204
12205         maint: avoid compiler warnings in m4 macros
12206         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
12207         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
12208
12209 2009-11-02  Simon Josefsson  <simon@josefsson.org>
12210
12211         * m4/pmccabe2html.m4: Remove file.
12212         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
12213         function.  Change maintainer.
12214         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
12215         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
12216         Courtès).
12217
12218 2009-10-31  Eric Blake  <ebb9@byu.net>
12219
12220         fseeko: fix m4 regression
12221         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
12222         regression from 2009-10-27.
12223         Reported by Ralf Wildenhues.
12224
12225 2009-10-31  Jim Meyering  <meyering@redhat.com>
12226
12227         inttostr: aesthetics and improved (compile-time) safety
12228         Define inttype_is_signed rather than inttype_is_unsigned,
12229         since the sole use is via "#if inttype_is_signed".
12230         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
12231         inttype_is_unsigned.
12232         * lib/offtostr.c (inttype_is_signed): Likewise.
12233         * lib/uinttostr.c (inttype_is_signed): Likewise.
12234         * lib/umaxtostr.c (inttype_is_signed): Likewise.
12235         * lib/inttostr.c (inttostr): Use verify to cross-check the
12236         inttype_is_signed value and the signedness of the actual type.
12237         * modules/inttostr (Depends-on): Add verify.
12238
12239 2009-10-30  Eric Blake  <ebb9@byu.net>
12240
12241         build: avoid compiler warnings
12242         * lib/fchmodat.c (lchmod): Mark unused variables.
12243         * lib/getopt.c (_getopt_initialize): Likewise.
12244         * lib/mktime.c (__mktime_internal): Provide prototype.
12245         * lib/inttostr.c (inttostr): Avoid compiler warning even with
12246         older gcc that do not understand #pragma GCC diagnostic.
12247         * lib/uinttostr.c (inttype_is_unsigned): Define.
12248         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
12249
12250 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
12251
12252         stat: fix compilation on AIX
12253         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
12254         only see struct stat64.
12255
12256 2009-10-30  Eric Blake  <ebb9@byu.net>
12257
12258         exclude: make more robust
12259         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
12260         rather than masking a coding bug.
12261         Suggested by Bruno Haible.
12262
12263 2009-10-30  Jim Meyering  <meyering@redhat.com>
12264
12265         perl scripts: remove #!/usr/bin/perl in favor of more portable...
12266         Rather than putting #!/usr/bin/perl on the first line,
12267         start with a variant of what's recommended by "man perlrun" that
12268         invokes the first "perl" program from your shell's search path.
12269         * build-aux/gitlog-to-changelog: Replace #!... as above.
12270         Add a "Local Variables" perl mode setting.
12271         Prompted by a patch from Ludovic Courtès.
12272         Improved by Eric Blake.
12273         * build-aux/useless-if-before-free: Likewise.
12274         * build-aux/announce-gen: Likewise.
12275         * build-aux/update-copyright: Likewise.
12276
12277 2009-10-29  Eric Blake  <ebb9@byu.net>
12278
12279         filenamecat-lgpl: adjust clients
12280         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
12281         filenamecat.
12282         * modules/renameat (Depends-on): Likewise.
12283
12284         filenamecat: split into filenamecat-lgpl
12285         * modules/filenamecat-lgpl: New module.
12286         * modules/filenamecat (Files): Move library-safe files into
12287         filenamecat-lgpl.
12288         (Depends-on): Add filenamecat-lgpl.
12289         (configure.ac): Declare witness.
12290         * lib/filenamecat.h (file_name_concat): Only declare when using
12291         GPL module.
12292         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
12293         Move...
12294         * lib/filenamecat-lgpl.c: ...into new file.
12295         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
12296         (gl_FILE_NAME_CONCAT): Use it.
12297         * MODULES.html.sh (File system functions): Mention new module.
12298
12299         argp: avoid memory leak
12300         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
12301         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
12302         base_name, since the latter malloc()s and can call exit().
12303         Leak introduced 2006-07-03.
12304
12305         dirname-lgpl: adjust clients that don't need full dirname
12306         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
12307         * modules/filenamecat (Depends-on): Likewise.
12308         * modules/linkat (Depends-on): Likewise.
12309         * modules/mkancesdirs (Depends-on): Likewise.
12310         * modules/mkdir (Depends-on): Likewise.
12311         * modules/openat (Depends-on): Likewise.
12312         * modules/savewd (Depends-on): Likewise.
12313         * modules/rename (Depends-on): Likewise.
12314         (License): Relax license.
12315         * modules/mkdir-tests (Depends-on): Drop progname.
12316         (Makefile.am): Delete unneeded LDADD.
12317         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
12318
12319         dirname: split into dirname-lgpl
12320         * modules/dirname-lgpl: New module.
12321         * modules/dirname (Files): Move library-safe files into
12322         dirname-lgpl.
12323         (Depends-on): Add dirname-lgpl.
12324         (configure.ac): Declare witness.
12325         * modules/double-slash-root (License): Relax license.
12326         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
12327         module.
12328         * lib/dirname.c (dir_len, mdir_name): Move...
12329         * lib/dirname-lgpl.c: ...into new file.
12330         * lib/basename.c (last_component, base_len): Move...
12331         * lib/basename-lgpl.c: ...into new file.
12332         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
12333         (gl_DIRNAME): Use it.
12334         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
12335         Mention new module.
12336         * modules/dirname-tests (Depends-on): Add progname.
12337         * tests/test-dirname.c (program_name): Delete.
12338
12339         mkdir: make safe for libraries
12340         * modules/mkdir (Depends-on): Drop xalloc.
12341         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
12342         exit.
12343
12344         tests: avoid some compiler warnings
12345         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
12346         literals.
12347         * tests/test-memchr.c (main): Avoid type mismatch.
12348         * tests/test-arpa_inet.c (main): Avoid unused parameters.
12349         * tests/test-base64.c (main): Likewise.
12350         * tests/test-getdelim.c (main): Likewise.
12351         * tests/test-gethostname.c (main): Likewise.
12352         * tests/test-getline.c (main): Likewise.
12353         * tests/test-netinet_in.c (main): Likewise.
12354         * tests/test-select.c (open_server_socket, main): Likewise.
12355         * tests/test-select-stdin.c (main): Likewise.
12356         * tests/test-sockets.c (main): Likewise.
12357         * tests/test-strsignal.c (main): Likewise.
12358         * tests/test-sys_select.c (main): Likewise.
12359         * tests/test-sys_socket.c (main): Likewise.
12360         * tests/test-u64.c (main): Likewise.
12361         * tests/test-xfprintf-posix.c (main): Likewise.
12362         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
12363
12364         sockets: avoid compiler warning
12365         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
12366
12367         maint: detect usage(1) and other suspicious exits
12368         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
12369
12370 2009-10-29  Jim Meyering  <meyering@redhat.com>
12371
12372         timespec: long-to-int truncation could make timespec_cmp malfunction
12373         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
12374         a multiple of 2^32 nanoseconds as no difference.
12375
12376 2009-10-28  Jim Meyering  <meyering@redhat.com>
12377
12378         fprintftime: wrap macro code argument in "do {...} while(0)"
12379         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
12380         cpy macro must be a statement that can be followed by a semicolon.
12381         Now that the else clause contains a comment and is hence longer
12382         than one line, I require curly braces.  That in turn requires
12383         that we wrap this code block in the standard do...while(0).
12384
12385         fprintftime: remove stray semicolon from previous change
12386         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
12387
12388         fprintftime: avoid a warning about ignored fwrite return value
12389         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
12390         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
12391         that is unsafe.
12392         * modules/fprintftime (Depends-on): Add ignore-value.
12393
12394         exclude: avoid an unwarranted warning
12395         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
12396
12397 2009-10-27  Eric Blake  <ebb9@byu.net>
12398
12399         fseek: avoid compilation failure when fflush is replaced
12400         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
12401         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
12402         module is in use.
12403         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
12404         module is not in use; since REPLACE_FSEEK worked otherwise.
12405         (GNULIB_FTELLO): Likewise for ftell.
12406         Reported by Ian Beckwith and others.
12407
12408 2009-10-27  Bruno Haible  <bruno@clisp.org>
12409
12410         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
12411         Reported by Jim Meyering.
12412
12413 2009-10-27  Jim Meyering  <jim@meyering.net>
12414             Bruno Haible  <bruno@clisp.org>
12415
12416         Avoid warning despite dropping the return value of fwrite.
12417         * lib/unicodeio.c: Include ignore-value.h.
12418         (fwrite_success_callback): Explicitly ignore fwrite's return value.
12419         * modules/unicodeio (Depends-on): Add ignore-value.
12420
12421 2009-10-26  Eric Blake  <ebb9@byu.net>
12422
12423         areadlinkat: fix fallback path
12424         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
12425         pointer and zero.
12426
12427 2009-10-22  Pádraig Brady  <P@draigBrady.com>
12428
12429         Use a better IO block size for modern systems
12430         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
12431         * lib/md2.c: Likewise.
12432         * lib/md4.c: Likewise.
12433         * lib/md5.c: Likewise.
12434         * lib/sha1.c: Likewise.
12435         * lib/sha256.c: Likewise.
12436         * lib/sha512.c: Likewise.
12437
12438 2009-10-22  Eric Blake  <ebb9@byu.net>
12439
12440         tests: avoid several compiler warnings
12441         * tests/test-getcwd.c (main): Avoid buffer underflow.
12442         * tests/test-getdate.c (main): String literals are not safe with
12443         putenv, so use setenv.  Declare unused argument.
12444         * modules/getdate-tests (Depends-on): Add setenv.
12445         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
12446         problems with string literals in char *.
12447         * tests/test-hash.c (main): Avoid shadowing declaration.
12448         (insert_new): Treat string literals as char const *.
12449         * tests/test-getopt.h (test_getopt): Likewise.
12450         (getopt_loop): Alter types to minimize casting elsewhere.
12451         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
12452         (test_getopt_long_posix): Likewise.
12453         (do_getopt_long): Add wrapper to minimize casting.
12454         * tests/test-atexit.c (clear_temp_file): Use void.
12455         * tests/test-areadlink-with-size.c (main): Declare unused
12456         arguments.
12457         * tests/test-areadlink.c (main): Likewise.
12458         * tests/test-areadlinkat-with-size.c (main): Likewise.
12459         * tests/test-areadlinkat.c (main): Likewise.
12460         * tests/test-canonicalize-lgpl.c (main): Likewise.
12461         * tests/test-canonicalize.c (main): Likewise.
12462         * tests/test-dirent-safer.c (main): Likewise.
12463         * tests/test-dirname.c (main): Likewise.
12464         * tests/test-dup2.c (main): Likewise.
12465         * tests/test-fchdir.c (main): Likewise.
12466         * tests/test-fcntl-h.c (main): Likewise.
12467         * tests/test-fcntl-safer.c (main): Likewise.
12468         * tests/test-fdopendir.c (main): Likewise.
12469         * tests/test-fdutimensat.c (main): Likewise.
12470         * tests/test-fflush.c (main): Likewise.
12471         * tests/test-filenamecat.c (main): Likewise.
12472         * tests/test-filevercmp.c (main): Likewise.
12473         * tests/test-fopen-safer.c (main): Likewise.
12474         * tests/test-fopen.c (main): Likewise.
12475         * tests/test-fpending.c (main): Likewise.
12476         * tests/test-fpurge.c (main): Likewise.
12477         * tests/test-freading.c (main): Likewise.
12478         * tests/test-fstatat.c (main): Likewise.
12479         * tests/test-fsync.c (main): Likewise.
12480         * tests/test-futimens.c (main): Likewise.
12481         * tests/test-getndelim2.c (main): Likewise.
12482         * tests/test-gettimeofday.c (main): Likewise.
12483         * tests/test-getopt.c (main): Likewise.
12484         * tests/test-i-ring.c (main): Likewise.
12485         * tests/test-inttypes.c (main): Likewise.
12486         * tests/test-link.c (main): Likewise.
12487         * tests/test-lstat.c (main): Likewise.
12488         * tests/test-math.c (main): Likewise.
12489         * tests/test-md5.c (main): Likewise.
12490         * tests/test-memchr2.c (main): Likewise.
12491         * tests/test-memrchr.c (main): Likewise.
12492         * tests/test-mkdir.c (main): Likewise.
12493         * tests/test-mkdirat.c (main): Likewise.
12494         * tests/test-mkfifoat.c (main): Likewise.
12495         * tests/test-open.c (main): Likewise.
12496         * tests/test-openat-safer.c (main): Likewise.
12497         * tests/test-openat.c (main): Likewise.
12498         * tests/test-quotearg.c (main): Likewise.
12499         * tests/test-rawmemchr.c (main): Likewise.
12500         * tests/test-readlink.c (main): Likewise.
12501         * tests/test-remove.c (main): Likewise.
12502         * tests/test-rename.c (main): Likewise.
12503         * tests/test-renameat.c (main): Likewise.
12504         * tests/test-rmdir.c (main): Likewise.
12505         * tests/test-sha1.c (main): Likewise.
12506         * tests/test-signal.c (main): Likewise.
12507         * tests/test-sigaction.c (main): Likewise.
12508         * tests/test-stat.c (main): Likewise.
12509         * tests/test-stat-time.c (main): Likewise.
12510         * tests/test-stddef.c (main): Likewise.
12511         * tests/test-stdint.c (main): Likewise.
12512         * tests/test-stdio.c (main): Likewise.
12513         * tests/test-stdlib.c (main): Likewise.
12514         * tests/test-strchrnul.c (main): Likewise.
12515         * tests/test-strerror.c (main): Likewise.
12516         * tests/test-string.c (main): Likewise.
12517         * tests/test-strtod.c (main): Likewise.
12518         * tests/test-strverscmp.c (main): Likewise.
12519         * tests/test-symlink.c (main): Likewise.
12520         * tests/test-symlinkat.c (main): Likewise.
12521         * tests/test-sys_stat.c (main): Likewise.
12522         * tests/test-sys_time.c (main): Likewise.
12523         * tests/test-time.c (main): Likewise.
12524         * tests/test-unistd.c (main): Likewise.
12525         * tests/test-unlink.c (main): Likewise.
12526         * tests/test-unlinkat.c (main): Likewise.
12527         * tests/test-utimens.c (main): Likewise.
12528         * tests/test-utimensat.c (main): Likewise.
12529         * tests/test-version-etc.c (main): Likewise.
12530         * tests/test-wchar.c (main): Likewise.
12531         * tests/test-wctype.c (main): Likewise.
12532         * tests/test-xprintf-posix.c (main): Likewise.
12533         * tests/test-posixtm.c (main): Likewise.
12534         (STREQ): Delete unused macro.
12535         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
12536         shadowed variables.
12537         * tests/test-memchr.c (main): Likewise.
12538
12539 2009-10-21  Eric Blake  <ebb9@byu.net>
12540
12541         areadlinkat: avoid failure on older glibc
12542         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
12543         rather than mis-comparing 0 against FUNC_RESULT of char*.
12544
12545 2009-10-21  Bruno Haible  <bruno@clisp.org>
12546
12547         * modules/stpncpy (License): Relicense under LGPLv2+.
12548         Reported by David Lutterkort <lutter@redhat.com>.
12549
12550 2009-10-20  Eric Blake  <ebb9@byu.net>
12551
12552         utimensat: work around Solaris 9 bug
12553         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
12554         has trailing slash bugs.
12555         * tests/test-lutimens.h (test_lutimens): Enhance test.
12556         * tests/test-utimens.h (test_utimens): Likewise.
12557         * doc/posix-functions/utime.texi (utime): Enhance documentation.
12558         * doc/posix-functions/utimes.texi (utimes): Likewise.
12559         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
12560         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
12561         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
12562         * doc/posix-functions/futimens.texi (futimens): Likewise.
12563
12564         fdutimensat: new module
12565         * modules/fdutimensat: New file.
12566         * lib/fdutimensat.c (fdutimensat): Likewise.
12567         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
12568         * MODULES.html.sh (File system functions): Mention module.
12569         * modules/fdutimensat-tests: New test.
12570         * tests/test-fdutimensat.c: Likewise.
12571
12572         doc: regenerate INSTALL
12573         * doc/INSTALL: Reflect recent autoconf update.
12574         * doc/INSTALL.ISO: Likewise.
12575         * doc/INSTALL.UTF-8: Likewise.
12576
12577 2009-10-20  Pádraig Brady  <P@draigBrady.com>
12578
12579         acl: warn if ACL support is not detected
12580         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
12581
12582 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
12583
12584         * lib/nproc.h: Add extern "C" block for C++.
12585
12586 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
12587             Bruno Haible  <bruno@clisp.org>
12588
12589         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
12590         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
12591         * doc/posix-functions/isalpha.texi: Likewise.
12592         * doc/posix-functions/isblank.texi: Likewise.
12593         * doc/posix-functions/iscntrl.texi: Likewise.
12594         * doc/posix-functions/isdigit.texi: Likewise.
12595         * doc/posix-functions/isgraph.texi: Likewise.
12596         * doc/posix-functions/islower.texi: Likewise.
12597         * doc/posix-functions/isprint.texi: Likewise.
12598         * doc/posix-functions/ispunct.texi: Likewise.
12599         * doc/posix-functions/isspace.texi: Likewise.
12600         * doc/posix-functions/isupper.texi: Likewise.
12601         * doc/posix-functions/isxdigit.texi: Likewise.
12602
12603 2009-10-18  Bruno Haible  <bruno@clisp.org>
12604
12605         Tests for module 'isblank'.
12606         * modules/isblank-tests: New file.
12607         * tests/test-isblank.c: New file.
12608
12609         New module 'isblank'.
12610         * lib/isblank.c: New file.
12611         * m4/isblank.m4: New file.
12612         * modules/isblank: New file.
12613         * doc/posix-functions/isblank.texi: Mention the new module.
12614
12615 2009-10-18  Bruno Haible  <bruno@clisp.org>
12616
12617         New module 'ctype'.
12618         * lib/ctype.in.h: New file.
12619         * m4/ctype.m4: New file.
12620         * modules/ctype: New file.
12621         * doc/posix-headers/ctype.texi: Mention the new module.
12622
12623 2009-10-18  Jim Meyering  <meyering@redhat.com>
12624
12625         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
12626         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
12627         right after its initialization, rather than farther down.
12628         Keeping these in close proximity makes it easier to ensure
12629         that each such variable is initialized.  E.g.,
12630
12631             LIB_CLOCK_GETTIME=
12632             AC_SUBST([LIB_CLOCK_GETTIME])
12633
12634         This change also increments these serial numbers.
12635         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
12636         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
12637         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
12638
12639 2009-10-18  Bruno Haible  <bruno@clisp.org>
12640
12641         Don't let environment variables perturb build.
12642         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
12643         (gl_PREREQ_GETHRXTIME): ... not here.
12644
12645 2009-10-18  Bruno Haible  <bruno@clisp.org>
12646
12647         Avoid symlink attack in localcharset module.
12648         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
12649         (O_NOFOLLOW): Define fallback.
12650         (get_charset_aliases): Don't open the file if it is a symbolic link.
12651         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
12652         gl_FCNTL_H.
12653         (gl_FCNTL_H): Require it.
12654         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
12655         * modules/localcharset (Files): Add m4/fcntl_h.m4.
12656         Reported by Fergal Glynn <fglynn@veracode.com>.
12657
12658 2009-10-18  Bruno Haible  <bruno@clisp.org>
12659
12660         Implement nproc for mingw.
12661         * lib/nproc.c: Include <windows.h>
12662         (num_processors): On native Windows platforms, try GetSystemInfo.
12663
12664 2009-10-18  Bruno Haible  <bruno@clisp.org>
12665
12666         Implement nproc for IRIX.
12667         * lib/nproc.c: Include <sys/sysmp.h>.
12668         (num_processors): On IRIX systems, try sysmp.
12669         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
12670
12671 2009-10-18  Bruno Haible  <bruno@clisp.org>
12672
12673         Implement nproc for HP-UX.
12674         * lib/nproc.c: Include <sys/pstat.h>
12675         (num_processors): On HP-UX systems, try pstat_getdynamic.
12676         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
12677         pstat_getdynamic.
12678
12679 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
12680             Bruno Haible  <bruno@clisp.org>
12681
12682         Implement nproc for NetBSD, OpenBSD.
12683         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
12684         (ARRAY_SIZE): New macro.
12685         (num_processors): On BSD systems, try sysctl of HW_NCPU.
12686         * m4/nproc.m4: New file.
12687         * modules/nproc (Files): Add m4/nproc.m4.
12688         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
12689         (Makefile.am): Instead, augment lib_SOURCES.
12690
12691 2009-10-18  Bruno Haible  <bruno@clisp.org>
12692
12693         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
12694         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
12695         sys/param.h.
12696
12697 2009-10-16  Eric Blake  <ebb9@byu.net>
12698
12699         utimensat: new module
12700         * modules/utimensat: New file.
12701         * lib/utimensat.c (utimensat): Likewise.
12702         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
12703         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
12704         so we can work around Linux bugs.
12705         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
12706         * modules/sys_stat (Makefile.am): Substitute them.
12707         * lib/sys_stat.in.h (utimensat): Declare it.
12708         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
12709         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
12710         * modules/utimensat-tests: New test.
12711         * tests/test-utimensat.c: Likewise.
12712
12713         utimens: let lutimens work on non-symlinks
12714         * lib/utimens.c (lutimens): Fall back to utimens rather than
12715         failing with ENOSYS, when file is not a symlink.
12716         (utimens): Reduce redirection.
12717         * tests/test-lutimens.h (test_lutimens): Update test to cover
12718         non-symlinks.
12719         * tests/test-utimens.h (test_utimens): Update test to cover
12720         symlinks.
12721         * tests/test-utimens.c (main): Update caller.
12722
12723         utimens: cache whether utimensat syscall works
12724         * lib/utimens.c (utimensat_works_really): New cache variable.
12725         (fdutimens, lutimens): Use it to avoid failing syscall.
12726
12727         test-stat-time, test-utimens: improve portability
12728         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
12729         ext4 on alpha, and for cygwin.
12730         * tests/test-utimens-common.h: New file.
12731         (nap): Factor delays into single function.
12732         * tests/test-lutimens.h (test_lutimens): Use new header.
12733         * tests/test-futimens.h (test_futimens): Likewise.
12734         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
12735         timestamps to occur from same machine, as was done previously for
12736         test_utimens.
12737         * modules/utimens-tests (Files): Ship new file.
12738         * modules/futimens-tests (Files): Likewise.
12739         Reported in part by Jim Meyering.
12740
12741         sys_stat: sort replacement declarations
12742         * lib/sys_stat.in.h: Sort declarations.
12743         * lib/futimens.c (futimens): Fix typo.
12744
12745 2009-10-15  Jim Meyering  <meyering@redhat.com>
12746
12747         don't let environment settings perturb build
12748         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
12749         could cause a configure-time and/or build-time malfunction.
12750         Typically, a configure-time function-in-library test is performed
12751         via code like this:
12752
12753           LIB_VAR=
12754           AC_SUBST([LIB_VAR])
12755           prefix_saved_LIBS=$LIBS
12756             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
12757                        [test "$ac_cv_search_FUNC" = "none required" ||
12758                         LIB_VAR=$ac_cv_search_FUNC])
12759           LIBS=$prefix_saved_LIBS
12760
12761         However, in each of the files affected by this change, the LIB_VAR=
12762         initialization was omitted.  Thus, when set in the environment, its
12763         value would propagate into generated Makefiles when FUNC is not found
12764         in LIB_NAME.
12765         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
12766         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
12767         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
12768
12769 2009-10-14  Eric Blake  <ebb9@byu.net>
12770
12771         fchdir: avoid infinite recursion in mingw
12772         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
12773         recursing.
12774
12775         test-stat-time: port to mingw
12776         * tests/test-stat-time.c (force_unlink): Return a value.
12777         (test_ctime) [W32]: Fix compilation error.
12778         (nap): Don't call usleep with too large an argument.  Use
12779         force_unlink.
12780         * doc/pastposix-functions/usleep.texi (usleep): Document the
12781         portability issue.
12782
12783 2009-10-13  Jim Meyering  <meyering@redhat.com>
12784
12785         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
12786         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
12787         * modules/pipe-filter-ii: Likewise.
12788         * modules/sys_socket-tests: Likewise.
12789         * modules/tsearch-tests: Likewise.
12790         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
12791         (check): Depend on it.
12792
12793 2009-10-12  Eric Blake  <ebb9@byu.net>
12794
12795         utimens-tests: port to NFS file systems
12796         * tests/test-utimens.h (test_utimens): Refactor utimecmp
12797         comparisons to avoid spurious failures from timestamp drift
12798         between NFS machines.
12799
12800 2009-10-12  Eric Blake  <ebb9@byu.net>
12801
12802         stat-time-tests: minor cleanups
12803         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
12804         * tests/test-stat-time.c (nap): Separate assignment from call.
12805         Suggested by Paolo Bonzini and Bruno Haible.
12806
12807         sys_stat: guarantee struct timespec
12808         * lib/sys_stat.in.h (includes): Always include <time.h>
12809         * modules/sys_stat (Depends-on): Add time.
12810         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
12811         mode_t permission values.
12812         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
12813         get at subsecond timestamps.
12814
12815 2009-10-10  Eric Blake  <ebb9@byu.net>
12816
12817         futimens: new module
12818         * modules/futimens: New file.
12819         * lib/futimens.c (futimens): Likewise.
12820         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
12821         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
12822         we can work around Linux bugs.
12823         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
12824         * modules/sys_stat (Makefile.am): Substitute them.
12825         * lib/sys_stat.in.h (futimens): Declare it.
12826         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
12827         * doc/posix-functions/futimens.texi (futimens): Likewise.
12828         * modules/futimens-tests: New test.
12829         * tests/test-futimens.c: Likewise.
12830
12831         utimens: introduce fdutimens
12832         * lib/utimens.h (fdutimens): New prototype.
12833         * lib/utimens.c (gl_futimens): Move guts...
12834         (fdutimens): ...to new interface.
12835         * tests/test-utimens.c (do_fdutimens): Use it.
12836
12837         utimens: add UTIME_NOW and UTIME_OMIT support
12838         * lib/utimens.c (validate_timespec, update_timespec): New helper
12839         functions.
12840         (gl_futimens, lutimens): Use them.
12841         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
12842         stdbool, sys_stat.
12843         (Link): Mention resulting library dependency.
12844         * modules/utimecmp (Link): Likewise.
12845         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
12846         (Makefile.am): Pick up library dependency.
12847         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
12848         definition.
12849         * tests/test-sys_stat.c: Test the definitions.
12850         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
12851         * NEWS: Document library dependency.
12852
12853         utimecmp: support symlink timestamps
12854         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
12855         hashing when possible.  Use pathconf when available.
12856         (SYSCALL_RESOLUTION): Recognize tighter resolution.
12857         * modules/utimecmp (Depends-on): Add lstat.
12858
12859         utimens: add lutimens interface
12860         * lib/utimens.c (lutimens): New function.
12861         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
12862         * lib/utimens.h (lutimens): Declare new interface.
12863         * tests/test-utimens.c (main): Enhance test.
12864         * tests/test-lutimens.h (test_lutimens): New file.
12865         * modules/utimens-tests (Files): Distribute it.
12866         (Depends-on): Add symlink.
12867         (configure.ac): Check for usleep.
12868
12869         utimens: validate futimens usage
12870         * lib/utimens.c (gl_futimens): Require valid fd up front, using
12871         fewer syscalls on failure later on.  Avoid compiler warning on
12872         mingw.
12873         * modules/utimens (Depends-on): Add dup2.
12874
12875         utimens: add test
12876         * modules/utimens-tests: New test.
12877         * tests/test-utimens.h: New file.
12878         * tests/test-futimens.h: Likewise.
12879         * tests/test-utimens.c: Likewise.
12880
12881         doc: mention timestamp portability issues
12882         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
12883         instead.
12884         * doc/posix-functions/utime.texi (utime): Likewise.
12885         * doc/posix-functions/utimes.texi (utimes): Likewise.
12886         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
12887         instead.
12888         * doc/posix-functions/futimens.texi (futimens): Mention utimens
12889         module.
12890         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
12891         Mention weakness with symlink timestamps.
12892         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
12893         to utimensat/futimens instead.
12894         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
12895
12896         test-dup2: enhance test
12897         * tests/test-dup2.c (main): Also check AT_FDCWD.
12898
12899         test-stat-time: avoid more spurious failures
12900         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
12901         xfs; and avoid race if the two timestamps cross quantization edge.
12902
12903         relocatable: prefer 'file system' over 'filesystem'
12904         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
12905         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
12906         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
12907         * doc/relocatable.texi (Enabling Relocatability): Likewise.
12908         * lib/relocatable.c (compute_curr_prefix): Likewise.
12909
12910 2009-10-10  Jim Meyering  <meyering@redhat.com>
12911
12912         stat-time-tests: check for the usleep function
12913         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
12914
12915 2009-10-10  Bruno Haible  <bruno@clisp.org>
12916
12917         * modules/xnanosleep: Put the Link section after the Include section.
12918
12919 2009-10-09  Eric Blake  <ebb9@byu.net>
12920
12921         dup2: work around FreeBSD 6.1 bug
12922         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
12923         * doc/posix-functions/dup2.texi (dup2): Document it.
12924         Reported by Nelson H. F. Beebe and Jim Meyering.
12925
12926         test-stat-time: port to buggy NFS clients
12927         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
12928         (test_ctime): Also skip test if mtime and ctime are skewed.
12929
12930         maint: prefer 'file system' over 'filesystem'
12931         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
12932         * doc/posix-functions/lstat.texi (lstat): Likewise.
12933         * lib/file-has-acl.c (file_has_acl): Likewise.
12934         * lib/fwriteerror.c [TEST]: Likewise.
12935         * tests/test-areadlink.h (test_areadlink): Likewise.
12936         * tests/test-areadlinkat-with-size.c (main): Likewise.
12937         * tests/test-areadlinkat.c (main): Likewise.
12938         * tests/test-canonicalize-lgpl.c (main): Likewise.
12939         * tests/test-canonicalize.c (main): Likewise.
12940         * tests/test-fstatat.c (main): Likewise.
12941         * tests/test-linkat.c (main): Likewise.
12942         * tests/test-lstat.h (test_lstat_func): Likewise.
12943         * tests/test-mkdir.h (test_mkdir): Likewise.
12944         * tests/test-readlink.h (test_readlink): Likewise.
12945         * tests/test-remove.c (main): Likewise.
12946         * tests/test-rename.h (test_rename): Likewise.
12947         * tests/test-renameat.c (main): Likewise.
12948         * tests/test-rmdir.h (test_rmdir_func): Likewise.
12949         * tests/test-symlink.h (test_symlink): Likewise.
12950         * tests/test-symlinkat.c (main): Likewise.
12951         * tests/test-unlink.h (test_unlink_func): Likewise.
12952         * tests/test-unlinkat.c (main): Likewise.
12953
12954         maint: make realtime library usage explicit
12955         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
12956         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
12957         * modules/settime (Link): Likewise.
12958         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
12959
12960         test-stat-time: speed up execution
12961         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
12962         warning on mingw.
12963         (nap): New helper function.
12964         (prepare_test): Use it to reduce sleep time.
12965         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
12966         execution.
12967         * modules/stat-time-tests (configure.ac): Check for usleep.
12968
12969 2009-10-09  Jim Meyering  <meyering@redhat.com>
12970
12971         selinux-h: always use getfilecon wrappers
12972         * lib/getfilecon.c: New file.
12973         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
12974         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
12975         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
12976         (fgetfilecon): Provide a stub.
12977         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
12978         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
12979         file unconditionally.
12980         When <selinux/selinux.h> is found, arrange to use wrappers.
12981         * modules/selinux-h (Files): Add getfilecon.c.
12982         (Makefile.am): Substitute include-next-related bits
12983         into the now-always-generated selinux/selinux.h file.
12984         * doc/glibc-functions/lgetfilecon.texi: New file.
12985         * doc/glibc-functions/fgetfilecon.texi: New file.
12986         * doc/glibc-functions/getfilecon.texi: New file.
12987         * doc/glibc-functions/getfilecon-desc.texi: New file.
12988         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
12989         which to pull in the new files.
12990         * MODULES.html.sh (Misc): Add selinux-h.
12991
12992 2009-10-08  Jim Meyering  <meyering@redhat.com>
12993
12994         unistd: fix comment typo
12995         * lib/unistd.in.h (euidaccess): Fix a comment typo.
12996
12997 2009-10-08  Eric Blake  <ebb9@byu.net>
12998
12999         areadlink: use SIZE_MAX consistently
13000         * modules/areadlink (Depends-on): Add stdint.
13001         * modules/areadlink-with-size (Depends-on): Likewise.
13002         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
13003         gives NULL; drop sys/types, since unistd gives size_t; and add
13004         stdint for SIZE_MAX.
13005         (SIZE_MAX): Rely on headers.
13006         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
13007         and add stdint.
13008         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
13009         (SIZE_MAX): Likewise.
13010         (INITIAL_BUF_SIZE): Turn into enum.
13011         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
13012
13013 2009-10-08  Jim Meyering  <meyering@redhat.com>
13014
13015         areadlinkat: avoid compilation failure
13016         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
13017         Fix typo in comment.
13018
13019 2009-10-07  Eric Blake  <ebb9@byu.net>
13020
13021         areadlinkat-with-size: new module
13022         * modules/areadlinkat-with-size: New module.
13023         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
13024         * lib/areadlink.h (areadlinkat): Declare it.
13025         * MODULES.html.sh (File system functions): Mention it.
13026         * modules/areadlinkat-with-size-tests: New test.
13027         * tests/test-areadlinkat-with-size.c: New file.
13028
13029         xreadlinkat: new module
13030         * modules/xreadlinkat: New module.
13031         * lib/xreadlinkat.c (xreadlinkat): New file.
13032         * lib/xreadlink.h (xreadlinkat): Declare it.
13033         * MODULES.html.sh (File system functions): Mention it.
13034
13035         areadlinkat: new module
13036         * lib/at-func.c (FUNC_FAIL): New define.
13037         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
13038         * modules/areadlinkat: New module.
13039         * lib/linkat.c (areadlinkat): Move...
13040         * lib/areadlinkat.c (areadlinkat): ...to new file.
13041         * lib/areadlink.h (areadlinkat): Declare it.
13042         * modules/linkat (Depends-on): Add areadlinkat.
13043         * MODULES.html.sh (File system functions): Mention it.
13044         * modules/areadlinkat-tests: New test.
13045         * tests/test-areadlinkat.c: New file.
13046
13047         areadlink, areadlink-with-size: add tests
13048         * modules/areadlink-tests: New test.
13049         * modules/areadlink-with-size-tests: Likewise.
13050         * tests/test-areadlink.h: New file.
13051         * tests/test-areadlink.c: Likewise.
13052         * tests/test-areadlink-with-size.c: Likewise.
13053
13054         maint: minor cleanups
13055         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
13056         _UNUSED_PARAMETER_ instead.
13057         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
13058         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
13059         * modules/linkat-tests (Files): Distribute test-link.h.
13060
13061         openat, utimens: whitespace cleanup
13062         * lib/openat.c: Prefer space throughout, rather than mix of 8
13063         spaces vs. tabs.
13064         * lib/at-func.c: Likewise.
13065         * lib/utimens.c: Likewise.
13066
13067         openat: avoid using wrong fd
13068         * lib/openat.c (openat_permissive): Reject user's fd if saving the
13069         working directory chooses same fd.
13070         * lib/at-func.c (AT_FUNC_NAME): Likewise.
13071
13072         mkdir, mkdirat: fix cygwin 1.5.x bug
13073         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
13074         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
13075         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
13076         bug.
13077         (gl_PREREQ_MKDIR): Delete unused macro.
13078         * modules/mkdir (Files): Track file rename.
13079         (configure.ac): Update macro name.
13080         * modules/openat (Depends-on): Add mkdir.
13081         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
13082
13083         mkdir, mkdirat: add tests
13084         * modules/mkdir-tests: New test.
13085         * tests/test-mkdir.h: New file.
13086         * tests/test-mkdir.c: Likewise.
13087         * tests/test-mkdirat.c: Likewise.
13088         * modules/openat-tests (Files): Add new files.
13089         (Makefile.am): Run new test.
13090
13091 2009-10-06  Eric Blake  <ebb9@byu.net>
13092
13093         doc: tweak *at function documentation
13094         * doc/posix-functions/faccessat.texi (faccessat): Mention
13095         known issue with replacement.
13096         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
13097         * doc/posix-functions/linkat.texi (linkat): Likewise.
13098         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
13099         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
13100         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
13101         * doc/posix-functions/renameat.texi (renameat): Likewise.
13102         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
13103
13104         openat: fix GNU/Hurd bug in unlinkat
13105         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
13106         broken.
13107         * doc/posix-functions/unlink.texi (unlink): Document this.
13108         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
13109
13110         fdopendir: fix GNU/Hurd bug
13111         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
13112         allowing non-directory fds.
13113         * lib/fdopendir.c (rpl_fdopendir): Work around it.
13114         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
13115         * modules/dirent (Makefile.am): Substitute it.
13116         * lib/dirent.in.h (fdopendir): Declare replacement.
13117         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
13118         * tests/test-fdopendir.c (main): Test something other than
13119         /dev/null, since on Hurd that behaves like a directory.
13120
13121         test-symlink: port to GNU/Hurd
13122         * tests/test-symlink.h (test_symlink): Relax expected errno.
13123
13124         doc: tweak more cygwin information
13125         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
13126         now compatible with glibc.
13127         * doc/posix-functions/getopt.texi (getopt): Likewise.
13128
13129         getopt-gnu: add another test
13130         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
13131         guarantee behavior relied on by m4.
13132         * tests/test-getopt.c (main): Use it.
13133         * modules/getopt-posix-tests (Depends-on): Add setenv.
13134         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
13135
13136         getopt: fix compilation on darwin
13137         * lib/getopt.in.h (includes): Leave breadcrumbs during system
13138         include.
13139         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
13140         Reported by Ludovic Courtès.
13141
13142 2009-10-06  Bruno Haible  <bruno@clisp.org>
13143
13144         * modules/size_max (Description): Discourage its use.
13145         Reported by Simon Josefsson.
13146
13147 2009-10-06  Jim Meyering  <meyering@redhat.com>
13148
13149         linkat: avoid compilation failure
13150         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
13151
13152 2009-10-05  Eric Blake  <ebb9@byu.net>
13153
13154         linkat: support Linux 2.6.17
13155         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
13156         linkat on Linux, but allow cache variable override.
13157         * lib/linkat.c (rpl_linkat): Define override.
13158         * modules/linkat (Depends-on): Add symlinkat.
13159         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
13160         * modules/unistd (Makefile.am): Substitute it.
13161         * lib/unistd.in.h (linkat): Declare replacement.
13162         Reported by Pádraig Brady.
13163
13164         quotearg: port test to systems with C.UTF-8 locale
13165         * tests/test-quotearg.c (struct result_strings): Add another
13166         member, differentiating between C.ASCII and C.UTF-8 handling.
13167         (compare_strings): Add parameter.
13168         (main): Adjust all callers.
13169
13170         getopt: avoid clash with FreeBSD _getopt_internal
13171         * lib/getopt.in.h (_getopt_internal): Override the name.
13172         * lib/getopt_int.h (includes): Pick up any overrides.
13173         Reported by Reuben Thomas.
13174
13175         hash: allow C89 compilation
13176         * lib/hash.c (check_tuning): Move declaration before statement.
13177         Reported by Reuben Thomas.
13178
13179 2009-10-05  Karl Berry  <karl@gnu.org>
13180
13181         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
13182
13183 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
13184             Bruno Haible  <bruno@clisp.org>
13185
13186         * lib/uname.c (uname): Use a table-driven algorithm to compute
13187         Windows NT versions.
13188
13189 2009-10-04  Bruno Haible  <bruno@clisp.org>
13190
13191         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
13192         program_invocation_short_name.
13193         * modules/progname (configure.ac): Test for presence of
13194         program_invocation_short_name.
13195         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
13196
13197 2009-10-04  Bruno Haible  <bruno@clisp.org>
13198
13199         * lib/progname.c (set_program_name): Fix comment.
13200         Reported by Jim Meyering.
13201
13202 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
13203             Bruno Haible  <bruno@clisp.org>
13204
13205         * lib/uname.c: Include <string.h>.
13206         (uname): Do only one call to GetVersionEx in the common case.
13207
13208 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
13209             Bruno Haible  <bruno@clisp.org>
13210
13211         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
13212         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
13213         (uname): Add support for Windows CE and various non-x86 CPU types.
13214
13215 2009-10-03  Bruno Haible  <bruno@clisp.org>
13216
13217         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
13218         invocation to tests/configure.ac.
13219         Reported by Ian Beckwith <ianb@erislabs.net>.
13220
13221 2009-10-02  Eric Blake  <ebb9@byu.net>
13222
13223         fchdir: avoid compiler warning
13224         * lib/fchdir.c (canonicalize_file_name)
13225         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
13226
13227         test-open: support mingw errno values
13228         * tests/test-open.h (test_open): Relax test.
13229         * tests/test-fopen.h (test_fopen): Likewise.
13230         * tests/test-openat-safer.c (main): Likewise.
13231
13232         open: fix opening directory on mingw
13233         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
13234
13235         test-open: on GNU/Hurd, /dev/null is a directory
13236         * tests/test-fopen.h (main): Rename...
13237         (test_fopen): ...to this.  Use a guaranteed non-directory when
13238         confirming open behavior on trailing slash.
13239         * tests/test-openat-safer.c (main): Likewise.
13240         * tests/test-open.h (main): Likewise....
13241         (test_open): ...to this.
13242         * tests/test-fopen.c (main): Adjust caller.
13243         * tests/test-fopen-safer.c (main): Likewise.
13244         * tests/test-open.c (main): Likewise.
13245         * tests/test-fcntl-safer.c (main): Likewise.
13246         Reported by Samuel Thibault.
13247
13248         rename, fchdir: don't ignore chdir failure
13249         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
13250         * lib/rename.c (rpl_rename) [W32]: Likewise.
13251         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
13252         an empty destination directory if source cannot be renamed,
13253         although there is still possibility for failure.
13254         * doc/posix-functions/rename.texi (rename): Document the race.
13255         Reported by Jim Meyering.
13256
13257         maint: cleanup whitespace in recent commits
13258         * lib/rename.c (rpl_rename): Remove tabs.
13259         * tests/test-link.h (test_link): Likewise.
13260         * lib/fchdir.c (get_name): Likewise.
13261         Reported by Jim Meyering.
13262
13263 2009-10-02  Ben Pfaff  <blp@gnu.org>
13264
13265         relocatable-prog-wrapper: Add missing dependency on
13266         double-slash-root.
13267         * modules/relocatable-prog-wrapper: Add dependency.
13268         Reported by Ian Beckwith <ianb@erislabs.net>.
13269
13270 2009-10-02  Eric Blake  <ebb9@byu.net>
13271
13272         renameat: fix Solaris bugs
13273         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
13274         needed fixing.
13275         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
13276         * modules/stdio (Makefile.am): Substitute it.
13277         * lib/stdio.in.h (renameat): Declare replacement.
13278         * lib/renameat.c (rpl_renameat): Implement fix.
13279
13280         renameat: new module
13281         * modules/renameat: New file.
13282         * lib/renameat.c (renameat): Likewise.
13283         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
13284         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
13285         * modules/stdio (Makefile.am): Substitute them.
13286         * lib/stdio.in.h (renameat): Declare it.
13287         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
13288         * doc/posix-functions/renameat.texi (renameat): Likewise.
13289         * modules/renameat-tests: New test.
13290         * tests/test-renameat.c: Likewise.
13291
13292         rename: fix mingw bugs
13293         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
13294         directory overwrite bugs.
13295
13296         rename: fix another cygwin 1.5 bug
13297         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
13298         checks.
13299         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
13300         unnecessary cygwin workarounds.  Also work around bug with moving
13301         full directory onto an empty one.
13302         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
13303
13304         rename-dest-slash: merge into rename module
13305         * modules/rename-dest-slash (Status): Mark obsolete.
13306         (Depends-on): Add rename.
13307         (Files): Let rename do it all.
13308         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
13309         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
13310         * m4/rename-dest-slash.m4: ...so this file can be deleted.
13311         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
13312         * lib/rename.c (rpl_rename): Update comments.
13313
13314         rename: fix cygwin 1.5.x bugs
13315         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
13316         * lib/rename.c (rpl_rename): Work around them.
13317         * modules/rename (Depends-on): Add same-inode.
13318
13319         rename: fix Solaris 10 bug
13320         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
13321         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
13322         was the only bug.
13323
13324         rename: fix Solaris 9 bug
13325         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
13326         on non-directory.  Avoid calling exit.
13327         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
13328         strdup.
13329         * modules/rename-tests (Depends-on): Drop lstat.
13330         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
13331         (gl_PREREQ_RENAME): Delete unused macro.
13332
13333         rename-dest-slash: fix NetBSD bug
13334         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
13335         links.
13336         * modules/rename-dest-slash (Depends-on): Add same-inode.
13337
13338         rename-tests: new test, exposes several platform bugs
13339         * modules/rename-tests: New file.
13340         * tests/test-rename.h: Likewise.
13341         * tests/test-rename.c: Likewise.
13342         * doc/posix-functions/rename.texi (rename): Improve documentation,
13343         including bugs that will eventually be fixed in gnulib.
13344
13345 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
13346
13347         * lib/uname.c: Include <stdlib.h>
13348         (uname): Assume version info is available.
13349
13350 2009-10-02  Jim Meyering  <meyering@redhat.com>
13351
13352         gnu-web-doc-update: correct --help output
13353         * build-aux/gnu-web-doc-update: Make --help output relevant.
13354
13355         gnu-web-doc-update: add standard options
13356         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
13357
13358         gnu-web-doc-update: New module.
13359         Use this script to automatically update the on-line web documentation
13360         for your GNU project at http://www.gnu.org/software/$pkg/manual/
13361         * modules/gnu-web-doc-update: New file, from coreutils.
13362         * build-aux/gnu-web-doc-update: New script.
13363
13364 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
13365
13366         link: LoadLibrary is not needed.
13367         * lib/link.c: Use GetModuleHandle.
13368
13369 2009-10-01  Eric Blake  <ebb9@byu.net>
13370
13371         getopt: bump serial number
13372         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
13373         change.
13374
13375         tests: tighten link, rmdir, and remove tests
13376         * tests/test-link.h (includes): No need to use <config.h> here.
13377         Clean up if directory hard link was created, otherwise test for
13378         trailing '.'.
13379         * tests/test-linkat.c (main): Simplify.
13380         * tests/test-remove.c (main): Enhance test for trailing '.'.
13381         * tests/test-rmdir.h (test_rmdir_func): Likewise.
13382
13383 2009-10-01  Jim Meyering  <meyering@redhat.com>
13384
13385         maint.mk: requiring "make major" was annoying, for a "minor" release.
13386         What is intended is "stable", to contrast with alpha and beta,
13387         so require "make stable", not "make major".
13388         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
13389         (get_tool_versions): Likewise.
13390         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
13391
13392 2009-09-30  Ben Pfaff  <blp@gnu.org>
13393
13394         Fix broken build of replacement for Windows tmpfile().
13395         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
13396         flags argument added along with the 'mkostemp' module.
13397
13398 2009-09-28  Bruno Haible  <bruno@clisp.org>
13399
13400         Avoid identifier clash with POSIX function 'remove' defined as a macro.
13401         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
13402         to 'remove_elt'.
13403         (gl_list_remove): Update.
13404         * lib/gl_list.c (gl_list_remove): Update.
13405         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
13406         to 'remove_elt'.
13407         (gl_oset_remove): Update.
13408         * lib/gl_list.c (gl_oset_remove): Update.
13409         Reported by Eric Blake.
13410
13411 2009-09-28  Eric Blake  <ebb9@byu.net>
13412
13413         doc: mention yet more cygwin 1.7 status
13414         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
13415         cygwin.
13416         * doc/glibc-functions/execvpe.texi (execvpe): New file.
13417         * doc/gnulib.texi (Glibc unistd.h): Mention it.
13418
13419         argp: fix test failure
13420         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
13421         that are not upper-case.  Pass correct range to tolower.
13422
13423 2009-09-27  Jim Meyering  <meyering@redhat.com>
13424
13425         test-yesno: work around sparc-dash here-document infelicity
13426         Without this change, the literal \177 byte in a here document
13427         would make dash 0.5.5.1-3 access uninitialized memory.
13428         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
13429         Instead, use a marker, "@", and filter through tr to create the desired
13430         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
13431
13432 2009-09-27  Bruno Haible  <bruno@clisp.org>
13433
13434         Disable untested support for new flavours of ACLs on AIX.
13435         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
13436         progress.
13437         * lib/set-mode-acl.c (qset_acl): Likewise.
13438
13439 2008-12-07  Bruno Haible  <bruno@clisp.org>
13440
13441         Add support for new flavours of ACLs on AIX. (Untested.)
13442         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
13443         (file_has_acl): Add support for newer AIX.
13444         * lib/set-mode-acl.c (qset_acl): Likewise.
13445         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
13446         Rainer Tammer <tammer@tammer.net>.
13447
13448 2009-09-26  Eric Blake  <ebb9@byu.net>
13449
13450         argp: fix compilation of getopt
13451         * lib/getopt.in.h (includes): Use different guard than glibc.
13452         Reported by Sergey Poznyakoff.
13453
13454         doc: mention more cygwin 1.7 status
13455         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
13456         bug.
13457         * doc/posix-functions/execl.texi (execl): Likewise.
13458         * doc/posix-functions/execle.texi (execle): Likewise.
13459         * doc/posix-functions/execlp.texi (execlp): Likewise.
13460         * doc/posix-functions/execv.texi (execv): Likewise.
13461         * doc/posix-functions/execve.texi (execve): Likewise.
13462         * doc/posix-functions/execvp.texi (execvp): Likewise.
13463         * doc/glibc-functions/canonicalize_file_name.texi
13464         (canonicalize_file_name): Cygwin 1.7 now provides this.
13465         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
13466         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
13467         on AT_SYMLINK_NOFOLLOW.
13468
13469 2009-09-24  Eric Blake  <ebb9@byu.net>
13470
13471         test-linkat: make test more robust
13472         * tests/test-linkat.c (main): Avoid collision with EEXIST.
13473
13474         getopt: fix inclusion guards for cygwin
13475         * modules/getopt-posix (Depends-on): Add include-next.
13476         (Makefile.am): Substitute more items in replacement header.
13477         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
13478         <getopt.h>.
13479         * lib/getopt.in.h (includes): Use split inclusion guard, and
13480         prefer <getopt.h> over include <unistd.h> when one is present.
13481         (option): Also override name of 'struct option'.
13482
13483         same-inode: revert prior change; it is not yet ready
13484         * NEWS: Undo mention of this change.
13485         * lib/same-inode.h (same-inode.h): Undo tri-state change.
13486         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
13487         * lib/cycle-check.c (cycle_check): Likewise.
13488         * lib/same.c (same_name): Likewise.
13489         * lib/at-func2.c (at_func2): Likewise.
13490
13491 2009-09-23  Eric Blake  <ebb9@byu.net>
13492
13493         linkat: new module
13494         * modules/linkat: New file.
13495         * lib/at-func2.c (at_func2): Likewise.
13496         * lib/linkat.c (linkat): Likewise.
13497         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
13498         * lib/openat-priv.h (at_func2): Add declaration.
13499         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
13500         * modules/unistd (Makefile.am): Substitute them.
13501         * lib/unistd.in.h (linkat): Declare it.
13502         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
13503         * doc/posix-functions/linkat.texi (linkat): Likewise.
13504         * doc/posix-functions/link.texi (link): Tweak wording.
13505         * tests/test-link.c (main): Move guts...
13506         * tests/test-link.h (test_link): ...into new file.
13507         * modules/linkat-tests: New test.
13508         * tests/test-linkat.c: Likewise.
13509         * modules/link-tests (Files): Ship new file.
13510         (Depends-on): Add stdbool.
13511
13512         dirname: add library-safe mdir_name
13513         * lib/dirname.h (mdir_name): New prototype.
13514         * lib/dirname.c (dir_name): Move guts...
13515         (mdir_name): ...to new function that avoids xalloc_die.
13516
13517         fchdir: another mingw fix
13518         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
13519         * lib/fchdir.c (get_name): New helper method; skips canonicalize
13520         on mingw (where it has not yet been ported), and make it optional
13521         elsewhere.
13522         (_gl_register_fd): Use it.
13523
13524         same-inode: make SAME_INODE tri-state, to port to mingw
13525         * NEWS: Mention this change.
13526         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
13527         st_ino always being 0.
13528         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
13529         * lib/cycle-check.c (cycle_check): Likewise.
13530         * lib/same.c (same_name): Likewise.
13531
13532         lstat: avoid mingw compilation error
13533         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
13534         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
13535         lstat ourselves.
13536         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
13537         was adequate.
13538         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
13539         the checks for lstat.
13540         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
13541
13542         link: fix test failure on Solaris 9
13543         * lib/link.c (rpl_link): Don't assume link will catch bogus
13544         trailing slash on source.
13545
13546         test-symlinkat: enhance test
13547         * tests/test-readlink.c (main): Move guts...
13548         * tests/test-readlink.h (test_readlink): ...into new file.
13549         * tests/test-symlink.c (main): Move guts...
13550         * tests/test-symlink.h (test_symlink): ...into new file.
13551         * tests/test-symlinkat.c (main): Use new files for further
13552         coverage.
13553         (do_symlink, do_readlink): New helper functions.
13554         * modules/symlink-tests (Files): Ship new file.
13555         (Depends-on): Add stdbool.
13556         * modules/readlink-tests (Files): Ship new file.
13557         (Depends-on): Add stdbool.
13558         * modules/symlinkat-tests (Files): Use new files.
13559
13560 2009-09-23  Eric Blake  <ebb9@byu.net>
13561
13562         readlink: document portability issue with symlink length
13563         * doc/posix-functions/lstat.texi (lstat): Mention that some file
13564         systems have bogus st_size on symlinks, and mention the
13565         areadlink-with-size module.
13566         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
13567         * doc/posix-functions/readlink.texi (readlink): Mention the
13568         areadlink module, and ERANGE failure.
13569         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
13570         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
13571
13572         readlink: fix Solaris 9 bug with trailing slash
13573         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
13574         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
13575         * doc/posix-functions/readlink.texi (readlink): Document this.
13576         * modules/readlink-tests: New test.
13577         * tests/test-readlink.c: Likewise.
13578
13579         readlink: fix cygwin 1.5.x bug with return type
13580         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
13581         * lib/unistd.in.h (readlink): Use ssize_t.
13582         * lib/readlink.c (readlink): Likewise.
13583         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
13584         * modules/unistd (Makefile.am): Substitute it.
13585         * lib/unistd.in.h (readlink): Declare replacement.
13586         * doc/posix-functions/readlink.texi (readlink): Document this.
13587
13588         symlink: use throughout gnulib
13589         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
13590         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
13591         symlink is not used.
13592         * modules/symlinkat (Depends-on): Add symlink.
13593         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
13594         * modules/canonicalize-tests (Depends-on): Likewise.
13595         * modules/lstat-tests (Depends-on): Likewise.
13596         * modules/openat-tests (Depends-on): Likewise.
13597         * modules/remove-tests (Depends-on): Likewise.
13598         * modules/rmdir-tests (Depends-on): Likewise.
13599         * modules/unlink-tests (Depends-on): Likewise.
13600         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
13601         * tests/test-canonicalize.c (symlink): Likewise.
13602         * tests/test-fstatat.c (symlink): Likewise.
13603         * tests/test-lstat.c (symlink): Likewise.
13604         * tests/test-remove.c (symlink): Likewise.
13605         * tests/test-rmdir.c (symlink): Likewise.
13606         * tests/test-unlink.c (symlink): Likewise.
13607         * tests/test-unlinkat.c (symlink): Likewise.
13608
13609         symlink: new module, for Solaris 9 bug
13610         * modules/symlink: New file.
13611         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
13612         * lib/symlink.c: Likewise.
13613         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
13614         * modules/unistd (Makefile.am): Substitute them.
13615         * lib/unistd.in.h (symlink): Declare replacement.
13616         * MODULES.html.sh (File system functions): Mention it.
13617         * doc/posix-functions/symlink.texi (symlink): Likewise.
13618         * modules/symlink-tests: New test.
13619         * tests/test-symlink.c: Likewise.
13620
13621 2009-09-23  Bruno Haible  <bruno@clisp.org>
13622
13623         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
13624         when needed.
13625         Test case: gnulib-tool --import --with-tests atexit inttypes.
13626         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
13627
13628 2009-09-23  Bruno Haible  <bruno@clisp.org>
13629
13630         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
13631         subcommand, not in a subshell.
13632
13633 2009-09-22  Eric Blake  <ebb9@byu.net>
13634
13635         unistd: sort replacement declarations
13636         * lib/unistd.in.h: Sort declarations.
13637
13638         open, openat: minor optimization
13639         * lib/open.c (open): If open succeeded, len is non-zero.
13640         * lib/openat.c (rpl_openat): Likewise.
13641
13642         link-follow: ensure correct result
13643         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
13644         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
13645         distinguish between possible failures.
13646
13647 2009-09-21  Eric Blake  <ebb9@byu.net>
13648
13649         fts: avoid compiler warning
13650         * lib/fts.c (dirent_inode_sort_may_be_useful)
13651         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
13652
13653 2009-09-19  Bruno Haible  <bruno@clisp.org>
13654
13655         * lib/progreloc.c (canonicalize_file_name): New declaration.
13656
13657 2009-09-19  Eric Blake  <ebb9@byu.net>
13658
13659         link: fix quoting
13660         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
13661
13662         openat: fix openat bugs on Solaris 9
13663         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
13664         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
13665         * modules/openat (Depends-on): Add open.
13666         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
13667         * modules/fcntl-h (Makefile.am): Substitute it.
13668         * lib/fcntl.in.h (openat): Declare replacement.
13669         * doc/posix-functions/openat.texi (openat): Document this.
13670
13671         openat: move fstatat and unlinkat into correct files
13672         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
13673         compiled.
13674         * lib/openat.c (fstatat, unlinkat): Move...
13675         * lib/fstatat.c (fstatat): ...into correct files.
13676         * lib/unlinkat.c (unlinkat): Likewise.
13677
13678         openat: fix unlinkat bugs on Solaris 9
13679         * lib/unlinkat.c (unlinkat): New file.
13680         * modules/openat (Depends-on): Add unlink.
13681         (Files): Distribute it.
13682         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
13683         trailing slash behavior is broken.
13684         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
13685         * modules/unistd (Makefile.am): Substitute it.
13686         * lib/unistd.in.h (unlinkat): Declare replacement.
13687         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
13688
13689         openat: fix fstatat bugs on Solaris 9
13690         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
13691         stat.
13692         * doc/posix-functions/fstatat.texi (fstatat): Document this.
13693
13694         test-unlinkat: enhance test, to expose Solaris 9 bug
13695         * tests/test-unlink.c (main): Factor guts...
13696         * tests/test-unlink.h (test_rmdir_func): ...into new file.
13697         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
13698         * tests/test-rmdir.c (main): Adjust caller.
13699         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
13700         (unlinker): New helper function.
13701         (rmdirat): Enhance check.
13702         * modules/rmdir-tests (Depends-on): Add stdbool.
13703         * modules/unlink-tests (Depends-on): Likewise.
13704         (Files): Add test-unlink.h.
13705         * modules/openat-tests (Files): Likewise.
13706         (Depends-on): Add unlinkdir.
13707
13708         test-fstatat: new test, to expose Solaris 9 bugs
13709         * tests/test-stat.c (main): Factor guts...
13710         * tests/test-stat.h (test_stat_func): ...into new file.
13711         * tests/test-lstat.c (main): Factor guts...
13712         * tests/test-lstat.h (test_lstat_func): ...into new file.
13713         * tests/test-fstatat.c: New file.
13714         * modules/stat-tests (Files): Add test-stat.h.
13715         * modules/lstat-tests (Files): Add test-lstat.h.
13716         (Depends-on): Add stdbool.
13717         * modules/openat-tests (Depends-on): Add pathmax.
13718         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
13719         (Makefile.am): Run new test.
13720
13721         remove: new module, for mingw and Solaris 9 bugs
13722         * modules/remove: New file.
13723         * lib/remove.c: Likewise.
13724         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
13725         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
13726         * modules/stdio (Makefile.am): Use them.
13727         * lib/stdio.in.h (remove): Declare replacement.
13728         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
13729         * doc/posix-functions/remove.texi (remove): Likewise.
13730         * modules/remove-tests: New test.
13731         * tests/test-remove.c: Likewise.
13732
13733         unlink: new module, for Solaris 9 bug
13734         * modules/unlink: New file.
13735         * lib/unlink.c: Likewise.
13736         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
13737         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
13738         * modules/unistd (Makefile.am): Use them.
13739         * lib/unistd.in.h (stat): Declare replacement.
13740         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
13741         * doc/posix-functions/unlink.texi (unlink): Likewise.
13742         * modules/unlink-tests: New test.
13743         * tests/test-unlink.c: Likewise.
13744
13745         lstat: fix Solaris 9 bug
13746         * lib/lstat.c (lstat): Also check for trailing slash on
13747         non-symlink, non-directories.  Use stat module to simplify logic.
13748         * doc/posix-functions/lstat.texi (lstat): Document it.
13749         * modules/lstat-tests (Depends-on): Add errno, same-inode.
13750         (configure.ac): Check for symlink.
13751         * tests/test-lstat.c (main): Add more tests.
13752
13753         stat: add as dependency to other modules
13754         * modules/chown (Depends-on): Add stat.
13755         * modules/euidaccess (Depends-on): Likewise.
13756         * modules/fchdir (Depends-on): Likewise.
13757         * modules/isdir (Depends-on): Likewise.
13758         * modules/link (Depends-on): Likewise.
13759         * modules/lstat (Depends-on): Likewise.
13760         * modules/mkdir-p (Depends-on): Likewise.
13761         * modules/modechange (Depends-on): Likewise.
13762         * modules/open (Depends-on): Likewise.
13763         * modules/readlink (Depends-on): Likewise.
13764         * modules/same (Depends-on): Likewise.
13765
13766         stat: fix Solaris 9 bug
13767         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
13768         slash.
13769         * lib/stat.c (rpl_stat): Work around it.
13770         * doc/posix-functions/stat.texi (stat): Update documentation.
13771
13772         stat: new module, for mingw bug
13773         * modules/stat: New file.
13774         * lib/stat.c: Likewise.
13775         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
13776         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
13777         * modules/sys_stat (Makefile.am): Use them.
13778         * lib/sys_stat.in.h (stat): Declare replacement.
13779         * lib/openat.c (fstatat): Deal with lstat and stat being function
13780         macros.
13781         * modules/openat (Depends-on): Add inline.
13782         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
13783         * doc/posix-functions/stat.texi (stat): Likewise.
13784         * modules/stat-tests: New test.
13785         * tests/test-stat.c: Likewise.
13786
13787 2009-09-19  Jim Meyering  <meyering@redhat.com>
13788
13789         syntax-check: detect unnecessary inclusion of canonicalize.h
13790         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
13791
13792 2009-09-19  Eric Blake  <ebb9@byu.net>
13793
13794         canonicalize-lgpl: adjust clients to use correct header
13795         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
13796         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
13797         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
13798         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
13799         * lib/progreloc.c (includes): Likewise.
13800
13801 2009-09-19  Jim Meyering  <meyering@redhat.com>
13802
13803         test-posixtm.c: correct a comment
13804         * tests/test-posixtm.c: Correct first-line comment.
13805         Spotted by Eric Blake.
13806
13807 2009-09-16  Jim Meyering  <meyering@redhat.com>
13808
13809         posixtm-tests: make T const-correct; add a test case
13810         * tests/test-posixtm.c (T): Declare const.
13811         Add a test for -(2^31+1).
13812         Remove useless can-succeed-only-in-2002 test.
13813
13814         posixtm-tests: adjust the sole failing test
13815         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
13816         expected output matches what mktime now produces.  Cross-checked via
13817         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
13818
13819         posixtm: move #ifdef'd tests into a new module
13820         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
13821         * tests/test-posixtm.c: ... this new file.
13822         * modules/posixtm-tests: New module.
13823
13824 2009-09-19  Eric Blake  <ebb9@byu.net>
13825
13826         openat: simplify use of at-func.c
13827         * lib/at-func.c (includes): Include prerequisites here, to
13828         simplify requirements on client files.
13829         * lib/openat-priv.h: Add double-inclusion guard.
13830         * lib/faccessat.c (includes): Simplify.
13831         * lib/fchmodat.c (includes): Likewise.
13832         * lib/fchownat.c (includes): Likewise.
13833         * lib/mkdirat.c (includes): Likewise.
13834         * lib/mkfifoat.c (includes): Likewise.
13835         * lib/symlinkat.c (includes): Likewise.
13836
13837         openat: allow return of fd 0
13838         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
13839         * modules/save-cwd (Depends-on): Replace fcntl-safer with
13840         unistd-safer.
13841         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
13842         <fcntl.h>; this module does not leak fds.
13843         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
13844         must be allowed to return 0, leaving openat_safer to add the
13845         safety.
13846         (openat_permissive): Avoid writing to just-opened fd 2 if
13847         restoring the current directory fails.
13848         * lib/openat-die.c (openat_restore_fail): Add comment.
13849         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
13850         (save_cwd): Guarantee safe fd, but without use of open_safer.
13851         * tests/test-openat.c: New test.
13852         * modules/openat-tests (Files, Makefile.am): Distribute and build
13853         new file.
13854
13855         relocatable-prog-wrapper: fix build
13856         * modules/relocatable-prog-wrapper (Files): Update name of
13857         canonicalize m4 file, broken on 2009-09-17.
13858         Reported by emad hajjar <aleppos@hotmail.com>.
13859
13860 2009-09-19  Bruno Haible  <bruno@clisp.org>
13861
13862         * lib/safe-alloc.h: Use the standard header with GPL copyright.
13863         * lib/safe-alloc.c: Likewise.
13864         Reported by Ian Beckwith <ianb@erislabs.net>.
13865
13866 2009-09-18  Bruno Haible  <bruno@clisp.org>
13867
13868         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
13869         Reported by <erobles@sensacd.com.mx>.
13870
13871 2009-09-17  Eric Blake  <ebb9@byu.net>
13872
13873         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
13874         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
13875         slashes when checking if last component is missing.
13876         * tests/test-canonicalize.c (main): Test this.
13877
13878         canonicalize, canonicalize-lgpl: honor // if distinct from /
13879         * modules/canonicalize (Files): Add double-slash-root.m4.
13880         * modules/canonicalize-lgpl (Files): Likewise.
13881         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
13882         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
13883         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
13884         fallback definition.
13885         (canonicalize_filename_mode): Use it to protect //.
13886         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
13887         (__realpath): Likewise.
13888         * tests/test-canonicalize.c (main): Test this.
13889         * tests/test-canonicalize-lgpl.c (main): Likewise.
13890         * modules/canonicalize-tests (Depends-on): Add same-inode.
13891         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
13892
13893         canonicalize-lgpl: fix glibc bug with trailing slash
13894         * m4/canonicalize-lgpl.m4: Move contents...
13895         * m4/canonicalize.m4: ...here.
13896         (gl_CANONICALIZE_LGPL): Factor realpath check...
13897         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
13898         glibc 2.3.5 bug, fixed 2005-04-27.
13899         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
13900         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
13901         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
13902         * modules/canonicalize-lgpl (Files): Manage file rename.
13903         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
13904         * modules/stdlib (Makefile.am): Substitute witness.
13905         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
13906         is needed.
13907         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
13908         replacement is required.
13909         * lib/canonicalize.c (canonicalize_file_name): Likewise.
13910         * doc/glibc-functions/canonicalize_file_name.texi
13911         (canonicalize_file_name): Document this.
13912         * doc/posix-functions/realpath.texi (realpath): Likewise.
13913
13914         canonicalize-lgpl: reject non-directory with trailing slash
13915         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
13916         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
13917         catches failures in glibc 2.3.5.
13918         * tests/test-canonicalize.c (main): Likewise.
13919
13920         canonicalize-lgpl: use native realpath if it works
13921         * lib/canonicalize-lgpl.c (realpath): Guard with
13922         FUNC_REALPATH_WORKS.
13923         * lib/stdlib.in.h (realpath): Make declaration optional based on
13924         HAVE_REALPATH.
13925         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
13926         native realpath works.
13927         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
13928         * modules/stdlib (Makefile.am): Substitute witness.
13929
13930         canonicalize, canonicalize-lgpl: use <stdlib.h>
13931         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
13932         (Include): Mention <stdlib.h>.
13933         (configure.ac): Mention functions we provide.
13934         * modules/canonicalize (configure.ac): Likewise.
13935         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
13936         realpath if canonicalize_file_name is missing.
13937         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
13938         * modules/stdlib (Makefile.am): Substitute witnesses.
13939         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
13940         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
13941         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
13942         * NEWS: Document this.
13943         * doc/glibc-functions/canonicalize_file_name.texi
13944         (canonicalize_file_name): Likewise.
13945         * doc/posix-functions/realpath.texi (realpath): Likewise.
13946         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
13947
13948         test-canonicalize: consolidate into single C program
13949         * tests/test-canonicalize.sh: Delete; move setup into...
13950         * tests/test-canonicalize.c (main): ...the program, making it
13951         easier to run in debugger.  Add some tests.
13952         * modules/canonicalize-tests (Files): Remove unused file.
13953         (Depends-on): Add progname.
13954         (configure.ac, Makefile.am): Simplify.
13955
13956         test-canonicalize-lgpl: consolidate into single C program
13957         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
13958         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
13959         easier to run in debugger.  Add some tests.
13960         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
13961         (configure.ac, Makefile.am): Simplify.
13962
13963         canonicalize: avoid resolvepath
13964         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
13965         unnecessary checks.
13966         * lib/canonicalize.c (includes): Simplify.
13967         (canonicalize_file_name): Drop resolvepath implementation.
13968         * modules/canonicalize (Depends-on): Drop filenamecat.
13969
13970         canonicalize: don't lose errno
13971         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
13972         over calls to free.
13973
13974         canonicalize: simplify errno handling
13975         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
13976         assignment.
13977
13978         canonicalize, canonicalize-lgpl: update module dependencies
13979         * modules/canonicalize (Depends-on): Add extensions, lstat,
13980         pathmax, stdlib.
13981         (Files): Drop pathmax.h.
13982         (configure.ac): Adjust macro name.
13983         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
13984         lstat, stdlib, sys_stat.
13985         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
13986         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
13987         extensions.
13988         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
13989         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
13990         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
13991         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
13992         declaration, if available.
13993         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
13994         we can rely on the readlink module.
13995         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
13996         (includes): Use <unistd.h> unconditionally.
13997
13998 2009-09-17  Eric Blake  <ebb9@byu.net>
13999
14000         maint: make Include sections of modules consistent
14001         * modules/alloca: Use only header name; no need to list #include.
14002         * modules/alloca-opt: Likewise.
14003         * modules/arpa_inet: Likewise.
14004         * modules/canon-host: Likewise.
14005         * modules/configmake: Likewise.
14006         * modules/dirent: Likewise.
14007         * modules/eealloc: Likewise.
14008         * modules/environ: Likewise.
14009         * modules/fchdir: Likewise.
14010         * modules/fcntl: Likewise.
14011         * modules/fcntl-h: Likewise.
14012         * modules/gethrxtime: Likewise.
14013         * modules/gettime: Likewise.
14014         * modules/ignore-value: Likewise.
14015         * modules/inet_ntop: Likewise.
14016         * modules/inet_pton: Likewise.
14017         * modules/inttypes: Likewise.
14018         * modules/isnand-nolibm: Likewise.
14019         * modules/isnanf-nolibm: Likewise.
14020         * modules/mbchar: Likewise.
14021         * modules/mbfile: Likewise.
14022         * modules/mbiter: Likewise.
14023         * modules/mbuiter: Likewise.
14024         * modules/netdb: Likewise.
14025         * modules/netinet_in: Likewise.
14026         * modules/nproc: Likewise.
14027         * modules/pagealign_alloc: Likewise.
14028         * modules/poll: Likewise.
14029         * modules/printf-frexp: Likewise.
14030         * modules/pthread: Likewise.
14031         * modules/putenv: Likewise.
14032         * modules/random_r: Likewise.
14033         * modules/relocatable-prog: Likewise.
14034         * modules/search: Likewise.
14035         * modules/select: Likewise.
14036         * modules/selinux-h: Likewise.
14037         * modules/settime: Likewise.
14038         * modules/signal: Likewise.
14039         * modules/size_max: Likewise.
14040         * modules/socklen: Likewise.
14041         * modules/ssize_t: Likewise.
14042         * modules/stdarg: Likewise.
14043         * modules/stdbool: Likewise.
14044         * modules/stddef: Likewise.
14045         * modules/stdint: Likewise.
14046         * modules/stdio: Likewise.
14047         * modules/stdlib: Likewise.
14048         * modules/string: Likewise.
14049         * modules/strings: Likewise.
14050         * modules/sys_file: Likewise.
14051         * modules/sys_ioctl: Likewise.
14052         * modules/sys_select: Likewise.
14053         * modules/sys_socket: Likewise.
14054         * modules/sys_stat: Likewise.
14055         * modules/sys_time: Likewise.
14056         * modules/sys_times: Likewise.
14057         * modules/sys_utsname: Likewise.
14058         * modules/sys_wait: Likewise.
14059         * modules/sysexits: Likewise.
14060         * modules/time: Likewise.
14061         * modules/times: Likewise.
14062         * modules/tmpfile: Likewise.
14063         * modules/trim: Likewise.
14064         * modules/unistd: Likewise.
14065         * modules/wchar: Likewise.
14066         * modules/wctype: Likewise.
14067
14068 2009-09-17  Bruno Haible  <bruno@clisp.org>
14069
14070         Make getdate.y compile on QNX and NetBSD 5 / i386.
14071         * m4/getdate.m4 (gl_GETDATE): Conditionally define
14072         TIME_T_FITS_IN_LONG_INT.
14073         * lib/getdate.y (long_time_t): New type.
14074         (relative_time): Change type of 'seconds' field to long_time_t.
14075         (get_date): Update types of local variables. Check against overflow
14076         during conversion from long_time_t to time_t.
14077         Reported by Matt Kraai <kraai@ftbfs.org>
14078         and Hasso Tepper <hasso@netbsd.org>.
14079
14080 2009-09-17  Bruno Haible  <bruno@clisp.org>
14081
14082         * modules/COPYING: Update copyright years.
14083         * modules/README: Likeiwse.
14084         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
14085         Reported by Ian Beckwith <ianb@erislabs.net>.
14086
14087 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
14088
14089         * users.txt: Update references for gnuit package.
14090
14091 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
14092
14093         * m4/getdelim.m4: Fix typo in copyright line.
14094
14095 2009-09-17  Bruno Haible  <bruno@clisp.org>
14096
14097         * lib/atoll.c: Use the standard header with GPL copyright.
14098         * lib/argz.in.h: Likewise.
14099         * lib/glob.c: Likewise.
14100         * lib/glob-libc.h: Likewise.
14101         * lib/random_r.c: Likewise.
14102         * lib/siglist.h: Likewise.
14103         * lib/strsignal.c: Likewise.
14104         Reported by Ian Beckwith <ianb@erislabs.net>.
14105
14106 2009-09-17  Eric Blake  <ebb9@byu.net>
14107
14108         rmdir: ensure correct dependency order
14109         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
14110
14111 2009-09-17  Bruno Haible  <bruno@clisp.org>
14112
14113         Disable assertion that fails on NetBSD 5 / i386.
14114         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
14115         Reported by Sam Steingold <sds@gnu.org>
14116         and Hasso Tepper <hasso@netbsd.org>.
14117
14118 2009-09-16  Eric Blake  <ebb9@byu.net>
14119
14120         unlinkdir: port to mingw
14121         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
14122         on which no one can unlink a directory.
14123
14124         stdlib: sort witness names
14125         * modules/stdlib (Makefile.am): Sort replacements.
14126         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
14127         * lib/stdlib.in.h: Likewise.
14128
14129         parse-duration-tests: avoid link failure
14130         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
14131         LIBINTL.
14132         Reported by Tom G. Christensen.
14133
14134         openat-tests: ensure unlinkat behaves like rmdir
14135         * tests/test-rmdir.c (main): Factor guts...
14136         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
14137         * modules/rmdir-tests (Files): Ship new file.
14138         * modules/openat-tests: New test.
14139         * tests/test-unlinkat.c: Likewise.
14140
14141         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
14142         * modules/rmdir-errno (Status, Notice): Now obsolete.
14143
14144         rmdir: work around cygwin 1.5.x and mingw bugs
14145         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
14146         * lib/rmdir.c (rmdir): Work around it.
14147         * modules/rmdir (Status, Notice): No longer obsolete.
14148         (Files): Add dos.m4.
14149         (Depends-on): Add unistd.
14150         (configure.ac): Set witnesses.
14151         (License): Relax to LGPLv2+.
14152         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
14153         * modules/unistd (Makefile.am): Substitute witnesses.
14154         * lib/unistd.in.h (rmdir): Declare replacement.
14155         * doc/posix-functions/rmdir.texi (rmdir): Document this.
14156         * modules/rmdir-tests: New tests.
14157         * tests/test-rmdir.c: Likewise.
14158
14159 2009-09-15  Eric Blake  <ebb9@byu.net>
14160
14161         fchdir: improve use of replacement functions
14162         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
14163         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
14164         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
14165         REPLACE_CLOSEDIR.
14166         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
14167         * modules/sys_stat (Makefile.am): Substitute correct witness.
14168         * modules/dirent (Makefile.am): Likewise.
14169         * modules/unistd (Makefile.am): Likewise.
14170         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
14171         * lib/unistd.in.h (dup): Likewise.
14172         * lib/sys_stat.in.h (fstat): Likewise.
14173
14174         maint: ignore gnulib-tool temp files
14175         * .gitignore: Ignore files created during gnulib-tool --test.
14176
14177 2009-09-13  Jim Meyering  <meyering@redhat.com>
14178
14179         posixtm: don't reject a time that specify "60" as the number of seconds
14180         * lib/posixtm.c (posixtime): The code to reject invalid dates
14181         would also reject a time specified with the .60 suffix.
14182         But POSIX allows that, in order to accommodate leap seconds.
14183         So don't reject it.
14184         (main): Adjust tests accordingly.
14185         * modules/posixtm (Depends-on): Add stpcpy.
14186
14187 2009-09-11  Jim Meyering  <meyering@redhat.com>
14188
14189         announce-gen: include [$release_type] in emitted Subject:
14190         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
14191         e.g., [stable] in the emitted Subject: line.
14192
14193 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14194
14195         Remove obsolete macros from several modules.
14196         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
14197         obsolete Autoconf macros with their modern counterparts.
14198         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
14199         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
14200         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
14201         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
14202         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
14203         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
14204         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
14205         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
14206         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
14207         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
14208         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
14209         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
14210         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
14211         * m4/sockets.m4 (gl_SOCKETS): Likewise.
14212         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
14213         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
14214         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
14215         * m4/time_r.m4 (gl_TIME_R): Likewise.
14216         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
14217         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
14218         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
14219
14220         Fix copyright header in build-aux scripts.
14221         * build-aux/git-version-gen: Fix copyright header to match GPLv3
14222         recommendation.
14223         * build-aux/ncftpput-ftp: Likewise.
14224         * build-aux/update-copyright: Likewise.
14225
14226 2009-09-09  Eric Blake  <ebb9@byu.net>
14227
14228         test-link: allow Linux choice of errno
14229         * tests/test-link.c (main): Relax test for alternate error.
14230
14231         strndup: fix improper m4 caching
14232         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
14233         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
14234         (gl_PREREQ_STRNDUP): Delete.
14235         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
14236         * modules/string (Makefile.am): Substitute it.
14237         * lib/string.in.h (strndup): Modernize prototype.
14238
14239         getcwd: port to mingw
14240         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
14241         different from the POSIX assumptions made throughout the getcwd
14242         module; fortunately, the mingw getcwd does not need replacement.
14243         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
14244         * modules/getcwd-tests: New test.
14245         * tests/test-getcwd.c: Likewise.
14246
14247         link: fix platform bugs
14248         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
14249         * lib/link.c (link): Work around them.  Fix related mingw bug.
14250         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
14251         * modules/unistd (Makefile.am): Substitute it.
14252         * lib/unistd.in.h (link): Declare replacement.
14253         * doc/posix-functions/link.texi (link): Document this.
14254         * modules/link (Depends-on): Add strdup-posix, sys_stat.
14255
14256         test-link: consolidate into single C program, test more cases
14257         * tests/test-link.sh: Delete.
14258         * tests/test-link.c: Test more error conditions.  Exposes bugs on
14259         at least Cygwin and Solaris.
14260         * modules/link-tests (Files): Remove unused file.
14261         (Depends-on): Add errno, sys_stat.
14262         (Makefile.am): Simplify.
14263
14264 2009-09-08  Bruno Haible  <bruno@clisp.org>
14265
14266         Work around towlower, towupper bug on mingw.
14267         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
14268         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
14269         * doc/posix-functions/towlower.texi: Mention the mingw bug.
14270         * doc/posix-functions/towupper.texi: Likewise.
14271         Reported by Eric Blake.
14272
14273 2009-09-08  Jim Meyering  <meyering@redhat.com>
14274
14275         build: don't try to run autoheader if we don't use it
14276         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
14277         is not used in configure.ac.
14278
14279 2009-09-08  Eric Blake  <ebb9@byu.net>
14280
14281         euidaccess: fix compilation error
14282         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
14283
14284         rawmemchr: relax license
14285         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
14286         okay.
14287         Reported by Jim Meyering.
14288
14289         mkfifoat: new module
14290         * modules/mkfifoat: New file.
14291         * lib/mkfifoat.c: Likewise.
14292         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
14293         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
14294         * modules/sys_stat (Makefile.am): Use them.
14295         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
14296         * MODULES.html.sh (File system functions): Mention module.
14297         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
14298         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
14299         * modules/mkfifoat-tests: New test.
14300         * tests/test-mkfifoat.c: Likewise.
14301
14302         strchrnul: relax license
14303         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
14304         okay.
14305         Reported by Jim Meyering.
14306
14307 2009-09-08  Eric Blake  <ebb9@byu.net>
14308
14309         fstatat: fix compilation on Solaris
14310         * lib/fstatat.c (includes): Add fcntl.h.
14311         Reported by Pádraig Brady.
14312
14313 2009-09-07  Eric Blake  <ebb9@byu.net>
14314
14315         rename: modernize replacement
14316         * modules/rename (Depends-on): Add stdio.
14317         (configure.ac): Declare witness.
14318         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
14319         stdio take care of replacement.
14320         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
14321         * modules/stdio (Makefile.am): Substitute them.
14322         * lib/stdio.in.h (rename): Declare replacement.
14323         * lib/rename.c (includes): Allow cross-compilation to non-windows
14324         machines.
14325         * doc/posix-functions/rename.texi (rename): Improve
14326         documentation.
14327
14328         stdio: sort witness names
14329         * modules/stdio (Makefile.am): Sort replacements.
14330         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
14331         * lib/stdio.in.h: Likewise.
14332
14333         getcwd: minor cleanups
14334         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
14335         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
14336
14337         openat: provide more convenience names
14338         * modules/faccessat (configure.ac): Add C witness.
14339         * lib/unistd.in.h (readlinkat): Fix typo.
14340         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
14341         convenience wrappers.
14342         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
14343         wrappers in syntax checks.
14344
14345 2009-09-06  Eric Blake  <ebb9@byu.net>
14346
14347         doc: fix comments in recent patches
14348         * lib/faccessat.c: Mention correct function.
14349         * lib/fchmodat.c: Likewise.
14350         * lib/fchownat.c: Likewise.
14351         * lib/symlinkat.c: Likewise.
14352         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
14353         constants.
14354
14355         faccessat, symlinkat: continue cleanup of previous patch
14356         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
14357         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
14358         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
14359         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
14360         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
14361         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
14362         set.
14363
14364 2009-09-06  Bruno Haible  <bruno@clisp.org>
14365
14366         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
14367         (fstatat): Declare if GNULIB_FSTATAT is set.
14368         (mkdirat): Declare if GNULIB_MKDIRAT is set.
14369         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
14370         (unlinkat): Declare if GNULIB_UNLINKAT is set.
14371         * modules/fcntl-h (Files): Remove m4/openat.m4.
14372         * modules/sys_stat (Files): Remove m4/openat.m4.
14373         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
14374         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
14375         * modules/unistd (Files): Remove m4/openat.m4.
14376         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
14377         GNULIB_OPENAT.
14378         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
14379         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
14380         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
14381         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
14382         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
14383         gl_OPENAT_DEFAULTS.
14384         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
14385         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
14386         Don't require gl_OPENAT_DEFAULTS.
14387         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
14388         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
14389         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
14390         (gl_OPENAT_DEFAULTS): Remove macro.
14391
14392 2009-09-06  Bruno Haible  <bruno@clisp.org>
14393
14394         * modules/openat (configure.ac): Remove unneeded witness.
14395
14396 2009-09-06  Bruno Haible  <bruno@clisp.org>
14397
14398         Set errno to ENOSYS when a function is entirely unsupported.
14399         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
14400         EOPNOTSUPP.
14401         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
14402         * modules/chown (Depends-on): Remove errno.
14403
14404 2009-09-06  Bruno Haible  <bruno@clisp.org>
14405
14406         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
14407
14408 2009-09-06  Bruno Haible  <bruno@clisp.org>
14409
14410         * lib/sys_stat.in.h: Fix preprocessor command indentation.
14411
14412 2009-09-06  Ben Pfaff  <blp@gnu.org>
14413             Bruno Haible  <bruno@clisp.org>
14414
14415         Work around a glibc bug in strtok_r.
14416         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
14417         Undefine if UNDEFINE_STRTOK_R is set.
14418         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
14419         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
14420         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
14421         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
14422         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
14423         UNDEFINE_STRTOK_R.
14424         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
14425
14426 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
14427
14428         exclude: minor fix
14429         * lib/exclude.c: Include wctype.h
14430
14431 2009-09-06  Akim Demaille  <demaille@gostai.com>
14432
14433         bootstrap: improve error message
14434         * build-aux/bootstrap (find_tool): Upon failure, report the list
14435         of candidates.
14436         Honor the initial value of the envvar.
14437
14438 2009-09-05  Eric Blake  <ebb9@byu.net>
14439
14440         symlinkat: new module
14441         * modules/symlinkat: New file.
14442         * lib/symlinkat.c: Likewise.
14443         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
14444         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
14445         * modules/unistd (Makefile.am): Use them.
14446         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
14447         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
14448         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
14449         * MODULES.html.sh (File system functions): Mention module.
14450         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
14451         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
14452         * modules/symlinkat-tests: New test.
14453         * tests/test-symlinkat.c: Likewise.
14454
14455         test-openat-safer: add more checks
14456         * tests/test-openat-safer.c (main): Check more code paths.
14457
14458 2009-09-05  Jim Meyering  <meyering@redhat.com>
14459
14460         syntax-check: detect unnecessary inclusion of openat.h
14461         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
14462
14463 2009-09-05  Bruno Haible  <bruno@clisp.org>
14464
14465         Support towlower, towupper.
14466         * doc/posix-functions/towlower.texi: Mention module wctype.
14467         * doc/posix-functions/towupper.texi: Likewise.
14468         * lib/wctype.in.h (towlower, towupper): New functions.
14469         * tests/test-wctype.c: Include stdio.h, stdlib.h.
14470         (ASSERT): New macro.
14471         (e): New variable.
14472         (main): Test also towlower, towupper. Test WEOF argument.
14473         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14474
14475 2009-09-05  Bruno Haible  <bruno@clisp.org>
14476
14477         Fix conversion behaviour when the input is invalid.
14478         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
14479         mark occurring in first pass of indirect conversion.
14480         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
14481         input.
14482         Found by clang's static analyzer.
14483
14484 2009-09-05  Bruno Haible  <bruno@clisp.org>
14485
14486         * tests/test-striconveh.c (main): Test indirect conversion on platforms
14487         where direct conversion is possible.
14488
14489 2009-09-04  Eric Blake  <ebb9@byu.net>
14490
14491         openat: fail with ENOENT on empty name
14492         * lib/openat-proc.c (openat_proc_name): Special-case the empty
14493         buffer.
14494
14495         link-follow: fix logic bug in prior patch
14496         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
14497         reversed sense of yes and no in prior patch.  Avoid confusing
14498         compilation failure with desired semantics.
14499
14500         link-follow: accomodate mingw and cross-compilation
14501         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
14502         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
14503         cross-compilation results to -1, to make linkat easier to
14504         implement when cross-compiling.  Trivially support mingw.
14505         * modules/link-follow (configure.ac): Call new name.
14506         * NEWS: Mention this.
14507
14508 2009-09-03  Eric Blake  <ebb9@byu.net>
14509
14510         faccessat: compile replacement
14511         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
14512         needed.
14513
14514         fts: fix compilation error
14515         * lib/fts.c (includes): Re-add "openat.h", for
14516         openat_needs_fchdir.
14517
14518         faccessat: new module
14519         * modules/faccessat: New file.
14520         * lib/faccessat.c: Likewise.
14521         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
14522         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
14523         * modules/unistd (Makefile.am): Use it.
14524         * lib/unistd.in.h (faccessat): Declare it.
14525         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
14526         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
14527         * MODULES.html.sh (File system functions): Mention it.
14528         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
14529         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
14530
14531         euidaccess: prefer POSIX over non-standard implementation
14532         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
14533         * lib/euidaccess.c (euidaccess): Use it if available.
14534
14535         openat: make template easier to use
14536         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
14537         AT_FUNC_F2 to be undefined.
14538         (VALIDATE_FLAG): New macro; use it to reject bad flags.
14539         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
14540         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
14541         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
14542         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
14543         Likewise.
14544         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
14545         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
14546         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
14547         Likewise.
14548
14549         openat: declare in POSIX headers
14550         * NEWS: Mention this.
14551         * modules/openat (configure.ac): Declare witnesses.
14552         (Depends-on): Add fcntl-h, sys_stat, unistd.
14553         (Include): Mention correct headers.
14554         * modules/fcntl-h (Depends-on): Add link-warning.
14555         (Files): Add openat.m4.
14556         (Makefile.am): Substitute witnesses.
14557         * modules/sys_stat (Files, Makefile.am): Likewise.
14558         * modules/unistd (Files, Makefile.am): Likewise.
14559         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
14560         (gl_OPENAT_DEFAULTS): New macro.
14561         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
14562         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
14563         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
14564         (SYS_STAT_H): Remove unused variable.
14565         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
14566         * lib/fcntl--.h (includes): Remove unneeded header.
14567         * lib/openat-safer.c (includes): Likewise.
14568         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
14569         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
14570         appropriate headers.
14571         (__OPENAT_PREFIX): Delete.
14572         * lib/fcntl.in.h (openat): Provide declaration.
14573         (AT_FDCWD): Fix Solaris bug.
14574         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
14575         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
14576         * lib/fchmodat.c (includes):  Adjust to find declaration.
14577         * lib/fchownat.c (includes): Likewise.
14578         * lib/mkdirat.c (includes): Likewise.
14579         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
14580         still visible.
14581
14582 2009-09-02  Eric Blake  <ebb9@byu.net>
14583
14584         errno: use consistently
14585         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
14586         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
14587         * lib/canonicalize.c (ELOOP): Likewise.
14588         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
14589         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
14590         * lib/lchown.c (EOPNOTSUPP): Likewise.
14591         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
14592         * lib/savewd.c (ESTALE): Likewise.
14593         * lib/settime.c (ENOSYS): Likewise.
14594         * lib/utimens.c (ENOSYS): Likewise.
14595         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
14596         * lib/chdir-safer.c (ELOOP): Likewise.
14597         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
14598         * modules/c-stack (Depends-on): Add errno.
14599         * modules/canonicalize (Depends-on): Likewise.
14600         * modules/chdir-safer (Depends-on): Likewise.
14601         * modules/fdopendir (Depends-on): Likewise.
14602         * modules/inet_ntop (Depends-on): Likewise.
14603         * modules/inet_pton (Depends-on): Likewise.
14604         * modules/lchown (Depends-on): Likewise.
14605         * modules/openat (Depends-on): Likewise.
14606         * modules/savewd (Depends-on): Likewise.
14607         * modules/settime (Depends-on): Likewise.
14608         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
14609
14610         fts: avoid leaking fds
14611         * modules/fts (Depends-on): Add cloexec.
14612         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
14613         flag.
14614
14615         fts: make directory fds more robust
14616         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
14617         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
14618
14619         backupfile, chdir-long, fts, savedir: make safer
14620         * lib/backupfile.c (includes): Use "dirent--.h", since
14621         numbered_backup can write to stderr during readdir.
14622         * lib/savedir.c (includes): Likewise.
14623         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
14624         emulation can write to stderr on failure.
14625         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
14626         * lib/getcwd.c: Document why opendir_safer is unused.
14627         * lib/glob.c: Likewise.
14628         * lib/scandir.c: Likewise.
14629         * lib/openat-proc.c: Likewise, for open_safer.
14630         * modules/backupfile (Depends-on): Add dirent-safer.
14631         * modules/savedir (Depends-on): Likewise.
14632         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
14633         * modules/chdir-long (Depends-on): Add openat-safer.
14634
14635         openat-safer: new module
14636         * modules/openat-safer: New file.
14637         * lib/openat-safer.c: Likewise.
14638         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
14639         * lib/fcntl-safer.h (openat_safer): Declare.
14640         * lib/fcntl--.h (openat): Override.
14641         * MODULES.html.sh (File descriptor based I/O): Mention it.
14642         * lib/openat.h: Add double-inclusion guards.
14643         * lib/openat.c (includes): Only include "fcntl-safer.h", not
14644         "fcntl--.h", so we can implement openat.
14645         * modules/openat-safer-tests: New test.
14646         * tests/test-openat-safer.c: New file.
14647
14648         dirent-safer: new module
14649         * modules/dirent-safer: New file.
14650         * lib/dirent--.h: Likewise.
14651         * lib/dirent-safer.h: Likewise.
14652         * lib/opendir-safer.c: Likewise.
14653         * m4/dirent-safer.m4: Likewise.
14654         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
14655         * modules/dirent-safer-tests: New test.
14656         * tests/test-dirent-safer.c: New file.
14657         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
14658
14659         fdopendir: optimize on mingw
14660         * lib/unistd.in.h (_gl_directory_name): New prototype.
14661         * lib/fchdir.c (_gl_directory_name): Implement it.
14662         (fchdir): Use it to simplify implementation.
14663         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
14664         fchdir, when available, to avoid calling [f]chdir().
14665
14666         fdopendir: split into its own module
14667         * lib/openat.c (fdopendir): Move...
14668         * lib/fdopendir.c: ...into new file.
14669         * modules/fdopendir: New module.
14670         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
14671         * modules/openat (Depends-on): Add fdopendir.
14672         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
14673         fdopendir here.
14674         * modules/savedir (Depends-on): Only need fdopendir, not full
14675         openat.
14676         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
14677         * lib/openat.h (fdopendir): Drop prototype.
14678         * lib/dirent.in.h (fdopendir): Provide prototype.
14679         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
14680         * modules/dirent (Makefile.am): Substitute them.
14681         * MODULES.html.sh (File system functions): Mention it.
14682         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
14683         * modules/fdopendir-tests: New file.
14684         * tests/test-fdopendir.c: Likewise.
14685
14686         fchdir: use more consistent macro convention
14687         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
14688         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
14689         REPLACE_FCHDIR, rather than relying on config.h macros.
14690         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
14691         inside a single make-time REPLACE_FCHDIR block, rather than using
14692         the config.h FCHDIR_REPLACEMENT.
14693         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
14694         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
14695         Manage fstat replacement.
14696         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
14697         REPLACE_FCHDIR.
14698         * modules/sys_stat (Files): Add m4/unistd_h.m4.
14699         (Makefile.am): Substitute REPLACE_FCHDIR.
14700         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
14701         FCHDIR_REPLACEMENT.
14702         * lib/dup-safer.c (dup_safer): Likewise.
14703         * lib/dup2.c (rpl_dup2): Likewise.
14704         * lib/dup3.c (rpl_dup3): Likewise.
14705         * lib/open.c (rpl_open): Likewise.
14706
14707         fchdir: simplify error handling, and support dup3
14708         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
14709         stdbool, malloc-posix, realloc-posix.
14710         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
14711         (ensure_dirs_slot): Return false on allocation failure.
14712         (rpl_dup2): Delete.
14713         (_gl_register_dup): New function.
14714         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
14715         (_gl_register_fd): Close fd on allocation failure.
14716         * lib/fcntl.in.h (_gl_register_fd): Update signature.
14717         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
14718         prototype.
14719         (rpl_dup2_fchdir): Delete prototype.
14720         * lib/open.c (open): Update caller.
14721         * lib/dup2.c (dup2): Track fchdir metadata.
14722         * lib/dup3.c (dup3): Likewise.
14723         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
14724         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
14725
14726 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14727
14728         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
14729         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
14730         don't pass arguments to AC_OUTPUT.
14731
14732 2009-09-02  Bruno Haible  <bruno@clisp.org>
14733
14734         * modules/mkdtemp (License): Relicense under LGPLv2+.
14735         Reported by Paolo Bonzini.
14736
14737 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14738
14739         Replace uses of obsolete autoconf macros in Jim's modules.
14740         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
14741         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
14742         can evoke a warning from autoconf when run with -Wobsolete
14743         enabled.  They were declared obsolete for good reasons (see
14744         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
14745         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
14746         should not continue using the deprecated macros.
14747         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
14748         obsolete Autoconf macros with modern counterparts.
14749         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
14750         * m4/dos.m4 (gl_AC_DOS): Likewise.
14751         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
14752         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
14753         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
14754         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
14755         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
14756         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
14757         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
14758         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
14759         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
14760         Likewise.
14761         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
14762         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
14763         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
14764         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
14765         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
14766         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
14767
14768 2009-09-01  Eric Blake  <ebb9@byu.net>
14769
14770         fchdir: fix off-by-one bug in previous patch
14771         * lib/fchdir.c (rpl_fstat): Use correct bounds.
14772         (_gl_unregister_fd): Delete useless if.
14773
14774 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
14775
14776         maint.mk: sort the list of syntax-check rules
14777         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
14778         easier to get a sense of progress when the rules are run sequentially
14779         and take a long time.
14780
14781 2009-09-01  Simon Josefsson  <simon@josefsson.org>
14782
14783         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
14784         * modules/netinet_in: Likewise.
14785         * modules/sys_file: Likewise.
14786         * modules/sys_ioctl: Likewise.
14787         * modules/sys_select: Likewise.
14788         * modules/sys_socket: Likewise.
14789         * modules/sys_stat: Likewise.
14790         * modules/sys_time: Likewise.
14791         * modules/sys_times: Likewise.
14792         * modules/sys_utsname: Likewise.
14793         * modules/sys_wait: Likewise.
14794
14795 2009-09-01  Jim Meyering  <meyering@redhat.com>
14796
14797         fts: help ensure that return values are not ignored
14798         * lib/fts_.h (__GNUC_PREREQ): Define.
14799         (__attribute_warn_unused_result__): Define.
14800         (fts_children, fts_close, fts_open, fts_read): Declare with
14801         __attribute_warn_unused_result__.
14802
14803         fts: fts_close now fails also when closing a dir file descriptor fails
14804         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
14805         and propagate to caller, along with errno.
14806
14807         announce-gen: correct formatting in --help output
14808         * build-aux/announce-gen (usage): Move the one-line description in
14809         --help output "up", to where it belongs, just after Usage:.
14810
14811 2009-08-31  Eric Blake  <ebb9@byu.net>
14812
14813         fchdir: port to mingw
14814         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
14815         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
14816         opened, then use a substitute.
14817         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
14818         replacement.
14819         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
14820         (_gl_register_fd): No need to check stat if open already filters
14821         all directories.
14822         (fchdir): Fix error condition to match POSIX.
14823         * modules/fchdir (Depends-on): Add sys_stat.
14824         * doc/posix-functions/open.texi (open): Document the limitation.
14825         * modules/fchdir-tests: New file.
14826         * tests/test-fchdir.c: Likewise.
14827
14828         canonicalize: allow cross-testing from cygwin to mingw
14829         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
14830         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
14831         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
14832         Likewise.
14833         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
14834         target does not support symlinks.
14835         * tests/test-canonicalize-lgpl.sh: Likewise.
14836
14837         chown: avoid compilation warning on mingw
14838         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
14839         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
14840         mingw.
14841         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
14842         * modules/chown (Depends-on): Add errno.
14843
14844 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
14845
14846         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
14847         command.
14848
14849 2009-08-31  Jim Meyering  <meyering@redhat.com>
14850
14851         canonicalize: remove useless initialization
14852         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
14853         initialization of local, "end".
14854
14855 2009-08-30  Bruno Haible  <bruno@clisp.org>
14856
14857         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
14858         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
14859         ENOSYS.
14860
14861 2009-08-30  Bruno Haible  <bruno@clisp.org>
14862
14863         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
14864         /usr/xpg4/bin/tr when it exists.
14865         * tests/test-pipe-filter-gi1.sh: Likewise.
14866
14867 2009-08-30  Bruno Haible  <bruno@clisp.org>
14868
14869         Work around deficient /usr/bin/id program on Solaris.
14870         * tests/test-file-has-acl.sh (ID): New variable.
14871         * tests/test-set-mode-acl.sh (ID): Likewise.
14872         * tests/test-copy-acl.sh (ID): Likewise.
14873         * tests/test-copy-file.sh (ID): Likewise.
14874
14875 2009-08-30  Bruno Haible  <bruno@clisp.org>
14876
14877         New module 'xstriconveh'.
14878         * lib/xstriconveh.h: New file.
14879         * lib/xstriconveh.c: New file.
14880         * modules/xstriconveh: New file.
14881
14882 2009-08-30  Bruno Haible  <bruno@clisp.org>
14883
14884         Make it easier to use mem_cd_iconveh.
14885         * lib/striconveh.h (iconveh_t): New type.
14886         (iconveh_open, iconveh_close): New declarations.
14887         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
14888         with a single 'const iconveh_t *' argument.
14889         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
14890         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
14891         with a single 'const iconveh_t *' argument.
14892         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
14893         * tests/test-striconveh.c (main): Update.
14894         * NEWS: Mention the change.
14895
14896 2009-08-30  Bruno Haible  <bruno@clisp.org>
14897
14898         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
14899         problem.
14900
14901 2009-08-30  Bruno Haible  <bruno@clisp.org>
14902
14903         Work around iconv_open problem on Solaris.
14904         * lib/iconv_open-solaris.gperf: New file.
14905         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
14906         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
14907         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
14908         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
14909         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
14910         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
14911
14912 2009-08-29  Jim Meyering  <meyering@redhat.com>
14913
14914         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
14915         * top/maint.mk (cvs-check): Remove target; it was just an alias
14916         to the better-named vc-diff-check.
14917         (maintainer-distcheck): Remove rule.  It was used only from
14918         the (alpha/beta/major) target, and all of its commands but one
14919         were coreutils-specific.
14920         (vc-dist): Remove rule.
14921         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
14922         Run vc-diff-check, not vc-dist.
14923         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
14924
14925 2009-08-27  Bruno Haible  <bruno@clisp.org>
14926
14927         * tests/test-bitrotate.c (main): Remove test that uses a shift count
14928         of 0.
14929
14930 2009-08-27  Bruno Haible  <bruno@clisp.org>
14931
14932         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
14933         compilers.
14934         * doc/func.texi: Document the SunPRO C bug.
14935
14936 2009-08-27  Bruno Haible  <bruno@clisp.org>
14937
14938         Fix link error on Solaris.
14939         * tests/test-parse-duration.c (xstrdup): Remove function.
14940
14941 2009-08-26  Pádraig Brady  <P@draigbrady.com>
14942
14943         ignore-value: handle pointer types, too
14944         * lib/ignore-value.h (__attribute__): Remove definition.
14945         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
14946         of a more concise and more-often effective "(void) i" statement.
14947         (ignore_ptr): New function to suppress warnings from functions that
14948         return pointers, and to make it explicit that one function doesn't
14949         handle all cases.
14950
14951 2009-08-25  Bruno Haible  <bruno@clisp.org>
14952
14953         dup2: work around a Linux bug.
14954         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
14955         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
14956         * doc/posix-functions/dup2.texi: Mention the Linux bug.
14957         Reported by Simon Josefsson.
14958
14959 2009-08-25  Jim Meyering  <meyering@redhat.com>
14960
14961         libguestfs uses gnulib
14962         * users.txt: Add libguestfs.
14963
14964 2009-08-24  Eric Blake  <ebb9@byu.net>
14965
14966         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
14967         * lib/pipe2.c (includes): Add binary-io.h.
14968         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
14969
14970 2009-08-24  Bruno Haible  <bruno@clisp.org>
14971
14972         Tolerate declared but missing accept4 syscall.
14973         * lib/accept4.c (accept4): Invoke original accept4 function first, if
14974         available.
14975         * lib/sys_socket.in.h (accept4): If the function is already present,
14976         override it.
14977         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
14978         * modules/accept4 (Makefile.am): Compile accept4.c always.
14979         Reported by Paolo Bonzini and Eric Blake.
14980
14981 2009-08-23  Bruno Haible  <bruno@clisp.org>
14982
14983         New module 'accept4'.
14984         * lib/sys_socket.in.h (accept4): New declaration.
14985         * lib/accept4.c: New file.
14986         * m4/accept4.m4: New file.
14987         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
14988         GNULIB_ACCEPT4, HAVE_ACCEPT4.
14989         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
14990         HAVE_ACCEPT4.
14991         * modules/accept4: New file.
14992         * doc/glibc-functions/accept4.texi: Mention the new module.
14993
14994 2009-08-24  Jim Meyering  <meyering@redhat.com>
14995
14996         progname: also set global program_invocation_name, when possible
14997         Before this change, a libtool-enabled program that calls glibc's
14998         error function would report the program name as
14999         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
15000         * modules/progname (configure.ac): Check for a declaration of
15001         program_invocation_name.
15002         * lib/progname.c:  Include <errno.h>.
15003         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
15004         Set program_invocation_name.
15005
15006 2009-08-23  Bruno Haible  <bruno@clisp.org>
15007
15008         * lib/dup3.c: Include <string.h>.
15009
15010 2009-08-23  Bruno Haible  <bruno@clisp.org>
15011
15012         * lib/dup3.c (dup3): Test only once whether the system actually exists.
15013         * lib/pipe2.c (pipe2): Likewise.
15014         Suggested by Eric Blake.
15015
15016 2009-08-23  Bruno Haible  <bruno@clisp.org>
15017
15018         Tolerate declared but missing dup3 syscall.
15019         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
15020         * lib/unistd.in.h (dup3): If the function is already present,
15021         override it.
15022         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
15023         * modules/dup3 (Makefile.am): Compile dup3.c always.
15024         Reported by Paolo Bonzini.
15025
15026 2009-08-23  Bruno Haible  <bruno@clisp.org>
15027
15028         Tolerate declared but missing pipe2 syscall.
15029         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
15030         available.
15031         * lib/unistd.in.h (pipe2): If the function is already present,
15032         override it.
15033         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
15034         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
15035         Reported by Paolo Bonzini.
15036
15037 2009-08-23  Bruno Haible  <bruno@clisp.org>
15038
15039         * lib/pipe2.c (pipe2): Move #ifs inside function.
15040
15041 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
15042
15043         quotearg: document limitations of quote_these_too
15044         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
15045         those limitations are created.
15046         * lib/quotearg.h (set_char_quoting): Document that digits and
15047         letters that are special after backslash are not permitted.
15048         (quotearg_char): Cross-reference set_char_quoting documentation.
15049
15050 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
15051
15052         quotearg: implement custom_quoting_style
15053         * lib/quotearg.c: (struct quoting_options): Add left_quote and
15054         right_quote fields.
15055         (set_custom_quoting): New public function.
15056         (quotearg_buffer_restyled): Add left_quote and right_quote
15057         arguments, handle them very much like locale quoting, and update
15058         all uses.
15059         (quotearg_n_custom): New public function.
15060         (quotearg_n_custom_mem): New public function.
15061         (quotearg_custom): New public function.
15062         (quotearg_custom_mem): New public function.
15063         * lib/quotearg.h: Prototype and document new public functions.
15064         (enum quoting_style): For escape_quoting_style and
15065         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
15066         ignored even though they're otherwise like c_quoting_style.
15067         Add custom_quoting_style member and document with comparison to
15068         clocale_quoting_style.
15069         * tests/test-quotearg.c (custom_quotes): New array.
15070         (custom_results): New array.
15071         (main): Extend to test custom quoting.
15072
15073 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
15074
15075         quotearg: fix right quote escaping when it's in quote_these_too
15076         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
15077         quote, be sure to prepend only one backslash.
15078         * tests/test-quotearg.c (use_quote_double_quotes): New function.
15079         (main): Test it.
15080
15081 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
15082
15083         quotearg-tests: test escaping of embedded locale quotes
15084         * tests/test-quotearg.c (struct result_strings): Add member for
15085         new input.
15086         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
15087         (inputs): Add new input.
15088         (results_g): Add expected results.
15089         (flag_results): Likewise.
15090         (locale_results): Likewise.
15091         (compare_strings): Check those.
15092
15093 2009-08-23  Bruno Haible  <bruno@clisp.org>
15094
15095         Tests for module 'dup3'.
15096         * modules/dup3-tests: New file.
15097         * tests/test-dup3.c: New file.
15098
15099         New module 'dup3'.
15100         * lib/unistd.in.h (dup3): New declaration.
15101         * lib/dup3.c: New file.
15102         * m4/dup3.m4: New file.
15103         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
15104         HAVE_DUP3.
15105         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
15106         * modules/dup3: New file.
15107         * doc/glibc-functions/dup3.texi: Mention the new module.
15108
15109 2009-08-23  Bruno Haible  <bruno@clisp.org>
15110
15111         Tweak the dup2 test.
15112         * tests/test-dup2.c (main): Create the test file empty. Verify that an
15113         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
15114         the test file is still empty. Fix argument order of lseek.
15115
15116 2009-08-23  Bruno Haible  <bruno@clisp.org>
15117
15118         Avoid test link errors when the modules getopt-gnu, gettext are used.
15119         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
15120         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15121
15122 2009-08-23  Bruno Haible  <bruno@clisp.org>
15123
15124         Fix getdtablesize() on mingw.
15125         * lib/getdtablesize.c (getdtablesize): Implement differently.
15126         * lib/unistd.in.h (getdtablesize): Improve comment.
15127
15128 2009-08-23  Bruno Haible  <bruno@clisp.org>
15129
15130         New module 'mkostemp'.
15131         Based on Ulrich Drepper's 2007-08-10 change in glibc.
15132         * lib/stdlib.in.h (mksotemp): New declaration.
15133         * lib/mkostemp.c: New file, from glibc with modifications.
15134         * lib/tempname.h (GT_FILE): Remove outdated comment.
15135         (gen_tempname): Add flags argument.
15136         * lib/tempname.c (__GT_BIGFILE): Remove macro.
15137         (__GT_FILE): Map to 1.
15138         (small_open, large_open): Remove macros.
15139         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
15140         * lib/mkstemp.c (mkstemp): Update.
15141         * lib/mkdtemp.c (mkdtemp): Likewise.
15142         * m4/mkostemp.m4: New file.
15143         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
15144         HAVE_MKOSTEMP.
15145         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
15146         HAVE_MKOSTEMP.
15147         * modules/mkostemp: New file, based on modules/mkstemp.
15148         * doc/glibc-functions/mkostemp.texi: Mention the new module.
15149         * NEWS: Mention the change.
15150
15151 2009-08-23  Bruno Haible  <bruno@clisp.org>
15152
15153         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
15154         Reported by Eric Blake.
15155
15156 2009-08-23  Bruno Haible  <bruno@clisp.org>
15157
15158         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
15159         Reported by Eric Blake.
15160
15161 2009-08-23  Bruno Haible  <bruno@clisp.org>
15162
15163         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
15164         * modules/pipe2 (Depends-on): Likewise.
15165
15166 2009-08-23  Eric Blake  <ebb9@byu.net>
15167
15168         fcntl-h: add O_TTY_INIT support
15169         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
15170         * tests/test-fcntl-h.c (o): Test it.
15171         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
15172
15173         fcntl-h: rename from fcntl, in preparation for fcntl(2)
15174         * modules/fcntl: Move <fcntl.h> header replacement...
15175         * modules/fcntl-h: ...to new name, so as not to collide with
15176         like-named function.
15177         * tests/test-fcntl.c: Rename...
15178         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
15179         * modules/fcntl-tests: Rename...
15180         * modules/fcntl-h-tests: ...to this.  Update test file name.
15181         * modules/chdir-long (Depends-on): Update clients.
15182         * modules/chdir-safer (Depends-on): Likewise.
15183         * modules/fcntl-safer (Depends-on): Likewise.
15184         * modules/fts (Depends-on): Likewise.
15185         * modules/mkancesdirs (Depends-on): Likewise.
15186         * modules/mkdir-p (Depends-on): Likewise.
15187         * modules/open (Depends-on): Likewise.
15188         * modules/savewd (Depends-on): Likewise.
15189         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
15190         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
15191
15192 2009-08-22  Bruno Haible  <bruno@clisp.org>
15193
15194         * modules/binary-io (License): Relicense under LGPL.
15195         * modules/pipe2 (License): Likewise.
15196
15197 2009-08-22  Bruno Haible  <bruno@clisp.org>
15198
15199         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
15200         return value.
15201         * lib/pipe-filter-gi.c (filter_init): Likewise.
15202         Reported by Eric Blake.
15203
15204 2009-08-22  Bruno Haible  <bruno@clisp.org>
15205
15206         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
15207         * modules/pipe (Depends-on): Add pipe2.
15208
15209 2009-08-22  Bruno Haible  <bruno@clisp.org>
15210
15211         Tests for module 'pipe2'.
15212         * modules/pipe2-tests: New file.
15213         * tests/test-pipe2.c: New file.
15214
15215         New module 'pipe2'.
15216         * lib/unistd.in.h (pipe2): New declaration.
15217         * lib/pipe2.c: New file.
15218         * m4/pipe2.m4: New file.
15219         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
15220         HAVE_PIPE2.
15221         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
15222         * modules/pipe2: New file.
15223         * doc/glibc-functions/pipe2.texi: Mention the new module.
15224
15225 2009-08-22  Bruno Haible  <bruno@clisp.org>
15226
15227         Reference some new glibc functions.
15228         * doc/glibc-functions/accept4.texi: New file.
15229         * doc/glibc-functions/dup3.texi: New file.
15230         * doc/glibc-functions/mkostemp.texi: New file.
15231         * doc/glibc-functions/pipe2.texi: New file.
15232         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
15233         (Glibc sys/socket.h): Refer to accept4.
15234         (Glibc unistd.h): Refer to dup3, pipe2.
15235         Reported by Eric Blake.
15236
15237 2009-08-22  Jim Meyering  <meyering@redhat.com>
15238             Bruno Haible  <bruno@clisp.org>
15239
15240         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
15241         This makes it so packages using automake-1.11's silent-rules option
15242         can print e.g., a single "GEN    configmake.h" line, rather than
15243         the 30+ statements that perform the job.  If you want to see the
15244         actual commands, you can still run "make V=1".
15245         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
15246         so that make output is abbreviated when those variables are defined
15247         appropriately.
15248         * modules/argz: Likewise.
15249         * modules/arpa_inet: Likewise.
15250         * modules/byteswap: Likewise.
15251         * modules/configmake: Likewise.
15252         * modules/dirent: Likewise.
15253         * modules/errno: Likewise.
15254         * modules/fcntl: Likewise.
15255         * modules/float: Likewise.
15256         * modules/fnmatch: Likewise.
15257         * modules/getopt-posix: Likewise.
15258         * modules/glob: Likewise.
15259         * modules/iconv_open: Likewise.
15260         * modules/inttypes: Likewise.
15261         * modules/localcharset: Likewise.
15262         * modules/locale: Likewise.
15263         * modules/math: Likewise.
15264         * modules/netdb: Likewise.
15265         * modules/netinet_in: Likewise.
15266         * modules/poll: Likewise.
15267         * modules/posix_spawnp-tests: Likewise.
15268         * modules/sched: Likewise.
15269         * modules/search: Likewise.
15270         * modules/selinux-h: Likewise.
15271         * modules/signal: Likewise.
15272         * modules/spawn: Likewise.
15273         * modules/stdarg: Likewise.
15274         * modules/stdbool: Likewise.
15275         * modules/stddef: Likewise.
15276         * modules/stdint: Likewise.
15277         * modules/stdio: Likewise.
15278         * modules/stdlib: Likewise.
15279         * modules/string: Likewise.
15280         * modules/strings: Likewise.
15281         * modules/sys_file: Likewise.
15282         * modules/sys_ioctl: Likewise.
15283         * modules/sys_select: Likewise.
15284         * modules/sys_socket: Likewise.
15285         * modules/sys_stat: Likewise.
15286         * modules/sys_time: Likewise.
15287         * modules/sys_times: Likewise.
15288         * modules/sys_utsname: Likewise.
15289         * modules/sys_wait: Likewise.
15290         * modules/sysexits: Likewise.
15291         * modules/time: Likewise.
15292         * modules/unistd: Likewise.
15293         * modules/wchar: Likewise.
15294         * modules/wctype: Likewise.
15295
15296 2009-08-22  Jim Meyering  <meyering@redhat.com>
15297
15298         announce-gen: detect write failure
15299         * build-aux/announce-gen: Add Coda at end.
15300         Remove equivalent-but-more-verbose block at top.
15301
15302 2009-08-19  Akim Demaille  <demaille@gostai.com>
15303
15304         bootstrap: --help to stdout.
15305         * bootstrap (usage): Don't send --help to stderr.
15306         Use a here doc instead of a long string.
15307
15308 2009-08-21  Eric Blake  <ebb9@byu.net>
15309
15310         test-popen-safer: split from test-popen
15311         * tests/test-popen.c (main): Move...
15312         * tests/test-popen.h: ...into new file.
15313         * tests/test-popen-safer2.c: New file.
15314         * modules/popen-tests (Files): Add test-popen.h.
15315         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
15316         Suggested by Bruno Haible.
15317
15318         test-fcntl-safer: split from test-open
15319         * tests/test-open.c (main): Move...
15320         * tests/test-open.h: ...into new file.
15321         * tests/test-fcntl-safer.c: New file.
15322         * modules/open-tests (Files): Add test-open.h.
15323         * modules/fcntl-safer-tests: New file.
15324         Suggested by Bruno Haible.
15325
15326         test-fopen-safer: split from test-fopen
15327         * tests/test-fopen.c (main): Move...
15328         * tests/test-fopen.h: ...into new file.
15329         * tests/test-fopen-safer.c: New file.
15330         * modules/fopen-tests (Files): Add test-fopen.h.
15331         * modules/fopen-safer-tests: New file.
15332         Suggested by Bruno Haible.
15333
15334 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
15335
15336         popen-safer: test O_CLOEXEC at run-time.
15337         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
15338
15339 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
15340
15341         fcntl: move more flags to the header
15342         * lib/cloexec.c: Do not define FD_CLOEXEC here.
15343         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
15344         * lib/fcntl.in.h: Do both things here.
15345
15346 2009-08-21  Jim Meyering  <meyering@redhat.com>
15347
15348         consistently remove $@-t before redirecting to it
15349         * modules/argz: Remove $@-t and $@ before redirecting to the former.
15350         * modules/alloca-opt: Likewise.
15351         * modules/byteswap: Likewise.
15352         * modules/fnmatch: Likewise.
15353         * modules/getopt-posix: Likewise.
15354         * modules/glob: Likewise.
15355         * modules/poll: Likewise.
15356         * modules/posix_spawnp-tests: Likewise.
15357         * modules/sys_socket: Likewise.
15358         * modules/sysexits: Likewise.
15359
15360 2009-08-21  Eric Blake  <ebb9@byu.net>
15361
15362         popen: simplify access to original popen
15363         * lib/popen.c (rpl_popen): No need to worry about popen being a
15364         macro.
15365         Reported by Bruno Haible.
15366
15367 2009-08-20  Eric Blake  <ebb9@byu.net>
15368
15369         build: avoid some compiler warnings
15370         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
15371         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
15372         type.
15373         (new_exclude_segment, excluded_file_pattern_p)
15374         (excluded_file_name_p): Reduce scope.
15375         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
15376         old-style declaration.
15377
15378 2009-08-20  Simon Josefsson  <simon@josefsson.org>
15379
15380         * tests/test-exclude1.sh: Handle Windows EOL.
15381         * tests/test-exclude2.sh: Likewise.
15382         * tests/test-exclude3.sh: Likewise.
15383         * tests/test-exclude4.sh: Likewise.
15384         * tests/test-exclude5.sh: Likewise.
15385         * tests/test-exclude6.sh: Likewise.
15386         * tests/test-exclude7.sh: Likewise.
15387
15388 2009-08-19  Akim Demaille  <demaille@gostai.com>
15389
15390         bootstrap: find sha1sum when named gsha1sum.
15391         * bootstrap (find_tool): New.
15392         ($SHA1SUM): New.
15393         Use it.
15394
15395 2009-08-20  Jim Meyering  <meyering@redhat.com>
15396
15397         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
15398         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
15399         expression that converts "." in a file name to "\." in the resulting
15400         regexp.  Start with a dummy statement, so that prior shell variable
15401         definitions are expanded portably.  Reported by Simon Josefsson.
15402
15403 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
15404
15405         Fix polling for writeability of a screen buffer.
15406         * lib/poll.c: Distinguish input and screen buffers for the
15407         Win32 implementation.
15408         * lib/select.c: Likewise.
15409
15410 2009-08-19  Eric Blake  <ebb9@byu.net>
15411
15412         popen-safer: prevent popen from clobbering std descriptors
15413         * modules/popen-safer: New file.
15414         * lib/popen-safer.c: Likewise.
15415         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
15416         * lib/stdio--.h (popen): Provide override.
15417         * lib/stdio-safer.h (popen_safer): Provide declaration.
15418         * tests/test-popen.c (includes): Partially test this.
15419         * modules/popen-safer-tests: New file, for more tests.
15420         * tests/test-popen-safer.c: Likewise.
15421         * MODULES.html.sh (file stream based Input/Output): Mention it.
15422
15423         tests: test some of the *-safer modules
15424         * modules/fopen-safer (Depends-on): Add fopen.
15425         * modules/fcntl-safer (Depends-on): Add fcntl.
15426         * modules/stdlib-safer (Depends-on): Add stdlib.
15427         (configure.ac): Set indicator.
15428         * modules/unistd-safer (configure.ac): Likewise.
15429         * modules/tmpfile-safer (configure.ac): Likewise.
15430         (Depends-on): Add tmpfile.
15431         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
15432         active.
15433         * tests/test-fopen.c (includes): Test safer versions when they are
15434         in use.
15435         * tests/test-open.c (includes): Likewise.
15436
15437         popen: fix cygwin 1.5 bug when stdin closed
15438         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
15439         * modules/popen: New file.
15440         * modules/popen-tests: Likewise.
15441         * tests/test-popen.c: Likewise.
15442         * m4/popen.m4: Likewise.
15443         * lib/popen.c: Likewise.
15444         * lib/stdio.in.h (popen): New declaration.
15445         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
15446         * modules/stdio (Makefile.am): Likewise.
15447         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
15448
15449 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
15450
15451         maint.mk: give full control over update-copyright exclusions
15452         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
15453         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
15454         (update-copyright): Don't force inclusion of top-level
15455         ChangeLog.  Don't force exclusion of all COPYING files, but make
15456         them the default exclusion instead.
15457
15458 2009-08-16  Bruno Haible  <bruno@clisp.org>
15459
15460         Fix test failures on Solaris 10.
15461         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
15462         tests when Solaris iconv() is used.
15463         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
15464         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
15465         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
15466         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
15467         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
15468
15469 2009-08-16  Bruno Haible  <bruno@clisp.org>
15470
15471         Fix test failures on Solaris 10.
15472         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
15473         'tr' program and pass it as first argument.
15474         * tests/test-pipe-filter-gi1.sh: Likewise.
15475         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
15476         program as first argument.
15477         * tests/test-pipe-filter-gi1.c (main): Likewise.
15478
15479 2009-08-16  Eric Blake  <ebb9@byu.net>
15480
15481         fpurge: fix previous commits
15482         * modules/fpurge (Makefile.am): Make replacement conditional,
15483         partially reverting 2007-04-29 change; missed in previous
15484         attempt.
15485         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
15486         is missing.
15487
15488 2009-08-16  Bruno Haible  <bruno@clisp.org>
15489
15490         Clarify fpurge's effect on the file position.
15491         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
15492         * tests/test-fpurge.c (main): Make a second pass for checking the file
15493         position.
15494
15495 2009-08-16  Bruno Haible  <bruno@clisp.org>
15496
15497         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
15498         declaration of fpurge is missing.
15499         * tests/test-fpurge.c (main): Check that the file has not more contents
15500         than expected. Close the file before removing it.
15501
15502 2009-08-15  Eric Blake  <ebb9@byu.net>
15503
15504         fpurge: don't wrap working cygwin implementation
15505         * lib/fpurge.c (fpurge): Fix comment typo.
15506         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
15507         1.7 to avoid replacement.
15508         * tests/test-fpurge.c (main): Enhance test.
15509
15510 2009-08-15  Eric Blake  <ebb9@byu.net>
15511         and Jim Meyering  <meyering@redhat.com>
15512
15513         test-update-copyright: skip if perl is insufficient
15514         * tests/test-update-copyright.sh: Failure to run maintainer tool
15515         should not cause testsuite failure on cygwin 1.5.
15516
15517 2009-08-14  Eric Blake  <ebb9@byu.net>
15518
15519         doc: mention more functions added in cygwin 1.7.0
15520         * doc/posix-headers/limits.texi (limits.h): Update for recent
15521         cygwin additions.
15522         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
15523         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
15524         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
15525         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
15526         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
15527
15528 2009-08-14  Eric Blake  <ebb9@byu.net>
15529
15530         maint.mk: simplify update-copyright rule
15531         * top/maint.mk (update-copyright-local): Delete, and document how
15532         to do it in cfg.mk instead.
15533         (update-copyright-exclude-regexp): Delete, and document how to do
15534         it in .x-update-copyright instead.
15535         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
15536         exclude ChangeLog.
15537
15538 2009-08-14  Bruno Haible  <bruno@clisp.org>
15539
15540         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
15541
15542 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
15543
15544         maint.mk: support update-copyright-env
15545         * top/maint.mk (update-copyright-env): Define place-holder.
15546         (update-copyright): Expand $(update-copyright-env) before
15547         invoking update-copyright.
15548
15549 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
15550
15551         update-copyright: implement forced reformatting
15552         * build-aux/update-copyright: Implement and document
15553         UPDATE_COPYRIGHT_FORCE.
15554         * tests/test-update-copyright.sh: Test it.
15555
15556 2009-08-14  Eric Blake  <ebb9@byu.net>
15557         and Bruno Haible  <bruno@clisp.org>
15558
15559         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
15560         * tests/test-locale.c: Revert previous patch related to NULL.
15561         * tests/test-stdio.c: Likewise.
15562         * tests/test-stdlib.c: Likewise.
15563         * tests/test-string.c: Likewise.
15564         * tests/test-unistd.c: Likewise.
15565         * modules/time-tests (Depends-on): Add verify.
15566         * modules/wchar-tests (Depends-on): Likewise.
15567         * tests/test-time.c: Test for NULL compliance.
15568         * tests/test-wchar.c: Likewise.
15569         * modules/locale (Depends-on): Add stddef.
15570         * modules/stdio (Depends-on): Likewise.
15571         * modules/stdlib (Depends-on): Likewise.
15572         * modules/string (Depends-on): Likewise.
15573         * modules/time (Depends-on): Likewise.
15574         * modules/unistd (Depends-on): Likewise.
15575         * modules/wchar (Depends-on): Likewise.
15576         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
15577         * lib/stdlib.in.h (includes): Likewise.
15578         * lib/string.in.h (includes): Likewise.
15579         * lib/time.in.h (includes): Likewise.
15580         * lib/unistd.in.h (includes): Likewise.
15581         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
15582         replaced.
15583         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
15584         * m4/stddef_h.m4: New file.
15585         * modules/stddef: Likewise.
15586         * lib/stddef.in.h: Likewise.
15587         * modules/stddef-tests: Likewise.
15588         * tests/test-stddef.c: Likewise.
15589         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
15590         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
15591         * doc/posix-headers/locale.texi (locale.h): Likewise.
15592         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
15593         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
15594         * doc/posix-headers/string.texi (string.h): Likewise.
15595         * doc/posix-headers/time.texi (time.h): Likewise.
15596         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
15597         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
15598
15599 2009-08-14  Eric Blake  <ebb9@byu.net>
15600
15601         doc: improve git diff of texinfo files
15602         * .gitattributes: Add rule for *.texi files, with hint on how to
15603         use it.
15604         Copied from m4, and based on a report by Bruno Haible.
15605
15606 2009-08-14  Bruno Haible  <bruno@clisp.org>
15607
15608         Disable multithread support by default on Cygwin 1.5.x for real.
15609         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
15610
15611 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
15612
15613         update-copyright: much ado about intervals
15614         * build-aux/update-copyright: Implement and document
15615         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
15616         of copyright year intervals.
15617         Also, document UPDATE_COPYRIGHT_YEAR.
15618         * tests/test-update-copyright.sh: Test it.
15619
15620         update-copyright: convert 2-digit to 4-digit years
15621         * build-aux/update-copyright: Implement and document.
15622         * tests/test-update-copyright.sh: Update.
15623
15624 2009-08-14  Jim Meyering  <meyering@redhat.com>
15625
15626         test-exclude: avoid coreutils "make check" failure
15627         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
15628         just as in test-argmatch.c.
15629
15630 2009-08-13  Eric Blake  <ebb9@byu.net>
15631
15632         test-dup2: fix bad assumption
15633         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
15634         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
15635
15636         test-version-etc: fix CRLF portability issue
15637         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
15638         recognize \r.
15639         * tests/test-argp-version-etc-1.sh: Likewise.
15640
15641         getopt: update client modules
15642         * modules/argp (Depends-on): Use getopt-gnu.
15643         * modules/git-merge-changelog (Depends-on): Likewise.
15644         * modules/long-options (Depends-on): Likewise.
15645         * modules/xstrtol (Depends-on): Likewise.
15646
15647 2009-08-13  Simon Josefsson  <simon@josefsson.org>
15648
15649         * tests/test-version-etc.sh: Don't fail on different
15650         project/version.  Don't fail on CRLF differences.  Rewrite to use
15651         multiple -e instead of multiple sed forks, suggested by Eric Blake
15652         <ebb9@byu.net>.
15653         * tests/test-argp-version-etc-1.sh: Likewise.
15654
15655 2009-08-13  Simon Josefsson  <simon@josefsson.org>
15656
15657         * tests/test-version-etc.sh: Don't fail on different
15658         project/version.
15659
15660 2009-08-12  Bruno Haible  <bruno@clisp.org>
15661
15662         Tests for modules 'getopt-posix', 'getopt-gnu'.
15663         * modules/getopt-posix-tests: New file.
15664         * tests/test-getopt.c: New file.
15665         * tests/test-getopt.h: New file.
15666         * tests/test-getopt_long.h: New file.
15667
15668         New modules 'getopt-posix', 'getopt-gnu'.
15669         * modules/getopt-gnu: New file, renamed from modules/getopt.
15670         * modules/getopt-posix: New file.
15671         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
15672         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
15673         (gl_GETOPT): Remove macro.
15674         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
15675         Disable the test against BSD systems that declare optreset. Test
15676         against mingw bug. Test against lack of support of optional arguments
15677         on many platforms.
15678         * doc/glibc-headers/getopt.texi: Update module name and list of
15679         relevant platforms.
15680         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
15681         'getopt-gnu' and more portability problems.
15682         * NEWS: Mention the changes.
15683
15684 2009-08-12  Bruno Haible  <bruno@clisp.org>
15685
15686         Ensure that optarg etc. get declared by <unistd.h>.
15687         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
15688         AC_USE_SYSTEM_EXTENSIONS.
15689         * modules/getopt (Depends-on): Add 'extensions'.
15690
15691 2009-08-12  Bruno Haible  <bruno@clisp.org>
15692
15693         Avoid test link errors.
15694         * modules/pipe-filter-ii-tests (Makefile.am): Define
15695         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
15696         * modules/pipe-filter-gi-tests (Makefile.am): Define
15697         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
15698         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15699
15700 2009-08-12  Bruno Haible  <bruno@clisp.org>
15701
15702         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
15703         gl_GETOPT_SUBSTITUTE before.
15704         (gl_GETOPT): Use it.
15705         * m4/argp.m4 (gl_ARGP): Update.
15706         Reported by Sergey Poznyakoff.
15707
15708         * m4/getopt.m4: Reorder macros.
15709         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
15710         (gl_GETOPT_SUBSTITUTE): Remove macro.
15711
15712 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
15713
15714         Minor improvement in gitlog-to-changelog
15715
15716         * build-aux/gitlog-to-changelog: New option `--format' makes
15717         output format string configurable.
15718
15719 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
15720
15721         Optimize exclude: use hash tables for non-wildcard patterns.
15722
15723         * lib/exclude.c: Include hash.h and mbuiter.h
15724         (struct exclude_pattern, exclude_segment): New data types.
15725         (struct exclude): Rewrite.
15726         (fnmatch_pattern_has_wildcards): New function.
15727         (new_exclude_segment, free_exclude_segment): New functions.
15728         (excluded_file_pattern_p, excluded_file_name_p): New functions.
15729         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
15730         * lib/exclude.h (is_fnmatch_pattern): New prototype.
15731         * modules/exclude: Depend on hash and mbuiter.
15732
15733         * modules/exclude-tests: New file.
15734         * tests/test-exclude.c: New file.
15735         * tests/test-exclude1.sh: New file.
15736         * tests/test-exclude2.sh: New file.
15737         * tests/test-exclude3.sh: New file.
15738         * tests/test-exclude4.sh: New file.
15739         * tests/test-exclude5.sh: New file.
15740         * tests/test-exclude6.sh: New file.
15741         * tests/test-exclude7.sh: New file.
15742
15743 2009-08-12  Bruno Haible  <bruno@clisp.org>
15744
15745         Ensure that getopt() gets declared by <unistd.h>.
15746         * lib/unistd.in.h: Conditionally include getopt.h.
15747         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
15748         Set GNULIB_UNISTD_H_GETOPT.
15749         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15750         GNULIB_UNISTD_H_GETOPT.
15751         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
15752
15753 2009-08-12  Bruno Haible  <bruno@clisp.org>
15754
15755         Clarify logic.
15756         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
15757         gl_replace_getopt instead of GETOPT_H.
15758
15759 2009-08-12  Bruno Haible  <bruno@clisp.org>
15760
15761         * m4/getopt.m4: Add comments.
15762
15763 2009-08-12  Bruno Haible  <bruno@clisp.org>
15764
15765         Disable multithread support by default on Cygwin 1.5.x.
15766         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
15767         set gl_use_threads=no if not specified otherwise.
15768
15769 2009-08-11  Bruno Haible  <bruno@clisp.org>
15770
15771         Avoid compilation error on NetBSD 5.0.
15772         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
15773         * tests/test-stdio.c: Likewise.
15774         * tests/test-stdlib.c: Likewise.
15775         * tests/test-string.c: Likewise.
15776         * tests/test-unistd.c: Likewise.
15777         Reported by Greg Troxel <gdt@ir.bbn.com>
15778         at <https://savannah.gnu.org/support/?106973>.
15779
15780 2009-08-11  Bruno Haible  <bruno@clisp.org>
15781
15782         * modules/dup2-tests (Depends-on): Remove close.
15783
15784         Undo 2009-07-19 commit.
15785         * modules/acl-tests (Depends-on): Remove close.
15786         * modules/binary-io-tests (Depends-on): Likewise.
15787         * modules/closein-tests (Depends-on): Likewise.
15788         * modules/flock-tests (Depends-on): Likewise.
15789         * modules/fsync-tests (Depends-on): Likewise.
15790         * modules/lseek-tests (Depends-on): Likewise.
15791         * modules/pipe-tests (Depends-on): Likewise.
15792         * modules/posix_spawn-tests (Depends-on): Likewise.
15793         * modules/posix_spawnp-tests (Depends-on): Likewise.
15794         * modules/stat-time-tests (Depends-on): Likewise.
15795         * modules/yesno-tests (Depends-on): Likewise.
15796
15797 2009-08-10  Bruno Haible  <bruno@clisp.org>
15798
15799         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
15800
15801 2009-08-10  Bruno Haible  <bruno@clisp.org>
15802
15803         Fix a gcc warning.
15804         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
15805
15806 2009-08-10  Bruno Haible  <bruno@clisp.org>
15807
15808         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
15809         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
15810         not only the first time.
15811         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
15812         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
15813         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
15814         is 1, not only the the first time.
15815
15816 2009-08-10  Bruno Haible  <bruno@clisp.org>
15817
15818         Make it possible to use module 'gethostname' without module 'close'.
15819         * lib/unistd.in.h (close): Evoke a link error only if
15820         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
15821         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15822         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
15823         * modules/unistd (Makefile.am): Substitute
15824         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
15825         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
15826         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
15827         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
15828         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
15829         * modules/sys_ioctl (Makefile.am): Substitute
15830         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
15831         * modules/socket (configure.ac): On native Windows, set
15832         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
15833         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
15834         Reported by Sam Steingold <sds@gnu.org>.
15835
15836 2009-08-10  Bruno Haible  <bruno@clisp.org>
15837
15838         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
15839         * modules/ioctl (configure.ac): Likewise.
15840
15841 2009-08-10  Bruno Haible  <bruno@clisp.org>
15842
15843         Avoid collision between gnulib wrapper and libintl wrapper.
15844         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
15845         already defined in intl/printf.c.
15846         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
15847         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
15848
15849 2009-08-09  Bruno Haible  <bruno@clisp.org>
15850
15851         Make <sys/select.h> really self-contained, also on Solaris 10.
15852         * lib/sys_select.in.h: Include <string.h>.
15853         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
15854         Solaris 10 problem.
15855         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
15856         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
15857         Reported by Jim Meyering.
15858
15859 2009-08-09  Bruno Haible  <bruno@clisp.org>
15860
15861         Avoid warnings from 'aclocal' that are due to a use of macro name
15862         AM_XGETTEXT_OPTION that is not defined in automake.
15863         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
15864         automake.
15865         * modules/error (configure.ac): Likewise.
15866         * modules/propername (configure.ac): Likewise.
15867         * modules/vasprintf (configure.ac): Likewise.
15868         * modules/verror (configure.ac): Likewise.
15869         * modules/xprintf (configure.ac): Likewise.
15870         * modules/xvasprintf (configure.ac): Likewise.
15871
15872 2009-08-08  Bruno Haible  <bruno@clisp.org>
15873
15874         Avoid compilation error in C++ mode.
15875         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
15876         Reported by Sam Steingold <sds@gnu.org>.
15877
15878 2009-08-08  Bruno Haible  <bruno@clisp.org>
15879
15880         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
15881         for the various Unix platforms.
15882         * doc/posix-headers/limits.texi: Update platforms list regarding
15883         HOST_NAME_MAX.
15884         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15885
15886 2009-08-07  Jim Meyering  <meyering@redhat.com>
15887
15888         selinux-at: fix typo in a comment
15889         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
15890         Spotted by Paolo Bonzini.
15891
15892         selinux-at: remove redundant m4 code, add documentation
15893         * modules/selinux-at (configure.ac): Remove redundant code.
15894         LIB_SELINUX is already set via the dependent module, selinux-h.
15895         (Include): Add quotes around selinux-at.h.
15896         * lib/selinux-at.h: Add documentation.
15897         Reported by Bruno Haible in
15898         http://marc.info/?l=gnulib-bug&m=124958988300749
15899
15900 2009-08-07  Bruno Haible  <bruno@clisp.org>
15901
15902         Avoid link error on MacOS X 10.3 and 10.4.
15903         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
15904         on non-ELF systems.
15905         * lib/argp-pv.c (argp_program_version): Likewise.
15906         Reported by Simon Josefsson.
15907
15908 2009-08-07  Simon Josefsson  <simon@josefsson.org>
15909
15910         * tests/test-version-etc.sh: Use $EXEEXT.
15911
15912 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
15913
15914         update-copyright: update documentation to point to maint.mk
15915         * build-aux/update-copyright: Here.
15916
15917 2009-08-06  Jim Meyering  <meyering@redhat.com>
15918
15919         maint.mk: support update-copyright-local
15920         * top/maint.mk (update-copyright-local): Define place-holder.
15921         (update-copyright): Depend on $(update-copyright-local).
15922
15923 2009-08-06  Jim Meyering  <meyering@redhat.com>
15924
15925         selinux-at: new module
15926         Initially written for coreutils, this module will soon be
15927         used by findutils, too.
15928         * MODULES.html.sh [Misc]: Add selinux-at.
15929         * lib/selinux-at.h: New file, from coreutils.
15930         * lib/selinux-at.c: Likewise.
15931         * modules/selinux-at: Likewise.
15932         (License): Change from LGPL to GPL, since it depends
15933         on the GPL'd openat module.
15934
15935         doc: update README
15936         * README: Remove references to cogito.
15937         Remove cvs-repo-updating instructions from 2007.
15938         Don't imply that CVS is better if you have limited disk space.
15939
15940 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
15941
15942         update-copyright: support C-style comments
15943         * build-aux/update-copyright: Implement and document.
15944         * tests/test-update-copyright.sh: Test.
15945
15946 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
15947
15948         update-copyright: support omitted "(C)"
15949         * build-aux/update-copyright: Implement and document.  Also,
15950         allow variable whitespace before "(C)".
15951         * tests/test-update-copyright.sh: Test.
15952
15953 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
15954
15955         update-copyright: don't trip on non-FSF copyright statements
15956         * build-aux/update-copyright: Fix so that the first correctly
15957         formatted FSF copyright statement is recognized no matter what
15958         appears before it.  Update documentation.
15959         * tests/test-update-copyright.sh: Test that.
15960
15961 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
15962
15963         update-copyright: clean up code a little
15964         * build-aux/update-copyright: Append "_re" to the name of any
15965         variable holding a regular expression.
15966         Replace "old" and "new" with "stmt" in variable names.
15967         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
15968         handled correctly.
15969         Format code more consistently.
15970
15971 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
15972
15973         update-copyright-tests: improve portability
15974         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
15975         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
15976
15977 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
15978
15979         update-copyright: support @copyright{} and &copy;
15980         * build-aux/update-copyright: Implement and document.
15981         * tests/test-update-copyright.sh: Test.
15982
15983 2009-08-04  Jim Meyering  <meyering@redhat.com>
15984
15985         update-copyright-tests: correctly test EOL=\r\n handling
15986         * tests/test-update-copyright.sh: Put \r at the end of some lines
15987         for the dos-eol tests.  Based on a patch by Joel E. Denny.
15988
15989         maint.mk: make update-copyright exclusion list more configurable
15990         * top/maint.mk (update-copyright): Default to excluding COPYING,
15991         but allow an override, in case someone does want to update that file.
15992
15993         maint.mk: don't update copyright date in COPYING
15994         * top/maint.mk (update-copyright): Exclude COPYING.
15995
15996         maint.mk: add a copyright-updating rule
15997         * top/maint.mk (update-copyright): New rule.
15998         Derived from coreutils/Makefile.am.
15999
16000         update-copyright: rename some variables
16001         * build-aux/update-copyright: Rename a few variables for clarity.
16002         Tweak syntax.  List Joel E. Denny as coauthor.
16003
16004 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
16005
16006         update-copyright: fix bug for 2-digit last year and add tests
16007         * build-aux/update-copyright: Fix bug.
16008         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
16009         specified.
16010         * modules/update-copyright-tests: New
16011         * tests/test-update-copyright.sh: New.
16012
16013 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
16014
16015         update-copyright: handle leading tabs in line prefix
16016         * build-aux/update-copyright: Count leading tabs as 8 spaces
16017         when computing margin.  This helps with the formatting of
16018         ChangeLogs, for example.
16019         Fix documentation a little.
16020
16021 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
16022
16023         update-copyright: support EOL=\r\n
16024         * build-aux/update-copyright: Implement that.
16025
16026 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
16027
16028         update-copyright: automatically format copyright statements
16029         * build-aux/update-copyright: Implement that.
16030         Also, be a little more predictable and safer by always failing
16031         when the full copyright format is not perfectly recognized as an
16032         unbroken whole.  Discussed at
16033         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
16034         Rewrite documentation.
16035
16036 2009-08-03  Bruno Haible  <bruno@clisp.org>
16037
16038         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
16039
16040 2009-08-02  Bruno Haible  <bruno@clisp.org>
16041
16042         Tests for module 'uname'.
16043         * modules/uname-tests: New file.
16044         * tests/test-uname.c: New file.
16045
16046         New module 'uname'.
16047         * lib/uname.c: New file.
16048         * m4/uname.m4: New file.
16049         * modules/uname: New file.
16050         * doc/posix-functions/uname.texi: Mention the new module.
16051
16052 2009-08-02  Bruno Haible  <bruno@clisp.org>
16053
16054         Tests for module 'sys_utsname'.
16055         * modules/sys_utsname-tests: New file.
16056         * tests/test-sys_utsname.c: New file.
16057
16058         New module 'sys_utsname'.
16059         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
16060         * m4/sys_utsname_h.m4: New file.
16061         * modules/sys_utsname: New file.
16062         * doc/posix-headers/sys_utsname.texi: Mention the new module.
16063
16064 2009-08-02  Bruno Haible  <bruno@clisp.org>
16065
16066         Implicitly initialize the sockets library.
16067         * lib/gethostname.c: Include sockets.h.
16068         (rpl_gethostname): Invoke gl_sockets_startup.
16069         * lib/socket.c: Include sockets.h.
16070         (rpl_socket): Invoke gl_sockets_startup.
16071         * modules/gethostname (Depends-on): Add sockets.
16072         * modules/socket (Depends-on): Likewise.
16073         * tests/test-poll.c: Don't include sockets.h.
16074         (main): Don't invoke gl_sockets_startup.
16075         * tests/test-select.c: Don't include sockets.h.
16076         (main): Don't invoke gl_sockets_startup.
16077
16078 2009-08-02  Bruno Haible  <bruno@clisp.org>
16079
16080         Allow multiple calls to gl_sockets_startup.
16081         * lib/sockets.c (initialized_sockets_version): New variable.
16082         (gl_sockets_startup): Do nothing if already called for this or a higher
16083         version.
16084         (gl_sockets_cleanup): Reset initialized_sockets_version.
16085
16086 2009-08-03  Simon Josefsson  <simon@josefsson.org>
16087
16088         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
16089         different project/version.
16090
16091 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
16092             Bruno Haible  <bruno@clisp.org>
16093
16094         Tests for module 'pipe-filter-gi'.
16095         * modules/pipe-filter-gi-tests: New file.
16096         * tests/test-pipe-filter-gi1.sh: New file.
16097         * tests/test-pipe-filter-gi1.c: New file.
16098         * tests/test-pipe-filter-gi2.sh: New file.
16099         * tests/test-pipe-filter-gi2-main.c: New file.
16100         * tests/test-pipe-filter-gi2-child.c: New file.
16101
16102         New module 'pipe-filter-gi'.
16103         * lib/pipe-filter-gi.c: New file.
16104         * modules/pipe-filter-gi: New file.
16105
16106 2009-08-02  Bruno Haible  <bruno@clisp.org>
16107             Paolo Bonzini  <bonzini@gnu.org>
16108
16109         Tests for module 'pipe-filter-ii'.
16110         * modules/pipe-filter-ii-tests: New file.
16111         * tests/test-pipe-filter-ii1.sh: New file.
16112         * tests/test-pipe-filter-ii1.c: New file.
16113         * tests/test-pipe-filter-ii2.sh: New file.
16114         * tests/test-pipe-filter-ii2-main.c: New file.
16115         * tests/test-pipe-filter-ii2-child.c: New file.
16116
16117         New module 'pipe-filter-ii'.
16118         * lib/pipe-filter.h: New file.
16119         * lib/pipe-filter-ii.c: New file.
16120         * lib/pipe-filter-aux.h: New file.
16121         * modules/pipe-filter-ii: New file.
16122
16123 2009-08-02  Simon Josefsson  <simon@josefsson.org>
16124
16125         * lib/gc-libgcrypt.c: Change copyright to FSF.
16126         * lib/gc-gnulib.c: Likewise.
16127
16128 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
16129
16130         * lib/gethostname.c: Include limits.h.
16131
16132 2009-08-02  Simon Josefsson  <simon@josefsson.org>
16133             Bruno Haible  <bruno@clisp.org>
16134
16135         Ensure HOST_NAME_MAX as part of the gethostname module.
16136         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
16137         define also HOST_NAME_MAX.
16138         * tests/test-gethostname.c: Include <limits.h>.
16139         (main): Check also HOST_NAME_MAX.
16140         * doc/posix-headers/limits.texi: Document the mingw problem.
16141
16142 2009-08-02  Bruno Haible  <bruno@clisp.org>
16143
16144         * lib/gethostname.c (gethostname): Fix handling of large len argument.
16145         Add comments.
16146
16147 2009-03-31  Simon Josefsson  <simon@josefsson.org>
16148
16149         * lib/gethostname.c: Add Windows wrapper.
16150         * m4/gethostname.m4: Look for gethostname in -lws2_32.
16151         * modules/gethostname: Depend on sys_socket & errno, for also
16152         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
16153         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
16154
16155 2009-07-31  Jim Meyering  <meyering@redhat.com>
16156
16157         getloadavg: fix symbol name in comment
16158         * lib/getloadavg.c: Correct a typo I introduced when adding
16159         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
16160         Matt Kraai spotted the problem.
16161
16162 2009-07-29  Matt Kraai  <mkraai@beckman.com>
16163
16164         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
16165         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
16166         code also if ! defined N_NAME_POINTER.
16167         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
16168         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
16169         but the n_name member is a 12-byte array.
16170
16171 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
16172
16173         update-copyright: generalize comment handling
16174         * build-aux/update-copyright: Handle copyright statements
16175         within more comment styles.
16176         Document usage.
16177         Report any file with an external copyright holder or parse failure.
16178
16179 2009-07-29  Jim Meyering  <meyering@redhat.com>
16180
16181         mktime: correct setting of REPLACE_MKTIME
16182         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
16183
16184         update-copyright: new module
16185         * modules/update-copyright: New file.
16186         * build-aux/update-copyright: New file.
16187         * MODULES.html.sh (maint+release support): Add update-copyright.
16188
16189 2009-07-27  Bruno Haible  <bruno@clisp.org>
16190
16191         Fix compilation error when <ctime> is used and mktime is replaced.
16192         * lib/time.in.h (mktime): New declaration.
16193         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
16194         REPLACE_MKTIME instead of defining mktime in config.h.
16195         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
16196         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
16197         Reported by Ross McFarland <rwmcfa1@neces.com>.
16198
16199 2009-07-27  Bruno Haible  <bruno@clisp.org>
16200
16201         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
16202         Reported by Matt Kraai <mkraai@beckman.com>.
16203
16204 2009-07-25  Jim Meyering  <meyering@redhat.com>
16205
16206         maint.mk: avoid warnings about missing files
16207         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
16208         diagnostic when .prev-version does not exist.
16209         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
16210         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
16211         nonexistent cfg.mk.
16212         Suggestions from Simon Josefsson.
16213
16214 2009-07-25  Bruno Haible  <bruno@clisp.org>
16215
16216         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
16217         defined as macros. Needed on QNX 6.4.1.
16218         Reported by Matt Kraai <mkraai@beckman.com>.
16219
16220 2009-07-23  Jim Meyering  <meyering@redhat.com>
16221
16222         maint.mk: invoke "make dist" with a working value of XZ_OPT
16223         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
16224
16225 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
16226
16227         Make fseeko.c compile on QNX.
16228         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
16229
16230 2009-07-22  Peter Simons  <simons@cryp.to>
16231
16232         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
16233         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
16234         * lib/md4.h: Likewise.
16235         * lib/md5.h: Likewise.
16236         * lib/sha1.h: Likewise.
16237         * lib/sha256.h: Likewise.
16238         * lib/sha512.h: Likewise.
16239
16240         tests-sha1: don't assign literal string to 'char *' variable
16241         * tests/test-sha1.c (main): Declare locals with "const" to match
16242         attributes of the right hand side.
16243
16244 2009-07-21  Eric Blake  <ebb9@byu.net>
16245
16246         dup2: fix more mingw problems
16247         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
16248         fd to itself.
16249         * doc/posix-functions/dup2.texi (dup2): Document the bug.
16250         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
16251         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
16252         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
16253         care of mingw bugs.
16254
16255 2009-07-21  Jim Meyering  <meyering@redhat.com>
16256
16257         vc-list-files: avoid failure when /bin/sh is dash
16258         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
16259         On some Debian based systems, /bin/sh is a symlink to dash, and running
16260         this command would omit the "/" following each 'tests' prefix:
16261           dash -x build-aux/vc-list-files -C . tests
16262         That is because bash and dash work differently:
16263           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
16264           bash ok
16265           dash odd
16266
16267 2009-07-21  Eric Blake  <ebb9@byu.net>
16268
16269         dup2-tests: test previous patch
16270         * modules/dup2-tests: New file.
16271         * tests/test-dup2.c: Likewise.
16272         * tests/test-open.c (main): Avoid unspecified behavior.
16273         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
16274         test.
16275
16276         dup2: work around mingw and cygwin 1.5 bug
16277         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
16278         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
16279         * modules/unistd (Makefile.am): Substitute it.
16280         * lib/unistd.in.h (dup2): Declare the replacement.
16281         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
16282         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
16283         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
16284         * modules/execute (Depends-on): Add dup2.
16285         * modules/fseterr (Depends-on): Likewise.
16286         * modules/pipe (Depends-on): Likewise.
16287         * modules/posix_spawn-internal (Depends-on): Likewise.
16288
16289 2009-07-21  Bruno Haible  <bruno@clisp.org>
16290
16291         * modules/.gitattributes: New file.
16292
16293 2009-07-20  Bruno Haible  <bruno@clisp.org>
16294
16295         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
16296         (main): Use it.
16297
16298 2009-07-20  Eric Blake  <ebb9@byu.net>
16299
16300         test-pipe: make a bit more robust.
16301         * tests/test-pipe.c (myerr): Allow error messages regardless of
16302         what we do to stderr.
16303         (test_pipe): Rearrange to avoid deadlock.
16304         (child_main): Try a larger read, to ensure we avoided deadlock.
16305         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
16306         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
16307         if misused.
16308
16309 2009-07-19  Jim Meyering  <meyering@redhat.com>
16310
16311         fts: avoid false-positive cycle-detection
16312         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
16313         for each new command line argument.
16314
16315 2009-07-19  Bruno Haible  <bruno@clisp.org>
16316
16317         Fix build error on mingw with the modules sys_select and unistd.
16318         * modules/acl-tests (Depends-on): Add close.
16319         * modules/binary-io-tests (Depends-on): Likewise.
16320         * modules/closein-tests (Depends-on): Likewise.
16321         * modules/flock-tests (Depends-on): Likewise.
16322         * modules/fsync-tests (Depends-on): Likewise.
16323         * modules/lseek-tests (Depends-on): Likewise.
16324         * modules/pipe-tests (Depends-on): Likewise.
16325         * modules/posix_spawn-tests (Depends-on): Likewise.
16326         * modules/posix_spawnp-tests (Depends-on): Likewise.
16327         * modules/stat-time-tests (Depends-on): Likewise.
16328         * modules/yesno-tests (Depends-on): Likewise.
16329
16330 2009-07-19  Bruno Haible  <bruno@clisp.org>
16331
16332         Unify conditionals.
16333         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
16334         macros, not at the compiler macros.
16335         * lib/pipe.c: Likewise.
16336         * lib/execute.c: Likewise.
16337         * lib/spawni.c: Likewise.
16338
16339 2009-07-19  Bruno Haible  <bruno@clisp.org>
16340
16341         Fix handling of closed stdin/stdout/stderr on mingw.
16342         * lib/w32spawn.h: Include unistd.h.
16343         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
16344         file descriptor with O_NOINHERIT flag.
16345         (fd_safer_noinherit): New function, based on fd-safer.c.
16346         (dup_safer_noinherit): New function, based on dup-safer.c.
16347         (undup_safer_noinherit): New function.
16348         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
16349         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
16350         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
16351         instead of fd_safer.
16352         * tests/test-pipe.c: Include <windows.h>.
16353         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
16354
16355         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
16356         from main.
16357         (test_pipe): Pass an extra argument for disambiguation.
16358         (main): Invoke parent_main or child_main.
16359
16360         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
16361         consistently.
16362
16363 2009-07-18  Eric Blake  <ebb9@byu.net>
16364
16365         test-pipe: fix mingw build
16366         * tests/test-pipe.c (main): Avoid fcntl on mingw.
16367
16368 2009-07-18  Bruno Haible  <bruno@clisp.org>
16369
16370         * modules/pipe-tests (Makefile.am): Fix typo.
16371
16372 2009-07-18  Eric Blake  <ebb9@byu.net>
16373
16374         error: fix mingw build
16375         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
16376         Reported by Bruno Haible.
16377
16378         error: avoid undefined use of stdout
16379         * lib/error.c (error, error_at_line): Check that fd 1 is open
16380         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
16381         is handling faults and the close_stdout module wants to report the
16382         detection of closed stdout as an error.
16383
16384 2009-07-17  Eric Blake  <ebb9@byu.net>
16385
16386         pipe: be robust in face of closed fds
16387         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
16388         should cause child to misbehave.
16389         * modules/pipe-tests: New module.
16390         * tests/test-pipe.c: New file.
16391         * tests/test-pipe.sh: New file.
16392         Reported by Akim Demaille.
16393
16394 2009-07-14  Bruno Haible  <bruno@clisp.org>
16395
16396         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
16397         Reported by anonymous kc.
16398
16399 2009-07-07  Jim Meyering  <meyering@redhat.com>
16400
16401         maint.mk: don't look for translatable strings in *.m4 or *.mk
16402         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
16403         when searching for translatable strings.
16404
16405 2009-07-05  Jim Meyering  <meyering@redhat.com>
16406
16407         remove superfluous parentheses in STREQ definition
16408         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
16409         * lib/getugroups.c (STREQ): Likewise.
16410         * lib/fnmatch.c (STREQ): Likewise.
16411         Spotted by Bruno Haible.
16412
16413 2009-07-04  Jim Meyering  <meyering@redhat.com>
16414
16415         argv-iter: new module
16416         * MODULES.html.sh: Add argv-iter.
16417         * lib/argv-iter.c, lib/argv-iter.h: New files.
16418         * modules/argv-iter: New file.
16419         * modules/argv-iter-tests: New file.
16420         * tests/test-argv-iter.c: Test it.
16421
16422 2009-07-04  Bruno Haible  <bruno@clisp.org>
16423
16424         Fix assertion.
16425         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
16426         contains more exact copies of a given entry than file2, leave the extra
16427         copies unpaired rather than aborting.
16428         Reported by Eric Blake.
16429
16430 2009-07-02  Bruno Haible  <bruno@clisp.org>
16431
16432         Speedup git-merge-changelog for git cherry-pick.
16433         * lib/git-merge-changelog.c (struct entries_mapping): New type.
16434         (entries_mapping_get): New function, extracted from compute_mapping.
16435         (entries_mapping_reverse_get): New function.
16436         (compute_mapping): Add a 'full' argument. Return the result in a
16437         'struct entries_mapping'.
16438         (main): Update. Access the mappings through entries_mapping_get.
16439         Reported by Eric Blake.
16440
16441 2009-07-02  Bruno Haible  <bruno@clisp.org>
16442
16443         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
16444         best_i.
16445
16446 2009-07-02  Bruno Haible  <bruno@clisp.org>
16447
16448         Speed up approximate search for matching ChangeLog entries.
16449         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
16450         argument. Call fstrcmp_bounded instead of fstrcmp.
16451         (compute_mapping, try_split_merged_entry, main): Update callers.
16452
16453 2009-07-02  Bruno Haible  <bruno@clisp.org>
16454
16455         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
16456
16457 2009-06-30  Bruno Haible  <bruno@clisp.org>
16458
16459         Reduce the number of uc_is_cased calls.
16460         * lib/unicase.h (casing_suffix_context_t): Add
16461         'first_char_except_ignorable' field.
16462         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
16463         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
16464         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
16465         Update initializer.
16466         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
16467         case-ignorable characters.
16468         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
16469         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
16470         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
16471         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
16472         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
16473
16474 2009-06-30  Bruno Haible  <bruno@clisp.org>
16475
16476         Tests for module 'unicase/ignorable'.
16477         * modules/unicase/ignorable-tests: New file.
16478         * tests/unicase/test-ignorable.c: New file, generated by
16479         gen-uni-tables.
16480
16481         Tests for module 'unicase/cased'.
16482         * modules/unicase/cased-tests: New file.
16483         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
16484         * tests/unicase/test-predicate-part1.h: New file, derived from
16485         tests/unictype/test-predicate-part1.h.
16486         * tests/unicase/test-predicate-part2.h: New file, same as
16487         tests/unictype/test-predicate-part2.h.
16488
16489         Fix evaluation of "Before C" condition of FINAL_SIGMA.
16490         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
16491         (output_casing_properties): New function.
16492         (main): Call it.
16493         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
16494         * lib/unicase/cased.c: Include unictype/bitmap.h.
16495         (uc_is_cased): Define through a bitmap lookup.
16496         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
16497         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
16498         (uc_is_case_ignorable): Define through a bitmap lookup.
16499         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
16500         lib/unictype/bitmap.h.
16501         (Depends-on): Add inline. Clean up.
16502         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
16503         lib/unictype/bitmap.h.
16504         (Depends-on): Add inline. Clean up.
16505         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
16506         recognition.
16507         * tests/unicase/test-u16-tolower.c (main): Likewise.
16508         * tests/unicase/test-u32-tolower.c (main): Likewise.
16509
16510 2009-06-30  Bruno Haible  <bruno@clisp.org>
16511
16512         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
16513         * lib/unicase/u16-casemap.c: Likewise.
16514         * lib/unicase/u32-casemap.c: Likewise.
16515
16516 2009-06-29  Bruno Haible  <bruno@clisp.org>
16517
16518         Define u32_casefold as a wrapper around u32_ct_casefold.
16519         * lib/unicase/u32-casefold.c: Update.
16520         * modules/unicase/u32-casefold (Depends-on): Add
16521         unicase/u32-ct-casefold, unicase/empty-prefix-context,
16522         unicase/empty-suffix-context. Clean up.
16523
16524         Define u16_casefold as a wrapper around u16_ct_casefold.
16525         * lib/unicase/u16-casefold.c: Update.
16526         * modules/unicase/u16-casefold (Depends-on): Add
16527         unicase/u16-ct-casefold, unicase/empty-prefix-context,
16528         unicase/empty-suffix-context. Clean up.
16529
16530         Define u8_casefold as a wrapper around u8_ct_casefold.
16531         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
16532         * lib/unicase/u8-casefold.c: Update.
16533         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
16534         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
16535
16536         Define u32_totitle as a wrapper around u32_ct_totitle.
16537         * lib/unicase/u32-totitle.c: Update.
16538         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
16539         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
16540
16541         Define u16_totitle as a wrapper around u16_ct_totitle.
16542         * lib/unicase/u16-totitle.c: Update.
16543         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
16544         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
16545
16546         Define u8_totitle as a wrapper around u8_ct_totitle.
16547         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
16548         functions.
16549         (FUNC): Delegate to U_CT_TOTITLE.
16550         * lib/unicase/u8-totitle.c: Update.
16551         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
16552         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
16553
16554         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
16555         invocation.
16556         * modules/unicase/u32-tolower (Depends-on): Add
16557         unicase/empty-prefix-context, unicase/empty-suffix-context.
16558
16559         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
16560         invocation.
16561         * modules/unicase/u16-tolower (Depends-on): Add
16562         unicase/empty-prefix-context, unicase/empty-suffix-context.
16563
16564         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
16565         * modules/unicase/u8-tolower (Depends-on): Add
16566         unicase/empty-prefix-context, unicase/empty-suffix-context.
16567
16568         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
16569         invocation.
16570         * modules/unicase/u32-toupper (Depends-on): Add
16571         unicase/empty-prefix-context, unicase/empty-suffix-context.
16572
16573         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
16574         invocation.
16575         * modules/unicase/u16-toupper (Depends-on): Add
16576         unicase/empty-prefix-context, unicase/empty-suffix-context.
16577
16578         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
16579         * modules/unicase/u8-toupper (Depends-on): Add
16580         unicase/empty-prefix-context, unicase/empty-suffix-context.
16581
16582         New module 'unicase/u32-ct-casefold'.
16583         * lib/unicase/u32-ct-casefold.c: New file.
16584         * modules/unicase/u32-ct-casefold: New file.
16585
16586         New module 'unicase/u16-ct-casefold'.
16587         * lib/unicase/u16-ct-casefold.c: New file.
16588         * modules/unicase/u16-ct-casefold: New file.
16589
16590         New module 'unicase/u8-ct-casefold'.
16591         * lib/unicase/u8-ct-casefold.c: New file.
16592         * lib/unicase/u-ct-casefold.h: New file, derived from
16593         lib/unicase/u-casefold.h.
16594         * modules/unicase/u8-ct-casefold: New file.
16595
16596         New module 'unicase/u32-ct-totitle'.
16597         * lib/unicase/u32-ct-totitle.c: New file.
16598         * modules/unicase/u32-ct-totitle: New file.
16599
16600         New module 'unicase/u16-ct-totitle'.
16601         * lib/unicase/u16-ct-totitle.c: New file.
16602         * modules/unicase/u16-ct-totitle: New file.
16603
16604         New module 'unicase/u8-ct-totitle'.
16605         * lib/unicase/u8-ct-totitle.c: New file.
16606         * lib/unicase/u-ct-totitle.h: New file, derived from
16607         lib/unicase/u-totitle.h.
16608         * modules/unicase/u8-ct-totitle: New file.
16609
16610         New module 'unicase/u32-ct-tolower'.
16611         * lib/unicase/u32-ct-tolower.c: New file.
16612         * modules/unicase/u32-ct-tolower: New file.
16613
16614         New module 'unicase/u16-ct-tolower'.
16615         * lib/unicase/u16-ct-tolower.c: New file.
16616         * modules/unicase/u16-ct-tolower: New file.
16617
16618         New module 'unicase/u8-ct-tolower'.
16619         * lib/unicase/u8-ct-tolower.c: New file.
16620         * modules/unicase/u8-ct-tolower: New file.
16621
16622         New module 'unicase/u32-ct-toupper'.
16623         * lib/unicase/u32-ct-toupper.c: New file.
16624         * modules/unicase/u32-ct-toupper: New file.
16625
16626         New module 'unicase/u16-ct-toupper'.
16627         * lib/unicase/u16-ct-toupper.c: New file.
16628         * modules/unicase/u16-ct-toupper: New file.
16629
16630         New module 'unicase/u8-ct-toupper'.
16631         * lib/unicase/u8-ct-toupper.c: New file.
16632         * modules/unicase/u8-ct-toupper: New file.
16633
16634         Add context arguments to u*_casemap functions.
16635         * lib/unicase/unicasemap.h: Include unicase.h.
16636         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
16637         suffix_context arguments.
16638         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
16639         functions.
16640         (FUNC): Add prefix_context and suffix_context arguments. Use
16641         uc_is_cased and uc_is_case_ignorable.
16642         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
16643         * lib/unicase/u16-casemap.c: Likewise.
16644         * lib/unicase/u32-casemap.c: Likewise.
16645         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
16646         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
16647         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
16648         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
16649         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
16650         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
16651
16652         New module 'unicase/u32-suffix-context'.
16653         * lib/unicase/u32-suffix-context.c: New file.
16654         * modules/unicase/u32-suffix-context: New file.
16655
16656         New module 'unicase/u16-suffix-context'.
16657         * lib/unicase/u16-suffix-context.c: New file.
16658         * modules/unicase/u16-suffix-context: New file.
16659
16660         New module 'unicase/u8-suffix-context'.
16661         * lib/unicase/u8-suffix-context.c: New file.
16662         * lib/unicase/u-suffix-context.h: New file.
16663         * modules/unicase/u8-suffix-context: New file.
16664
16665         New module 'unicase/empty-suffix-context'.
16666         * lib/unicase/empty-suffix-context.c: New file.
16667         * modules/unicase/empty-suffix-context: New file.
16668
16669         New module 'unicase/u32-prefix-context'.
16670         * lib/unicase/u32-prefix-context.c: New file.
16671         * modules/unicase/u32-prefix-context: New file.
16672
16673         New module 'unicase/u16-prefix-context'.
16674         * lib/unicase/u16-prefix-context.c: New file.
16675         * modules/unicase/u16-prefix-context: New file.
16676
16677         New module 'unicase/u8-prefix-context'.
16678         * lib/unicase/u8-prefix-context.c: New file.
16679         * lib/unicase/u-prefix-context.h: New file.
16680         * lib/unicase/context.h: New file.
16681         * modules/unicase/u8-prefix-context: New file.
16682
16683         New module 'unicase/empty-prefix-context'.
16684         * lib/unicase/empty-prefix-context.c: New file.
16685         * modules/unicase/empty-prefix-context: New file.
16686
16687         New module 'unicase/ignorable'.
16688         * lib/unicase/ignorable.c: New file.
16689         * modules/unicase/ignorable: New file.
16690
16691         New module 'unicase/cased'.
16692         * lib/unicase/caseprop.h: New file.
16693         * lib/unicase/cased.c: New file.
16694         * modules/unicase/cased: New file.
16695
16696         New functions for case mapping of substrings.
16697         * lib/unicase.h (casing_prefix_context_t): New type.
16698         (unicase_empty_prefix_context): New variable.
16699         (u8_casing_prefix_context, u16_casing_prefix_context,
16700         u32_casing_prefix_context, u8_casing_prefixes_context,
16701         u16_casing_prefixes_context, u32_casing_prefixes_context): New
16702         declarations.
16703         (casing_suffix_context_t): New type.
16704         (unicase_empty_suffix_context): New variable.
16705         (u8_casing_suffix_context, u16_casing_suffix_context,
16706         u32_casing_suffix_context, u8_casing_suffixes_context,
16707         u16_casing_suffixes_context, u32_casing_suffixes_context,
16708         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
16709         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
16710         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
16711         declarations.
16712
16713 2009-06-28  Jim Meyering  <meyering@redhat.com>
16714
16715         boostrap: indent only with spaces
16716         * build-aux/bootstrap: Indent only with spaces, never TABs.
16717
16718         bootstrap: split long lines
16719         * build-aux/bootstrap: Keep line length < 80.
16720
16721         bootstrap: sync from coreutils
16722         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
16723         just as autoreconf does.  Verify a list of prerequisite
16724         package-name,version-number pairs if defined in bootstrap.conf.
16725         Refer to README-prereq, if prerequisites are not satisfied.
16726
16727 2009-06-27  Eric Blake  <ebb9@byu.net>
16728
16729         tests: add test for bogus NULL definition
16730         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
16731         * tests/test-stdlib.c: Likewise.
16732         * tests/test-string.c: Likewise.
16733         * tests/test-locale.c: Likewise.
16734         * tests/test-unistd.c: Likewise.
16735         * modules/stdio-tests (Depends-on): Add verify.
16736         * modules/stdlib-tests (Depends-on): Likewise.
16737         * modules/string-tests (Depends-on): Likewise.
16738         * modules/locale-tests (Depends-on): Likewise.
16739         * modules/unistd-tests (Depends-on): Likewise.
16740
16741 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
16742
16743         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
16744         self-explaining comment.
16745         * m4/selinux-selinux-h: Update serial.
16746         (gl_LIBSELINUX): New macro, adding a warning for missing development
16747         packages to code extracted from...
16748         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
16749         Add warning for missing development packages here, too.
16750
16751 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
16752
16753         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
16754
16755 2009-06-25  Eric Blake  <ebb9@byu.net>
16756
16757         version-etc: fix regression
16758         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
16759         gcc.
16760         (version_etc): Use it, to catch bugs with trailing NULL.
16761         * lib/version-etc.c (version_etc_arn): Delete unused argument.
16762         (version_etc_va): Fix logic bug.
16763         * modules/version-etc-tests: Add test.
16764         * tests/test-version-etc.c: New file.
16765         * tests/test-version-etc.sh: Likewise.
16766
16767 2009-06-25  Sam Steingold  <sds@gnu.org>
16768
16769         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
16770         mbtowc declaration.
16771
16772 2009-06-25  Eric Blake  <ebb9@byu.net>
16773
16774         fpurge: migrate into <stdio.h>
16775         * lib/fpurge.h: Delete...
16776         * lib/stdio.in.h (fpurge): ...and declare here, instead.
16777         * lib/fpurge.c (fpurge): Change declaring header.
16778         * modules/fpurge (Files): Drop deleted file.
16779         (Depends-on): Add stdio.
16780         (configure.ac): Set witness.
16781         * modules/stdio (Makefile.am): Support fpurge macros.
16782         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
16783         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
16784         * lib/fflush.c: Update client.
16785         * tests/test-fpurge.c: Likewise.
16786         * NEWS: Mention the change.
16787
16788 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
16789
16790         * lib/argp-version-etc.c (program_authors): Add const
16791         qualifier.
16792         * lib/version-etc.c: Fix typos in the comments.
16793         * modules/argp-version-etc: Depends on version-etc.
16794
16795 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
16796
16797         argp-version-etc: new module.
16798
16799         * lib/argp-version-etc.c: New file.
16800         * lib/argp-version-etc.h: New file.
16801         * modules/argp-version-etc: New file.
16802         * modules/argp-version-etc-tests: New file.
16803         * tests/test-argp-version-etc.c: New test.
16804         * tests/test-argp-version-etc-1.sh: New test.
16805
16806 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
16807
16808         Provide additional interfaces and documentation for version-etc
16809         module.
16810
16811         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
16812         interfaces.
16813         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
16814         prototypes.
16815
16816 2009-06-24  Bruno Haible  <bruno@clisp.org>
16817
16818         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
16819         HAVE_LIB${NAME} macro.
16820         Reported by Sam Steingold <sds@gnu.org>.
16821
16822 2009-06-23  Simon Josefsson  <simon@josefsson.org>
16823
16824         * modules/hash-tests (test_hash_LDADD): Link to libintl when
16825         needed.
16826
16827 2009-06-21  Bruno Haible  <bruno@clisp.org>
16828
16829         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
16830         work.
16831         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
16832         together with LIB${NAME}, LTLIB${NAME}.
16833         Reported by Sam Steingold <sds@gnu.org>.
16834
16835 2009-06-20  Jim Meyering  <meyering@redhat.com>
16836
16837         tests: make sc_require_test_exit_idiom more generic
16838         * top/maint.mk (Exit_witness_file): New overridable variable.
16839         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
16840         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
16841
16842 2009-06-19  Jim Meyering  <meyering@redhat.com>
16843
16844         hash: reverse order of src/dst parameters in an internal interface
16845         * lib/hash.c (transfer_entries): Reverse order of parameters to
16846         put DST before SRC.  Adjust callers.
16847
16848         tests: test-hash: avoid wholesale duplication
16849         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
16850         Instead, use a loop and add a single conditional.
16851
16852         tests: test-hash: allow seed selection via a command line argument
16853         * tests/test-hash.c (get_seed): New function.
16854         (main): Use it.
16855
16856 2009-06-19  Eric Blake  <ebb9@byu.net>
16857
16858         hash: avoid memory leak on allocation failure
16859         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
16860         failure.  Factor repeated algorithm...
16861         (transfer_entries): ...into new helper routine.
16862         (hash_delete): React to hash_rehash return value.
16863
16864         hash: reduce memory pressure in hash_rehash no-op case
16865         * lib/hash.c (next_prime): Avoid overflow.
16866         (hash_initialize): Factor bucket size computation...
16867         (compute_bucket_size): ...into new helper function.
16868         (hash_rehash): Use new function and open coding to reduce memory
16869         pressure, and avoid a memory leak in USE_OBSTACK code.
16870         Reported by Jim Meyering.
16871
16872 2009-06-18  Eric Blake  <ebb9@byu.net>
16873
16874         hash: make rotation more obvious
16875         * modules/hash (Depends-on): Add bitrotate and stdint.
16876         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
16877         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
16878         (SIZE_MAX): Rely on headers for definition.
16879         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
16880         (raw_hasher): Use rotr_sz.
16881         Suggested by Jim Meyering.
16882
16883         hash: fix memory leak in last patch
16884         * lib/hash.c (hash_rehash): Avoid memory leak.
16885
16886         hash: avoid no-op rehashing
16887         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
16888
16889         hash: provide default callback functions
16890         * lib/hash.c (raw_hasher, raw_comparator): New functions.
16891         (hash_initialize): Use them as defaults.
16892         * tests/test-hash.c (main): Test this.
16893
16894         hash: minor optimization
16895         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
16896         when possible.
16897         (hash_initialize): Document this promise.
16898         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
16899         * tests/test-hash.c (hash_compare_strings): Test this.
16900
16901 2009-06-18  Bruno Haible  <bruno@clisp.org>
16902
16903         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
16904         going to be replaced anyway.
16905
16906 2009-06-18  Bruno Haible  <bruno@clisp.org>
16907
16908         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
16909         in one place.
16910         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
16911         be replaced anyway.
16912
16913 2009-06-18  Eric Blake  <ebb9@byu.net>
16914
16915         hash: check for resize before insertion
16916         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
16917         threshold before insertion, so that a pathological hash_rehash
16918         that fills every bucket can still trigger another rehash.
16919
16920 2009-06-18  Jim Meyering  <meyering@redhat.com>
16921
16922         hash-tests: add a loop around the small tests
16923         * tests/test-hash.c (main): Repeat small tests with selected
16924         small initial table sizes.
16925
16926 2009-06-17  Eric Blake  <ebb9@byu.net>
16927
16928         hash: minor cleanups
16929         * lib/hash.h (hash_entry): Make opaque, by moving...
16930         * lib/hash.c (hash_entry): ...here.
16931         (hash_insert): Clarify restrictions on what can be inserted.
16932         (hash_get_next): Clarify when it is safe to remove an element
16933         during traversal.
16934         (check_tuning): Skip verification when tuning is known safe.
16935         (hash_initialize): Clarify restrictions on tuning.
16936
16937 2009-06-17  Jim Meyering  <jim@meyering.net>
16938         and Eric Blake  <ebb9@byu.net>
16939
16940         hash-tests: new module
16941         * modules/hash-tests: New file.
16942         * tests/test-hash.c: New file.
16943
16944 2009-06-17  Eric Blake  <ebb9@byu.net>
16945
16946         strstr-simple: document new module
16947         * MODULES.html.sh: Document new module.
16948
16949         strstr, strcasestr: replace on platforms with broken memchr
16950         * modules/strstr: Split into...
16951         * modules/strstr-simple: ...new module that does not care about
16952         performance, but does care about glibc bug.
16953         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
16954         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
16955         if platform memchr is broken, per Debian bug 521737.
16956         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
16957         memchr.
16958         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
16959         * doc/posix-functions/strstr.texi (strstr): Document the fix.
16960         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
16961         * modules/mountlist (Depends-on): Add strstr-simple.
16962         * modules/gen-uni-tables (Depends-on): Likewise.
16963         * modules/argz (Depends-on): Add strstr.
16964
16965 2009-06-17  Bruno Haible  <bruno@clisp.org>
16966
16967         * modules/posix_spawn-internal (Depends-on): Add errno.
16968
16969 2009-06-17  Bruno Haible  <bruno@clisp.org>
16970
16971         Define missing ESTALE on Interix 3.5.
16972         * lib/errno.in.h (ESTALE): Assign a value if missing.
16973         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
16974         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
16975         missing.
16976         * doc/posix-headers/errno.texi: Mention the Interix bug.
16977         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
16978
16979 2009-06-15  Eric Blake  <ebb9@byu.net>
16980
16981         memchr, memchr2: add valgrind exception
16982         * lib/memchr.valgrind: New file.
16983         * lib/memchr2.valgrind: New file.
16984         * modules/memchr (Files): Distribute valgrind file.
16985         * modules/memchr2 (Files): Likewise.
16986
16987         docs: memchr is no longer obsolete
16988         * MODULES.html.sh: Move memchr from obsolete to string.h section.
16989         * lib/string.in.h (memchr): Simplify logic.
16990
16991 2009-06-14  Jim Meyering  <meyering@redhat.com>
16992
16993         link-follow: fix the "checking..." message to not mention trailing slash
16994         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
16995         never considered trailing slashes.
16996
16997 2009-06-14  Bruno Haible  <bruno@clisp.org>
16998
16999         * m4/memchr.m4: Mention also the bug on IA-64.
17000         * doc/posix-functions/memchr.texi: Likewise.
17001
17002 2009-06-12  Eric Blake  <ebb9@byu.net>
17003
17004         memchr: detect broken x86_64 and alpha implementations
17005         * modules/memchr-tests (Depends-on): Move mmap detection...
17006         * modules/memchr (Depends-on): ...here.
17007         (configure.ac): Set indicator.
17008         * lib/string.in.h (memchr): Declare replacement.
17009         * modules/string (Makefile.am): Trigger replacement.
17010         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
17011         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
17012         bugs.
17013         * doc/posix-functions/memchr.texi (memchr): Document the bug.
17014         * modules/getpagesize (License): Relax license.
17015
17016 2009-06-11  Bruno Haible  <bruno@clisp.org>
17017
17018         * lib/idpriv.h: Add more references.
17019
17020 2009-06-08  Bruno Haible  <bruno@clisp.org>
17021
17022         Tests for module 'idpriv-droptemp'.
17023         * modules/idpriv-droptemp-tests: New file.
17024         * tests/test-idpriv-droptemp.sh: New file.
17025         * tests/test-idpriv-droptemp.su.sh: New file.
17026         * tests/test-idpriv-droptemp.c: New file.
17027
17028         New module 'idpriv-droptemp'.
17029         * lib/idpriv-droptemp.c: New file.
17030         * modules/idpriv-droptemp: New file.
17031
17032 2009-06-08  Bruno Haible  <bruno@clisp.org>
17033
17034         Tests for module 'idpriv-drop'.
17035         * modules/idpriv-drop-tests: New file.
17036         * tests/test-idpriv-drop.sh: New file.
17037         * tests/test-idpriv-drop.su.sh: New file.
17038         * tests/test-idpriv-drop.c: New file.
17039
17040         New module 'idpriv-drop'.
17041         * lib/idpriv.h: New file.
17042         * lib-idpriv-drop.c: New file.
17043         * m4/idpriv.m4: New file.
17044         * modules/idpriv-drop: New file.
17045
17046 2009-06-08  Bruno Haible  <bruno@clisp.org>
17047
17048         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
17049         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
17050         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
17051         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
17052         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
17053         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
17054         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
17055
17056 2009-06-08  Eric Blake  <ebb9@byu.net>
17057
17058         test-strstr: use memory fence, when possible
17059         * tests/test-strstr.c (main): Use memory fence, in order to be
17060         more likely to trigger Debian bug 521737.
17061         * modules/strstr-tests (Files): Pull in additional files.
17062
17063         memchr: no longer obsolete, for wider field testing
17064         * modules/memchr (Status, Notice): Delete, this module is no
17065         longer obsolete.
17066         * modules/vasnprintf (Depends-on): Add memchr.
17067
17068 2009-06-07  Jim Meyering  <meyering@redhat.com>
17069
17070         hash: declare some functions with the warn_unused_result attribute
17071         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
17072
17073 2009-06-07  Bruno Haible  <bruno@clisp.org>
17074
17075         * tests/test-alignof.c: Don't test int64_t if it does not exist.
17076         Reported by Eric Blake.
17077
17078 2009-06-06  Eric Blake  <ebb9@byu.net>
17079
17080         test-alignof: fix typo with long double
17081         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
17082         compiler error.
17083
17084 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
17085
17086         Escape non-texinfo { and }s.
17087         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
17088         markup error.
17089
17090 2009-06-04  Jim Meyering  <meyering@redhat.com>
17091
17092         gitlog-to-changelog: don't infloop on an empty commit log
17093         * build-aux/gitlog-to-changelog: Warn about an empty log message.
17094         Reported by Boris Petersen <transacid@centerim.org>.
17095
17096 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
17097
17098         version-etc: extend for packagers
17099         Add three new configure options, intended for packagers:
17100           --with-packager="packager name"
17101           --with-packager-version="packager-specific version"
17102           --with-packager-bug-reports="packager bug reporting"
17103         An example with coreutils:
17104           $ ./configure \
17105             --with-packager=Gentoo \
17106             --with-packager-bug-report=http://bugs.gentoo.org/ \
17107             --with-packager-version="patchset 1.6"
17108           $ ./src/ls --version | head -n2
17109           ls (GNU coreutils) 7.1-dirty
17110           Packaged by Gentoo (patchset 1.6)
17111         Note that the bug reporting info via --help doesn't show up because
17112         coreutils uses its own custom emit_bug_reporting_address() implementation
17113         in src/system.h.  If it didn't, it'd look like:
17114           $ ./src/ls --help | tail -n4
17115           Report bugs to <bug-coreutils@gnu.org>.
17116           Report Gentoo bugs to <http://bugs.gentoo.org/>.
17117           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
17118           General help using GNU software: <http://www.gnu.org/gethelp/>.
17119         * lib/version-etc.c: Print new information, if provided.
17120         * m4/version-etc.m4: New file.
17121         * modules/version-etc (Files): Add m4/version-etc.m4.
17122         (configure.ac): Add gl_VERSION_ETC.
17123
17124 2009-05-31  Bruno Haible  <bruno@clisp.org>
17125
17126         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
17127         and 'int64_t'.
17128         * modules/alignof-tests (Dependencies): Add stdint.
17129         Reported by Eric Blake.
17130
17131 2009-05-31  Bruno Haible  <bruno@clisp.org>
17132
17133         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
17134         restriction due to compiler bugs.
17135         Reported by Eric Blake.
17136
17137 2009-05-31  Simon Josefsson  <simon@josefsson.org>
17138             Bruno Haible  <bruno@clisp.org>
17139
17140         Fix test-alignof failure.
17141         * lib/alignof.h (alignof_slot): New macro.
17142         (alignof_type): New macro, with the same semantics as the previous
17143         'alignof'.
17144         (alignof): Alias to alignof_slot.
17145         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
17146         check that the results are usable as constant expressions.
17147
17148 2009-05-31  Bruno Haible  <bruno@clisp.org>
17149
17150         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
17151         * tests/test-memchr.c (main): Check that memchr does not read past the
17152         first occurrence of the byte.
17153         * tests/test-strstr.c (main): Update comment.
17154         Suggested by Eric Blake.
17155
17156 2009-05-30  Bruno Haible  <bruno@clisp.org>
17157
17158         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
17159         detail how to use dumpbin.
17160         Reported by David Byron <dbyron@dbyron.com>.
17161
17162 2009-06-02  Simon Josefsson  <simon@josefsson.org>
17163
17164         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
17165
17166 2009-06-02  Simon Josefsson  <simon@josefsson.org>
17167
17168         * m4/manywarnings.m4: Add GCC 4.4 warnings.
17169
17170 2009-05-28  Bruno Haible  <bruno@clisp.org>
17171
17172         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
17173         build-aux/ files.
17174
17175 2009-05-28  Simon Josefsson  <simon@josefsson.org>
17176
17177         * gnulib-tool (func_import): Transform license on build-aux/ files too.
17178
17179 2009-05-27  Simon Josefsson  <simon@josefsson.org>
17180
17181         * gnulib-tool (sed_transform_main_lib_file)
17182         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
17183         regexps.
17184
17185 2009-05-26  Simon Josefsson  <simon@josefsson.org>
17186
17187         * tests/test-strstr.c: Add another self-test.
17188         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
17189         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
17190
17191 2009-05-23  Bruno Haible  <bruno@clisp.org>
17192
17193         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
17194         change.
17195
17196 2009-05-21  Bruno Haible  <bruno@clisp.org>
17197
17198         Simplify use of mode_t varargs.
17199         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
17200         uses 'mode_t' or 'int'.
17201         * lib/openat.c (openat): Likewise.
17202         * lib/open-safer.c (open_safer): Likewise.
17203         * m4/mode_t.m4: New file.
17204         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
17205         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
17206         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
17207         * modules/open (Files): Add m4/mode_t.m4.
17208         * modules/openat (Files): Likewise.
17209         * modules/fcntl-safer (Files): Likewise.
17210         Suggested by Eric Blake.
17211
17212 2009-05-21  Pádraig Brady  <P@draigbrady.com>
17213
17214         * doc/glibc-functions/fallocate.texi: New file.
17215         * doc/gnulib.texi: Include it.
17216
17217 2009-05-21  Eric Blake  <ebb9@byu.net>
17218             Bruno Haible  <bruno@clisp.org>
17219
17220         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
17221         invocations.
17222         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
17223
17224 2009-05-21  Eric Blake  <ebb9@byu.net>
17225             Bruno Haible  <bruno@clisp.org>
17226
17227         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
17228         include_next. Fix of 2008-11-20 commit.
17229         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
17230         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
17231         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
17232         NEXT_MATH_H.
17233         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
17234         instead of NEXT_MATH_H.
17235
17236 2009-05-21  Bruno Haible  <bruno@clisp.org>
17237
17238         Avoid redefinition warnings for SIZE_MAX.
17239         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
17240         Reported by Simon Josefsson.
17241
17242 2009-05-21  Bruno Haible  <bruno@clisp.org>
17243
17244         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
17245         AC_CACHE_VAL.
17246
17247 2009-05-20  Bruno Haible  <bruno@clisp.org>
17248
17249         Make zeroptr.h work on mingw.
17250         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
17251         mprotect.
17252         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
17253         * modules/memchr2-tests (configure.ac): Likewise.
17254         * modules/memcmp-tests (configure.ac): Likewise.
17255         * modules/memmem-tests (configure.ac): Likewise.
17256         * modules/memrchr-tests (configure.ac): Likewise.
17257         Reported by Simon Josefsson.
17258
17259 2009-05-20  Simon Josefsson  <simon@josefsson.org>
17260
17261         * tests/test-glob.c: Include string.h for strcmp prototype.
17262
17263 2009-05-20  Simon Josefsson  <simon@josefsson.org>
17264
17265         * modules/getdelim (Depends-on): Add explicit stdint, although it
17266         was implicitly already pulled in via realloc-posix.
17267         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
17268
17269 2009-05-20  Simon Josefsson  <simon@josefsson.org>
17270
17271         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
17272         G. Christensen" <tgc@jupiterrise.com>.
17273         * m4/sys_socket_h.m4: Check for sa_family_t.
17274         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
17275         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
17276         * tests/test-sys_socket.c: Check that sa_family_t works.
17277
17278 2009-05-18  Eric Blake  <ebb9@byu.net>
17279
17280         maint.mk: allow gnulib_dir in VPATH build
17281         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
17282
17283 2009-05-15  Jim Meyering  <meyering@redhat.com>
17284
17285         maint.mk: Give gnulib_dir a default definition.
17286         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
17287         Thus, most packages no longer need to specify this variable in cfg.mk
17288
17289 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
17290
17291         rename.m4: fix typos that would make non-mingw cross-configure fail
17292         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
17293
17294 2009-05-13  Eric Blake  <ebb9@byu.net>
17295
17296         mmap-anon: avoid out-of-order autoconf expansion
17297         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
17298         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
17299         * modules/memchr-tests (Depends-on): Add extensions.
17300         * modules/memchr2-tests (Depends-on): Add extensions.
17301         * modules/memcmp-tests (Depends-on): Add extensions.
17302         * modules/memmem-tests (Depends-on): Add extensions.
17303         * modules/memrchr-tests (Depends-on): Add extensions.
17304
17305 2009-05-13  Bruno Haible  <bruno@clisp.org>
17306
17307         Make some tests ISO C 99 compliant.
17308         * tests/zerosize-ptr.h: New file.
17309         * tests/test-memchr.c: Include zerosize-ptr.h.
17310         (main): Use a zero-size object pointer instead of NULL.
17311         * tests/test-memchr2.c: Include zerosize-ptr.h.
17312         (main): Use a zero-size object pointer instead of NULL.
17313         * tests/test-memcmp.c: Include zerosize-ptr.h.
17314         (main): Use a zero-size object pointer instead of NULL.
17315         * tests/test-memmem.c: Include zerosize-ptr.h.
17316         (main): Use a zero-size object pointer instead of NULL.
17317         * tests/test-memrchr.c: Include zerosize-ptr.h.
17318         (main): Use a zero-size object pointer instead of NULL.
17319         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
17320         m4/mmap-anon.m4.
17321         (Depends-on): Add getpagesize.
17322         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
17323         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
17324         m4/mmap-anon.m4.
17325         (Depends-on): Add getpagesize.
17326         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
17327         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
17328         m4/mmap-anon.m4.
17329         (Depends-on): Add getpagesize.
17330         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
17331         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
17332         m4/mmap-anon.m4.
17333         (Depends-on): Add getpagesize.
17334         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
17335         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
17336         m4/mmap-anon.m4.
17337         (Depends-on): Add getpagesize.
17338         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
17339
17340 2009-05-12  Bruno Haible  <bruno@clisp.org>
17341
17342         Tests for module 'alignof'.
17343         * modules/alignof-tests: New file.
17344         * tests/test-alignof.c: New file.
17345
17346 2009-05-12  Bruno Haible  <bruno@clisp.org>
17347
17348         Fix alignof macro.
17349         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
17350         vendor compilers that are always correct.
17351
17352 2009-05-12  Bruno Haible  <bruno@clisp.org>
17353
17354         Make the MAP_ANONYMOUS detection work on HP-UX 11.
17355         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
17356         not whether its fully works.
17357
17358 2009-05-12  Bruno Haible  <bruno@clisp.org>
17359
17360         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
17361
17362 2009-05-12  Jim Meyering  <meyering@redhat.com>
17363
17364         * top/maint.mk: Adjust backslash alignment.
17365
17366 2009-05-11  Simon Josefsson  <simon@josefsson.org>
17367
17368         * top/maint.mk: Make $(srcdir)/build-aux configurable.
17369
17370 2009-05-11  Eric Blake  <ebb9@byu.net>
17371
17372         argp: avoid undefined behavior
17373         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
17374         macros.
17375
17376 2009-05-08  Simon Josefsson  <simon@josefsson.org>
17377
17378         * tests/test-vc-list-files-git.sh: Do git config of user.email and
17379         user.name to prevent git commit from complaining.
17380
17381 2009-05-10  Bruno Haible  <bruno@clisp.org>
17382
17383         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
17384         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
17385         it rewrites every file name only once.
17386         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
17387
17388 2009-05-08  Bruno Haible  <bruno@clisp.org>
17389
17390         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
17391         instead of 'max'.
17392
17393 2009-05-08  Simon Josefsson  <simon@josefsson.org>
17394
17395         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
17396         sockaddr_storage test.
17397
17398 2009-05-07  Simon Josefsson  <simon@josefsson.org>
17399
17400         * modules/sys_socket (Makefile.am): Substitute
17401         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
17402         * m4/sys_socket_h.m4: Check for sockaddr_storage.
17403         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
17404         * tests/test-sys_socket.c: Check sockaddr_storage.
17405
17406 2009-05-08  Bruno Haible  <bruno@clisp.org>
17407
17408         New module 'alignof'.
17409         * lib/alignof.h: New file.
17410         * modules/alignof: New file.
17411
17412 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
17413             Bruno Haible  <bruno@clisp.org>
17414
17415         Fix test-file-has-acl on FreeBSD.
17416         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
17417         mask is implicitly added.
17418         * tests/test-file-has-acl.c: Include <signal.h>.
17419         (main): Terminate the test after 5 seconds.
17420         * modules/acl-tests (configure.ac): Check for alarm function.
17421
17422 2009-05-04  Bruno Haible  <bruno@clisp.org>
17423
17424         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
17425         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
17426         * modules/errno (configure.ac): Drop AC_REQUIRE.
17427         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
17428         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
17429
17430 2009-05-04  Simon Josefsson  <simon@josefsson.org>
17431
17432         * modules/glob-tests: New module.
17433         * tests/test-glob.c: Add.
17434
17435 2009-05-04  Simon Josefsson  <simon@josefsson.org>
17436
17437         * modules/fnmatch-tests: New module.
17438         * tests/test-fnmatch.c: Add.
17439
17440 2009-05-04  Eric Blake  <ebb9@byu.net>
17441
17442         maint: make the new no-submodule-changes rule VPATH-safe
17443         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
17444
17445 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
17446             Bruno Haible  <bruno@clisp.org>
17447
17448         acl: Fix infinite loop on FreeBSD.
17449         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
17450         of return value from acl_get_entry.
17451         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
17452         Likewise.
17453
17454 2009-05-03  Bruno Haible  <bruno@clisp.org>
17455
17456         * lib/acl-internal.h (acl_entries): Clarify return value.
17457         * lib/acl_entries.c (acl_entries): Likewise.
17458
17459 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
17460
17461         Bug fix in acl module.
17462         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
17463
17464 2009-05-03  Bruno Haible  <bruno@clisp.org>
17465
17466         Create gperf-generated file in the source dir, not in the build dir.
17467         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
17468         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
17469         * modules/unicase/locale-language (unicase/locale-languages.h):
17470         Likewise.
17471         * modules/unicase/special-casing (unicase/special-casing-table.h):
17472         Likewise.
17473         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
17474         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
17475         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
17476         Reported by Ralf Wildenhues.
17477
17478 2009-05-03  Bruno Haible  <bruno@clisp.org>
17479
17480         * modules/fnmatch (Description, configure.ac): Taken from
17481         fnmatch-posix.
17482         * modules/fnmatch-posix: Turn into a symbolic reference to the
17483         'fnmatch' module, and deprecate.
17484         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
17485
17486 2009-05-03  Bruno Haible  <bruno@clisp.org>
17487
17488         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
17489         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
17490         Reported by Ralf Wildenhues.
17491
17492 2009-05-04  Simon Josefsson  <simon@josefsson.org>
17493
17494         * m4/fnmatch.m4: Fix fnmatch re-define.
17495
17496 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
17497
17498         priv-set: new module and tests; adapt write-any-file
17499         * lib/priv-set.c: New file.
17500         * lib/priv-set.h: New file.
17501         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
17502         * lib/write-any-file.c: Simplify by using priv-set module.
17503         * m4/priv-set.m4: New file.
17504         * modules/priv-set: New file.
17505         * modules/unlinkdir: Add dependency on priv-set module.
17506         * modules/write-any-file: Likewise.
17507
17508         Tests for module 'priv-set'.
17509         * modules/priv-set-tests: New file.
17510         * tests/test-priv-set.c: New file.
17511
17512 2009-05-03  Jim Meyering  <meyering@redhat.com>
17513             Bruno Haible  <bruno@clisp.org>
17514
17515         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
17516         use the converted UTF-8 variant of the name instead.
17517
17518 2009-05-03  Jim Meyering  <meyering@redhat.com>
17519
17520         tests: tighten some getdate tests
17521         * tests/test-getdate.c (main): Tighten tests: require equality,
17522         not just greater than.  Set TZ envvar to UTC0.
17523
17524 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
17525
17526         getdate: correctly interpret "next monday" when run on a Monday
17527         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
17528         that e.g., "next tues" (when run on a tuesday) results in a date
17529         that is one week in the future, and not today's date.
17530         I.e., add a week when the wday is the same as the current one.
17531         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
17532         and earlier by Martin Bernreuther and Jan Minář.
17533         * tests/test-getdate.c (main): Check that "next DAY" is always in
17534         the future and that "last DAY" is always in the past.
17535
17536 2009-05-02  Jim Meyering  <meyering@redhat.com>
17537
17538         build: ensure that a release build fails when a submodule is unclean
17539         * top/maint.mk (no-submodule-changes): New rule.
17540         (alpha beta major): Depend on it.
17541
17542 2009-05-02  Bruno Haible  <bruno@clisp.org>
17543
17544         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
17545         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
17546         shell variable gl_fnmatch_required to detect which variant is
17547         requested.
17548         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
17549         gl_FUNC_FNMATCH_POSIX.
17550         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
17551         exclude fnmatch-posix.
17552
17553 2009-05-02  Bruno Haible  <bruno@clisp.org>
17554
17555         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
17556         * modules/mbsrtowcs (License): Change to LGPLv2+.
17557         * modules/strnlen1 (License): Likewise.
17558         Reported by Simon Josefsson.
17559
17560 2009-05-02  Bruno Haible  <bruno@clisp.org>
17561
17562         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
17563         "cross".
17564         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
17565         gnulib-tool was called with option --source-base=lib.
17566
17567 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17568
17569         Use automake *-local hooks without commands, for extensibility.
17570         * modules/localcharset (Makefile.am): Rename install-exec-local
17571         rule to install-exec-localcharset, and make it a prerequisite of
17572         install-exec-local.  Likewise, rename the uninstall-local rule to
17573         uninstall-localcharset, and make it a prerequisite of the former.
17574
17575 2009-05-01  Bruno Haible  <bruno@clisp.org>
17576
17577         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
17578         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
17579         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
17580         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
17581         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
17582         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
17583         m4/locale-zh.m4, m4/codeset.m4.
17584
17585         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
17586         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
17587         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
17588         m4/locale-zh.m4.
17589
17590         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
17591         REPLACE_WCRTOMB if mbstate_t must be replaced.
17592         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
17593         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
17594
17595 2009-05-01  Bruno Haible  <bruno@clisp.org>
17596
17597         Avoid compiler warnings when redefining macros defined by <libintl.h>.
17598         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
17599         dngettext, dcngettext, textdomain, bindtextdomain,
17600         bind_textdomain_codeset): Undefine before redefining.
17601
17602 2009-04-30  Bruno Haible  <bruno@clisp.org>
17603
17604         Fix bug introduced on 2009-04-25.
17605         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
17606         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
17607         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
17608         is defined.
17609         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
17610         is defined.
17611         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
17612         is defined.
17613         Reported by Elbert_Pol <elbert.pol@gmail.com>.
17614
17615 2009-04-28  Bruno Haible  <bruno@clisp.org>
17616
17617         Comment tweaks.
17618         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
17619         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
17620         * lib/unicase.h (u*_casexfrm): Likewise.
17621         Reported by Paolo Bonzini.
17622
17623 2009-04-28  Bruno Haible  <bruno@clisp.org>
17624
17625         Fix a compilation error.
17626         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
17627         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
17628         Reported by Jim Meyering.
17629
17630 2009-04-27  Bruno Haible  <bruno@clisp.org>
17631
17632         New module 'libunistring'.
17633         * modules/libunistring: New file.
17634         * m4/libunistring.m4: New file.
17635         * MODULES.html.sh (Unicode string functions): Add it.
17636
17637 2009-04-27  Eric Blake  <ebb9@byu.net>
17638
17639         maint.mk: allow package-specific header to provide <config.h>
17640         * top/maint.mk (sc_require_config_h): New variable.
17641         (sc_require_config_h, sc_require_config_h_first): Use it.
17642
17643 2009-04-27  Simon Josefsson  <simon@josefsson.org>
17644
17645         * top/maint.mk (sc_avoid_if_before_free): Except
17646         useless-if-before-free script.
17647
17648 2009-04-27  Eric Blake  <ebb9@byu.net>
17649
17650         maintainer-makefile: depend on all required helper scripts
17651         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
17652         useless-if-before-free.
17653         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
17654         version, rather than assuming gnulib checkout is available.
17655         Reported by Simen Josefsson.
17656
17657 2009-04-26  Bruno Haible  <bruno@clisp.org>
17658
17659         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
17660         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
17661         "../" or "..".
17662
17663 2009-04-26  Bruno Haible  <bruno@clisp.org>
17664
17665         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
17666         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
17667         AC_LIB_HAVE_LINKFLAGS.
17668
17669 2009-04-26  Bruno Haible  <bruno@clisp.org>
17670
17671         Simplify calling convention of u*_conv_from_encoding.
17672         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
17673         u32_conv_from_encoding): Expect a resultbuf argument and return the
17674         result directly as a pointer.
17675         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
17676         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
17677         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
17678         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
17679         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
17680         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
17681         Update.
17682         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
17683         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
17684         * lib/vasnprintf.c (VASNPRINTF): Update.
17685         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
17686         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
17687         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
17688         * NEWS: Mention the change.
17689
17690 2009-04-26  Bruno Haible  <bruno@clisp.org>
17691
17692         Simplify calling convention of u*_conv_to_encoding.
17693         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
17694         u32_conv_to_encoding): Expect a resultbuf argument and return the
17695         result directly as a pointer.
17696         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
17697         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
17698         freeing scaled_offsets if mem_iconveha failed.
17699         * lib/unicase/u-casexfrm.h (FUNC): Update.
17700         * lib/uninorm/u-normxfrm.h (FUNC): Update.
17701         * lib/vasnprintf.c (VASNPRINTF): Update.
17702         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
17703         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
17704         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
17705         * NEWS: Mention the change.
17706
17707 2009-04-26  Bruno Haible  <bruno@clisp.org>
17708
17709         Avoid test failures on AIX and OSF/1.
17710         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
17711         malloc(0).
17712         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
17713         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
17714         Likewise.
17715         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
17716         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
17717         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
17718         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
17719         * doc/posix-functions/malloc.texi: Document the portability problem
17720         related to malloc(0).
17721
17722 2009-04-26  Bruno Haible  <bruno@clisp.org>
17723
17724         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
17725         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
17726         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
17727
17728 2009-04-25  Bruno Haible  <bruno@clisp.org>
17729
17730         Avoid link error when creating a namespace clean library.
17731         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
17732         as macro with arguments if already defined as an alias.
17733         * lib/signbitf.c (gl_signbitf): Don't undefine.
17734         * lib/signbitd.c (gl_signbitd): Don't undefine.
17735         * lib/signbitl.c (gl_signbitl): Don't undefine.
17736
17737 2009-04-25  Jim Meyering  <meyering@redhat.com>
17738
17739         vc-list-files: fix another quoting bug
17740         * build-aux/vc-list-files: Avoid sed backslash expansion
17741         of pathological directory names.
17742
17743 2009-04-25  Eric Blake  <ebb9@byu.net>
17744
17745         vc-list-files: fix shell quoting error
17746         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
17747         timestamp.
17748
17749 2009-04-25  Jim Meyering  <meyering@redhat.com>
17750
17751         vc-list-files: restore lost functionality with subdir argument
17752         * build-aux/vc-list-files: When given a non-"." sub-directory
17753         argument, substitute the $dir/ prefix back onto each resulting name.
17754         Otherwise, coreutils' root_tests check would fail.
17755
17756 2009-04-24  Eric Blake  <ebb9@byu.net>
17757
17758         vc-list-files: ignore git symlinks
17759         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
17760         than ls-files, to ignore git symlinks.
17761
17762         maint.mk: import improvements from m4
17763         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
17764         (move_if_change): Delete unused macro.
17765         (news-date-check, vc-diff-check): Support VPATH builds.
17766         (announcement): Likewise.  Split --bootstrap-tools list...
17767         (boostrap-tools): ...into separate list, which can be overridden
17768         in cfg.mk.
17769         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
17770         requiring dependency on useless-if-before-free module.
17771         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
17772         Support VPATH builds.
17773
17774 2009-04-24  Jim Meyering  <meyering@redhat.com>
17775
17776         maint.mk: remove coreutils-specific rules and variables
17777         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
17778         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
17779         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
17780
17781         maint.mk: remove obsolete rule
17782         * top/maint.mk (rel-check): Remove rule.
17783         (WGET, WGETFLAGS): Remove now-unused variables.
17784
17785 2009-04-24  Simon Josefsson  <simon@josefsson.org>
17786
17787         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
17788         consistency.
17789
17790         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
17791         '$(PATH_SEPARATOR)' instead of ':'.
17792
17793 2009-04-24  Simon Josefsson  <simon@josefsson.org>
17794
17795         * lib/getopt1.c (main): Use 'const' for static array.
17796
17797 2009-04-24  Simon Josefsson  <simon@josefsson.org>
17798
17799         * top/maint.mk: Sync with coreutils.
17800         * NEWS: Explain incompatibilities.
17801
17802 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17803             Bruno Haible  <bruno@clisp.org>
17804
17805         Fix cross-compilation results.
17806         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
17807         statement, as third argument of AC_TRY_RUN.
17808         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
17809         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
17810         Likewise.
17811         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
17812         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
17813         Likewise.
17814         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
17815         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
17816         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
17817
17818 2009-04-20  Bruno Haible  <bruno@clisp.org>
17819
17820         Avoid test failure on mingw.
17821         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
17822
17823 2009-04-20  Bruno Haible  <bruno@clisp.org>
17824
17825         Avoid compilation error on mingw.
17826         * modules/localename-tests (Depends-on): Add locale.
17827
17828 2009-04-19  Bruno Haible  <bruno@clisp.org>
17829
17830         Support for building a shared library on Windows platforms.
17831         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
17832         (main): Test the presence of UNINORM_NFC here.
17833         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
17834         (main): Test the presence of UNINORM_NFD here.
17835         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
17836         (main): Test the presence of UNINORM_NFKC here.
17837         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
17838         (main): Test the presence of UNINORM_NFKD here.
17839
17840 2009-04-19  Bruno Haible  <bruno@clisp.org>
17841
17842         Avoid a compiler warning.
17843         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
17844         Change type of variable 'sequence'.
17845
17846 2009-04-19  Bruno Haible  <bruno@clisp.org>
17847
17848         * modules/configmake (Makefile.am): When the contents of configmake.h
17849         does not change, arrange to preserve its modification time.
17850
17851 2009-04-17  Simon Josefsson  <simon@josefsson.org>
17852
17853         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
17854         gettext domain.
17855
17856 2009-04-16  Jim Meyering  <meyering@redhat.com>
17857
17858         useless-if-before-free: improve conversion code
17859         * build-aux/useless-if-before-free: Adjust code-in-comment to match
17860         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
17861
17862 2009-04-14  Bruno Haible  <bruno@clisp.org>
17863
17864         * modules/fcntl (Depends-on): Add extensions.
17865         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
17866
17867 2009-04-12  Ben Pfaff  <blp@gnu.org>
17868
17869         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
17870         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
17871
17872 2009-03-20  Ben Pfaff  <blp@gnu.org>
17873
17874         Make rename replace existing destinations on Windows.
17875         * m4/rename.m4: Add test for Mingw.
17876         * lib/rename.c: Add rename replacement that uses MoveFileEx with
17877         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
17878         * doc/posix-functions/rename.texi: Document.
17879
17880 2009-04-10  Bruno Haible  <bruno@clisp.org>
17881
17882         New include file "iconveh.h".
17883         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
17884         * lib/striconveh.h: Include it.
17885         (enum iconv_ilseq_handler): Remove definition.
17886         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
17887         striconveh.h.
17888         * lib/striconveha.c: Include striconveh.h.
17889         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
17890         * modules/striconveh (Files): Add lib/iconveh.h.
17891         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
17892         lib/striconveh.h.
17893
17894 2009-04-10  Bruno Haible  <bruno@clisp.org>
17895
17896         * lib/uniconv.h: Update comment.
17897
17898 2009-04-10  Bruno Haible  <bruno@clisp.org>
17899
17900         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
17901         always.
17902         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
17903         * lib/unistr/u16-mbtouc-aux.c: Likewise.
17904         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
17905         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
17906         "unistring-notinline.h", so that the function gets defined always.
17907         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
17908         * lib/unistr/u8-uctomb.c: Likewise.
17909         * lib/unistr/u16-mbtouc.c: Likewise.
17910         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
17911         * lib/unistr/u16-uctomb.c: Likewise.
17912         * lib/unistr/u32-mbtouc.c: Likewise.
17913         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
17914         * lib/unistr/u32-uctomb.c: Likewise.
17915
17916 2009-04-10  Bruno Haible  <bruno@clisp.org>
17917
17918         Mark 'utime' obsolete.
17919         * modules/utime (Status, Notice): New sections.
17920         Suggested by Jim Meyering.
17921
17922         Fix cross-compile guess for utime test.
17923         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
17924         autoconf.
17925         * doc/posix-functions/utime.texi: Give more precisions.
17926         Reported by Jan <ipif@ymail.com>.
17927
17928 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
17929
17930         filevercmp: correct today's change
17931         * lib/filevercmp.c: Also handle coreutils' test inputs.
17932         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
17933
17934         Fix regression in 'filevercmp' module. Thanks Sven Joachim
17935         for reporting it.
17936         * lib/filevercmp.c: Special handle for "", "." and "..".
17937         * tests/test-filevercmp.c: Enlarge the set suite.
17938
17939 2009-04-07  Jim Meyering  <meyering@redhat.com>
17940
17941         useless-if-before-free: show how to remove braced useless free, too
17942         * build-aux/useless-if-before-free: still only in a comment, though.
17943
17944 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
17945
17946         maint.mk: import changes to syntax-check macros from coreutils
17947         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
17948         Use them in the relevant macros.
17949
17950 2009-04-06  Bruno Haible  <bruno@clisp.org>
17951
17952         Fix unportable use of bit-fields.
17953         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
17954         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
17955         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
17956
17957 2009-04-06  Bruno Haible  <bruno@clisp.org>
17958
17959         Avoid test failures on AIX and OSF/1.
17960         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
17961         that malloc(0) = NULL.
17962         * tests/unicase/test-u8-tolower.c (check): Likewise.
17963         * tests/unicase/test-u8-totitle.c (check): Likewise.
17964         * tests/unicase/test-u8-toupper.c (check): Likewise.
17965         * tests/unicase/test-u16-casefold.c (check): Likewise.
17966         * tests/unicase/test-u16-tolower.c (check): Likewise.
17967         * tests/unicase/test-u16-totitle.c (check): Likewise.
17968         * tests/unicase/test-u16-toupper.c (check): Likewise.
17969         * tests/unicase/test-u32-casefold.c (check): Likewise.
17970         * tests/unicase/test-u32-tolower.c (check): Likewise.
17971         * tests/unicase/test-u32-totitle.c (check): Likewise.
17972         * tests/unicase/test-u32-toupper.c (check): Likewise.
17973         * tests/uninorm/test-u8-nfc.c (check): Likewise.
17974         * tests/uninorm/test-u8-nfd.c (check): Likewise.
17975         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
17976         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
17977         * tests/uninorm/test-u16-nfc.c (check): Likewise.
17978         * tests/uninorm/test-u16-nfd.c (check): Likewise.
17979         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
17980         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
17981         * tests/uninorm/test-u32-nfc.c (check): Likewise.
17982         * tests/uninorm/test-u32-nfd.c (check): Likewise.
17983         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
17984         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
17985
17986 2009-04-05  Bruno Haible  <bruno@clisp.org>
17987
17988         Work around an autoconf limitation.
17989         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
17990         comment line if it would be longer than 3 KB.
17991
17992 2009-04-05  Bruno Haible  <bruno@clisp.org>
17993
17994         Avoid test failure with libiconv-1.13.
17995         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
17996         of the expected test results.
17997
17998 2009-04-05  Bruno Haible  <bruno@clisp.org>
17999
18000         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
18001         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
18002         that it should be installed.
18003
18004 2009-04-05  Bruno Haible  <bruno@clisp.org>
18005
18006         * gnulib-tool: New option --copy-file.
18007         (func_usage): Document it.
18008         (func_dest_tmpfilename): Moved out of func_import.
18009         (func_add_file, func_update_file): New functions, extracted from
18010         func_import.
18011         (func_import): Update.
18012
18013 2009-04-05  Karl Berry  <karl@gnu.org>
18014
18015         * README: prominently mention gnulib-tool.
18016         Rearrange sections so getting the code is near the top.
18017
18018 2009-04-05  Bruno Haible  <bruno@clisp.org>
18019
18020         * lib/unicase.h: Mention u*_cmp2.
18021         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
18022         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
18023         * lib/unicase/ulc-casecmp.c: Likewise.
18024         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
18025         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
18026         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
18027         unistr/u8-cmp.
18028         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
18029         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
18030         unistr/u16-cmp.
18031         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
18032         unistr/u32-cmp.
18033
18034         * lib/uninorm.h: Mention u*_cmp2.
18035         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
18036         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
18037         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
18038         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
18039         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
18040         unistr/u8-cmp.
18041         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
18042         unistr/u16-cmp.
18043         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
18044         unistr/u32-cmp.
18045
18046         New module 'unistr/u32-cmp2'.
18047         * lib/unistr/u32-cmp2.c: New file.
18048         * modules/unistr/u32-cmp2: New file.
18049
18050         New module 'unistr/u16-cmp2'.
18051         * lib/unistr/u16-cmp2.c: New file.
18052         * modules/unistr/u16-cmp2: New file.
18053
18054         New module 'unistr/u8-cmp2'.
18055         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
18056         * lib/unistr/u8-cmp2.c: New file.
18057         * lib/unistr/u-cmp2.h: New file.
18058         * modules/unistr/u8-cmp2: New file.
18059
18060 2009-04-05  Bruno Haible  <bruno@clisp.org>
18061
18062         * lib/unictype.h (uc_property_is_valid): New macro.
18063         * tests/unictype/test-pr_byname.c (main): Use it.
18064
18065         * lib/unistr.h: Doc fixes.
18066         * lib/uniconv.h: Doc fixes.
18067         * lib/unictype.h: Doc fixes.
18068
18069 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
18070
18071         Port coreutils 7.2 to Solaris 8.
18072
18073         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
18074         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
18075         for Solaris 8.  This is a bit of a hack, as it means it's the
18076         caller's responsibility to add -lnsl if needed, but most likely it
18077         won't be needed since only getaddrinfo uses this and getaddrinfo
18078         isn't needed on Solaris 8.
18079
18080         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
18081         problem to Solaris 8 encountered with coreutils 7.2, which
18082         resulted in a message "fnmatch.c:292: warning: passing argument 4
18083         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
18084         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
18085
18086 2009-04-03  Simon Josefsson  <simon@josefsson.org>
18087
18088         * m4/ld-version-script.m4: Add FIXME comment.
18089
18090 2009-04-02  Simon Josefsson  <simon@josefsson.org>
18091
18092         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
18093         SOVERSION variable.
18094
18095 2009-04-02  Bruno Haible  <bruno@clisp.org>
18096
18097         * Makefile (info, html, dvi, pdf): Combine the rules.
18098         Suggested by Jim Meyering.
18099
18100 2009-04-01  Bruno Haible  <bruno@clisp.org>
18101
18102         * Makefile (info, html, dvi, pdf): New targets.
18103         Reported by Reuben Thomas <rrt@sc3d.org>.
18104
18105 2009-04-01  Bruno Haible  <bruno@clisp.org>
18106
18107         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
18108         can be put into PATH.
18109         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
18110
18111 2009-04-01  Bruno Haible  <bruno@clisp.org>
18112
18113         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
18114
18115 2009-04-01  Bruno Haible  <bruno@clisp.org>
18116
18117         Rename module 'visibility'.
18118         * modules/lib-symbol-visibility: Renamed from modules/visibility.
18119         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
18120         * doc/gnulib.texi: Update.
18121         * MODULES.html.sh (Misc): Update.
18122         * NEWS: Mention the change.
18123
18124 2009-04-01  Simon Josefsson  <simon@josefsson.org>
18125
18126         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
18127         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
18128         Eric Blake <ebb9@byu.net> for review.
18129         * MODULES.html.sh: Add lib-msvc-compat.
18130         * doc/gnulib.texi: Link to new section.
18131         * m4/ld-output-def.m4: New file.
18132         * doc/ld-output-def.texi: New file.
18133
18134 2009-04-01  Simon Josefsson  <simon@josefsson.org>
18135
18136         Rename ld-version-script to lib-symbol-versions.  Suggested by
18137         Bruno Haible <bruno@clisp.org>.
18138         * modules/ld-version-script: Renamed to lib-symbol-versions.
18139         * doc/ld-version-script.texi: Fix module name.
18140         * MODULES.html.sh: Add lib-symbol-versions.
18141
18142 2009-03-31  Simon Josefsson  <simon@josefsson.org>
18143
18144         * modules/u64-tests: New file.
18145         * tests/test-u64.c: New file.
18146
18147 2009-03-04  Simon Josefsson  <simon@josefsson.org>
18148
18149         * MODULES.html.sh: Mention u64.
18150         * modules/u64: New module.
18151         * modules/crypto/sha512: Depend on u64 module instead of providing
18152         u64.h.
18153
18154 2009-03-27  Eric Blake  <ebb9@byu.net>
18155
18156         test-strerror: make debugging EAI_SYSTEM easier
18157         * modules/getaddrinfo-tests (Depends-on): Add strerror.
18158         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
18159         failure was EAI_SYSTEM.
18160
18161 2009-03-25  Bruno Haible  <bruno@clisp.org>
18162
18163         Fix a problem with --enable-relocatable on Solaris 7.
18164         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
18165         since 2008-02-24.
18166
18167 2009-03-25  Eric Blake  <ebb9@byu.net>
18168
18169         test-sockets: avoid gcc warning
18170         * tests/test-sockets.c (main): Silence compiler warning.
18171
18172 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
18173
18174         New modules nproc, pthread, contributed by Glen Lenker.
18175
18176         * MODULES.html.sh: Add pthread, nproc.
18177         * lib/nproc.c: New file.
18178         * lib/nproc.h: New file.
18179         * lib/pthread.in.h: New file.
18180         * m4/pthread.m4: New file.
18181         * modules/nproc: New file.
18182         * modules/pthread: New file.
18183
18184 2009-03-24  Simon Josefsson  <simon@josefsson.org>
18185
18186         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
18187         New variable.
18188
18189 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
18190
18191         filevercmp: handle simple~ and numbered.~3~ backup suffixes
18192         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
18193         * tests/test-filevercmp.c: Add tests for backup suffixes.
18194
18195 2009-03-24  Simon Josefsson  <simon@josefsson.org>
18196
18197         * modules/stdlib (Depends-on): Add stdint, needed when defining
18198         struct random_data on, for example, HP-UX 10.20.  Reported by
18199         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18200
18201 2009-03-24  Simon Josefsson  <simon@josefsson.org>
18202
18203         * lib/readline.c (readline): Call fflush on stdout after printing
18204         prompt.
18205
18206 2009-03-20  Bruno Haible  <bruno@clisp.org>
18207
18208         Remove dependency from 'close' module to -lws2_32 on native Windows.
18209         * lib/close-hook.h: New file.
18210         * lib/close-hook.c: New file.
18211         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
18212         w32sock.h.
18213         (_gl_close_fd_maybe_socket): Remove function.
18214         (rpl_close): Invoke execute_all_close_hooks instead of
18215         _gl_close_fd_maybe_socket.
18216         * lib/sockets.c: Include close-hook.h, w32sock.h.
18217         (close_fd_maybe_socket): New function, essentially from lib/close.c.
18218         (close_sockets_hook): New variable.
18219         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
18220         (gl_sockets_cleanup): Unregister it.
18221         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
18222         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
18223         * modules/close-hook: New file.
18224         * modules/close (Files): Remove lib/w32sock.h.
18225         (Depends-on): Add close-hook.
18226         (Link): Remove section.
18227         * modules/sockets (Files): Add lib/w32sock.h.
18228         (Depends-on): Add close-hook.
18229         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
18230         invocation.
18231         * NEWS: Mention that LIB_CLOSE is gone.
18232
18233 2009-03-23  Eric Blake  <ebb9@byu.net>
18234
18235         signal-tests: test previous patch
18236         * tests/test-signal.c: New file.
18237         * modules/signal-tests: Likewise.
18238
18239         signal.h: always support 'volatile sig_atomic_t'
18240         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
18241         (gl_SIGNAL_H_DEFAULTS): Add a default.
18242         * modules/signal (Makefile.am): Substitute if needed.
18243         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
18244         users can blindly add volatile.
18245         * doc/posix-headers/signal.texi (signal.h): Document it.
18246         Reported by Matthew Woehlke.
18247
18248 2009-03-23  Jim Meyering  <meyering@redhat.com>
18249
18250         pathmax: PATH_MAX: use pathconf only when available
18251         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
18252         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
18253         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
18254         This avoids a link failure in a PSP cross-compilation environment
18255         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
18256
18257         * lib/vasnprintf.c (divide): Fix typo in comment.
18258
18259 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18260
18261         * gnulib-tool (func_filter_filelist): Fix comment.
18262
18263 2009-03-20  Bruno Haible  <bruno@clisp.org>
18264
18265         Make sockets.h self-contained.
18266         * lib/sockets.c: Include sockets.h first.
18267         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
18268
18269 2009-03-19  Eric Blake  <ebb9@byu.net>
18270
18271         doc: mention more functions added in cygwin 1.7.0
18272         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
18273         addition.
18274         * doc/posix-functions/log2f.texi: Likewise.
18275
18276 2009-03-19  Jim Meyering  <meyering@redhat.com>
18277
18278         fsusage: avoid syntax error due to statement-before-declaration
18279         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
18280         after all declarations.  Reported by Matthew Woehlke in
18281         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
18282
18283 2009-03-18  Eric Blake  <ebb9@byu.net>
18284
18285         build-aux/compile: sync from automake
18286         * build-aux/compile: New file, from automake.
18287         * config/srclist.txt: Mention build-aux/compile.
18288
18289 2009-03-17  Bruno Haible  <bruno@clisp.org>
18290
18291         * lib/git-merge-changelog.c: Fix typo in comment.
18292         Reported by Reuben Thomas <rrt@sc3d.org>.
18293
18294 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
18295
18296         * m4/regex.m4: update and improve help for
18297         --without-included-regex.
18298
18299 2009-03-17  Simon Josefsson  <simon@josefsson.org>
18300
18301         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
18302         failure on missing include files.
18303
18304 2009-03-17  Eric Blake  <ebb9@byu.net>
18305
18306         doc: mention more functions added in cygwin 1.7.0
18307         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
18308         addition.
18309         * doc/posix-functions/fwscanf.texi: Likewise.
18310         * doc/posix-functions/swprintf.texi: Likewise.
18311         * doc/posix-functions/swscanf.texi: Likewise.
18312         * doc/posix-functions/vfwprintf.texi: Likewise.
18313         * doc/posix-functions/vfwscanf.texi: Likewise.
18314         * doc/posix-functions/vswprintf.texi: Likewise.
18315         * doc/posix-functions/vswscanf.texi: Likewise.
18316         * doc/posix-functions/vwprintf.texi: Likewise.
18317         * doc/posix-functions/vwscanf.texi: Likewise.
18318         * doc/posix-functions/wcscasecmp.texi: Likewise.
18319         * doc/posix-functions/wcsdup.texi: Likewise.
18320         * doc/posix-functions/wcsftime.texi: Likewise.
18321         * doc/posix-functions/wcsncasecmp.texi: Likewise.
18322         * doc/posix-functions/wprintf.texi: Likewise.
18323         * doc/posix-functions/wscanf.texi: Likewise.
18324         * doc/glibc-functions/gethostbyname2.texi: Likewise.
18325
18326 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18327
18328         maint.mk: really add $(AM_MAKEFLAGS)
18329         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
18330         was inadvertently omitted in the last commit.
18331         Spotted by Bruno Haible.
18332
18333         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
18334         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
18335         $(AM_MAKEFLAGS)' rather than plain `make'.
18336
18337         gnulib-tool: execute $MAKE not make
18338         * gnulib-tool: Default $MAKE to 'make'.
18339         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
18340         than make.  Initialize $MAKE in the do-autobuild script.
18341
18342         gnulib-tool: use $MAKE not make in generated files
18343         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
18344         make, in generated files.  Initialize $MAKE in the do-autobuild
18345         script.
18346
18347         * top/GNUmakefile (_have-git-version-gen): Fix typo.
18348
18349         GNUmakefile: disable parallelism only for multiple, recursive targets
18350         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
18351         additions in the Makefile.
18352         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
18353         by Automake.
18354         (.NOTPARALLEL): Only disable parallel builds if multiple targets
18355         are listed on the command line and at least one of them is
18356         listed in $(ALL_RECURSIVE_TARGETS).
18357
18358 2009-03-14  Bruno Haible  <bruno@clisp.org>
18359
18360         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
18361         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
18362         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
18363         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
18364         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
18365         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
18366         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
18367         unistr/u8-uctomb.
18368         * modules/unistr/u8-strchr (Depends-on): Likewise.
18369         * modules/unistr/u8-strrchr (Depends-on): Likewise.
18370         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
18371         unistr/u16-uctomb.
18372         * modules/unistr/u16-strchr (Depends-on): Likewise.
18373         * modules/unistr/u16-strrchr (Depends-on): Likewise.
18374
18375 2009-03-12  Bruno Haible  <bruno@clisp.org>
18376
18377         Work around select() bug on Interix 3.5.
18378         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
18379         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
18380         * m4/select.m4: New file.
18381         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
18382         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
18383         * modules/select (Files): Add m4/select.m4.
18384         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
18385         * modules/nanosleep (Depends-on): Add select.
18386         * modules/poll (Depends-on): Likewise.
18387         * doc/posix-functions/select.texi: Mention the Interix bug.
18388         Reported by Markus Duft <mduft@gentoo.org>.
18389
18390         * lib/select.c: Renamed from lib/winsock-select.c.
18391         * modules/select (Files): Add lib/select.c, remove
18392         lib/winsock-select.c.
18393         (configure.ac): Update.
18394
18395 2009-03-12  Jim Meyering  <meyering@redhat.com>
18396
18397         avoid gcc warnings about unused macro definitions
18398         * lib/readtokens.c (STREQ): Remove unused definition.
18399         * lib/xmalloc.c (SIZE_MAX): Likewise.
18400         * lib/openat-die.c (N_): Likewise.
18401         * lib/mountlist.c (SIZE_MAX): Remove definition.
18402         Instead, include <stdint.h>.
18403         * lib/readutmp.c: Likewise.
18404         * modules/readutmp (Depends-on): Add stdint.
18405         * modules/mountlist (Depends-on): Add stdint.
18406         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
18407
18408 2009-03-10  Bruno Haible  <bruno@clisp.org>
18409
18410         Tests for module 'mbmemcasecoll'.
18411         * modules/mbmemcasecoll-tests: New file.
18412         * tests/test-mbmemcasecoll1.sh: New file.
18413         * tests/test-mbmemcasecoll2.sh: New file.
18414         * tests/test-mbmemcasecoll3.sh: New file.
18415         * tests/test-mbmemcasecoll.c: New file.
18416
18417         New module 'mbmemcasecoll'.
18418         * lib/mbmemcasecoll.h: New file.
18419         * lib/mbmemcasecoll.c: New file.
18420         * modules/mbmemcasecoll: New file.
18421
18422         * tests/test-mbmemcasecmp.h: New file, extracted from
18423         tests/test-mbmemcasecmp.c.
18424         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
18425         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
18426         (main): Update.
18427         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
18428
18429 2009-03-09  Bruno Haible  <bruno@clisp.org>
18430
18431         Tests for module 'mbmemcasecmp'.
18432         * modules/mbmemcasecmp-tests: New file.
18433         * tests/test-mbmemcasecmp1.sh: New file.
18434         * tests/test-mbmemcasecmp2.sh: New file.
18435         * tests/test-mbmemcasecmp3.sh: New file.
18436         * tests/test-mbmemcasecmp.c: New file.
18437
18438         New module 'mbmemcasecmp'.
18439         * lib/mbmemcasecmp.h: New file.
18440         * lib/mbmemcasecmp.c: New file.
18441         * modules/mbmemcasecmp: New file.
18442
18443 2009-03-09  Bruno Haible  <bruno@clisp.org>
18444
18445         Tests for module 'unicase/ulc-casecoll'.
18446         * modules/unicase/ulc-casecoll-tests: New file.
18447         * tests/unicase/test-ulc-casecoll1.sh: New file.
18448         * tests/unicase/test-ulc-casecoll2.sh: New file.
18449         * tests/unicase/test-ulc-casecoll.c: New file.
18450
18451         New module 'unicase/ulc-casecoll'.
18452         * lib/unicase.h (ulc_casecoll): New declaration.
18453         * lib/unicase/ulc-casecoll.c: New file.
18454         * modules/unicase/ulc-casecoll: New file.
18455
18456         New module 'unicase/ulc-casexfrm'.
18457         * lib/unicase.h (ulc_casexfrm): New declaration.
18458         * lib/unicase/ulc-casexfrm.c: New file.
18459         * modules/unicase/ulc-casexfrm: New file.
18460
18461 2009-03-09  Bruno Haible  <bruno@clisp.org>
18462
18463         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
18464         invocations.
18465
18466         * m4/mbscasecmp.m4: Remove file.
18467         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
18468         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
18469
18470         * m4/mbscasestr.m4: Remove file.
18471         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
18472         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
18473
18474         * m4/mbschr.m4: Remove file.
18475         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
18476         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
18477
18478         * m4/mbscspn.m4: Remove file.
18479         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
18480         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
18481
18482         * m4/mbslen.m4: Remove file.
18483         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
18484         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
18485
18486         * m4/mbsncasecmp.m4: Remove file.
18487         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
18488         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
18489
18490         * m4/mbsnlen.m4: Remove file.
18491         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
18492         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
18493
18494         * m4/mbspbrk.m4: Remove file.
18495         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
18496         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
18497
18498         * m4/mbspcasecmp.m4: Remove file.
18499         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
18500         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
18501
18502         * m4/mbsrchr.m4: Remove file.
18503         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
18504         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
18505
18506         * m4/mbssep.m4: Remove file.
18507         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
18508         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
18509
18510         * m4/mbsspn.m4: Remove file.
18511         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
18512         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
18513
18514         * m4/mbsstr.m4: Remove file.
18515         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
18516         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
18517
18518         * m4/mbstok_r.m4: Remove file.
18519         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
18520         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
18521
18522         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
18523
18524         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
18525         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
18526
18527         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
18528
18529 2009-03-08  Bruno Haible  <bruno@clisp.org>
18530
18531         Tests for module 'unicase/ulc-casecmp'.
18532         * modules/unicase/ulc-casecmp-tests: New file.
18533         * tests/unicase/test-ulc-casecmp1.sh: New file.
18534         * tests/unicase/test-ulc-casecmp2.sh: New file.
18535         * tests/unicase/test-ulc-casecmp.c: New file.
18536
18537         New module 'unicase/ulc-casecmp'.
18538         * lib/unicase.h (ulc_casecmp): New declaration.
18539         * lib/unicase/ulc-casecmp.c: New file.
18540         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
18541         'const SRC_UNIT *'.
18542         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
18543         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
18544         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
18545         * modules/unicase/ulc-casecmp: New file.
18546
18547         Tests for module 'unicase/u32-is-cased'.
18548         * modules/unicase/u32-is-cased-tests: New file.
18549         * tests/unicase/test-u32-is-cased.c: New file.
18550
18551         Tests for module 'unicase/u16-is-cased'.
18552         * modules/unicase/u16-is-cased-tests: New file.
18553         * tests/unicase/test-u16-is-cased.c: New file.
18554
18555         Tests for module 'unicase/u8-is-cased'.
18556         * modules/unicase/u8-is-cased-tests: New file.
18557         * tests/unicase/test-u8-is-cased.c: New file.
18558         * tests/unicase/test-is-cased.h: New file.
18559
18560         New module 'unicase/u32-is-cased'.
18561         * lib/unicase/u32-is-cased.c: New file.
18562         * modules/unicase/u32-is-cased: New file.
18563
18564         New module 'unicase/u16-is-cased'.
18565         * lib/unicase/u16-is-cased.c: New file.
18566         * modules/unicase/u16-is-cased: New file.
18567
18568         New module 'unicase/u8-is-cased'.
18569         * lib/unicase/u8-is-cased.c: New file.
18570         * lib/unicase/u-is-cased.h: New file.
18571         * modules/unicase/u8-is-cased: New file.
18572
18573         Tests for module 'unicase/u32-is-casefolded'.
18574         * modules/unicase/u32-is-casefolded-tests: New file.
18575         * tests/unicase/test-u32-is-casefolded.c: New file.
18576
18577         Tests for module 'unicase/u16-is-casefolded'.
18578         * modules/unicase/u16-is-casefolded-tests: New file.
18579         * tests/unicase/test-u16-is-casefolded.c: New file.
18580
18581         Tests for module 'unicase/u8-is-casefolded'.
18582         * modules/unicase/u8-is-casefolded-tests: New file.
18583         * tests/unicase/test-u8-is-casefolded.c: New file.
18584         * tests/unicase/test-is-casefolded.h: New file.
18585
18586         New module 'unicase/u32-is-casefolded'.
18587         * lib/unicase/u32-is-casefolded.c: New file.
18588         * modules/unicase/u32-is-casefolded: New file.
18589
18590         New module 'unicase/u16-is-casefolded'.
18591         * lib/unicase/u16-is-casefolded.c: New file.
18592         * modules/unicase/u16-is-casefolded: New file.
18593
18594         New module 'unicase/u8-is-casefolded'.
18595         * lib/unicase/u8-is-casefolded.c: New file.
18596         * modules/unicase/u8-is-casefolded: New file.
18597
18598         Tests for module 'unicase/u32-is-titlecase'.
18599         * modules/unicase/u32-is-titlecase-tests: New file.
18600         * tests/unicase/test-u32-is-titlecase.c: New file.
18601
18602         Tests for module 'unicase/u16-is-titlecase'.
18603         * modules/unicase/u16-is-titlecase-tests: New file.
18604         * tests/unicase/test-u16-is-titlecase.c: New file.
18605
18606         Tests for module 'unicase/u8-is-titlecase'.
18607         * modules/unicase/u8-is-titlecase-tests: New file.
18608         * tests/unicase/test-u8-is-titlecase.c: New file.
18609         * tests/unicase/test-is-titlecase.h: New file.
18610
18611         New module 'unicase/u32-is-titlecase'.
18612         * lib/unicase/u32-is-titlecase.c: New file.
18613         * modules/unicase/u32-is-titlecase: New file.
18614
18615         New module 'unicase/u16-is-titlecase'.
18616         * lib/unicase/u16-is-titlecase.c: New file.
18617         * modules/unicase/u16-is-titlecase: New file.
18618
18619         New module 'unicase/u8-is-titlecase'.
18620         * lib/unicase/u8-is-titlecase.c: New file.
18621         * modules/unicase/u8-is-titlecase: New file.
18622
18623         Tests for module 'unicase/u32-is-lowercase'.
18624         * modules/unicase/u32-is-lowercase-tests: New file.
18625         * tests/unicase/test-u32-is-lowercase.c: New file.
18626
18627         Tests for module 'unicase/u16-is-lowercase'.
18628         * modules/unicase/u16-is-lowercase-tests: New file.
18629         * tests/unicase/test-u16-is-lowercase.c: New file.
18630
18631         Tests for module 'unicase/u8-is-lowercase'.
18632         * modules/unicase/u8-is-lowercase-tests: New file.
18633         * tests/unicase/test-u8-is-lowercase.c: New file.
18634         * tests/unicase/test-is-lowercase.h: New file.
18635
18636         New module 'unicase/u32-is-lowercase'.
18637         * lib/unicase/u32-is-lowercase.c: New file.
18638         * modules/unicase/u32-is-lowercase: New file.
18639
18640         New module 'unicase/u16-is-lowercase'.
18641         * lib/unicase/u16-is-lowercase.c: New file.
18642         * modules/unicase/u16-is-lowercase: New file.
18643
18644         New module 'unicase/u8-is-lowercase'.
18645         * lib/unicase/u8-is-lowercase.c: New file.
18646         * modules/unicase/u8-is-lowercase: New file.
18647
18648         Tests for module 'unicase/u32-is-uppercase'.
18649         * modules/unicase/u32-is-uppercase-tests: New file.
18650         * tests/unicase/test-u32-is-uppercase.c: New file.
18651
18652         Tests for module 'unicase/u16-is-uppercase'.
18653         * modules/unicase/u16-is-uppercase-tests: New file.
18654         * tests/unicase/test-u16-is-uppercase.c: New file.
18655
18656         Tests for module 'unicase/u8-is-uppercase'.
18657         * modules/unicase/u8-is-uppercase-tests: New file.
18658         * tests/unicase/test-u8-is-uppercase.c: New file.
18659         * tests/unicase/test-is-uppercase.h: New file.
18660
18661         New module 'unicase/u32-is-uppercase'.
18662         * lib/unicase/u32-is-uppercase.c: New file.
18663         * modules/unicase/u32-is-uppercase: New file.
18664
18665         New module 'unicase/u16-is-uppercase'.
18666         * lib/unicase/u16-is-uppercase.c: New file.
18667         * modules/unicase/u16-is-uppercase: New file.
18668
18669         New module 'unicase/u8-is-uppercase'.
18670         * lib/unicase/u8-is-uppercase.c: New file.
18671         * modules/unicase/u8-is-uppercase: New file.
18672
18673         New module 'unicase/u32-is-invariant'.
18674         * lib/unicase/u32-is-invariant.c: New file.
18675         * modules/unicase/u32-is-invariant: New file.
18676
18677         New module 'unicase/u16-is-invariant'.
18678         * lib/unicase/u16-is-invariant.c: New file.
18679         * modules/unicase/u16-is-invariant: New file.
18680
18681         New module 'unicase/u8-is-invariant'.
18682         * lib/unicase/u8-is-invariant.c: New file.
18683         * lib/unicase/invariant.h: New file.
18684         * lib/unicase/u-is-invariant.h: New file.
18685         * modules/unicase/u8-is-invariant: New file.
18686
18687         Tests for module 'unicase/u32-casecoll'.
18688         * modules/unicase/u32-casecoll-tests: New file.
18689         * tests/unicase/test-u32-casecoll.c: New file.
18690
18691         Tests for module 'unicase/u16-casecoll'.
18692         * modules/unicase/u16-casecoll-tests: New file.
18693         * tests/unicase/test-u16-casecoll.c: New file.
18694
18695         Tests for module 'unicase/u8-casecoll'.
18696         * modules/unicase/u8-casecoll-tests: New file.
18697         * tests/unicase/test-u8-casecoll.c: New file.
18698
18699         New module 'unicase/u32-casecoll'.
18700         * lib/unicase/u32-casecoll.c: New file.
18701         * modules/unicase/u32-casecoll: New file.
18702
18703         New module 'unicase/u16-casecoll'.
18704         * lib/unicase/u16-casecoll.c: New file.
18705         * modules/unicase/u16-casecoll: New file.
18706
18707         New module 'unicase/u8-casecoll'.
18708         * lib/unicase/u8-casecoll.c: New file.
18709         * lib/unicase/u-casecoll.h: New file.
18710         * modules/unicase/u8-casecoll: New file.
18711
18712         New module 'unicase/u32-casexfrm'.
18713         * lib/unicase/u32-casexfrm.c: New file.
18714         * modules/unicase/u32-casexfrm: New file.
18715
18716         New module 'unicase/u16-casexfrm'.
18717         * lib/unicase/u16-casexfrm.c: New file.
18718         * modules/unicase/u16-casexfrm: New file.
18719
18720         New module 'unicase/u8-casexfrm'.
18721         * lib/unicase/u8-casexfrm.c: New file.
18722         * lib/unicase/u-casexfrm.h: New file.
18723         * modules/unicase/u8-casexfrm: New file.
18724
18725         Tests for module 'unicase/u32-casecmp'.
18726         * modules/unicase/u32-casecmp-tests: New file.
18727         * tests/unicase/test-u32-casecmp.c: New file.
18728
18729         Tests for module 'unicase/u16-casecmp'.
18730         * modules/unicase/u16-casecmp-tests: New file.
18731         * tests/unicase/test-u16-casecmp.c: New file.
18732
18733         Tests for module 'unicase/u8-casecmp'.
18734         * modules/unicase/u8-casecmp-tests: New file.
18735         * tests/unicase/test-u8-casecmp.c: New file.
18736         * tests/unicase/test-casecmp.h: New file.
18737
18738         New module 'unicase/u32-casecmp'.
18739         * lib/unicase/u32-casecmp.c: New file.
18740         * modules/unicase/u32-casecmp: New file.
18741
18742         New module 'unicase/u16-casecmp'.
18743         * lib/unicase/u16-casecmp.c: New file.
18744         * modules/unicase/u16-casecmp: New file.
18745
18746         New module 'unicase/u8-casecmp'.
18747         * lib/unicase/u8-casecmp.c: New file.
18748         * lib/unicase/u-casecmp.h: New file.
18749         * modules/unicase/u8-casecmp: New file.
18750
18751         Tests for module 'unicase/u32-casefold'.
18752         * modules/unicase/u32-casefold-tests: New file.
18753         * tests/unicase/test-u32-casefold.c: New file.
18754
18755         Tests for module 'unicase/u16-casefold'.
18756         * modules/unicase/u16-casefold-tests: New file.
18757         * tests/unicase/test-u16-casefold.c: New file.
18758
18759         Tests for module 'unicase/u8-casefold'.
18760         * modules/unicase/u8-casefold-tests: New file.
18761         * tests/unicase/test-u8-casefold.c: New file.
18762
18763         New module 'unicase/u32-casefold'.
18764         * lib/unicase/u32-casefold.c: New file.
18765         * modules/unicase/u32-casefold: New file.
18766
18767         New module 'unicase/u16-casefold'.
18768         * lib/unicase/u16-casefold.c: New file.
18769         * modules/unicase/u16-casefold: New file.
18770
18771         New module 'unicase/u8-casefold'.
18772         * lib/unicase/u8-casefold.c: New file.
18773         * lib/unicase/u-casefold.h: New file.
18774         * modules/unicase/u8-casefold: New file.
18775
18776         New module 'unicase/tocasefold'.
18777         * lib/unicase/casefold.h: New file.
18778         * lib/unicase/tocasefold.c: New file.
18779         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
18780         * modules/unicase/tocasefold: New file.
18781
18782         Tests for module 'unicase/u32-totitle'.
18783         * modules/unicase/u32-totitle-tests: New file.
18784         * tests/unicase/test-u32-totitle.c: New file.
18785
18786         Tests for module 'unicase/u16-totitle'.
18787         * modules/unicase/u16-totitle-tests: New file.
18788         * tests/unicase/test-u16-totitle.c: New file.
18789
18790         Tests for module 'unicase/u8-totitle'.
18791         * modules/unicase/u8-totitle-tests: New file.
18792         * tests/unicase/test-u8-totitle.c: New file.
18793
18794         New module 'unicase/u32-totitle'.
18795         * lib/unicase/u32-totitle.c: New file.
18796         * modules/unicase/u32-totitle: New file.
18797
18798         New module 'unicase/u16-totitle'.
18799         * lib/unicase/u16-totitle.c: New file.
18800         * modules/unicase/u16-totitle: New file.
18801
18802         New module 'unicase/u8-totitle'.
18803         * lib/unicase/u8-totitle.c: New file.
18804         * lib/unicase/u-totitle.h: New file.
18805         * modules/unicase/u8-totitle: New file.
18806
18807         Tests for module 'unicase/u32-tolower'.
18808         * modules/unicase/u32-tolower-tests: New file.
18809         * tests/unicase/test-u32-tolower.c: New file.
18810
18811         Tests for module 'unicase/u16-tolower'.
18812         * modules/unicase/u16-tolower-tests: New file.
18813         * tests/unicase/test-u16-tolower.c: New file.
18814
18815         Tests for module 'unicase/u8-tolower'.
18816         * modules/unicase/u8-tolower-tests: New file.
18817         * tests/unicase/test-u8-tolower.c: New file.
18818
18819         New module 'unicase/u32-tolower'.
18820         * lib/unicase/u32-tolower.c: New file.
18821         * modules/unicase/u32-tolower: New file.
18822
18823         New module 'unicase/u16-tolower'.
18824         * lib/unicase/u16-tolower.c: New file.
18825         * modules/unicase/u16-tolower: New file.
18826
18827         New module 'unicase/u8-tolower'.
18828         * lib/unicase/u8-tolower.c: New file.
18829         * modules/unicase/u8-tolower: New file.
18830
18831         Tests for module 'unicase/u32-toupper'.
18832         * modules/unicase/u32-toupper-tests: New file.
18833         * tests/unicase/test-u32-toupper.c: New file.
18834
18835         Tests for module 'unicase/u16-toupper'.
18836         * modules/unicase/u16-toupper-tests: New file.
18837         * tests/unicase/test-u16-toupper.c: New file.
18838
18839         Tests for module 'unicase/u8-toupper'.
18840         * modules/unicase/u8-toupper-tests: New file.
18841         * tests/unicase/test-u8-toupper.c: New file.
18842
18843         New module 'unicase/u32-toupper'.
18844         * lib/unicase/u32-toupper.c: New file.
18845         * modules/unicase/u32-toupper: New file.
18846
18847         New module 'unicase/u16-toupper'.
18848         * lib/unicase/u16-toupper.c: New file.
18849         * modules/unicase/u16-toupper: New file.
18850
18851         New module 'unicase/u8-toupper'.
18852         * lib/unicase/u8-toupper.c: New file.
18853         * modules/unicase/u8-toupper: New file.
18854
18855         New module 'unicase/u32-casemap'.
18856         * lib/unicase/u32-casemap.c: New file.
18857         * modules/unicase/u32-casemap: New file.
18858
18859         New module 'unicase/u16-casemap'.
18860         * lib/unicase/u16-casemap.c: New file.
18861         * modules/unicase/u16-casemap: New file.
18862
18863         New module 'unicase/u8-casemap'.
18864         * lib/unicase/unicasemap.h: New file.
18865         * lib/unicase/u8-casemap.c: New file.
18866         * lib/unicase/u-casemap.h: New file.
18867         * modules/unicase/u8-casemap: New file.
18868
18869         New module 'unicase/special-casing'.
18870         * lib/unicase/special-casing.h: New file.
18871         * lib/unicase/special-casing.c: New file.
18872         * lib/unicase/special-casing-table.gperf: New file, generated by
18873         gen-uni-tables.c.
18874         * modules/unicase/special-casing: New file.
18875
18876         Tests for module 'unicase/locale-language'.
18877         * modules/unicase/locale-language-tests: New file.
18878         * tests/unicase/test-locale-language.sh: New file.
18879         * tests/unicase/test-locale-language.c: New file.
18880
18881         New module 'unicase/locale-language'.
18882         * lib/unicase/locale-language.c: New file.
18883         * lib/unicase/locale-languages.gperf: New file.
18884         * modules/unicase/locale-language: New file.
18885
18886         Generate more tables for case conversion and case folding.
18887         * lib/gen-uni-tables.c (SCC_*): New enum items.
18888         (struct special_casing_rule): New type.
18889         (casing_rules, num_casing_rules, allocated_casing_rules): New
18890         variables.
18891         (add_casing_rule, fill_casing_rules): New functions.
18892         (struct casefold_rule): New type.
18893         (casefolding_rules, num_casefolding_rules,
18894         allocated_casefolding_rules): New variables.
18895         (fill_casefolding_rules): New function.
18896         (unicode_casefold): New variable.
18897         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
18898         sort_casing_rules, output_casing_rules): New functions.
18899         (main): Accept to more arguments: SpecialCasing.txt and
18900         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
18901         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
18902         Output mapping for casefolding.
18903
18904         * lib/unicase.h: Include stdbool.h, uninorm.h.
18905         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
18906         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
18907         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
18908         arguments.
18909         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
18910         resultp arguments.
18911         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
18912         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
18913         resultp arguments.
18914         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
18915         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
18916         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
18917         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
18918         declarations.
18919         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
18920
18921 2009-03-08  Bruno Haible  <bruno@clisp.org>
18922
18923         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
18924         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
18925         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
18926         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
18927
18928 2009-03-07  Bruno Haible  <bruno@clisp.org>
18929
18930         Adjust u*_normcmp, u*_normcoll API.
18931         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
18932         u16_normcoll, u32_normcoll): Change failure conventions.
18933         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
18934         errno and return -1.
18935         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
18936
18937 2009-03-07  Bruno Haible  <bruno@clisp.org>
18938
18939         Tests for module 'uninorm/u32-normcoll'.
18940         * modules/uninorm/u32-normcoll-tests: New file.
18941         * tests/uninorm/test-u32-normcoll.c: New file.
18942
18943         Tests for module 'uninorm/u16-normcoll'.
18944         * modules/uninorm/u16-normcoll-tests: New file.
18945         * tests/uninorm/test-u16-normcoll.c: New file.
18946
18947         Tests for module 'uninorm/u8-normcoll'.
18948         * modules/uninorm/u8-normcoll-tests: New file.
18949         * tests/uninorm/test-u8-normcoll.c: New file.
18950
18951 2009-03-07  Bruno Haible  <bruno@clisp.org>
18952
18953         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
18954         tests/uninorm/test-u32-normcmp.c.
18955         * tests/uninorm/test-u32-normcmp.c: Include it.
18956         (test_nonascii): New function, extracted from main. Add some more
18957         tests.
18958         (main): Invoke test_ascii and test_nonascii.
18959         * modules/uninorm/u32-normcmp-tests (Files): Add
18960         tests/uninorm/test-u32-normcmp.h.
18961         (Depends-on): Remove uninorm/u32-normcmp.
18962
18963         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
18964         tests/uninorm/test-u16-normcmp.c.
18965         * tests/uninorm/test-u16-normcmp.c: Include it.
18966         (test_nonascii): New function, extracted from main. Add some more
18967         tests.
18968         (main): Invoke test_ascii and test_nonascii.
18969         * modules/uninorm/u16-normcmp-tests (Files): Add
18970         tests/uninorm/test-u16-normcmp.h.
18971         (Depends-on): Remove uninorm/u16-normcmp.
18972
18973         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
18974         tests/uninorm/test-u8-normcmp.c.
18975         * tests/uninorm/test-u8-normcmp.c: Include it.
18976         (test_nonascii): New function, extracted from main. Add some more
18977         tests.
18978         (main): Invoke test_ascii and test_nonascii.
18979         * modules/uninorm/u8-normcmp-tests (Files): Add
18980         tests/uninorm/test-u8-normcmp.h.
18981         (Depends-on): Remove uninorm/u8-normcmp.
18982
18983 2009-03-07  Bruno Haible  <bruno@clisp.org>
18984
18985         New module 'uninorm/u32-normcoll'.
18986         * lib/uninorm/u32-normcoll.c: New file.
18987         * modules/uninorm/u32-normcoll: New file.
18988
18989         New module 'uninorm/u16-normcoll'.
18990         * lib/uninorm/u16-normcoll.c: New file.
18991         * modules/uninorm/u16-normcoll: New file.
18992
18993         New module 'uninorm/u8-normcoll'.
18994         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
18995         declarations.
18996         * lib/uninorm/u8-normcoll.c: New file.
18997         * lib/uninorm/u-normcoll.h: New file.
18998         * modules/uninorm/u8-normcoll: New file.
18999
19000         New module 'uninorm/u32-normxfrm'.
19001         * lib/uninorm/u32-normxfrm.c: New file.
19002         * modules/uninorm/u32-normxfrm: New file.
19003
19004         New module 'uninorm/u16-normxfrm'.
19005         * lib/uninorm/u16-normxfrm.c: New file.
19006         * modules/uninorm/u16-normxfrm: New file.
19007
19008         New module 'uninorm/u8-normxfrm'.
19009         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
19010         declarations.
19011         * lib/uninorm/u8-normxfrm.c: New file.
19012         * lib/uninorm/u-normxfrm.h: New file.
19013         * modules/uninorm/u8-normxfrm: New file.
19014
19015 2009-03-07  Bruno Haible  <bruno@clisp.org>
19016
19017         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
19018         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
19019         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
19020
19021 2009-03-07  Bruno Haible  <bruno@clisp.org>
19022
19023         New module 'memxfrm'.
19024         * lib/memxfrm.h: New file.
19025         * lib/memxfrm.c: New file.
19026         * modules/memxfrm: New file.
19027
19028 2009-03-07  Bruno Haible  <bruno@clisp.org>
19029
19030         New module 'memcmp2'.
19031         * lib/memcmp2.h: New file.
19032         * lib/memcmp2.c: New file.
19033         * modules/memcmp2: New file.
19034
19035 2009-03-07  Bruno Haible  <bruno@clisp.org>
19036
19037         Tests for module 'uninorm/decomposing-form'.
19038         * modules/uninorm/decomposing-form-tests: New file.
19039         * tests/uninorm/test-decomposing-form.c: New file.
19040
19041         New module 'uninorm/decomposing-form'.
19042         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
19043         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
19044         Add 'decomposing_variant' field.
19045         * lib/uninorm/decomposing-form.c: New file.
19046         * lib/uninorm/nfc.c (uninorm_nfc): Update.
19047         * lib/uninorm/nfd.c (uninorm_nfd): Update.
19048         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
19049         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
19050         * modules/uninorm/decomposing-form: New file.
19051         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
19052         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
19053
19054 2009-03-07  Bruno Haible  <bruno@clisp.org>
19055
19056         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
19057         strings.
19058
19059 2009-03-06  Bruno Haible  <bruno@clisp.org>
19060
19061         Tests for module 'uninorm/u32-normcmp'.
19062         * tests/uninorm/test-u32-normcmp.c: New file.
19063         * modules/uninorm/u32-normcmp-tests: New file.
19064
19065         Tests for module 'uninorm/u16-normcmp'.
19066         * tests/uninorm/test-u16-normcmp.c: New file.
19067         * modules/uninorm/u16-normcmp-tests: New file.
19068
19069         Tests for module 'uninorm/u8-normcmp'.
19070         * tests/uninorm/test-u8-normcmp.c: New file.
19071         * modules/uninorm/u8-normcmp-tests: New file.
19072
19073         New module 'uninorm/u32-normcmp'.
19074         * lib/uninorm/u32-normcmp.c: New file.
19075         * modules/uninorm/u32-normcmp: New file.
19076
19077         New module 'uninorm/u16-normcmp'.
19078         * lib/uninorm/u16-normcmp.c: New file.
19079         * modules/uninorm/u16-normcmp: New file.
19080
19081         New module 'uninorm/u8-normcmp'.
19082         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
19083         declarations.
19084         * lib/uninorm/u8-normcmp.c: New file.
19085         * lib/uninorm/u-normcmp.h: New file.
19086         * modules/uninorm/u8-normcmp: New file.
19087
19088 2009-03-06  Bruno Haible  <bruno@clisp.org>
19089
19090         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
19091         Reported by Eric Blake.
19092
19093 2009-03-06  Eric Blake  <ebb9@byu.net>
19094             Bruno Haible  <bruno@clisp.org>
19095
19096         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
19097         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
19098         condition.
19099         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
19100         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
19101         condition.
19102         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
19103
19104 2009-03-06  Eric Blake  <ebb9@byu.net>
19105
19106         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
19107         to avoid compiler warnings.
19108         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
19109
19110 2009-03-05  Bruno Haible  <bruno@clisp.org>
19111
19112         * tests/test-ftell.c (main): Disable test beyond end of file on
19113         FreeMiNT.
19114         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
19115
19116 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
19117
19118         * lib/filevercmp.c: Move hidden files up in ordering.
19119         * tests/test-filevercmp.c: Add tests for hidden files.
19120
19121 2009-03-04  Bruno Haible  <bruno@clisp.org>
19122
19123         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
19124         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
19125         AM_CFLAGS.
19126         Reported by Simon Josefsson.
19127
19128 2009-03-03  Bruno Haible  <bruno@clisp.org>
19129
19130         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
19131         Reported by Simon Josefsson.
19132
19133         * doc/ld-version-script.texi: Update node reference.
19134
19135 2009-03-03  Bruno Haible  <bruno@clisp.org>
19136
19137         * modules/visibility (License): Change to 'unlimited'.
19138         Suggested by Simon Josefsson.
19139
19140 2009-03-03  Jim Meyering  <meyering@redhat.com>
19141
19142         unlinkdir: cannot_unlink_dir may modify process state
19143         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
19144         it's neither thread-safe nor appropriate for use in a library.
19145
19146 2009-03-03  Eric Blake  <ebb9@byu.net>
19147
19148         test-closein: silence test under Darwin
19149         * tests/test-closein.sh: Ignore stderr from cat, since we don't
19150         care if it dies from EPIPE or EBADF.
19151
19152 2009-03-03  Bruno Haible  <bruno@clisp.org>
19153
19154         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
19155         earlier.
19156         * doc/visibility.texi: Fix @node and @section.
19157
19158 2009-03-03  Simon Josefsson  <simon@josefsson.org>
19159
19160         * doc/gnulib.texi: Link to sections for ld version script and
19161         visibility.
19162         * doc/visibility.texi: Add @node and @section.
19163         * modules/ld-version-script: New module.
19164         * m4/ld-version-script.m4: New file.
19165         * doc/ld-version-script.texi: New file.
19166
19167 2009-03-02  David Lutterkort  <lutter@redhat.com>
19168
19169         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
19170         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19171
19172 2009-03-02  Bruno Haible  <bruno@clisp.org>
19173
19174         * doc/visibility.texi: Mention libtool's -export-symbols option.
19175
19176 2009-03-02  Jim Meyering  <meyering@redhat.com>
19177
19178         announce-gen: new option: --no-print-checksums
19179         * build-aux/announce-gen (usage): Describe it.
19180         (print_checksums): Print a newline here, not in the [*] footnote.
19181         (main): Honor it.
19182
19183 2009-03-01  Bruno Haible  <bruno@clisp.org>
19184
19185         Use socklen_t in the native Windows replacements prototypes.
19186         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
19187         instead of 'int'.
19188         * lib/getsockopt.c (rpl_getsockopt): Likewise.
19189         * lib/setsockopt.c (rpl_setsockopt): Likewise.
19190         * modules/getsockopt (Depends-on): Add socklen.
19191         * modules/setsockopt (Depends-on): Add socklen.
19192
19193 2009-03-01  Bruno Haible  <bruno@clisp.org>
19194
19195         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
19196         least 4.2.
19197
19198 2009-03-01  Eric Blake  <ebb9@byu.net>
19199             Bruno Haible  <bruno@clisp.org>
19200
19201         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
19202         error messages.
19203         * lib/wait-process.c (wait_subprocess): Omit error message about
19204         deadly signal sent to the child of termsigp != NULL.
19205
19206 2009-03-01  Eric Blake  <ebb9@byu.net>
19207
19208         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
19209
19210 2009-03-01  Bruno Haible  <bruno@clisp.org>
19211
19212         Avoid a gcc warning.
19213         * tests/test-sched.c (b): Make global.
19214         Reported by Eric Blake.
19215
19216 2009-01-19  Martin Lambers  <marlam@marlam.de>
19217
19218         Provide POSIX semantics for socket timeout options on W32.
19219         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
19220         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
19221         * modules/setsockopt: Depend on sys_time module for struct timeval.
19222         * modules/getsockopt: Depend on sys_time module for struct timeval.
19223
19224 2009-03-01  Simon Josefsson  <simon@josefsson.org>
19225
19226         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
19227         __USE_GNU, for consistency with netdb.in.h.
19228         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
19229
19230 2009-03-01  Bruno Haible  <bruno@clisp.org>
19231
19232         More support for FreeMiNT.
19233         * lib/fseeko.c (rpl_fseeko): Complete last commit.
19234         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
19235
19236 2009-03-01  Bruno Haible  <bruno@clisp.org>
19237
19238         More support for FreeMiNT.
19239         * lib/fpurge.c (fpurge): Correct last commit.
19240         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
19241
19242 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19243
19244         Fix unportable awk script in vc-list-files.
19245         * build-aux/vc-list-files: In the replacement awk script, use
19246         substr with a second argument of 1, not zero.
19247         Report by Simon Josefsson.
19248
19249 2009-02-28  Bruno Haible  <bruno@clisp.org>
19250
19251         More support for FreeMiNT.
19252         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
19253         to FreeMiNT today.
19254         * lib/fwriting.c (fwriting): Likewise.
19255         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
19256
19257 2009-02-28  Bruno Haible  <bruno@clisp.org>
19258
19259         * tests/test-freadseek.c (main): Disable test beyond end of file on
19260         FreeMiNT.
19261         * tests/test-ftello.c (main): Likewise.
19262         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
19263
19264 2009-02-28  Bruno Haible  <bruno@clisp.org>
19265
19266         Add tentative support for FreeMiNT.
19267         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
19268         * lib/fpurge.c (fpurge): Likewise.
19269         * lib/freadable.c (freadable): Likewise.
19270         * lib/freading.c (freading): Likewise.
19271         * lib/freadptr.c (freadptr): Likewise.
19272         * lib/freadseek.c (freadptrinc): Likewise.
19273         * lib/fseeko.c (rpl_fseeko): Likewise.
19274         * lib/fseterr.c (fseterr): Likewise.
19275         * lib/fwritable.c (fwritable): Likewise.
19276         * lib/fwriting.c (fwriting): Likewise.
19277         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
19278         Hourihane.
19279         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
19280
19281 2009-02-28  Bruno Haible  <bruno@clisp.org>
19282
19283         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
19284         SIGCHLD.
19285         Reported by Jim Meyering.
19286
19287 2009-02-28  Bruno Haible  <bruno@clisp.org>
19288
19289         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
19290         Mention the results of these tests on various platforms.
19291         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
19292         order.
19293         * doc/posix-functions/printf.texi: Likewise.
19294         * doc/posix-functions/snprintf.texi: Likewise.
19295         * doc/posix-functions/sprintf.texi: Likewise.
19296         * doc/posix-functions/vfprintf.texi: Likewise.
19297         * doc/posix-functions/vprintf.texi: Likewise.
19298         * doc/posix-functions/vsnprintf.texi: Likewise.
19299         * doc/posix-functions/vsprintf.texi: Likewise.
19300         * doc/glibc-functions/obstack_printf.texi: Likewise.
19301         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
19302
19303 2009-02-28  Bruno Haible  <bruno@clisp.org>
19304
19305         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
19306         Reported by Loïc Minier <lool@dooz.org>.
19307
19308 2009-02-27  Bruno Haible  <bruno@clisp.org>
19309
19310         * gnulib-tool (func_import): Make the sed expression used to create the
19311         sed script for updating the .gitignore file POSIX compliant.
19312         Reported by Eric Blake.
19313
19314 2009-02-27  Bruno Haible  <bruno@clisp.org>
19315
19316         * gnulib-tool (sed): Don't alias as "sed --posix".
19317         Reported by Eric Blake.
19318
19319 2009-02-27  Bruno Haible  <bruno@clisp.org>
19320
19321         Avoid test link errors.
19322         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
19323         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
19324         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
19325         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
19326         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19327
19328 2009-02-27  Bruno Haible  <bruno@clisp.org>
19329
19330         Avoid spurious "(cached)" in configure output.
19331         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
19332         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
19333         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
19334         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
19335         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
19336         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
19337         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
19338         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
19339         Reported by Eric Blake.
19340
19341 2009-02-27  Eric Blake  <ebb9@byu.net>
19342
19343         printf: fix regression in previous patch
19344         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
19345
19346 2009-02-27  Bruno Haible  <bruno@clisp.org>
19347
19348         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
19349         value.
19350         * lib/stdint.in.h: Likewise.
19351         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
19352
19353 2009-02-27  Eric Blake  <ebb9@byu.net>
19354
19355         doc: mention more functions added in cygwin 1.7.0
19356         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
19357         addition.
19358         * doc/posix-functions/open_wmemstream.texi: Likewise.
19359         * doc/posix-functions/wcsnlen.texi: Likewise.
19360         * doc/posix-functions/wcsnrtombs.texi: Likewise.
19361         * doc/posix-functions/wcstod.texi: Likewise.
19362         * doc/posix-functions/wcstof.texi: Likewise.
19363         * doc/posix-functions/wcstoimax.texi: Likewise.
19364         * doc/posix-functions/wcstok.texi: Likewise.
19365         * doc/posix-functions/wcstoumax.texi: Likewise.
19366
19367         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
19368         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
19369         * doc/posix-functions/fprintf.texi: Update.
19370         * doc/posix-functions/printf.texi: Update.
19371         * doc/posix-functions/snprintf.texi: Update.
19372         * doc/posix-functions/sprintf.texi: Update.
19373         * doc/posix-functions/vfprintf.texi: Update.
19374         * doc/posix-functions/vprintf.texi: Update.
19375         * doc/posix-functions/vsnprintf.texi: Update.
19376         * doc/posix-functions/vsprintf.texi: Update.
19377         * doc/glibc-functions/obstack_printf.texi: Update.
19378         * doc/glibc-functions/obstack_vprintf.texi: Update.
19379
19380 2009-02-26  Eric Blake  <ebb9@byu.net>
19381
19382         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
19383         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
19384         compilation bug by using runtime conversion.
19385         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
19386         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
19387         * modules/ceill-tests (Files): Use nan.h.
19388         * modules/floorl-tests (Files): Likewise.
19389         * modules/frexpl-tests (Files): Likewise.
19390         * modules/isnanl-tests (Files): Likewise.
19391         * modules/ldexpl-tests (Files): Likewise.
19392         * modules/roundl-tests (Files): Likewise.
19393         * modules/truncl-tests (Files): Likewise.
19394         * tests/test-ceill.c (main): Use a working NaN.
19395         * tests/test-floorl.c (main): Likewise.
19396         * tests/test-frexpl.c (main): Likewise.
19397         * tests/test-isnan.c (test_long_double): Likewise.
19398         * tests/test-isnanl.h (main): Likewise.
19399         * tests/test-ldexpl.h (main): Likewise.
19400         * tests/test-roundl.h (main): Likewise.
19401         * tests/test-truncl.h (main): Likewise.
19402         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
19403
19404 2009-02-26  Eric Blake  <ebb9@byu.net>
19405             Bruno Haible  <bruno@clisp.org>
19406
19407         Work around a *printf bug with %ls on Solaris.
19408         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
19409         precision is specified, sprintf stops converting the wide string
19410         argument when the number of bytes that have been produced by this
19411         conversion equals or exceeds the precision.
19412         * doc/posix-functions/fprintf.texi: Update.
19413         * doc/posix-functions/printf.texi: Update.
19414         * doc/posix-functions/snprintf.texi: Update.
19415         * doc/posix-functions/sprintf.texi: Update.
19416         * doc/posix-functions/vfprintf.texi: Update.
19417         * doc/posix-functions/vprintf.texi: Update.
19418         * doc/posix-functions/vsnprintf.texi: Update.
19419         * doc/posix-functions/vsprintf.texi: Update.
19420         * doc/glibc-functions/obstack_printf.texi: Update.
19421         * doc/glibc-functions/obstack_vprintf.texi: Update.
19422
19423 2009-02-26  Eric Blake  <ebb9@byu.net>
19424
19425         stdlib: favor compiler check of random.h
19426         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
19427         to avoid an ObjC random.h installed by Swarm.
19428
19429 2009-02-26  Bruno Haible  <bruno@clisp.org>
19430
19431         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
19432         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
19433         Reported by Gary V. Vaughan <gary@gnu.org>.
19434
19435 2009-02-26  Bruno Haible  <bruno@clisp.org>
19436
19437         Fix *printf behaviour regarding the %ls directive.
19438         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
19439         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
19440         NEED_PRINTF_DIRECTIVE_LS.
19441         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
19442         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
19443         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
19444         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
19445         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
19446         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
19447         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
19448         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
19449         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
19450         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
19451         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
19452         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
19453         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
19454         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
19455         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
19456         * doc/posix-functions/fprintf.texi: Update.
19457         * doc/posix-functions/printf.texi: Update.
19458         * doc/posix-functions/snprintf.texi: Update.
19459         * doc/posix-functions/sprintf.texi: Update.
19460         * doc/posix-functions/vfprintf.texi: Update.
19461         * doc/posix-functions/vprintf.texi: Update.
19462         * doc/posix-functions/vsnprintf.texi: Update.
19463         * doc/posix-functions/vsprintf.texi: Update.
19464         * doc/glibc-functions/obstack_printf.texi: Update.
19465         * doc/glibc-functions/obstack_vprintf.texi: Update.
19466         Reported by Eric Blake.
19467
19468 2009-02-25  Bruno Haible  <bruno@clisp.org>
19469
19470         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
19471         with known value.
19472         Reported by Gary V. Vaughan <gary@gnu.org>.
19473
19474 2009-02-25  Bruno Haible  <bruno@clisp.org>
19475
19476         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
19477         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
19478         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
19479         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
19480         Reported by Gary V. Vaughan <gary@gnu.org>.
19481
19482 2009-02-25  Bruno Haible  <bruno@clisp.org>
19483
19484         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
19485         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
19486         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
19487         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
19488         Reported by Gary V. Vaughan <gary@gnu.org>.
19489
19490 2009-02-25  Eric Blake  <ebb9@byu.net>
19491
19492         tests: skip fseek/ftell tests if ungetc is broken
19493         * m4/ungetc.m4: New file.
19494         * modules/fseek-tests: Split test, so ungetc dependency is
19495         separate from rest of test.
19496         * modules/fseeko-tests: Likewise.
19497         * modules/ftell-tests: Likewise.
19498         * modules/ftello-tests: Likewise.
19499         * tests/test-fseek.c (main): Isolate ungetc dependency.
19500         * tests/test-fseeko.c (main): Likewise.
19501         * tests/test-ftell.c (main): Likewise.
19502         * tests/test-ftello.c (main): Likewise.
19503         * tests/test-fseek2.sh: New file.
19504         * tests/test-fseeko2.sh: Likewise.
19505         * tests/test-ftell2.sh: Likewise.
19506         * tests/test-ftello2.sh: Likewise.
19507
19508 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
19509
19510         test-getaddrinfo: fix usage of skip return code 77
19511         * tests/test-gettaddrinfo.c: Return skip code 77 only
19512         for first occurance of skip (4x77 is not 77)
19513
19514 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
19515
19516         strtod: avoid C99 decl-after-statement
19517         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
19518
19519 2009-02-24  Eric Blake  <ebb9@byu.net>
19520
19521         strtod: detect HP-UX 11.31 bug
19522         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
19523         Reported by Gary V. Vaughan.
19524
19525 2009-02-23  Bruno Haible  <bruno@clisp.org>
19526
19527         Fix invalid read past end of memory block.
19528         * lib/vasnprintf.c (DCHAR_SET): Define.
19529         (local_wcslen): Define only when needed.
19530         (local_strnlen, local_wcsnlen): New functions.
19531         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
19532         directives that involve a conversion ourselves.
19533         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
19534         wcsnlen, mbrtowc, wcrtomb.
19535         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
19536         * tests/test-vasprintf-posix.c (test_function): Likewise.
19537         * tests/test-snprintf-posix.h (test_function): Likewise.
19538         * tests/test-sprintf-posix.h (test_function): Likewise.
19539         Reported by Ben Pfaff <blp@cs.stanford.edu>.
19540
19541 2009-02-22  Bruno Haible  <bruno@clisp.org>
19542
19543         Implement new clarified decomposition of Hangul syllables.
19544         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
19545         of type LTV, return only a pairwise decomposition.
19546         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
19547         Likewise.
19548         * tests/uninorm/test-decomposition.c (main): Updated expected result.
19549         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
19550         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
19551
19552 2009-02-22  Bruno Haible  <bruno@clisp.org>
19553
19554         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
19555         zero-length results and shrink excess allocated memory.
19556         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
19557         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
19558         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
19559         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
19560         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
19561         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
19562         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
19563         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
19564         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
19565         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
19566         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
19567         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
19568
19569 2009-02-21  Bruno Haible  <bruno@clisp.org>
19570
19571         * doc/gnulib.texi: Include safe-alloc.texi earlier.
19572         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
19573         spaces after a period. Put a space between a macro name and its
19574         argument list. Trivial rewordings.
19575         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
19576         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
19577         (main): Return 0 explicitly.
19578
19579 2009-02-21  Bruno Haible  <bruno@clisp.org>
19580
19581         Tests for module 'uninorm/filter'.
19582         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
19583         * modules/uninorm/filter-tests: New file.
19584
19585         New module 'uninorm/filter'.
19586         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
19587         uninorm_filter_flush, uninorm_filter_free): New declarations.
19588         * lib/uninorm/uninorm-filter.c: New file.
19589         * modules/uninorm/filter: New file.
19590
19591 2009-02-21  Bruno Haible  <bruno@clisp.org>
19592
19593         Tests for module 'uninorm/nfkc'.
19594         * tests/uninorm/test-nfkc.c: New file.
19595         * tests/uninorm/test-u8-nfkc.c: New file.
19596         * tests/uninorm/test-u16-nfkc.c: New file.
19597         * tests/uninorm/test-u32-nfkc.c: New file.
19598         * tests/uninorm/test-u32-nfkc-big.sh: New file.
19599         * tests/uninorm/test-u32-nfkc-big.c: New file.
19600         * modules/uninorm/nfkc-tests: New file.
19601
19602         New module 'uninorm/nfkc'.
19603         * lib/uninorm/nfkc.c: New file.
19604         * modules/uninorm/nfkc: New file.
19605
19606         Tests for module 'uninorm/nfkd'.
19607         * tests/uninorm/test-nfkd.c: New file.
19608         * tests/uninorm/test-u8-nfkd.c: New file.
19609         * tests/uninorm/test-u16-nfkd.c: New file.
19610         * tests/uninorm/test-u32-nfkd.c: New file.
19611         * tests/uninorm/test-u32-nfkd-big.sh: New file.
19612         * tests/uninorm/test-u32-nfkd-big.c: New file.
19613         * modules/uninorm/nfkd-tests: New file.
19614
19615         New module 'uninorm/nfkd'.
19616         * lib/uninorm/nfkd.c: New file.
19617         * modules/uninorm/nfkd: New file.
19618
19619         Tests for module 'uninorm/nfc'.
19620         * tests/uninorm/test-nfc.c: New file.
19621         * tests/uninorm/test-u8-nfc.c: New file.
19622         * tests/uninorm/test-u16-nfc.c: New file.
19623         * tests/uninorm/test-u32-nfc.c: New file.
19624         * tests/uninorm/test-u32-nfc-big.sh: New file.
19625         * tests/uninorm/test-u32-nfc-big.c: New file.
19626         * modules/uninorm/nfc-tests: New file.
19627
19628         New module 'uninorm/nfc'.
19629         * lib/uninorm/nfc.c: New file.
19630         * modules/uninorm/nfc: New file.
19631
19632         Tests for module 'uninorm/nfd'.
19633         * tests/uninorm/test-nfd.c: New file.
19634         * tests/uninorm/test-u8-nfd.c: New file.
19635         * tests/uninorm/test-u16-nfd.c: New file.
19636         * tests/uninorm/test-u32-nfd.c: New file.
19637         * tests/uninorm/test-u32-nfd-big.sh: New file.
19638         * tests/uninorm/test-u32-nfd-big.c: New file.
19639         * tests/uninorm/test-u32-normalize-big.h: New file.
19640         * tests/uninorm/test-u32-normalize-big.c: New file.
19641         * tests/uninorm/NormalizationTest.txt: New file, created from
19642         Unicode 5.1.0 NormalizationTest.txt.
19643         * modules/uninorm/nfd-tests: New file.
19644
19645         New module 'uninorm/nfd'.
19646         * lib/uninorm/nfd.c: New file.
19647         * modules/uninorm/nfd: New file.
19648
19649         New module 'uninorm/u32-normalize'.
19650         * lib/uninorm/u32-normalize.c: New file.
19651         * modules/uninorm/u32-normalize: New file.
19652
19653         New module 'uninorm/u16-normalize'.
19654         * lib/uninorm/u16-normalize.c: New file.
19655         * modules/uninorm/u16-normalize: New file.
19656
19657         New module 'uninorm/u8-normalize'.
19658         * lib/uninorm/u8-normalize.c: New file.
19659         * lib/uninorm/normalize-internal.h: New file.
19660         * lib/uninorm/u-normalize-internal.h: New file.
19661         * modules/uninorm/u8-normalize: New file.
19662
19663         New module 'uninorm/decompose-internal'.
19664         * lib/uninorm/decompose-internal.c: New file.
19665         * modules/uninorm/decompose-internal: New file.
19666
19667         Tests for module 'uninorm/composition'.
19668         * tests/uninorm/test-composition.c: New file.
19669         * modules/uninorm/composition-tests: New file.
19670
19671         New module 'uninorm/composition'.
19672         * lib/uninorm/composition.c: New file.
19673         * lib/uninorm/composition-table.gperf: New file, generated by
19674         gen-uni-tables.
19675         * modules/uninorm/composition: New file.
19676
19677         Tests for module 'uninorm/compat-decomposition'.
19678         * tests/uninorm/test-compat-decomposition.c: New file.
19679         * modules/uninorm/compat-decomposition-tests: New file.
19680
19681         New module 'uninorm/compat-decomposition'.
19682         * lib/uninorm/decompose-internal.h: New file.
19683         * lib/uninorm/compat-decomposition.c: New file.
19684         * modules/uninorm/compat-decomposition: New file.
19685
19686         Tests for module 'uninorm/canonical-decomposition'.
19687         * tests/uninorm/test-canonical-decomposition.c: New file.
19688         * modules/uninorm/canonical-decomposition-tests: New file.
19689
19690         New module 'uninorm/canonical-decomposition'.
19691         * lib/uninorm/canonical-decomposition.c: New file.
19692         * modules/uninorm/canonical-decomposition: New file.
19693
19694         Tests for module 'uninorm/decomposition'.
19695         * tests/uninorm/test-decomposition.c: New file.
19696         * modules/uninorm/decomposition-tests: New file.
19697
19698         New module 'uninorm/decomposition'.
19699         * lib/uninorm/decomposition.c: New file.
19700         * modules/uninorm/decomposition: New file.
19701
19702         New module 'uninorm/decomposition-table'.
19703         * lib/uninorm/decomposition-table.h: New file.
19704         * lib/uninorm/decomposition-table.c: New file.
19705         * lib/uninorm/decomposition-table1.h: New file, generated by
19706         gen-uni-tables.
19707         * lib/uninorm/decomposition-table2.h: New file, generated by
19708         gen-uni-tables.
19709         * modules/uninorm/decomposition-table: New file.
19710
19711         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
19712         (UC_DECOMP_*): New enumeration items.
19713         (get_decomposition): New function.
19714         (struct decomp_table): New type.
19715         (output_decomposition, output_decomposition_tables): New functions.
19716         (unicode_composition_exclusions): New variable.
19717         (fill_composition_exclusions, debug_output_composition_tables): New
19718         functions.
19719         (main): Accept one more argument. Invoke fill_composition_exclusions.
19720         Output decomposition and composition tables.
19721
19722         New module 'uninorm/base'.
19723         * lib/uninorm.h: New file.
19724         * lib/unictype.h: Update comment.
19725         * modules/uninorm/base: New file.
19726
19727 2009-02-21  David Lutterkort  <lutter@redhat.com>
19728
19729         Tests for module 'safe-alloc'.
19730         * tests/test-safe-alloc.c: New file.
19731         * modules/safe-alloc-tests: New file.
19732
19733         New module 'safe-alloc'.
19734         * lib/safe-alloc.h: New file.
19735         * lib/safe-alloc.c: New file.
19736         * m4/safe-alloc.m4: New file.
19737         * modules/safe-alloc: New file.
19738         * doc/safe-alloc.texi: New file.
19739         * doc/gnulib.texi: Include it.
19740         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
19741         safe-alloc.
19742
19743 2009-02-18  Bruno Haible  <bruno@clisp.org>
19744
19745         Fix link error on non-glibc systems.
19746         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
19747         variable.
19748         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19749
19750 2009-02-18  Jim Meyering  <meyering@redhat.com>
19751
19752         fts: avoid used-uninitialized error due to recent change
19753         * lib/fts.c (fts_read): Guard uses of the new member,
19754         parent->fts_n_dirs_remaining, since it's not relevant for
19755         the parent of a directory specified on the command-line.
19756
19757 2009-02-17  James Youngman  <jay@gnu.org>
19758             Bruno Haible  <bruno@clisp.org>
19759
19760         * m4/include_next.m4: Reformulate comment.
19761
19762 2009-02-16  Jim Meyering  <meyering@redhat.com>
19763
19764         fts: add #if guards so that the fts_lgpl module still builds
19765         * lib/fts.c: Guard just-added hash-table-using parts with
19766         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
19767         Reported by Simon Josefsson.
19768
19769 2009-02-15  Bruno Haible  <bruno@clisp.org>
19770
19771         * modules/array-mergesort-tests: New file.
19772         * tests/test-array-mergesort.c: New file.
19773
19774         New module 'array-mergesort'.
19775         * modules/array-mergesort: New file.
19776         * lib/array-mergesort.h: New file.
19777
19778 2009-02-15  Bruno Haible  <bruno@clisp.org>
19779
19780         Fix 2009-02-07 commit.
19781         * lib/gen-uni-tables.c (output_predicate, output_category,
19782         output_combclass, output_bidi_category, output_decimal_digit,
19783         output_digit, output_numeric, output_mirror, output_scripts,
19784         output_ident_category, output_simple_mapping): Fix format directives.
19785         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
19786
19787 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
19788
19789         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
19790         fixes are available from IBM.
19791
19792 2009-02-13  Jim Meyering  <meyering@redhat.com>
19793
19794         fts: arrange not to stat non-directories in more cases
19795         This makes GNU find (when it doesn't need to stat each file)
19796         *much* more efficient at traversing reiserfs file systems.
19797         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
19798         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
19799         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
19800         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
19801         (leaf_optimization_applies): New function.
19802         (LCO_hash, LCO_compare): New helper functions.
19803         (link_count_optimize_ok): New function.
19804         (fts_stat): Initialize new member (if dir).
19805         (fts_read): Decrement parent's fts_n_dirs_remaining count if
19806         we've just stat'ed a directory.  Skip the stat call when possible.
19807         ---
19808         Note this AFS-related exchange:
19809         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
19810         and note find's pioctl call in find/fstype.c.
19811         But that is necessary only if you want to enable the
19812         optimization for AFS, and for now, I don't.
19813
19814         fts: move a function definition "up" (no semantic change)
19815         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
19816         "up" to precede upcoming use of a related function.
19817
19818 2009-02-11  Jim Meyering  <meyering@redhat.com>
19819
19820         fts: correct internal computation of nlinks (optimization-related)
19821         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
19822         whether the current entry is a directory, so don't test it.
19823
19824 2009-02-10  Bruno Haible  <bruno@clisp.org>
19825
19826         Tests for module 'uniwbrk/ulc-wordbreaks'.
19827         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
19828         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
19829         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
19830
19831         Tests for module 'uniwbrk/u32-wordbreaks'.
19832         * modules/uniwbrk/u32-wordbreaks-tests: New file.
19833         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
19834
19835         Tests for module 'uniwbrk/u16-wordbreaks'.
19836         * modules/uniwbrk/u16-wordbreaks-tests: New file.
19837         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
19838
19839         Tests for module 'uniwbrk/u8-wordbreaks'.
19840         * modules/uniwbrk/u8-wordbreaks-tests: New file.
19841         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
19842
19843 2009-02-10  Bruno Haible  <bruno@clisp.org>
19844
19845         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
19846         property.
19847         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
19848         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
19849         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
19850
19851 2009-02-10  Simon Josefsson  <simon@josefsson.org>
19852
19853         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
19854         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
19855
19856 2009-02-10  Bruno Haible  <bruno@clisp.org>
19857
19858         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
19859         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
19860         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
19861         * lib/unilbrk/u8-possible-linebreaks.c: Update.
19862         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
19863         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
19864
19865 2009-02-09  Simon Josefsson  <simon@josefsson.org>
19866
19867         * lib/sockets.h (gl_fd_to_handle): New function.
19868
19869         * tests/test-sockets.c: Call gl_fd_to_handle.
19870
19871 2009-02-09  Bruno Haible  <bruno@clisp.org>
19872
19873         * doc/havelib.texi: Document the conventions on bi-arch systems.
19874
19875 2009-02-08  Bruno Haible  <bruno@clisp.org>
19876
19877         Document the AC_LIB_LINKFLAGS macro.
19878         * doc/havelib.texi: New file, mostly written on 2005-05-24.
19879         * doc/gnulib.texi: Include it.
19880
19881 2009-02-08  Bruno Haible  <bruno@clisp.org>
19882
19883         Fix wrong order of sections, compared to TOC.
19884         * doc/gnulib.texi: Include relocatable-maint.texi after the
19885         "Regular expressions" node, not before.
19886
19887 2009-02-08  Bruno Haible  <bruno@clisp.org>
19888
19889         Tests for module 'unicase/totitle'.
19890         * modules/unicase/totitle-tests: New file.
19891
19892         Tests for module 'unicase/tolower'.
19893         * modules/unicase/tolower-tests: New file.
19894
19895         Tests for module 'unicase/toupper'.
19896         * modules/unicase/toupper-tests: New file.
19897         * tests/unicase/test-mapping-part1.h: New file.
19898         * tests/unicase/test-mapping-part2.h: New file.
19899
19900         New module 'unicase/totitle'.
19901         * modules/unicase/totitle: New file.
19902         * lib/unicase/totitle.c: New file.
19903
19904         New module 'unicase/tolower'.
19905         * modules/unicase/tolower: New file.
19906         * lib/unicase/tolower.c: New file.
19907
19908         New module 'unicase/toupper'.
19909         * modules/unicase/toupper: New file.
19910         * lib/unicase/toupper.c: New file.
19911         * lib/unicase/simple-mapping.h: New file.
19912
19913         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
19914         (mapping_table): New structure.
19915         (output_simple_mapping): New function.
19916         (main): Invoke output_simple_mapping_test and output_simple_mapping.
19917         * modules/gen-uni-tables (Description): Update.
19918         * lib/unicase/toupper.h: New file, automatically generated by
19919         gen-uni-tables.
19920         * lib/unicase/tolower.h: New file, automatically generated by
19921         gen-uni-tables.
19922         * lib/unicase/totitle.h: New file, automatically generated by
19923         gen-uni-tables.
19924         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
19925         gen-uni-tables.
19926         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
19927         gen-uni-tables.
19928         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
19929         gen-uni-tables.
19930
19931         New module 'unicase/base'.
19932         * modules/unicase/base: New file.
19933         * lib/unicase.h: New file.
19934
19935 2009-02-08  Bruno Haible  <bruno@clisp.org>
19936
19937         New module 'uniwbrk/ulc-wordbreaks'.
19938         * modules/uniwbrk/ulc-wordbreaks: New file.
19939         * lib/uniwbrk/ulc-wordbreaks.c: New file.
19940
19941         New module 'uniwbrk/u32-wordbreaks'.
19942         * modules/uniwbrk/u32-wordbreaks: New file.
19943         * lib/uniwbrk/u32-wordbreaks.c: New file.
19944
19945         New module 'uniwbrk/u16-wordbreaks'.
19946         * modules/uniwbrk/u16-wordbreaks: New file.
19947         * lib/uniwbrk/u16-wordbreaks.c: New file.
19948
19949         New module 'uniwbrk/u8-wordbreaks'.
19950         * modules/uniwbrk/u8-wordbreaks: New file.
19951         * lib/uniwbrk/u8-wordbreaks.c: New file.
19952         * lib/uniwbrk/u-wordbreaks.h: New file.
19953
19954         New module 'uniwbrk/table'.
19955         * modules/uniwbrk/table: New file.
19956         * lib/uniwbrk/wbrktable.h: New file.
19957         * lib/uniwbrk/wbrktable.c: New file.
19958
19959         New module 'uniwbrk/wordbreak-property'.
19960         * modules/uniwbrk/wordbreak-property: New file.
19961         * lib/uniwbrk/wordbreak-property.c: New file.
19962
19963         * lib/gen-uni-tables.c (WBP_*): New enum items.
19964         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
19965         (unicode_org_wbp): New variable.
19966         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
19967         New functions.
19968         (wbp_table): New structure.
19969         (output_wbp, output_wbrk_tables): New functions.
19970         (main): Accept additional argument. Invoke fill_org_wbp,
19971         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
19972         output_wbrk_tables.
19973         * modules/gen-uni-tables (Description): Update.
19974         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
19975         gen-uni-tables.
19976
19977         New module 'uniwbrk/base'.
19978         * modules/uniwbrk/base: New file.
19979         * lib/uniwbrk.h: New file.
19980
19981 2009-02-08  Bruno Haible  <bruno@clisp.org>
19982
19983         Update to Unicode 5.1.0.
19984         * lib/gen-uni-tables.c (is_property_alphabetic): Include
19985         U+2185..U+2188.
19986         (is_property_default_ignorable_code_point): Don't include characters
19987         of category Cc or Cs and not-a-characters.
19988         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
19989         U+0D79, U+109E, U+109F, U+A60C.
19990         * lib/unictype/bidi_of.h: Regenerated.
19991         * lib/unictype/blocks.h: Regenerated.
19992         * lib/unictype/categ_C.h: Regenerated.
19993         * lib/unictype/categ_Cf.h: Regenerated.
19994         * lib/unictype/categ_Cn.h: Regenerated.
19995         * lib/unictype/categ_L.h: Regenerated.
19996         * lib/unictype/categ_Ll.h: Regenerated.
19997         * lib/unictype/categ_Lm.h: Regenerated.
19998         * lib/unictype/categ_Lo.h: Regenerated.
19999         * lib/unictype/categ_Lu.h: Regenerated.
20000         * lib/unictype/categ_M.h: Regenerated.
20001         * lib/unictype/categ_Mc.h: Regenerated.
20002         * lib/unictype/categ_Me.h: Regenerated.
20003         * lib/unictype/categ_Mn.h: Regenerated.
20004         * lib/unictype/categ_N.h: Regenerated.
20005         * lib/unictype/categ_Nd.h: Regenerated.
20006         * lib/unictype/categ_Nl.h: Regenerated.
20007         * lib/unictype/categ_No.h: Regenerated.
20008         * lib/unictype/categ_P.h: Regenerated.
20009         * lib/unictype/categ_Pd.h: Regenerated.
20010         * lib/unictype/categ_Pe.h: Regenerated.
20011         * lib/unictype/categ_Pf.h: Regenerated.
20012         * lib/unictype/categ_Pi.h: Regenerated.
20013         * lib/unictype/categ_Po.h: Regenerated.
20014         * lib/unictype/categ_Ps.h: Regenerated.
20015         * lib/unictype/categ_S.h: Regenerated.
20016         * lib/unictype/categ_Sk.h: Regenerated.
20017         * lib/unictype/categ_Sm.h: Regenerated.
20018         * lib/unictype/categ_So.h: Regenerated.
20019         * lib/unictype/categ_of.h: Regenerated.
20020         * lib/unictype/combining.h: Regenerated.
20021         * lib/unictype/ctype_alnum.h: Regenerated.
20022         * lib/unictype/ctype_alpha.h: Regenerated.
20023         * lib/unictype/ctype_graph.h: Regenerated.
20024         * lib/unictype/ctype_lower.h: Regenerated.
20025         * lib/unictype/ctype_print.h: Regenerated.
20026         * lib/unictype/ctype_punct.h: Regenerated.
20027         * lib/unictype/ctype_upper.h: Regenerated.
20028         * lib/unictype/decdigit.h: Regenerated.
20029         * lib/unictype/digit.h: Regenerated.
20030         * lib/unictype/mirror.h: Regenerated.
20031         * lib/unictype/numeric.h: Regenerated.
20032         * lib/unictype/pr_alphabetic.h: Regenerated.
20033         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
20034         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
20035         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
20036         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
20037         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
20038         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
20039         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
20040         * lib/unictype/pr_combining.h: Regenerated.
20041         * lib/unictype/pr_dash.h: Regenerated.
20042         * lib/unictype/pr_decimal_digit.h: Regenerated.
20043         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
20044         * lib/unictype/pr_deprecated.h: Regenerated.
20045         * lib/unictype/pr_diacritic.h: Regenerated.
20046         * lib/unictype/pr_extender.h: Regenerated.
20047         * lib/unictype/pr_format_control.h: Regenerated.
20048         * lib/unictype/pr_grapheme_base.h: Regenerated.
20049         * lib/unictype/pr_grapheme_extend.h: Regenerated.
20050         * lib/unictype/pr_grapheme_link.h: Regenerated.
20051         * lib/unictype/pr_id_continue.h: Regenerated.
20052         * lib/unictype/pr_id_start.h: Regenerated.
20053         * lib/unictype/pr_ideographic.h: Regenerated.
20054         * lib/unictype/pr_ignorable_control.h: Regenerated.
20055         * lib/unictype/pr_lowercase.h: Regenerated.
20056         * lib/unictype/pr_math.h: Regenerated.
20057         * lib/unictype/pr_numeric.h: Regenerated.
20058         * lib/unictype/pr_other_alphabetic.h: Regenerated.
20059         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
20060         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
20061         * lib/unictype/pr_other_id_continue.h: Regenerated.
20062         * lib/unictype/pr_other_lowercase.h: Regenerated.
20063         * lib/unictype/pr_other_math.h: Regenerated.
20064         * lib/unictype/pr_punctuation.h: Regenerated.
20065         * lib/unictype/pr_sentence_terminal.h: Regenerated.
20066         * lib/unictype/pr_soft_dotted.h: Regenerated.
20067         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
20068         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
20069         * lib/unictype/pr_unified_ideograph.h: Regenerated.
20070         * lib/unictype/pr_uppercase.h: Regenerated.
20071         * lib/unictype/pr_xid_continue.h: Regenerated.
20072         * lib/unictype/pr_xid_start.h: Regenerated.
20073         * lib/unictype/pr_zero_width.h: Regenerated.
20074         * lib/unictype/scripts.h: Regenerated.
20075         * lib/unictype/scripts_byname.gperf: Regenerated.
20076         * lib/unictype/sy_java_ident.h: Regenerated.
20077         * lib/unilbrk/lbrkprop1.h: Regenerated.
20078         * lib/unilbrk/lbrkprop2.h: Regenerated.
20079         * tests/unictype/test-categ_C.c: Regenerated.
20080         * tests/unictype/test-categ_Cf.c: Regenerated.
20081         * tests/unictype/test-categ_Cn.c: Regenerated.
20082         * tests/unictype/test-categ_L.c: Regenerated.
20083         * tests/unictype/test-categ_Ll.c: Regenerated.
20084         * tests/unictype/test-categ_Lm.c: Regenerated.
20085         * tests/unictype/test-categ_Lo.c: Regenerated.
20086         * tests/unictype/test-categ_Lu.c: Regenerated.
20087         * tests/unictype/test-categ_M.c: Regenerated.
20088         * tests/unictype/test-categ_Mc.c: Regenerated.
20089         * tests/unictype/test-categ_Me.c: Regenerated.
20090         * tests/unictype/test-categ_Mn.c: Regenerated.
20091         * tests/unictype/test-categ_N.c: Regenerated.
20092         * tests/unictype/test-categ_Nd.c: Regenerated.
20093         * tests/unictype/test-categ_Nl.c: Regenerated.
20094         * tests/unictype/test-categ_No.c: Regenerated.
20095         * tests/unictype/test-categ_P.c: Regenerated.
20096         * tests/unictype/test-categ_Pd.c: Regenerated.
20097         * tests/unictype/test-categ_Pe.c: Regenerated.
20098         * tests/unictype/test-categ_Pf.c: Regenerated.
20099         * tests/unictype/test-categ_Pi.c: Regenerated.
20100         * tests/unictype/test-categ_Po.c: Regenerated.
20101         * tests/unictype/test-categ_Ps.c: Regenerated.
20102         * tests/unictype/test-categ_S.c: Regenerated.
20103         * tests/unictype/test-categ_Sk.c: Regenerated.
20104         * tests/unictype/test-categ_Sm.c: Regenerated.
20105         * tests/unictype/test-categ_So.c: Regenerated.
20106         * tests/unictype/test-ctype_alnum.c: Regenerated.
20107         * tests/unictype/test-ctype_alpha.c: Regenerated.
20108         * tests/unictype/test-ctype_graph.c: Regenerated.
20109         * tests/unictype/test-ctype_lower.c: Regenerated.
20110         * tests/unictype/test-ctype_print.c: Regenerated.
20111         * tests/unictype/test-ctype_punct.c: Regenerated.
20112         * tests/unictype/test-ctype_upper.c: Regenerated.
20113         * tests/unictype/test-decdigit.h: Regenerated.
20114         * tests/unictype/test-digit.h: Regenerated.
20115         * tests/unictype/test-numeric.h: Regenerated.
20116         * tests/unictype/test-pr_alphabetic.c: Regenerated.
20117         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
20118         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
20119         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
20120         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
20121         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
20122         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
20123         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
20124         * tests/unictype/test-pr_combining.c: Regenerated.
20125         * tests/unictype/test-pr_dash.c: Regenerated.
20126         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
20127         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
20128         * tests/unictype/test-pr_deprecated.c: Regenerated.
20129         * tests/unictype/test-pr_diacritic.c: Regenerated.
20130         * tests/unictype/test-pr_extender.c: Regenerated.
20131         * tests/unictype/test-pr_format_control.c: Regenerated.
20132         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
20133         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
20134         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
20135         * tests/unictype/test-pr_id_continue.c: Regenerated.
20136         * tests/unictype/test-pr_id_start.c: Regenerated.
20137         * tests/unictype/test-pr_ideographic.c: Regenerated.
20138         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
20139         * tests/unictype/test-pr_lowercase.c: Regenerated.
20140         * tests/unictype/test-pr_math.c: Regenerated.
20141         * tests/unictype/test-pr_numeric.c: Regenerated.
20142         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
20143         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
20144         Regenerated.
20145         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
20146         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
20147         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
20148         * tests/unictype/test-pr_other_math.c: Regenerated.
20149         * tests/unictype/test-pr_punctuation.c: Regenerated.
20150         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
20151         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
20152         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
20153         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
20154         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
20155         * tests/unictype/test-pr_uppercase.c: Regenerated.
20156         * tests/unictype/test-pr_xid_continue.c: Regenerated.
20157         * tests/unictype/test-pr_xid_start.c: Regenerated.
20158         * tests/unictype/test-pr_zero_width.c: Regenerated.
20159
20160         Update to Unicode 5.1.0.
20161         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
20162         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
20163         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
20164         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
20165         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
20166         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
20167         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
20168         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
20169         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
20170         (nonspacing_table_ind): Update.
20171         * tests/uniwidth/test-uc_width2.sh: Update expected result.
20172
20173         Update to Unicode 5.1.0.
20174         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
20175         code transform.
20176         * lib/uniname/uniname.c (unicode_character_name,
20177         unicode_name_character): Add the range 0x1Fxxx to the code transform.
20178         * lib/uniname/uninames.h: Regenerated.
20179         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
20180
20181 2009-02-07  Bruno Haible  <bruno@clisp.org>
20182
20183         Merge gen-ctype and gen-lbrk into a single program.
20184         * lib/gen-uni-tables.c: New file, incorporating
20185         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
20186         Add directory prefixes to the names of the generated files.
20187         * lib/unictype/gen-ctype.c: Remove file.
20188         * lib/unilbrk/gen-lbrk.c: Remove file.
20189         * modules/gen-uni-tables: New file.
20190         * modules/unictype/gen-ctype: Remove file.
20191         * modules/unilbrk/gen-lbrk: Remove file.
20192
20193 2009-02-07  Bruno Haible  <bruno@clisp.org>
20194
20195         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
20196
20197         New module 'unistr/u32-strcoll'.
20198         * modules/unistr/u32-strcoll: New file.
20199         * lib/unistr/u32-strcoll.c: New file.
20200
20201         New module 'unistr/u16-strcoll'.
20202         * modules/unistr/u16-strcoll: New file.
20203         * lib/unistr/u16-strcoll.c: New file.
20204
20205         New module 'unistr/u8-strcoll'.
20206         * modules/unistr/u8-strcoll: New file.
20207         * lib/unistr/u8-strcoll.c: New file.
20208         * lib/unistr/u-strcoll.h: New file.
20209
20210 2009-02-07  Bruno Haible  <bruno@clisp.org>
20211
20212         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
20213         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
20214         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
20215         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
20216         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
20217         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
20218
20219 2009-02-07  Bruno Haible  <bruno@clisp.org>
20220
20221         Make 64-bit clean.
20222         * lib/unictype/gen-ctype.c (output_predicate, output_category,
20223         output_combclass, output_bidi_category, output_decimal_digit,
20224         output_digit, output_numeric, output_mirror, output_scripts,
20225         output_ident_category): Use proper width specifier in format strings.
20226
20227 2009-02-07  Bruno Haible  <bruno@clisp.org>
20228
20229         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
20230         failure behaviour.
20231
20232 2009-02-07  Jim Meyering  <meyering@redhat.com>
20233
20234         regex: avoid compilation failure with upcoming gcc-4.4
20235         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
20236         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
20237         "... error: integer overflow in preprocessor expression".
20238
20239 2009-02-05  Ben Pfaff  <blp@gnu.org>
20240
20241         Fix link errors on Windows when close module is used.
20242         * modules/close: Add $(LIB_CLOSE) to Link section.
20243         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
20244         $(LIB_CLOSE) on Windows.
20245
20246 2009-02-05  Jim Meyering  <meyering@redhat.com>
20247
20248         still avoid unused-parameter warnings, but do it cleanly
20249         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
20250         (get_fs_usage): Cast to void instead.
20251         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
20252         (dev_from_mount_options, read_file_system_list): Cast to void.
20253         Prompted by Bruno Haible.
20254
20255 2009-02-04  Jim Meyering  <meyering@redhat.com>
20256
20257         fsusage.c: correct copyright year
20258         * lib/fsusage.c: Reflect year in which the change is pushed into
20259
20260         avoid misc. warnings
20261         * lib/fsusage.c (UNUSED_PARAM): Define.
20262         (get_fs_usage): Mark parameter "disk" as unused.
20263         * lib/getugroups.c (getgrent): Use "void" in prototype.
20264         * lib/mountlist.c: Mark unused parameters.
20265         (read_file_system_list): Declare a local with "const".
20266         * lib/nanosleep.c (getnow): Declare static.
20267         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
20268
20269         dirfd: set errno upon failure
20270         * lib/dirfd.c: Include <errno.h>.
20271         Set errno to ENOTSUP when returning -1.
20272         * modules/dirfd (Depends-on): Add errno.
20273         Suggested by John Kodis <kodis@comcast.net>.
20274
20275 2009-02-01  Bruno Haible  <bruno@clisp.org>
20276
20277         Don't assume sizeof (long) >= sizeof (void *).
20278         * lib/memcmp.c: Include stdint.h.
20279         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
20280         srcp2 to 'const byte *'.
20281         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
20282         types to uintptr_t.
20283         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
20284         * modules/memcmp (Depends-on): Add stdint.
20285         Reported by Ozkan Sezer <sezeroz@gmail.com>.
20286
20287 2009-01-30  Eric Blake  <ebb9@byu.net>
20288
20289         fix more require-before-expand issues
20290         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
20291         expand, AC_PROG_AWK.
20292         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
20293
20294 2009-01-28  Eric Blake  <ebb9@byu.net>
20295
20296         version-etc: use consistent URL formatting
20297         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
20298         Improve formatting.  Use fputs for string without %.
20299
20300 2009-01-28  Jim Meyering  <meyering@redhat.com>
20301
20302         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
20303         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
20304         "underquoted definition of NAME" from autoconf-2.59.
20305
20306 2009-01-28  Bruno Haible  <bruno@clisp.org>
20307
20308         * doc/gnulib.texi: Add "Obsolete modules" to index.
20309
20310 2009-01-28  Jim Meyering  <meyering@redhat.com>
20311
20312         useless-if-before-free: recognize more variants
20313         * build-aux/useless-if-before-free: Also recognize e.g.,
20314         if (NULL != p) free (p);
20315
20316 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
20317
20318         test-getaddrinfo: skip (don't fail) this test when there's no network
20319         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
20320         on the presumption that it means you lack network access.
20321
20322 2009-01-26  Jim Meyering  <meyering@redhat.com>
20323
20324         fflush: avoid warnings on modern systems
20325         * lib/fflush.c (rpl_fflush): Move declarations of locals,
20326         pos and result, into scopes where they're used.
20327
20328 2009-01-26  Eric Blake  <ebb9@byu.net>
20329
20330         Silence warning reintroduced by recent extensions patch.
20331         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
20332         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
20333         autoconf.
20334
20335         Backport improved autoconf semantics of AC_DEFUN_ONCE.
20336         * m4/00gnulib.m4: New file.
20337         * gnulib-tool (func_get_filelist): Always use it.
20338         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
20339         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
20340
20341 2009-01-25  Bruno Haible  <bruno@clisp.org>
20342
20343         Make test-quotearg work on MacOS X and AIX.
20344         * tests/test-quotearg.sh: New file.
20345         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
20346         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
20347         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
20348         include <libintl.h>.
20349         (fake_locale): Remove variable.
20350         (gettext, dgettext, dcgettext): Remove functions.
20351         (main): Instead of setting a fake locale, set a real locale. Call
20352         textdomain and bindtextdomain.
20353         * modules/quotearg-tests (Files): Add the new files.
20354         (Depends-on): Add gettext, setenv, unsetenv.
20355         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
20356         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
20357         Augment TESTS_ENVIRONMENT.
20358
20359 2009-01-25  Bruno Haible  <bruno@clisp.org>
20360
20361         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
20362         fr_FR.ISO8859-1 locale on MacOS X.
20363         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
20364         ja_JP.eucJP locale on MacOS X.
20365         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
20366         zh_CN.GB18030 locale on MacOS X.
20367
20368 2009-01-25  Bruno Haible  <bruno@clisp.org>
20369
20370         Avoid link errors on MacOS X 10.3.
20371         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
20372         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
20373
20374 2009-01-25  Bruno Haible  <bruno@clisp.org>
20375
20376         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
20377         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
20378         * modules/pipe (Files): Remove m4/posix_spawn.m4.
20379         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
20380         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
20381         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
20382         posix_spawnattr_init, posix_spawnattr_setsigmask,
20383         posix_spawnattr_setflags, posix_spawnattr_destroy.
20384
20385         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
20386         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
20387         * modules/execute (Files): Remove m4/posix_spawn.m4.
20388         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
20389         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
20390         posix_spawnattr_init, posix_spawnattr_setsigmask,
20391         posix_spawnattr_setflags, posix_spawnattr_destroy.
20392
20393 2009-01-25  Bruno Haible  <bruno@clisp.org>
20394
20395         * lib/glthread/threadlib.c: Include <stdlib.h>.
20396
20397 2009-01-25  Bruno Haible  <bruno@clisp.org>
20398
20399         * lib/glthread/threadlib.c (dummy): New declaration.
20400
20401 2009-01-25  Bruno Haible  <bruno@clisp.org>
20402
20403         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
20404         multibyte characters also for the GB18030 encoding. Don't crash when
20405         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
20406
20407 2009-01-25  Bruno Haible  <bruno@clisp.org>
20408
20409         Avoid redefining 'struct random_data' on OSF/1 5.1.
20410         * lib/stdlib.in.h: Include <random.h> if it exists.
20411         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
20412         HAVE_RANDOM_H. Include <random.h> when testing whether
20413         'struct random_data' exists.
20414         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
20415
20416 2009-01-25  Bruno Haible  <bruno@clisp.org>
20417
20418         Don't install charset.alias on MacOS X >= 10.3.
20419         * lib/localcharset.c (DARWIN7): New macro.
20420         (get_charset_aliases): Hardcode the result for Darwin7.
20421         * modules/localcharset (install-exec-local): Don't install
20422         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
20423
20424 2009-01-25  Bruno Haible  <bruno@clisp.org>
20425
20426         Don't install charset.alias on mingw and Cygwin.
20427         * modules/localcharset (install-exec-local): Don't install
20428         charset.alias on mingw and Cygwin, if the file does not yet exist.
20429         The result for these platforms is hardcoded in localcharset.c.
20430
20431 2009-01-25  Bruno Haible  <bruno@clisp.org>
20432
20433         Make it possible again to use AC_GNU_SOURCE together with gnulib.
20434         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
20435         before requiring AC_USE_SYSTEM_EXTENSIONS.
20436
20437 2009-01-25  Jim Meyering  <meyering@redhat.com>
20438
20439         c-strtod: avoid warnings
20440         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
20441         "assignment discards qualifiers from pointer target type" warnings.
20442
20443 2009-01-24  Bruno Haible  <bruno@clisp.org>
20444
20445         Add support for non-UTF-8 locales on MacOS X.
20446         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
20447         canonical encodings. For Darwin 7 and newer, don't map traditional
20448         encodings to UTF-8.
20449         Reported by Vincent Lefevre <vincent@vinc17.org>
20450         at <http://savannah.gnu.org/bugs/?25235>.
20451
20452 2009-01-24  Bruno Haible  <bruno@clisp.org>
20453
20454         * doc/gnulib.texi (Obsolete modules): New section.
20455         Reported by Mike Frysinger <vapier@gentoo.org>.
20456
20457 2009-01-24  Bruno Haible  <bruno@clisp.org>
20458
20459         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
20460         (%.dvi): New rule.
20461
20462 2009-01-24  Bruno Haible  <bruno@clisp.org>
20463
20464         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
20465         Reported by Eric Blake.
20466
20467 2009-01-24  Bruno Haible  <bruno@clisp.org>
20468
20469         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
20470         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
20471         Reported by Gary V. Vaughan <gary@gnu.org>.
20472
20473 2009-01-24  Bruno Haible  <bruno@clisp.org>
20474
20475         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
20476
20477 2009-01-23  Bruno Haible  <bruno@clisp.org>
20478
20479         Make c-strtod, c-strtold usable in libraries.
20480         * lib/c-strtod.c: Include string.h instead of xalloc.h.
20481         (C_STRTOD): Call strdup instead of xstrdup.
20482         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
20483         * modules/c-strtold (Depends-on): Likewise.
20484         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
20485         * NEWS: Mention the change.
20486         Reported by Michael Gold <mgold@ncf.ca>.
20487
20488 2009-01-23  Jim Meyering  <meyering@redhat.com>
20489
20490         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
20491         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
20492         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
20493
20494 2009-01-23  Simon Josefsson  <simon@josefsson.org>
20495
20496         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
20497         GNU CoreUtils.
20498         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
20499         * modules/version-etc (Description): Update.
20500
20501 2009-01-22  Bruno Haible  <bruno@clisp.org>
20502
20503         Cache the C locale object.
20504         * lib/c-strtod.c (c_locale_cache): New variable.
20505         (c_locale): New function.
20506         (C_STRTOD): Use it, and don't call freelocale.
20507         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
20508         Suggested by Paolo Bonzini.
20509
20510 2009-01-21  Bruno Haible  <bruno@clisp.org>
20511
20512         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
20513         conditions other than overflow.
20514
20515 2009-01-21  Bruno Haible  <bruno@clisp.org>
20516
20517         * lib/c-strtod.c: Include errno.h.
20518         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
20519         value from STRTOD_L and STRTOD.
20520
20521 2009-01-21  Bruno Haible  <bruno@clisp.org>
20522         and Jim Meyering  <meyering@redhat.com>
20523
20524         nanosleep: skip configure test (fail it) for apple universal builds
20525         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
20526         universal builds, assume that nanosleep does not work.
20527         * modules/nanosleep (Depends-on): Add multiarch.
20528
20529         mktime: skip configure test (fail it) for apple universal builds
20530         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
20531         universal builds, assume that mktime does not work.
20532         * modules/mktime (Depends-on): Add multiarch.
20533
20534 2009-01-21  Eric Blake  <ebb9@byu.net>
20535
20536         multiarch: avoid expand-before-require warning
20537         * modules/multiarch (configure.ac): Require, rather than expand,
20538         gl_MULTIARCH.
20539         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
20540         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
20541         enforce that all clients require it.  Partial reversion of
20542         2008-12-29 patch.
20543
20544         error: avoid expand-before-require warning
20545         * modules/errno (configure.ac): Require, rather than expand,
20546         gl_HEADER_ERRNO_H.
20547         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
20548         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
20549         enforce that all clients require it.
20550
20551         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
20552         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
20553         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
20554         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
20555
20556 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
20557
20558         Revert:
20559         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
20560
20561         regex: do not depend on obsolete modules.
20562         * modules/regex: Remove memcmp and memmove.
20563
20564 2009-01-20  Bruno Haible  <bruno@clisp.org>
20565
20566         Make the 'link' module link on Windows NT 4.
20567         * lib/link.c (_WIN32_WINNT): Don't define.
20568         (CreateHardLinkFuncType): New type.
20569         (CreateHardLinkFunc, initialized): New variables.
20570         (initialize): New function.
20571         (link): Invoke CreateHardLink indirectly through the function pointer.
20572
20573 2009-01-20  Bruno Haible  <bruno@clisp.org>
20574
20575         Fix compilation failure on mingw.
20576         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
20577
20578 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
20579
20580         * doc/c-strtod.texi: Mention a couple of restrictions.
20581
20582 2009-01-20  Jim Meyering  <meyering@redhat.com>
20583
20584         gettimeofday: move more declarations out of functions
20585         * lib/gettimeofday.c: Move extern declarations of tzset and
20586         gmtime out of containing functions.  Prompted by Bruno Haible.
20587
20588 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
20589
20590         regex: do not depend on obsolete modules.
20591         * modules/regex: Remove memcmp and memmove.
20592
20593 2009-01-19  Bruno Haible  <bruno@clisp.org>
20594
20595         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
20596         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
20597         gl_BIGENDIAN, not AC_C_BIGENDIAN.
20598         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
20599         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
20600
20601 2009-01-19  Bruno Haible  <bruno@clisp.org>
20602
20603         * tests/test-link.c: Include <errno.h>.
20604         (main): Exit with code 77 when a hard link cannot be created due to
20605         the file system.
20606         * tests/test-link.sh: Skip test when a hard link cannot be created due
20607         to the file system.
20608         Suggested by Eric Blake.
20609
20610 2009-01-19  Martin Lambers  <marlam@marlam.de>
20611
20612         * modules/link-tests: New file.
20613         * tests/test-link.sh: New file.
20614         * tests/test-link.c: New file.
20615
20616 2009-01-19  Eric Blake  <ebb9@byu.net>
20617
20618         doc: mention another function added in cygwin 1.7.0
20619         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
20620         Another new function in cygwin 1.7.
20621
20622 2009-01-19  Bruno Haible  <bruno@clisp.org>
20623
20624         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
20625         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
20626         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
20627         gl_BIGENDIAN, not AC_C_BIGENDIAN.
20628         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
20629         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
20630         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
20631         * m4/md4.m4 (gl_MD4): Likewise.
20632         * m4/md5.m4 (gl_MD5): Likewise.
20633         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
20634         * m4/sha1.m4 (gl_SHA1): Likewise.
20635         * m4/sha256.m4 (gl_SHA256): Likewise.
20636         * m4/sha512.m4 (gl_SHA512): Likewise.
20637
20638 2009-01-19  Bruno Haible  <bruno@clisp.org>
20639
20640         * modules/uniname/uniname-tests (Depends-on): Add progname.
20641         * tests/uniname/test-uninames.c: Include progname.h.
20642         (main): Call set_program_name.
20643
20644         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
20645         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
20646         (main): Call set_program_name.
20647
20648         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
20649         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
20650         (main): Call set_program_name.
20651
20652         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
20653         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
20654         (main): Call set_program_name.
20655
20656         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
20657         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
20658         (main): Call set_program_name.
20659
20660         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
20661         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
20662         (main): Call set_program_name.
20663
20664         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
20665         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
20666         (main): Call set_program_name.
20667
20668         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
20669         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
20670         (main): Call set_program_name.
20671
20672         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
20673         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
20674         (main): Call set_program_name.
20675
20676 2009-01-19  Eric Blake  <ebb9@byu.net>
20677
20678         test-unistd: test previous patch
20679         * tests/test-unistd.c: Test *_FILENO macros.
20680
20681         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
20682         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
20683         Guarantee a definition.
20684         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
20685         * modules/unistd-safer (Depends-on): Add dependency on unistd.
20686         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
20687         * lib/dup-safer.c (STDERR_FILENO): Likewise.
20688         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
20689         Likewise.
20690         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
20691         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
20692         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
20693         Likewise.
20694         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
20695         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
20696         (STDERR_FILENO): Likewise.
20697         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
20698         (STDERR_FILENO): Likewise.
20699         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
20700         (STDERR_FILENO): Likewise.
20701         Reported by Elbert Pol.
20702
20703 2009-01-19  Eric Blake  <ebb9@byu.net>
20704
20705         doc: mention more functions added in cygwin 1.7.0
20706         * doc/posix-functions/abort.texi (abort): Update wording related
20707         to cygwin.
20708         * doc/posix-functions/daylight.texi (daylight): Likewise.
20709         * doc/posix-functions/optarg.texi (optarg): Likewise.
20710         * doc/posix-functions/optarg.texi (opterr): Likewise.
20711         * doc/posix-functions/optarg.texi (optind): Likewise.
20712         * doc/posix-functions/optarg.texi (optopt): Likewise.
20713         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
20714         worked in 1.5.x, and was withdrawn in 1.7.
20715         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
20716         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
20717         cygwin versions.
20718         * doc/posix-functions/perror.texi (perror): Likewise.
20719         * doc/posix-functions/printf.texi (printf): Likewise.
20720         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
20721         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
20722         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
20723         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
20724         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
20725         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
20726         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
20727         Likewise.
20728         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
20729         Likewise.
20730         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
20731         this function.
20732         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
20733         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
20734         Likewise.
20735         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
20736         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
20737         * doc/posix-functions/confstr.texi (confstr): Likewise.
20738         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
20739         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
20740         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
20741         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
20742         * doc/posix-functions/fputws.texi (fputws): Likewise.
20743         * doc/posix-functions/fwide.texi (fwide): Likewise.
20744         * doc/posix-functions/getwc.texi (getwc): Likewise.
20745         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
20746         * doc/posix-functions/putwc.texi (putwc): Likewise.
20747         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
20748         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
20749         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
20750         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
20751         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
20752         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
20753         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
20754         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
20755         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
20756         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
20757         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
20758
20759 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
20760
20761         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
20762         * lib/ioctl.c: Include <sys/ioctl.h>.
20763
20764 2009-01-19  Simon Josefsson  <simon@josefsson.org>
20765
20766         * modules/getdate-tests (Depends-on): Add progname.
20767         * tests/test-getdate.c: Use progname module, to avoid link errors
20768         on non-glibc systems.
20769
20770 2009-01-18  Simon Josefsson  <simon@josefsson.org>
20771
20772         * modules/filenamecat-tests (Depends-on): Add progname.
20773         * modules/fstrcmp-tests (Depends-on): Likewise.
20774
20775         * tests/test-filenamecat.c: Use progname module, to avoid link
20776         errors on non-glibc systems.
20777         * tests/test-fstrcmp.c: Likewise.
20778
20779 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
20780
20781         gettimeofday: avoid warning: nested extern declaration of 'localtime'
20782         * lib/gettimeofday.c: Move extern declaration out of function.
20783
20784 2009-01-18  Bruno Haible  <bruno@clisp.org>
20785
20786         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
20787         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
20788         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
20789
20790 2009-01-18  Bruno Haible  <bruno@clisp.org>
20791
20792         * lib/strftime.c (MEMPCPY): Remove unused macro.
20793         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
20794
20795 2009-01-18  Martin Lambers  <marlam@marlam.de>
20796
20797         New module 'link'.
20798         * lib/unistd.in.h (link): New declaration.
20799         * lib/link.c: New file.
20800         * m4/link.m4: New file.
20801         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
20802         HAVE_LINK.
20803         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
20804         * modules/link: New file.
20805         * doc/posix-functions/link.texi: Mention the new module.
20806
20807 2009-01-18  Bruno Haible  <bruno@clisp.org>
20808
20809         * tests/test-avltree_list.c (main): Call set_program_name.
20810         * tests/test-avltree_oset.c (main): Likewise.
20811         * tests/test-obstack-printf.c: Include progname.h.
20812         (main): Call set_program_name.
20813         * tests/test-quotearg.c: Include progname.h.
20814         (main): Call set_program_name.
20815         * tests/test-xmemdup0.c: Include progname.h.
20816         (main): Call set_program_name.
20817
20818 2009-01-18  Bruno Haible  <bruno@clisp.org>
20819
20820         New module 'alphasort'.
20821         * lib/dirent.in.h (alphasort): New declaration.
20822         * lib/alphasort.c: New file, from glibc with modifications.
20823         * m4/alphasort.m4: New file.
20824         * modules/alphasort: New file.
20825         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
20826         HAVE_ALPHASORT.
20827         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
20828         HAVE_ALPHASORT.
20829         * doc/posix-functions/alphasort.texi: Mention the new module and the
20830         portability problems.
20831
20832 2009-01-18  Bruno Haible  <bruno@clisp.org>
20833
20834         New module 'scandir'.
20835         * lib/dirent.in.h (scandir): New declaration.
20836         * lib/scandir.c: New file, from glibc with modifications.
20837         * m4/scandir.m4: New file.
20838         * modules/scandir: New file.
20839         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
20840         HAVE_SCANDIR.
20841         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
20842         HAVE_SCANDIR.
20843         * doc/posix-functions/scandir.texi: Mention the new module and the
20844         portability problems.
20845
20846 2009-01-17  Bruno Haible  <bruno@clisp.org>
20847
20848         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
20849         Update documentation.
20850         (func_remove_suffix): Escape all dots in the suffix. Update
20851         documentation.
20852         (func_filter_filelist): Update documentation.
20853         Reported by Ralf Wildenhues.
20854
20855 2009-01-17  Bruno Haible  <bruno@clisp.org>
20856
20857         * modules/dprintf-posix-tests: New file.
20858         * tests/test-dprintf-posix.sh: New file.
20859         * tests/test-dprintf-posix.c: New file.
20860
20861         New modules 'dprintf', 'dprintf-posix'.
20862         * lib/stdio.in.h (dprintf): New declaration.
20863         * lib/dprintf.c: New file.
20864         * m4/dprintf.m4: New file.
20865         * m4/dprintf-posix.m4: New file.
20866         * modules/dprintf: New file.
20867         * modules/dprintf-posix: New file.
20868         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
20869         HAVE_DPRINTF, REPLACE_DPRINTF.
20870         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
20871         HAVE_DPRINTF, REPLACE_DPRINTF.
20872         * doc/posix-functions/dprintf.texi: Mention the new modules.
20873
20874 2009-01-17  Bruno Haible  <bruno@clisp.org>
20875
20876         * modules/vdprintf-posix-tests: New file.
20877         * tests/test-vdprintf-posix.sh: New file.
20878         * tests/test-vdprintf-posix.c: New file.
20879
20880         New modules 'vdprintf', 'vdprintf-posix'.
20881         * lib/stdio.in.h (vdprintf): New declaration.
20882         * lib/vdprintf.c: New file.
20883         * m4/vdprintf.m4: New file.
20884         * m4/vdprintf-posix.m4: New file.
20885         * modules/vdprintf: New file.
20886         * modules/vdprintf-posix: New file.
20887         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
20888         HAVE_VDPRINTF, REPLACE_VDPRINTF.
20889         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
20890         HAVE_VDPRINTF, REPLACE_VDPRINTF.
20891         * doc/posix-functions/vdprintf.texi: Mention the new modules.
20892
20893 2009-01-17  Bruno Haible  <bruno@clisp.org>
20894
20895         Fix replacement of fopen on mingw.
20896         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
20897         mingw.
20898
20899 2009-01-17  Bruno Haible  <bruno@clisp.org>
20900
20901         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
20902         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
20903
20904 2009-01-17  Bruno Haible  <bruno@clisp.org>
20905
20906         Avoid test-fflush2.sh failure on mingw.
20907         * tests/test-fflush2.c: Include binary-io.h.
20908         (main): Put standard input into binary mode.
20909         * modules/fflush-tests (Depends-on): Add binary-io.
20910
20911 2009-01-17  Bruno Haible  <bruno@clisp.org>
20912
20913         * lib/wchar.in.h: In another particular situation, include only the
20914         system's <wchar.h> file.
20915         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
20916         Reported by Albert Chin-A-Young <china@thewrittenword.com>
20917         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
20918
20919 2009-01-17  Bruno Haible  <bruno@clisp.org>
20920
20921         Support for stripping executables in --enable-relocatable.
20922         * build-aux/install-reloc: Expect one more argument, or an environment
20923         variable RELOC_STRIP_PROG. If set, strip the destination program and
20924         its wrapper.
20925         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
20926         RELOC_STRIP_PROG.
20927         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
20928         to set RELOCATABLE_STRIP.
20929         * NEWS: Mention the new Makefile requirement.
20930
20931 2009-01-17  Bruno Haible  <bruno@clisp.org>
20932
20933         * build-aux/install-reloc: Remove debugging information left over by
20934         C compiler on MacOS X.
20935
20936 2009-01-17  Bruno Haible  <bruno@clisp.org>
20937
20938         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
20939         * lib/progreloc.c (find_executable): Fix type of pointer passed to
20940         _NSGetExecutablePath.
20941
20942 2009-01-16  Jim Meyering  <meyering@redhat.com>
20943
20944         strerror: avoid warnings about discarding "const"
20945         * lib/strerror.c (rpl_strerror): Instead of returning a const
20946         string from each and every "case", use a variable, and add a single
20947         cast after the switch.
20948
20949 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
20950
20951         * lib/arpa_inet.in.h: Add extern "C" block for C++.
20952
20953 2009-01-16  Bruno Haible  <bruno@clisp.org>
20954
20955         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
20956         array initializer syntax that also works in C++ mode.
20957         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20958
20959 2009-01-16  Jim Meyering  <meyering@redhat.com>
20960
20961         poll: suppress a warning
20962         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
20963         to ignore "...unsigned expression < 0 is always false" warnings.
20964
20965 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
20966
20967         poll: remove declarations of unused variables
20968         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
20969         sockbuf and optlen.
20970
20971 2009-01-15  Bruno Haible  <bruno@clisp.org>
20972
20973         Make fflush-after-ungetc POSIX compliant on BSD systems.
20974         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
20975         (clear_ungetc_buffer): Implement also for other systems.
20976         (rpl_fflush): On glibc systems, invoke
20977         clear_ungetc_buffer_preserving_position. Otherwise, invoke
20978         clear_ungetc_buffer after fetching the stream's position, not before.
20979
20980 2009-01-15  Bruno Haible  <bruno@clisp.org>
20981
20982         Make fflush-after-ungetc POSIX compliant on glibc systems.
20983         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
20984         after ungetc.
20985         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
20986         (rpl_fflush): On glibc systems, simply call the system's fflush
20987         function after clearing the ungetc buffer.
20988         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
20989         Instead, lseek only to the end of file, then use the system's fseeko
20990         for the rest. On glibc systems, reset the EOF indicator bit.
20991
20992 2009-01-15  Jim Meyering  <meyering@redhat.com>
20993
20994         openmp.m4: revert quote-adding change, for portability to older autoconf
20995         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
20996         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
20997         Simon Josefsson noticed the problem when using autoconf-2.61.
20998
20999 2009-01-15  Bruno Haible  <bruno@clisp.org>
21000
21001         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
21002         * tests/test-fflush2.c (ASSERT): Always fail.
21003         (main): Add two tests for fflush() after ungetc(), taking into account
21004         the Austin Group's clarification.
21005         Suggested by Eric Blake.
21006
21007 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
21008
21009         mktime.m4: remove K&R-style function prototypes
21010         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
21011         for the Sun C++ compiler.
21012
21013 2009-01-14  Bruno Haible  <bruno@clisp.org>
21014
21015         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
21016         while including <wchar.h>.
21017         * lib/wchar.in.h: In two particular situations on HP-UX, include only
21018         the system's <wchar.h> file.
21019         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
21020
21021 2009-01-14  Bruno Haible  <bruno@clisp.org>
21022
21023         * m4/csharp.m4: Don't mention gettext on the serial number line.
21024         * m4/csharpexec.m4: Likewise.
21025         * m4/eaccess.m4: Likewise.
21026         * m4/javaexec.m4: Likewise.
21027         * m4/sig_atomic_t.m4: Likewise.
21028         * m4/tmpdir.m4: Likewise.
21029         * m4/intldir.m4: Bump gettext version.
21030         * m4/lib-ld.m4: Likewise.
21031
21032 2009-01-14  Bruno Haible  <bruno@clisp.org>
21033
21034         * lib/progname.c (set_program_name): Add more comments.
21035         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
21036
21037 2009-01-14  Simon Josefsson  <simon@josefsson.org>
21038
21039         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
21040         were sys/stat.h does not define it.
21041
21042 2009-01-14  Jim Meyering  <meyering@redhat.com>
21043
21044         many *.m4 files: improve m4 quoting
21045         99% of this change was performed by running the following commands:
21046         git ls-files | grep '\.m4$' | xargs perl -pi \
21047           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
21048           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
21049           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
21050           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
21051         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
21052         The remainder were to add Copyright dates, increment serial numbers,
21053         undo some changes in comments, exclude m4/intl.m4, and add quotes
21054         around the "1" in ",1" where the unusual spacing prohibited the
21055         above regexps from doing the job.  For more details, see
21056         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
21057         * m4/acl.m4: Modified.
21058         * m4/afs.m4: Likewise.
21059         * m4/alloca.m4: Likewise.
21060         * m4/argp.m4: Likewise.
21061         * m4/argz.m4: Likewise.
21062         * m4/atexit.m4: Likewise.
21063         * m4/bison-i18n.m4: Likewise.
21064         * m4/bison.m4: Likewise.
21065         * m4/byteswap.m4: Likewise.
21066         * m4/c-stack.m4: Likewise.
21067         * m4/c-strtod.m4: Likewise.
21068         * m4/calloc.m4: Likewise.
21069         * m4/canonicalize-lgpl.m4: Likewise.
21070         * m4/chown.m4: Likewise.
21071         * m4/clock_time.m4: Likewise.
21072         * m4/codeset.m4: Likewise.
21073         * m4/copy-file.m4: Likewise.
21074         * m4/csharp.m4: Likewise.
21075         * m4/csharpcomp.m4: Likewise.
21076         * m4/csharpexec.m4: Likewise.
21077         * m4/d-ino.m4: Likewise.
21078         * m4/d-type.m4: Likewise.
21079         * m4/dirfd.m4: Likewise.
21080         * m4/double-slash-root.m4: Likewise.
21081         * m4/eaccess.m4: Likewise.
21082         * m4/eealloc.m4: Likewise.
21083         * m4/environ.m4: Likewise.
21084         * m4/errno_h.m4: Likewise.
21085         * m4/euidaccess.m4: Likewise.
21086         * m4/execute.m4: Likewise.
21087         * m4/fatal-signal.m4: Likewise.
21088         * m4/fchdir.m4: Likewise.
21089         * m4/fcntl_h.m4: Likewise.
21090         * m4/fileblocks.m4: Likewise.
21091         * m4/filenamecat.m4: Likewise.
21092         * m4/findprog.m4: Likewise.
21093         * m4/flexmember.m4: Likewise.
21094         * m4/fnmatch.m4: Likewise.
21095         * m4/fopen.m4: Likewise.
21096         * m4/fpending.m4: Likewise.
21097         * m4/fprintf-posix.m4: Likewise.
21098         * m4/free.m4: Likewise.
21099         * m4/frexp.m4: Likewise.
21100         * m4/frexpl.m4: Likewise.
21101         * m4/fsusage.m4: Likewise.
21102         * m4/ftruncate.m4: Likewise.
21103         * m4/gc-camellia.m4: Likewise.
21104         * m4/gc-random.m4: Likewise.
21105         * m4/gc.m4: Likewise.
21106         * m4/getaddrinfo.m4: Likewise.
21107         * m4/getcwd-abort-bug.m4: Likewise.
21108         * m4/getcwd-path-max.m4: Likewise.
21109         * m4/getdate.m4: Likewise.
21110         * m4/getdomainname.m4: Likewise.
21111         * m4/getgroups.m4: Likewise.
21112         * m4/gethostname.m4: Likewise.
21113         * m4/gethrxtime.m4: Likewise.
21114         * m4/getline.m4: Likewise.
21115         * m4/getloadavg.m4: Likewise.
21116         * m4/getndelim2.m4: Likewise.
21117         * m4/getpass.m4: Likewise.
21118         * m4/gettext.m4: Likewise.
21119         * m4/gettime.m4: Likewise.
21120         * m4/gettimeofday.m4: Likewise.
21121         * m4/gnulib-common.m4: Likewise.
21122         * m4/group-member.m4: Likewise.
21123         * m4/host-os.m4: Likewise.
21124         * m4/iconv.m4: Likewise.
21125         * m4/iconv_open.m4: Likewise.
21126         * m4/inet_ntop.m4: Likewise.
21127         * m4/inet_pton.m4: Likewise.
21128         * m4/inline.m4: Likewise.
21129         * m4/intldir.m4: Likewise.
21130         * m4/intlmacosx.m4: Likewise.
21131         * m4/intmax.m4: Likewise.
21132         * m4/intmax_t.m4: Likewise.
21133         * m4/inttypes.m4: Likewise.
21134         * m4/inttypes_h.m4: Likewise.
21135         * m4/inttypes-pri.m4: Likewise.
21136         * m4/isapipe.m4: Likewise.
21137         * m4/isnand.m4: Likewise.
21138         * m4/isnanf.m4: Likewise.
21139         * m4/isnanl.m4: Likewise.
21140         * m4/javacomp.m4: Likewise.
21141         * m4/javaexec.m4: Likewise.
21142         * m4/jm-winsz1.m4: Likewise.
21143         * m4/jm-winsz2.m4: Likewise.
21144         * m4/lchown.m4: Likewise.
21145         * m4/lcmessage.m4: Likewise.
21146         * m4/ldexpl.m4: Likewise.
21147         * m4/lib-ld.m4: Likewise.
21148         * m4/lib-link.m4: Likewise.
21149         * m4/libsigsegv.m4: Likewise.
21150         * m4/link-follow.m4: Likewise.
21151         * m4/localcharset.m4: Likewise.
21152         * m4/locale-fr.m4: Likewise.
21153         * m4/locale-ja.m4: Likewise.
21154         * m4/locale-tr.m4: Likewise.
21155         * m4/locale-zh.m4: Likewise.
21156         * m4/lock.m4: Likewise.
21157         * m4/longlong.m4: Likewise.
21158         * m4/ls-mntd-fs.m4: Likewise.
21159         * m4/lstat.m4: Likewise.
21160         * m4/malloc.m4: Likewise.
21161         * m4/mathl.m4: Likewise.
21162         * m4/mbrtowc.m4: Likewise.
21163         * m4/mbstate_t.m4: Likewise.
21164         * m4/mbswidth.m4: Likewise.
21165         * m4/memchr.m4: Likewise.
21166         * m4/memcmp.m4: Likewise.
21167         * m4/memcpy.m4: Likewise.
21168         * m4/memmem.m4: Likewise.
21169         * m4/memmove.m4: Likewise.
21170         * m4/mempcpy.m4: Likewise.
21171         * m4/memrchr.m4: Likewise.
21172         * m4/memset.m4: Likewise.
21173         * m4/minmax.m4: Likewise.
21174         * m4/mkdir-slash.m4: Likewise.
21175         * m4/mkdtemp.m4: Likewise.
21176         * m4/mktime.m4: Likewise.
21177         * m4/mmap-anon.m4: Likewise.
21178         * m4/mountlist.m4: Likewise.
21179         * m4/nanosleep.m4: Likewise.
21180         * m4/nls.m4: Likewise.
21181         * m4/nocrash.m4: Likewise.
21182         * m4/open.m4: Likewise.
21183         * m4/openat.m4: Likewise.
21184         * m4/openmp.m4: Likewise.
21185         * m4/pathmax.m4: Likewise.
21186         * m4/perl.m4: Likewise.
21187         * m4/physmem.m4: Likewise.
21188         * m4/pipe.m4: Likewise.
21189         * m4/po.m4: Likewise.
21190         * m4/poll.m4: Likewise.
21191         * m4/posixtm.m4: Likewise.
21192         * m4/posixver.m4: Likewise.
21193         * m4/printf-frexp.m4: Likewise.
21194         * m4/printf-frexpl.m4: Likewise.
21195         * m4/printf-posix.m4: Likewise.
21196         * m4/printf-posix-rpl.m4: Likewise.
21197         * m4/printf.m4: Likewise.
21198         * m4/progtest.m4: Likewise.
21199         * m4/putenv.m4: Likewise.
21200         * m4/readline.m4: Likewise.
21201         * m4/readlink.m4: Likewise.
21202         * m4/readutmp.m4: Likewise.
21203         * m4/realloc.m4: Likewise.
21204         * m4/regex.m4: Likewise.
21205         * m4/relocatable.m4: Likewise.
21206         * m4/relocatable-lib.m4: Likewise.
21207         * m4/rename-dest-slash.m4: Likewise.
21208         * m4/rename.m4: Likewise.
21209         * m4/rmdir-errno.m4: Likewise.
21210         * m4/rmdir.m4: Likewise.
21211         * m4/roundf.m4: Likewise.
21212         * m4/roundl.m4: Likewise.
21213         * m4/rpmatch.m4: Likewise.
21214         * m4/save-cwd.m4: Likewise.
21215         * m4/selinux-selinux-h.m4: Likewise.
21216         * m4/setenv.m4: Likewise.
21217         * m4/settime.m4: Likewise.
21218         * m4/sig2str.m4: Likewise.
21219         * m4/sig_atomic_t.m4: Likewise.
21220         * m4/signalblocking.m4: Likewise.
21221         * m4/signbit.m4: Likewise.
21222         * m4/sigpipe.m4: Likewise.
21223         * m4/sockets.m4: Likewise.
21224         * m4/sockpfaf.m4: Likewise.
21225         * m4/st_dm_mode.m4: Likewise.
21226         * m4/stat-time.m4: Likewise.
21227         * m4/stdbool.m4: Likewise.
21228         * m4/stdint.m4: Likewise.
21229         * m4/stdint_h.m4: Likewise.
21230         * m4/stpcpy.m4: Likewise.
21231         * m4/stpncpy.m4: Likewise.
21232         * m4/strcase.m4: Likewise.
21233         * m4/strchrnul.m4: Likewise.
21234         * m4/strcspn.m4: Likewise.
21235         * m4/strdup.m4: Likewise.
21236         * m4/strftime.m4: Likewise.
21237         * m4/strndup.m4: Likewise.
21238         * m4/strnlen.m4: Likewise.
21239         * m4/strpbrk.m4: Likewise.
21240         * m4/strptime.m4: Likewise.
21241         * m4/strsep.m4: Likewise.
21242         * m4/strtod.m4: Likewise.
21243         * m4/strtoimax.m4: Likewise.
21244         * m4/strtok_r.m4: Likewise.
21245         * m4/strtol.m4: Likewise.
21246         * m4/strtoll.m4: Likewise.
21247         * m4/strtoul.m4: Likewise.
21248         * m4/strtoull.m4: Likewise.
21249         * m4/strtoumax.m4: Likewise.
21250         * m4/strverscmp.m4: Likewise.
21251         * m4/threadlib.m4: Likewise.
21252         * m4/timegm.m4: Likewise.
21253         * m4/tm_gmtoff.m4: Likewise.
21254         * m4/tmpdir.m4: Likewise.
21255         * m4/tmpfile.m4: Likewise.
21256         * m4/tzset.m4: Likewise.
21257         * m4/uintmax_t.m4: Likewise.
21258         * m4/unlinkdir.m4: Likewise.
21259         * m4/unlocked-io.m4: Likewise.
21260         * m4/uptime.m4: Likewise.
21261         * m4/userspec.m4: Likewise.
21262         * m4/utimbuf.m4: Likewise.
21263         * m4/utime.m4: Likewise.
21264         * m4/utimes-null.m4: Likewise.
21265         * m4/utimes.m4: Likewise.
21266         * m4/vararrays.m4: Likewise.
21267         * m4/vasnprintf.m4: Likewise.
21268         * m4/vfprintf-posix.m4: Likewise.
21269         * m4/vprintf-posix.m4: Likewise.
21270         * m4/wait-process.m4: Likewise.
21271         * m4/wchar_t.m4: Likewise.
21272         * m4/wint_t.m4: Likewise.
21273         * m4/write-any-file.m4: Likewise.
21274         * m4/yield.m4: Likewise.
21275
21276 2009-01-13  Bruno Haible  <bruno@clisp.org>
21277
21278         Avoid test-copy-file.sh failures when ACL support insufficient.
21279         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
21280         TESTS_ENVIRONMENT.
21281         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
21282         Reported by Jim Meyering.
21283
21284 2009-01-13  Bruno Haible  <bruno@clisp.org>
21285
21286         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
21287         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
21288         * modules/unistdio/u8-printf-parse (Files): Likewise.
21289         * modules/unistdio/u32-printf-parse (Files): Likewise.
21290         * modules/unistdio/ulc-printf-parse (Files): Likewise.
21291
21292 2009-01-13  Simon Josefsson  <simon@josefsson.org>
21293
21294         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
21295         and m4/inttypes_h.m4 too.
21296
21297 2009-01-12  Eric Blake  <ebb9@byu.net>
21298
21299         tests: IRIX 6.2 cc can't compile -0.0 into .data
21300         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
21301         rather than at compile-time.
21302         * tests/test-floorl.c (minus_zero): Likewise.
21303         * tests/test-frexpl.c (minus_zero): Likewise.
21304         * tests/test-isnan.c (minus_zerol): Likewise.
21305         * tests/test-isnanl.h (minus_zero): Likewise.
21306         * tests/test-ldexpl.c (minus_zero): Likewise.
21307         * tests/test-roundl.c (minus_zero): Likewise.
21308         * tests/test-signbit.c (minus_zerol): Likewise.
21309         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
21310         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
21311         * tests/test-truncl.c (minus_zero): Likewise.
21312         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
21313         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
21314         Reported by Tom G. Christensen and Nelson H. F. Beebe.
21315
21316 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
21317
21318         regex: fix glibc bug 9697
21319         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
21320         handling.
21321
21322 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
21323
21324         regex: fix glibc bug 697
21325         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
21326         being NULL also if there are no backreferences.
21327
21328 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
21329
21330         regex: merge glibc changes
21331         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
21332         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
21333         re_string_skip_chars, re_string_reconstruct): Likewise.
21334         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
21335
21336 2009-01-07  Jim Meyering  <meyering@redhat.com>
21337
21338         poll: filter through cppi
21339         * lib/poll.c: Indent cpp directives to reflect nesting.
21340
21341 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
21342
21343         poll: don't return uninitialized
21344         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
21345
21346 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
21347
21348         avoid compile failure on AIX 6.1
21349         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
21350         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
21351
21352 2009-01-04  Jim Meyering  <meyering@redhat.com>
21353
21354         remove duplicate inclusion of <stdio.h>
21355         * tests/test-fprintf-posix.c: Likewise.
21356         * tests/test-printf-posix.c: Likewise.
21357         * tests/test-snprintf-posix.c: Likewise.
21358         * tests/test-sprintf-posix.c: Likewise.
21359         * tests/test-vasprintf-posix.c: Likewise.
21360         * tests/test-vfprintf-posix.c: Likewise.
21361         * tests/test-vprintf-posix.c: Likewise.
21362         * tests/test-vsnprintf-posix.c: Likewise.
21363         * tests/test-vsprintf-posix.c: Likewise.
21364
21365 2009-01-03  Jim Meyering  <meyering@redhat.com>
21366
21367         gnulib-tool: fix sed-based filtering
21368         * gnulib-tool (func_filter_filelist): Remove extra backslash
21369         in sed_fff_filter definition.
21370
21371 2009-01-02  Jim Meyering  <meyering@redhat.com>
21372
21373         strftime: avoid compilation failure on Solaris 2.6
21374         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
21375         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
21376         Don't #define mbrlen or mbsinit, since now they're guaranteed to
21377         be available.  Reported by Tom G. Christensen.  Details in
21378         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
21379
21380 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21381             Bruno Haible  <bruno@clisp.org>
21382
21383         Speed up gnulib-tool by doing more string processing through shell
21384         built-ins.
21385         * gnulib-tool (fast_func_append): New variable.
21386         (func_remove_prefix, func_remove_suffix): New functions.
21387         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
21388         (func_filter_filelist): New function.
21389         (func_get_dependencies): Use func_remove_suffix instead of sed.
21390         (func_get_automake_snippet): Use func_filter_filelist instead of a
21391         subshell and sed invocation.
21392
21393 2009-01-01  Bruno Haible  <bruno@clisp.org>
21394
21395         Fix a security bug.
21396         * gnulib-tool (func_import, import, update): Don't allow the characters
21397         '"', '$', '`', '\' in macro arguments that become part of commands that
21398         are evaluated.
21399
21400 2009-01-01  Bruno Haible  <bruno@clisp.org>
21401
21402         * gnulib-tool (func_reset_sigpipe): Add more comments.
21403
21404 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21405
21406         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
21407         func_emit_tests_Makefile_am, func_import): Abort loops early if we
21408         already know the answer.
21409
21410 2009-01-01  Jim Meyering  <meyering@redhat.com>
21411
21412         * lib/version-etc.c (version_etc_va): Update copyright year.
21413
21414 2008-12-30  Bruno Haible  <bruno@clisp.org>
21415
21416         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
21417         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
21418         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
21419
21420 2008-12-29  Eric Blake  <ebb9@byu.net>
21421
21422         multiarch: avoid autoconf AC_REQUIRE bug
21423         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
21424         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
21425         2.63 and older.
21426         Reported by Bruno Haible, and analyzed in
21427         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
21428
21429 2008-12-29  Bruno Haible  <bruno@clisp.org>
21430
21431         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
21432         files in subdirectories correctly.
21433         Reported by Ralf Wildenhues.
21434
21435 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21436
21437         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
21438         rather than 'join FILE -', for Solaris join.
21439
21440 2008-12-29  Bruno Haible  <bruno@clisp.org>
21441
21442         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
21443         quoting.
21444         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
21445         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
21446         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
21447         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
21448         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
21449         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
21450         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
21451         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
21452         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
21453         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
21454         * m4/nls.m4 (AM_NLS): Likewise.
21455         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
21456         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
21457         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
21458         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
21459         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
21460         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
21461         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
21462         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
21463         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
21464         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
21465         * m4/xsize.m4 (gl_XSIZE): Likewise.
21466         Suggested by Jim Meyering.
21467
21468 2008-11-17  Bruce Korb  <bkorb@gnu.org>
21469
21470         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
21471         * lib/parse-duration.c: use a switch instead of cascading if's.
21472
21473 2008-12-29  Eric Blake  <ebb9@byu.net>
21474
21475         wchar.h: supply WEOF on Irix 5.3
21476         * lib/wchar.in.h (wint_t): Also supply WEOF.
21477         * lib/wctype.in.h (wint_t): Likewise.
21478         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
21479         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
21480         Reported by Tom G. Christensen.
21481
21482 2008-12-26  Bruno Haible  <bruno@clisp.org>
21483
21484         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
21485         i486, i586, i686.
21486
21487 2008-12-26  Bruno Haible  <bruno@clisp.org>
21488
21489         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
21490
21491 2008-12-26  Bruno Haible  <bruno@clisp.org>
21492
21493         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
21494         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
21495         not __STDC_CONSTANT_MACROS.
21496         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
21497
21498 2008-12-25  Bruno Haible  <bruno@clisp.org>
21499
21500         Add support for universal builds to vasnprintf.
21501         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
21502         universal builds, guess no.
21503         * modules/vasnprintf-posix (Depends-on): Add multiarch.
21504         * modules/vasprintf-posix (Depends-on): Likewise.
21505         * modules/fprintf-posix (Depends-on): Likewise.
21506         * modules/vfprintf-posix (Depends-on): Likewise.
21507         * modules/snprintf-posix (Depends-on): Likewise.
21508         * modules/vsnprintf-posix (Depends-on): Likewise.
21509         * modules/sprintf-posix (Depends-on): Likewise.
21510         * modules/vsprintf-posix (Depends-on): Likewise.
21511         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
21512         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
21513         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
21514         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
21515         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
21516         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
21517         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
21518
21519         Add support for universal builds to <inttypes.h>.
21520         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
21521         _SCNu64_PREFIX): In Apple
21522         universal builds, define directly, using _LP64.
21523         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
21524         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
21525         * modules/inttypes (Depends-on): Add multiarch.
21526         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
21527
21528         Add support for universal builds to <stdint.h>.
21529         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
21530         universal builds, define directly, using _LP64.
21531         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
21532         Apple universal builds, don't test for the size and suffix of ptrdiff_t
21533         and size_t.
21534         * modules/stdint (Depends-on): Add multiarch.
21535         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
21536
21537         New module 'multiarch'.
21538         * modules/multiarch: New file.
21539         * m4/multiarch.m4: New file.
21540
21541 2008-12-25  Bruno Haible  <bruno@clisp.org>
21542
21543         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
21544
21545 2008-12-25  Bruno Haible  <bruno@clisp.org>
21546
21547         * modules/btowc (License): Relicense under LGPLv2+.
21548         * modules/mbsinit (License): Likewise.
21549         * modules/mbrtowc (License): Likewise.
21550         * modules/wcrtomb (License): Likewise.
21551         * modules/streq (License): Likewise.
21552         Reported by David Lutterkort <lutter@redhat.com>.
21553
21554 2008-12-23  Bruno Haible  <bruno@clisp.org>
21555
21556         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
21557
21558 2008-12-23  Bruno Haible  <bruno@clisp.org>
21559
21560         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
21561         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
21562         GETADDRINFO_LIB, not in LIBS.
21563         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
21564         * modules/canon-host (Link): Likewise.
21565         * NEWS: Mention the change.
21566         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
21567         GETADDRINFO_LIB.
21568
21569 2008-12-22  Bruno Haible  <bruno@clisp.org>
21570
21571         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
21572         * doc/posix-functions/iswalpha_l.texi: Likewise.
21573         * doc/posix-functions/iswblank_l.texi: Likewise.
21574         * doc/posix-functions/iswcntrl_l.texi: Likewise.
21575         * doc/posix-functions/iswctype_l.texi: Likewise.
21576         * doc/posix-functions/iswdigit_l.texi: Likewise.
21577         * doc/posix-functions/iswgraph_l.texi: Likewise.
21578         * doc/posix-functions/iswlower_l.texi: Likewise.
21579         * doc/posix-functions/iswprint_l.texi: Likewise.
21580         * doc/posix-functions/iswpunct_l.texi: Likewise.
21581         * doc/posix-functions/iswspace_l.texi: Likewise.
21582         * doc/posix-functions/iswupper_l.texi: Likewise.
21583         * doc/posix-functions/iswxdigit_l.texi: Likewise.
21584         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
21585         * doc/posix-functions/open_wmemstream.texi: Likewise.
21586         * doc/posix-functions/swscanf.texi: Likewise.
21587         * doc/posix-functions/towctrans_l.texi: Likewise.
21588         * doc/posix-functions/towlower.texi: Likewise.
21589         * doc/posix-functions/towlower_l.texi: Likewise.
21590         * doc/posix-functions/towupper.texi: Likewise.
21591         * doc/posix-functions/towupper_l.texi: Likewise.
21592         * doc/posix-functions/vfwprintf.texi: Likewise.
21593         * doc/posix-functions/vfwscanf.texi: Likewise.
21594         * doc/posix-functions/vswscanf.texi: Likewise.
21595         * doc/posix-functions/vwprintf.texi: Likewise.
21596         * doc/posix-functions/vwscanf.texi: Likewise.
21597         * doc/posix-functions/wcpcpy.texi: Likewise.
21598         * doc/posix-functions/wcpncpy.texi: Likewise.
21599         * doc/posix-functions/wcscasecmp.texi: Likewise.
21600         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
21601         * doc/posix-functions/wcscoll_l.texi: Likewise.
21602         * doc/posix-functions/wcsdup.texi: Likewise.
21603         * doc/posix-functions/wcsncasecmp.texi: Likewise.
21604         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
21605         * doc/posix-functions/wcsnlen.texi: Likewise.
21606         * doc/posix-functions/wcsnrtombs.texi: Likewise.
21607         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
21608         * doc/posix-functions/wctrans_l.texi: Likewise.
21609         * doc/posix-functions/wctype_l.texi: Likewise.
21610         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
21611         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
21612         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
21613         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
21614         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
21615         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
21616         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
21617         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
21618         * doc/glibc-functions/wcschrnul.texi: Likewise.
21619         * doc/glibc-functions/wcsftime_l.texi: Likewise.
21620         * doc/glibc-functions/wcstod_l.texi: Likewise.
21621         * doc/glibc-functions/wcstof_l.texi: Likewise.
21622         * doc/glibc-functions/wcstol_l.texi: Likewise.
21623         * doc/glibc-functions/wcstold_l.texi: Likewise.
21624         * doc/glibc-functions/wcstoll_l.texi: Likewise.
21625         * doc/glibc-functions/wcstoq.texi: Likewise.
21626         * doc/glibc-functions/wcstoul_l.texi: Likewise.
21627         * doc/glibc-functions/wcstoull_l.texi: Likewise.
21628         * doc/glibc-functions/wcstouq.texi: Likewise.
21629         * doc/glibc-functions/wmempcpy.texi: Likewise.
21630
21631 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
21632             Eric Blake  <ebb9@byu.net>
21633             Paolo Bonzini  <bonzini@gnu.org>
21634             Bruno Haible  <bruno@clisp.org>
21635
21636         Make c-stack work on Haiku.
21637         * lib/c-stack.c (SA_ONSTACK): Define fallback.
21638         (c_stack_action): Use SA_ONSTACK flag.
21639
21640 2008-12-22  Bruno Haible  <bruno@clisp.org>
21641
21642         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
21643
21644 2008-12-22  Bruno Haible  <bruno@clisp.org>
21645
21646         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
21647         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
21648         being overridden.
21649         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
21650         New macros.
21651         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
21652         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
21653         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
21654         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
21655
21656 2008-12-22  Bruno Haible  <bruno@clisp.org>
21657
21658         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
21659         from test code.
21660
21661 2008-12-22  Eric Blake  <ebb9@byu.net>
21662
21663         Avoid gcc warnings on cygwin.
21664         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
21665         Avoid unused variable.
21666         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
21667         Likewise.
21668
21669 2008-12-22  Bruno Haible  <bruno@clisp.org>
21670
21671         Remove HAVE_MBRTOWC conditionals.
21672         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
21673         (mbscasecmp): Assume mbrtowc function.
21674         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
21675         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
21676         * lib/mbschr.c: Include mbuiter.h unconditionally.
21677         (mbschr): Assume mbrtowc function.
21678         * lib/mbscspn.c: Include mbuiter.h unconditionally.
21679         (mbscspn): Assume mbrtowc function.
21680         * lib/mbslen.c: Include mbuiter.h unconditionally.
21681         (mbslen): Assume mbrtowc function.
21682         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
21683         (mbsncasecmp): Assume mbrtowc function.
21684         * lib/mbsnlen.c: Include mbiter.h unconditionally.
21685         (mbsnlen): Assume mbrtowc function.
21686         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
21687         (mbspbrk): Assume mbrtowc function.
21688         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
21689         (mbspcasecmp): Assume mbrtowc function.
21690         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
21691         (mbsrchr): Assume mbrtowc function.
21692         * lib/mbssep.c: Include mbuiter.h unconditionally.
21693         (mbssep): Assume mbrtowc function.
21694         * lib/mbsspn.c: Include mbuiter.h unconditionally.
21695         (mbsspn): Assume mbrtowc function.
21696         * lib/mbsstr.c: Include mbuiter.h unconditionally.
21697         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
21698         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
21699         (mbstok_r): Assume mbrtowc function.
21700         * lib/propername.c: Include mbuiter.h unconditionally.
21701         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
21702         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
21703         (trim2): Assume mbrtowc function.
21704         * lib/mbswidth.c (mbsinit): Remove fallback definition.
21705         (mbsnwidth): Assume mbrtowc function.
21706         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
21707         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
21708         fallback definitions.
21709         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
21710
21711 2008-12-22  Bruno Haible  <bruno@clisp.org>
21712
21713         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
21714
21715 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
21716
21717         * modules/regex: Request emulations for the mb*/wc* functions we need.
21718         * m4/regex.m4: Don't look for those functions here.
21719         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
21720
21721 2008-12-22  Bruno Haible  <bruno@clisp.org>
21722
21723         * modules/fnmatch (Depends-on): Remove duplicated dependency.
21724
21725 2008-12-21  Bruno Haible  <bruno@clisp.org>
21726
21727         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
21728         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
21729         (Include): Remove conditionalization.
21730         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
21731         (Include): Remove conditionalization.
21732         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
21733         (Include): Remove conditionalization.
21734         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
21735         * m4/mbfile.m4 (gl_MBFILE): Likewise.
21736         * NEWS: Mention the change.
21737         Reported by Alan Hourihane <alanh@fairlite.co.uk>
21738         via Sergey Poznyakoff <gray@gnu.org.ua>.
21739
21740 2008-12-21  Bruno Haible  <bruno@clisp.org>
21741
21742         * MODULES.html.sh (Extended multibyte and wide character utilities
21743         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
21744         wcrtomb, wcsrtombs.
21745         (Support for systems lacking POSIX:2008): Add accept, bind, close,
21746         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
21747         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
21748         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
21749
21750 2008-12-21  Bruno Haible  <bruno@clisp.org>
21751
21752         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
21753
21754 2008-12-21  Bruno Haible  <bruno@clisp.org>
21755
21756         * modules/wcsnrtombs-tests: New file.
21757         * tests/test-wcsnrtombs1.sh: New file.
21758         * tests/test-wcsnrtombs2.sh: New file.
21759         * tests/test-wcsnrtombs3.sh: New file.
21760         * tests/test-wcsnrtombs4.sh: New file.
21761         * tests/test-wcsnrtombs.c: New file.
21762
21763         New module 'wcsnrtombs'.
21764         * lib/wchar.in.h (wcsnrtombs): New declaration.
21765         * lib/wcsnrtombs.c: New file.
21766         * lib/wcsrtombs-state.c: New file.
21767         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
21768         (internal_state): Remove variable.
21769         * m4/wcsnrtombs.m4: New file.
21770         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
21771         compilation units.
21772         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
21773         HAVE_WCSNRTOMBS.
21774         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
21775         HAVE_WCSNRTOMBS.
21776         * modules/wcsnrtombs: New file.
21777         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
21778         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
21779
21780 2008-12-21  Bruno Haible  <bruno@clisp.org>
21781
21782         * modules/wcsrtombs-tests: New file.
21783         * tests/test-wcsrtombs1.sh: New file.
21784         * tests/test-wcsrtombs2.sh: New file.
21785         * tests/test-wcsrtombs3.sh: New file.
21786         * tests/test-wcsrtombs4.sh: New file.
21787         * tests/test-wcsrtombs.c: New file.
21788
21789         New module 'wcsrtombs'.
21790         * lib/wchar.in.h (wcsrtombs): New declaration.
21791         * lib/wcsrtombs.c: New file.
21792         * m4/wcsrtombs.m4: New file.
21793         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
21794         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
21795         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
21796         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
21797         * modules/wcsrtombs: New file.
21798         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
21799         bugs.
21800
21801 2008-12-21  Bruno Haible  <bruno@clisp.org>
21802
21803         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
21804         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
21805         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
21806         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
21807         if not correct.
21808         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
21809         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
21810         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
21811         m4/locale-zh.m4, m4/codeset.m4.
21812         * doc/posix-functions/wcrtomb.texi: Document the bug.
21813
21814 2008-12-21  Bruno Haible  <bruno@clisp.org>
21815
21816         Work around a btowc() bug on IRIX 6.5.
21817         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
21818         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
21819         REPLACE_WTOBC if not.
21820         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
21821         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
21822         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
21823
21824 2008-12-21  Bruno Haible  <bruno@clisp.org>
21825
21826         * modules/wcrtomb-tests: New file.
21827         * tests/test-wcrtomb.sh: New file.
21828         * tests/test-wcrtomb.c: New file.
21829
21830         New module 'wcrtomb'.
21831         * lib/wchar.in.h (wcrtomb): New declaration.
21832         * lib/wcrtomb.c: New file.
21833         * m4/wcrtomb.m4: New file.
21834         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
21835         HAVE_WCRTOMB.
21836         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
21837         HAVE_WCRTOMB.
21838         * modules/wcrtomb: New file.
21839         * doc/posix-functions/wcrtomb.texi: Mention the new module.
21840
21841 2008-12-21  Bruno Haible  <bruno@clisp.org>
21842
21843         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
21844         * modules/mbsrtowcs (Files): Likewise.
21845         * modules/wctob (Files): Likewise.
21846         * modules/c-strcase-tests (Files): Likewise.
21847         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
21848         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
21849         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
21850         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
21851         * modules/vasnprintf-posix-tests (Files): Likewise.
21852
21853 2008-12-21  William Pursell  <bill.pursell@gmail.com>
21854
21855         gitlog-to-changelog: pass all command-line arguments to git-log
21856         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
21857         it is sometimes convenient to filter the commits in various ways.
21858         gitlog-to-changelog only allows --since to specify a start date,
21859         but git-log itself supports many other filtering mechanisms.
21860         At the moment, I want to filter by branch name.  Rather than
21861         adding a --branch option to gitlog-to-changelog, it seems more
21862         flexible to simply pass all options directly to git-log and let
21863         git do the work.  Notice that this effectively makes --since a
21864         redundant option for gitlog-to-changelog, but removing it would
21865         require current usage to change since calls would then require
21866         an additional '--'.
21867
21868 2008-12-21  Bruno Haible  <bruno@clisp.org>
21869
21870         * modules/mbsnrtowcs-tests: New file.
21871         * tests/test-mbsnrtowcs1.sh: New file.
21872         * tests/test-mbsnrtowcs2.sh: New file.
21873         * tests/test-mbsnrtowcs3.sh: New file.
21874         * tests/test-mbsnrtowcs4.sh: New file.
21875         * tests/test-mbsnrtowcs.c: New file.
21876
21877         New module 'mbsnrtowcs'.
21878         * lib/wchar.in.h (mbsnrtowcs): New declaration.
21879         * lib/mbsnrtowcs.c: New file.
21880         * lib/mbsrtowcs-state.c: New file.
21881         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
21882         (internal_state): Remove variable.
21883         * m4/mbsnrtowcs.m4: New file.
21884         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
21885         compilation units.
21886         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
21887         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
21888         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
21889         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
21890         * modules/mbsnrtowcs: New file.
21891         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
21892         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
21893         portability problem.
21894
21895 2008-12-21  Bruno Haible  <bruno@clisp.org>
21896
21897         Work around mbsrtowcs bug.
21898         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
21899         (gl_FUNC_MBSRTOWCS): Invoke it.
21900         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
21901         m4/locale-zh.m4.
21902         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
21903
21904 2008-12-21  Bruno Haible  <bruno@clisp.org>
21905
21906         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
21907
21908 2008-12-21  Bruno Haible  <bruno@clisp.org>
21909
21910         Update doc for AIX.
21911         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
21912         16-bit wchar_t type.
21913         * doc/posix-functions/btowc.texi: Likewise.
21914         * doc/posix-functions/fgetwc.texi: Likewise.
21915         * doc/posix-functions/fgetws.texi: Likewise.
21916         * doc/posix-functions/fputwc.texi: Likewise.
21917         * doc/posix-functions/fputws.texi: Likewise.
21918         * doc/posix-functions/fwide.texi: Likewise.
21919         * doc/posix-functions/fwprintf.texi: Likewise.
21920         * doc/posix-functions/fwscanf.texi: Likewise.
21921         * doc/posix-functions/getwchar.texi: Likewise.
21922         * doc/posix-functions/getwc.texi: Likewise.
21923         * doc/posix-functions/iswalnum.texi: Likewise.
21924         * doc/posix-functions/iswalpha.texi: Likewise.
21925         * doc/posix-functions/iswblank.texi: Likewise.
21926         * doc/posix-functions/iswcntrl.texi: Likewise.
21927         * doc/posix-functions/iswctype.texi: Likewise.
21928         * doc/posix-functions/iswdigit.texi: Likewise.
21929         * doc/posix-functions/iswgraph.texi: Likewise.
21930         * doc/posix-functions/iswlower.texi: Likewise.
21931         * doc/posix-functions/iswprint.texi: Likewise.
21932         * doc/posix-functions/iswpunct.texi: Likewise.
21933         * doc/posix-functions/iswspace.texi: Likewise.
21934         * doc/posix-functions/iswupper.texi: Likewise.
21935         * doc/posix-functions/iswxdigit.texi: Likewise.
21936         * doc/posix-functions/mbrtowc.texi: Likewise.
21937         * doc/posix-functions/mbsrtowcs.texi: Likewise.
21938         * doc/posix-functions/mbstowcs.texi: Likewise.
21939         * doc/posix-functions/mbtowc.texi: Likewise.
21940         * doc/posix-functions/putwchar.texi: Likewise.
21941         * doc/posix-functions/putwc.texi: Likewise.
21942         * doc/posix-functions/swprintf.texi: Likewise.
21943         * doc/posix-functions/tolower.texi: Likewise.
21944         * doc/posix-functions/toupper.texi: Likewise.
21945         * doc/posix-functions/towctrans.texi: Likewise.
21946         * doc/posix-functions/ungetwc.texi: Likewise.
21947         * doc/posix-functions/vswprintf.texi: Likewise.
21948         * doc/posix-functions/wcrtomb.texi: Likewise.
21949         * doc/posix-functions/wcscat.texi: Likewise.
21950         * doc/posix-functions/wcschr.texi: Likewise.
21951         * doc/posix-functions/wcscmp.texi: Likewise.
21952         * doc/posix-functions/wcscoll.texi: Likewise.
21953         * doc/posix-functions/wcscpy.texi: Likewise.
21954         * doc/posix-functions/wcscspn.texi: Likewise.
21955         * doc/posix-functions/wcsftime.texi: Likewise.
21956         * doc/posix-functions/wcslen.texi: Likewise.
21957         * doc/posix-functions/wcsncat.texi: Likewise.
21958         * doc/posix-functions/wcsncmp.texi: Likewise.
21959         * doc/posix-functions/wcsncpy.texi: Likewise.
21960         * doc/posix-functions/wcspbrk.texi: Likewise.
21961         * doc/posix-functions/wcsrchr.texi: Likewise.
21962         * doc/posix-functions/wcsrtombs.texi: Likewise.
21963         * doc/posix-functions/wcsspn.texi: Likewise.
21964         * doc/posix-functions/wcsstr.texi: Likewise.
21965         * doc/posix-functions/wcstod.texi: Likewise.
21966         * doc/posix-functions/wcstof.texi: Likewise.
21967         * doc/posix-functions/wcstoimax.texi: Likewise.
21968         * doc/posix-functions/wcstok.texi: Likewise.
21969         * doc/posix-functions/wcstold.texi: Likewise.
21970         * doc/posix-functions/wcstoll.texi: Likewise.
21971         * doc/posix-functions/wcstol.texi: Likewise.
21972         * doc/posix-functions/wcstombs.texi: Likewise.
21973         * doc/posix-functions/wcstoull.texi: Likewise.
21974         * doc/posix-functions/wcstoul.texi: Likewise.
21975         * doc/posix-functions/wcstoumax.texi: Likewise.
21976         * doc/posix-functions/wcswidth.texi: Likewise.
21977         * doc/posix-functions/wcsxfrm.texi: Likewise.
21978         * doc/posix-functions/wctob.texi: Likewise.
21979         * doc/posix-functions/wctomb.texi: Likewise.
21980         * doc/posix-functions/wctrans.texi: Likewise.
21981         * doc/posix-functions/wctype.texi: Likewise.
21982         * doc/posix-functions/wcwidth.texi: Likewise.
21983         * doc/posix-functions/wmemchr.texi: Likewise.
21984         * doc/posix-functions/wmemcmp.texi: Likewise.
21985         * doc/posix-functions/wmemcpy.texi: Likewise.
21986         * doc/posix-functions/wmemmove.texi: Likewise.
21987         * doc/posix-functions/wmemset.texi: Likewise.
21988         * doc/posix-functions/wprintf.texi: Likewise.
21989         * doc/posix-functions/wscanf.texi: Likewise.
21990
21991 2008-12-21  Bruno Haible  <bruno@clisp.org>
21992
21993         Update doc for HP-UX 11.11.
21994         * doc/posix-functions/btowc.texi: Clarify that the function is missing
21995         in HP-UX version 11.00, not in all versions of HP-UX 11.
21996         * doc/posix-functions/fwide.texi: Likewise.
21997         * doc/posix-functions/fwprintf.texi: Likewise.
21998         * doc/posix-functions/fwscanf.texi: Likewise.
21999         * doc/posix-functions/inet_ntop.texi: Likewise.
22000         * doc/posix-functions/inet_pton.texi: Likewise.
22001         * doc/posix-functions/mbrlen.texi: Likewise.
22002         * doc/posix-functions/mbrtowc.texi: Likewise.
22003         * doc/posix-functions/mbsinit.texi: Likewise.
22004         * doc/posix-functions/mbsrtowcs.texi: Likewise.
22005         * doc/posix-functions/swprintf.texi: Likewise.
22006         * doc/posix-functions/swscanf.texi: Likewise.
22007         * doc/posix-functions/towctrans.texi: Likewise.
22008         * doc/posix-functions/vfwprintf.texi: Likewise.
22009         * doc/posix-functions/vswprintf.texi: Likewise.
22010         * doc/posix-functions/vwprintf.texi: Likewise.
22011         * doc/posix-functions/wcrtomb.texi: Likewise.
22012         * doc/posix-functions/wcsrtombs.texi: Likewise.
22013         * doc/posix-functions/wcsstr.texi: Likewise.
22014         * doc/posix-functions/wctob.texi: Likewise.
22015         * doc/posix-functions/wctrans.texi: Likewise.
22016         * doc/posix-functions/wmemchr.texi: Likewise.
22017         * doc/posix-functions/wmemcmp.texi: Likewise.
22018         * doc/posix-functions/wmemcpy.texi: Likewise.
22019         * doc/posix-functions/wmemmove.texi: Likewise.
22020         * doc/posix-functions/wmemset.texi: Likewise.
22021         * doc/posix-functions/wprintf.texi: Likewise.
22022         * doc/posix-functions/wscanf.texi: Likewise.
22023
22024 2008-12-21  Bruno Haible  <bruno@clisp.org>
22025
22026         Work around a portability problem.
22027         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
22028         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
22029
22030 2008-12-20  Bruno Haible  <bruno@clisp.org>
22031
22032         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
22033         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
22034         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
22035         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
22036         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
22037
22038         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
22039         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
22040         set.
22041         (GNULIB_defined_mbstate_t): New macro.
22042         (mbsinit): Redefine if REPLACE_MBSINIT is set.
22043         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
22044         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
22045         reuses the system's mbrtowc function but works around the bugs.
22046         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
22047         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
22048         macros.
22049         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
22050         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
22051         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
22052         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
22053         REPLACE_MBSINIT if mbsinit needs to be overridden.
22054         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
22055         REPLACE_MBSINIT, REPLACE_MBRTOWC.
22056         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
22057         REPLACE_MBSINIT, REPLACE_MBRTOWC.
22058         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
22059         m4/locale-zh.m4.
22060         (Depends): Add mbsinit.
22061         * modules/mbsinit (Depends): Add mbrtowc.
22062         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
22063
22064 2008-12-20  Bruno Haible  <bruno@clisp.org>
22065
22066         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
22067         so that there are no conversion errors on AIX.
22068         * tests/test-mbsrtowcs.c (main): LIkewise.
22069
22070 2008-12-20  Bruno Haible  <bruno@clisp.org>
22071
22072         Work around wctob bug on Solaris <= 9.
22073         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
22074         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
22075         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
22076         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
22077         * modules/wctob (Files): Add m4/locale-fr.m4.
22078         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
22079
22080 2008-12-20  Bruno Haible  <bruno@clisp.org>
22081
22082         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
22083         /dev/null.
22084         * tests/test-select-in.sh: Likewise.
22085         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22086
22087 2008-12-20  Bruno Haible  <bruno@clisp.org>
22088
22089         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
22090         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
22091         Cygwin 1.5.x.
22092
22093 2008-12-20  Bruno Haible  <bruno@clisp.org>
22094
22095         Ensure mbstate_t is defined on HP-UX 11.11.
22096         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
22097         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
22098         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
22099         AC_USE_SYSTEM_EXTENSIONS.
22100         * modules/fnmatch (Depends-on): Add extensions.
22101         * modules/mbrlen (Depends-on): Likewise.
22102         * modules/mbrtowc (Depends-on): Likewise.
22103         * modules/mbsinit (Depends-on): Likewise.
22104         * modules/mbsrtowcs (Depends-on): Likewise.
22105         * modules/mbswidth (Depends-on): Likewise.
22106         * modules/quotearg (Depends-on): Likewise.
22107         * modules/strftime (Depends-on): Likewise.
22108
22109 2008-12-20  Bruno Haible  <bruno@clisp.org>
22110
22111         Ensure wctob is declared on IRIX 6.5.
22112         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
22113         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
22114         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
22115         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
22116         of HAVE_WCTOB.
22117         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
22118         HAVE_WCTOB.
22119         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
22120
22121 2008-12-19  Bruno Haible  <bruno@clisp.org>
22122
22123         * modules/mbsrtowcs-tests: New file.
22124         * tests/test-mbsrtowcs1.sh: New file.
22125         * tests/test-mbsrtowcs2.sh: New file.
22126         * tests/test-mbsrtowcs3.sh: New file.
22127         * tests/test-mbsrtowcs4.sh: New file.
22128         * tests/test-mbsrtowcs.c: New file.
22129
22130         New module 'mbsrtowcs'.
22131         * lib/wchar.in.h (mbsrtowcs): New declaration.
22132         * lib/mbsrtowcs.c: New file.
22133         * m4/mbsrtowcs.m4: New file.
22134         * modules/mbsrtowcs: New file.
22135         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
22136         HAVE_MBSRTOWCS.
22137         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
22138         HAVE_MBSRTOWCS.
22139         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
22140
22141 2008-12-19  Bruno Haible  <bruno@clisp.org>
22142
22143         New module 'mbrlen'.
22144         * lib/wchar.in.h (mbrlen): New declaration.
22145         * lib/mbrlen.c: New file.
22146         * m4/mbrlen.m4: New file.
22147         * modules/mbrlen: New file.
22148         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
22149         HAVE_MBRLEN.
22150         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
22151         HAVE_MBRLEN.
22152         * doc/posix-functions/mbrlen.texi: Document the new module.
22153
22154 2008-12-19  Bruno Haible  <bruno@clisp.org>
22155
22156         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
22157         * modules/mbrtowc (Depends-on): Add verify.
22158         Suggested by Paul Eggert.
22159
22160 2008-12-18  Bruno Haible  <bruno@clisp.org>
22161
22162         * modules/mbsinit-tests: New file.
22163         * tests/test-mbsinit.sh: New file.
22164         * tests/test-mbsinit.c: New file.
22165
22166 2008-12-18  Bruno Haible  <bruno@clisp.org>
22167
22168         * modules/mbrtowc-tests: New file.
22169         * tests/test-mbrtowc1.sh: New file.
22170         * tests/test-mbrtowc2.sh: New file.
22171         * tests/test-mbrtowc3.sh: New file.
22172         * tests/test-mbrtowc4.sh: New file.
22173         * tests/test-mbrtowc.c: New file.
22174
22175         New module 'mbrtowc'.
22176         * lib/wchar.in.h (mbstate_t): Override when the system does not have
22177         mbsinit and mbrtowc.
22178         (mbrtowc): New declaration.
22179         * lib/mbrtowc.c: New file.
22180         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
22181         * modules/mbrtowc: New file.
22182         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
22183         HAVE_MBRTOWC.
22184         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
22185         HAVE_MBRTOWC.
22186         * doc/posix-functions/mbrtowc.texi: Document the new module.
22187
22188 2008-12-18  Bruno Haible  <bruno@clisp.org>
22189
22190         New module 'wctob'.
22191         * lib/wchar.in.h (wctob): New declaration.
22192         * lib/wctob.c: New file.
22193         * m4/wctob.m4: New file.
22194         * modules/wctob: New file.
22195         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
22196         HAVE_WCTOB.
22197         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
22198         * doc/posix-functions/wctob.texi: Document the new module.
22199
22200 2008-12-18  Bruno Haible  <bruno@clisp.org>
22201
22202         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
22203         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
22204
22205 2008-12-18  Simon Josefsson  <simon@josefsson.org>
22206
22207         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
22208         G. Christensen" <tgc@jupiterrise.com>.
22209
22210         * lib/flock.c: Need to include errno.h.  Reported by "Tom
22211         G. Christensen" <tgc@jupiterrise.com>.
22212
22213         * lib/flock.c: Need to include string.h.  Reported by "Tom
22214         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
22215         <ebb9@byu.net>.
22216
22217 2008-12-18  Bruno Haible  <bruno@clisp.org>
22218
22219         * m4/locale-ja.m4: New file, from GNU gettext.
22220
22221 2008-12-17  Bruno Haible  <bruno@clisp.org>
22222
22223         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
22224         Suggested by Eric Blake.
22225
22226 2008-12-17  Bruno Haible  <bruno@clisp.org>
22227
22228         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
22229
22230 2008-12-17  Bruno Haible  <bruno@clisp.org>
22231
22232         * lib/mbsinit.c: Include verify.h. Verify an assumption.
22233         * modules/mbsinit (Depends-on): Add verify.
22234         Suggested by Paul Eggert.
22235
22236 2008-12-17  Bruno Haible  <bruno@clisp.org>
22237
22238         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
22239         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
22240         gl_FUNC_MBRTOWC.
22241         * m4/mbiter.m4 (gl_MBITER): LIkewise.
22242         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
22243         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
22244         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
22245         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
22246         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
22247         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
22248         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
22249         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
22250         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
22251         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
22252         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
22253         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
22254         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
22255         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
22256         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
22257         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
22258         * modules/trim (configure.ac): Likewise.
22259
22260 2008-12-17  Bruno Haible  <bruno@clisp.org>
22261
22262         * modules/btowc-tests: New file.
22263         * tests/test-btowc1.sh: New file.
22264         * tests/test-btowc2.sh: New file.
22265         * tests/test-btowc.c: New file.
22266
22267         New module 'btowc'.
22268         * lib/wchar.in.h (btowc): New declaration.
22269         * lib/btowc.c: New file.
22270         * m4/btowc.m4: New file.
22271         * modules/btowc: New file.
22272         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
22273         HAVE_BTOWC.
22274         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
22275         * doc/posix-functions/btowc.texi: Document the new module.
22276
22277 2008-12-17  Bruno Haible  <bruno@clisp.org>
22278
22279         New module 'mbsinit'.
22280         * lib/wchar.in.h (mbsinit): New declaration.
22281         * lib/mbsinit.c: New file.
22282         * m4/mbsinit.m4: New file.
22283         * modules/mbsinit: New file.
22284         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
22285         HAVE_MBSINIT.
22286         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
22287         HAVE_MBSINIT.
22288         * doc/posix-functions/mbsinit.texi: Document the new module.
22289
22290 2008-12-16  Bruno Haible  <bruno@clisp.org>
22291
22292         * lib/unistd.in.h: Add comment.
22293         * tests/test-environ.c: Don't include <stdlib.h>.
22294
22295 2008-12-16  Bruno Haible  <bruno@clisp.org>
22296
22297         * lib/parse-duration.h (parse_duration): Document return value
22298         convention.
22299         * lib/parse-duration.c: Include specification header first. Add
22300         comments.
22301         (_): Remove macro.
22302         (parse_year_month_day, parse_hour_minute_second): Move side effects
22303         outside of strchr call.
22304         (parse_non_iso8601): Move side effects outside of isspace call.
22305         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
22306         call.
22307
22308 2008-12-16  Bruno Haible  <bruno@clisp.org>
22309
22310         * tests/test-parse-duration.sh: Produce no output when the test
22311         succeeds.
22312
22313 2008-12-16  Bruno Haible  <bruno@clisp.org>
22314
22315         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
22316         expressions.
22317
22318 2008-12-15  Bruno Haible  <bruno@clisp.org>
22319
22320         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
22321         * doc/glibc-functions/flistxattr.texi: Likewise.
22322         * doc/glibc-functions/fopencookie.texi: Likewise.
22323         * doc/glibc-functions/fremovexattr.texi: Likewise.
22324         * doc/glibc-functions/fsetxattr.texi: Likewise.
22325         * doc/glibc-functions/getxattr.texi: Likewise.
22326         * doc/glibc-functions/lgetxattr.texi: Likewise.
22327         * doc/glibc-functions/listxattr.texi: Likewise.
22328         * doc/glibc-functions/llistxattr.texi: Likewise.
22329         * doc/glibc-functions/lremovexattr.texi: Likewise.
22330         * doc/glibc-functions/lsetxattr.texi: Likewise.
22331         * doc/glibc-functions/removexattr.texi: Likewise.
22332         * doc/glibc-functions/setxattr.texi: Likewise.
22333         * doc/posix-functions/open_memstream.texi: Likewise.
22334
22335 2008-12-15  Eric Blake  <ebb9@byu.net>
22336
22337         Update doc for cygwin 1.7.
22338         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
22339         functions.
22340         * doc/posix-functions/fchmodat.texi: Likewise.
22341         * doc/posix-functions/fchownat.texi: Likewise.
22342         * doc/posix-functions/fdopendir.texi: Likewise.
22343         * doc/posix-functions/fmemopen.texi: Likewise.
22344         * doc/posix-functions/freeaddrinfo.texi: Likewise.
22345         * doc/posix-functions/fstatat.texi: Likewise.
22346         * doc/posix-functions/futimens.texi: Likewise.
22347         * doc/posix-functions/gai_strerror.texi: Likewise.
22348         * doc/posix-functions/getaddrinfo.texi: Likewise.
22349         * doc/posix-functions/getnameinfo.texi: Likewise.
22350         * doc/posix-functions/if_freenameindex.texi: Likewise.
22351         * doc/posix-functions/if_indextoname.texi: Likewise.
22352         * doc/posix-functions/if_nameindex.texi: Likewise.
22353         * doc/posix-functions/if_nametoindex.texi: Likewise.
22354         * doc/posix-functions/insque.texi: Likewise.
22355         * doc/posix-functions/linkat.texi: Likewise.
22356         * doc/posix-functions/llrint.texi: Likewise.
22357         * doc/posix-functions/llrintf.texi: Likewise.
22358         * doc/posix-functions/llrintl.texi: Likewise.
22359         * doc/posix-functions/lockf.texi: Likewise.
22360         * doc/posix-functions/lrintl.texi: Likewise.
22361         * doc/posix-functions/mkdirat.texi: Likewise.
22362         * doc/posix-functions/mkfifoat.texi: Likewise.
22363         * doc/posix-functions/mknodat.texi: Likewise.
22364         * doc/posix-functions/mq_close.texi: Likewise.
22365         * doc/posix-functions/mq_getattr.texi: Likewise.
22366         * doc/posix-functions/mq_notify.texi: Likewise.
22367         * doc/posix-functions/mq_open.texi: Likewise.
22368         * doc/posix-functions/mq_receive.texi: Likewise.
22369         * doc/posix-functions/mq_send.texi: Likewise.
22370         * doc/posix-functions/mq_setattr.texi: Likewise.
22371         * doc/posix-functions/mq_timedreceive.texi: Likewise.
22372         * doc/posix-functions/mq_timedsend.texi: Likewise.
22373         * doc/posix-functions/mq_unlink.texi: Likewise.
22374         * doc/posix-functions/open_memstream.texi: Likewise.
22375         * doc/posix-functions/openat.texi: Likewise.
22376         * doc/posix-functions/posix_fadvise.texi: Likewise.
22377         * doc/posix-functions/posix_fallocate.texi: Likewise.
22378         * doc/posix-functions/posix_madvise.texi: Likewise.
22379         * doc/posix-functions/posix_memalign.texi: Likewise.
22380         * doc/posix-functions/posix_openpt.texi: Likewise.
22381         * doc/posix-functions/readlinkat.texi: Likewise.
22382         * doc/posix-functions/remque.texi: Likewise.
22383         * doc/posix-functions/renameat.texi: Likewise.
22384         * doc/posix-functions/rintl.texi: Likewise.
22385         * doc/posix-functions/sem_unlink.texi: Likewise.
22386         * doc/posix-functions/shm_open.texi: Likewise.
22387         * doc/posix-functions/shm_unlink.texi: Likewise.
22388         * doc/posix-functions/signgam.texi: Likewise.
22389         * doc/posix-functions/sigset.texi: Likewise.
22390         * doc/posix-functions/stpcpy.texi: Likewise.
22391         * doc/posix-functions/stpncpy.texi: Likewise.
22392         * doc/posix-functions/strerror.texi: Likewise.
22393         * doc/posix-functions/strtod.texi: Likewise.
22394         * doc/posix-functions/symlinkat.texi: Likewise.
22395         * doc/posix-functions/unlinkat.texi: Likewise.
22396         * doc/posix-functions/utimensat.texi: Likewise.
22397         * doc/glibc-functions/bindresvport.texi: Likewise.
22398         * doc/glibc-functions/dn_expand.texi: Likewise.
22399         * doc/glibc-functions/exp10.texi: Likewise.
22400         * doc/glibc-functions/exp10f.texi: Likewise.
22401         * doc/glibc-functions/fgetxattr.texi: Likewise.
22402         * doc/glibc-functions/flistxattr.texi: Likewise.
22403         * doc/glibc-functions/fopencookie.texi: Likewise.
22404         * doc/glibc-functions/freeifaddrs.texi: Likewise.
22405         * doc/glibc-functions/fremovexattr.texi: Likewise.
22406         * doc/glibc-functions/fsetxattr.texi: Likewise.
22407         * doc/glibc-functions/getifaddrs.texi: Likewise.
22408         * doc/glibc-functions/getxattr.texi: Likewise.
22409         * doc/glibc-functions/lgetxattr.texi: Likewise.
22410         * doc/glibc-functions/listxattr.texi: Likewise.
22411         * doc/glibc-functions/llistxattr.texi: Likewise.
22412         * doc/glibc-functions/lremovexattr.texi: Likewise.
22413         * doc/glibc-functions/lsetxattr.texi: Likewise.
22414         * doc/glibc-functions/pow10.texi: Likewise.
22415         * doc/glibc-functions/pow10f.texi: Likewise.
22416         * doc/glibc-functions/rcmd_af.texi: Likewise.
22417         * doc/glibc-functions/removexattr.texi: Likewise.
22418         * doc/glibc-functions/res_init.texi: Likewise.
22419         * doc/glibc-functions/res_mkquery.texi: Likewise.
22420         * doc/glibc-functions/res_query.texi: Likewise.
22421         * doc/glibc-functions/res_querydomain.texi: Likewise.
22422         * doc/glibc-functions/res_send.texi: Likewise.
22423         * doc/glibc-functions/rresvport_af.texi: Likewise.
22424         * doc/glibc-functions/setxattr.texi: Likewise.
22425         * doc/glibc-functions/strcasestr.texi: Likewise.
22426
22427 2008-12-15  Bruno Haible  <bruno@clisp.org>
22428
22429         Fix compilation error on OSF/1 4.0.
22430         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
22431         <sys/time.h>, simply delegate to the system header.
22432         Reported by Daniel Richard G. <oss@teragram.com>.
22433
22434 2008-12-15  Bruno Haible  <bruno@clisp.org>
22435
22436         * doc/posix-functions/openat.texi: Mention the 'openat' module.
22437         * doc/posix-functions/fchmodat.texi: Likewise.
22438         * doc/posix-functions/fchownat.texi: Likewise.
22439         * doc/posix-functions/fdopendir.texi: Likewise.
22440         * doc/posix-functions/fstatat.texi: Likewise.
22441         * doc/posix-functions/mkdirat.texi: Likewise.
22442         * doc/posix-functions/unlinkat.texi: Likewise.
22443
22444 2008-12-14  Bruno Haible  <bruno@clisp.org>
22445
22446         Update doc for POSIX:2008.
22447         * doc/posix-functions/faccessat.texi: New file.
22448         * doc/posix-functions/fchmodat.texi: New file.
22449         * doc/posix-functions/fchownat.texi: New file.
22450         * doc/posix-functions/fdopendir.texi: New file.
22451         * doc/posix-functions/fstatat.texi: New file.
22452         * doc/posix-functions/futimens.texi: New file.
22453         * doc/posix-functions/linkat.texi: New file.
22454         * doc/posix-functions/mkdirat.texi: New file.
22455         * doc/posix-functions/mkfifoat.texi: New file.
22456         * doc/posix-functions/mknodat.texi: New file.
22457         * doc/posix-functions/open_wmemstream.texi: New file.
22458         * doc/posix-functions/openat.texi: New file.
22459         * doc/posix-functions/psiginfo.texi: New file.
22460         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
22461         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
22462         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
22463         * doc/posix-functions/readlinkat.texi: New file.
22464         * doc/posix-functions/renameat.texi: New file.
22465         * doc/posix-functions/strerror_l.texi: New file.
22466         * doc/posix-functions/symlinkat.texi: New file.
22467         * doc/posix-functions/unlinkat.texi: New file.
22468         * doc/posix-functions/utimensat.texi: New file.
22469         * doc/gnulib.texi (Function Substitutes): Add these subsections.
22470
22471 2008-12-14  Bruno Haible  <bruno@clisp.org>
22472
22473         Update doc for POSIX:2008.
22474         * doc/posix-functions/alphasort.texi: Renamed from
22475         doc/glibc-functions/alphasort.texi.
22476         * doc/posix-functions/dirfd.texi: Renamed from
22477         doc/glibc-functions/dirfd.texi.
22478         * doc/posix-functions/dprintf.texi: Renamed from
22479         doc/glibc-functions/dprintf.texi.
22480         * doc/posix-functions/duplocale.texi: Renamed from
22481         doc/glibc-functions/duplocale.texi.
22482         * doc/posix-functions/fexecve.texi: Renamed from
22483         doc/glibc-functions/fexecve.texi.
22484         * doc/posix-functions/fmemopen.texi: Renamed from
22485         doc/glibc-functions/fmemopen.texi.
22486         * doc/posix-functions/freelocale.texi: Renamed from
22487         doc/glibc-functions/freelocale.texi.
22488         * doc/posix-functions/getdate_err.texi: Renamed from
22489         doc/glibc-functions/getdate_err.texi.
22490         * doc/posix-functions/isalnum_l.texi: Renamed from
22491         doc/glibc-functions/isalnum_l.texi.
22492         * doc/posix-functions/isalpha_l.texi: Renamed from
22493         doc/glibc-functions/isalpha_l.texi.
22494         * doc/posix-functions/isblank_l.texi: Renamed from
22495         doc/glibc-functions/isblank_l.texi.
22496         * doc/posix-functions/iscntrl_l.texi: Renamed from
22497         doc/glibc-functions/iscntrl_l.texi.
22498         * doc/posix-functions/isdigit_l.texi: Renamed from
22499         doc/glibc-functions/isdigit_l.texi.
22500         * doc/posix-functions/isgraph_l.texi: Renamed from
22501         doc/glibc-functions/isgraph_l.texi.
22502         * doc/posix-functions/islower_l.texi: Renamed from
22503         doc/glibc-functions/islower_l.texi.
22504         * doc/posix-functions/isprint_l.texi: Renamed from
22505         doc/glibc-functions/isprint_l.texi.
22506         * doc/posix-functions/ispunct_l.texi: Renamed from
22507         doc/glibc-functions/ispunct_l.texi.
22508         * doc/posix-functions/isspace_l.texi: Renamed from
22509         doc/glibc-functions/isspace_l.texi.
22510         * doc/posix-functions/isupper_l.texi: Renamed from
22511         doc/glibc-functions/isupper_l.texi.
22512         * doc/posix-functions/iswalnum_l.texi: Renamed from
22513         doc/glibc-functions/iswalnum_l.texi.
22514         * doc/posix-functions/iswalpha_l.texi: Renamed from
22515         doc/glibc-functions/iswalpha_l.texi.
22516         * doc/posix-functions/iswblank_l.texi: Renamed from
22517         doc/glibc-functions/iswblank_l.texi.
22518         * doc/posix-functions/iswcntrl_l.texi: Renamed from
22519         doc/glibc-functions/iswcntrl_l.texi.
22520         * doc/posix-functions/iswctype_l.texi: Renamed from
22521         doc/glibc-functions/iswctype_l.texi.
22522         * doc/posix-functions/iswdigit_l.texi: Renamed from
22523         doc/glibc-functions/iswdigit_l.texi.
22524         * doc/posix-functions/iswgraph_l.texi: Renamed from
22525         doc/glibc-functions/iswgraph_l.texi.
22526         * doc/posix-functions/iswlower_l.texi: Renamed from
22527         doc/glibc-functions/iswlower_l.texi.
22528         * doc/posix-functions/iswprint_l.texi: Renamed from
22529         doc/glibc-functions/iswprint_l.texi.
22530         * doc/posix-functions/iswpunct_l.texi: Renamed from
22531         doc/glibc-functions/iswpunct_l.texi.
22532         * doc/posix-functions/iswspace_l.texi: Renamed from
22533         doc/glibc-functions/iswspace_l.texi.
22534         * doc/posix-functions/iswupper_l.texi: Renamed from
22535         doc/glibc-functions/iswupper_l.texi.
22536         * doc/posix-functions/iswxdigit_l.texi: Renamed from
22537         doc/glibc-functions/iswxdigit_l.texi.
22538         * doc/posix-functions/isxdigit_l.texi: Renamed from
22539         doc/glibc-functions/isxdigit_l.texi.
22540         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
22541         doc/glibc-functions/mbsnrtowcs.texi.
22542         * doc/posix-functions/mkdtemp.texi: Renamed from
22543         doc/glibc-functions/mkdtemp.texi.
22544         * doc/posix-functions/newlocale.texi: Renamed from
22545         doc/glibc-functions/newlocale.texi.
22546         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
22547         doc/glibc-functions/nl_langinfo_l.texi.
22548         * doc/posix-functions/open_memstream.texi: Renamed from
22549         doc/glibc-functions/open_memstream.texi.
22550         * doc/posix-functions/opterr.texi: Renamed from
22551         doc/glibc-functions/opterr.texi.
22552         * doc/posix-functions/optind.texi: Renamed from
22553         doc/glibc-functions/optind.texi.
22554         * doc/posix-functions/optopt.texi: Renamed from
22555         doc/glibc-functions/optopt.texi.
22556         * doc/posix-functions/psignal.texi: Renamed from
22557         doc/glibc-functions/psignal.texi.
22558         * doc/posix-functions/scandir.texi: Renamed from
22559         doc/glibc-functions/scandir.texi.
22560         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
22561         doc/glibc-functions/sched_get_priority_min.texi.
22562         * doc/posix-functions/signgam.texi: Renamed from
22563         doc/glibc-functions/signgam.texi.
22564         * doc/posix-functions/stpcpy.texi: Renamed from
22565         doc/glibc-functions/stpcpy.texi.
22566         * doc/posix-functions/stpncpy.texi: Renamed from
22567         doc/glibc-functions/stpncpy.texi.
22568         * doc/posix-functions/strcasecmp_l.texi: Renamed from
22569         doc/glibc-functions/strcasecmp_l.texi.
22570         * doc/posix-functions/strcoll_l.texi: Renamed from
22571         doc/glibc-functions/strcoll_l.texi.
22572         * doc/posix-functions/strfmon_l.texi: Renamed from
22573         doc/glibc-functions/strfmon_l.texi.
22574         * doc/posix-functions/strftime_l.texi: Renamed from
22575         doc/glibc-functions/strftime_l.texi.
22576         * doc/posix-functions/strncasecmp_l.texi: Renamed from
22577         doc/glibc-functions/strncasecmp_l.texi.
22578         * doc/posix-functions/strndup.texi: Renamed from
22579         doc/glibc-functions/strndup.texi.
22580         * doc/posix-functions/strnlen.texi: Renamed from
22581         doc/glibc-functions/strnlen.texi.
22582         * doc/posix-functions/strsignal.texi: Renamed from
22583         doc/glibc-functions/strsignal.texi.
22584         * doc/posix-functions/strxfrm_l.texi: Renamed from
22585         doc/glibc-functions/strxfrm_l.texi.
22586         * doc/posix-functions/timer_gettime.texi: Renamed from
22587         doc/glibc-functions/timer_gettime.texi.
22588         * doc/posix-functions/tolower_l.texi: Renamed from
22589         doc/glibc-functions/tolower_l.texi.
22590         * doc/posix-functions/toupper_l.texi: Renamed from
22591         doc/glibc-functions/toupper_l.texi.
22592         * doc/posix-functions/towctrans_l.texi: Renamed from
22593         doc/glibc-functions/towctrans_l.texi.
22594         * doc/posix-functions/towlower_l.texi: Renamed from
22595         doc/glibc-functions/towlower_l.texi.
22596         * doc/posix-functions/towupper_l.texi: Renamed from
22597         doc/glibc-functions/towupper_l.texi.
22598         * doc/posix-functions/uselocale.texi: Renamed from
22599         doc/glibc-functions/uselocale.texi.
22600         * doc/posix-functions/vdprintf.texi: Renamed from
22601         doc/glibc-functions/vdprintf.texi.
22602         * doc/posix-functions/wcpcpy.texi:
22603         Renamed from doc/glibc-functions/wcpcpy.texi.
22604         * doc/posix-functions/wcpncpy.texi: Renamed from
22605         doc/glibc-functions/wcpncpy.texi.
22606         * doc/posix-functions/wcscasecmp.texi: Renamed from
22607         doc/glibc-functions/wcscasecmp.texi.
22608         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
22609         doc/glibc-functions/wcscasecmp_l.texi.
22610         * doc/posix-functions/wcscoll_l.texi: Renamed from
22611         doc/glibc-functions/wcscoll_l.texi.
22612         * doc/posix-functions/wcsdup.texi: Renamed from
22613         doc/glibc-functions/wcsdup.texi.
22614         * doc/posix-functions/wcsncasecmp.texi: Renamed from
22615         doc/glibc-functions/wcsncasecmp.texi.
22616         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
22617         doc/glibc-functions/wcsncasecmp_l.texi.
22618         * doc/posix-functions/wcsnlen.texi: Renamed from
22619         doc/glibc-functions/wcsnlen.texi.
22620         * doc/posix-functions/wcsnrtombs.texi: Renamed from
22621         doc/glibc-functions/wcsnrtombs.texi.
22622         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
22623         doc/glibc-functions/wcsxfrm_l.texi.
22624         * doc/posix-functions/wctrans_l.texi: Renamed from
22625         doc/glibc-functions/wctrans_l.texi.
22626         * doc/posix-functions/wctype_l.texi: Renamed from
22627         doc/glibc-functions/wctype_l.texi.
22628         * doc/gnulib.texi (Function Substitutes): Add these subsections.
22629         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
22630         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
22631         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
22632         these subsections.
22633         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
22634         Remove sections.
22635
22636 2008-12-14  Bruno Haible  <bruno@clisp.org>
22637
22638         Update doc for POSIX:2008.
22639         * doc/posix-functions/*.texi: Update URL of POSIX specification.
22640
22641 2008-12-14  Bruno Haible  <bruno@clisp.org>
22642
22643         Update doc for POSIX:2008.
22644         * doc/pastposix-functions/bcmp.texi: Renamed from
22645         doc/posix-functions/bcmp.texi.
22646         * doc/pastposix-functions/bcopy.texi: Renamed from
22647         doc/posix-functions/bcopy.texi.
22648         * doc/pastposix-functions/bsd_signal.texi: Renamed from
22649         doc/posix-functions/bsd_signal.texi.
22650         * doc/pastposix-functions/bzero.texi: Renamed from
22651         doc/posix-functions/bzero.texi.
22652         * doc/pastposix-functions/ecvt.texi: Renamed from
22653         doc/posix-functions/ecvt.texi.
22654         * doc/pastposix-functions/fcvt.texi: Renamed from
22655         doc/posix-functions/fcvt.texi.
22656         * doc/pastposix-functions/ftime.texi: Renamed from
22657         doc/posix-functions/ftime.texi.
22658         * doc/pastposix-functions/gcvt.texi: Renamed from
22659         doc/posix-functions/gcvt.texi.
22660         * doc/pastposix-functions/getcontext.texi: Renamed from
22661         doc/posix-functions/getcontext.texi.
22662         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
22663         doc/posix-functions/gethostbyaddr.texi.
22664         * doc/pastposix-functions/gethostbyname.texi: Renamed from
22665         doc/posix-functions/gethostbyname.texi.
22666         * doc/pastposix-functions/getwd.texi: Renamed from
22667         doc/posix-functions/getwd.texi.
22668         * doc/pastposix-functions/h_errno.texi: Renamed from
22669         doc/posix-functions/h_errno.texi.
22670         * doc/pastposix-functions/index.texi: Renamed from
22671         doc/posix-functions/index.texi.
22672         * doc/pastposix-functions/makecontext.texi: Renamed from
22673         doc/posix-functions/makecontext.texi.
22674         * doc/pastposix-functions/mktemp.texi: Renamed from
22675         doc/posix-functions/mktemp.texi.
22676         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
22677         doc/posix-functions/pthread_attr_getstackaddr.texi.
22678         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
22679         doc/posix-functions/pthread_attr_setstackaddr.texi.
22680         * doc/pastposix-functions/rindex.texi: Renamed from
22681         doc/posix-functions/rindex.texi.
22682         * doc/pastposix-functions/scalb.texi: Renamed from
22683         doc/posix-functions/scalb.texi.
22684         * doc/pastposix-functions/setcontext.texi: Renamed from
22685         doc/posix-functions/setcontext.texi.
22686         * doc/pastposix-functions/swapcontext.texi: Renamed from
22687         doc/posix-functions/swapcontext.texi.
22688         * doc/pastposix-functions/ualarm.texi: Renamed from
22689         doc/posix-functions/ualarm.texi.
22690         * doc/pastposix-functions/usleep.texi: Renamed from
22691         doc/posix-functions/usleep.texi.
22692         * doc/pastposix-functions/vfork.texi: Renamed from
22693         doc/posix-functions/vfork.texi.
22694         * doc/pastposix-functions/wcswcs.texi: Renamed from
22695         doc/posix-functions/wcswcs.texi.
22696         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
22697         (Function Substitutes): Update.
22698
22699 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22700
22701         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
22702         m4/strerror.m4.
22703
22704 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22705             Bruno Haible  <bruno@clisp.org>
22706
22707         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
22708
22709 2008-12-13  Bruno Haible  <bruno@clisp.org>
22710
22711         * modules/strtoull (Depends-on): Remove unistd.
22712
22713 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22714
22715         * modules/strtoull (Depends-on): Add stdlib.
22716
22717 2008-12-11  Simon Josefsson  <simon@josefsson.org>
22718
22719         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
22720
22721 2008-12-10  Jim Meyering  <meyering@redhat.com>
22722
22723         gl_ASSERT: don't say assertions are disabled when they're not
22724         * m4/assert.m4 (gl_ASSERT): Do not make configure report
22725         "checking whether to enable assertions... no", when they are in
22726         fact enabled.  This is solely a bug in the output of configure.
22727         In spite of saying "no", NDEBUG was not defined in that case.
22728         Also, as noted by Eric Blake, leave assertions enabled upon
22729         --enable-assert=INVALID.
22730
22731 2008-12-10  Bruno Haible  <bruno@clisp.org>
22732
22733         Change MODULES.html to refer to POSIX:2008 where possible.
22734         * MODULES.html.sh (POSIX2008_URL): New variable.
22735         (posix_headers): Remove sys/timeb, ucontext.
22736         (posix2001_headers): New variable.
22737         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
22738         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
22739         index, makecontext, mktemp, pthread_attr_getstackaddr,
22740         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
22741         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
22742         (posix2001_functions): New variable.
22743         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
22744         otherwise.
22745
22746 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22747
22748         add missing include to parse-duration.c
22749         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
22750         * modules/parse-duration (Depends-on): Add xalloc.
22751
22752         fix sed script reading maint.mk
22753         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
22754         (syntax-check-rules): Use it.
22755
22756 2008-12-09  Bruno Haible  <bruno@clisp.org>
22757
22758         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
22759         MacOS X 10.4/PowerPC.
22760         Reported by Simon Josefsson.
22761
22762 2008-12-08  Jim Meyering  <meyering@redhat.com>
22763
22764         work around mingw's lack of some S_IF definitions
22765         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
22766         Reported by Simon Josefsson.
22767
22768 2008-12-08  Bruno Haible  <bruno@clisp.org>
22769
22770         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
22771         applied to variables. Needed on MacOS X 10.4/PowerPC.
22772         Reported by Simon Josefsson.
22773
22774 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
22775         and Eric Blake  <ebb9@byu.net>
22776
22777         assert: honor --enable-assert
22778         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
22779         order to honor --enable-assert, rather than treating it as a
22780         synonym for --disable-assert.
22781
22782 2008-12-08  Jim Meyering  <meyering@redhat.com>
22783
22784         * lib/posixtm.c: Remove now-useless declaration of mktime.
22785
22786         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
22787
22788 2008-12-07  Bruno Haible  <bruno@clisp.org>
22789
22790         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
22791         test_once): Mark functions as static.
22792         * tests/test-tls.c (test_tls): Likewise.
22793
22794 2008-12-07  Bruno Haible  <bruno@clisp.org>
22795
22796         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
22797         iconv_register_autodetect.
22798
22799 2008-12-07  Jim Meyering  <meyering@redhat.com>
22800
22801         posixtm.c: avoid a warning
22802         * lib/posixtm.c (posixtime): Don't initialize tm0.
22803         It's no longer needed to placate gcc4's -Wuninitialized,
22804         and the attempt to placate would elicit a new warning.
22805
22806         unicodeio.c: mark unused parameters
22807         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
22808         (fallback_failure_callback): Likewise.
22809
22810 2008-12-07  Bruno Haible  <bruno@clisp.org>
22811
22812         * gnulib-tool (func_create_testdir): When building the tests
22813         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
22814         Reported by Simon Josefsson.
22815
22816 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22817
22818         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
22819
22820 2008-12-06  Bruno Haible  <bruno@clisp.org>
22821
22822         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
22823         Suggested by Eric Blake.
22824
22825 2008-12-06  Bruno Haible  <bruno@clisp.org>
22826
22827         Fix a c-stack test failure on MacOS X.
22828         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
22829         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
22830         handler for SIGBUS as well.
22831         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
22832         install a signal handler for SIGBUS as well.
22833         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
22834
22835 2008-12-06  Bruno Haible  <bruno@clisp.org>
22836
22837         Advocacy documentation.
22838         * doc/gnulib-intro.texi (Benefits): New section.
22839         * doc/gnulib.texi: Update.
22840
22841 2008-12-06  Bruno Haible  <bruno@clisp.org>
22842
22843         Document the 'manywarnings' module.
22844         * doc/manywarnings.texi: New file.
22845         * doc/gnulib.texi: Include it.
22846
22847 2008-12-05  Eric Blake  <ebb9@byu.net>
22848
22849         tests: silence some gcc warnings
22850         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
22851         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
22852         type mismatches.
22853
22854 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22855             Bruno Haible  <bruno@clisp.org>
22856
22857         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
22858
22859 2008-11-29  Jim Meyering  <meyering@redhat.com>
22860
22861         unicodeio.c: mark unused parameters
22862         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
22863         (fallback_failure_callback): Likewise.
22864
22865         fts: fix a thinko
22866         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
22867         (set_stat_type): Return S_IF*-valued "type" directly.
22868         Prompted by James Youngman's spotting a related bug.
22869         Confirmed by further testing through find.
22870
22871         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
22872         * lib/fts.c (D_TYPE): Define.
22873         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
22874         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
22875         (s_ifmt_shift_bits): New function.
22876         (set_stat_type): New function.
22877         (fts_build): When not calling fts_stat, call set_stat_type
22878         to propagate dirent.d_type info to fts_read caller.
22879         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
22880         fts_statp->st_mode type information may be valid.
22881
22882 2008-11-28  Simon Josefsson  <simon@josefsson.org>
22883
22884         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
22885         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
22886         <sds@gnu.org>.
22887
22888 2008-11-20  Bruno Haible  <bruno@clisp.org>
22889
22890         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
22891         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
22892         INCLUDE_NEXT.
22893         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
22894         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
22895         * modules/math (Makefile.am): Substitute
22896         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
22897         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22898
22899 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
22900             Bruno Haible  <bruno@clisp.org>
22901
22902         * lib/stdint.in.h: Define all type macros so that their expansion is
22903         a single typedef'ed token. Fixes a compilation failure in Boost which
22904         does "using ::int8_t;".
22905
22906 2008-11-18  Simon Josefsson  <simon@josefsson.org>
22907
22908         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
22909         gl_MANYWARN_ALL_GCC.
22910         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
22911         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
22912         * modules/manywarnings: New file.
22913         * MODULES.html.sh: Mention manywarnings module.
22914
22915 2008-11-18  Bruno Haible  <bruno@clisp.org>
22916
22917         * doc/gnulib-tool.texi (Unit tests): New section.
22918
22919 2008-11-18  Simon Josefsson  <simon@josefsson.org>
22920
22921         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
22922         paths like 'lib/po/foo.po'.
22923
22924 2008-11-17  Simon Josefsson  <simon@josefsson.org>
22925
22926         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
22927         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
22928
22929 2008-11-17  Simon Josefsson  <simon@josefsson.org>
22930
22931         * m4/warnings.m4: Use CPPFLAGS to really check whether the
22932         parameter works.
22933
22934 2008-11-17  Simon Josefsson  <simon@josefsson.org>
22935
22936         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
22937
22938 2008-11-17  Bruce Korb  <bkorb@gnu.org>
22939
22940         * modules/parse-duration-tests: New file.
22941         * tests/test-parse-duration.sh: New file.
22942         * tests/test-parse-duration.c: New file.
22943
22944         New module 'parse-duration'.
22945         * lib/parse-duration.h: New file.
22946         * lib/parse-duration.c: New file.
22947         * modules/parse-duration: New file.
22948
22949 2008-11-17  Bruno Haible  <bruno@clisp.org>
22950
22951         * tests/test-select-out.sh: Comment out the first pipe test.
22952         Reported by Simon Josefsson.
22953
22954 2008-11-17  Bruno Haible  <bruno@clisp.org>
22955
22956         * modules/getaddrinfo (Depends-on): Add servent, hostent.
22957         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
22958         gl_HOSTENT.
22959
22960 2008-11-17  Bruno Haible  <bruno@clisp.org>
22961
22962         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
22963         -lnetwork and -lnet. Needed for Haiku and BeOS.
22964
22965 2008-11-16  Bruno Haible  <bruno@clisp.org>
22966
22967         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
22968
22969 2008-11-16  Bruno Haible  <bruno@clisp.org>
22970
22971         Avoid test failure on Haiku.
22972         * tests/test-fsync.c: Include <errno.h>.
22973         (main): Don't require that fsync (0) fails.
22974
22975 2008-11-15  Bruno Haible  <bruno@clisp.org>
22976
22977         New module 'hostent'.
22978         * modules/hostent: New file.
22979         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
22980
22981 2008-11-15  Bruno Haible  <bruno@clisp.org>
22982
22983         New module 'servent'.
22984         * modules/servent: New file.
22985         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
22986
22987 2008-11-15  Bruno Haible  <bruno@clisp.org>
22988
22989         Avoid generating same test program with two different rules.
22990         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
22991         test-frexp to test-frexp-nolibm.
22992         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
22993         test-frexpl to test-frexpl-nolibm.
22994
22995 2008-11-15  Bruno Haible  <bruno@clisp.org>
22996
22997         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
22998         $(FREXPL_LIBM).
22999
23000 2008-11-15  Bruno Haible  <bruno@clisp.org>
23001
23002         * lib/netdb.in.h: Activate the definitions also when the system's
23003         <netdb.h> has 'struct addrinfo'.
23004         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
23005         EAI_OVERFLOW or AI_NUMERICSERV.
23006         * doc/posix-headers/netdb.texi: Document the problem.
23007
23008 2008-11-15  Bruno Haible  <bruno@clisp.org>
23009
23010         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
23011
23012         Make the 'sched' module work on platforms where <sched.h> exists but
23013         is incomplete (such as Haiku).
23014         * lib/sched.in.h; Include the system's <sched.h> if it exists.
23015         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
23016         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
23017         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
23018         HAVE_STRUCT_SCHED_PARAM.
23019         * modules/sched (Depends-on): Add include_next.
23020         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
23021         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
23022         * doc/posix-headers/sched.texi: Document the issue.
23023
23024 2008-11-13  Jim Meyering  <meyering@redhat.com>
23025
23026         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
23027         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
23028         test would fail due to the difference in the Report bugs to ...
23029         line.  The expected address is empty, "<>", while the actual
23030         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
23031
23032 2008-11-12  Bruno Haible  <bruno@clisp.org>
23033
23034         lstat: don't compile lstat.c on systems lacking lstat
23035         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
23036         which don't have lstat; this is handled by lib/sys_stat.in.h already.
23037         Reported by Daniel P. Berrange via Jim Meyering.
23038
23039 2008-11-12  Jim Meyering  <meyering@redhat.com>
23040
23041         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
23042
23043 2008-11-12  Simon Josefsson  <simon@josefsson.org>
23044
23045         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
23046         instead.
23047
23048 2008-11-12  Bruno Haible  <bruno@clisp.org>
23049
23050         * lib/unicodeio.c: Include unistr.h.
23051         (utf8_wctomb): Remove function.
23052         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
23053
23054 2008-11-12  Simon Josefsson  <simon@josefsson.org>
23055
23056         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
23057         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
23058         <bruno@clisp.org>.
23059         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
23060
23061 2008-11-12  Simon Josefsson  <simon@josefsson.org>
23062
23063         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
23064         * doc/gnulib.texi: Add section for warnings.
23065
23066 2008-11-11  Bruno Haible  <bruno@clisp.org>
23067
23068         * lib/sockets.h: Add a comment.
23069
23070 2008-11-11  Karl Berry  <karl@gnu.org>
23071
23072         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
23073
23074 2008-11-11  Eric Blake  <ebb9@byu.net>
23075
23076         fdl.texi: avoid git symlinks
23077         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
23078
23079 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
23080
23081         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
23082
23083 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
23084
23085         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
23086         (gl_WARN_ADD): Substitute $2 if literal.
23087
23088 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
23089
23090         * m4/warning.m4: Remove.
23091
23092 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
23093
23094         * m4/warnings.m4: Almost complete rewrite. :-)
23095
23096 2008-11-10  Simon Josefsson  <simon@josefsson.org>
23097
23098         * modules/warnings: New module.
23099         * m4/warnings.m4: New file.
23100         * MODULES.html.sh: Mention warnings module.
23101         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
23102         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23103
23104 2008-11-10  Eric Blake  <ebb9@byu.net>
23105
23106         fdl.texi: make a symlink to the latest version
23107         * doc/standards.texi: Revert today's earlier change.
23108         * doc/fdl-1.2.texi: Rename from old fdl.texi...
23109         * doc/fdl.texi: ...and replace this with a symlink to the newer
23110         fdl-1.3.texi.
23111
23112 2008-11-10  Bruno Haible  <bruno@clisp.org>
23113
23114         * tests/test-select-fd.c (main): Accept the result file name as fourth
23115         argument.
23116         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
23117         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
23118
23119 2008-11-10  Bruno Haible  <bruno@clisp.org>
23120
23121         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
23122         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
23123         as autoconf-substituted macros.
23124         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
23125         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
23126         gl_NETDB_H_DEFAULTS. Set these variables.
23127         * modules/netdb (Makefile.am): Substitute these variables.
23128
23129 2008-11-10  Eric Blake  <ebb9@byu.net>
23130
23131         standards.texi: include correct file for FDL 1.3
23132         * doc/standards.texi (GNU Free Documentation License): Change
23133         include file to pull in FDL 1.3, not 1.2.
23134
23135         fdl.texi: revert accidental change to license
23136         * doc/fdl.texi: This is FDL 1.2, not 1.3.
23137
23138 2008-11-10  Bruno Haible  <bruno@clisp.org>
23139
23140         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
23141         cross-compiling guesses also when the native compile gives no result.
23142
23143 2008-11-10  Bruno Haible  <bruno@clisp.org>
23144
23145         * lib/spawni.c (__spawni): Force variable into the stack.
23146
23147 2008-11-10  Bruno Haible  <bruno@clisp.org>
23148
23149         Add support for Haiku.
23150         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
23151         glibc and BeOS, but also on Haiku.
23152         * lib/fpurge.c (fpurge): Likewise.
23153         * lib/freadable.c (freadable): Likewise.
23154         * lib/freadahead.c (freadahead): Likewise.
23155         * lib/freading.c (freading): Likewise.
23156         * lib/freadptr.c (freadptr): Likewise.
23157         * lib/freadseek.c (freadptrinc): Likewise.
23158         * lib/fseeko.c (rpl_fseeko): Likewise.
23159         * lib/fseterr.c (fseterr): Likewise.
23160         * lib/fwritable.c (fwritable): Likewise.
23161         * lib/fwriting.c (fwriting): Likewise.
23162         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
23163
23164 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
23165
23166         * lib/config.charset: Treat Haiku like BeOS.
23167
23168 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
23169
23170         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
23171         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
23172
23173 2008-11-08  Bruno Haible  <bruno@clisp.org>
23174
23175         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
23176         AC_CACHE_CHECK.
23177
23178 2008-11-08  Bruno Haible  <bruno@clisp.org>
23179
23180         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
23181
23182 2008-11-08  Bruno Haible  <bruno@clisp.org>
23183
23184         * tests/test-select-fd.c: New file.
23185         * tests/test-select-in.sh: New file.
23186         * tests/test-select-out.sh: New file.
23187         * tests/test-select-stdin.c: New file.
23188         * modules/select-tests (Files): Add the new files.
23189         (Depends-on): Add gettimeofday.
23190         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
23191         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
23192         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
23193
23194 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
23195             Bruno Haible  <bruno@clisp.org>
23196
23197         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
23198
23199 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
23200
23201         * build-aux/pmccabe2html: Added support for C++ source files.
23202
23203 2008-11-05  Ben Pfaff  <blp@gnu.org>
23204
23205         Fix lib/close.c build on Windows.
23206         * modules/close (Files): Add lib/w32sock.h.
23207
23208 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
23209
23210         Accept Bison's NEWS format.
23211         * build-aux/announce-gen (print_news_deltas): Tweak
23212         $re_prefix.
23213
23214 2008-11-04  Bruno Haible  <bruno@clisp.org>
23215
23216         * modules/random_r (Maintainer): Add glibc.
23217
23218 2008-11-04  Simon Josefsson  <simon@josefsson.org>
23219
23220         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
23221         by karl@freefriends.org (Karl Berry).
23222         * doc/alloca.texi: Likewise.
23223         * doc/c-ctype.texi: Likewise.
23224         * doc/c-strcase.texi: Likewise.
23225         * doc/c-strcaseeq.texi: Likewise.
23226         * doc/c-strcasestr.texi: Likewise.
23227         * doc/c-strstr.texi: Likewise.
23228         * doc/c-strtod.texi: Likewise.
23229         * doc/c-strtold.texi: Likewise.
23230         * doc/ctime.texi: Likewise.
23231         * doc/error.texi: Likewise.
23232         * doc/fdl.texi: Likewise.
23233         * doc/gcd.texi: Likewise.
23234         * doc/getdate.texi: Likewise.
23235         * doc/gnulib-intro.texi: Likewise.
23236         * doc/gnulib-tool.texi: Likewise.
23237         * doc/gnulib.texi: Likewise.
23238         * doc/inet_ntoa.texi: Likewise.
23239         * doc/maintain.texi: Likewise.
23240         * doc/make-stds.texi: Likewise.
23241         * doc/quote.texi: Likewise.
23242         * doc/regexprops-generic.texi: Likewise.
23243         * doc/standards.texi: Likewise.
23244         * doc/verify.texi: Likewise.
23245         * doc/visibility.texi: Likewise.
23246         * doc/gnulib.texi (GNU Free Documentation License): Include
23247         fdl-1.3.texi instead of fdl.texi.
23248
23249 2008-11-04  Simon Josefsson  <simon@josefsson.org>
23250
23251         * doc/fdl-1.3.texi: New file, from
23252         <http://www.gnu.org/licenses/fdl-1.3.texi>.
23253         * modules/fdl-1.3: Add.
23254         * MODULES.html.sh: Add fdl-1.3.
23255
23256 2008-11-03  Bruno Haible  <bruno@clisp.org>
23257
23258         Make determination of absolute name of header file work with AIX xlc.
23259         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
23260         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
23261         preprocessing.
23262         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
23263         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
23264
23265 2008-11-03  Simon Josefsson  <simon@josefsson.org>
23266
23267         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
23268         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
23269         <ludo@gnu.org>.
23270
23271 2008-11-02  Bruno Haible  <bruno@clisp.org>
23272
23273         Mark 'strpbrk' obsolete.
23274         * modules/strpbrk (Status, Notice): New sections.
23275         * modules/strtok_r (Depends-on): Add strpbrk.
23276
23277 2008-11-02  Bruno Haible  <bruno@clisp.org>
23278
23279         Mark 'strdup' obsolete.
23280         * modules/strdup (Status, Notice): New sections.
23281         * modules/findprog (Depends-on): Add strdup.
23282         * modules/getaddrinfo (Depends-on): Likewise.
23283         * modules/localename (Depends-on): Likewise.
23284         * modules/relocatable-lib (Depends-on): Likewise.
23285         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
23286         * modules/relocatable-prog (Depends-on): Likewise.
23287         * modules/trim (Depends-on): Likewise.
23288         * modules/unictype/gen-ctype (Depends-on): Likewise.
23289         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
23290
23291 2008-11-02  Bruno Haible  <bruno@clisp.org>
23292
23293         Mark 'strcspn' obsolete.
23294         * modules/strcspn (Status, Notice): New sections.
23295
23296 2008-11-02  Bruno Haible  <bruno@clisp.org>
23297
23298         Mark 'rmdir' obsolete.
23299         * modules/rmdir (Status, Notice): New sections.
23300         * modules/clean-temp (Depends-on): Add rmdir.
23301         * modules/openat (Depends-on): Likewise.
23302
23303 2008-11-02  Bruno Haible  <bruno@clisp.org>
23304
23305         Mark 'raise' obsolete.
23306         * modules/raise (Status, Notice): New sections.
23307         (Include): Specify <signal.h>.
23308         * modules/stdio (Depends-on): Add raise.
23309         * modules/write (Depends-on): Likewise.
23310
23311 2008-11-02  Bruno Haible  <bruno@clisp.org>
23312
23313         Mark 'memset' obsolete.
23314         * modules/memset (Status, Notice): New sections.
23315
23316 2008-11-02  Bruno Haible  <bruno@clisp.org>
23317
23318         Mark 'memmove' obsolete.
23319         * modules/memmove (Status, Notice): New sections.
23320         * modules/argp (Depends-on): Add memmove.
23321         * modules/argz (Depends-on): Likewise.
23322         * modules/canonicalize (Depends-on): Likewise.
23323         * modules/canonicalize-lgpl (Depends-on): Likewise.
23324         * modules/fts (Depends-on): Likewise.
23325         * modules/getcwd (Depends-on): Likewise.
23326         * modules/human (Depends-on): Likewise.
23327         * modules/regex (Depends-on): Likewise.
23328         * modules/striconveh (Depends-on): Likewise.
23329         * modules/trim (Depends-on): Likewise.
23330         * modules/unistr/u8-move (Depends-on): Likewise.
23331         * modules/unistr/u16-move (Depends-on): Likewise.
23332         * modules/unistr/u32-move (Depends-on): Likewise.
23333
23334 2008-11-02  Bruno Haible  <bruno@clisp.org>
23335
23336         Mark 'memcpy' obsolete.
23337         * modules/memcpy (Status, Notice): New sections.
23338
23339 2008-11-02  Bruno Haible  <bruno@clisp.org>
23340
23341         Mark 'memcmp' obsolete.
23342         * modules/memcmp (Status, Notice): New sections.
23343         * modules/argmatch (Depends-on): Add memchr.
23344         * modules/backupfile (Depends-on): Likewise.
23345         * modules/c-strcasestr (Depends-on): Likewise.
23346         * modules/crypto/des (Depends-on): Likewise.
23347         * modules/csharpcomp (Depends-on): Likewise.
23348         * modules/fnmatch (Depends-on): Likewise.
23349         * modules/git-merge-changelog (Depends-on): Likewise.
23350         * modules/isnand (Depends-on): Likewise.
23351         * modules/isnand-nolibm (Depends-on): Likewise.
23352         * modules/isnanf (Depends-on): Likewise.
23353         * modules/isnanf-nolibm (Depends-on): Likewise.
23354         * modules/isnanl (Depends-on): Likewise.
23355         * modules/isnanl-nolibm (Depends-on): Likewise.
23356         * modules/mbchar (Depends-on): Likewise.
23357         * modules/memcoll (Depends-on): Likewise.
23358         * modules/quotearg (Depends-on): Likewise.
23359         * modules/regex (Depends-on): Likewise.
23360         * modules/relocatable-prog (Depends-on): Likewise.
23361         * modules/same (Depends-on): Likewise.
23362         * modules/signbit (Depends-on): Likewise.
23363         * modules/strcasestr-simple (Depends-on): Likewise.
23364         * modules/unictype/gen-ctype (Depends-on): Likewise.
23365         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
23366         * modules/uniname/uniname (Depends-on): Likewise.
23367         * modules/unistr/u8-cmp (Depends-on): Likewise.
23368
23369 2008-11-02  Bruno Haible  <bruno@clisp.org>
23370
23371         Mark 'memchr' obsolete.
23372         * modules/memchr (Status, Notice): New sections.
23373         * modules/argp (Depends-on): Add memchr.
23374         * modules/base64 (Depends-on): Likewise.
23375         * modules/c-strcasestr (Depends-on): Likewise.
23376         * modules/chdir-long (Depends-on): Likewise.
23377         * modules/fnmatch (Depends-on): Likewise.
23378         * modules/getsubopt (Depends-on): Likewise.
23379         * modules/git-merge-changelog (Depends-on): Likewise.
23380         * modules/glob (Depends-on): Likewise.
23381         * modules/strcasestr-simple (Depends-on): Likewise.
23382         * modules/strnlen (Depends-on): Likewise.
23383
23384 2008-11-02  Bruno Haible  <bruno@clisp.org>
23385
23386         Mark 'atexit' obsolete.
23387         * modules/atexit (Status, Notice): New sections.
23388         * modules/chdir-long (Depends-on): Add atexit.
23389         * modules/wait-process (Depends-on): Likewise.
23390
23391 2008-11-02  Bruno Haible  <bruno@clisp.org>
23392
23393         * gnulib-tool: New option --with-obsolete.
23394         (func_usage): Document it.
23395         (func_modules_transitive_closure): Drop obsolete dependencies if
23396         incobsolete is not true.
23397         (func_import): Read and save the incobsolete variable to the cache.
23398
23399 2008-11-02  Bruno Haible  <bruno@clisp.org>
23400
23401         * modules/TEMPLATE-EXTENDED: New field 'Status'.
23402         * gnulib-tool: New option --extract-status.
23403         (func_usage): Document it.
23404         (sed_extract_prog): Recognize it.
23405         (func_get_status): New function.
23406
23407 2008-10-30  Simon Josefsson  <simon@josefsson.org>
23408
23409         * modules/sockets (License): Change from LGPL to LGPLv2+.
23410
23411 2008-10-28  Simon Josefsson  <simon@josefsson.org>
23412
23413         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
23414
23415 2008-10-28  Simon Josefsson  <simon@josefsson.org>
23416
23417         * MODULES.html.sh (Support for systems lacking POSIX:2001):
23418         Mention times and sys_times.
23419         * modules/sys_times, modules/sys_times-tests: New modules.
23420         * modules/times, modules/times-tests: Likewise
23421         * m4/sys_times_h.m4: New file.
23422         * lib/sys_times.in.h: Likewise
23423         * lib/times.c: Likewise.
23424         * tests/test-sys_times.c: Likewise.
23425         * tests/test-times.c: Likewise.
23426         * doc/posix-headers/sys_times.texi: Update.
23427         * doc/posix-functions/times.texi: Update.
23428
23429 2008-10-28  Jim Meyering  <meyering@redhat.com>
23430
23431         * modules/tempname (Depends-on): Add lstat.
23432
23433         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
23434
23435 2008-10-28  Simon Josefsson  <simon@josefsson.org>
23436
23437         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
23438         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
23439         using idiom used elsewhere in gnulib.
23440
23441 2008-10-27  Jim Meyering  <meyering@redhat.com>
23442
23443         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
23444
23445 2008-10-27  Simon Josefsson  <simon@josefsson.org>
23446
23447         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
23448         TESTS_ENVIRONMENT, for shell scripts that needs to call built
23449         programs.
23450         * tests/test-argp-2.sh: Use $EXEEXT when needed.
23451
23452 2008-10-27  Simon Josefsson  <simon@josefsson.org>
23453
23454         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
23455
23456 2008-10-27  Bruno Haible  <bruno@clisp.org>
23457
23458         * tests/test-lstat.c: Include <stdio.h>.
23459
23460 2008-10-27  Simon Josefsson  <simon@josefsson.org>
23461
23462         * modules/lstat-tests: New module.
23463         * tests/test-lstat.c: New file.
23464
23465 2008-10-26  Jim Meyering  <meyering@redhat.com>
23466
23467         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
23468
23469 2008-10-26  Simon Josefsson  <simon@josefsson.org>
23470             Bruno Haible  <bruno@clisp.org>
23471
23472         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
23473         * modules/configmake (Include): Add a note that the include must come
23474         after all system headers.
23475         * lib/javaversion.c: Include configmake.h after all other includes.
23476
23477 2008-10-26  Bruno Haible  <bruno@clisp.org>
23478
23479         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
23480         HAVE_STRUCT_RANDOM_DATA to 1.
23481         (gl_STDLIB_H): Simplify.
23482
23483 2008-10-26  Simon Josefsson  <simon@josefsson.org>
23484
23485         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
23486         substitute HAVE_STRUCT_RANDOM_DATA.
23487         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
23488         random_data.
23489         * modules/stdlib (Makefile.am): Substitute
23490         HAVE_STRUCT_RANDOM_DATA.
23491
23492 2008-10-26  Simon Josefsson  <simon@josefsson.org>
23493
23494         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
23495         * doc/gnulib-intro.texi (Copyright): Likewise.
23496
23497 2008-10-26  Simon Josefsson  <simon@josefsson.org>
23498
23499         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
23500         findings.
23501
23502 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
23503             Bruno Haible  <bruno@clisp.org>
23504
23505         * lib/unistd.in.h: Include <winsock2.h>.
23506         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
23507         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
23508         Provide dummy declarations.
23509         (gethostname): Override.
23510         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
23511         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
23512         gl_PREREQ_SYS_H_WINSOCK2.
23513         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
23514         * doc/posix-functions/gethostname.texi: More details.
23515
23516 2008-10-25  Bruno Haible  <bruno@clisp.org>
23517
23518         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
23519         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
23520         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
23521
23522         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
23523         here ...
23524         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
23525         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
23526         gl_UNISTD_H_DEFAULTS.
23527
23528 2008-10-25  Eric Blake  <ebb9@byu.net>
23529
23530         signbit: avoid spurious compiler failure
23531         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
23532         declarations inside function.
23533
23534 2008-10-24  Simon Josefsson  <simon@josefsson.org>
23535             Bruno Haible  <bruno@clisp.org>
23536
23537         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
23538         * modules/random_r (Depends-on): Add stdint.
23539
23540 2008-10-24  Bruno Haible  <bruno@clisp.org>
23541
23542         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
23543         Eggert.
23544         * modules/strerror (License): Likewise.
23545
23546 2008-10-24  Jim Meyering  <meyering@redhat.com>
23547
23548         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
23549         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
23550
23551 2008-10-24  Eric Blake  <ebb9@byu.net>
23552
23553         getgroups: fix compilation when getgroups is available
23554         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
23555         but with <config.h> override of getgroups disabled.
23556
23557 2008-10-24  Simon Josefsson  <simon@josefsson.org>
23558
23559         * doc/gnulib.texi (Header files): Add note about C++ problems.
23560         Explained by Bruno Haible <bruno@clisp.org>.
23561
23562 2008-10-23  Bruno Haible  <bruno@clisp.org>
23563
23564         Define a dummy SA_NODEFER macro on Interix.
23565         * lib/signal.in.h (SA_NODEFER): Define fallback.
23566         Reported by Aleksey Cheusov <cheusov@tut.by> via
23567         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
23568
23569 2008-10-23  Bruno Haible  <bruno@clisp.org>
23570
23571         * modules/freadahead (License): Change to LGPLv2+.
23572         Suggested by Simon Josefsson.
23573
23574 2008-10-23  Jim Meyering  <meyering@redhat.com>
23575
23576         random_r: new module
23577         * modules/random_r: New file.
23578         * m4/random_r.m4: New file.
23579         * lib/random_r.c: New file, from glibc.
23580         * modules/random_r-tests: New file.
23581         * tests/test-random_r.c: New file.
23582         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
23583          Declare.
23584         (RAND_MAX): Define.
23585         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
23586         * modules/stdlib: Substitute them, too.
23587         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
23588         * doc/glibc-functions/initstate_r.texi: Mention the new module.
23589         * doc/glibc-functions/random_r.texi: Likewise.
23590         * doc/glibc-functions/setstate_r.texi: Likewise.
23591         * doc/glibc-functions/srandom_r.texi: Likewise.
23592         * config/srclist.txt: Mention it.
23593
23594 2008-10-23  David Lutterkort  <lutter@redhat.com>
23595
23596         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
23597         link requirement
23598
23599 2008-10-23  Jim Meyering  <meyering@redhat.com>
23600
23601         selinux-h: mark parameters of stub functions as intentionally unused
23602         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
23603         * lib/se-context.in.h: Likewise.
23604
23605 2008-10-22  Simon Josefsson  <simon@josefsson.org>
23606
23607         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
23608
23609 2008-10-22  Simon Josefsson  <simon@josefsson.org>
23610
23611         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
23612
23613 2008-10-22  Eric Blake  <ebb9@byu.net>
23614
23615         glthread/thread: avoid compiler warning
23616         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
23617         Add unreachable abort to silence compiler.
23618
23619 2008-10-22  Eric Blake  <ebb9@byu.net>
23620
23621         netdb: also supply struct addrinfo for cygwin 1.5.x
23622         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
23623         older cygwin.
23624         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
23625         cygwin.
23626         * doc/posix-headers/netdb.texi (netdb.h): Document this.
23627
23628 2008-10-22  Bruno Haible  <bruno@clisp.org>
23629
23630         * users.txt: Update entry about pspp.
23631
23632 2008-10-21  Bruno Haible  <bruno@clisp.org>
23633
23634         Simplification.
23635         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
23636         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
23637
23638         Simplification.
23639         * lib/ioctl.c (ioctl): Don't undefine.
23640         * lib/socket.c (socket): Don't undefine.
23641
23642         Remove unused module indicator macros.
23643         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
23644         GNULIB_$1 as a C macro.
23645
23646         * doc/posix-functions/close.texi: Undo last change.
23647         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
23648         Windows platforms.
23649
23650 2008-10-21  Bruno Haible  <bruno@clisp.org>
23651
23652         Add gethostname() declaration to <unistd.h>.
23653         * lib/unistd.in.h (gethostname): New declaration.
23654         * lib/gethostname.c: Include <unistd.h>.
23655         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
23656         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
23657         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
23658         and HAVE_GETHOSTNAME.
23659         * modules/gethostname (Depends-on): Add unistd.
23660         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23661         (Include): Specify <unistd.h>.
23662         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
23663         HAVE_GETHOSTNAME.
23664         * tests/test-gethostname.c: Include <unistd.h> first.
23665
23666 2008-10-21  Bruno Haible  <bruno@clisp.org>
23667
23668         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
23669         * modules/select-tests (Depends-on): Likewise.
23670         Reported by Simon Josefsson.
23671
23672 2008-10-21  Simon Josefsson  <simon@josefsson.org>
23673
23674         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
23675         * lib/accept.c: New file, based on winsock.c.
23676         * lib/bind.c: New file, based on winsock.c.
23677         * lib/connect.c: New file, based on winsock.c.
23678         * lib/getpeername.c: New file, based on winsock.c.
23679         * lib/getsockname.c: New file, based on winsock.c.
23680         * lib/getsockopt.c: New file, based on winsock.c.
23681         * lib/ioctl.c: New file, based on winsock.c.
23682         * lib/listen.c: New file, based on winsock.c.
23683         * lib/recv.c: New file, based on winsock.c.
23684         * lib/recvfrom.c: New file, based on winsock.c.
23685         * lib/send.c: New file, based on winsock.c.
23686         * lib/sendto.c: New file, based on winsock.c.
23687         * lib/setsockopt.c: New file, based on winsock.c.
23688         * lib/shutdown.c: New file, based on winsock.c.
23689         * lib/socket.c: New file, based on winsock.c.
23690         * lib/w32sock.h: New file, based on winsock.c.
23691         * lib/winsock.c: Remove file.
23692         * modules/accept: Likewise.
23693         * modules/bind: Likewise.
23694         * modules/connect: Likewise.
23695         * modules/getpeername: Likewise.
23696         * modules/getsockname: Likewise.
23697         * modules/getsockopt: Likewise.
23698         * modules/ioctl: Likewise.
23699         * modules/listen: Likewise.
23700         * modules/recv: Likewise.
23701         * modules/recvfrom: Likewise.
23702         * modules/send: Likewise.
23703         * modules/sendto: Likewise.
23704         * modules/setsockopt: Likewise.
23705         * modules/shutdown: Likewise.
23706         * modules/socket: Use socket.c instead of winsock.c.
23707         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
23708         * doc/posix-functions/accept.texi: Doc fix.
23709         * doc/posix-functions/bind.texi: Doc fix.
23710         * doc/posix-functions/close.texi: Doc fix.
23711         * doc/posix-functions/connect.texi: Doc fix.
23712         * doc/posix-functions/getpeername.texi: Doc fix.
23713         * doc/posix-functions/getsockname.texi: Doc fix.
23714         * doc/posix-functions/getsockopt.texi: Doc fix.
23715         * doc/posix-functions/ioctl.texi: Doc fix.
23716         * doc/posix-functions/listen.texi: Doc fix.
23717         * doc/posix-functions/recv.texi: Doc fix.
23718         * doc/posix-functions/recvfrom.texi: Doc fix.
23719         * doc/posix-functions/send.texi: Doc fix.
23720         * doc/posix-functions/sendto.texi: Doc fix.
23721         * doc/posix-functions/setsockopt.texi: Doc fix.
23722         * doc/posix-functions/shutdown.texi: Doc fix.
23723         * doc/posix-functions/socket.texi: Doc fix.
23724
23725 2008-10-20  Bruno Haible  <bruno@clisp.org>
23726
23727         Take into account the role of SIGABRT_COMPAT on Windows 2008.
23728         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
23729         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
23730         as an alias for SIGABRT.
23731         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
23732         (sigaction): Map it to SIGABRT.
23733         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
23734
23735 2008-10-20  Bruno Haible  <bruno@clisp.org>
23736
23737         * lib/fts.c: Don't include lstat.h.
23738         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
23739
23740         Move the lstat() declaration to <sys/stat.h>.
23741         * lib/lstat.h: Remove file.
23742         * lib/sys_stat.in.h: Add special invocation convention.
23743         (lstat): New declaration.
23744         * lib/lstat.c (orig_lstat): New function.
23745         (rpl_lstat): Use orig_lstat instead of lstat.
23746         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
23747         AC_C_INLINE. Set REPLACE_LSTAT.
23748         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
23749         and REPLACE_LSTAT.
23750         * modules/lstat (Files): Remove lib/lstat.h.
23751         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
23752         (Include): Specify <sys/stat.h> instead of lstat.h.
23753         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
23754         REPLACE_LSTAT.
23755         * NEWS: Mention the change.
23756
23757 2008-10-20  Bruno Haible  <bruno@clisp.org>
23758
23759         * modules/posix_spawn-tests: New file.
23760         * tests/test-posix_spawn3.c: New file.
23761
23762 2008-10-20  Bruno Haible  <bruno@clisp.org>
23763
23764         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
23765         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
23766         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
23767         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
23768         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
23769
23770 2008-10-20  Bruno Haible  <bruno@clisp.org>
23771
23772         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
23773         of posix_spawn on AIX 5.3.
23774
23775 2008-10-20  Bruno Haible  <bruno@clisp.org>
23776
23777         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
23778
23779 2008-10-20  Bruno Haible  <bruno@clisp.org>
23780
23781         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
23782         of AC_LANG_PROGRAM.
23783
23784 2008-10-20  Simon Josefsson  <simon@josefsson.org>
23785
23786         * lib/netdb.in.h: Don't define GNU specific constants until they
23787         are supported or needed.  Reported by Bruno Haible
23788         <bruno@clisp.org>.
23789
23790 2008-10-20  Simon Josefsson  <simon@josefsson.org>
23791
23792         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
23793
23794 2008-10-20  Simon Josefsson  <simon@josefsson.org>
23795
23796         * lib/getaddrinfo.h: Remove file.
23797         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
23798         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
23799         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
23800         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
23801         * modules/netdb: Substitute GNULIB_GETADDRINFO.
23802         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
23803         * tests/test-getaddrinfo.c: Likewise.
23804         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
23805         * NEWS: Mention change.
23806
23807 2008-10-19  Bruno Haible  <bruno@clisp.org>
23808
23809         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
23810
23811 2008-10-19  Bruno Haible  <bruno@clisp.org>
23812
23813         * lib/wait-process.c: Include simply <sys/wait.h>.
23814         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
23815         WIFSTOPPED): Remove fallback definitions.
23816         * modules/wait-process (Depends-on): Add sys_wait.
23817
23818         New module 'sys_wait'.
23819         * modules/sys_wait: New file.
23820         * lib/sys_wait.in.h: New file, partially copied from
23821         lib/wait-process.c.
23822         * m4/sys_wait_h.m4: New file.
23823         * doc/posix-headers/sys_wait.texi: Mention the new module.
23824
23825 2008-10-19  Bruno Haible  <bruno@clisp.org>
23826
23827         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
23828
23829 2008-10-19  Bruno Haible  <bruno@clisp.org>
23830
23831         Assume that waitpid() fills an 'int' status, not a 'union wait'.
23832         * lib/wait-process.c (WAIT_T): Remove type.
23833         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
23834         (wait_subprocess): Update.
23835
23836 2008-10-19  Bruno Haible  <bruno@clisp.org>
23837
23838         New module 'atoll'.
23839         * modules/atoll: New file.
23840         * lib/stdlib.in.h (atoll): New declaration.
23841         * lib/atoll.c: New file, from glibc with modifications.
23842         * m4/atoll.m4: New file.
23843         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
23844         HAVE_ATOLL.
23845         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
23846         * doc/posix-functions/atoll.texi: Mention the new module.
23847
23848 2008-10-19  Bruno Haible  <bruno@clisp.org>
23849
23850         Add strtoull() declaration to <stdlib.h>.
23851         * lib/stdlib.in.h (strtoull): New declaration.
23852         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
23853         Set HAVE_STRTOULL.
23854         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
23855         HAVE_STRTOULL.
23856         * modules/strtoull (Depends-on): Add stdlib.
23857         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
23858         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
23859         HAVE_STRTOULL.
23860
23861 2008-10-19  Bruno Haible  <bruno@clisp.org>
23862
23863         Add strtoll() declaration to <stdlib.h>.
23864         * lib/stdlib.in.h (strtoll): New declaration.
23865         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
23866         Set HAVE_STRTOLL.
23867         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
23868         HAVE_STRTOLL.
23869         * modules/strtoll (Depends-on): Add stdlib.
23870         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
23871         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
23872
23873 2008-10-19  Bruno Haible  <bruno@clisp.org>
23874
23875         * modules/bcopy (Depends-on): Add strings.
23876         (Include): Specify <strings.h>.
23877
23878 2008-10-19  Bruno Haible  <bruno@clisp.org>
23879
23880         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
23881
23882 2008-10-19  Bruno Haible  <bruno@clisp.org>
23883
23884         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
23885         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
23886         mingw.
23887
23888 2008-10-19  Bruno Haible  <bruno@clisp.org>
23889
23890         * lib/atanl.c: Don't include isnanl.h.
23891         * lib/cosl.c: Likewise.
23892         * lib/ldexpl.c: Likewise.
23893         * lib/logl.c: Likewise.
23894         * lib/sinl.c: Likewise.
23895         * lib/sqrtl.c: Likewise.
23896         * lib/tanl.c: Likewise.
23897
23898         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
23899         * lib/isnanf.h: Remove file.
23900         * lib/isnand.h: Remove file.
23901         * lib/isnanl.h: Remove file.
23902         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
23903         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
23904         macros.
23905         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
23906         HAVE_ISNANF, don't define it as a C macro.
23907         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
23908         HAVE_ISNAND, don't define it as a C macro.
23909         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
23910         HAVE_ISNANL, don't define it as a C macro.
23911         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
23912         HAVE_ISNAN[FDL].
23913         * modules/isnanf (Files): Remove lib/isnanf.h.
23914         (Depends-on): Add math.
23915         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
23916         (Include): Specify <math.h> instead of isnanf.h.
23917         * modules/isnand (Files): Remove lib/isnand.h.
23918         (Depends-on): Add math.
23919         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
23920         (Include): Specify <math.h> instead of isnand.h.
23921         * modules/isnanl (Files): Remove lib/isnanl.h.
23922         (Depends-on): Add math.
23923         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
23924         (Include): Specify <math.h> instead of isnanl.h.
23925         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
23926         HAVE_ISNAN[FDL].
23927         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
23928         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
23929         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
23930         * NEWS: Mention the change.
23931
23932 2008-10-18  Bruno Haible  <bruno@clisp.org>
23933
23934         Add getusershell(), setusershell(), endusershell() declarations to
23935         <unistd.h>.
23936         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
23937         declarations.
23938         * lib/getusershell.c: Include unistd.h.
23939         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
23940         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
23941         HAVE_GETUSERSHELL.
23942         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
23943         and HAVE_GETUSERSHELL.
23944         * modules/getusershell (Depends-on): Add unistd, extensions.
23945         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23946         (Include): Specify <unistd.h>.
23947         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
23948         HAVE_GETUSERSHELL.
23949
23950 2008-10-18  Bruno Haible  <bruno@clisp.org>
23951
23952         Add a getloadavg() declaration to <stdlib.h>.
23953         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
23954         getloadavg declaration.
23955         (getloadavg): New declaration.
23956         * lib/getloadavg.c: Include <stdlib.h> first.
23957         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
23958         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
23959         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
23960         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
23961         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
23962         * modules/getloadavg (Depends-on): Add stdlib, extensions.
23963         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
23964         (Include): Specify <stdlib.h>.
23965         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
23966         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
23967
23968 2008-10-18  Bruno Haible  <bruno@clisp.org>
23969
23970         * lib/dirchownmod.c: Don't include lchmod.h.
23971
23972         Move the lchmod() declaration to <sys/stat.h>.
23973         * lib/lchmod.h: Remove file.
23974         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
23975         (lchmod): New declaration, moved here from lib/lchown.h.
23976         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
23977         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
23978         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
23979         and HAVE_LCHMOD.
23980         * modules/lchmod (Files): Remove lib/lchmod.h.
23981         (Depends-on): Add sys_stat, extensions.
23982         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
23983         (Include): Specify <sys/stat.h> instead of lchmod.h.
23984         * modules/sys_stat (Depends-on): Add link-warning.
23985         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
23986         definition of GL_LINK_WARNING.
23987         * NEWS: Mention the change.
23988
23989 2008-10-18  Bruno Haible  <bruno@clisp.org>
23990
23991         * lib/fchdir.c: Don't include dirfd.h.
23992         * lib/fts.c: Likewise.
23993         * lib/getcwd.c: Likewise.
23994         * lib/glob.c: Likewise.
23995
23996         Move the dirfd() declaration to <dirent.h>.
23997         * lib/dirfd.h: Remove file.
23998         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
23999         (dirfd): New declaration.
24000         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
24001         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
24002         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
24003         HAVE_DECL_DIRFD.
24004         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
24005         HAVE_DECL_DIRFD.
24006         * modules/dirfd (Files): Remove lib/dirfd.h.
24007         (Depends-on): Add dirent, extensions.
24008         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
24009         (Include): Specify <dirent.h> instead of dirfd.h.
24010         * modules/dirent (Depends-on): Add link-warning.
24011         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
24012         definition of GL_LINK_WARNING.
24013         * NEWS: Mention the change.
24014
24015 2008-10-18  Bruno Haible  <bruno@clisp.org>
24016
24017         Move the euidaccess() declaration to <unistd.h>.
24018         * lib/euidaccess.h: Remove file.
24019         * lib/unistd.in.h (euidaccess): New declaration.
24020         * lib/euidaccess.c: Don't include euidaccess.h.
24021         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
24022         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
24023         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
24024         and HAVE_EUIDACCESS.
24025         * modules/euidaccess (Files): Remove lib/euidaccess.h.
24026         (Depends-on): Add unistd.
24027         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
24028         (Include): Specify <unistd.h> instead of euidaccess.h.
24029         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
24030         HAVE_EUIDACCESS.
24031         * NEWS: Mention the change.
24032
24033 2008-10-18  Bruno Haible  <bruno@clisp.org>
24034
24035         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
24036
24037         Move the getdomainname() declaration to <unistd.h>.
24038         * lib/getdomainname.h: Remove file.
24039         * lib/unistd.in.h (getdomainname): New declaration.
24040         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
24041         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
24042         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
24043         HAVE_GETDOMAINNAME.
24044         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24045         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
24046         * modules/getdomainname (Files): Remove lib/getdomainname.h.
24047         (Depends-on): Add unistd, extensions.
24048         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
24049         (Includes): Specify <unistd.h> instead of getdomainname.h.
24050         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
24051         HAVE_GETDOMAINNAME.
24052         * NEWS: Mention the change.
24053
24054 2008-10-18  Bruno Haible  <bruno@clisp.org>
24055
24056         * modules/dirent: New file.
24057         * m4/dirent_h.m4: New file.
24058         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
24059         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
24060         * modules/fchdir (Files): Remove lib/dirent.in.h.
24061         (Depends-on): Add dirent.
24062         (Makefile.am): Move rules to modules/dirent.
24063         * doc/posix-headers/dirent.texi: Mention the new module.
24064
24065 2008-10-18  Bruno Haible  <bruno@clisp.org>
24066
24067         Avoid -Wunused-parameter warnings in public gnulib header files.
24068         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
24069         macro.
24070         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
24071
24072 2008-10-18  Bruno Haible  <bruno@clisp.org>
24073
24074         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
24075         * doc/glibc-functions/error.texi: Mention the module 'error'.
24076         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
24077         * doc/glibc-functions/getdomainname.texi: Mention the module
24078         'getdomainname'.
24079         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
24080         * doc/glibc-functions/getpagesize.texi: Mention the module
24081         'getpagesize'.
24082         * doc/glibc-functions/getusershell.texi: Mention the module
24083         'getusershell'.
24084         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
24085         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
24086         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
24087         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
24088         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
24089         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
24090         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
24091         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
24092         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
24093         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
24094         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
24095         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
24096         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
24097         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
24098
24099 2008-10-17  Bruno Haible  <bruno@clisp.org>
24100
24101         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
24102         HP-UX and IRIX, use -0.0L.
24103         * tests/test-ceill.c (minus_zero): Likewise.
24104         * tests/test-floorl.c (minus_zero): Likewise.
24105         * tests/test-frexpl.c (minus_zero): Likewise.
24106         * tests/test-isnan.c (minus_zerol): Likewise.
24107         * tests/test-isnanl.h (minus_zero): Likewise.
24108         * tests/test-ldexpl.c (minus_zero): Likewise.
24109         * tests/test-roundl.c (minus_zero): Likewise.
24110         * tests/test-signbit.c (minus_zerol): Likewise.
24111         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
24112         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
24113         * tests/test-truncl.c (minus_zero): Likewise.
24114         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
24115         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
24116         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
24117         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
24118
24119 2008-10-17  Bruno Haible  <bruno@clisp.org>
24120
24121         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
24122         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
24123         that it gets activated only for gcc >= 3.0.
24124         * lib/dirent.in.h: Likewise.
24125         * lib/errno.in.h: Likewise.
24126         * lib/fcntl.in.h: Likewise.
24127         * lib/float.in.h: Likewise.
24128         * lib/iconv.in.h: Likewise.
24129         * lib/inttypes.in.h: Likewise.
24130         * lib/locale.in.h: Likewise.
24131         * lib/math.in.h: Likewise.
24132         * lib/netdb.in.h: Likewise.
24133         * lib/netinet_in.in.h: Likewise.
24134         * lib/search.in.h: Likewise.
24135         * lib/signal.in.h: Likewise.
24136         * lib/spawn.in.h: Likewise.
24137         * lib/stdarg.in.h: Likewise.
24138         * lib/stdint.in.h: Likewise.
24139         * lib/stdio.in.h: Likewise.
24140         * lib/stdlib.in.h: Likewise.
24141         * lib/string.in.h: Likewise.
24142         * lib/strings.in.h: Likewise.
24143         * lib/sys_file.in.h: Likewise.
24144         * lib/sys_ioctl.in.h: Likewise.
24145         * lib/sys_select.in.h: Likewise.
24146         * lib/sys_socket.in.h: Likewise.
24147         * lib/sys_stat.in.h: Likewise.
24148         * lib/sys_time.in.h: Likewise.
24149         * lib/sysexits.in.h: Likewise.
24150         * lib/time.in.h: Likewise.
24151         * lib/unistd.in.h: Likewise.
24152         * lib/wchar.in.h: Likewise.
24153         * lib/wctype.in.h: Likewise.
24154         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
24155
24156 2008-10-17  Jim Meyering  <meyering@redhat.com>
24157
24158         ignore-value: don't depend on inline module
24159         * modules/ignore-value (Depends-on): Remove 'inline'.
24160         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
24161         Suggestion from Bruno Haible.
24162
24163 2008-10-17  Bruno Haible  <bruno@clisp.org>
24164
24165         New implementation of condition variables for Win32.
24166         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
24167         (gl_linked_waitqueue_t): New type.
24168         (gl_cond_t): Use it.
24169         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
24170         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
24171         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
24172         (glthread_cond_init_func, glthread_cond_wait_func,
24173         glthread_cond_timedwait_func, glthread_cond_signal_func,
24174         glthread_cond_broadcast_func, glthread_cond_destroy_func):
24175         Reimplemented on the basis of gl_linked_waitqueue_t.
24176         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
24177         gl_waitqueue_t.
24178         (gl_rwlock_t): Update.
24179         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
24180
24181 2008-10-17  Simon Josefsson  <simon@josefsson.org>
24182
24183         * modules/recvfrom (Depends-on): Add dependency on getpeername.
24184         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
24185
24186 2008-10-17  Jim Meyering  <meyering@redhat.com>
24187
24188         ignore-value: new module
24189         * modules/ignore-value: New file.
24190         * lib/ignore-value.h: New file.
24191         * MODULES.html.sh (Compiler warning management): New section,
24192         just for this module.  More to come.
24193
24194 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
24195
24196         open-safer.c: avoid 'signed and unsigned in conditional...' warning
24197         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
24198         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
24199
24200 2008-10-16  Jim Meyering  <meyering@redhat.com>
24201
24202         openat-die.c: avoid 'no previous prototype' warning
24203         * lib/openat-die.c: Include "openat.h".
24204         Reported by Reuben Thomas <rrt@sc3d.org>.
24205
24206 2008-10-16  Simon Josefsson  <simon@josefsson.org>
24207
24208         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
24209         * lib/netdb.in.h: Fix typo.
24210         Reported by Bruno Haible  <bruno@clisp.org>
24211
24212         * lib/netdb.in.h: Include sys/socket.h for platforms without
24213         netdb.h, to get structures like hostent on MinGW.
24214         * modules/netdb (Depends-on): Add sys_socket.
24215
24216 2008-10-15  Simon Josefsson  <simon@josefsson.org>
24217
24218         * modules/netdb, modules/netdb-tests: New file.
24219         * m4/netdb_h.m4: New file.
24220         * lib/netdb.in.h: Add, currently just an empty file pending
24221         definitions.
24222         * tests/test-netdb.c: New file.
24223         * doc/posix-headers/netdb.texi: Mention that we replace it if
24224         needed.
24225         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
24226         netdb.
24227
24228 2008-10-15  Simon Josefsson  <simon@josefsson.org>
24229
24230         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
24231         with code.
24232
24233 2008-10-13  Bruno Haible  <bruno@clisp.org>
24234
24235         * lib/glthread/cond.c (glthread_cond_wait_func,
24236         glthread_cond_timedwait_func): Add a comment.
24237
24238 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
24239
24240         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
24241         * tests/test-select.c: Likewise,
24242
24243 2008-10-13  Bruno Haible  <bruno@clisp.org>
24244
24245         * lib/glthread/cond.c (glthread_cond_wait_func,
24246         glthread_cond_timedwait_func): Fix variable name.
24247         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
24248
24249 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
24250
24251         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
24252         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
24253         struct sockaddr.sa_len.
24254         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
24255
24256 2008-10-13  Simon Josefsson  <simon@josefsson.org>
24257
24258         * build-aux/pmccabe2html: Add css and css_url parameters.
24259
24260 2008-10-12  Bruno Haible  <bruno@clisp.org>
24261
24262         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
24263         calling aclx_get.
24264         Reported by Rainer Tammer <tammer@tammer.net>.
24265
24266 2008-10-12  Bruno Haible  <bruno@clisp.org>
24267
24268         Use msvcrt aware primitives for creation/termination of Win32 threads.
24269         * lib/glthread/thread.c: Include <process.h>.
24270         (glthread_create_func): Use _beginthreadex instead of CreateThread.
24271         (wrapper_func): Update signature.
24272         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
24273
24274 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
24275             Bruno Haible  <bruno@clisp.org>
24276
24277         Provide a Win32 implementation of the 'cond' module.
24278         * lib/glthread/cond.h [USE_WIN32]: New implementation.
24279         * lib/glthread/cond.c (glthread_cond_init_func,
24280         glthread_cond_wait_func, glthread_cond_timedwait_func,
24281         glthread_cond_signal_func, glthread_cond_broadcast_func,
24282         glthread_cond_destroy_func) [USE_WIN32]: New functions.
24283         * modules/cond (Dependencies): Add gettimeofday.
24284
24285 2008-10-11  Bruno Haible  <bruno@clisp.org>
24286
24287         Make sleep work on older versions of mingw.
24288         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
24289         only whether it exists.
24290         * doc/posix-functions/sleep.texi: Mention the problem with older
24291         versions of mingw.
24292
24293 2008-10-11  Bruno Haible  <bruno@clisp.org>
24294
24295         New module 'shutdown'.
24296         * modules/shutdown: New file.
24297         * lib/sys_socket.in.h (shutdown): New declaration.
24298         * lib/winsock.c (shutdown): New function.
24299         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
24300         GNULIB_SHUTDOWN.
24301         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
24302         * doc/posix-functions/shutdown.texi: Document the new module.
24303
24304 2008-10-11  Jim Meyering  <meyering@redhat.com>
24305
24306         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
24307
24308 2008-10-11  Bruno Haible  <bruno@clisp.org>
24309
24310         New module 'fclose'.
24311         * modules/fclose: New file.
24312         * lib/stdio.in.h (fclose): New declaration.
24313         * lib/fclose.c: New file.
24314         * m4/fclose.m4: New file.
24315         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
24316         REPLACE_FCLOSE.
24317         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
24318         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
24319         REPLACE_FCLOSE.
24320         * modules/close (Depends-on): fclose.
24321         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
24322
24323 2008-10-11  Bruno Haible  <bruno@clisp.org>
24324
24325         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
24326         set errno and don't call _close.
24327
24328 2008-10-10  Bruno Haible  <bruno@clisp.org>
24329
24330         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
24331         ACL, not afterwards. Fixes test failure on Cygwin.
24332
24333 2008-10-09  Ben Pfaff  <blp@gnu.org>
24334
24335         * build-aux/announce-gen: Fix gnulib version related part of usage
24336         message.  Die with a useful error message if no tarballs are
24337         found.
24338
24339 2008-10-10  Jim Meyering  <meyering@redhat.com>
24340
24341         bootstrap: use git's --depth=N option only if it's supported
24342         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
24343         recognize the --depth option.  Reported by Pádraig Brady.
24344
24345 2008-10-09  Bruno Haible  <bruno@clisp.org>
24346
24347         New module 'ioctl'.
24348         * modules/ioctl: New file.
24349         * lib/sys_socket.in.h (ioctl): Remove declaration.
24350         * lib/winsock.c: Include <sys/ioctl.h>.
24351         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
24352         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
24353         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
24354         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
24355         * doc/posix-functions/ioctl.texi: Mention the new module.
24356
24357 2008-10-09  Bruno Haible  <bruno@clisp.org>
24358
24359         New module 'sys_ioctl'.
24360         * lib/sys_ioctl.in.h: New file.
24361         * m4/sys_ioctl_h.m4: New file.
24362         * modules/sys_ioctl: New file.
24363         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
24364
24365 2008-10-09  Bruno Haible  <bruno@clisp.org>
24366
24367         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
24368         * lib/winsock.c: Include <stdarg.h>.
24369         (rpl_ioctl): Change to second argument 'int' and then varargs.
24370
24371 2008-10-09  Bruno Haible  <bruno@clisp.org>
24372
24373         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
24374         when the sys_socket module is present and the system has <winsock2.h>.
24375
24376 2008-10-09  Bruno Haible  <bruno@clisp.org>
24377
24378         * doc/posix-functions/close.texi: Mention module 'close' instead of
24379         module 'sys_socket'.
24380
24381 2008-10-09  Bruno Haible  <bruno@clisp.org>
24382
24383         * doc/glibc-headers/sys_ioctl.texi: New file.
24384         * doc/gnulib.texi: Include it.
24385
24386 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
24387             Bruno Haible  <bruno@clisp.org>
24388
24389         Combine the two replacements of 'close'.
24390         * lib/sys_socket.in.h (close): Define to a reminder to include
24391         <unistd.h>.
24392         (_gl_close_fd_maybe_socket): New declaration.
24393         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
24394         * lib/winsock.c (close): Remove undefinition.
24395         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
24396         needed for the gnulib module 'close'.
24397         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
24398         define to an error symbol or to a warning, if suitable.
24399         * lib/close.c: Include <sys/socket.h>.
24400         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
24401         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
24402         UNISTD_H_HAVE_WINSOCK2_H.
24403         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
24404         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24405         UNISTD_H_HAVE_WINSOCK2_H.
24406         * modules/sys_socket (Files): Add m4/unistd_h.m4.
24407         (configure.ac): Set a module indicator.
24408         (Makefile.am): Substitute GNULIB_CLOSE.
24409         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
24410         * modules/poll-tests (Depends-on): Add close.
24411         * modules/select-tests (Depends-on): Likewise.
24412
24413 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
24414             Bruno Haible  <bruno@clisp.org>
24415
24416         New module 'close'.
24417         * modules/close: New file.
24418         * lib/unistd.in.h (close): Move declaration out of the
24419         FCHDIR_REPLACEMENT scope.
24420         (_gl_unregister_fd): New declaration.
24421         * lib/close.c: New file.
24422         * lib/fchdir.c (rpl_close): Remove function.
24423         * m4/close.m4: New file.
24424         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
24425         close.
24426         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
24427         REPLACE_CLOSE.
24428         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
24429         REPLACE_CLOSE.
24430         * modules/fchdir (Depends-on): Add close.
24431
24432 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
24433             Bruno Haible  <bruno@clisp.org>
24434
24435         * lib/fcntl.in.h (open): Simplify conditionals.
24436         (_gl_register_fd): New declaration.
24437         * lib/fchdir.c (rpl_open): Remove function.
24438         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
24439         also.
24440         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
24441         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
24442         open.
24443
24444 2008-10-09  Jim Meyering  <meyering@redhat.com>
24445
24446         GNUmakefile: use the more name-space-friendly "_version"
24447         * top/GNUmakefile (_dummy): Update.
24448         (_version): Rename from "version".
24449
24450 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
24451             Bruno Haible  <bruno@clisp.org>
24452
24453         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
24454         rpl_close.
24455         (_gl_register_fd): New function, extracted from rpl_open.
24456         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
24457         (rpl_open, rpl_opendir): Use _gl_register_fd.
24458
24459 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
24460
24461         Fix organization of 'open' replacement.
24462         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
24463         (gl_FUNC_OPEN): Use it.
24464         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
24465
24466 2008-10-08  Bruno Haible  <bruno@clisp.org>
24467
24468         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
24469
24470 2008-10-08  Simon Josefsson  <simon@josefsson.org>
24471
24472         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
24473         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
24474         listen).
24475
24476 2008-10-08  Eric Blake  <ebb9@byu.net>
24477
24478         GNUmakefile: add 'make version' target
24479         * top/GNUmakefile (_curr-ver): Split version update rules...
24480         (version): ...into a target.
24481
24482 2008-10-07  Bruno Haible  <bruno@clisp.org>
24483
24484         Use a more portable replacement expression for -0.0L.
24485         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
24486         instead of -0.0L. Fix m4 quotation.
24487
24488         * tests/test-signbit.c: Include <float.h>.
24489         (minus_zero): New variable.
24490         (test_signbitl): Use minus_zero instead of -zero.
24491         * modules/signbit-tests (Depends-on): Add float.
24492
24493         * tests/test-ceill.c: Include <float.h>.
24494         (zero): Remove variable.
24495         (minus_zero): New variable.
24496         (main): Use minus_zero instead of -zero.
24497         * modules/ceill-tests (Depends-on): Add float.
24498
24499         * tests/test-floorl.c: Include <float.h>.
24500         (zero): Remove variable.
24501         (minus_zero): New variable.
24502         (main): Use minus_zero instead of -zero.
24503         * modules/floorl-tests (Depends-on): Add float.
24504
24505         * tests/test-roundl.c: Include <float.h>.
24506         (zero): Remove variable.
24507         (minus_zero): New variable.
24508         (main): Use minus_zero instead of -zero.
24509         * modules/roundl-tests (Depends-on): Add float.
24510
24511         * tests/test-truncl.c: Include <float.h>.
24512         (zero): Remove variable.
24513         (minus_zero): New variable.
24514         (main): Use minus_zero instead of -zero.
24515         * modules/truncl-tests (Depends-on): Add float.
24516
24517         * tests/test-frexpl.c (zero): Remove variable.
24518         (minus_zero): New variable.
24519         (main): Use minus_zero instead of -zero.
24520         * modules/frexpl-tests (Depends-on): Add float.
24521
24522         * tests/test-isnan.c (zerol): Remove variable.
24523         (minus_zerol): New variable.
24524         (test_long_double): Use minus_zerol instead of -zerol.
24525         * modules/isnan-tests (Depends-on): Add float.
24526
24527         * tests/test-isnanl.h (zero): Remove variable.
24528         (minus_zero): New variable.
24529         (main): Use minus_zero instead of -zero.
24530         * modules/isnanl-nolibm-tests (Depends-on): Add float.
24531         * modules/isnanl-tests (Depends-on): Add float.
24532
24533         * tests/test-ldexpl.c (zero): Remove variable.
24534         (minus_zero): New variable.
24535         (main): Use minus_zero instead of -zero.
24536         * modules/ldexpl-tests (Depends-on): Add float.
24537
24538         * tests/test-snprintf-posix.h (zerol): Remove variable.
24539         (minus_zerol): New variable.
24540         (test_function): Use minus_zerol instead of -zerol.
24541         * modules/snprintf-posix-tests (Depends-on): Add float.
24542         * modules/vsnprintf-posix-tests (Depends-on): Add float.
24543
24544         * tests/test-sprintf-posix.h (zerol): Remove variable.
24545         (minus_zerol): New variable.
24546         (test_function): Use minus_zerol instead of -zerol.
24547         * modules/sprintf-posix-tests (Depends-on): Add float.
24548         * modules/vsprintf-posix-tests (Depends-on): Add float.
24549
24550         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
24551         (minus_zerol): New variable.
24552         (test_function): Use minus_zerol instead of -zerol.
24553         * modules/vasnprintf-posix-tests (Depends-on): Add float.
24554
24555         * tests/test-vasprintf-posix.c (zerol): Remove variable.
24556         (minus_zerol): New variable.
24557         (test_function): Use minus_zerol instead of -zerol.
24558         * modules/vasprintf-posix-tests (Depends-on): Add float.
24559
24560 2008-10-07  Simon Josefsson  <simon@josefsson.org>
24561
24562         * MODULES.html.sh (Support for building documentation): Mention
24563         pmccabe2html.  Sort entries.
24564
24565         Add pmccabe2html module, from gnupdf.
24566         * build-aux/pmccabe.css: New file.
24567         * build-aux/pmccabe2html: New file.
24568         * m4/pmccabe2html.m4: New file.
24569         * modules/pmccabe2html: New file.
24570
24571 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
24572
24573         flock: new module
24574         * MODULES.html.sh: Add to list of modules.
24575         * lib/flock.c: flock implementation for Windows and Unix systems
24576         which have fcntl.
24577         * doc/glibc-functions/flock.texi: Update documentation.
24578         * lib/sys_file.in.h: <sys/file.h> header file.
24579         * m4/flock.m4: M4 macros.
24580         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
24581         * modules/flock: flock module.
24582         * modules/flock-tests: flock tests module.
24583         * modules/sys_file: sys/file.h module.
24584         * tests/test-flock.c: test suite for flock.
24585
24586 2008-10-06  Jim Meyering  <meyering@redhat.com>
24587
24588         bootstrap: check for LT_INIT more portably still ;-)
24589         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
24590         Spotted by Bruno Haible.
24591
24592 2008-10-06  Eric Blake  <ebb9@byu.net>
24593
24594         test-signbit: avoid tripping Irix cc bug on -0.0L
24595         * tests/test-signbit.c (minus_zerol): Delete, and replace with
24596         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
24597         entire testsuite consistent and avoids an Irix 6.2 bug.
24598
24599 2008-10-05  Bruno Haible  <bruno@clisp.org>
24600             Jim Meyering  <jim@meyering.net>
24601
24602         Add an option for ignoring EPIPE during close_stdout.
24603         * lib/closeout.h: Include <stdbool.h>.
24604         (close_stdout_set_ignore_EPIPE): New declaration.
24605         * lib/closeout.c: Include <stdbool.h>.
24606         (ignore_EPIPE): New variable.
24607         (close_stdout_set_ignore_EPIPE): New function.
24608         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
24609         * lib/close-stream.c (close_stream): Mention the possible EPIPE
24610         failure.
24611         * modules/closeout (Depends-on): Add stdbool.
24612
24613 2008-10-05  Bruno Haible  <bruno@clisp.org>
24614
24615         * modules/accept: New file.
24616         * modules/bind: New file.
24617         * modules/connect: New file.
24618         * modules/getpeername: New file.
24619         * modules/getsockname: New file.
24620         * modules/getsockopt: New file.
24621         * modules/listen: New file.
24622         * modules/recv: New file.
24623         * modules/recvfrom: New file.
24624         * modules/send: New file.
24625         * modules/sendto: New file.
24626         * modules/setsockopt: New file.
24627         * modules/socket: New file.
24628         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
24629         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
24630         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
24631         the particular module is requested. Add a link warning when the
24632         particular module is not requested.
24633         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
24634         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
24635         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
24636         the particular module is requested.
24637         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
24638         gl_SYS_SOCKET_H_DEFAULTS): New macros.
24639         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
24640         * modules/sys_socket (Depends-on): Add link-warning.
24641         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
24642         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
24643         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
24644         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
24645         GL_LINK_WARNING.
24646         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
24647         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
24648         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
24649         * doc/posix-functions/getpeername.texi: Mention the new module
24650         'getpeername'.
24651         * doc/posix-functions/getsockname.texi: Mention the new module
24652         'getsockname'.
24653         * doc/posix-functions/getsockopt.texi: Mention the new module
24654         'getsockopt'.
24655         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
24656         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
24657         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
24658         * doc/posix-functions/send.texi: Mention the new module 'send'.
24659         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
24660         * doc/posix-functions/setsockopt.texi: Mention the new module
24661         'setsockopt'.
24662         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
24663         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
24664         listen, connect, accept.
24665         * modules/select-tests (Depends-on): Likewise.
24666
24667 2008-10-05  Bruno Haible  <bruno@clisp.org>
24668
24669         * lib/winsock.c (strerror): Remove unused #undef.
24670         (rpl_close): Remove unused local variable.
24671
24672         * modules/sys_socket (Depends-on); Add errno.
24673
24674 2008-10-05  Bruno Haible  <bruno@clisp.org>
24675
24676         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
24677         (select): Add a link warning when the 'select' module is not used.
24678         * modules/sys_select (Depends-on): Add link-warning.
24679         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
24680         Suggested by Paolo Bonzini.
24681
24682 2008-10-05  Jim Meyering  <meyering@redhat.com>
24683
24684         bootstrap: check for LT_INIT more portably
24685         * build-aux/bootstrap: Avoid using grep -E, since it's not
24686         portable enough.  Suggestion from Bruno Haible.
24687
24688 2008-10-05  Bruno Haible  <bruno@clisp.org>
24689
24690         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
24691         as being fixed by gnulib.
24692
24693 2008-10-05  Bruno Haible  <bruno@clisp.org>
24694
24695         * modules/select-tests: New file, mostly copied from
24696         modules/sys_select-tests.
24697         * tests/test-select.c: New file, mostly copied from
24698         tests/test-sys_select.c.
24699         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
24700         * modules/sys_select-tests (Depends-on): Remove all dependencies.
24701         (Makefile.am): Remove test_sys_select_LDADD.
24702
24703         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
24704         to an undefined symbol, for an error message.
24705         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
24706         (gl_SYS_SELECT_H_DEFAULTS): New macro.
24707         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
24708         winsock-select.c here.
24709         * modules/sys_select (Files): Remove lib/winsock-select.c.
24710         (Depends-on): Remove alloca.
24711         (Makefile.am): Substitute GNULIB_SELECT.
24712         * modules/select: New file.
24713         * doc/posix-functions/select.texi: Update.
24714
24715 2008-10-05  Bruno Haible  <bruno@clisp.org>
24716
24717         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
24718         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
24719         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
24720         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
24721         getdtablesize.
24722         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
24723         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
24724
24725 2008-10-05  Bruno Haible  <bruno@clisp.org>
24726
24727         * modules/getdtablesize-tests: New file.
24728         * tests/test-getdtablesize.c: New file.
24729
24730         New module 'getdtablesize'.
24731         * lib/unistd.in.h (getdtablesize): New declaration.
24732         * lib/getdtablesize.c: New file.
24733         * m4/getdtablesize.m4: New file.
24734         * modules/getdtablesize: New file.
24735         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24736         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
24737         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
24738         HAVE_GETDTABLESIZE.
24739         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
24740
24741 2008-10-05  Bruno Haible  <bruno@clisp.org>
24742
24743         * modules/sched (Makefile.am): Fix typo.
24744         Reported by Simon Josefsson.
24745
24746 2008-10-05  Jim Meyering  <meyering@redhat.com>
24747
24748         bootstrap: check for LT_INIT, too
24749         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
24750         are deprecated.  Suggestion from Ralf Wildenhues.
24751
24752 2008-10-05  Bruno Haible  <bruno@clisp.org>
24753
24754         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
24755         overriding them by ours.
24756         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
24757
24758 2008-10-05  Jim Meyering  <meyering@redhat.com>
24759
24760         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
24761         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
24762         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
24763
24764 2008-10-04  Bruno Haible  <bruno@clisp.org>
24765
24766         * modules/dup2 (License): Change to LGPLv2+.
24767         * modules/sleep (License): Likewise.
24768         * modules/perror (License): Likewise.
24769         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
24770         Blake.
24771         * modules/signal (License): Likewise.
24772         * modules/sigprocmask (License): Likewise.
24773         * modules/raise (License): Change to LGPLv2+, with approval by Jim
24774         Meyering.
24775
24776 2008-10-04  Bruno Haible  <bruno@clisp.org>
24777
24778         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
24779         Reported by Rainer Tammer <tammer@tammer.net>.
24780
24781 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
24782             Bruno Haible  <bruno@clisp.org>
24783
24784         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
24785         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
24786         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
24787
24788 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
24789
24790         filevercmp: new module
24791         * lib/filevercmp.h: New function filevercmp comparing version strings.
24792         * lib/filevercmp.c: Implementation of filevercmp function.
24793         * modules/filevercmp: Module metadata.
24794         * tests/test-filevercmp.c: Unit test for new module.
24795         * modules/filevercmp-tests: Unit test metadata.
24796         * MODULES.html.sh: Add filevercmp module.
24797
24798 2008-10-03  Bruno Haible  <bruno@clisp.org>
24799
24800         * lib/c-ctype.h: Add comment.
24801         Reported by Jim Meyering.
24802
24803 2008-10-02  Bruno Haible  <bruno@clisp.org>
24804
24805         * modules/posix_spawn-internal (Depends-on): Add 'open'.
24806
24807 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
24808
24809         * build-aux/bootstrap: Allow renaming bootstrap, and change the
24810         name of bootstrap.conf accordingly.
24811
24812 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
24813
24814         * build-aux/bootstrap: Install git-merge-changelog configuration
24815         items into .gitconfig if needed.
24816
24817 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
24818
24819         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
24820         git repository, and initialize/update it accordingly.
24821
24822 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
24823
24824         * modules/fsync-tests: New file.
24825         * tests/test-fsync.c: New file.
24826
24827         New module 'fsync'.
24828         * lib/fsync.c: New file.
24829         * m4/fsync.m4: New file.
24830         * modules/fsync: New file.
24831         * lib/unistd.in.h (fsync): New declaration.
24832         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
24833         GNULIB_FSYNC and HAVE_FSYNC.
24834         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
24835         * MODULES.html.sh (posix_functions): Add fsync.
24836         * doc/posix-functions/fsync.texi: Mention the new module.
24837
24838 2008-10-02  Jim Meyering  <meyering@redhat.com>
24839
24840         fts.c: sync with similar code from coreutils' remove.c
24841         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
24842         Guard also with "#if defined __linux__", since for now at least,
24843         this code is Linux-kernel-specific.
24844
24845 2008-10-02  Jim Meyering  <meyering@redhat.com>
24846
24847         fts: bug fixes
24848         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
24849         Include <sys/vfs.h>, not <sys/statfs.h>.
24850
24851         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
24852         Include <sys/vfs.h>, not <sys/statfs.h>.
24853
24854 2008-10-01  Bruno Haible  <bruno@clisp.org>
24855
24856         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
24857         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
24858         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
24859         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
24860         * doc/posix-functions/posix_spawnp.texi: Likewise.
24861         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
24862         whether posix_spawn actually works.
24863         * m4/pipe.m4 (gl_PIPE): Likewise.
24864         * modules/execute (Files): Add m4/posix_spawn.m4.
24865         * modules/pipe (Files): Add m4/posix_spawn.m4.
24866         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
24867
24868 2008-10-01  Jim Meyering  <meyering@redhat.com>
24869
24870         remove trailing spaces
24871         * NEWS: Likewise.
24872         * lib/poll.c (poll): Likewise.
24873         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
24874         * lib/winsock.c (rpl_close): Likewise.
24875         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
24876         * modules/yield: Likewise.
24877         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
24878         * tests/test-sys_select.c (connect_to_socket): Likewise.
24879
24880         fts.c: adjust a new interface to be more generally useful
24881         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
24882         (fts_build): Adjust caller.
24883
24884 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24885
24886         * modules/cond-tests: New file.
24887         * tests/test-cond.c: New file.
24888
24889 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24890             Bruno Haible  <bruno@clisp.org>
24891
24892         * modules/cond (Dependencies): Add errno, time.
24893         * lib/glthread/cond.h: Include <time.h>.
24894         (gl_cond_define, gl_cond_define_initialized): Use the same definition
24895         across platforms.
24896
24897 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24898             Bruno Haible  <bruno@clisp.org>
24899
24900         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
24901
24902 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24903             Bruno Haible  <bruno@clisp.org>
24904
24905         * modules/tls-tests (Depends-on): Add thread, yield.
24906         (configure.ac): Remove all checks.
24907         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
24908         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
24909         gl_thread_self): Remove definitions. Include glthread/thread.h and
24910         glthread/yield.h instead.
24911         (test_tls): Pass an additional NULL argument to gl_thread_join.
24912
24913 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24914             Bruno Haible  <bruno@clisp.org>
24915
24916         * modules/lock-tests (Depends-on): Add thread, yield.
24917         (configure.ac): Remove all checks.
24918         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
24919         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
24920         gl_thread_self): Remove definitions. Include glthread/thread.h and
24921         glthread/yield.h instead.
24922         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
24923         additional NULL argument to gl_thread_join.
24924
24925 2008-09-30  Bruno Haible  <bruno@clisp.org>
24926
24927         Fix the Win32 implementation of the 'thread' module.
24928         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
24929         pointer type.
24930         (gl_thread_self): Invoke gl_thread_self_func.
24931         (gl_thread_self_func): New declaration.
24932         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
24933         (do_init_self_key, init_self_key): New functions.
24934         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
24935         Remove some fields.
24936         (running_threads, running_lock): Remove variables.
24937         (get_current_thread_handle): New function.
24938         (gl_thread_self_func, wrapper_func, glthread_create_func,
24939         glthread_join_func, gl_thread_exit_func): Largely rewritten and
24940         simplified.
24941
24942 2008-09-30  Bruno Haible  <bruno@clisp.org>
24943
24944         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
24945         files.
24946
24947 2008-09-30  Jim Meyering  <meyering@redhat.com>
24948
24949         fts.m4: correct the test for statfs.f_type
24950         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
24951         when checking for statfs.f_type.
24952
24953 2008-09-15  Simon Josefsson  <simon@josefsson.org>
24954
24955         tests: avoid some compiler warnings
24956         * tests/test-memchr.c (main): Pass NULL indirectly.
24957         * tests/test-getdate.c (main): Remove unused variable 'ret'.
24958
24959 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
24960
24961         getdate.y: disallow countable dayshifts like "4 yesterday ago"
24962         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
24963         exactly specified dayshifts.
24964         (dayshift): New rule.
24965         (rel): Add dayshift.
24966         (relative_time_table) [tomorrow, yesterday, today, now]:
24967         Use tDAY_SHIFT in place of tDAY_UNIT.
24968         * tests/test-getdate.c: Add tests for now-disallowed countable
24969         dayshifts, e.g., "4 yesterday ago".
24970
24971 2008-09-29  Bruno Haible  <bruno@clisp.org>
24972
24973         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
24974         * tests/test-posix_spawn1.in.sh: Renamed from
24975         tests/test-posix_spawn.in.sh.
24976         * tests/test-posix_spawn2.c: New file.
24977         * tests/test-posix_spawn2.in.sh: New file.
24978         * modules/posix_spawnp-tests (Files): Update.
24979         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
24980
24981 2008-09-29  Bruno Haible  <bruno@clisp.org>
24982
24983         Propagate effects of putenv/setenv/unsetenv to child processes.
24984         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
24985         * lib/pipe.c (create_pipe): Likewise.
24986
24987 2008-09-29  Bruno Haible  <bruno@clisp.org>
24988
24989         Enable use of shell scripts as executables in mingw.
24990         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
24991         run the program as a shell script.
24992         * lib/pipe.c (create_pipe): Likewise.
24993         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
24994         resulting array.
24995
24996 2008-09-29  Eric Blake  <ebb9@byu.net>
24997
24998         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
24999
25000 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
25001
25002         * doc/posix-functions/accept.texi: Update mingw problems.
25003         * doc/posix-functions/bind.texi: Update mingw problems.
25004         * doc/posix-functions/close.texi: Update mingw problems.
25005         * doc/posix-functions/connect.texi: Update mingw problems.
25006         * doc/posix-functions/getpeername.texi: Update mingw problems.
25007         * doc/posix-functions/getsockname.texi: Update mingw problems.
25008         * doc/posix-functions/getsockopt.texi: Update mingw problems.
25009         * doc/posix-functions/ioctl.texi: Update mingw problems.
25010         * doc/posix-functions/listen.texi: Update mingw problems.
25011         * doc/posix-functions/recv.texi: Update mingw problems.
25012         * doc/posix-functions/recvfrom.texi: Update mingw problems.
25013         * doc/posix-functions/select.texi: Update mingw problems.
25014         * doc/posix-functions/send.texi: Update mingw problems.
25015         * doc/posix-functions/sendto.texi: Update mingw problems.
25016         * doc/posix-functions/setsockopt.texi: Update mingw problems.
25017         * doc/posix-functions/socket.texi: Update mingw problems.
25018
25019 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
25020             Bruno Haible  <bruno@clisp.org>
25021
25022         * lib/sys_select.in.h: Include sys/time.h.
25023         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
25024         * modules/sys_select: Depend on sys_time.
25025         * tests/test-sys_select.c: Test that sys/select.h defines struct
25026         timeval fully.
25027
25028 2008-09-29  Bruno Haible  <bruno@clisp.org>
25029
25030         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
25031         * lib/sys_select.in.h: Likewise.
25032
25033 2008-09-29  Bruno Haible  <bruno@clisp.org>
25034
25035         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
25036
25037 2008-09-29  Bruno Haible  <bruno@clisp.org>
25038
25039         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
25040         Set LIBSOCKET instead of augmenting LIBS.
25041         * modules/sockets (Link): New section.
25042         * modules/sockets-tests (test_sockets_LDADD): New variable.
25043         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
25044         * modules/poll-tests (test_poll_LDADD): New variable.
25045         * NEWS: Document the change.
25046
25047 2008-09-29  Bruno Haible  <bruno@clisp.org>
25048
25049         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
25050         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
25051         ARPA_INET_H directly.
25052         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
25053
25054 2008-09-28  Bruno Haible  <bruno@clisp.org>
25055
25056         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
25057         from gl_HEADER_SYS_SOCKET.
25058         (gl_HEADER_SYS_SOCKET): Invoke it.
25059         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25060
25061 2008-09-28  Bruno Haible  <bruno@clisp.org>
25062
25063         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
25064         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
25065         Needed on OSF/1 4.0.
25066
25067 2008-09-28  Bruno Haible  <bruno@clisp.org>
25068
25069         Override open more carefully.
25070         * lib/open.c (orig_open): New function.
25071         (rpl_open): Use orig_open instead of open.
25072         * lib/fcntl.in.h: Add special invocation convention.
25073         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
25074         (gl_FUNC_OPEN): Invoke it.
25075
25076         Override freopen more carefully.
25077         * lib/freopen.c (orig_freopen): New function.
25078         (rpl_freopen): Use orig_freopen instead of freopen.
25079         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
25080         (gl_FUNC_FREOPEN): Invoke it.
25081
25082         Override fopen more carefully.
25083         * lib/fopen.c (orig_fopen): New function.
25084         (rpl_fopen): Use orig_fopen instead of fopen.
25085         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
25086         (gl_FUNC_FOPEN): Invoke it.
25087         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
25088
25089 2008-09-28  Bruno Haible  <bruno@clisp.org>
25090
25091         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
25092         SIGPIPE.
25093
25094 2008-09-28  Bruno Haible  <bruno@clisp.org>
25095
25096         * tests/test-sigaction.c (handler, main): Disable the check whether
25097         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
25098         glibc systems with LinuxThreads.
25099
25100 2008-09-28  Bruno Haible  <bruno@clisp.org>
25101
25102         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
25103
25104         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
25105         with AIX xlc.
25106         * lib/fcntl.in.h (open): Likewise.
25107         Reported by Rainer Tammer <tammer@tammer.net>.
25108
25109 2008-09-28  Bruno Haible  <bruno@clisp.org>
25110
25111         * modules/posix_spawnp-tests: New file.
25112         * tests/test-posix_spawn.c: New file.
25113         * tests/test-posix_spawn.in.sh: New file.
25114
25115         New module 'posix_spawnp'.
25116         * modules/posix_spawnp: New file.
25117         * lib/spawnp.c: New file, from GNU libc with modifications.
25118         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
25119
25120         New module 'posix_spawn'.
25121         * modules/posix_spawn: New file.
25122         * lib/spawn.c: New file, from GNU libc with modifications.
25123         * doc/posix-functions/posix_spawn.texi: Mention the new module.
25124
25125         New module 'posix_spawnattr_destroy'.
25126         * modules/posix_spawnattr_destroy: New file.
25127         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
25128         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
25129         module.
25130
25131         New module 'posix_spawnattr_setsigmask'.
25132         * modules/posix_spawnattr_setsigmask: New file.
25133         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
25134         modifications.
25135         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
25136         new module.
25137
25138         New module 'posix_spawnattr_getsigmask'.
25139         * modules/posix_spawnattr_getsigmask: New file.
25140         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
25141         modifications.
25142         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
25143         new module.
25144
25145         New module 'posix_spawnattr_setsigdefault'.
25146         * modules/posix_spawnattr_setsigdefault: New file.
25147         * lib/spawnattr_setdefault.c: New file, from GNU libc with
25148         modifications.
25149         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
25150         new module.
25151
25152         New module 'posix_spawnattr_getsigdefault'.
25153         * modules/posix_spawnattr_getsigdefault: New file.
25154         * lib/spawnattr_getdefault.c: New file, from GNU libc with
25155         modifications.
25156         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
25157         new module.
25158
25159         New module 'posix_spawnattr_setschedpolicy'.
25160         * modules/posix_spawnattr_setschedpolicy: New file.
25161         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
25162         modifications.
25163         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
25164         new module.
25165
25166         New module 'posix_spawnattr_getschedpolicy'.
25167         * modules/posix_spawnattr_getschedpolicy: New file.
25168         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
25169         modifications.
25170         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
25171         new module.
25172
25173         New module 'posix_spawnattr_setschedparam'.
25174         * modules/posix_spawnattr_setschedparam: New file.
25175         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
25176         modifications.
25177         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
25178         new module.
25179
25180         New module 'posix_spawnattr_getschedparam'.
25181         * modules/posix_spawnattr_getschedparam: New file.
25182         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
25183         modifications.
25184         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
25185         new module.
25186
25187         New module 'posix_spawnattr_setpgroup'.
25188         * modules/posix_spawnattr_setpgroup: New file.
25189         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
25190         modifications.
25191         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
25192         module.
25193
25194         New module 'posix_spawnattr_getpgroup'.
25195         * modules/posix_spawnattr_getpgroup: New file.
25196         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
25197         modifications.
25198         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
25199         module.
25200
25201         New module 'posix_spawnattr_setflags'.
25202         * modules/posix_spawnattr_setflags: New file.
25203         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
25204         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
25205         module.
25206
25207         New module 'posix_spawnattr_getflags'.
25208         * modules/posix_spawnattr_getflags: New file.
25209         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
25210         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
25211         module.
25212
25213         New module 'posix_spawnattr_init'.
25214         * modules/posix_spawnattr_init: New file.
25215         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
25216         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
25217         module.
25218
25219         New module 'posix_spawn_file_actions_destroy'.
25220         * modules/posix_spawn_file_actions_destroy: New file.
25221         * lib/spawn_faction_destroy.c: New file, from GNU libc with
25222         modifications.
25223         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
25224         the new module.
25225
25226         New module 'posix_spawn_file_actions_addopen'.
25227         * modules/posix_spawn_file_actions_addopen: New file.
25228         * lib/spawn_faction_addopen.c: New file, from GNU libc with
25229         modifications.
25230         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
25231         the new module.
25232
25233         New module 'posix_spawn_file_actions_adddup2'.
25234         * modules/posix_spawn_file_actions_adddup2: New file.
25235         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
25236         modifications.
25237         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
25238         the new module.
25239
25240         New module 'posix_spawn_file_actions_addclose'.
25241         * modules/posix_spawn_file_actions_addclose: New file.
25242         * lib/spawn_faction_addclose.c: New file, from GNU libc with
25243         modifications.
25244         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
25245         the new module.
25246
25247         New module 'posix_spawn_file_actions_init'.
25248         * modules/posix_spawn_file_actions_init: New file.
25249         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
25250         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
25251         new module.
25252
25253         New module 'posix_spawn-internal'.
25254         * modules/posix_spawn-internal: New file.
25255         * lib/spawn_int.h: New file, from GNU libc with modifications.
25256         * lib/spawni.c: New file, from GNU libc with modifications.
25257         * m4/posix_spawn.m4: New file.
25258
25259         New module 'spawn'.
25260         * modules/spawn: New file.
25261         * lib/spawn.in.h: New file, from GNU libc with modifications.
25262         * m4/spawn_h.m4: New file.
25263         * doc/posix-headers/spawn.texi: Mention the new module.
25264
25265 2008-09-28  Bruno Haible  <bruno@clisp.org>
25266
25267         * modules/sched-tests: New file.
25268         * tests/test-sched.c: New file.
25269
25270         New module 'sched'.
25271         * modules/sched: New file.
25272         * lib/sched.in.h: New file.
25273         * m4/sched_h.m4: New file.
25274         * doc/posix-headers/sched.texi: Mention the new module.
25275
25276 2008-09-27  Eric Blake  <ebb9@byu.net>
25277
25278         Fix previous patch, and tweak references to $0.
25279         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
25280         (func_version, func_gnulib_dir): Don't call this program
25281         gnulib-tool.
25282         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
25283         with using $0 in function.
25284         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
25285         (func_fatal_error): Reuse the name the user invoked us with.
25286
25287 2008-09-27  Bruno Haible  <bruno@clisp.org>
25288
25289         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
25290         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
25291         (gl_ICONV_H): Not here.
25292         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
25293         instead of assigning ICONV_H directly.
25294
25295         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
25296         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
25297         WCHAR_H directly.
25298
25299 2008-09-27  Bruno Haible  <bruno@clisp.org>
25300
25301         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
25302         * modules/arpa_inet (Depends-on): Add link-warning.
25303         (Makefile.am): Insert the definition of GL_LINK-WARNING.
25304         * modules/unistd (Makefile.am): Likewise.
25305
25306 2008-09-26  Bruno Haible  <bruno@clisp.org>
25307
25308         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
25309         variables.
25310         (func_version): Essentially copied from gnulib-tool.
25311         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
25312         func_readlink): Copied from gnulib-tool.
25313
25314 2008-09-26  Bruno Haible  <bruno@clisp.org>
25315
25316         * gnulib-tool (func_version): Change directory to $gnulib_dir before
25317         invoking git-version-gen.
25318
25319 2008-09-26  Bruno Haible  <bruno@clisp.org>
25320
25321         * posix-modules: Update to directory names changed on 2008-01-19.
25322         Remove commas in output before splitting into words. No more need to
25323         avoid 'ftruncate' since 2007-02-19.
25324
25325 2008-09-26  Bruno Haible  <bruno@clisp.org>
25326
25327         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
25328
25329 2008-09-26  Bruno Haible  <bruno@clisp.org>
25330
25331         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
25332         * modules/fwriteerror (Depends-on): Add errno.
25333
25334 2008-09-26  Bruno Haible  <bruno@clisp.org>
25335
25336         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
25337         * tests/test-vc-list-files-cvs.sh: Likewise.
25338
25339 2008-09-26  Bruno Haible  <bruno@clisp.org>
25340
25341         * doc/posix-headers/sys_resource.texi: Reorder items.
25342
25343 2008-09-26  Jim Meyering  <meyering@redhat.com>
25344
25345         fts: tweak inode comparison function
25346         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
25347         inode numbers, as documented.
25348
25349         fts: sort dirent entries on inode number before traversing
25350         This avoids a quadratic, seek-related performance penalty when
25351         operating on a directory containing many entries (measurable at 10k;
25352         3.5 hours at 2 million entries with a cold cache) on certain types
25353         of file systems, including ext3 and ext4, but not tmpfs.
25354         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
25355         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
25356         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
25357         (fs_handles_readdir_ordered_dirents_efficiently): New function.
25358         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
25359         (fts_build): Set the stat.st_ino member from D_INO.
25360         If it is likely to be useful, sort dirent entries on inode number.
25361
25362         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
25363         and the struct statfs.f_type member.
25364         * modules/fts (Depends-on): Add d-ino.
25365
25366 2008-09-26  Bruno Haible  <bruno@clisp.org>
25367
25368         * modules/sigpipe-die (Depends-on): Add sigpipe.
25369
25370         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
25371         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
25372         and GNULIB_STDIO_H_SIGPIPE are set.
25373         * lib/stdio-write.c: New file.
25374         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
25375         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
25376         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
25377         REPLACE_STDIO_WRITE_FUNCS.
25378         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
25379         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
25380         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
25381         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
25382         * modules/stdio (Files): Add lib/stdio-write.c.
25383         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
25384         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
25385         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
25386         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
25387         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
25388         REPLACE_FPRINTF_POSIX.
25389         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
25390         REPLACE_PRINTF_POSIX.
25391         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
25392         REPLACE_VFPRINTF_POSIX.
25393         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
25394         REPLACE_VPRINTF_POSIX.
25395         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
25396         SIGPIPE issue.
25397         * doc/posix-functions/fputc.texi: Likewise.
25398         * doc/posix-functions/fputs.texi: Likewise.
25399         * doc/posix-functions/fwrite.texi: Likewise.
25400         * doc/posix-functions/printf.texi: Likewise.
25401         * doc/posix-functions/putc.texi: Likewise.
25402         * doc/posix-functions/putchar.texi: Likewise.
25403         * doc/posix-functions/puts.texi: Likewise.
25404         * doc/posix-functions/vfprintf.texi: Likewise.
25405         * doc/posix-functions/vprintf.texi: Likewise.
25406
25407         * modules/safe-write (Depends-on): Add write.
25408
25409         * modules/sigpipe-tests: New file.
25410         * tests/test-sigpipe.c: New file.
25411         * tests/test-sigpipe.sh: New file.
25412
25413         * modules/write: New file.
25414         * lib/unistd.in.h: Include <sys/types.h>.
25415         (write): New declaration.
25416         * lib/write.c: New file.
25417         * m4/write.m4: New file.
25418         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25419         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
25420         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
25421         GNULIB_WRITE, REPLACE_WRITE.
25422         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
25423         and the SIGPIPE issue.
25424
25425         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
25426         (raise): New declaration.
25427         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
25428         (ext_signal): New function.
25429         (rpl_raise): New function.
25430         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
25431         GNULIB_SIGNAL_H_SIGPIPE.
25432         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
25433         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
25434
25435         * modules/sigpipe: New file.
25436         * m4/sigpipe.m4: New file.
25437
25438 2008-09-25  Derek Price  <derek@ximbiot.com>
25439             Bruno Haible  <bruno@clisp.org>
25440
25441         * gnulib-tool (func_import): Report all license incompatibilities, not
25442         just the first one.
25443
25444 2008-09-25  Bruno Haible  <bruno@clisp.org>
25445
25446         * gnulib-tool (func_import): When computing the edits, consider not
25447         only the Makefile.ams that exist but also those that will be generated.
25448
25449 2008-09-25  Simon Josefsson  <simon@josefsson.org>
25450
25451         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
25452         fixes gnulib-tool --test warning about duplicate dependency.
25453
25454 2008-09-25  Bruno Haible  <bruno@clisp.org>
25455
25456         * gnulib-tool: Don't ask the user to perform edits in the generated
25457         Makefile.ams.
25458         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
25459         apply to the Makefile.am being generated.
25460         (func_emit_tests_Makefile_am): Execute edits that apply to the
25461         Makefile.am being generated.
25462         (func_import): Setup list of Makefile.am edits before emitting the
25463         Makefile.ams, not at the end.
25464         (func_create_testdir): Update.
25465         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
25466
25467 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25468
25469         * gnulib-tool (func_import): Store the --tests-base option in the
25470         comment in gnulib-cache.m4.
25471
25472 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
25473
25474         * NEWS: Document increased portability that sys_select now provides.
25475
25476         * lib/sys_select.in.h: Install select wrapper.
25477         * lib/sys_socket.in.h: Use more descriptive name when there is no
25478         select wrapper.
25479         * lib/winsock-select.c: New.
25480         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
25481         Require gl_HEADER_SYS_SOCKET.
25482         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
25483         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
25484         * tests/test-sys_select.c: Add functional tests.
25485
25486 2008-09-24  Eric Blake  <ebb9@byu.net>
25487
25488         open, fopen: close fd leak in last patch
25489         * lib/open.c (rpl_open): Close fd before returning error.
25490         * lib/fopen.c (rpl_fopen): Close fd before returning error.
25491         * doc/posix-functions/open.texi (open): Document that Irix also
25492         has the bug.
25493         * doc/posix-functions/fopen.texi (fopen): Likewise.
25494         Reported by Paolo Bonzini.
25495
25496 2008-09-24  Bruno Haible  <bruno@clisp.org>
25497
25498         Ensure that a filename ending in a slash cannot be used to access a
25499         non-directory.
25500         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
25501         to check whether it's really a directory.
25502         * lib/fopen.c: Include fcntl.h, unistd.h.
25503         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
25504         and fdopen().
25505         * modules/fopen (Depends-on): Add unistd.
25506         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
25507         * tests/test-fopen.c (main): Likewise.
25508         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
25509         * doc/posix-functions/fopen.texi: Likewise.
25510         Reported by Eric Blake.
25511
25512 2008-09-23  Eric Blake  <ebb9@byu.net>
25513
25514         c-stack: avoid compiler optimizations when provoking overflow
25515         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
25516         recursion harder to optimize, to ensure a stack overflow occurs.
25517         * tests/test-c-stack.c (recurse): Likewise.
25518         Borrowed from libsigsegv.
25519
25520         c-stack: work around Irix sigaltstack bug
25521         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
25522         whether sigaltstack uses wrong end of stack_t (copied in part from
25523         libsigsegv).
25524         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
25525         Irix bug, without requiring an over-allocation.
25526         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
25527         bug.
25528
25529         fopen: document mingw bug on directories
25530         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
25531         not allowing a stream visiting a directory, even though reading
25532         from such a stream is not portable.
25533
25534 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
25535
25536         * lib/poll.c: Rewrite.
25537         * modules/poll: Depend on alloca.
25538
25539 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
25540
25541         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
25542         instead define prototypes for a full set of wrappers.  Ensure
25543         that Cygwin does not use the compatibility code, which is only
25544         for MinGW.
25545         * lib/winsock.c: New.
25546         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
25547         * modules/sys_socket: Add lib/winsock.c.
25548
25549         * modules/poll-tests: Add errno and perror.
25550         * tests/test-poll.c: Use ioctl, not ioctlsocket.
25551
25552 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
25553
25554         * tests/test-poll.c: Downgrade minimum needed Winsock version.
25555
25556 2008-09-23  Bruno Haible  <bruno@clisp.org>
25557
25558         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
25559         * doc/glibc-functions/*: Likewise.
25560
25561 2008-09-23  Simon Josefsson  <simon@josefsson.org>
25562
25563         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
25564         success.
25565
25566 2008-09-22  Eric Blake  <ebb9@byu.net>
25567             Bruno Haible  <bruno@clisp.org>
25568
25569         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
25570         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
25571         supply %A but mishandle pseudo-NaN.
25572         Reported by Simon Josefsson.
25573
25574 2008-09-21  Bruno Haible  <bruno@clisp.org>
25575
25576         * tests/test-lock.c (main): Tweak skip message.
25577         * tests/test-tls.c (main): Likewise.
25578
25579 2008-09-21  Bruno Haible  <bruno@clisp.org>
25580
25581         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
25582         whether 'struct sigaction' has sa_sigaction here...
25583         (gl_PREREQ_SIG_HANDLER_H): ... not here.
25584         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
25585
25586 2008-09-21  Bruno Haible  <bruno@clisp.org>
25587
25588         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
25589         section.
25590         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
25591         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
25592         the new section.
25593         (Support for obsolete systems lacking POSIX:2001): New section.
25594         (String handling <string.h>): Move strdup to the new section.
25595         Suggested by Simon Josefsson and Paolo Bonzini.
25596
25597 2008-09-21  Bruno Haible  <bruno@clisp.org>
25598
25599         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
25600         exponents in %e and %g results on 'long double'. Needed for mingw's
25601         improved *printf functions.
25602         * tests/test-vasprintf-posix.c (test_function): Likewise.
25603         * tests/test-snprintf-posix.h (test_function): Likewise.
25604         * tests/test-sprintf-posix.h (test_function): Likewise.
25605         Reported by Eric Blake.
25606
25607 2008-09-21  Bruno Haible  <bruno@clisp.org>
25608
25609         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
25610         * tests/test-sprintf-posix.h (test_function): Likewise.
25611
25612 2008-09-21  Bruno Haible  <bruno@clisp.org>
25613
25614         * modules/getpass (Depends-on): Add strdup-posix.
25615
25616         New module 'strdup-posix'.
25617         * modules/strdup-posix: New file.
25618         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
25619         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
25620         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25621         REPLACE_STRDUP.
25622         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
25623         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
25624         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
25625         strdup-posix.
25626
25627         * modules/strdup (Depends-on): Remove malloc-posix.
25628
25629 2008-09-20  Bruno Haible  <bruno@clisp.org>
25630
25631         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
25632         Wildenhues.
25633
25634 2008-09-20  Bruno Haible  <bruno@clisp.org>
25635
25636         Ensure that wint_t gets defined on IRIX 5.3.
25637         * lib/wchar.in.h (wint_t): Define if not defined by the system.
25638         * lib/wctype.in.h (wint_t): Likewise.
25639         (__wctype_wint_t): Remove type.
25640         (isw*): Use wint_t instead of __wctype_wint_t.
25641         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
25642         * modules/wchar (Files): Add m4/wint_t.m4.
25643         (Makefile.am): Substitute HAVE_WINT_T.
25644         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
25645         * tests/test-wctype.c: Check that wint_t is defined.
25646         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
25647         * doc/posix-headers/wctype.texi: Likewise.
25648         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25649
25650 2008-09-18  Bruno Haible  <bruno@clisp.org>
25651
25652         * gnulib-tool (func_exit): Update comment.
25653
25654 2008-09-18  Simon Josefsson  <simon@josefsson.org>
25655
25656         * modules/getaddrinfo (Depends-on): Remove strdup, this module
25657         assumes strdup exists and does not depend on strdup to return
25658         ENOMEM on out of memory conditions.
25659
25660 2008-09-18  Bruno Haible  <bruno@clisp.org>
25661
25662         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
25663         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
25664         digits for the exponent.
25665
25666 2008-09-18  Jim Meyering  <meyering@redhat.com>
25667             Bruno Haible  <bruno@clisp.org>
25668
25669         * lib/vasnprintf.c (decimal_point_char): Define also if
25670         NEED_PRINTF_INFINITE_LONG_DOUBLE.
25671
25672 2008-09-16  Bruno Haible  <bruno@clisp.org>
25673         and Eric Blake  <ebb9@byu.net>
25674
25675         vasnprintf: support Irix 5.3
25676         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
25677         that mishandle long double infinity.
25678         Reported by Tom G. Christensen.
25679
25680 2008-09-16  Bruno Haible  <bruno@clisp.org>
25681
25682         * doc/glibc-functions/scandir.texi: Mention the function is missing on
25683         Solaris 9.
25684         * doc/glibc-functions/alphasort.texi: Likewise.
25685         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
25686
25687 2008-09-16  Jim Meyering  <meyering@redhat.com>
25688
25689         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
25690         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
25691         a umask modification leak out of a subshell.  Otherwise, the
25692         opensolaris /bin/sh would be accepted and thus cause unwarranted
25693         failures in the coreutils test suite.
25694
25695 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
25696
25697         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
25698         to succeed.
25699
25700 2008-09-16  Jim Meyering  <meyering@redhat.com>
25701
25702         avoid spurious test failure when library is built without ACL support
25703         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
25704         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
25705         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
25706         * tests/test-copy-acl.sh: Likewise.
25707
25708 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25709
25710         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
25711         based on character occurrence counts.
25712
25713 2008-09-15  Eric Blake  <ebb9@byu.net>
25714
25715         tests: avoid some compiler warnings
25716         * tests/test-memchr.c (main): Pass NULL indirectly.
25717         * tests/test-closein.c (main): Avoid unused variable.
25718
25719 2008-09-15  Bruno Haible  <bruno@clisp.org>
25720
25721         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
25722         are missing on OpenBSD 4.0 individually.
25723         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
25724
25725 2008-09-15  Bruno Haible  <bruno@clisp.org>
25726
25727         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
25728         * doc/posix-functions/strerror.texi: Mention also Cygwin.
25729         * doc/posix-functions/perror.texi: Likewise.
25730         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
25731         is missing.
25732         Reported by Eric Blake.
25733
25734         * lib/errno.in.h: Use replacement values >= 2000.
25735         Reported by Eric Blake.
25736
25737 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25738
25739         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
25740         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
25741         limit.
25742         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
25743         compareseq was aborted.
25744
25745 2008-09-14  Bruno Haible  <bruno@clisp.org>
25746
25747         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
25748         yvec_edit_count.
25749         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
25750         (fstrcmp_bounded): Simplify result computation accordingly.
25751
25752 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25753
25754         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
25755         (fstrcmp): Define in terms of fstrcmp_bounded.
25756         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
25757         lower_bound argument.
25758         Return quickly if the result is certainly < lower_bound.
25759         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
25760
25761 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25762
25763         * lib/diffseq.h (EARLY_ABORT): New macro.
25764         (compareseq): Change return type to bool. Return true when EARLY_ABORT
25765         evaluates to true.
25766
25767 2008-09-14  Bruno Haible  <bruno@clisp.org>
25768
25769         * modules/perror-tests: New file.
25770         * tests/test-perror.sh: New file.
25771         * tests/test-perror.c: New file.
25772
25773         New module 'perror'.
25774         * lib/stdio.in.h (perror): New declaration.
25775         * lib/perror.c: New file.
25776         * m4/perror.m4: New file.
25777         * modules/perror: New file.
25778         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
25779         * doc/posix-functions/perror.texi: Mention the perror module.
25780         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
25781         REPLACE_PERROR.
25782         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
25783         REPLACE_PERROR.
25784
25785 2008-09-14  Bruno Haible  <bruno@clisp.org>
25786
25787         * modules/stdio (Makefile.am): Reorder to match the order in
25788         lib/stdio.in.h.
25789         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
25790
25791 2008-09-13  Bruno Haible  <bruno@clisp.org>
25792
25793         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
25794
25795 2008-09-13  Bruno Haible  <bruno@clisp.org>
25796
25797         Extend strerror to cover the added errno values.
25798         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
25799         (rpl_strerror): Provide error messages for the added errno values and
25800         for the WSA* values.
25801         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
25802         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
25803         strerror.
25804         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
25805         * modules/strerror (Depends-on): Add errno.
25806         * doc/posix-functions/strerror.texi: Document the change.
25807         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
25808         and EOVERFLOW.
25809
25810 2008-09-13  Bruno Haible  <bruno@clisp.org>
25811
25812         * modules/EOVERFLOW: Remove file.
25813         * m4/eoverflow.m4: Remove file.
25814         * modules/EOVERFLOW-tests: Remove file.
25815         * tests/test-EOVERFLOW.c: Remove file.
25816         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
25817         * modules/ftell (Depends-on): Likewise.
25818         * modules/getdelim (Depends-on): Likewise.
25819         * modules/getugroups (Depends-on): Likewise.
25820         * modules/poll (Depends-on): Likewise.
25821         * modules/snprintf (Depends-on): Likewise.
25822         * modules/sprintf-posix (Depends-on): Likewise.
25823         * modules/vasnprintf (Depends-on): Likewise.
25824         * modules/vasprintf (Depends-on): Likewise.
25825         * modules/vfprintf-posix (Depends-on): Likewise.
25826         * modules/vsnprintf (Depends-on): Likewise.
25827         * modules/vsprintf-posix (Depends-on): Likewise.
25828         * modules/xvasprintf (Depends-on): Likewise.
25829         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
25830         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
25831         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
25832         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
25833         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
25834         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
25835         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
25836         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
25837         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
25838         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
25839         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
25840         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
25841         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
25842         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
25843         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
25844         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
25845         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
25846         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
25847         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
25848         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
25849         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
25850         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
25851         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
25852         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
25853         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
25854         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
25855         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
25856         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
25857         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
25858         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
25859         * MODULES.html.sh: Remove EOVERFLOW.
25860         * NEWS: Mention the change.
25861
25862 2008-09-13  Bruno Haible  <bruno@clisp.org>
25863
25864         * modules/errno-tests: New file.
25865         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
25866
25867         * lib/errno.in.h: New file.
25868         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
25869         * modules/errno: New file.
25870         * doc/posix-headers/errno.texi: Update documentation.
25871         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
25872
25873 2008-09-13  Bruno Haible  <bruno@clisp.org>
25874
25875         * tests/test-poll.c: Use #if for native Windows, rather than testing
25876         __MSVCRT__.
25877
25878 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25879             Bruno Haible  <bruno@clisp.org>
25880
25881         * lib/glob.c: Don't include <pwd.h> on native Windows.
25882         (WINDOWS32): New macro.
25883         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
25884
25885 2008-09-13  Bruno Haible  <bruno@clisp.org>
25886
25887         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
25888         (ETIMEDOUT): Remove macro.
25889         (glthread_cond_timedwait_multithreaded): New declaration.
25890         (glthread_cond_timedwait): Use it.
25891         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
25892         (glthread_cond_timedwait_multithreaded): New function.
25893
25894 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
25895
25896         * modules/poll-tests: Do not check for io.h.
25897         * tests/test-poll.c: Check for __MSVCRT__ instead.
25898
25899 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
25900
25901         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
25902         * modules/poll-tests: Add inet_pton, stdbool, sockets.
25903         * tests/test-poll.c: Use them.  Use _pipe on Windows.
25904
25905 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
25906
25907         * modules/poll-tests: New.
25908         * tests/test-poll.c: New.
25909
25910 2008-09-12  Eric Blake  <ebb9@byu.net>
25911
25912         frexp: test for NetBSD failure on -0.0
25913         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
25914         not all, bugs from NetBSD 3.0 have been fixed.
25915         * doc/posix-functions/frexp.texi (frexp): Document bug.
25916         Reported by Thomas Klausner.
25917
25918         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
25919         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
25920         literal -0.0.
25921         Reported by Jonathan C. Patschke <jp@centtech.com>.
25922
25923 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25924
25925         * lib/glthread/cond.h: Use dummy implementation also if
25926         USE_WIN32_THREADS.
25927
25928 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25929
25930         * modules/fnmatch-posix (License): Change to LGPLv2+.
25931         * modules/fnmatch-gnu (License): Likewise.
25932
25933 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25934
25935         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
25936
25937 2008-09-11  Jim Meyering  <meyering@redhat.com>
25938
25939         * users.txt: Add gtk-vnc.
25940
25941 2008-09-08  Simon Josefsson  <simon@josefsson.org>
25942
25943         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
25944         rotate amounts.
25945
25946         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
25947         required for 16-bit and 8-bit rotates.
25948         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
25949         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
25950         UINT8_MAX instead of hard-coded constants.
25951         Suggested by Paul Eggert.
25952
25953 2008-09-07  Bruno Haible  <bruno@clisp.org>
25954
25955         * tests/test-striconveh.c (main): Check behaviour when converting from
25956         UTF-7.
25957
25958         Make striconveh work better with stateful encodings.
25959         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
25960         that iconv does not increment the inptr when returning -1/EINVAL.
25961
25962 2008-09-07  Bruno Haible  <bruno@clisp.org>
25963
25964         * build-aux/config.rpath: Update according to libtool-2.2.6.
25965         * build-aux/config.libpath: Likewise.
25966
25967 2008-09-06  Bruno Haible  <bruno@clisp.org>
25968
25969         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
25970         * lib/freadptr.c (freadptr): Likewise.
25971         * lib/freadseek.c (freadptrinc): Likewise.
25972         Reported by Simon Josefsson.
25973
25974 2008-09-06  Bruno Haible  <bruno@clisp.org>
25975
25976         * modules/freadptr (License): Change to LGPLv2+.
25977         * modules/freadseek (License): Likewise.
25978         Suggested by Eric Blake.
25979
25980         * modules/memchr2 (License): Change to LGPLv2+.
25981         Approved by Eric Blake.
25982
25983 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25984             Bruno Haible  <bruno@clisp.org>
25985
25986         Make gnulib-tool work with native 'sed' on AIX.
25987         * gnulib-tool (sed_noop): New variable.
25988         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
25989         func_add_or_update, func_create_testdir): Use it to initialize sed
25990         script variables.
25991         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
25992
25993 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
25994             Bruno Haible  <bruno@clisp.org>
25995
25996         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
25997         also works after #include directives.
25998
25999 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
26000
26001         getdate.y: reject an out-of-range timezone value
26002         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
26003         the range [-24...+24].  When specified with only one or two digits,
26004         * tests/test-getdate.c: Tests for the fix.
26005         * doc/getdate.texi: Document this change.
26006
26007 2008-09-03  Bruno Haible  <bruno@clisp.org>
26008
26009         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
26010
26011 2008-09-02  Simon Josefsson  <simon@josefsson.org>
26012
26013         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
26014         <bruce.korb@gmail.com> with ideas from Ben Pfaff
26015         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
26016         Blake <ebb9@byu.net>.
26017
26018         * tests/test-bitrotate.c: Add more test vectors.
26019
26020 2008-09-02  Eric Blake  <ebb9@byu.net>
26021
26022         vasnprintf-posix: handle large precision via %.*d
26023         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
26024         when handling it ourselves.
26025         * tests/test-vasnprintf-posix.c (test_function): Add test.
26026         * tests/test-snprintf-posix.h (test_function): Likewise.
26027         * tests/test-sprintf-posix.h (test_function): Likewise.
26028         * tests/test-vasprintf-posix.c (test_function): Likewise.
26029         Reported by Alain Guibert.
26030
26031 2008-09-01  Eric Blake  <ebb9@byu.net>
26032
26033         c-stack: make configure-time check more robust
26034         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
26035         successful sigaction call.
26036         Reported by Tom G. Christensen.
26037
26038 2008-09-01  Bruno Haible  <bruno@clisp.org>
26039
26040         New module 'findprog-lgpl'.
26041         * modules/findprog-lgpl: New file.
26042         * lib/findprog-lgpl.c: New file.
26043         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
26044         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
26045         to decide whether to use strdup or xstrdup, concatenated_filename or
26046         xconcatenated_filename.
26047
26048 2008-09-01  Bruno Haible  <bruno@clisp.org>
26049
26050         Split module 'concat-filename' into 'concat-filename' (LGPL) and
26051         'xconcat-filename' (GPL).
26052         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
26053         (License): Change to LGPLv2+.
26054         * modules/xconcat-filename: New file.
26055         * lib/concat-filename.h (concatenated_filename): Change specification.
26056         (xconcatenated_filename): New declaration.
26057         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
26058         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
26059         memory situations.
26060         * lib/xconcat-filename.c: New file.
26061         * NEWS: Mention the change.
26062         * lib/findprog.c: Include concat-filename.h, not filename.h.
26063         (find_in_path): Use xconcatenated_filename instead of
26064         concatenated_filename.
26065         * lib/javacomp.c: Include concat-filename.h, not filename.h.
26066         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
26067         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
26068         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
26069         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
26070         instead of concatenated_filename.
26071         * lib/javaexec.c: Include concat-filename.h, not filename.h.
26072         (execute_java_class): Use xconcatenated_filename instead of
26073         concatenated_filename.
26074         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
26075         * modules/javacomp (Depends-on): Likewise.
26076         * modules/javaexec (Depends-on): Likewise.
26077
26078 2008-09-01  Bruno Haible  <bruno@clisp.org>
26079
26080         Split module 'filename' into 'filename' and 'concat-filename'.
26081         * modules/filename: Keep only lib/filename.h.
26082         (License): Change to LGPLv2+.
26083         * modules/concat-filename: New file, extracted from modules/filename.
26084         * lib/filename.h (concatenated_filename): Remove declaration.
26085         * lib/concat-filename.h: New file, extracted from lib/filename.h.
26086         * lib/concat-filename.c: Include concat-filename.h.
26087         * NEWS: Mention the change.
26088
26089 2008-09-01  Simon Josefsson  <simon@josefsson.org>
26090
26091         * lib/bitrotate.h (rotl8, rotr8): Add.
26092
26093         * modules/bitrotate (configure.ac): Need
26094         AC_REQUIRE([AC_C_INLINE]).
26095         (Description): Mention stdint.h.  Reported by Bruno Haible
26096         <bruno@clisp.org>.
26097
26098         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
26099         Paolo Bonzini <bonzini@gnu.org>.
26100
26101 2008-08-31  Bruno Haible  <bruno@clisp.org>
26102
26103         Assume Solaris specific bi-arch conventions on Solaris systems.
26104         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
26105         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
26106         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
26107         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
26108         like acl_libdirstem.
26109         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
26110         acl_libdirstem.
26111         * NEWS: Mention the change.
26112         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
26113
26114 2008-08-31  Jim Meyering  <meyering@redhat.com>
26115
26116         * lib/strftime.h: Add comments describing the two added arguments.
26117
26118         remove duplicate #include directives
26119         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
26120         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
26121
26122 2008-08-31  Bruno Haible  <bruno@clisp.org>
26123
26124         New module 'sigpipe-die'.
26125         * modules/sigpipe-die: New file.
26126         * lib/sigpipe-die.h: New file.
26127         * lib/sigpipe-die.c: New file.
26128         * MODULES.html.sh (Signal handling): Add sigpipe-die.
26129
26130 2008-08-31  Bruno Haible  <bruno@clisp.org>
26131
26132         Don't override previously installed signal handlers.
26133         * lib/fatal-signal.c (saved_sigactions): New variable.
26134         (uninstall_handlers): Reset the signal to the saved handler, not
26135         to SIG_DFL (except when ignored).
26136         (install_handlers): Save the previous handlers.
26137
26138 2008-08-30  Bruno Haible  <bruno@clisp.org>
26139
26140         * gnulib-tool (func_reset_sigpipe): New function.
26141         (func_get_automake_snippet, func_modules_transitive_closure,
26142         func_import): Invoke it before a join command that reads from stdin,
26143         to avoid "echo: write error: Broken pipe" error messages on stderr.
26144         Reported by Sam Steingold <sds@gnu.org>.
26145
26146 2008-08-30  Bruno Haible  <bruno@clisp.org>
26147
26148         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
26149         Code copied from m4/open.m4.
26150         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
26151         access and the filename ends in a slash. Code copied from lib/open.c.
26152         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
26153         * tests/test-fopen.c (main): Check against bug with trailing slash.
26154
26155 2008-08-29  Bruno Haible  <bruno@clisp.org>
26156
26157         Avoid some "gcc -pedantic" warnings.
26158         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
26159         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
26160         * lib/dirent.in.h: Likewise.
26161         * lib/fcntl.in.h: Likewise.
26162         * lib/float.in.h: Likewise.
26163         * lib/iconv.in.h: Likewise.
26164         * lib/inttypes.in.h: Likewise.
26165         * lib/locale.in.h: Likewise.
26166         * lib/math.in.h: Likewise.
26167         * lib/netinet_in.in.h: Likewise.
26168         * lib/search.in.h: Likewise.
26169         * lib/signal.in.h: Likewise.
26170         * lib/stdarg.in.h: Likewise.
26171         * lib/stdint.in.h: Likewise.
26172         * lib/stdio.in.h: Likewise.
26173         * lib/stdlib.in.h: Likewise.
26174         * lib/string.in.h: Likewise.
26175         * lib/strings.in.h: Likewise.
26176         * lib/sys_select.in.h: Likewise.
26177         * lib/sys_socket.in.h: Likewise.
26178         * lib/sys_stat.in.h: Likewise.
26179         * lib/sys_time.in.h: Likewise.
26180         * lib/sysexits.in.h: Likewise.
26181         * lib/time.in.h: Likewise.
26182         * lib/unistd.in.h: Likewise.
26183         * lib/wchar.in.h: Likewise.
26184         * lib/wctype.in.h: Likewise.
26185         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
26186         * modules/fchdir (Makefile.am): Likewise.
26187         * modules/fcntl (Makefile.am): Likewise.
26188         * modules/float (Makefile.am): Likewise.
26189         * modules/iconv_open (Makefile.am): Likewise.
26190         * modules/inttypes (Makefile.am): Likewise.
26191         * modules/locale (Makefile.am): Likewise.
26192         * modules/math (Makefile.am): Likewise.
26193         * modules/netinet_in (Makefile.am): Likewise.
26194         * modules/search (Makefile.am): Likewise.
26195         * modules/signal (Makefile.am): Likewise.
26196         * modules/stdarg (Makefile.am): Likewise.
26197         * modules/stdint (Makefile.am): Likewise.
26198         * modules/stdio (Makefile.am): Likewise.
26199         * modules/stdlib (Makefile.am): Likewise.
26200         * modules/string (Makefile.am): Likewise.
26201         * modules/strings (Makefile.am): Likewise.
26202         * modules/sys_select (Makefile.am): Likewise.
26203         * modules/sys_socket (Makefile.am): Likewise.
26204         * modules/sys_stat (Makefile.am): Likewise.
26205         * modules/sys_time (Makefile.am): Likewise.
26206         * modules/sysexits (Makefile.am): Likewise.
26207         * modules/time (Makefile.am): Likewise.
26208         * modules/unistd (Makefile.am): Likewise.
26209         * modules/wchar (Makefile.am): Likewise.
26210         * modules/wctype (Makefile.am): Likewise.
26211         Reported by Reuben Thomas <rrt@sc3d.org>.
26212
26213 2008-08-29  Bruno Haible  <bruno@clisp.org>
26214
26215         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
26216         any more.
26217
26218 2008-08-29  Simon Josefsson  <simon@josefsson.org>
26219
26220         * MODULES.html.sh (Misc): Add bitrotate.
26221
26222         * modules/bitrotate: New file.
26223
26224         * lib/bitrotate.h: New file.
26225
26226         * modules/bitrotate-tests: New file.
26227
26228         * tests/test-bitrotate.c: New file.
26229
26230         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
26231         on the bitrotate module.
26232
26233         * lib/arctwo.c: Use new bitrotate module.
26234
26235 2008-08-29  Jim Meyering  <meyering@redhat.com>
26236
26237         bootstrap: merge changes from coreutils
26238         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
26239         of copied files.  Remove a kludge, now that this is fixed.
26240         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
26241         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
26242         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
26243
26244 2008-08-29  Bruno Haible  <bruno@clisp.org>
26245
26246         * MODULES.html.sh: Remove --cvs-urls option.
26247
26248 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
26249
26250         maint.mk: adjust to file name change
26251         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
26252
26253 2008-08-28  Jim Meyering  <meyering@redhat.com>
26254
26255         * modules/getndelim2 (License): Relicense to LGPLv2+.
26256         Approved by Richard Stallman for the version of 1995, and by
26257         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
26258
26259 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
26260
26261         * lib/getdelim.c (flockfile, funlockfile): Make all of them
26262         dummy if one is not available.  Do not touch them if
26263         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
26264         (getc_maybe_unlocked): New.
26265         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
26266
26267 2008-08-26  Eric Blake  <ebb9@byu.net>
26268
26269         doc/INSTALL: resync from autoconf
26270         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
26271         (INSTALL_PRELUDE): Delete; this is done more efficiently by
26272         moving...
26273         * install.texi [!autoconf]: ...here.  Resync from autoconf.
26274         * INSTALL: Regenerate.
26275         * INSTALL.ISO: New file.
26276         * INSTALL.UTF-8: Likewise.
26277
26278 2008-08-26  Jim Meyering  <meyering@redhat.com>
26279
26280         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
26281         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
26282         these definitions conditional, so that they may be overridden, too.
26283
26284 2008-08-26  Bruno Haible  <bruno@clisp.org>
26285
26286         Generate INSTALL file variants with prettier quotes.
26287         * doc/Makefile (INSTALL_PRELUDE): New macro.
26288         (INSTALL): Use it.
26289         (INSTALL.ISO, INSTALL.UTF-8): New rules.
26290
26291 2008-08-26  Bruno Haible  <bruno@clisp.org>
26292
26293         Run makeinfo in an English locale.
26294         * doc/Makefile (MAKEINFO): New variable.
26295
26296 2008-08-26  Bruno Haible  <bruno@clisp.org>
26297
26298         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
26299         Suggested by Eric Blake.
26300
26301 2008-08-25  Bruno Haible  <bruno@clisp.org>
26302
26303         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
26304
26305 2008-08-25  Eric Blake  <ebb9@byu.net>
26306
26307         c-stack: test that stack overflow can be caught
26308         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
26309         that platform allows handling stack overflow; at least OS/2 EMX
26310         has sigaltstack, but crashes before transferring control to
26311         handler on stack overflow.
26312         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
26313         check for HAVE_STACK_OVERFLOW_HANDLING.
26314         Reported by Elbert Pol.
26315
26316 2008-08-25  Bruno Haible  <bruno@clisp.org>
26317
26318         * doc/posix-functions/strftime.texi: Fix description of strftime
26319         module.
26320
26321 2008-08-24  Bruno Haible  <bruno@clisp.org>
26322
26323         * tests/uniwidth/test-uc_width2.c: New file.
26324         * tests/uniwidth/test-uc_width2.sh: New file.
26325         * modules/uniwidth/width-tests (Files): Add the new files.
26326         (TESTS): Add uniwidth/test-uc_width2.sh.
26327         (TESTS_ENVIRONMENT): New variable.
26328         (check_PROGRAMS): Add test-uc_width2.
26329         (test_uc_width2_SOURCES): New variable.
26330
26331         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
26332         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
26333         not 0x00AB.
26334         Reported by Alexander V. Lukyanov <lav@netis.ru>.
26335
26336 2008-08-22  Eric Blake  <ebb9@byu.net>
26337
26338         test-lock, test-tls: mention why a test is skipped
26339         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
26340         skipped.
26341         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
26342
26343         count-one-bits: relax license
26344         * modules/count-one-bits (License): Relicense to LGPLv2+.
26345         Suggested by Ludovic Courtès, approved by Ben Pfaff.
26346
26347 2008-08-22  Andreas Schwab  <schwab@suse.de>
26348
26349         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
26350         Remove spurious space in assignment.
26351
26352 2008-08-21  Simon Josefsson  <simon@josefsson.org>
26353
26354         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
26355         Paul Eggert <eggert@CS.UCLA.EDU>.
26356
26357 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
26358
26359         * modules/gettext: Add m4/threadlib.m4.
26360
26361 2008-08-19  Eric Blake  <ebb9@byu.net>
26362
26363         test-c-stack: fix compilation failure on FreeBSD 5.0
26364         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
26365         headers before <sys/resource.h>.
26366         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
26367         the bug.
26368         Reported by Nelson H. F. Beebe.
26369
26370         strverscmp: migrate from "strverscmp.h" to <string.h>
26371         * modules/string (Makefile.am): Add new hooks.
26372         * modules/strverscmp (Files): Remove strverscmp.h.
26373         (Depends-on): Add string.
26374         (configure.ac): Add indicator.
26375         (Include): Mention new header.
26376         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
26377         defaults.
26378         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
26379         results.
26380         * lib/strverscmp.h: Delete.
26381         * lib/string.in.h (strverscmp): Provide declaration, when needed.
26382         * tests/test-strverscmp.c (includes): Adjust client.
26383         * lib/check-version.c (includes): Likewise.
26384         * NEWS: Document the change.
26385
26386         strverscmp: add unit test
26387         * modules/strverscmp-tests: New file.
26388         * tests/test-strverscmp.c: Likewise.
26389
26390 2008-08-19  Simon Josefsson  <simon@josefsson.org>
26391
26392         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
26393         regarding Windows crypto stuff, from Mono.
26394
26395 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
26396
26397         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
26398         if present, for intel RND.  Return error on failures.
26399
26400 2008-08-18  Ben Pfaff  <blp@gnu.org>
26401
26402         gitlog-to-changelog: give better diagnostic for failed pipe-open
26403         * build-aux/gitlog-to-changelog: Improve error message: suggest
26404         that the version of Git may be too old.
26405
26406 2008-08-18  Simon Josefsson  <simon@josefsson.org>
26407
26408         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
26409         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
26410
26411 2008-08-18  Bruno Haible  <bruno@clisp.org>
26412
26413         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
26414         pthread_in_use().
26415
26416 2008-08-18  Bruno Haible  <bruno@clisp.org>
26417
26418         * lib/glthread/threadlib.c: Include <pthread.h>.
26419
26420 2008-08-18  Bruno Haible  <bruno@clisp.org>
26421
26422         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
26423         glthread_recursive_lock_* macros.
26424         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
26425         Fix syntax error.
26426
26427 2008-08-18  Bruno Haible  <bruno@clisp.org>
26428
26429         * lib/glthread/thread.c: Avoid forcing a context switch right after
26430         thread creation.
26431
26432 2008-08-17  Bruno Haible  <bruno@clisp.org>
26433
26434         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
26435         * lib/glthread/thread.h: Provide Win32 specific implementation.
26436         * modules/thread (Files): Add lib/glthread/thread.c.
26437         (Depends-on): Add lock.
26438         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
26439
26440 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26441
26442         New module 'yield'.
26443         * modules/yield: New file.
26444         * lib/glthread/yield.h: New file.
26445         * m4/yield.m4: New file.
26446         * MODULES.html.sh (Multithreading): Add yield.
26447
26448 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26449
26450         New module 'thread'.
26451         * modules/thread: New file.
26452         * lib/glthread/thread.h: New file.
26453         * m4/thread.m4: New file.
26454         * MODULES.html.sh (Multithreading): Add thread.
26455
26456 2008-08-17  Bruno Haible  <bruno@clisp.org>
26457
26458         * lib/glthread/lock.h: Include <stdlib.h> always.
26459         * lib/glthread/tls.h: Likewise.
26460         * lib/glthread/cond.h: Likewise.
26461
26462 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26463
26464         New module 'cond'.
26465         * modules/cond: New file.
26466         * lib/glthread/cond.h: New file.
26467         * lib/glthread/cond.c: New file.
26468         * m4/cond.m4: New file.
26469         * MODULES.html.sh (Multithreading): Add cond.
26470
26471 2008-08-16  Eric Blake  <ebb9@byu.net>
26472
26473         c-stack: fix regression on Irix 5.3 from 2008-06-21
26474         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
26475         sa_sigaction...
26476         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
26477         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
26478         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
26479         * modules/signal (Makefile.am): Use the value.
26480         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
26481         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
26482         * doc/posix-headers/signal.texi (signal.h): Document this
26483         portability issue.
26484         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
26485         Reported by Tom G. Christensen.
26486
26487 2008-08-17  Bruno Haible  <bruno@clisp.org>
26488
26489         New module 'threadlib'.
26490         * modules/threadlib: New file.
26491         * lib/glthread/threadlib.c: New file, extracted from
26492         lib/glthread/lock.c.
26493         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
26494         functions.
26495         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
26496         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
26497         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
26498         macros.
26499         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
26500         (gl_DISABLE_THREADS): Remove macro.
26501         * modules/lock (Files): Remove build-aux/config.rpath.
26502         (Depends-on): Remove havelib. Add threadlib.
26503         (configure.ac-early): Remove section.
26504         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
26505         * modules/tls (Depends-on): Remove lock. Add threadlib.
26506         (Link): New section, copied from threadlib.
26507         * MODULES.html.sh (Multithreading): Add threadlib.
26508
26509 2008-08-14  Bruno Haible  <bruno@clisp.org>
26510
26511         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
26512         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
26513         glthread_rwlock_unlock, glthread_rwlock_destroy,
26514         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
26515         glthread_recursive_lock_destroy): Define as macros always.
26516         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
26517         glthread_lock_lock.
26518         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
26519         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
26520         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
26521         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
26522         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
26523         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
26524         (glthread_recursive_lock_lock_func): Renamed from
26525         glthread_recursive_lock_lock.
26526         (glthread_recursive_lock_unlock_func): Renamed from
26527         glthread_recursive_lock_unlock.
26528         (glthread_recursive_lock_destroy_func): Renamed from
26529         glthread_recursive_lock_destroy.
26530
26531 2008-08-14  Bruno Haible  <bruno@clisp.org>
26532
26533         * lib/glthread/lock.h: Renamed from lib/lock.h.
26534         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
26535         * lib/glthread/tls.h: Renamed from lib/tls.h.
26536         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
26537         * lib/fstrcmp.c: Update includes.
26538         * lib/strsignal.c: Update includes.
26539         * modules/lock (Files, Makefile.am): Update.
26540         (Include): Change to "glthread/lock.h".
26541         * modules/tls (Files, Makefile.am): Update.
26542         (Include): Change to "glthread/tls.h".
26543         * tests/test-lock.c: Update includes.
26544         * tests/test-tls.c: Update includes.
26545         * NEWS: Mention the renamed header files.
26546
26547 2008-08-11  Jim Meyering  <meyering@redhat.com>
26548
26549         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
26550
26551 2008-08-11  Eric Blake  <ebb9@byu.net>
26552
26553         test-c-stack: avoid C99-ism
26554         * tests/test-c-stack.c (main): Fix whitespace, move declaration
26555         before statement.
26556         Reported by Alain Guibert.
26557
26558 2008-08-10  Jim Meyering  <meyering@redhat.com>
26559
26560         ensure that return value of uinttostr et al are not ignored
26561         * lib/inttostr.h (__GNUC_PREREQ): Define.
26562         (__attribute_warn_unused_result__): Define.
26563         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
26564
26565 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
26566
26567         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
26568         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
26569
26570 2008-08-07  Jim Meyering  <meyering@redhat.com>
26571
26572         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
26573
26574         * modules/mkstemp (License): Relicense under LGPLv2+.
26575         * modules/tempname (License): Likewise.
26576
26577 2008-08-06  Bruno Haible  <bruno@clisp.org>
26578
26579         * lib/poll.c (poll): Further micro-optimization.
26580
26581 2008-08-06  Jim Meyering  <meyering@redhat.com>
26582
26583         inet_pton.c: use locale-independent tolower
26584         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
26585         (inet_pton6): Use c_tolower rather than tolower.
26586         * modules/inet_pton (Depends-on): Add c-ctype.
26587
26588 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
26589
26590         * lib/poll.c (poll): Avoid division when timeout is 0, cache
26591         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
26592
26593 2008-08-06  Jim Meyering  <meyering@redhat.com>
26594
26595         * modules/inet_pton (License): Relicense under LGPLv2+.
26596
26597 2008-08-03  Bruno Haible  <bruno@clisp.org>
26598
26599         Additional non-aborting API for lock and tls.
26600         * lib/lock.h: Include <errno.h>.
26601         (glthread_lock_init): New macro/function.
26602         (gl_lock_init): Define as wrapper around glthread_lock_init.
26603         (glthread_lock_lock): New macro/function.
26604         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
26605         (glthread_lock_unlock): New macro/function.
26606         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
26607         (glthread_lock_destroy): New macro/function.
26608         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
26609         (glthread_rwlock_init): New macro/function.
26610         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
26611         (glthread_rwlock_rdlock): New macro/function.
26612         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
26613         (glthread_rwlock_wrlock): New macro/function.
26614         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
26615         (glthread_rwlock_unlock): New macro/function.
26616         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
26617         (glthread_rwlock_destroy): New macro/function.
26618         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
26619         (glthread_recursive_lock_init): New macro/function.
26620         (gl_recursive_lock_init): Define as wrapper around
26621         glthread_recursive_lock_init.
26622         (glthread_recursive_lock_lock): New macro/function.
26623         (gl_recursive_lock_lock): Define as wrapper around
26624         glthread_recursive_lock_lock.
26625         (glthread_recursive_lock_unlock): New macro/function.
26626         (gl_recursive_lock_unlock): Define as wrapper around
26627         glthread_recursive_lock_unlock.
26628         (glthread_recursive_lock_destroy): New macro/function.
26629         (gl_recursive_lock_destroy): Define as wrapper around
26630         glthread_recursive_lock_destroy.
26631         (glthread_once): New macro/function.
26632         (gl_once): Define as wrapper around glthread_once.
26633         Update function declarations.
26634         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
26635         glthread_rwlock_init. Return error code.
26636         (glthread_rwlock_rdlock_multithreaded): Renamed from
26637         glthread_rwlock_rdlock. Return error code.
26638         (glthread_rwlock_wrlock_multithreaded): Renamed from
26639         glthread_rwlock_wrlock. Return error code.
26640         (glthread_rwlock_unlock_multithreaded): Renamed from
26641         glthread_rwlock_unlock. Return error code.
26642         (glthread_rwlock_destroy_multithreaded): Renamed from
26643         glthread_rwlock_destroy. Return error code.
26644         (glthread_recursive_lock_init_multithreaded): Renamed from
26645         glthread_recursive_lock_init. Return error code.
26646         (glthread_recursive_lock_lock_multithreaded): Renamed from
26647         glthread_recursive_lock_lock. Return error code.
26648         (glthread_recursive_lock_unlock_multithreaded): Renamed from
26649         glthread_recursive_lock_unlock. Return error code.
26650         (glthread_recursive_lock_destroy_multithreaded): Renamed from
26651         glthread_recursive_lock_destroy. Return error code.
26652         (glthread_once_call): Make static.
26653         (glthread_once_multithreaded): Renamed from glthread_once.
26654         * lib/tls.h: Include <errno.h>.
26655         (glthread_tls_key_init): New macro/function.
26656         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
26657         (glthread_tls_set): New macro/function.
26658         (gl_tls_set): Define as wrapper around glthread_tls_set.
26659         (glthread_tls_key_destroy): New macro/function.
26660         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
26661         Update function declarations.
26662         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
26663         glthread_tls_get.
26664         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
26665
26666 2008-08-04  Eric Blake  <ebb9@byu.net>
26667
26668         gnumakefile: use space, not TAB, outside of targets
26669         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
26670
26671 2008-08-02  Jim Meyering  <meyering@redhat.com>
26672
26673         getdate.y: avoid locale-dependent date parsing failure
26674         In Turkish locales, getdate would fail to recognize keywords
26675         containing a lowercase "i".  The solution is not to rely on
26676         locale-sensitive case-conversion.
26677         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
26678         (lookup_word): Use c_toupper in place of toupper.
26679         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
26680         Reported by Vefa Bicakci <bicave@superonline.com> in
26681         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
26682         * modules/getdate (Depends-on): Add c-ctype.
26683
26684 2008-08-02  Bruno Haible  <bruno@clisp.org>
26685
26686         * gnulib-tool (func_import): When updating or creating a .gitignore
26687         file, prepend each added line with a slash, and ignore leading slashes
26688         from the existing lines.
26689         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
26690
26691 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26692
26693         Portability fix for GNU make 3.79.1.
26694         * top/GNUmakefile: Avoid 'else COND', which older GNU make
26695         versions do not understand.
26696
26697 2008-08-01  Bruno Haible  <bruno@clisp.org>
26698
26699         Work around bug of HP-UX 10.20 cc with -0.0 literal.
26700         * tests/test-isnanf.h (zero): New variable.
26701         (main): Avoid literal -0.0f.
26702         * tests/test-isnand.h (zero): New variable.
26703         (main): Avoid literal -0.0.
26704         * tests/test-isnanl.h (zero): New variable.
26705         (main): Avoid literal -0.0L.
26706         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
26707         (test_float, test_double, test_long_double): Avoid literals -0.0f,
26708         -0.0, -0.0L.
26709         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
26710         (test_signbitd): Avoid literal -0.0.
26711         (test_signbitl): Avoid literal -0.0L.
26712         * tests/test-ceilf1.c (zero): New variable.
26713         (main): Avoid literal -0.0f.
26714         * tests/test-ceill.c (zero): New variable.
26715         (main): Avoid literal -0.0L.
26716         * tests/test-floorf1.c (zero): New variable.
26717         (main): Avoid literal -0.0f.
26718         * tests/test-floorl.c (zero): New variable.
26719         (main): Avoid literal -0.0L.
26720         * tests/test-roundf1.c (zero): New variable.
26721         (main): Avoid literal -0.0f.
26722         * tests/test-round1.c (zero): New variable.
26723         (main): Avoid literal -0.0.
26724         * tests/test-roundl.c (zero): New variable.
26725         (main): Avoid literal -0.0L.
26726         * tests/test-truncf1.c (zero): New variable.
26727         (main): Avoid literal -0.0f.
26728         * tests/test-trunc1.c (zero): New variable.
26729         (main): Avoid literal -0.0.
26730         * tests/test-truncl.c (zero): New variable.
26731         (main): Avoid literal -0.0L.
26732         * tests/test-frexp.c (zero): New variable.
26733         (main): Avoid literal -0.0.
26734         * tests/test-frexpl.c (zero): New variable.
26735         (main): Avoid literal -0.0L.
26736         * tests/test-ldexpl.c (zero): New variable.
26737         (main): Avoid literal -0.0L.
26738         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
26739         (zerod, zerol): New variables.
26740         (test_function): Avoid literals -0.0, -0.0L.
26741         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
26742         (zerod, zerol): New variables.
26743         (test_function): Avoid literals -0.0, -0.0L.
26744         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
26745         (zerod, zerol): New variables.
26746         (test_function): Avoid literals -0.0, -0.0L.
26747         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
26748         (zerod, zerol): New variables.
26749         (test_function): Avoid literals -0.0, -0.0L.
26750         * tests/test-strtod.c (zero): New variable.
26751         (main): Avoid literal -0.0.
26752         Reported by Jonathan C. Patschke <jp@centtech.com>.
26753
26754 2008-07-31  Jim Meyering  <meyering@redhat.com>
26755
26756         sha256.h: correct definition of SHA224_DIGEST_SIZE
26757         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
26758         Reported by Paulie Pena IV <paulie4@gmail.com>.
26759         Define as 224 / 8, rather than as a literal.
26760         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
26761         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
26762         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
26763
26764 2008-07-31  Bruno Haible  <bruno@clisp.org>
26765
26766         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
26767         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
26768         Reported by Jonathan Patschke <jp@centtech.com>.
26769
26770 2008-07-31  Bruno Haible  <bruno@clisp.org>
26771
26772         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
26773         Reported by Paolo Bonzini <bonzini@gnu.org>.
26774
26775 2008-07-30  Eric Blake  <ebb9@byu.net>
26776
26777         test-strtod: allow compilation without -lm
26778         * tests/test-strtod.c (main): Avoid link dependence on fabs.
26779         Reported by Dennis Clarke <blastwave@gmail.com>.
26780
26781 2008-07-28  Jim Meyering  <meyering@redhat.com>
26782
26783         bootstrap: work also when there are no .po files in po/
26784         * build-aux/bootstrap (update_po_files): Complete the change
26785         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
26786
26787 2008-07-27  Jim Meyering  <meyering@redhat.com>
26788
26789         * users.txt: Add zile.
26790
26791 2008-07-26  Ben Pfaff  <blp@gnu.org>
26792
26793         Add missing dependencies on new m4/exponent[fdl].m4 files.
26794         * modules/isnanf-nolibm: Add m4/exponentf.m4.
26795         * modules/isnand-nolibm: Add m4/exponentd.m4.
26796         * modules/isnanl-nolibm: Add m4/exponentl.m4.
26797         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
26798         m4/isnan[fdl].m4, because the macros actually used moved.
26799         Reported by Jim Meyering.
26800
26801 2008-07-14  Ben Pfaff  <blp@gnu.org>
26802
26803         Add isinf module.
26804         * lib/isinf.c: New file.
26805         * lib/math.in.h: Define isinf macro if we have decided to replace
26806         it.
26807         * m4/isinf.m4: New file.
26808         * m4/math_h.m4: Initialize and substitute variables for isinf
26809         module.
26810         * modules/isinf: New file.
26811         * modules/isinf-tests: New file.
26812         * modules/math: Add substitutions for new module.
26813         * tests/test-isinf.c: New file.
26814         * doc/posix-functions/isinf.texi: Mention new module.
26815         * MODULES.html.sh: Mention new module.
26816
26817 2008-07-14  Ben Pfaff  <blp@gnu.org>
26818
26819         Factor out some macros for use by additional modules.
26820         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
26821         exponentf.m4.
26822         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
26823         exponentd.m4.
26824         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
26825         file exponentl.m4.
26826         * m4/exponentf.m4: New file.
26827         * m4/exponentd.m4: New file.
26828         * m4/exponentl.m4: New file.
26829         * modules/isnanf: Use new file m4/exponentf.m4.
26830         * modules/isnand: Use new file m4/exponentd.m4.
26831         * modules/isnanl: Use new file m4/exponentl.m4.
26832
26833 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
26834
26835         mktime.c: normalize tp->tm_isdst value to -1/0/1.
26836         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
26837         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
26838         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
26839
26840         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
26841         readlink on platforms without PATH_MAX.
26842
26843 2008-07-21  Eric Blake  <ebb9@byu.net>
26844
26845         Warn, not fail, on stale version.
26846         * top/GNUmakefile (_curr-ver): Tone down previous patch.
26847
26848         Don't allow installation with stale devel version number.
26849         * top/GNUmakefile (_is-install-target): New macro.
26850         (_curr-ver): Forbid installation with stale version number.
26851
26852 2008-07-20  Bruno Haible  <bruno@clisp.org>
26853
26854         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
26855         TESTS_ENVIRONMENT.
26856         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
26857
26858 2008-07-20  Bruno Haible  <bruno@clisp.org>
26859
26860         * lib/c-stack.h (c_stack_action): Add documentation.
26861         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
26862
26863 2008-07-20  Bruno Haible  <bruno@clisp.org>
26864
26865         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
26866         * modules/readlink (License): Likewise.
26867
26868 2008-07-17  Eric Blake  <ebb9@byu.net>
26869
26870         * modules/c-stack (Link): Fix typo.
26871
26872         Make c-stack use libsigsegv, when available.
26873         * modules/c-stack (Depends-on): Add libsigsegv.
26874         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
26875         needed.
26876         * lib/c-stack.c (SIGSTKSZ): Define fallback.
26877         (segv_handler, overflow_handler, c_stack_action)
26878         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
26879         implementation when libsigsegv is available, but only when using
26880         the library is necessary.
26881         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
26882         comment, explaining why XSI check fails on Linux.
26883         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
26884         * tests/test-c-stack2.sh: Tweak skip message.
26885         * NEWS: Document new link-time requirements.
26886
26887 2008-07-16  Eric Blake  <ebb9@byu.net>
26888
26889         c-stack: Expose false positives when not using libsigsegv.
26890         * modules/c-stack-tests (Files): Expand test.
26891         * tests/test-c-stack.c (main): Add means to conditionally trigger
26892         non-overflow SIGSEGV.
26893         * tests/test-c-stack2.sh: New file.
26894
26895 2008-07-14  Bruno Haible  <bruno@clisp.org>
26896
26897         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
26898         Reported by Eric Blake.
26899
26900 2008-07-14  Sam Steingold  <sds@gnu.org>
26901             Bruno Haible  <bruno@clisp.org>
26902
26903         New module libsigsegv.
26904         * modules/libsigsegv: New file.
26905         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
26906         modifications.
26907         * MODULES.html.sh (Signal handling): New section.
26908
26909 2008-07-14  Bruno Haible  <bruno@clisp.org>
26910
26911         * modules/unictype/ctype-* (Description): Add the word "function".
26912         Improves the resulting doc in MODULES.html.
26913
26914 2008-07-12  Ben Pfaff  <blp@gnu.org>
26915
26916         Add longlong module.
26917         * modules/longlong: New file.
26918
26919 2008-07-12  Bruno Haible  <bruno@clisp.org>
26920
26921         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
26922         to empty.
26923
26924 2008-07-10  Ben Pfaff  <blp@gnu.org>
26925
26926         Add isnan module.
26927         * doc/posix-functions/isnan.texi: Mention new module.
26928         * lib/math.in.h: Define isnan macro if we have decided to replace
26929         it.
26930         * m4/isnan.m4: New file.
26931         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
26932         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
26933         also.
26934         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
26935         redundancy.
26936         * m4/math_h.m4: Initialize and substitute variables for isnan
26937         module.
26938         * modules/isnan: New file.
26939         * modules/isnan-tests: New file.
26940         * modules/math: Add substitutions for new module.
26941         * tests/test-isnan.c: New file.
26942         * MODULES.html.sh: Mention new module.
26943
26944 2008-07-10  Ben Pfaff  <blp@gnu.org>
26945
26946         Add isnanf module.
26947         * lib/isnanf.m4: New file.
26948         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
26949         (gl_HAVE_ISNANF_IN_LIBM): New macro.
26950         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
26951         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
26952         * modules/isnanf: New file.
26953         * modules/isnanf-tests: New file.
26954         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
26955         files.
26956         * tests/test-isnanf-nolibm.c: factored most of its contents into
26957         new file tests/test-isnanf.h.
26958         * tests/test-isnanf.h: New file.
26959         * tests/test-isnanf.c: New file.
26960         * MODULES.html.sh: Mention new module.
26961         * doc/glibc-functions/isnanf.texi: Mention new module.
26962
26963 2008-07-10  Ben Pfaff  <blp@gnu.org>
26964
26965         Add isnand module.
26966         * lib/isnand.h: New file.
26967         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
26968         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
26969         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
26970         functionality also.
26971         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
26972         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
26973         (gl_HAVE_ISNAND_IN_LIBM): New macro.
26974         * modules/isnand: New file.
26975         * modules/isnand-tests: New file.
26976         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
26977         files.
26978         * tests/test-isnand-nolibm.c: factored most of its contents into
26979         new file tests/test-isnand.h.
26980         * tests/test-isnand.h: New file.
26981         * tests/test-isnand.c: New file.
26982         * MODULES.html.sh: Mention new module.
26983
26984 2008-07-10  Ben Pfaff  <blp@gnu.org>
26985
26986         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
26987         * lib/isnand.h: Rename lib/isnand-nolibm.h.
26988         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
26989         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
26990         * modules/isnanf-nolibm: Update references to renamed files.
26991         * modules/isnand-nolibm: Likewise.
26992         * modules/isnanf-nolibm-tests: Likewise.
26993         * modules/isnand-nolibm-tests: Likewise.
26994         * lib/frexp.c: Likewise.
26995         * lib/isfinite.c: Likewise.
26996         * lib/signbitd.c: Likewise.
26997         * lib/signbitf.c: Likewise.
26998         * lib/vasnprintf.c: Likewise.
26999         * tests/test-ceilf1.c: Likewise.
27000         * tests/test-ceilf2.c: Likewise.
27001         * tests/test-floorf1.c: Likewise.
27002         * tests/test-floorf2.c: Likewise.
27003         * tests/test-frexp.c: Likewise.
27004         * tests/test-round1.c: Likewise.
27005         * tests/test-round2.c: Likewise.
27006         * tests/test-roundf1.c: Likewise.
27007         * tests/test-strtod.c: Likewise.
27008         * tests/test-trunc1.c: Likewise.
27009         * tests/test-trunc2.c: Likewise.
27010         * tests/test-truncf1.c: Likewise.
27011         * tests/test-truncf2.c: Likewise.
27012         * NEWS: Mention the renamed header files.
27013
27014 2008-07-11  Jim Meyering  <meyering@redhat.com>
27015
27016         vc-list-files: make the last-resort awk code more portable
27017         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
27018         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
27019         does not support it.
27020
27021 2008-07-10  Eric Blake  <ebb9@byu.net>
27022
27023         Work with tar's bootstrap.
27024         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
27025         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
27026         an m4 comment.
27027
27028 2008-07-09  Jim Meyering  <meyering@redhat.com>
27029
27030         posix-shell.m4: fix typo that made this test malfunction
27031         * m4/posix-shell.m4: Remove capitalization in variable name.
27032
27033 2008-07-08  Bruno Haible  <bruno@clisp.org>
27034
27035         * m4/onceonly.m4: Update comments.
27036         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27037
27038 2008-07-04  Jim Meyering  <meyering@redhat.com>
27039
27040         * users.txt: Add vc-dwim.
27041         (bison, coreutils): Use the gitweb URL.
27042
27043 2008-07-03  Jim Meyering  <meyering@redhat.com>
27044
27045         * users.txt: Add libffcall.  From Sam Steingold.
27046
27047 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
27048
27049         getdate.y: do not ignore TZ with relative day, month or year offset
27050         * lib/getdate.y (get_date): Move the tz-handling block to follow the
27051         relative-date-handling, since otherwise, the latter would clobber the
27052         sole output (an updated Start value) of the tz-handling block.
27053         * tests/test-getdate.c: Tests for the fix
27054
27055 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27056
27057         Recognize 'foo_LIBRARIES += libgnu.a'.
27058         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
27059         makefile snippet has already specified an installation location,
27060         also using '+='.
27061
27062 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
27063
27064         getdate.y: factor out common actions
27065         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
27066         Use them in place of open-coded actions.
27067
27068 2008-07-01  Simon Josefsson  <simon@josefsson.org>
27069
27070         Add self-test for getdate module.
27071         * modules/getdate-tests: New file.
27072         * tests/test-getdate.c: New file.
27073
27074 2008-06-29  Bruno Haible  <bruno@clisp.org>
27075
27076         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
27077         .gitignore.
27078         Reported by Sylvain Beucler <beuc@beuc.net>.
27079
27080 2008-06-29  Bruno Haible  <bruno@clisp.org>
27081
27082         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
27083         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
27084
27085 2008-06-29  Bruno Haible  <bruno@clisp.org>
27086
27087         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
27088         EXTRA_DIST.
27089         Reported by Sylvain Beucler <beuc@beuc.net>.
27090
27091 2008-06-26  Jim Meyering  <meyering@redhat.com>
27092
27093         make several modules depend on the "open" module
27094         This provides slightly increased consistency when opening-for-write
27095         the name of a non-directory spelled with a trailing slash.
27096         * modules/chdir-safer: Likewise.
27097         * modules/chown: Likewise.
27098         * modules/clean-temp: Likewise.
27099         * modules/copy-file: Likewise.
27100         * modules/fchdir: Likewise.
27101         * modules/fcntl-safer: Likewise.
27102         * modules/pipe: Likewise.
27103         * modules/utime: Likewise.
27104         Prompted by Eric Blake and Bruno Haible.
27105
27106 2008-06-24  Andreas Schwab  <schwab@suse.de>
27107
27108         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
27109         literals can be used as initializers for global variables.
27110
27111 2008-06-23  Eric Blake  <ebb9@byu.net>
27112
27113         Make gnulib-cache.m4 easier to diff.
27114         * gnulib-tool (func_import): Allow newlines when reading cached
27115         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
27116
27117 2008-06-23  Bruno Haible  <bruno@clisp.org>
27118
27119         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
27120         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
27121         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
27122         m4/signalblocking.m4.
27123         (gl_PREREQ_SIGACTION): Don't invoke it.
27124         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
27125         gl_PREREQ_SIG_HANDLER_H.
27126         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
27127         Don't check for sigaction here.
27128
27129 2008-06-23  Bruno Haible  <bruno@clisp.org>
27130
27131         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
27132         (install_handlers): Don't set the SA_RESETHAND flag.
27133
27134 2008-06-23  Bruno Haible  <bruno@clisp.org>
27135
27136         * m4/sigaction.m4: Comment fixes.
27137         * lib/signal.in.h: Likewise.
27138
27139 2008-06-23  Eric Blake  <ebb9@byu.net>
27140
27141         Fix typo.
27142         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
27143
27144         Avoid SA_ namespace.
27145         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
27146         Reported by Ralf Wildenhues.
27147
27148         Avoid test failure due to SA_RESTORER.
27149         * tests/test-sigaction.c (SA_MASK): New macro.
27150         (main): Avoid failing due to extension flags being set.
27151         Reported by Jim Meyering.
27152
27153         Revert use of sig-handler.h in sigprocmask.c.
27154         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
27155         it requires the existence of struct sigaction.
27156         * lib/sigprocmask.c (handler_t): Restore typedef.
27157         (rpl_signal, old_handlers): Use local type.
27158
27159 2008-06-22  Bruno Haible  <bruno@clisp.org>
27160
27161         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
27162         conditionally.
27163         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
27164
27165 2008-06-22  Bruno Haible  <bruno@clisp.org>
27166
27167         * doc/posix-functions/siginterrupt.texi: Move note.
27168
27169         * lib/signal.in.h (SA_RESTART): New macro.
27170         * lib/sigaction.c: Update comment.
27171
27172         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
27173
27174         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
27175         (gl_PREREQ_SIGPROCMASK): Invoke it.
27176         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
27177
27178         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
27179
27180         * lib/sigprocmask.c: Update a comment.
27181
27182 2008-06-21  Eric Blake  <ebb9@byu.net>
27183
27184         Use sigaction module rather than signal().
27185         * modules/c-stack (Depends-on): Add sigaction.
27186         * modules/fatal-signal (Depends-on): Likewise.
27187         * modules/nanosleep (Depends-on): Likewise.
27188         * modules/sigprocmask (Files): Add sig-handler.h.
27189         * modules/sigaction (Files): Likewise.
27190         * lib/sig-handler.h (get_handler): New file, suggested by Paul
27191         Eggert.
27192         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
27193         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
27194         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
27195         (init_fatal_signals): Likewise.
27196         * lib/nanosleep.c (rpl_nanosleep): Likewise.
27197         (siginterrupt): Delete fallback.
27198         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
27199         instead.
27200         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
27201         siginterrupt.
27202
27203         New module sigaction, for mingw.
27204         * modules/sigaction: New module...
27205         * modules/sigaction-tests: ...and its test.
27206         * m4/sigaction.m4: New file.
27207         * lib/sigaction.c: Likewise.
27208         * tests/test-sigaction.c: Likewise.
27209         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
27210         * modules/signal (Makefile.am): Likewise.
27211         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
27212         needed.
27213         * doc/posix-headers/signal.texi (signal.h): Mention provided
27214         types.
27215         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
27216         that sigaction is preferable.
27217         * doc/posix-functions/sigaction.texi (sigaction): Mention new
27218         module.
27219         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
27220         sigaction.
27221
27222         Improve robustness of sigprocmask by overriding signal.
27223         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
27224         is in use.
27225         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
27226         (SIGKILL, SIGSTOP): Provide fallbacks.
27227         (rpl_signal): Implement.
27228         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
27229         signal can be called inside handlers.
27230
27231         Fix nanosleep module on mingw.
27232         * modules/nanosleep (Depends-on): Add sys_select.
27233         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
27234
27235         Fix licensing of sigprocmask.
27236         * modules/raise (License): Relicense as LGPL.
27237
27238 2008-06-21  Bruno Haible  <bruno@clisp.org>
27239
27240         * lib/propername.c (proper_name_utf8): Don't use the transliterated
27241         result if it contains question marks.
27242         Reported by Michael Geng <linux@michaelgeng.de>.
27243
27244 2008-06-19  Bruno Haible  <bruno@clisp.org>
27245
27246         Fix CVS-ism.
27247         * doc/gnulib.texi: Include updated-stamp.texi.
27248         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
27249         (updated-stamp.texi): New rule.
27250         (gnulib.info): Depend on it.
27251         * doc/.gitignore: Add updated-stamp.texi.
27252         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
27253
27254 2008-06-19  Bruno Haible  <bruno@clisp.org>
27255
27256         * doc/Makefile (gnulib.info): Update and simplify dependencies.
27257         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
27258
27259 2008-06-19  Eric Blake  <ebb9@byu.net>
27260
27261         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
27262         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
27263         Reported by Stepan Kasal.
27264
27265 2008-06-18  Bruno Haible  <bruno@clisp.org>
27266
27267         * lib/fatal-signal.c (init_fatal_signals): Add comment.
27268         Reported by Eric Blake.
27269
27270 2008-06-18  Eric Blake  <ebb9@byu.net>
27271
27272         Work around cygwin 1.5.25 strsignal bug.
27273         * tests/test-strsignal.c: Allow for const char *.
27274         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
27275
27276 2008-06-18  Simon Josefsson  <simon@josefsson.org>
27277
27278         * users.txt: Update URL to article and add author/date
27279         information.
27280
27281 2008-06-17  Bruno Haible  <bruno@clisp.org>
27282
27283         New macro gl_DISABLE_THREADS.
27284         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
27285         if the user did not pass --enable-threads or --disable-threads option.
27286         (gl_DISABLE_THREADS): New macro.
27287         Reported by Eric Blake <ebb9@byu.net>.
27288
27289 2008-06-17  Bruno Haible  <bruno@clisp.org>
27290
27291         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
27292         when the macro ignores it.
27293         Based on a patch by Eric Blake <ebb9@byu.net>.
27294
27295 2008-06-17  Bruno Haible  <bruno@clisp.org>
27296
27297         * modules/tls (License): Change to LGPLv2+.
27298         Reported by Eric Blake.
27299
27300 2008-06-17  Eric Blake  <ebb9@byu.net>
27301
27302         Simplify c-stack prerequisites.
27303         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
27304         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
27305         no longer requires <ucontext.h> to exist.  Optimize setrlimit
27306         check.
27307         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
27308         <sys/resource.h>.
27309
27310         Move c-stack test into testsuite.
27311         * modules/c-stack-tests: New file.
27312         * lib/c-stack.c [DEBUG]: Move test program...
27313         * tests/test-c-stack.c: ...into this new file.  Skip rather than
27314         fail test if sigaltstack is lacking.
27315         * tests/test-c-stack.sh: New driver file.
27316
27317 2008-06-16  Eric Blake  <ebb9@byu.net>
27318
27319         Use raise module consistently.
27320         * modules/fatal-signal (Depends-on): Add raise.
27321         * modules/sigprocmask (Depends-on): Likewise.
27322         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
27323         * lib/sigprocmask.c (sigprocmask): Likewise.
27324         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
27325         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
27326
27327         Fix compliance bug in sigpending.
27328         * lib/sigprocmask.c (sigpending): Return pending array via
27329         parameter, not return value.
27330
27331 2008-06-14  Eric Blake  <ebb9@byu.net>
27332
27333         Improve obstack-printf test code.
27334         * tests/test-obstack-printf.c (test_function): Fix comment, and
27335         simplify usage of obstack_* in macros.  Add a test for coverage.
27336         Reported by Bruno Haible.
27337
27338 2008-06-14  Bruno Haible  <bruno@clisp.org>
27339
27340         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
27341         array size as a constant, not as a const variable.
27342         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
27343         AC_USE_SYSTEM_EXTENSIONS.
27344         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
27345         Test whether the obstack_printf function actually exists.
27346         * modules/obstack-printf (Depends-on): Add extensions.
27347         (Include): Remove obstack.h.
27348         * modules/obstack-printf-posix (Depends-on): Add extensions.
27349         (Include): Remove obstack.h.
27350
27351 2008-06-13  Eric Blake  <ebb9@byu.net>
27352
27353         Add obstack-printf and obstack-printf-posix modules.
27354         * modules/obstack-printf: New file.
27355         * modules/obstack-printf-posix: Likewise.
27356         * MODULES.html.sh (Misc): Mention them.
27357         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
27358         Likewise.
27359         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
27360         Likewise.
27361         * modules/stdio (Makefile.am): Accomodate new modules.
27362         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
27363         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
27364         Declare.
27365         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
27366         functions.
27367         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
27368         (gl_REPLACE_OBSTACK_PRINTF): New macros
27369         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
27370         * tests/test-obstack-printf.c: New file.
27371         * modules/obstack-printf-tests: Likewise.
27372         * modules/obstack-printf-posix-tests: Likewise.
27373
27374 2008-06-11  Bruno Haible  <bruno@clisp.org>
27375
27376         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
27377         * lib/open.c: Include errno.h.
27378         (open): Fail when attempting to write to a file that has a trailing
27379         slash.
27380         * tests/test-open.c (main): Test against trailing slash bug.
27381         * doc/posix-functions/open.texi: Mention the trailing slash bug.
27382
27383 2008-06-10  Bruno Haible  <bruno@clisp.org>
27384
27385         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
27386         for $? to work inside the trap command, with various /bin/sh-s.
27387         * tests/test-vc-list-files-cvs.sh: Likewise.
27388
27389 2008-06-10  Bruno Haible  <bruno@clisp.org>
27390
27391         * lib/acl-internal.h: Don't include gettext.h here.
27392         * lib/set-mode-acl.c: Include gettext.h here.
27393         * lib/copy-acl.c: Likewise.
27394
27395 2008-06-10  Bruno Haible  <bruno@clisp.org>
27396
27397         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
27398         * lib/wait-process.c (wait_subprocess): Likewise.
27399         * lib/execute.h (execute): Add termsigp argument.
27400         * lib/execute.c (execute): Likewise.
27401         * lib/csharpcomp.c (compile_csharp_using_pnet,
27402         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
27403         * lib/csharpexec.c (execute_csharp_using_pnet,
27404         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
27405         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
27406         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
27407         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
27408         is_jikes_present): Update.
27409         * lib/javaexec.c (execute_java_class): Update.
27410         * lib/javaversion.c (execute_and_read_line): Update.
27411         * NEWS: Document the changes.
27412         Reported by Eric Blake.
27413
27414 2008-06-10  Eric Blake  <ebb9@byu.net>
27415
27416         Add missing include.
27417         * tests/test-strstr.c (includes): Add <signal.h>.
27418         * tests/test-strcasestr.c (includes): Likewise.
27419         * tests/test-memmem.c (includes): Likewise.
27420
27421 2008-06-10  Bruno Haible  <bruno@clisp.org>
27422
27423         * lib/wait-process.c (wait_subprocess): Add an assertion.
27424
27425 2008-06-10  Bruno Haible  <bruno@clisp.org>
27426
27427         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
27428
27429 2008-06-10  Bruno Haible  <bruno@clisp.org>
27430
27431         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
27432         using alarm().
27433         * tests/test-strcasestr.c (main): Likewise.
27434         * tests/test-strstr.c (main): Likewise.
27435
27436 2008-06-09  Bruno Haible  <bruno@clisp.org>
27437
27438         Work around the Solaris 10 ACE ACLs ABI change.
27439         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
27440         declare if ACL_NO_TRIVIAL is present.
27441         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
27442         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
27443         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
27444         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
27445         define if ACL_NO_TRIVIAL is present.
27446         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
27447         and use the current ABI.
27448         (file_has_acl): Use same #if condition as elsewhere.
27449         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
27450         in use, and use the current ABI.
27451         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
27452         Reported by Jim Meyering.
27453
27454 2008-06-09  Eric Blake  <ebb9@byu.net>
27455
27456         Work around environments that (stupidly) ignore SIGALRM.
27457         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
27458         before using alarm().
27459         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
27460         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
27461         Reported by Ian Beckwith <ianb@erislabs.net>.
27462
27463         Produce autobuild blurb earlier in log.
27464         * modules/autobuild (configure.ac-early): Move AB_INIT here.
27465
27466 2008-06-09  Jim Meyering  <meyering@redhat.com>
27467         and Ondřej Vašík  <ovasik@redhat.com>
27468
27469         utimens.c: correct kernel bug work-around
27470         Ondřej Vašík found that the invalid return value of 280 indicates
27471         failure, not success, and the kernel bug we're trying to work
27472         around affects not just the utimensat call, but also the fallback
27473         futimens call.
27474         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
27475         not success.
27476         [HAVE_FUTIMENS]: Use the same work-around, here.
27477
27478 2008-06-09  Jim Meyering  <meyering@redhat.com>
27479
27480         add more guards around definition of ACE_-related code
27481         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
27482         ALLOW and ACE_OWNER are also defined.
27483
27484 2008-06-08  Bruno Haible  <bruno@clisp.org>
27485
27486         * lib/acl-internal.h: Add me as co-author.
27487         * lib/file-has-acl.c: Likewise.
27488         * lib/set-mode-acl.c: Likewise.
27489         * lib/copy-acl.c: Likewise.
27490
27491 2008-06-08  Bruno Haible  <bruno@clisp.org>
27492
27493         Add support for AIX ACLs.
27494         * lib/acl-internal.h (acl_nontrivial): New declaration.
27495         * lib/file-has-acl.c (acl_nontrivial): New function.
27496         (file_has_acl): Add implementation using AIX 4 ACL API.
27497         * lib/set-mode-acl.c (qset_acl): Likewise.
27498         * lib/copy-acl.c (qcopy_acl): Likewise.
27499
27500 2008-06-08  Bruno Haible  <bruno@clisp.org>
27501
27502         Add support for HP-UX ACLs.
27503         * lib/acl-internal.h (acl_nontrivial): New declaration.
27504         * lib/file-has-acl.c (acl_nontrivial): New function.
27505         (file_has_acl): Add implementation using HP-UX 11 ACL API.
27506         * lib/set-mode-acl.c (qset_acl): Likewise.
27507         * lib/copy-acl.c (qcopy_acl): Likewise.
27508
27509 2008-06-08  Bruno Haible  <bruno@clisp.org>
27510
27511         Add support for Cygwin ACLs.
27512         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
27513         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
27514         the chmod_or_fchmod call.
27515         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
27516
27517 2008-06-08  Bruno Haible  <bruno@clisp.org>
27518
27519         Fix bug with setuid modes in Solaris 10+ code.
27520         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
27521         succeeded, when the mode contains some special bits.
27522
27523 2008-06-08  Bruno Haible  <bruno@clisp.org>
27524
27525         Add support for Solaris 7..10 ACLs.
27526         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
27527         declarations.
27528         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
27529         functions.
27530         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
27531         * lib/set-mode-acl.c (qset_acl): Likewise.
27532         * lib/copy-acl.c (qcopy_acl): Likewise.
27533
27534 2008-06-08  Bruno Haible  <bruno@clisp.org>
27535
27536         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
27537         declaration.
27538         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
27539         (acl_access_nontrivial): Remove MacOS X case.
27540         (file_has_acl): Use acl_extended_nontrivial.
27541         * lib/copy-acl.c (qcopy_acl): Likewise.
27542
27543 2008-06-08  Bruno Haible  <bruno@clisp.org>
27544
27545         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
27546
27547 2008-06-08  Jim Meyering  <meyering@redhat.com>
27548
27549         * modules/acl (Maintainer): Add Bruno Haible.
27550
27551 2008-06-07  Bruno Haible  <bruno@clisp.org>
27552
27553         Improve support for Tru64 ACLs.
27554         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
27555         ACL on OSF/1.
27556
27557 2008-06-07  Bruno Haible  <bruno@clisp.org>
27558
27559         Add support for MacOS X ACLs.
27560         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
27561         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
27562         * lib/set-mode-acl.c (qset_acl): Likewise.
27563         * lib/copy-acl.c (qcopy_acl): Likewise.
27564
27565 2008-06-07  Bruno Haible  <bruno@clisp.org>
27566
27567         Fix memory leak introduced on 2008-05-22.
27568         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
27569         use.
27570
27571 2008-06-07  Bruno Haible  <bruno@clisp.org>
27572
27573         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
27574         to construct an empty ACL.
27575
27576 2008-06-07  Bruno Haible  <bruno@clisp.org>
27577
27578         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
27579         precisely.
27580         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
27581
27582 2008-06-07  Bruno Haible  <bruno@clisp.org>
27583
27584         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
27585         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
27586
27587 2008-06-07  Bruno Haible  <bruno@clisp.org>
27588
27589         * doc/posix-functions/_setjmp.texi: Explain the use of this function
27590         regardless of POSIX.
27591         * doc/posix-functions/_longjmp.texi: Likewise.
27592         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
27593         SystemV platform in this case.
27594
27595 2008-06-06  Eric Blake  <ebb9@byu.net>
27596
27597         Document abort() bugs.
27598         * doc/posix-functions/abort.texi (abort): Mention anomalies.
27599
27600         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
27601         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
27602         sigsetjmp.
27603         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
27604         siglongjmp, but only as a macro.
27605         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
27606         is obsolete.
27607         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
27608
27609         Tweak documentation to cover cygwin argz bugs.
27610         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
27611         argz bug fix; no code change needed since no cygwin releases
27612         occurred between the last fix and the bug being tested.
27613         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
27614         module and recently fixed cygwin bugs.
27615         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
27616         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
27617         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
27618         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
27619         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
27620         Likewise.
27621         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
27622         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
27623         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
27624         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
27625         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
27626         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
27627         Likewise.
27628
27629         Avoid gcc warning on cygwin.
27630         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
27631         !ACL_NO_TRIVIAL]: Avoid unused variable.
27632
27633 2008-06-05  Eric Blake  <ebb9@byu.net>
27634
27635         Be tolerant of UNKNOWN version in gnulib-tool test dir.
27636         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
27637         git-version-gen fails to come up with a version.
27638         Reported by Simon Josefsson.
27639
27640 2008-06-05  Jim Meyering  <meyering@redhat.com>
27641             Paul Eggert  <eggert@cs.ucla.edu>
27642
27643         utimens.c: work around a probable Linux kernel bug
27644         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
27645         appears to be a kernel bug that causes utimensat to return 280
27646         instead of 0, indicating success.
27647
27648 2008-06-04  Bruno Haible  <bruno@clisp.org>
27649
27650         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
27651         2008-06-01 commit.
27652
27653 2008-06-04  Bruno Haible  <bruno@clisp.org>
27654
27655         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
27656         * lib/file-has-acl.c (acl_access_nontrivial): New function.
27657         (file_has_acl): Use it. Save errno afterwards.
27658         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
27659
27660 2008-06-03  Bruno Haible  <bruno@clisp.org>
27661
27662         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
27663         draft code. Simplify #ifs.
27664         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
27665         Put Solaris code after POSIX-draft code. Fix comments regarding
27666         Solaris 10, HP-UX. Mention Cygwin.
27667         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
27668
27669 2008-06-03  Eric Blake  <ebb9@byu.net>
27670
27671         Provide fallback for older kernels.
27672         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
27673         Provide runtime fallback if kernel lacks support.
27674         Reported by Mike Frysinger.
27675
27676 2008-06-02  Bruno Haible  <bruno@clisp.org>
27677
27678         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
27679         it exists.
27680
27681 2008-06-02  Bruno Haible  <bruno@clisp.org>
27682
27683         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
27684         * lib/copy-acl.c (qcopy_acl): Update comment.
27685
27686 2008-06-02  Bruno Haible  <bruno@clisp.org>
27687
27688         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
27689         like ACL APIs.
27690
27691 2008-06-02  Bruno Haible  <bruno@clisp.org>
27692
27693         * tests/test-file-has-acl.sh: Use different code for Cygwin.
27694         * tests/test-set-mode-acl.sh: Likewise.
27695         * tests/test-copy-acl.sh: Likewise.
27696         * tests/test-copy-file.sh: Likewise.
27697
27698 2008-06-02  Bruno Haible  <bruno@clisp.org>
27699
27700         * tests/test-file-has-acl.sh: Remove unused code.
27701
27702 2008-06-01  Bruno Haible  <bruno@clisp.org>
27703
27704         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
27705         (copy_acl): Just a wrapper around qcopy_acl that emits the error
27706         messages.
27707         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
27708
27709 2008-06-01  Bruno Haible  <bruno@clisp.org>
27710
27711         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
27712         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
27713         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
27714         APIs.
27715         * modules/acl-tests (configure.ac): Remove tests now contained in
27716         m4/acl.m4.
27717
27718 2008-06-02  Jim Meyering  <meyering@redhat.com>
27719
27720         announce-gen: use a better key-server host name
27721         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
27722         it may be more consistently reliable.  Suggested by Werner Koch
27723         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
27724
27725 2008-06-01  Bruno Haible  <bruno@clisp.org>
27726
27727         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
27728         Reported by Voroskoi Andras <voroskoi@gmail.com>.
27729
27730 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
27731
27732         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
27733
27734 2008-06-01  Bruno Haible  <bruno@clisp.org>
27735
27736         New ACL tests.
27737         * tests/test-file-has-acl.sh: New file.
27738         * tests/test-file-has-acl.c: New file.
27739         * tests/test-set-mode-acl.sh: New file.
27740         * tests/test-set-mode-acl.c: New file.
27741         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
27742         * tests/test-copy-acl.c: New file.
27743         * modules/acl-tests: New file, based on modules/copy-file-tests.
27744         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
27745         (Depends-on): Add acl-tests.
27746         (configure.ac): Remove checks.
27747         (Makefile.am): Don't create test-sameacls program here any more.
27748
27749 2008-06-01  Bruno Haible  <bruno@clisp.org>
27750
27751         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
27752         * tests/test-sameacls.c: Include progname.h.
27753         (main): Invoke set_program_name. Portability fixes for MacOS X,
27754         Solaris, HP-UX.
27755
27756 2008-06-01  Bruno Haible  <bruno@clisp.org>
27757
27758         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
27759         function.
27760         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
27761
27762 2008-06-01  Bruno Haible  <bruno@clisp.org>
27763
27764         * modules/rpmatch (Depends-on): Add strdup.
27765
27766 2008-06-01  Bruno Haible  <bruno@clisp.org>
27767
27768         * lib/pipe.c: Include unistd-safer.h.
27769         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
27770         * modules/pipe (Depends-on): Add unistd-safer.
27771
27772 2008-05-30  Simon Josefsson  <simon@josefsson.org>
27773
27774         * modules/autobuild (configure.ac): Call AB_INIT.
27775
27776 2008-05-30  Simon Josefsson  <simon@josefsson.org>
27777
27778         * tests/test-getaddrinfo.c: Don't print debug messages by default.
27779         Suggested by Bruno Haible <bruno@clisp.org>.
27780
27781 2008-05-30  Simon Josefsson  <simon@josefsson.org>
27782
27783         * tests/test-base64.c: Cast size_t to unsigned long when invoking
27784         printf.  Use %lu instead of %d.  Reported by Bruno Haible
27785         <bruno@clisp.org>.
27786
27787 2008-05-29  Eric Blake  <ebb9@byu.net>
27788
27789         Prefer new POSIX 200x interfaces over futimesat.
27790         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
27791         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
27792         when available.
27793         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
27794
27795 2008-05-28  Bruno Haible  <bruno@clisp.org>
27796
27797         * modules/stpcpy (License): Change to LGPLv2+.
27798         Requested by David Lutterkort <dlutter@redhat.com>.
27799
27800 2008-05-27  Bruno Haible  <bruno@clisp.org>
27801
27802         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
27803         current mingw.
27804         Reported by Jose E. Marchesi <jemarch@gnu.org>.
27805
27806 2008-05-27  Bruno Haible  <bruno@clisp.org>
27807
27808         * modules/iconv_open (Link): New section, from module 'iconv'.
27809         * modules/striconv (Link): Likewise.
27810         * modules/striconveh (Link): Likewise.
27811         * modules/xstriconv (Link): Likewise.
27812         * modules/unicodeio (Link): Likewise.
27813         * modules/propername (Link): Likewise.
27814         Reported by Jim Meyering.
27815
27816 2008-05-26  Jim Meyering  <meyering@redhat.com>
27817
27818         sha256: do not artificially restrict buffer length to be < 2^32
27819         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
27820         uint32_t to size_t.
27821         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
27822         to match.
27823
27824         avoid unaligned access errors, e.g., on sparc
27825         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
27826         direct access through a possibly-unaligned uint64* pointer.
27827         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
27828         direct access through a possibly-unaligned uint32* pointer.
27829         Prompted by this patch from Tom "spot" Callaway:
27830         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
27831
27832         sha512.c: fix typo in comment
27833         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
27834
27835 2008-05-25  Bruno Haible  <bruno@clisp.org>
27836
27837         * lib/set-mode-acl.c: Renamed from lib/acl.c.
27838         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
27839         (Makefile.am): Update lib_SOURCES.
27840
27841 2008-05-25  Bruno Haible  <bruno@clisp.org>
27842
27843         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
27844
27845 2008-05-25  Jim Meyering  <meyering@redhat.com>
27846
27847         useless-if-before-free: freed expr may have white-space differences
27848         * build-aux/useless-if-before-free: Recognize cases in which the
27849         freed expression differs from the tested one in embedded white
27850         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
27851         $1 was used, so we can't make any regexp shy.  Improved tests now
27852         detect this.
27853
27854         useless-if-before-free: accept white space in the expression.
27855         * build-aux/useless-if-before-free: For now, any white space
27856         in the expression must be identical in the free argument.
27857
27858         useless-if-before-free: efficiency tweak
27859         * build-aux/useless-if-before-free: Make the expression-matching
27860         regexp "shy".
27861         Make the *outer* regexp shy, not the expr-matching one.
27862
27863         update code-in-comment to accept cast of free arg
27864         * build-aux/useless-if-before-free: Update regexp.
27865
27866 2008-05-25  Bruno Haible  <bruno@clisp.org>
27867
27868         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
27869         * modules/copy-file-tests (Files, Makefile.am): Update.
27870         * tests/test-copy-file.c (func_test_copy): Update.
27871
27872 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
27873
27874         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
27875
27876 2008-05-23  Bruno Haible  <bruno@clisp.org>
27877
27878         Improve support for ACLs on OSF/1.
27879         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
27880         Remove fallback for unknown flavors of ACLs.
27881
27882 2008-05-22  Bruno Haible  <bruno@clisp.org>
27883
27884         Add support for ACLs on OSF/1.
27885         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
27886         replacements.
27887         (acl_free_text): New macro fallback.
27888         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
27889         acl_free.
27890         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
27891         acl_free_text function. Require AC_C_INLINE.
27892
27893 2008-05-22  Bruno Haible  <bruno@clisp.org>
27894
27895         Make copy_acl work on MacOS X 10.5.
27896         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
27897         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
27898         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
27899         If MODE_INSIDE_ACL, don't assume that every system has the same text
27900         representation for ACLs as FreeBSD.
27901         * lib/copy-acl.c (copy_acl): Add support for platforms with
27902         !MODE_INSIDE_ACL.
27903         * lib/file-has-acl.c (file_has_acl): Likewise.
27904         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
27905         FreeBSD, MacOS X, or IRIX, respectively.
27906
27907 2008-05-22  Bruno Haible  <bruno@clisp.org>
27908
27909         * lib/acl.h: Don't include <sys/acl.h>.
27910         (GETACLCNT): Move fallback to lib/acl-internal.h.
27911         * lib/acl-internal.h: Include <sys/acl.h> here.
27912         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
27913
27914 2008-05-22  Bruno Haible  <bruno@clisp.org>
27915
27916         Split off copy_acl function to separate file.
27917         * lib/copy-acl.c: New file, extracted from lib/acl.c.
27918         * lib/acl.c (copy_acl): Moved function to separate file.
27919         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
27920         * modules/acl (Files): Add lib/copy-acl.c.
27921         (Makefiles.am): Augment lib_SOURCES.
27922
27923 2008-05-22  Bruno Haible  <bruno@clisp.org>
27924
27925         * modules/copy-file-tests: New file.
27926         * tests/test-copy-file.sh: New file.
27927         * tests/test-copy-file.c: New file.
27928         * tests/test-copy-file-sameacls.c: New file.
27929
27930 2008-05-22  Eric Blake  <ebb9@byu.net>
27931
27932         Avoid gcc warning.
27933         * tests/test-memcmp.c (main): Pass NULL indirectly.
27934
27935 2008-05-21  Bruno Haible  <bruno@clisp.org>
27936
27937         Add reference doc about ACLs.
27938         * doc/acl-resources.txt: New file.
27939         * doc/acl-cygwin.txt: New file.
27940
27941 2008-05-21  Bruno Haible  <bruno@clisp.org>
27942
27943         Avoid one more warning from gcc.
27944         * lib/vasnprintf.c (IF_LINT): Update comments.
27945         (VASNPRINTF): Use it also for the 'prefix' array initializer.
27946
27947 2008-05-21  Jim Meyering  <meyering@redhat.com>
27948
27949         avoid a warning from gcc
27950         * lib/vasnprintf.c (IF_LINT): Define.
27951         (scale10_round_decimal_long_double):
27952         Use it to avoid a "may be used uninitialized" warning.
27953         (scale10_round_decimal_double): Likewise.
27954
27955 2008-05-21  Simon Josefsson  <simon@josefsson.org>
27956
27957         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
27958         declared.
27959
27960 2008-05-20  Bruno Haible  <bruno@clisp.org>
27961
27962         * tests/test-memcmp.c (main): Test also the sign of the result. Test
27963         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
27964
27965 2008-05-20  Simon Josefsson  <simon@josefsson.org>
27966
27967         * modules/memcmp-tests: New file.
27968         * tests/test-memcmp.c: New file.
27969
27970 2008-05-19  Bruno Haible  <bruno@clisp.org>
27971
27972         * modules/propername (Notice, configure.ac): Put quoted "..." into
27973         --keyword option.
27974         * lib/propername.h: Update comments accordingly.
27975         Reported by Eric Blake.
27976
27977 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
27978
27979         * modules/getpass-gnu (Depends-on): Add fseeko.
27980
27981 2008-05-19  Simon Josefsson  <simon@josefsson.org>
27982
27983         * modules/base64-tests: New file.
27984
27985 2008-05-19  Bo Borgerson <gigabo@gmail.com>
27986
27987         * lib/base64.c (base64_decode_ctx): If a decode context structure
27988         was passed in use it to ignore newlines.  If a context structure
27989         was _not_ passed in, continue to treat newlines as garbage (this
27990         is the historical behavior).  Formerly base64_decode.
27991         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
27992         takes a decode context structure.
27993         * lib/base64.h (base64_decode): Macro for four-argument calls.
27994         (base64_decode_alloc): Likewise.
27995         * lib/base64.c (base64_decode_ctx): If a decode context structure
27996         was passed in use it to ignore newlines.  If a context structure
27997         was _not_ passed in, continue to treat newlines as garbage (this
27998         is the historical behavior).  Formerly base64_decode.
27999         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
28000         takes a decode context structure.
28001         * lib/base64.h (base64_decode): Macro for four-argument calls.
28002         (base64_decode_alloc): Likewise.
28003
28004 2008-05-19  Jim Meyering  <meyering@redhat.com>
28005
28006         avoid a warning from gcc
28007         * lib/trim.c (IF_LINT): Define.
28008         (trim2): Use it to avoid a "may be used uninitialized" warning.
28009
28010         Fix doc typo.
28011         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
28012
28013 2008-05-19  Bruno Haible  <bruno@clisp.org>
28014
28015         * doc/glibc-functions/getpass.texi: Document limits of other
28016         implementations.
28017
28018 2008-05-19  Simon Josefsson  <simon@josefsson.org>
28019             Bruno Haible <bruno@clisp.org>
28020
28021         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
28022
28023 2008-05-18  Bruno Haible  <bruno@clisp.org>
28024
28025         * modules/propername: New file, from GNU gettext.
28026         * lib/propername.h: New file, from GNU gettext.
28027         * lib/propername.c: New file, from GNU gettext.
28028         * MODULES.html.sh (Internationalization functions): Add propername.
28029
28030 2008-05-16  Jim Meyering  <meyering@redhat.com>
28031             Bruno Haible  <bruno@clisp.org>
28032
28033         Avoid some warnings from "gcc -Wshadow".
28034         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
28035
28036 2008-05-15  Eric Blake  <ebb9@byu.net>
28037
28038         Extend previous patch to cygwin 1.7.0.
28039         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
28040         fast implementation in cygwin >= 1.7.0.
28041         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
28042         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
28043
28044 2008-05-15  Bruno Haible  <bruno@clisp.org>
28045
28046         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
28047         implementation in glibc >= 2.9.
28048         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
28049         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
28050
28051 2008-05-15  Bruno Haible  <bruno@clisp.org>
28052
28053         * MODULES.html.sh (Internationalization functions): Remove linebreak.
28054         (Unicode string functions): Add unilbrk/*.
28055         Reported by Karl Berry.
28056
28057 2008-05-15  Eric Blake  <ebb9@byu.net>
28058
28059         Fix violation of <stdbool.h> replacement in regex.
28060         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
28061         * lib/regexec.c (re_search_internal): Likewise.
28062         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
28063
28064 2008-05-15  Jim Meyering  <meyering@redhat.com>
28065
28066         avoid distracting test output when git or cvs is not found
28067         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
28068         * tests/test-vc-list-files-git.sh: Likewise.
28069
28070 2008-05-15  Eric Blake  <ebb9@byu.net>
28071
28072         Glibc finally accepted the memmem speedup code, bugzilla #5514.
28073         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
28074         glibc version.
28075         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
28076         * doc/posix-functions/strstr.texi (strstr): Likewise.
28077         * lib/str-two-way.h (MAX): Sychronize with glibc.
28078
28079 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
28080
28081         * lib/regcomp.c (optimize_utf8): Add a note on why we test
28082         opr.ctx_type.
28083         (calc_first): Initialize constraint field.
28084         (duplicate_node_closure): Use it instead of special casing ANCHORS.
28085         Fix grammar.
28086         (duplicate_node): Merge constraint field for all node types.
28087         (calc_eclosure_iter): Look at constraint field for all node types.
28088         * lib/regex_internal.c (create_cd_newstate): Don't look at
28089         opr.ctx_type.
28090
28091 2008-05-14  Bruno Haible  <bruno@clisp.org>
28092
28093         Help GCC to do better code generation.
28094         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
28095         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
28096         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
28097         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
28098         Declare with attribute 'malloc' if supported.
28099
28100 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
28101
28102         use "echo STR|wc -c" rather than unportable "expr length STR"
28103         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
28104         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
28105
28106 2008-05-14  Jim Meyering  <meyering@redhat.com>
28107
28108         use dd ibs=$n count=1 ... rather than less-portable head -c$n
28109         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
28110         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
28111         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
28112         via Collin Lasse.
28113
28114 2008-05-14  Eric Blake  <ebb9@byu.net>
28115
28116         Avoid quadratic growth in gl_LIBSOURCES.
28117         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
28118         Suggested by Bruno Haible.
28119
28120         Test xmemdup0.
28121         * modules/xmemdup0-tests: New file.
28122         * tests/test-xmemdup0.c: Likewise.
28123
28124 2008-05-13  Eric Blake  <ebb9@byu.net>
28125
28126         Split xmemdup0 into its own module.
28127         * modules/xmemdup0: New file.
28128         * lib/xmemdup0.h: Likewise.
28129         * lib/xmemdup0.c: Likewise.
28130         * MODULES.html.sh (Memory management functions): Add xmemdup0.
28131         * lib/xalloc.h (xmemdup0): Remove.
28132         * lib/xmalloc.c (xmemdup0): Likewise.
28133
28134 2008-05-13  Eric Blake  <ebb9@byu.net>
28135             Bruno Haible  <bruno@clisp.org>
28136
28137         Reduce number of forks required during autoconf.
28138         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
28139         and gl_LIBSOURCES_DIR.
28140         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
28141         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
28142         m4_syscmd per file.
28143         <m4_foreach_w>: Move...
28144         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
28145
28146 2008-05-13  Eric Blake  <ebb9@byu.net>
28147
28148         * gnulib-tool: Fix various comment typos.
28149
28150 2008-05-12  Bruno Haible  <bruno@clisp.org>
28151
28152         Tailor the linebreaking algorithm.
28153         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
28154
28155 2008-05-12  Bruno Haible  <bruno@clisp.org>
28156
28157         Update to Unicode 5.0.0.
28158         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
28159         LBP_JV, LBP_JT. Redistribute values.
28160         (unilbrk_table): Change size.
28161         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
28162         Unicode TR#14 rev. 22.
28163         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
28164         LBP_JV, LBP_JT. Redistribute values.
28165         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
28166         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
28167         Update.
28168         * lib/unilbrk/lbrkprop1.h: Regenerated.
28169         * lib/unilbrk/lbrkprop2.h: Regenerated.
28170         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
28171         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
28172         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
28173         Likewise.
28174         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
28175         Likewise.
28176         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
28177         result.
28178         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
28179         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
28180         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
28181         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
28182         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
28183         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
28184
28185 2008-05-11  Bruno Haible  <bruno@clisp.org>
28186
28187         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
28188
28189 2008-05-11  Bruno Haible  <bruno@clisp.org>
28190
28191         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
28192         * modules/unilbrk/gen-lbrk: New file.
28193
28194 2008-05-11  Bruno Haible  <bruno@clisp.org>
28195
28196         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
28197         * m4/sha512.m4 (gl_SHA512): Likewise.
28198
28199 2008-05-11  Jim Meyering  <meyering@redhat.com>
28200
28201         New modules: crypto/sha256, crypto/sha512 (from coreutils)
28202         * modules/crypto/sha256: New file.
28203         * modules/crypto/sha512: Likewise.
28204         * lib/sha256.c: Likewise.
28205         * lib/sha256.h: Likewise.
28206         * lib/sha512.c: Likewise.
28207         * lib/sha512.h: Likewise.
28208         * lib/u64.h: Likewise.
28209         * m4/sha256.m4: Likewise.
28210         * m4/sha512.m4: Likewise.
28211         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
28212
28213 2008-05-10  Bruno Haible  <bruno@clisp.org>
28214
28215         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
28216         (Input/Output <stdio.h>): Add xprintf.
28217         (Signal handling <signal.h>): Add strsignal.
28218         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
28219         (Core language properties): Add func.
28220         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
28221         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
28222         strings.
28223         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
28224         (Input/output): New section.
28225         (File system functions): Add openat-die, stat-macros.
28226         (Networking functions): Add sockets.
28227         (Unicode string functions): Add unictype/*.
28228         (Support for building libraries and executables): Add gperf.
28229         (Support for building documentation): Add agpl-3.0.
28230         (Misc): Add nocrash.
28231
28232 2008-05-10  Bruno Haible  <bruno@clisp.org>
28233
28234         * modules/unictype/gen-ctype: New file.
28235
28236 2008-05-10  Jim Meyering  <meyering@redhat.com>
28237
28238         Make chdir-safer.c more efficient on a system with no symlinks.
28239         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
28240         also if ELOOP is zero.  Suggested by Bruno Haible.
28241
28242         Make chdir-safer.c slightly safer.
28243         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
28244         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
28245
28246         Avoid compile failure on systems without ELOOP (like mingw).
28247         * lib/chdir-safer.c (ELOOP): Define if not already defined.
28248         Reported by Bruno Haible.
28249
28250 2008-05-10  Bruno Haible  <bruno@clisp.org>
28251
28252         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
28253         (is_utf8_encoding): Use a case-insensitive comparison.
28254         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
28255         streq.
28256
28257 2008-05-10  Bruno Haible  <bruno@clisp.org>
28258
28259         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
28260         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
28261         * lib/unilbrk/ulc-common.h (iconv_string_length,
28262         iconv_string_keeping_offsets): Remove declarations.
28263         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
28264         Don't include <iconv.h>, streq.h, xsize.h.
28265         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
28266         conversion.
28267         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
28268         <iconv.h>, streq.h, xsize.h.
28269         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
28270         conversion.
28271         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
28272         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
28273         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
28274         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
28275
28276 2008-05-10  Bruno Haible  <bruno@clisp.org>
28277
28278         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
28279         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
28280
28281         * modules/unilbrk/u32-width-linebreaks-tests: New file.
28282         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
28283
28284         * modules/unilbrk/u16-width-linebreaks-tests: New file.
28285         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
28286
28287         * modules/unilbrk/u8-width-linebreaks-tests: New file.
28288         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
28289
28290         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
28291         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
28292
28293         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
28294         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
28295
28296         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
28297         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
28298
28299         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
28300         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
28301
28302 2008-05-10  Bruno Haible  <bruno@clisp.org>
28303
28304         Split up 'linebreak' module.
28305         * lib/unilbrk.h: New file, based on lib/linebreak.h.
28306         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
28307         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
28308         modifications.
28309         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
28310         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
28311         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
28312         lib/linebreak.c.
28313         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
28314         lib/linebreak.c.
28315         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
28316         lib/linebreak.c.
28317         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
28318         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
28319         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
28320         lib/linebreak.c.
28321         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
28322         lib/linebreak.c.
28323         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
28324         lib/linebreak.c.
28325         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
28326         lib/linebreak.c.
28327         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
28328         lib/linebreak.c.
28329         * modules/unilbrk/base: New file.
28330         * modules/unilbrk/tables: New file.
28331         * modules/unilbrk/u8-possible-linebreaks: New file.
28332         * modules/unilbrk/u16-possible-linebreaks: New file.
28333         * modules/unilbrk/u32-possible-linebreaks: New file.
28334         * modules/unilbrk/ulc-common: New file.
28335         * modules/unilbrk/ulc-possible-linebreaks: New file.
28336         * modules/unilbrk/u8-width-linebreaks: New file.
28337         * modules/unilbrk/u16-width-linebreaks: New file.
28338         * modules/unilbrk/u32-width-linebreaks: New file.
28339         * modules/unilbrk/ulc-width-linebreaks: New file.
28340         * lib/linebreak.h: Remove file.
28341         * lib/linebreak.c: Remove file.
28342         * m4/linebreak.m4: Remove file.
28343         * modules/linebreak: Remove file.
28344         * NEWS: Mention the changes.
28345
28346 2008-05-09  Eric Blake  <ebb9@byu.net>
28347
28348         Add xmemdup0.
28349         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
28350         implementation.
28351         * lib/xmalloc.c (xmemdup0): New C implementation.
28352
28353 2008-05-08  Bruno Haible  <bruno@clisp.org>
28354
28355         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
28356
28357 2008-05-07  Eric Blake  <ebb9@byu.net>
28358
28359         Support cross-compilation of <wctype.h>.
28360         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
28361         AC_CACHE_CHECK.
28362
28363 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
28364
28365         * build-aux/vc-list-files: Add support for bzr.
28366
28367 2008-05-03  Jim Meyering  <meyering@redhat.com>
28368
28369         avoid failed assertion with tight malloc
28370         * tests/test-getndelim2.c: Correct an off-by-one assertion.
28371
28372 2008-05-03  Simon Josefsson  <simon@josefsson.org>
28373
28374         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
28375         are needed from arpa/inet.h.
28376         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
28377         Reported by Bruno Haible.
28378
28379 2008-05-02  Jim Meyering  <meyering@redhat.com>
28380
28381         avoid compilation error on FreeBSD 6
28382         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
28383
28384 2008-05-01  Jim Meyering  <meyering@redhat.com>
28385
28386         useless-if-before-free: correct --help's exit status description
28387         * build-aux/useless-if-before-free (usage): Like grep, exit 0
28388         for one or more matches, etc.  Reported by Bruno Haible.
28389
28390         vc-list-files: make the stand-alone gnulib test work
28391         * modules/vc-list-files-tests (configure.ac):
28392         Define and AC_SUBST abs_aux_dir.
28393         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
28394         $(abs_top_srcdir) to each script and having each of them
28395         duplicate the work of setting PATH, set PATH here, using
28396         the new variable, abs_aux_dir instead.
28397         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
28398         * tests/test-vc-list-files-git.sh: Likewise.
28399         Reported by Bruno Haible.
28400
28401 2008-05-01  Bruno Haible  <bruno@clisp.org>
28402
28403         * lib/getndelim2.c (getndelim2): Fix newsize computation during
28404         reallocation. Rename 'done' to 'found_delimiter'.
28405
28406 2008-05-01  Jim Meyering  <meyering@redhat.com>
28407
28408         vc-list-files: accommodate /bin/sh like the one from Solaris 10
28409         * build-aux/vc-list-files: Use `...`, not $(...).
28410
28411 2008-04-30  Jim Meyering  <meyering@redhat.com>
28412
28413         add tests for vc-list-files
28414         * modules/vc-list-files-tests: New module.
28415         * tests/test-vc-list-files-cvs.sh: New file.
28416         * tests/test-vc-list-files-git.sh: New file.
28417
28418         avoid a warning from gcc
28419         * lib/getndelim2.c (IF_LINT): Define.
28420         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
28421
28422         vc-list-files: work properly with build-aux/cvsu, too
28423         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
28424         to all cvs-based clauses.
28425
28426         vc-list-files: work properly in the CVS+awk case, too
28427         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
28428
28429         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
28430         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
28431         take more than one file argument, so .  Add quotes, just in case $dir
28432         ever contains a shell meta-character.  Prompted by Soren Hansen in
28433         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
28434
28435 2008-04-29  Eric Blake  <ebb9@byu.net>
28436
28437         Optimize getndelim2 to use block operations when possible.
28438         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
28439         freadseek, and memchr2.
28440         * lib/getndelim2.c (getndelim2): Use them for block reads.
28441
28442 2008-04-29  Bruno Haible  <bruno@clisp.org>
28443
28444         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
28445         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
28446         * modules/inet_ntop (Depends-on): Add extensions.
28447         * modules/inet_pton (Depends-on): Likewise.
28448         Reported by Simon Josefsson.
28449
28450 2008-04-29  Jim Meyering  <meyering@redhat.com>
28451
28452         When the is more than one match in a block, match all of them.
28453         * build-aux/useless-if-before-free: Iterate through each block
28454         until there are no more matches.
28455
28456         Fix broken useless-if-before-free script.
28457         * build-aux/useless-if-before-free: Fix typo: missing "?" after
28458         the expression to match cast of argument to free-like function.
28459
28460 2008-04-29  Eric Blake  <ebb9@byu.net>
28461
28462         Use new header.
28463         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
28464
28465 2008-04-29  Jim Meyering  <meyering@redhat.com>
28466
28467         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
28468         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
28469         by gnulib to exist and to declare e.g., inet_ntop.
28470         Don't include "inet_ntop.h", now removed.
28471
28472         * m4/arpa_inet_h.m4: Remove trailing blanks.
28473
28474 2008-04-29  Eric Blake  <ebb9@byu.net>
28475
28476         Silence valgrind on safe reads beyond potential array bounds.
28477         * lib/rawmemchr.valgrind: New file.
28478         * lib/strchrnul.valgrind: Likewise.
28479         * modules/rawmemchr (Files): Distribute new file.
28480         * modules/strchrnul (Files): Likewise.
28481         Suggested by Bruno Haible.
28482
28483 2008-04-29  Bruno Haible  <bruno@clisp.org>
28484
28485         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
28486         (inet_ntop, inet_pton): Change portability warning's wording.
28487         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
28488         Invoke gl_CHECK_NEXT_HEADERS.
28489         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
28490         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
28491         set ARPA_INET_H.
28492         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
28493         * modules/arpa_inet (Description): No longer only for systems that
28494         lack it.
28495         (Depends-on): Add include_next.
28496         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
28497         HAVE_ARPA_INET_H.
28498
28499 2008-04-29  Jim Meyering  <meyering@redhat.com>
28500
28501         * modules/mkdir (License): Re-license as LGPLv2+.
28502
28503 2008-04-29  Bruno Haible  <bruno@clisp.org>
28504
28505         * modules/rawmemchr (Maintainer): Set to Eric.
28506         * modules/strchrnul (Maintainer): Likewise.
28507
28508 2008-04-29  Simon Josefsson  <simon@josefsson.org>
28509
28510         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
28511         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
28512
28513         * modules/arpa_inet (arpa/inet.h): Use them.
28514
28515 2008-04-28  Eric Blake  <ebb9@byu.net>
28516
28517         Test getndelim2.
28518         * modules/getndelim2-tests: New file.
28519         * tests/test-getndelim2.c: Likewise.
28520         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
28521         stream.
28522         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
28523
28524         * MODULES.html.sh: Document new module.
28525
28526 2008-04-20  Bruno Haible  <bruno@clisp.org>
28527
28528         * lib/c-stack.c (die): Use raise.
28529         * modules/c-stack (Depends-on): Add raise.
28530
28531 2008-04-28  Bruno Haible  <bruno@clisp.org>
28532
28533         Expect rpmatch to be declared.
28534         * lib/yesno.c (rpmatch): Remove declaration.
28535
28536         Declare rpmatch.
28537         * lib/stdlib.in.h (rpmatch): New declaration.
28538         * lib/rpmatch.c: Include <stdlib.h> first.
28539         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
28540         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
28541         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
28542         HAVE_RPMATCH.
28543         * modules/rpmatch (Depends-on): Add stdlib, extensions.
28544         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
28545         (Include): Set to <stdlib.h>.
28546         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
28547         HAVE_RPMATCH.
28548         * NEWS: Document the change.
28549
28550 2008-04-28  Bruno Haible  <bruno@clisp.org>
28551
28552         Change rpmatch to use nl_langinfo when appropriate.
28553         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
28554         (N_): New macro.
28555         (localized_pattern): New function/macro.
28556         (try): Remove match, nomatch arguments. Copy the pattern into safe
28557         memory before caching it.
28558         (rpmatch): Use localized_pattern. Add translator comments.
28559         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
28560         Suggested by Eric Blake.
28561         * modules/rpmatch (Depends-on): Add stdbool.
28562
28563 2008-04-28  Eric Blake  <ebb9@byu.net>
28564
28565         Add rawmemchr module, matching glibc.
28566         * modules/string (Makefile.am): New indicator.
28567         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
28568         * lib/string.in.h (rawmemchr): Declare when appropriate.
28569         * modules/rawmemchr: New file.
28570         * m4/rawmemchr.m4: Likewise.
28571         * lib/rawmemchr.c: Likewise.
28572         * modules/rawmemchr-tests: Likewise.
28573         * tests/test-rawmemchr.c: Likewise.
28574         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
28575         module.
28576         * modules/strchrnul (Depends-on): Add rawmemchr.
28577         * lib/strchrnul.c (strchrnul): Optimize a corner case.
28578
28579         Whitespace cleanup.
28580         * tests/test-strchrnul.c: Reindent.
28581         * lib/strchrnul.c: Likewise.
28582
28583         Optimize and test strchrnul.
28584         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
28585         * modules/strchrnul-tests: New file.
28586         * tests/test-strchrnul.c: Likewise.
28587
28588         Remove intprops dependency.
28589         * modules/memchr (Depends-on): Remove intprops.
28590         * modules/memrchr (Depends-on): Likewise.
28591         * modules/memchr2 (Depends-on): Likewise.
28592         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
28593         * lib/memrchr.c (__memrchr): Likewise.
28594         * lib/memrchr2.c (memchr2): Likewise.
28595         Reported by Simon Josefsson.
28596
28597 2008-04-28  Simon Josefsson  <simon@josefsson.org>
28598
28599         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
28600         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28601
28602 2008-04-28  Simon Josefsson  <simon@josefsson.org>
28603
28604         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
28605
28606         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
28607
28608         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
28609
28610         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
28611         declarations.
28612         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
28613
28614         * m4/inet_pton.m4: Don't check for header files.
28615
28616         * m4/inet_ntop.m4: Don't check for header files.
28617
28618 2008-04-28  Simon Josefsson  <simon@josefsson.org>
28619
28620         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
28621         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
28622         trigger for cygwin).
28623         Reported by Bruno Haible  <bruno@clisp.org>.
28624
28625 2008-04-28  Bruno Haible  <bruno@clisp.org>
28626
28627         * doc/posix-functions/strdup.texi: Mention mingw problem.
28628
28629 2008-04-27  Bruno Haible  <bruno@clisp.org>
28630
28631         * modules/stat-time-tests (Depends-on): Add sleep.
28632         * tests/test-stat-time.c (force_unlink): New function.
28633         (cleanup): Use it.
28634         (test_mtime): Remove the ctime related tests.
28635         (test_ctime): New function, containing the ctime related tests.
28636         (main): Call test_ctime, except on native Windows platforms.
28637
28638 2008-04-27  Bruno Haible  <bruno@clisp.org>
28639
28640         * lib/rpmatch.c (rpmatch): Add some comments.
28641         Reported by James Youngman <jay@gnu.org>.
28642
28643 2008-04-27  Bruno Haible  <bruno@clisp.org>
28644
28645         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
28646         quiet NaNs.
28647
28648 2008-04-27  Bruno Haible  <bruno@clisp.org>
28649
28650         Make test-yesno.sh work on mingw.
28651         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
28652         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
28653         (main): Set stdin to binary mode.
28654         * modules/yesno-tests (Depends-on): Add binary-io.
28655
28656 2008-04-27  Bruno Haible  <bruno@clisp.org>
28657
28658         Fix 'isfinite' on x86, x86_64, ia64 platforms.
28659         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
28660         argument that lie outside the IEEE 854 domain.
28661         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
28662         (gl_ISFINITE): Use it.
28663         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
28664
28665 2008-04-27  Bruno Haible  <bruno@clisp.org>
28666
28667         Allow local renaming in config.h.
28668         * lib/memrchr.c (memrchr): Don't undefine outside libc.
28669
28670 2008-04-27  Bruno Haible  <bruno@clisp.org>
28671
28672         * lib/memchr.c (__memchr): Change type of 'i'.
28673         * lib/memchr2.c (memchr2): Likewise.
28674
28675 2008-04-26  Eric Blake  <ebb9@byu.net>
28676         and Bruno Haible  <bruno@clisp.org>
28677
28678         Optimize and test memrchr.
28679         * modules/memrchr (Depends-on): Add intprops.
28680         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
28681         * modules/memrchr-tests: New file.
28682         * tests/test-memrchr.c: New file.
28683
28684 2008-04-26  Bruno Haible  <bruno@clisp.org>
28685
28686         Add tentative support for DragonFly BSD.
28687         * lib/stdio-impl.h: Add macros for DragonFly BSD.
28688         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
28689         fp.
28690         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
28691         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
28692         * lib/fpurge.c (fpurge): Likewise.
28693         * lib/freadable.c (freaadable): Likewise.
28694         * lib/freadahead.c (freadahead): Likewise.
28695         * lib/freading.c (freading): Likewise.
28696         * lib/freadptr.c (freadptr): Likewise.
28697         * lib/freadseek.c (freadptrinc): Likewise.
28698         * lib/fseeko.c (fseeko): Likewise.
28699         * lib/fseterr.c (fseterr): Likewise.
28700         * lib/fwritable.c (fwritable): Likewise.
28701         * lib/fwriting.c (fwriting): Likewise.
28702
28703 2008-04-26  Bruno Haible  <bruno@clisp.org>
28704
28705         * lib/stdio-impl.h: New file.
28706         * lib/fbufmode.c: Include stdio-impl.h.
28707         (fbufmode): Use fp_, remove redundant #defines.
28708         * lib/fflush.c: Include stdio-impl.h.
28709         (clear_ungetc_buffer): Remove redundant #defines.
28710         * lib/fpurge.c: Include stdio-impl.h.
28711         (fpurge): Remove redundant #defines.
28712         * lib/freadable.c: Include stdio-impl.h.
28713         (freadable): Remove redundant #defines.
28714         * lib/freadahead.c: Include stdio-impl.h.
28715         (freadahead): Remove redundant #defines.
28716         * lib/freading.c: Include stdio-impl.h.
28717         (freading): Remove redundant #defines.
28718         * lib/freadptr.c: Include stdio-impl.h.
28719         (freadptr): Remove redundant #defines.
28720         * lib/freadseek.c: Include stdio-impl.h.
28721         (freadptrinc): Remove redundant #defines.
28722         * lib/fseeko.c: Include stdio-impl.h.
28723         (rpl_fseeko): Remove redundant #defines.
28724         * lib/fseterr.c: Include stdio-impl.h.
28725         (fseterr): Remove redundant #defines.
28726         * lib/fwritable.c: Include stdio-impl.h.
28727         (fwritable: Remove redundant #defines.
28728         * lib/fwriting.c: Include stdio-impl.h.
28729         (fwriting): Remove redundant #defines.
28730         * modules/fbufmode (Files): Add lib/stdio-impl.h.
28731         * modules/fflush (Files): Likewise.
28732         * modules/fpurge (Files): Likewise.
28733         * modules/freadable (Files): Likewise.
28734         * modules/freadahead (Files): Likewise.
28735         * modules/freading (Files): Likewise.
28736         * modules/freadptr (Files): Likewise.
28737         * modules/freadseek (Files): Likewise.
28738         * modules/fseeko (Files): Likewise.
28739         * modules/fseterr (Files): Likewise.
28740         * modules/fwritable (Files): Likewise.
28741         * modules/fwriting (Files): Likewise.
28742
28743 2008-04-26  Bruno Haible  <bruno@clisp.org>
28744
28745         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
28746         restore_seek_optimization, update_fpos_cache): New functions, extracted
28747         from rpl_fflush.
28748         (rpl_fflush): Use them.
28749         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
28750         (gl_REPLACE_FFLUSH): Use it.
28751
28752 2008-04-26  Bruno Haible  <bruno@clisp.org>
28753
28754         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
28755         on Solaris.
28756         * tests/test-xstrtoimax.sh: Likewise.
28757         * tests/test-xstrtoumax.sh: Likewise.
28758         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28759
28760 2008-04-26  Bruno Haible  <bruno@clisp.org>
28761
28762         * modules/memchr-tests: New file.
28763         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
28764
28765 2008-04-26  Eric Blake  <ebb9@byu.net>
28766             Bruno Haible  <bruno@clisp.org>
28767
28768         * lib/memchr.c: Include intprops.h.
28769         (__memchr): Optimize parallel detection of matching bytes. Rename local
28770         variables. Add explanatory comments.
28771
28772 2008-04-26  Bruno Haible  <bruno@clisp.org>
28773
28774         Fix module 'memchr', broken since 2000-10-28.
28775         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
28776
28777 2008-04-26  Bruno Haible  <bruno@clisp.org>
28778
28779         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
28780         comments.
28781
28782 2008-04-25  Eric Blake  <ebb9@byu.net>
28783
28784         Use native fstatat on cygwin 1.7.0.
28785         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
28786         first.
28787
28788 2008-04-23  Eric Blake  <ebb9@byu.net>
28789
28790         Improve memchr2 performance.
28791         * lib/memchr2.c (memchr2): Further optimize parallel detection of
28792         NUL bytes.
28793         * modules/memchr2 (Depends-on): Use intprops.h.
28794
28795 2008-04-23  Simon Josefsson  <simon@josefsson.org>
28796
28797         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
28798         an inline function instead of a CPP macro.  Patch by Ben Pfaff
28799         <blp@cs.stanford.edu>.
28800
28801 2008-04-23  Simon Josefsson  <simon@josefsson.org>
28802
28803         * lib/arpa_inet.in.h: New file.
28804
28805         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
28806         (Makefile.am): Sed in substitute header file.
28807
28808         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
28809         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
28810
28811         * modules/inet_ntop (configure.ac): Use
28812         gl_ARPA_INET_MODULE_INDICATOR.
28813
28814         * modules/inet_pton (configure.ac): Use
28815         gl_ARPA_INET_MODULE_INDICATOR.
28816
28817 2008-04-22  Jim Meyering  <meyering@redhat.com>
28818
28819         * modules/verify (License): Re-license as LGPLv2+.
28820
28821 2008-04-22  Simon Josefsson  <simon@josefsson.org>
28822
28823         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
28824         parameter to void* as per POSIX standard (MinGW uses char*).
28825
28826 2008-04-21  Bruno Haible  <bruno@clisp.org>
28827
28828         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
28829         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
28830         Define to replacements if REPLACE_ISWCNTRL is 1.
28831         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
28832         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
28833         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
28834         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
28835         what it fixes.
28836         * doc/posix-functions/iswalpha.texi: Likewise.
28837         * doc/posix-functions/iswblank.texi: Likewise.
28838         * doc/posix-functions/iswcntrl.texi: Likewise.
28839         * doc/posix-functions/iswdigit.texi: Likewise.
28840         * doc/posix-functions/iswgraph.texi: Likewise.
28841         * doc/posix-functions/iswlower.texi: Likewise.
28842         * doc/posix-functions/iswprint.texi: Likewise.
28843         * doc/posix-functions/iswpunct.texi: Likewise.
28844         * doc/posix-functions/iswspace.texi: Likewise.
28845         * doc/posix-functions/iswupper.texi: Likewise.
28846         * doc/posix-functions/iswxdigit.texi: Likewise.
28847         Reported by Alain Guibert.
28848
28849 2008-04-21  Bruno Haible  <bruno@clisp.org>
28850
28851         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
28852         Patch by Alain Guibert.
28853
28854 2008-04-21  Bruno Haible  <bruno@clisp.org>
28855
28856         Fix test failures on mingw.
28857         * tests/test-xstrtol.c (print_no_progname): New function.
28858         (main): Install it in error_print_progname hook.
28859         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
28860         * tests/test-xstrtoimax.sh: Likewise.
28861         * tests/test-xstrtoumax.sh: Likewise.
28862
28863 2008-04-21  Bruno Haible  <bruno@clisp.org>
28864
28865         Fix test failure on mingw.
28866         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
28867
28868 2008-04-21  Bruno Haible  <bruno@clisp.org>
28869
28870         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
28871         Actually assign a value.
28872
28873 2008-04-20  Bruno Haible  <bruno@clisp.org>
28874
28875         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
28876         take 2.
28877         * lib/canonicalize.c (canonicalize_file_name): Elide if the
28878         'canonicalize-lgpl' module is also used.
28879         * lib/canonicalize-lgpl.c: Undo last change.
28880         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
28881
28882 2008-04-20  Bruno Haible  <bruno@clisp.org>
28883
28884         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
28885         config.h. Provide _mkdir based fallback for mingw.
28886         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
28887         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
28888         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
28889         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
28890         rather than defining mkdir in config.h.
28891         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
28892         (gl_SYS_STAT_H_DEFAULTS): New macro.
28893         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
28894         HAVE_IO_H any more.
28895         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
28896         HAVE_DECL_MKDIR and HAVE_IO_H.
28897
28898 2008-04-20  Bruno Haible  <bruno@clisp.org>
28899
28900         * lib/isapipe.c: Port to native Windows platforms.
28901
28902 2008-04-20  Bruno Haible  <bruno@clisp.org>
28903
28904         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
28905
28906 2008-04-21  Eric Blake  <ebb9@byu.net>
28907
28908         Work around preprocessors that don't handle UINTMAX_MAX.
28909         * lib/memchr2.c (memchr2): Avoid embedded #if.
28910         Reported by Alain Guibert, fix suggested by Bruno Haible.
28911
28912 2008-04-21  Simon Josefsson  <simon@josefsson.org>
28913
28914         * doc/posix-functions/strftime.texi (strftime): Explain better
28915         Windows incompatibility.  Suggested by Micah Cowan
28916         <micah@cowan.name>.
28917
28918 2008-04-20  Bruno Haible  <bruno@clisp.org>
28919
28920         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
28921         unistr/u8-mblen.
28922
28923 2008-04-20  Bruno Haible  <bruno@clisp.org>
28924
28925         Fix test failure on platforms with non-GNU iconv.
28926         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
28927         (U_TO_U8): Use it, rather than u16_to_u8.
28928         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
28929         units at the end of the input string.
28930         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
28931
28932 2008-04-20  Bruno Haible  <bruno@clisp.org>
28933
28934         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
28935         when the resulting length is 0.
28936         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
28937
28938 2008-04-20  Bruno Haible  <bruno@clisp.org>
28939
28940         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
28941         works.
28942         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
28943
28944 2008-04-20  Bruno Haible  <bruno@clisp.org>
28945
28946         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
28947         * modules/tsearch-tests (configure.ac): Test for initstate function.
28948
28949 2008-04-20  Bruno Haible  <bruno@clisp.org>
28950
28951         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
28952         for nlink_t if missing.
28953         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
28954
28955 2008-04-19  Bruno Haible  <bruno@clisp.org>
28956
28957         Work around snprintf bug on Linux libc5.
28958         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
28959         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
28960         gl_SNPRINTF_SIZE1.
28961         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28962         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
28963         that test failed.
28964         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
28965         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
28966         * modules/snprintf (Files): Add m4/printf.m4.
28967         * modules/vsnprintf (Files): Likewise.
28968         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
28969         * doc/posix-functions/vsnprintf.texi: Likewise.
28970
28971 2008-04-19  Bruno Haible  <bruno@clisp.org>
28972
28973         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
28974         from 0.0058 to less than 10^-7.
28975
28976 2008-04-19  Bruno Haible  <bruno@clisp.org>
28977
28978         Fix rounding when a precision is given.
28979         * lib/vasnprintf.c (is_borderline): New function.
28980         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
28981         9...9x.
28982         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
28983         %e, %g.
28984         * tests/test-vasprintf-posix.c (test_function): Likewise.
28985         * tests/test-snprintf-posix.h (test_function): Likewise.
28986         * tests/test-sprintf-posix.h (test_function): Likewise.
28987         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
28988         * tests/test-printf-posix.h (test_function): Likewise.
28989         * tests/test-printf-posix.output: Update.
28990         Reported by John Darrington <john@darrington.wattle.id.au> via
28991         Ben Pfaff <blp@cs.stanford.edu>.
28992
28993 2008-04-18  Simon Josefsson  <simon@josefsson.org>
28994
28995         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
28996         Suggested by Bruno Haible <bruno@clisp.org>.
28997
28998 2008-04-17  Bruno Haible  <bruno@clisp.org>
28999
29000         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
29001         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
29002         implementation.
29003         Patch by Bruce Merry <bmerry@gmail.com>.
29004
29005 2008-04-17  Simon Josefsson  <simon@josefsson.org>
29006
29007         * doc/posix-functions/strftime.texi (strftime): Mention that %e
29008         doesn't work under Windows.
29009
29010 2008-04-16  Bruno Haible  <bruno@clisp.org>
29011
29012         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
29013         New macros.
29014         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
29015         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
29016         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
29017         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
29018         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
29019         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
29020         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
29021         macros.
29022         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
29023         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
29024         Northern Sotho, Uighur.
29025
29026 2008-04-16  Bruno Haible  <bruno@clisp.org>
29027
29028         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
29029         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
29030         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
29031         Reported by Daniel Bergström <daniel@octocode.com>.
29032
29033 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
29034             Bruno Haible  <bruno@clisp.org>
29035
29036         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
29037         function.
29038         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
29039         New functions, mostly extracted from gl_locale_name_default.
29040         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
29041
29042 2008-04-16  Eric Blake  <ebb9@byu.net>
29043
29044         Adjust strtod detection to catch glibc 2.7 bug.
29045         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
29046         Reported by John Gatewood Ham.
29047
29048 2008-04-16  Bruno Haible  <bruno@clisp.org>
29049
29050         Add tentative support for Linux libc5.
29051         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
29052         * lib/fpurge.c (fpurge): Likewise.
29053         * lib/freadable.c (freadable): Likewise.
29054         * lib/freadahead.c (freadahead): Likewise.
29055         * lib/freading.c (freading): Likewise.
29056         * lib/freadptr.c (freadptr): Likewise.
29057         * lib/freadseek.c (freadptrinc): Likewise.
29058         * lib/fseeko.c (rpl_fseeko): Likewise.
29059         * lib/fseterr.c (fseterr): Likewise.
29060         * lib/fwritable.c (fwritable): Likewise.
29061         * lib/fwriting.c (fwriting): Likewise.
29062         Reported by Alain Guibert <alguibert+bts@free.fr>.
29063
29064 2008-04-15  Bruno Haible  <bruno@clisp.org>
29065
29066         * modules/mathl (configure.ac): Define module indicator.
29067
29068 2008-04-15  Bruno Haible  <bruno@clisp.org>
29069
29070         * lib/logl.c (logl): Remove unused variables.
29071
29072 2008-04-15  Bruno Haible  <bruno@clisp.org>
29073
29074         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
29075         fails.
29076
29077 2008-04-15  Bruno Haible  <bruno@clisp.org>
29078
29079         * lib/trim.c (trim2): Fix argument of isspace() macro.
29080
29081 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
29082
29083         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
29084         to 0.
29085         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
29086
29087 2008-04-14  Bruno Haible  <bruno@clisp.org>
29088
29089         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
29090         AC_LANG_PROGRAM argument.
29091         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
29092         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
29093         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
29094         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
29095         * m4/math_h.m4 (gl_MATH_H): Likewise.
29096         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
29097         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
29098         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
29099         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
29100         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
29101         * m4/regex.m4 (gl_REGEX): Likewise.
29102         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
29103         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
29104         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
29105         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
29106         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
29107         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
29108         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29109         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
29110
29111 2008-04-14  Jim Meyering  <meyering@redhat.com>
29112
29113         test-strtod: fix typos: s/abs/fabs/
29114         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
29115
29116 2008-04-13  Bruno Haible  <bruno@clisp.org>
29117
29118         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
29119         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
29120         module is also used and while not building the reloc-wrapper.
29121
29122 2008-04-13  Bruno Haible  <bruno@clisp.org>
29123
29124         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
29125
29126 2008-04-13  Bruno Haible  <bruno@clisp.org>
29127
29128         Fix AIX compilation failure introduced on 2008-04-02.
29129         * tests/test-frexp.c (exp): Undefine before redefining.
29130         * tests/test-frexpl.c (exp): Likewise.
29131
29132 2008-04-13  Bruno Haible  <bruno@clisp.org>
29133
29134         Work around a HP-UX stdio bug.
29135         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
29136         * tests/test-ftello.c (main): Likewise.
29137         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
29138         * doc/posix-functions/ftello.texi: Likewise.
29139
29140 2008-04-13  Bruno Haible  <bruno@clisp.org>
29141
29142         Make test-signbit pass on HP-UX/hppa.
29143         * tests/test-signbit.c (minus_zerol): New variable.
29144         (test_signbitl): Use it.
29145
29146 2008-04-13  Bruno Haible  <bruno@clisp.org>
29147
29148         Make truncl work on OSF/1 4.0.
29149         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
29150         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
29151         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
29152         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
29153         HAVE_DECL_TRUNCL.
29154         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
29155         HAVE_DECL_TRUNCL.
29156         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
29157
29158 2008-04-13  Bruno Haible  <bruno@clisp.org>
29159
29160         * lib/unictype.h: Remove trailing comma from enumeration definitions.
29161
29162 2008-04-13  Bruno Haible  <bruno@clisp.org>
29163
29164         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
29165         expression, so as to avoid HP-UX 11 cc compiler bug.
29166
29167 2008-04-13  Bruno Haible  <bruno@clisp.org>
29168
29169         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
29170
29171 2008-04-13  Bruno Haible  <bruno@clisp.org>
29172
29173         * lib/git-merge-changelog.c: Remove empty declaration outside of
29174         functions.
29175
29176 2008-04-13  Bruno Haible  <bruno@clisp.org>
29177
29178         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
29179
29180 2008-04-13  Bruno Haible  <bruno@clisp.org>
29181
29182         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
29183         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
29184         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
29185         also if it exists but lacks definitions of the SHUT_* macros.
29186         * modules/sys_socket (Description): Update.
29187         Reported by Elbert Pol <e.pol@chello.nl>.
29188
29189 2008-04-13  Bruno Haible  <bruno@clisp.org>
29190
29191         * lib/localcharset.c (OS2): Don't redefine if already defined.
29192         Reported by Elbert Pol <e.pol@chello.nl>.
29193
29194 2008-04-13  Bruno Haible  <bruno@clisp.org>
29195
29196         * lib/binary-io.h [__EMX__]: Include <io.h>.
29197         Reported by Elbert Pol <e.pol@chello.nl>.
29198
29199 2008-04-12  Bruno Haible  <bruno@clisp.org>
29200
29201         * lib/fpucw.h: Enable the definitions also for x86_64.
29202         Needed for NetBSD/x86_64.
29203         Reported by Thomas Klausner <tk@giga.or.at>.
29204
29205 2008-04-12  Bruno Haible  <bruno@clisp.org>
29206
29207         * tests/test-strtod.c: Include isnand.h.
29208         (main): Use isnand instead of isnan.
29209         Reported by Jim Meyering.
29210
29211 2008-04-12  Bruno Haible  <bruno@clisp.org>
29212
29213         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
29214         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
29215
29216 2008-04-12  Jim Meyering  <meyering@redhat.com>
29217
29218         * m4/math_h.m4 (gl_MATH_H): Fix typos.
29219
29220 2008-04-12  Bruno Haible  <bruno@clisp.org>
29221
29222         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
29223         Reported by Elbert Pol <e.pol@chello.nl>.
29224
29225 2008-04-12  Eric Blake  <ebb9@byu.net>
29226
29227         Work around Solaris 10 math.h bug.
29228         * m4/math_h.m4 (gl_MATH_H): Check for bug.
29229         (gl_MATH_H_DEFAULTS): Set up default.
29230         * modules/math (Makefile.am): Replace new indicators.
29231         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
29232         * tests/test-math.c (main): Test this.
29233         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
29234         * doc/posix-headers/math.texi (math.h): Mention bug.
29235         Reported by Nelson H. F. Beebe and Jim Meyering.
29236
29237 2008-04-11  Bruno Haible  <bruno@clisp.org>
29238
29239         Adapt to future versions of Apple GCC.
29240         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
29241         Reported by Peter O'Gorman <peter@pogma.com>.
29242
29243 2008-04-11  Bruno Haible  <bruno@clisp.org>
29244
29245         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
29246
29247 2008-04-11  Bruno Haible  <bruno@clisp.org>
29248
29249         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
29250
29251         * modules/getaddrinfo-tests (Makefile.am): Define
29252         test_getaddrinfo_LDADD.
29253
29254 2008-04-11  Bruno Haible  <bruno@clisp.org>
29255
29256         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
29257         (init): Fix syntax error.
29258         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
29259         is declared.
29260
29261 2008-04-11  Bruno Haible  <bruno@clisp.org>
29262
29263         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
29264         * modules/glob (Depends-on): Add stdbool.
29265
29266 2008-04-11  Bruno Haible  <bruno@clisp.org>
29267
29268         * lib/trim.c: Include <string.h>.
29269
29270 2008-04-11  Eric Blake  <ebb9@byu.net>
29271
29272         Avoid compile failure on OS/2.
29273         * lib/regex_internal.h (internal_function): Disable optimization
29274         on OS/2 (__EMX__), where it caused compiler error.
29275         Reported by Elbert Pol.
29276
29277 2008-04-11  Bruno Haible  <bruno@clisp.org>
29278
29279         Flush the standard error stream before aborting. Needed on mingw.
29280         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
29281         * tests/test-array_list.c (ASSERT): Likewise.
29282         * tests/test-array_oset.c (ASSERT): Likewise.
29283         * tests/test-avltree_list.c (ASSERT): Likewise.
29284         * tests/test-avltree_oset.c (ASSERT): Likewise.
29285         * tests/test-avltreehash_list.c (ASSERT): Likewise.
29286         * tests/test-binary-io.c (ASSERT): Likewise.
29287         * tests/test-byteswap.c (ASSERT): Likewise.
29288         * tests/test-c-ctype.c (ASSERT): Likewise.
29289         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
29290         * tests/test-c-strcasestr.c (ASSERT): Likewise.
29291         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
29292         * tests/test-c-strstr.c (ASSERT): Likewise.
29293         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
29294         * tests/test-canonicalize.c (ASSERT): Likewise.
29295         * tests/test-carray_list.c (ASSERT): Likewise.
29296         * tests/test-ceilf1.c (ASSERT): Likewise.
29297         * tests/test-ceilf2.c (ASSERT): Likewise.
29298         * tests/test-ceill.c (ASSERT): Likewise.
29299         * tests/test-count-one-bits.c (ASSERT): Likewise.
29300         * tests/test-fbufmode.c (ASSERT): Likewise.
29301         * tests/test-fflush2.c (ASSERT): Likewise.
29302         * tests/test-floorf1.c (ASSERT): Likewise.
29303         * tests/test-floorf2.c (ASSERT): Likewise.
29304         * tests/test-floorl.c (ASSERT): Likewise.
29305         * tests/test-fopen.c (ASSERT): Likewise.
29306         * tests/test-fpending.c (ASSERT): Likewise.
29307         * tests/test-fprintf-posix.c (ASSERT): Likewise.
29308         * tests/test-fpurge.c (ASSERT): Likewise.
29309         * tests/test-freadable.c (ASSERT): Likewise.
29310         * tests/test-freadahead.c (ASSERT): Likewise.
29311         * tests/test-freading.c (ASSERT): Likewise.
29312         * tests/test-freadptr.c (ASSERT): Likewise.
29313         * tests/test-freadptr2.c (ASSERT): Likewise.
29314         * tests/test-freadseek.c (ASSERT): Likewise.
29315         * tests/test-freopen.c (ASSERT): Likewise.
29316         * tests/test-frexp.c (ASSERT): Likewise.
29317         * tests/test-frexpl.c (ASSERT): Likewise.
29318         * tests/test-fseek.c (ASSERT): Likewise.
29319         * tests/test-fseeko.c (ASSERT): Likewise.
29320         * tests/test-fstrcmp.c (ASSERT): Likewise.
29321         * tests/test-ftell.c (ASSERT): Likewise.
29322         * tests/test-ftello.c (ASSERT): Likewise.
29323         * tests/test-func.c (ASSERT): Likewise.
29324         * tests/test-fwritable.c (ASSERT): Likewise.
29325         * tests/test-fwriting.c (ASSERT): Likewise.
29326         * tests/test-getdelim.c (ASSERT): Likewise.
29327         * tests/test-getline.c (ASSERT): Likewise.
29328         * tests/test-i-ring.c (ASSERT): Likewise.
29329         * tests/test-iconv-utf.c (ASSERT): Likewise.
29330         * tests/test-iconv.c (ASSERT): Likewise.
29331         * tests/test-isfinite.c (ASSERT): Likewise.
29332         * tests/test-isnand.c (ASSERT): Likewise.
29333         * tests/test-isnanf.c (ASSERT): Likewise.
29334         * tests/test-isnanl.h (ASSERT): Likewise.
29335         * tests/test-ldexpl.c (ASSERT): Likewise.
29336         * tests/test-linked_list.c (ASSERT): Likewise.
29337         * tests/test-linkedhash_list.c (ASSERT): Likewise.
29338         * tests/test-localename.c (ASSERT): Likewise.
29339         * tests/test-lseek.c (ASSERT): Likewise.
29340         * tests/test-mbscasecmp.c (ASSERT): Likewise.
29341         * tests/test-mbscasestr1.c (ASSERT): Likewise.
29342         * tests/test-mbscasestr2.c (ASSERT): Likewise.
29343         * tests/test-mbscasestr3.c (ASSERT): Likewise.
29344         * tests/test-mbscasestr4.c (ASSERT): Likewise.
29345         * tests/test-mbschr.c (ASSERT): Likewise.
29346         * tests/test-mbscspn.c (ASSERT): Likewise.
29347         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
29348         * tests/test-mbspbrk.c (ASSERT): Likewise.
29349         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
29350         * tests/test-mbsrchr.c (ASSERT): Likewise.
29351         * tests/test-mbsspn.c (ASSERT): Likewise.
29352         * tests/test-mbsstr1.c (ASSERT): Likewise.
29353         * tests/test-mbsstr2.c (ASSERT): Likewise.
29354         * tests/test-mbsstr3.c (ASSERT): Likewise.
29355         * tests/test-memchr2.c (ASSERT): Likewise.
29356         * tests/test-memmem.c (ASSERT): Likewise.
29357         * tests/test-open.c (ASSERT): Likewise.
29358         * tests/test-printf-frexp.c (ASSERT): Likewise.
29359         * tests/test-printf-frexpl.c (ASSERT): Likewise.
29360         * tests/test-printf-posix.c (ASSERT): Likewise.
29361         * tests/test-quotearg.c (ASSERT): Likewise.
29362         * tests/test-rbtree_list.c (ASSERT): Likewise.
29363         * tests/test-rbtree_oset.c (ASSERT): Likewise.
29364         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
29365         * tests/test-round1.c (ASSERT): Likewise.
29366         * tests/test-roundf1.c (ASSERT): Likewise.
29367         * tests/test-roundl.c (ASSERT): Likewise.
29368         * tests/test-signbit.c (ASSERT): Likewise.
29369         * tests/test-sleep.c (ASSERT): Likewise.
29370         * tests/test-snprintf-posix.c (ASSERT): Likewise.
29371         * tests/test-snprintf.c (ASSERT): Likewise.
29372         * tests/test-sprintf-posix.c (ASSERT): Likewise.
29373         * tests/test-stat-time.c (ASSERT): Likewise.
29374         * tests/test-strcasestr.c (ASSERT): Likewise.
29375         * tests/test-strerror.c (ASSERT): Likewise.
29376         * tests/test-striconv.c (ASSERT): Likewise.
29377         * tests/test-striconveh.c (ASSERT): Likewise.
29378         * tests/test-striconveha.c (ASSERT): Likewise.
29379         * tests/test-strsignal.c (ASSERT): Likewise.
29380         * tests/test-strstr.c (ASSERT): Likewise.
29381         * tests/test-strtod.c (ASSERT): Likewise.
29382         * tests/test-trunc1.c (ASSERT): Likewise.
29383         * tests/test-trunc2.c (ASSERT): Likewise.
29384         * tests/test-truncf1.c (ASSERT): Likewise.
29385         * tests/test-truncf2.c (ASSERT): Likewise.
29386         * tests/test-truncl.c (ASSERT): Likewise.
29387         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
29388         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
29389         * tests/test-vasnprintf.c (ASSERT): Likewise.
29390         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
29391         * tests/test-vasprintf.c (ASSERT): Likewise.
29392         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
29393         * tests/test-vprintf-posix.c (ASSERT): Likewise.
29394         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
29395         * tests/test-vsnprintf.c (ASSERT): Likewise.
29396         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
29397         * tests/test-wcwidth.c (ASSERT): Likewise.
29398         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
29399         * tests/test-xprintf-posix.c (ASSERT): Likewise.
29400         * tests/test-xvasprintf.c (ASSERT): Likewise.
29401         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
29402         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
29403         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
29404         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
29405         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
29406         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
29407         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
29408         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
29409         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
29410         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
29411         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
29412         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
29413         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
29414         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
29415         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
29416         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
29417         * tests/unictype/test-block_list.c (ASSERT): Likewise.
29418         * tests/unictype/test-block_of.c (ASSERT): Likewise.
29419         * tests/unictype/test-block_test.c (ASSERT): Likewise.
29420         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
29421         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
29422         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
29423         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
29424         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
29425         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
29426         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
29427         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
29428         * tests/unictype/test-combining.c (ASSERT): Likewise.
29429         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
29430         * tests/unictype/test-digit.c (ASSERT): Likewise.
29431         * tests/unictype/test-mirror.c (ASSERT): Likewise.
29432         * tests/unictype/test-numeric.c (ASSERT): Likewise.
29433         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
29434         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
29435         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
29436         * tests/unictype/test-scripts.c (ASSERT): Likewise.
29437         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
29438         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
29439         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
29440         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
29441         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
29442         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
29443         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
29444         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
29445         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
29446         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
29447         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
29448         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
29449         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
29450         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
29451         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
29452         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
29453         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
29454         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
29455         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
29456         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
29457         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
29458         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
29459         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
29460         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
29461         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
29462         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
29463         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
29464         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
29465         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
29466         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
29467         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
29468         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
29469         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
29470         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
29471         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
29472         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
29473         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
29474         Reported by Eric Blake.
29475
29476 2008-04-11  Bruno Haible  <bruno@clisp.org>
29477
29478         * lib/wchar.in.h: Tweak comment.
29479
29480 2008-04-11  Bruno Haible  <bruno@clisp.org>
29481
29482         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
29483         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
29484         gl_COMMON.
29485         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
29486
29487 2008-04-11  Bruno Haible  <bruno@clisp.org>
29488
29489         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
29490
29491 2008-04-11  Simon Josefsson  <simon@josefsson.org>
29492
29493         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
29494         of attempting to use non-existing /dev/*random.  Based on patch
29495         from Adam Strzelecki <ono@java.pl> in
29496         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
29497
29498 2008-04-08  Bruno Haible  <bruno@clisp.org>
29499
29500         Add tentative support for emx+gcc.
29501         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
29502         * lib/fpurge.c (fpurge): Likewise.
29503         * lib/freadable.c (freadable): Likewise.
29504         * lib/freadahead.c (freadahead): Likewise.
29505         * lib/freading.c (freading): Likewise.
29506         * lib/freadptr.c (freadptr): Likewise.
29507         * lib/freadseek.c (freadptrinc): Likewise.
29508         * lib/fseeko.c (rpl_fseeko): Likewise.
29509         * lib/fseterr.c (fseterr): Likewise.
29510         * lib/fwritable.c (fwritable): Likewise.
29511         * lib/fwriting.c (fwriting): Likewise.
29512         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
29513
29514 2008-04-09  Eric Blake  <ebb9@byu.net>
29515
29516         Avoid some autoconf warnings.
29517         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
29518         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
29519         * m4/afs.m4 (gl_AFS): Likewise.
29520         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
29521         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
29522         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
29523         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
29524         (gl_INTEGER_TYPE_SUFFIX): Likewise.
29525         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
29526         (AC_CHECK_DECLS_ONCE): Likewise.
29527         Rename file...
29528         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
29529         gnulib-tool requires autoconf 2.59 or better.
29530         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
29531
29532 2008-04-08  Eric Blake  <ebb9@byu.net>
29533
29534         Use 'git describe --match' if present (added in git 1.5.5).
29535         * build-aux/git-version-gen: Limit result to tags that match 'v*'
29536         if possible.
29537
29538 2008-04-08  Bruno Haible  <bruno@clisp.org>
29539
29540         Add tentative support for OpenServer.
29541         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
29542         _ptr, _cnt.
29543         * lib/fpurge.c (fpurge): Likewise.
29544         * lib/freadable.c (freadable): Likewise.
29545         * lib/freadahead.c (freadahead): Likewise.
29546         * lib/freading.c (freading): Likewise.
29547         * lib/freadptr.c (freadptr): Likewise.
29548         * lib/freadseek.c (freadptrinc): Likewise.
29549         * lib/fseeko.c (rpl_fseeko): Likewise.
29550         * lib/fseterr.c (fseterr): Likewise.
29551         * lib/fwritable.c (fwritable): Likewise.
29552         * lib/fwriting.c (fwriting): Likewise.
29553         Reported by Roger Cornelius <rac@tenzing.org> and
29554         Brian K. White <brian@aljex.com>.
29555
29556 2008-04-06  Jim Meyering  <meyering@redhat.com>
29557
29558         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
29559
29560 2008-04-06  Bruno Haible  <bruno@clisp.org>
29561
29562         Avoid possible error with non-ASCII bytes in UTF-8 locales.
29563         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
29564         * tests/test-printf-posix.sh: Likewise.
29565         * tests/test-vfprintf-posix.sh: Likewise.
29566         * tests/test-vprintf-posix.sh: Likewise.
29567         * tests/test-xprintf-posix.sh: Likewise.
29568
29569 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29570
29571         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
29572         hide error from 'ls', needed on OS/2.
29573         Report by Elbert Pol <elbert.pol@gmail.com>.
29574
29575 2008-04-04  Eric Blake  <ebb9@byu.net>
29576
29577         Make test-fseeko.c failures meaningful.
29578         * tests/test-fseeko.c: Print line number on failure.
29579         * tests/test-fseek.c: Likewise.
29580         Reported by Nelson H. F. Beebe.
29581
29582         Improve strtod bug detection check.
29583         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
29584         required for Solaris 10.
29585         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
29586
29587 2008-04-04  Bruno Haible  <bruno@clisp.org>
29588
29589         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
29590         by m4/setenv.m4.
29591
29592 2008-04-03  Eric Blake  <ebb9@byu.net>
29593
29594         Ensure sane .version contents.
29595         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
29596         version string.
29597         * build-aux/git-version-gen: Improve documentation.
29598
29599         Make GNU make output nicer.
29600         * top/GNUmakefile [!_have-Makefile]: Add dependency on
29601         MAKECMDGOALS to enforce message for all command line targets.  Set
29602         srcdir for use in maint.mk.
29603
29604         Another maintainer tweak.
29605         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
29606         a target that regenerates version.
29607
29608 2008-04-03  Jim Meyering  <meyering@redhat.com>
29609
29610         vc-list-files: don't cause coreutils "make po-check" failure
29611         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
29612
29613 2008-04-03  Eric Blake  <ebb9@byu.net>
29614
29615         Allow VPATH usage of vc-list-files.
29616         * build-aux/vc-list-files (scriptversion): Add timestamp.
29617         (options): Add --help, --version, -C.
29618         (CVS): Support installed cvsu.
29619
29620 2008-04-02  Bruno Haible  <bruno@clisp.org>
29621
29622         Avoid some "statement with no effect" warnings from gcc.
29623         * tests/test-wctype.c (main): Explicitly ignore unused values.
29624         Reported by Jim Meyering.
29625
29626 2008-04-02  Jim Meyering  <meyering@redhat.com>
29627
29628         Avoid some warnings from "gcc -Wshadow".
29629         * tests/test-frexp.c (exp): Define to a different identifier.
29630         * tests/test-frexpl.c (exp): Likewise.
29631
29632 2008-04-03  Jim Meyering  <meyering@redhat.com>
29633
29634         bootstrap: remove dangling *.[ch] symlinks from lib
29635         * build-aux/bootstrap [dangling symlink removal]: Move find's
29636         -depth option to precede all others, to avoid a warning.
29637         Remove *.[ch] files too, and from "$source_base" (usually lib/).
29638
29639 2008-04-02  Bruno Haible  <bruno@clisp.org>
29640
29641         Avoid some warnings from "gcc -Wshadow".
29642         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
29643         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
29644         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
29645         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
29646         Reported by Jim Meyering.
29647
29648 2008-04-01  Bruno Haible  <bruno@clisp.org>
29649
29650         Fix test to work on IRIX 6.5 with cc.
29651         * tests/test-math.c (numeric_equal): New function.
29652         (main): Use it.
29653
29654 2008-04-01  Bruno Haible  <bruno@clisp.org>
29655
29656         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
29657
29658 2008-04-01  Bruno Haible  <bruno@clisp.org>
29659
29660         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
29661         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
29662         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
29663         (Depends-on): Remove math.
29664
29665         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
29666         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
29667         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
29668         (Depends-on): Remove math.
29669
29670         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
29671         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
29672         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
29673         (Depends-on): Remove math.
29674         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
29675         (Depends-on): Remove math.
29676
29677         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
29678         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
29679         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
29680         (Depends-on): Remove math.
29681         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
29682         (Depends-on): Remove math.
29683
29684         * tests/test-round1.c: Include nan.h.
29685         (main): Use NaNd instead of NAN.
29686         * modules/round-tests (Files): Add tests/nan.h.
29687
29688         * tests/test-trunc1.c: Include nan.h.
29689         (main): Use NaNd instead of NAN.
29690         * modules/trunc-tests (Files): Add tests/nan.h.
29691
29692         * tests/test-roundf1.c: Include nan.h.
29693         (main): Use NaNf instead of NAN.
29694         * modules/roundf-tests (Files): Add tests/nan.h.
29695
29696         * tests/test-truncf1.c: Include nan.h.
29697         (main): Use NaNf instead of NAN.
29698         * modules/truncf-tests (Files): Add tests/nan.h.
29699
29700         * tests/test-ceilf1.c: Include nan.h.
29701         (main): Use NaNf instead of NAN.
29702         * modules/ceilf-tests (Files): Add tests/nan.h.
29703
29704         * tests/test-floorf1.c: Include nan.h.
29705         (main): Use NaNf instead of NAN.
29706         * modules/floorf-tests (Files): Add tests/nan.h.
29707
29708         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
29709         (main): Use NaNf instead of NAN.
29710         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
29711
29712         * tests/test-isnand.c: Include nan.h instead of <math.h>.
29713         (main): Use NaNd instead of NAN.
29714         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
29715
29716         * tests/test-frexp.c: Include nan.h.
29717         (main): Use NaNd instead of NAN.
29718         * modules/frexp-tests (Files): Add tests/nan.h.
29719
29720         * lib/isnan.c: Don't include <math.h>.
29721         (FUNC): Don't use NAN macro.
29722         * modules/isnand-nolibm (Depends-on): Remove math.
29723         * modules/isnanf-nolibm (Depends-on): Remove math.
29724         * modules/isnanl (Depends-on): Remove math.
29725         * modules/isnanl-nolibm (Depends-on): Remove math.
29726
29727         * tests/nan.h: New file.
29728
29729 2008-04-01  Eric Blake  <ebb9@byu.net>
29730
29731         Fix typos.
29732         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
29733         values to be the right type.
29734
29735         For now, cater to gnulib strtod inaccuracies.
29736         * tests/test-strtod.c (main): Allow 1-ulp error on expected
29737         fractional results.  While not as nice from a QoI perspective, it
29738         is a quicker patch than correctly implementing decimal to binary
29739         rounding.
29740
29741 2008-03-31  Eric Blake  <ebb9@byu.net>
29742
29743         Guarantee a definition of NAN.
29744         * lib/math.in.h (NAN): Define if missing.
29745         * tests/test-math.c (main): Test it.
29746         * doc/posix-headers/math.texi (math.h): Document this.
29747         * lib/isnan.c (rpl_isnand): Use it.
29748         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
29749         * tests/test-floorf1.c (NaN): Likewise.
29750         * tests/test-frexp.c (NaN): Likewise.
29751         * tests/test-isnand.c (NaN): Likewise.
29752         * tests/test-isnanf.c (NaN): Likewise.
29753         * tests/test-round1.c (NaN): Likewise.
29754         * tests/test-roundf1.c (NaN): Likewise.
29755         * tests/test-snprintf-posix.h (NaN): Likewise.
29756         * tests/test-sprintf-posix.h (NaN): Likewise.
29757         * tests/test-trunc1.c (NaN): Likewise.
29758         * tests/test-truncf1.c (NaN): Likewise.
29759         * tests/test-vasnprintf-posix.c (NaN): Likewise.
29760         * tests/test-vasprintf-posix.c (NaN): Likewise.
29761         * modules/isnand-nolibm (Depends-on): Add math.
29762         * modules/isnanf-nolibm (Depends-on): Likewise.
29763         * modules/isnanl (Depends-on): Likewise.
29764         * modules/isnanl-nolibm (Depends-on): Likewise.
29765         * modules/snprintf-posix-tests (Depends-on): Likewise.
29766         * modules/sprintf-posix-tests (Depends-on): Likewise.
29767         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
29768         * modules/vsprintf-posix-tests (Depends-on): Likewise.
29769         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
29770         * modules/vasprintf-posix-tests (Depends-on): Likewise.
29771
29772 2008-03-31  Bruno Haible  <bruno@clisp.org>
29773
29774         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
29775         * doc/posix-functions/strtod.texi: Likewise.
29776
29777 2008-03-31  Bruno Haible  <bruno@clisp.org>
29778
29779         * tests/test-strtod.c (main): Don't use C99 syntax.
29780
29781 2008-03-31  Bruno Haible  <bruno@clisp.org>
29782
29783         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
29784         Reported by Eric Blake.
29785
29786 2008-03-31  Jim Meyering  <meyering@redhat.com>
29787
29788         Don't compare actual signbit return values.
29789         * tests/test-strtod.c (main): Rather, compare only their
29790         zero/non-zero nature.
29791
29792 2008-03-31  Eric Blake  <ebb9@byu.net>
29793
29794         More strtod documentation.
29795         * doc/posix-functions/strtod.texi (strtod): Interpret more test
29796         failures as distinct bugs.
29797
29798 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
29799
29800         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
29801         Problem reported by Erik Benada in
29802         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
29803
29804 2008-03-30  Bruno Haible  <bruno@clisp.org>
29805
29806         * tests/test-strtod.c: Add comments about which assertion fails on which
29807         platform.
29808         * doc/posix-functions/strtod.texi: Add info about many more platforms.
29809
29810 2008-03-30  Eric Blake  <ebb9@byu.net>
29811
29812         Test signbit behavior on zeros.
29813         * tests/test-signbit.c (test_signbitf): Add tests for zero.
29814         (test_signbitd, test_signbitl): Likewise.
29815
29816         More strtod touchups.
29817         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
29818         sign of negative underflow, for now.  Use .5, not .1.
29819         * doc/posix-functions/strtod.texi (strtod): Mention these
29820         limitations.
29821         Reported by Jim Meyering.
29822
29823 2008-03-30  Bruno Haible  <bruno@clisp.org>
29824
29825         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
29826         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
29827
29828 2008-03-30  Bruno Haible  <bruno@clisp.org>
29829
29830         Avoid failure when attempting to return empty iconv results on some
29831         platforms.
29832         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
29833         allocation, don't report ENOMEM when the resulting string is empty.
29834
29835 2008-03-30  Bruno Haible  <bruno@clisp.org>
29836
29837         Fix buffer overrun.
29838         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
29839         Don't consider the width for tmp_length. Check count against tmp_length
29840         before doing the padding. Ensure enough allocation during padding.
29841
29842 2008-03-30  Eric Blake  <ebb9@byu.net>
29843
29844         strtod touchups.
29845         * lib/strtod.c (strtod): Avoid compiler warnings.
29846         Reported by Jim Meyering.
29847
29848 2008-03-30  Bruno Haible  <bruno@clisp.org>
29849
29850         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
29851         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
29852         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
29853         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
29854         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
29855         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
29856         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
29857         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
29858
29859         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
29860         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
29861         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
29862         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
29863         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
29864         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
29865         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
29866         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
29867
29868         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
29869         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
29870         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
29871         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
29872         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
29873         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
29874         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
29875         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
29876
29877         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
29878         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
29879
29880         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
29881         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
29882
29883         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
29884         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
29885
29886         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
29887         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
29888         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
29889
29890         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
29891         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
29892         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
29893
29894         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
29895         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
29896         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
29897
29898         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
29899         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
29900         * modules/vasprintf (Depends-on): Add EOVERFLOW.
29901
29902         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
29903         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
29904         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
29905         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
29906         (Depends-on): Add EOVERFLOW.
29907         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
29908         (Depends-on): Add EOVERFLOW.
29909         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
29910         (Depends-on): Add EOVERFLOW.
29911         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
29912         (Depends-on): Add EOVERFLOW.
29913         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
29914         (Depends-on): Add EOVERFLOW.
29915         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
29916         (Depends-on): Add EOVERFLOW.
29917         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
29918         (Depends-on): Add EOVERFLOW.
29919         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
29920         (Depends-on): Add EOVERFLOW.
29921
29922         * lib/sprintf.c (EOVERFLOW): Remove fallback.
29923         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
29924         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
29925
29926         * lib/snprintf.c (EOVERFLOW): Remove fallback.
29927         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
29928         * modules/snprintf (Depends-on): Add EOVERFLOW.
29929
29930         * lib/poll.c (EOVERFLOW): Remove fallback.
29931         * modules/poll (Depends-on): Add EOVERFLOW.
29932
29933         * lib/getugroups.c (EOVERFLOW): Remove fallback.
29934         * modules/getugroups (Depends-on): Add EOVERFLOW.
29935
29936         * lib/getdelim.c (EOVERFLOW): Remove fallback.
29937         * modules/getdelim (Depends-on): Add EOVERFLOW.
29938
29939         * lib/ftell.c (EOVERFLOW): Remove fallback.
29940         * modules/ftell (Depends-on): Add EOVERFLOW.
29941
29942         * lib/fprintf.c (EOVERFLOW): Remove fallback.
29943         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
29944         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
29945
29946         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
29947
29948         * modules/EOVERFLOW-tests: New file.
29949         * tests/test-EOVERFLOW.c: New file.
29950
29951         * modules/EOVERFLOW: New file.
29952         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
29953
29954 2008-03-30  Bruno Haible  <bruno@clisp.org>
29955
29956         Fix bug introduced on 2007-06-10.
29957         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
29958         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
29959
29960 2008-03-30  Bruno Haible  <bruno@clisp.org>
29961
29962         Improve freadseek's efficiency after ungetc.
29963         * lib/freadseek.c: Include freadahead.h.
29964         (freadptrinc): New function, extracted from freadseek.
29965         (freadseek): Use it in a loop. Use freadahead to determine the number
29966         of loop iterations.
29967         * modules/freadseek (Depends-on): Add freadahead.
29968         (configure.ac): Require AC_C_INLINE.
29969
29970 2008-03-30  Bruno Haible  <bruno@clisp.org>
29971
29972         * lib/freadseek.c (freadseek): Don't ignore the return value of
29973         freadptr.
29974
29975 2008-03-29  Eric Blake  <ebb9@byu.net>
29976
29977         Add hex float support.
29978         * modules/strtod (Depends-on): Add c-ctype.
29979         (Link): Mention POW_LIB.
29980         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
29981         whitespace between 'e' and exponent.
29982         * tests/test-strtod.c (main): Enable hex float tests.
29983         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
29984         now provides.
29985
29986         Document various strtod bugs, with some fixes.
29987         * doc/posix-functions/strtod.texi (strtod): Document bugs with
29988         "-0x", "inf", "nan", and hex constants.
29989         * doc/posix-functions/atof.texi (atof): Likewise.
29990         * modules/stdlib (Makefile.am): Support strtod.
29991         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
29992         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
29993         detect additional strtod bugs.
29994         * lib/stdlib.in.h (rpl_strtod): Add declarations.
29995         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
29996         bool where appropriate.  Parse 'inf' and 'nan'.
29997         * tests/test-strtod.c: New file.
29998         * modules/strtod (Depends-on): Add stdbool, stdlib.
29999         (configure.ac): Turn on module indicator.
30000         * modules/strtod-tests: New module.
30001
30002 2008-03-29  Eric Blake  <ebb9@byu.net>
30003
30004         Fix ftell on mingw.
30005         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
30006         * modules/ftell-tests (Depends-on): Add binary-io.
30007         * modules/ftello-tests (Depends-on): Likewise.
30008         * tests/test-ftell.c (main): Enhance test to cover behavior after
30009         ungetc.  Enforce binary mode.
30010         * tests/test-ftello.c (main): Likewise.
30011
30012         Pass test-freadseek on cygwin.
30013         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
30014         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
30015         ungetc buffer.
30016
30017         * tests/test-fflush2.c (main): Fix typo.
30018
30019 2008-03-29  Bruno Haible  <bruno@clisp.org>
30020
30021         * tests/test-fflush2.c (main): Temporarily disable the contents of
30022         this test.
30023         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
30024         Reported by Eric Blake.
30025
30026 2008-03-28  Simon Josefsson  <simon@josefsson.org>
30027
30028         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
30029         (GC_SHA224_DIGEST_SIZE): Add.
30030
30031         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
30032         (gc_hash_digest_length): Likewise.
30033         (gc_hash_buffer): Likewise.
30034
30035 2008-03-25  Bruno Haible  <bruno@clisp.org>
30036
30037         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
30038         detail which gettext release to use.
30039         Reported by Simon Josefsson.
30040
30041 2008-03-26  Jim Meyering  <meyering@redhat.com>
30042
30043         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
30044         * modules/gnumakefile (clean-GNUmakefile): Also, use
30045         test ... && ... || : syntax rather than if-then ... fi.
30046
30047         gnumakefile: Don't double-quote-expand $(VPATH) value.
30048         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
30049
30050 2008-03-24  Eric Blake  <ebb9@byu.net>
30051
30052         Alter GNUmakefile to install into top directory.
30053         * modules/maintainer-makefile: Split, and add dependency...
30054         * modules/gnumakefile: to this new module.
30055         * build-aux/GNUmakefile: Move...
30056         * top/GNUmakefile: ...here.
30057         * build-aux/maint.mk: Move...
30058         * top/maint.mk: ...here.
30059         * MODULES.html.sh (Support for maintaining...): Document new
30060         module.
30061
30062 2008-03-23  Bruno Haible  <bruno@clisp.org>
30063
30064         * gnulib-tool: New options --vc-files, --no-vc-files.
30065         (func_usage): Document them.
30066         (vc_files): New variable.
30067         (func_import): Consider vc_files.
30068         (func_create_testdir): Set vc_files to empty.
30069         Suggested by Jim Meyering and Karl Berry.
30070
30071 2008-03-23  Bruno Haible  <bruno@clisp.org>
30072
30073         Fix regex compilation error on HP-UX 11.
30074         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
30075         * modules/regex (Files): Add m4/mbstate_t.m4.
30076         Reported by Ton Voon <ton.voon@altinity.com>.
30077
30078 2008-03-23  Bruno Haible  <bruno@clisp.org>
30079
30080         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
30081
30082 2008-03-23  Eric Blake  <ebb9@byu.net>
30083             Bruno Haible  <bruno@clisp.org>
30084
30085         Install files from top/ in the destination directory.
30086         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
30087         augmentation also for the files from top/.
30088         (func_import, func_create_testdir): Rewrite file names:
30089         top/filename -> filename.
30090
30091 2008-03-23  Bruno Haible  <bruno@clisp.org>
30092
30093         Tweak "gnulib --version" output.
30094         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
30095
30096 2008-03-23  Bruno Haible  <bruno@clisp.org>
30097
30098         Tweak "gnulib --version" output.
30099         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
30100         rather than contents of ChangeLog, when possible.
30101
30102 2008-03-21  Eric Blake  <ebb9@byu.net>
30103
30104         More --version tweaks.
30105         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
30106         date of last ChangeLog entry.
30107
30108 2008-03-21  Jim Meyering  <meyering@redhat.com>
30109
30110         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
30111
30112 2008-03-20  Eric Blake  <ebb9@byu.net>
30113
30114         VPATH fix.
30115         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
30116
30117 2008-03-20  Simon Josefsson  <simon@josefsson.org>
30118
30119         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
30120         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
30121
30122 2008-03-20  Eric Blake  <ebb9@byu.net>
30123
30124         Sync GNUmakefile with coreutils.
30125         * build-aux/GNUmakefile (have-Makefile): Rename...
30126         (_have-Makefile): ...to this, for namespace consideration.
30127         (GNUmakefile.cfg): Include, if present.
30128         (_autoreconf): Define a default.
30129         (_is-dist-target): New rule for rebuilds to pick up intra-release
30130         version.
30131         (maint-cfg.mk): Rename...
30132         (cfg.mk): ...to this.
30133
30134 2008-03-18  Jim Meyering  <meyering@redhat.com>
30135
30136         New script and module: mktempd
30137         * MODULES.html.sh (maint+release support): Add mktempd.
30138         * build-aux/mktempd: New file.
30139         * modules/mktempd: New file.
30140
30141 2008-03-15  Jim Meyering  <meyering@redhat.com>
30142
30143         Undo last change.
30144         * lib/sha1.c, lib/md5.c: 63 != ~63.
30145         Reported by Andreas Schwab.
30146
30147         sha1.c, md5.c: Hoist a redundant expression.
30148         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
30149         "ctx->buflen" only once, before calling *_process_block.
30150         * lib/md5.c (md5_process_bytes): Likewise.
30151
30152 2008-03-14  Eric Blake  <ebb9@byu.net>
30153
30154         Bump copyright year in files generated by gnulib-tool.
30155         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
30156         gnulib-tool, rather than hard-coding it.
30157
30158         Fix 'gnulib-tool --version' output to work with git.
30159         * gnulib-tool (func_gnulib_dir): New function, extracted from...
30160         (startup): ...here.
30161         (func_version): Use it to invoke git-version-gen, rather than
30162         relying on CVS keyword expansion.  Modernize wording.
30163         (cvsdatestamp, last_checkin_date, version): Kill unused
30164         variables.
30165
30166 2008-03-12  Jim Meyering  <meyering@redhat.com>
30167
30168         Recognize optional cast of the argument to free.
30169         * build-aux/useless-if-before-free: Update regexps.
30170
30171         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
30172
30173 2008-03-11  Bruno Haible  <bruno@clisp.org>
30174
30175         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
30176         by a single package.
30177         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
30178         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
30179         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
30180         Reported by Sam Steingold <sds@gnu.org>.
30181
30182 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
30183
30184         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
30185         repositories.
30186
30187 2008-03-11  Bruno Haible  <bruno@clisp.org>
30188
30189         Avoid conflicts between local macro definitions.
30190         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
30191         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
30192
30193 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
30194             Bruno Haible  <bruno@clisp.org>
30195
30196         Make va_copy work with some version of xlc on AIX 5.1.
30197         * lib/stdarg.in.h: New file.
30198         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
30199         On AIX, use a <stdarg.h> file substitute.
30200         * modules/stdarg (Files): Add lib/stdarg.in.h.
30201         (Depends-on): Add include_next.
30202         (Makefile.am): Build a stdarg.h substitute if requested.
30203         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
30204
30205 2008-03-10  Bruno Haible  <bruno@clisp.org>
30206
30207         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
30208         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
30209         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
30210
30211 2008-03-10  Bruno Haible  <bruno@clisp.org>
30212
30213         * modules/stdlib (Depends-on): Add include_next, remove
30214         absolute-header.
30215
30216 2008-03-09  Bruno Haible  <bruno@clisp.org>
30217
30218         * lib/freadahead.h (freadahead): Document more precisely.
30219         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
30220         the sum of both buffer sizes.
30221         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
30222         * NEWS: Document the change.
30223
30224 2008-03-09  Bruno Haible  <bruno@clisp.org>
30225
30226         Extend freadptr to return also the buffer size.
30227         * lib/freadptr.h (freadptr): Add sizep argument.
30228         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
30229         (freadptr): Add sizep argument. Determine buffer size like freadahead
30230         does.
30231         * tests/test-freadptr.c: Don't include freadahead.h.
30232         (main): Adapt for new calling convention of freadptr.
30233         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
30234         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
30235         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
30236         tests/test-freadptr2.sh.
30237         (Depends): Remove freadahead.
30238         (TESTS): Add test-freadptr2.sh.
30239         (check_PROGRAMS): Add test-freadptr2.
30240
30241 2008-03-09  Bruno Haible  <bruno@clisp.org>
30242
30243         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
30244         Report and solution by Simon Josefsson.
30245
30246 2008-03-06  Bruno Haible  <bruno@clisp.org>
30247
30248         Make fflush after ungetc work on BSD platforms.
30249         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
30250         * tests/test-fflush2.c: New file.
30251         * tests/test-fflush2.sh: New file.
30252         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
30253         tests/test-fflush2.c.
30254         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
30255         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
30256
30257 2008-03-06  Eric Blake  <ebb9@byu.net>
30258
30259         Likewise for ftello.
30260         * modules/ftello (Dependencies): Add extensions.
30261         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
30262
30263 2008-03-06  Bruno Haible  <bruno@clisp.org>
30264
30265         * modules/fseeko (Dependencies): Add extensions.
30266         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
30267         Needed on glibc systems.
30268
30269 2008-03-06  Bruno Haible  <bruno@clisp.org>
30270
30271         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
30272         email address.
30273         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
30274
30275 2008-03-06  Bruno Haible  <bruno@clisp.org>
30276
30277         * users.txt: Add libgnupdf.
30278
30279 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
30280
30281         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
30282         (Header File Substitutes, Function Substitutes,
30283         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
30284         (Build robot for gnulib): Fix typo.
30285
30286 2008-03-06  Bruno Haible  <bruno@clisp.org>
30287
30288         * doc/gnulib-tool.texi (VCS Issues): Small updates.
30289         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
30290
30291 2008-03-06  Bruno Haible  <bruno@clisp.org>
30292
30293         * doc/func.texi: New file, extracted from doc/gnulib.texi.
30294         * doc/gnulib.texi: Include it.
30295
30296 2008-03-06  Simon Josefsson  <simon@josefsson.org>
30297
30298         * modules/func (License): Change license to unlimited; there was
30299         no LGPL parts in the module anyway.
30300
30301 2008-03-06  Simon Josefsson  <simon@josefsson.org>
30302
30303         * modules/__func__: Renamed to modules/func.
30304         * modules/__func__-tests: Renamed to modules/func-tests.
30305         * tests/test-__func__.c: Renamed to tests/test-func.c.
30306         * m4/__func__.m4: Renamed to m4/func.m4.
30307         * doc/gnulib.texi (__func__): Section renamed to func.
30308         Suggested by Eric Blake <ebb9@byu.net>.
30309
30310 2008-03-06  Simon Josefsson  <simon@josefsson.org>
30311
30312         * doc/gnulib.texi (__func__): Use C99 terminology when talking
30313         about __func__.  Make example self-contained.  Suggested by Eric
30314         Blake <ebb9@byu.net>.
30315
30316         * tests/test-__func__.c (main): Avoid extraneous () around __func.
30317         Suggested by Eric Blake <ebb9@byu.net>.
30318
30319 2008-03-06  Simon Josefsson  <simon@josefsson.org>
30320
30321         * modules/__func__: New file.
30322         * modules/__func__-tests: New file.
30323         * tests/test-__func__.c: New file.
30324         * m4/__func__.m4: New file.
30325         * doc/gnulib.texi (__func__): Document __func__ module.
30326
30327 2008-03-05  Simon Josefsson  <simon@josefsson.org>
30328
30329         * modules/byteswap (License): Re-license as LGPLv2+.
30330
30331 2008-03-05  Simon Josefsson  <simon@josefsson.org>
30332
30333         * doc/Makefile: Add pdf target.
30334
30335 2008-03-05  Simon Josefsson  <simon@josefsson.org>
30336
30337         * modules/inline (License): Use 'unlimited', since there are only
30338         *.m4 files in this module.
30339
30340 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
30341             Bruno Haible  <bruno@clisp.org>
30342
30343         Add support for HP C 7.1 on OpenVMS 8.3.
30344         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
30345
30346 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
30347
30348         Update VMS specifics.
30349         * lib/getopt.c [VMS]: Remove include of unixlib.h.
30350
30351 2008-03-02  Jim Meyering  <meyering@redhat.com>
30352
30353         Remove the last dependency on the "free" module.
30354         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
30355         Reported by Bob Proulx.
30356
30357         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
30358
30359         Remove useless "if" tests before free.  Deprecate "free" module.
30360         * doc/posix-functions/free.texi: Mention that this
30361         module is no longer useful.
30362         * modules/free (Notice): Say this module is obsolete.
30363         * modules/readutmp (Depends-on): Remove free.
30364         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
30365         * lib/putenv.c (putenv): Likewise.
30366         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
30367         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
30368         * tests/test-c-strcasestr.c (main): Likewise.
30369         * tests/test-c-strstr.c (main): Likewise.
30370         * tests/test-mbscasestr1.c (main): Likewise.
30371         * tests/test-mbscasestr2.c (main): Likewise.
30372         * tests/test-mbsstr1.c (main): Likewise.
30373         * tests/test-mbsstr2.c (main): Likewise.
30374         * tests/test-memmem.c (main): Likewise.
30375         * tests/test-strcasestr.c (main): Likewise.
30376         * tests/test-striconv.c (main): Likewise.
30377         * tests/test-striconveh.c (main): Likewise.
30378         * tests/test-striconveha.c (main): Likewise.
30379         * tests/test-strstr.c (main): Likewise.
30380
30381         * build-aux/git-version-gen: Adjust a comment and the Usage string.
30382
30383         bootstrap: sync from coreutils again
30384         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
30385
30386 2008-03-01  Jim Meyering  <meyering@redhat.com>
30387
30388         bootstrap: sync from coreutils
30389         * build-aux/bootstrap (update_po_files): Copy a .po file into place
30390         also when the target doesn't exist.
30391
30392 2008-03-01  Eric Blake  <ebb9@byu.net>
30393
30394         Fix bugs in last patch.
30395         * lib/memchr2.c (memchr2): Fix typo.
30396         * tests/test-memchr2.c: Test previous bug, and don't use GNU
30397         extension.
30398         Reported by Bruce Korb.
30399
30400         New module 'memchr2'.
30401         * modules/memchr2: New file.
30402         * modules/memchr2-tests: Likewise.
30403         * lib/memchr2.h: Likewise.
30404         * lib/memchr2.c: Likewise, based on memchr.c.
30405         * tests/test-memchr2.c: New test.
30406         * MODULES.html.sh (String handling): Add memchr2.
30407
30408 2008-02-29  Bruno Haible  <bruno@clisp.org>
30409
30410         * modules/freadseek-tests: New file.
30411         * tests/test-freadseek.sh: New file.
30412         * tests/test-freadseek.c: New file.
30413
30414         New module 'freadseek'.
30415         * modules/freadseek: New file.
30416         * lib/freadseek.h: New file.
30417         * lib/freadseek.c: New file.
30418         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
30419
30420 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
30421
30422         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
30423         wydawca.
30424
30425         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
30426         program_invocation_name and program_invocation_short_name are
30427         present.
30428
30429 2008-02-28  Bruno Haible  <bruno@clisp.org>
30430
30431         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
30432         * tests/test-freadptr.sh: Also test non-seekable stdin.
30433
30434 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
30435
30436         * build-aux/bootstrap (source_base, m4_base)
30437         (doc_base, tests_base): New variables.
30438         (gnulib_tool_options): Do not hardcode base directories, use
30439         the above variables instead.
30440
30441 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
30442
30443         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
30444
30445 2008-02-28  Bruno Haible  <bruno@clisp.org>
30446
30447         * modules/freadptr-tests: New file.
30448         * tests/test-freadptr.sh: New file.
30449         * tests/test-freadptr.c: New file.
30450
30451         New module 'freadptr'.
30452         * modules/freadptr: New file.
30453         * lib/freadptr.h: New file.
30454         * lib/freadptr.c: New file.
30455         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
30456
30457 2008-02-26  Karl Berry  <karl@freefriends.org>
30458
30459         Sync from Libtool:
30460         * libltdl/argz.c (argz_add, argz_count): New functions.
30461         * libltdl/argz.in.h: Declare them.
30462         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
30463
30464 2008-02-22  Bruno Haible  <bruno@clisp.org>
30465
30466         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
30467         is a pointer type.  Needed for HP-UX 10.
30468         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
30469         * doc/posix-functions/gmtime_r.texi: Likewise.
30470         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
30471
30472 2008-02-24  Bruno Haible  <bruno@clisp.org>
30473
30474         * modules/environ-tests: New file.
30475         * tests/test-environ.c: New file.
30476
30477         New module 'environ'.
30478         * modules/environ: New file.
30479         * lib/unistd.in.h (environ): New declaration.
30480         * m4/environ.m4: New file.
30481         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
30482         after use.
30483         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
30484         HAVE_DECL_ENVIRON.
30485         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
30486         HAVE_DECL_ENVIRON.
30487         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
30488         wrong claim that 'environ' is missing on some systems.
30489         * modules/execute (Depends-on): Add environ.
30490         * lib/execute.c (environ): Remove fallback declaration.
30491         * modules/pipe (Depends-on): Add environ.
30492         * lib/pipe.c (environ): Remove fallback declaration.
30493         * modules/setenv (Depends-on): Add environ.
30494         * lib/setenv.c (environ): Remove fallback declaration.
30495         * modules/unsetenv (Depends-on): Add environ.
30496         * lib/unsetenv.c (environ): Remove fallback declaration.
30497         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
30498         m4/environ.m4.
30499         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
30500         (gl_PREREQ_UNSETENV): Likewise.
30501
30502 2008-02-24  Bruno Haible  <bruno@clisp.org>
30503
30504         * doc/posix-functions/environ.texi: Document the MacOS X problem.
30505
30506 2008-02-20  Bob Proulx  <bob@proulx.com>
30507
30508         Enable use of older two part flavor 'git describe'.
30509         * build-aux/git-version-gen: If using the older two part flavor of
30510         git version then recreate the third part now present in the
30511         newer three part flavor of git describe.
30512
30513 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
30514
30515         * lib/fts.c (fts_build): Typo correction to comment.
30516
30517 2008-02-17  Bruno Haible  <bruno@clisp.org>
30518
30519         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
30520         generating no-op conflicts.
30521
30522 2008-02-17  Bruno Haible  <bruno@clisp.org>
30523
30524         Speed up by 10%.
30525         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
30526         result_entries, rather than an index-based loop.
30527
30528 2008-02-17  Bruno Haible  <bruno@clisp.org>
30529
30530         Speed up by 25%.
30531         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
30532         'hashcode_cached'.
30533         (entry_create): New function.
30534         (entry_hashcode): Use the cached hashcode if possible.
30535         (read_changelog_file, try_split_merged_entry): Use entry_create.
30536
30537 2008-02-17  Bruno Haible  <bruno@clisp.org>
30538
30539         Speed up from O(n^2) to O(n) for long ChangeLog files.
30540         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
30541         (read_changelog_file): Change implementation of entries_reversed list
30542         to rbtreehash.
30543         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
30544
30545 2008-02-17  Bruno Haible  <bruno@clisp.org>
30546
30547         New option --split-merged-entry.
30548         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
30549         (find_paragraph_end, try_split_merged_entry): New functions.
30550         (long_options): Add option --split-merged-entry.
30551         (usage): Document option --split-merged-entry.
30552         (main): Implement option --split-merged-entry.
30553         Reported by Eric Blake.
30554
30555 2008-02-17  Bruno Haible  <bruno@clisp.org>
30556
30557         * lib/git-merge-changelog.c: Include c-strstr.h.
30558         (main): Support the "git pull --rebase" situation.
30559         * modules/git-merge-changelog (Depends-on): Add c-strstr.
30560         Reported by Eric Blake.
30561
30562 2008-02-16  Eric Blake  <ebb9@byu.net>
30563
30564         Avoid doubling \ in common case of "c-maybe" quoting style.
30565         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
30566         eliding outer quotes.
30567         * lib/quotearg.h: Document this.
30568         * tests/test-quotearg.c (result_strings, inputs, results_g)
30569         (flag_results, locale_results): Test it by adding a new string to
30570         each test group.
30571         (compare_strings): Test new string.
30572
30573 2008-02-13  Eric Blake  <ebb9@byu.net>
30574
30575         Avoid trigraph quoting in default output.
30576         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
30577         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
30578         unless explicitly requested.
30579         * tests/test-quotearg.c (flag_results, main): Add additional tests.
30580
30581 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
30582
30583         Don't rely on signed integer overflowing to negative value.
30584         * lib/getugroups.c (getugroups): Include <limits.h>.
30585         Instead, compare against INT_MAX, and increment only if the test passes.
30586
30587 2008-02-13  Jim Meyering  <meyering@redhat.com>
30588         and Eric Blake  <ebb9@byu.net>
30589
30590         Avoid shadowing warning and compile errors on Linux.
30591         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
30592         forwarding macros on Linux.
30593         (dcgettext): Define a stub, for Linux.
30594         (results_g, main): Avoid warnings.
30595
30596 2008-02-12  Eric Blake  <ebb9@byu.net>
30597
30598         Silence warning in last patch.
30599         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
30600
30601         Quotearg part 4: add tests, fix c-maybe colon quoting.
30602         * lib/quotearg.h: Improve documentation.
30603         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
30604         escapes when adding outer quotes.  When quoting trigraphs, use
30605         valid C notation.  When quoting NUL, omit extra characters if next
30606         character is not digit.  Alter prototype.
30607         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
30608         callers.
30609         * modules/quotearg-tests: New module.
30610         * tests/test-quotearg.c: New test.
30611
30612 2008-02-07  Eric Blake  <ebb9@byu.net>
30613
30614         Quotearg part 3: add flag to control outer quote elision.
30615         * lib/quotearg.h (c_maybe_quoting_style): New style.
30616         (enum quoting_flags): Better documentation of flags.
30617         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
30618         c-maybe style.
30619         (quotearg_buffer_restyled): Handle new flag to elide outer
30620         quotes.
30621
30622         Quotearg part 2: add flag that can control NUL elision.
30623         * lib/quotearg.h (set_quoting_flags): New prototype.
30624         * lib/quotearg.c (struct quoting_options): Add flag field.
30625         (set_quoting_flags): New function.
30626         (quotearg_buffer_restyled): Add flags parameter.
30627         (quotearg_alloc_mem): Set the flag if length cannot be returned.
30628         (quotearg_n_options): Set the flag, since length cannot be
30629         returned.
30630         (quoting_options_from_style): Default flags correctly.
30631
30632         Quotearg part 1: more wrappers, restore quotearg_char state.
30633         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
30634         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
30635         (quotearg_colon_mem): New wrappers.
30636         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
30637         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
30638         functions.
30639         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
30640         (quotearg_colon_mem): New functions.
30641
30642 2008-02-11  Bruno Haible  <bruno@clisp.org>
30643
30644         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
30645         library in the current directory: it does not work with parallel make.
30646         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30647
30648 2008-02-11  Bruno Haible  <bruno@clisp.org>
30649
30650         * .gitattributes: New file.
30651
30652 2008-02-11  Jim Meyering  <meyering@redhat.com>
30653
30654         useless-if-before-free: Fix reversed exit values.
30655         * build-aux/useless-if-before-free: Use correct values
30656         for EXIT_MATCH and EXIT_NO_MATCH.
30657
30658         * build-aux/useless-if-before-free: Close stdout carefully.
30659
30660 2008-02-10  Bruno Haible  <bruno@clisp.org>
30661
30662         New module 'git-merge-changelog'.
30663         * modules/git-merge-changelog: New file.
30664         * lib/git-merge-changelog.c: New file.
30665
30666 2008-02-10  Jim Meyering  <meyering@redhat.com>
30667
30668         useless-if-before-free: New option: --list (-l).
30669
30670         useless-if-before-free: Don't exit immediately upon open failure.
30671         * build-aux/useless-if-before-free: Exit 2 for errors.
30672         Upon failure to open a file, don't exit immediately.
30673         Rather, just warn and continue with any remaining files.
30674
30675 2008-02-10  Bruno Haible  <bruno@clisp.org>
30676
30677         New abstract list operation 'node_set_value'.
30678         * lib/gl_list.h (gl_list_node_set_value): New function.
30679         (struct gl_list_implementation): New field node_set_value.
30680         * lib/gl_list.c (gl_list_node_set_value): New function.
30681         * lib/gl_array_list.c (gl_array_node_set_value): New function.
30682         (gl_array_list_implementation): Update.
30683         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
30684         (gl_carray_list_implementation): Update.
30685         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
30686         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
30687         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
30688         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
30689         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
30690         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
30691         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
30692         Update.
30693         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
30694         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
30695         (gl_sublist_list_implementation): Update.
30696
30697 2008-02-10  Bruno Haible  <bruno@clisp.org>
30698
30699         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
30700         Needed when ELEMENT is #defined to 'some_type *'.
30701
30702 2008-02-10  Jim Meyering  <meyering@redhat.com>
30703
30704         New script and module: useless-if-before-free
30705         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
30706         * build-aux/useless-if-before-free: New file.
30707         * modules/useless-if-before-free: New file.
30708
30709         * build-aux/gitlog-to-changelog: Use committer date, not author date.
30710
30711         xstrtol_error: Fix typo.
30712         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
30713         s/exit_failure/exit_status/.
30714
30715 2008-02-09  Jim Meyering  <meyering@redhat.com>
30716
30717         New script and module: gitlog-to-changelog
30718         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
30719         * modules/gitlog-to-changelog: New file.
30720         * build-aux/gitlog-to-changelog: New file.
30721
30722 2008-02-08  Jim Meyering  <meyering@redhat.com>
30723
30724         Avoid two "parameter unused" warnings.
30725         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
30726         Mark "st" as used.
30727
30728         Use "git COMMAND", not "git-COMMAND".
30729         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
30730         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
30731         * build-aux/git-version-gen: Use "git status", not "git-status".
30732
30733 2008-02-07  Bruno Haible  <bruno@clisp.org>
30734
30735         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
30736         Avoids a crash on Windows Vista.
30737         Reported by Adam Strzelecki <ono@java.pl> via
30738         Simon Josefsson <simon@josefsson.org>.
30739
30740 2008-02-06  Bruno Haible  <bruno@clisp.org>
30741
30742         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
30743         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
30744         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
30745         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
30746         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
30747         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
30748         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
30749         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
30750         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
30751         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
30752         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
30753         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
30754         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
30755         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30756         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
30757         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
30758         left-adjust flag.
30759         * tests/test-snprintf-posix.h (test_function): Likewise.
30760         * tests/test-sprintf-posix.h (test_function): Likewise.
30761         * tests/test-vasprintf-posix.c (test_function): Likewise.
30762         * doc/posix-functions/fprintf.texi: Update.
30763         * doc/posix-functions/printf.texi: Update.
30764         * doc/posix-functions/snprintf.texi: Update.
30765         * doc/posix-functions/sprintf.texi: Update.
30766         * doc/posix-functions/vfprintf.texi: Update.
30767         * doc/posix-functions/vprintf.texi: Update.
30768         * doc/posix-functions/vsnprintf.texi: Update.
30769         * doc/posix-functions/vsprintf.texi: Update.
30770         Reported by Peter Fales <psfales@alcatel-lucent.com>.
30771
30772 2008-02-06  Bruno Haible  <bruno@clisp.org>
30773
30774         Fix bug introduced on 2008-01-26.
30775         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
30776
30777 2008-02-06  Bruno Haible  <bruno@clisp.org>
30778
30779         Fix bug introduced on 2007-06-10.
30780         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
30781         !NEED_PRINTF_FLAG_ZERO.
30782
30783 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
30784
30785         getloadavg: use libperfstat on AIX5
30786         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
30787
30788 2008-02-03  Bruno Haible  <bruno@clisp.org>
30789
30790         * lib/diffseq.h: Add comments about required #includes.
30791         Reported by Michael Biggs <gnulib@doubleplum.net>.
30792
30793 2008-02-01  Bruno Haible  <bruno@clisp.org>
30794
30795         * users.txt: Add gnuit.
30796
30797 2008-01-31  Bruno Haible  <bruno@clisp.org>
30798
30799         * lib/md4.c (set_uint32): Mark as inline.
30800         * lib/md5.c (set_uint32): Likewise.
30801         * lib/sha1.c (set_uint32): Likewise.
30802         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
30803         * m4/md5.m4 (gl_MD5): Likewise.
30804         * m4/sha1.m4 (gl_SHA1): Likewise.
30805
30806 2008-01-31  Jim Meyering  <meyering@redhat.com>
30807
30808         Use "sizeof VAR", rather than a literal "4".
30809         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
30810         * lib/md4.c (md4_read_ctx): Likewise.
30811         * lib/sha1.c (sha1_read_ctx): Likewise.
30812
30813 2008-01-31  Simon Josefsson  <simon@josefsson.org>
30814
30815         * tests/test-sha1.c: New file, based on test-md5.c.
30816
30817         * modules/crypto/sha1-tests: New file.
30818
30819 2008-01-31  Simon Josefsson  <simon@josefsson.org>
30820
30821         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
30822
30823 2008-01-31  Jim Meyering  <meyering@redhat.com>
30824
30825         Prefer "sizeof v" over the equivalent "4".
30826         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
30827         * lib/md5.c (set_uint32): Likewise.
30828         * lib/sha1.c (set_uint32): Likewise.
30829
30830 2008-01-31  Simon Josefsson  <simon@josefsson.org>
30831
30832         * lib/sha1.c (set_uint32): Mark function as static.
30833
30834 2008-01-31  Simon Josefsson  <simon@josefsson.org>
30835
30836         md2: clarify comments to say that alignment is not required.
30837         * lib/md2.h: Remove warning about alignment in comment.
30838         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
30839         never been required.
30840
30841 2008-01-31  Simon Josefsson  <simon@josefsson.org>
30842
30843         md4: adapt alignment constraint fix from sha1.
30844         * lib/md4.c (set_uint32): New function, from sha1.c
30845         (md4_read_ctx): Use it.
30846         (md4_finish_ctx): Doc fix.
30847         * lib/md4.h: Doc fix.
30848
30849 2008-01-31  Simon Josefsson  <simon@josefsson.org>
30850
30851         md5: adapt alignment constraint fix from sha1.
30852         * lib/md5.c (set_uint32): New function, from sha1.c
30853         (md5_read_ctx): Use it.
30854         (md5_finish_ctx): Doc fix.
30855         * lib/md5.h: Doc fix.
30856
30857 2008-01-30  Peter Palfrader  <weasel@debian.org>
30858
30859         sha1: remove the result buffer alignment constraint
30860         * lib/sha1.c (set_uint32): New function.
30861         (sha1_read_ctx): Rewrite to remove the result buffer alignment
30862         constraint.
30863         (sha1_finish_ctx): Remove comment warning about alignment constraint.
30864         * lib/sha1.h: Likewise.
30865
30866 2008-01-30  Andreas Schwab  <schwab@suse.de>
30867             Bruno Haible  <bruno@clisp.org>
30868
30869         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
30870         correct definition of LDBL_MIN_EXP.
30871
30872 2008-01-30  Karl Berry  <karl@gnu.org>
30873
30874         * config/srclist-update: try to preserve x bit on updates.
30875         * config/srclistvars.sh: update for karl.
30876
30877 2008-01-29  Jim Meyering  <meyering@redhat.com>
30878
30879         vasnprintf.c: Avoid warning about unused label
30880         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
30881         "overflow" label definition and associated code with the
30882         same cpp condition that guards the sole use of that label.
30883
30884 2008-01-26  Bruno Haible  <bruno@clisp.org>
30885
30886         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
30887         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
30888         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
30889         * lib/isnanl-nolibm.h (isnanl): Likewise.
30890         Reported by Paul Eggert <eggert@cs.ucla.edu>.
30891
30892 2008-01-26  Bruno Haible  <bruno@clisp.org>
30893
30894         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
30895         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
30896
30897 2008-01-26  Bruno Haible  <bruno@clisp.org>
30898
30899         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
30900         GCC >= 4.0 built-in.
30901         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
30902
30903 2008-01-26  Bruno Haible  <bruno@clisp.org>
30904
30905         Rename isnan, applicable to 'double' only, to isnand.
30906         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
30907         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
30908         (configure.ac): Update.
30909         (Include): Replace "isnan.h" with "isnand.h".
30910         * m4/isnand.m4: Renamed from m4/isnan.m4.
30911         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
30912         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
30913         instead of isnan.c.
30914         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
30915         instead of HAVE_ISNAN_IN_LIBC.
30916         (isnand): Renamed from isnan.
30917         * lib/isnand.c: New file.
30918         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
30919         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
30920         (Makefile.am): Update.
30921         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
30922         Include isnand.h instead of isnan.h.
30923         (main): Test isnand instead of isnan.
30924         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
30925         isnan-nolibm.
30926         * modules/frexp (Depends-on): Likewise.
30927         * modules/frexp-tests (Depends-on): Likewise.
30928         * modules/frexp-nolibm (Depends-on): Likewise.
30929         * modules/frexp-nolibm-tests (Depends-on): Likewise.
30930         * modules/isfinite (Depends-on): Likewise.
30931         * modules/round-tests (Depends-on): Likewise.
30932         * modules/signbit (Depends-on): Likewise.
30933         * modules/signbit-tests (Depends-on): Likewise.
30934         * modules/snprintf-posix (Depends-on): Likewise.
30935         * modules/sprintf-posix (Depends-on): Likewise.
30936         * modules/trunc-tests (Depends-on): Likewise.
30937         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
30938         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
30939         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
30940         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
30941         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
30942         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
30943         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
30944         * modules/vasnprintf-posix (Depends-on): Likewise.
30945         * modules/vasprintf-posix (Depends-on): Likewise.
30946         * modules/vfprintf-posix (Depends-on): Likewise.
30947         * modules/vsnprintf-posix (Depends-on): Likewise.
30948         * modules/vsprintf-posix (Depends-on): Likewise.
30949         * lib/frexp.c: Include isnand.h instead of isnan.h.
30950         (ISNAN): Set to isnand instead of isnan.
30951         * lib/isfinite.c: Include isnand.h instead of isnan.h.
30952         (gl_isfinited): Use isnand instead of isnan.
30953         * lib/signbitd.c: Include isnand.h instead of isnan.h.
30954         (gl_signbitd): Use isnand instead of isnan.
30955         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
30956         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
30957         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
30958         (main): Use isnand instead of isnan.
30959         * tests/test-round1.c: Include isnand.h.
30960         (main): Use isnand instead of isnan.
30961         * tests/test-round2.c: Include isnand.h instead of isnan.h.
30962         (ISNAN): Set to isnand instead of isnan.
30963         * tests/test-trunc1.c: Include isnand.h.
30964         (main): Use isnand instead of isnan.
30965         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
30966         (equal): Use isnand instead of isnan.
30967         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
30968         isnand-nolibm.
30969         * NEWS: Mention the change.
30970
30971 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
30972             Bruno Haible  <bruno@clisp.org>
30973
30974         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
30975         the GCC builtins for signbits are present and set
30976         REPLACE_SIGNBIT_USING_GCC if so.
30977         * lib/math.in.h (signbit): Define using GCC builtins if
30978         REPLACE_SIGNBIT_USING_GCC is set.
30979         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
30980         REPLACE_SIGNBIT_USING_GCC.
30981         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
30982
30983 2008-01-25  Jim Meyering  <meyering@redhat.com>
30984
30985         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
30986         * lib/poll.c: Include <config.h>, not "config.h".
30987         * tests/test-getaddrinfo.c: Likewise.
30988
30989 2008-01-25  Simon Josefsson  <simon@josefsson.org>
30990
30991         * modules/sockets-tests: New file.
30992
30993 2008-01-24  Simon Josefsson  <simon@josefsson.org>
30994
30995         * modules/sockets: New module, can be used to call WSA_Startup and
30996         WSA_Cleanup when needed.
30997
30998         * lib/sockets.h, lib/sockets.c: New files.
30999
31000         * m4/sockets.m4: New file.
31001
31002         * tests/test-sockets.c: New file.
31003
31004 2008-01-19  Bruno Haible  <bruno@clisp.org>
31005
31006         * doc/posix-headers: Renamed from doc/headers.
31007         * doc/posix-functions: Renamed from doc/functions.
31008         * doc/gnulib.texi: Update.
31009
31010 2008-01-19  Bruno Haible  <bruno@clisp.org>
31011
31012         * doc/glibc-functions/strcasestr.texi: Include contents of
31013         doc/functions/strcasestr.texi, fixing the list of platforms.
31014         * doc/functions/strcasestr.texi: Remove file.
31015
31016 2008-01-19  Bruno Haible  <bruno@clisp.org>
31017
31018         * doc/glibc-functions/memmem.texi: Include contents of
31019         doc/functions/memmem.texi.
31020         * doc/functions/memmem.texi: Remove file.
31021
31022 2008-01-18  Bruno Haible  <bruno@clisp.org>
31023
31024         * doc/glibc-functions/*.texi: New files.
31025         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
31026         to use the new files.
31027
31028 2008-01-17  Bruno Haible  <bruno@clisp.org>
31029
31030         * tests/test-gethostname.c (main): Fix printf statement.
31031
31032 2008-01-17  Simon Josefsson  <simon@josefsson.org>
31033
31034         * modules/gethostname-tests: New file.
31035
31036         * tests/test-gethostname.c: New file.
31037
31038 2008-01-17  Simon Josefsson  <simon@josefsson.org>
31039
31040         * lib/gethostname.c: Include string.h unconditionally, strncpy is
31041         used by the UNAME case.  Reported by Bruno Haible
31042         <bruno@clisp.org>.
31043
31044 2008-01-17  Eric Blake  <ebb9@byu.net>
31045
31046         Convert c-strcasestr to be more efficient.
31047         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
31048         (Depends-on): Add c-strcase, remove malloca, strnlen.
31049         * tests/test-c-strcasestr.c (main): Enhance test.
31050         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
31051
31052 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
31053
31054         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
31055         Use it in creating po/Makevars.
31056
31057 2008-01-15  Simon Josefsson  <simon@josefsson.org>
31058
31059         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
31060         Applications that requires it should initialize libgcrypt
31061         manually.
31062
31063 2008-01-16  Simon Josefsson  <simon@josefsson.org>
31064
31065         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
31066
31067 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
31068
31069         Fix problem with getdate on mingw32 reported by Simon Josefsson
31070         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
31071         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
31072         tzname", when deciding whether to declare tzname.
31073         * lib/strftime.c (tzname): Likewise.
31074
31075 2008-01-15  Bruno Haible  <bruno@clisp.org>
31076
31077         Work around a MacOS X 10.5 bug in frexpl().
31078         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
31079         * doc/functions/frexpl.texi: Document the bug.
31080         Reported by Elias Pipping <pipping@gentoo.org>.
31081
31082 2008-01-14  Eric Blake  <ebb9@byu.net>
31083
31084         Touch up previous patch.
31085         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
31086         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
31087
31088         Convert strcasestr module to use Two-Way algorithm.
31089         * modules/strcasestr-simple: New module, based on the old
31090         strcasestr, but with Two-Way rather than KMP.
31091         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
31092         * lib/string.in.h (rpl_strcasestr): Declare.
31093         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
31094         performance.
31095         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
31096         * modules/string (Makefile.am): Support strcasestr.
31097         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
31098         * modules/strcasestr-tests (Depends-on): Check for alarm.
31099         * tests/test-strcasestr.c: Augment test.
31100         * lib/str-two-way.h: Clean up stray macro.
31101         * NEWS: Document new module.
31102         * MODULES.html.sh (string handling): Likewise.
31103         * doc/functions/strcasestr.texi: New file.
31104         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
31105         here, since it is not a POSIX function.
31106
31107 2008-01-14  Colin Watson  <cjwatson@debian.org>
31108             Bruno Haible  <bruno@clisp.org>
31109
31110         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
31111         works fine; if not, set REPLACE_STRSIGNAL.
31112         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
31113         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
31114         REPLACE_STRSIGNAL.
31115         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
31116         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
31117         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
31118
31119 2008-01-14  Bruno Haible  <bruno@clisp.org>
31120
31121         * modules/strsignal (Include): Change to <string.h>.
31122
31123 2008-01-14  Colin Watson  <cjwatson@debian.org>
31124
31125         * modules/argp (Notice): Add a notice recommending to change
31126         XGETTEXT_OPTIONS.
31127         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
31128
31129 2008-01-13  Colin Watson  <cjwatson@debian.org>
31130
31131         * modules/strsignal-tests: New file.
31132         * tests/test-strsignal.c: New file.
31133
31134         * lib/strsignal.c: New file, from glibc with modifications.
31135         * lib/siglist.h: New file, from glibc with modifications.
31136         * lib/string.in.h (strsignal): New declaration.
31137         * m4/strsignal.m4: New file.
31138         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
31139         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
31140         * modules/strsignal: New file.
31141         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
31142         HAVE_DECL_STRSIGNAL.
31143
31144 2008-01-13  Bruno Haible  <bruno@clisp.org>
31145
31146         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
31147         locale encoding is not ASCII. Needed for OpenBSD 4.0.
31148         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
31149         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
31150
31151 2008-01-13  Bruno Haible  <bruno@clisp.org>
31152
31153         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
31154         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
31155         * lib/argp.h (__attribute__): Likewise.
31156         * lib/c-stack.c (__attribute__): Likewise.
31157         * lib/error.h (__attribute__): Likewise.
31158         * lib/fts.c (__attribute__): Likewise.
31159         * lib/openat.h (__attribute__): Likewise.
31160         * lib/stdio.in.h (__attribute__): Likewise.
31161         * lib/string.in.h (__attribute__): Likewise.
31162         * lib/utimens.c (__attribute__): Likewise.
31163         * lib/vasnprintf.h (__attribute__): Likewise.
31164         * lib/xalloc.h (__attribute__): Likewise.
31165         * lib/xprintf.h (__attribute__): Likewise.
31166         * lib/xstrtol.h (__attribute__): Likewise.
31167         * lib/xvasprintf.h (__attribute__): Likewise.
31168
31169 2008-01-12  Bruno Haible  <bruno@clisp.org>
31170
31171         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
31172         * doc/glibc-headers/a.out.texi: New file.
31173         * doc/glibc-headers/aliases.texi: New file.
31174         * doc/glibc-headers/alloca.texi: New file.
31175         * doc/glibc-headers/ar.texi: New file.
31176         * doc/glibc-headers/argp.texi: New file.
31177         * doc/glibc-headers/argz.texi: New file.
31178         * doc/glibc-headers/byteswap.texi: New file.
31179         * doc/glibc-headers/crypt.texi: New file.
31180         * doc/glibc-headers/endian.texi: New file.
31181         * doc/glibc-headers/envz.texi: New file.
31182         * doc/glibc-headers/err.texi: New file.
31183         * doc/glibc-headers/error.texi: New file.
31184         * doc/glibc-headers/execinfo.texi: New file.
31185         * doc/glibc-headers/fpu_control.texi: New file.
31186         * doc/glibc-headers/fstab.texi: New file.
31187         * doc/glibc-headers/fts.texi: New file.
31188         * doc/glibc-headers/getopt.texi: New file.
31189         * doc/glibc-headers/ieee754.texi: New file.
31190         * doc/glibc-headers/ifaddrs.texi: New file.
31191         * doc/glibc-headers/libintl.texi: New file.
31192         * doc/glibc-headers/mcheck.texi: New file.
31193         * doc/glibc-headers/mntent.texi: New file.
31194         * doc/glibc-headers/obstack.texi: New file.
31195         * doc/glibc-headers/paths.texi: New file.
31196         * doc/glibc-headers/printf.texi: New file.
31197         * doc/glibc-headers/pty.texi: New file.
31198         * doc/glibc-headers/resolv.texi: New file.
31199         * doc/glibc-headers/shadow.texi: New file.
31200         * doc/glibc-headers/sysexits.texi: New file.
31201         * doc/glibc-headers/ttyent.texi: New file.
31202
31203 2008-01-12  Jim Meyering  <meyering@redhat.com>
31204
31205         announce-gen: emit Gnulib's git-based version string.
31206         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
31207         New option --gnulib-version=V, where V is expected to be
31208         the output of running git describe in the gnulib directory.
31209         (get_tool_versions): Request feedback on xdelta.  I suspect it's
31210         not useful, and plan to stop publishing an xdelta file with each
31211         coreutils release.
31212
31213         * build-aux/announce-gen: Also check for lzma-compressed files.
31214
31215 2008-01-11  Bruno Haible  <bruno@clisp.org>
31216
31217         * tests/test-memmem.c (main): Increase maximum allowed time.
31218         * tests/test-strstr.c (main): Likewise.
31219
31220 2008-01-11  Bruno Haible  <bruno@clisp.org>
31221
31222         * doc/functions/memmem.texi: Add more precisions about platforms.
31223         * doc/functions/strstr.texi: Likewise.
31224
31225 2008-01-10  Eric Blake  <ebb9@byu.net>
31226
31227         * m4/strstr.m4: Delete cruft from copy-n-paste.
31228         Reported by Bruno Haible.
31229
31230 2008-01-10  Bruno Haible  <bruno@clisp.org>
31231
31232         Make c-strstr rely on strstr.
31233         * lib/c-strstr.c: Don't include str-kmp.h.
31234         (c_strstr): Define in terms of strstr.
31235         * modules/c-strstr (Files): Remove lib/str-kmp.h.
31236         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
31237
31238 2008-01-10  Bruno Haible  <bruno@clisp.org>
31239
31240         * doc/gnulib.texi (String Functions in C Locale): New section.
31241         * doc/c-ctype.texi: New file.
31242         * doc/c-strcase.texi: New file.
31243         * doc/c-strcaseeq.texi: New file.
31244         * doc/c-strcasestr.texi: New file.
31245         * doc/c-strstr.texi: New file.
31246         * doc/c-strtod.texi: New file.
31247         * doc/c-strtold.texi: New file.
31248
31249 2008-01-10  Eric Blake  <ebb9@byu.net>
31250
31251         * lib/relocatable.h: Fix a comment.
31252
31253 2008-01-10  Eric Blake  <ebb9@byu.net>
31254
31255         Share two-way algorithm.
31256         * lib/str-two-way.h: New file, merged from...
31257         * lib/memmem.c: ...here...
31258         * lib/strstr.c: ...and here.
31259         * modules/memmem (Files): Use it.
31260         * modules/strstr (Files): Likewise.
31261
31262         Avoid quadratic strstr implementations.
31263         * lib/strstr.c: New file.
31264         * m4/strstr.m4: Likewise.
31265         * modules/strstr: Likewise.
31266         * modules/strstr-tests: Likewise.
31267         * tests/test-strstr.c: Likewise.
31268         * lib/string.in.h (rpl_strstr): Declare.
31269         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
31270         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
31271         * modules/string (Makefile.am): Likewise.
31272         * MODULES.html.sh (string handling): Mention new module.
31273         * doc/functions/strstr.texi (strstr): Document the bug.
31274
31275 2008-01-10  Bruno Haible  <bruno@clisp.org>
31276
31277         * lib/relocatable.h (relocate): State whether result is freshly
31278         allocated or not.
31279         * lib/relocatable.c (relocate): Return a freshly allocated string
31280         instead of a pointer to a privately held string.
31281         Reported by Sylvain Beucler <beuc@gnu.org>.
31282
31283 2008-01-10  Colin Watson  <cjwatson@debian.org>
31284
31285         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
31286         s/S_ISNLK/S_ISLNK/.
31287
31288 2008-01-09  Bruno Haible  <bruno@clisp.org>
31289
31290         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
31291         and other files.
31292         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
31293         if it's only a guess.
31294         * modules/memmem: Simplify by depending on memmem-simple.
31295
31296 2008-01-09  Bruno Haible  <bruno@clisp.org>
31297
31298         Work around OpenBSD 4.0 tdelete() bug.
31299         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
31300         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
31301         macros and don't redefine the enum values.
31302         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
31303         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
31304         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
31305
31306 2008-01-09  Bruno Haible  <bruno@clisp.org>
31307
31308         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
31309         (main): Don't perform the tests if setlocale did not install a UTF-8
31310         locale. Needed on OpenBSD 4.0.
31311         * modules/wcwidth-tests (Depends-on): Add localcharset.
31312
31313 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
31314
31315         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
31316         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
31317         * NEWS: announce this.
31318         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
31319
31320 2008-01-09  Simon Josefsson  <simon@josefsson.org>
31321         and Eric Blake  <ebb9@byu.net>
31322
31323         Add memmem-simple module.
31324         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
31325         (gl_FUNC_MEMMEM): Separate performance from presence checks.
31326         * modules/memmem-simple: New file.
31327         * modules/memmem (Description): Tweak.
31328         * MODULES.html.sh (string handling): Mention new module.
31329         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
31330         addressed by memmem-simple.
31331         * NEWS: Document the difference.
31332
31333 2008-01-09  Eric Blake  <ebb9@byu.net>
31334
31335         Give gcc some memmem optimization hints.
31336         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
31337         (strcasestr): Declare as pure.
31338         * modules/memmem (Maintainer): Claim my implementation.
31339
31340 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31341
31342         Support AIX 6.1 and higher.
31343         * build-aux/config.libpath: Likewise.
31344         * build-aux/config.rpath: Likewise.
31345
31346 2008-01-08  Jim Meyering  <meyering@redhat.com>
31347             Bruno Haible  <bruno@clisp.org>
31348
31349         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
31350         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
31351         Reported by Peter Fales in
31352         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
31353
31354 2008-01-08  Bruno Haible  <bruno@clisp.org>
31355
31356         * modules/unictype/category-of (Depends-on): Add
31357         unictype/category-none.
31358         * modules/unictype/category-and-tests (Depends-on): Add
31359         unictype/category-{L,N,Lu,Nd}.
31360         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
31361         * modules/unictype/category-or-tests (Depends-on): Add
31362         unictype/category-{L,N}.
31363         * modules/unictype/category-name-tests (Depends-on): Add
31364         unictype/category-{Z,Nl}.
31365         Reported by Simon Josefsson.
31366
31367 2008-01-08  Bruno Haible  <bruno@clisp.org>
31368
31369         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
31370         convention better.
31371         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
31372         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
31373         Reported by Peter Miller <millerp@canb.auug.org.au>.
31374
31375 2008-01-08  Eric Blake  <ebb9@byu.net>
31376
31377         Rewrite memmem to guarantee linear complexity without malloc.
31378         * lib/memmem.c (memmem): Use Two-Way rather than
31379         Knuth-Morris-Pratt, to allow O(1) space usage.
31380         (critical_factorization, two_way_short_needle)
31381         (two_way_long_needle): New functions.
31382         (knuth_morris_pratt): Delete.
31383         * modules/memmem (Depends-on): No longer need malloca or stdbool.
31384         Add stdint.
31385         * tests/test-memmem.c (main): Add tests for periodic needle and
31386         sublinear performance.
31387         * doc/functions/memmem.texi (memmem): Document other deficiencies
31388         in cygwin and older glibc.
31389
31390 2008-01-08  Bruno Haible  <bruno@clisp.org>
31391
31392         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
31393         augmentation.
31394
31395 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
31396
31397         Add a configure time option: --disable-acl.
31398         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
31399         AC_ARG_ENABLE(acl).
31400
31401 2008-01-06  Simon Josefsson  <simon@josefsson.org>
31402
31403         * tests/test-localename.c: Don't include obsolete "setenv.h".
31404
31405         * modules/localename-tests (Depends-on): Need unsetenv.
31406
31407 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31408
31409         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
31410
31411 2008-01-06  Colin Watson  <cjwatson@debian.org>
31412
31413         * users.txt: Add man-db.
31414
31415 2008-01-07  Bruno Haible  <bruno@clisp.org>
31416
31417         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
31418         previous section name.
31419
31420 2008-01-07  Bruno Haible  <bruno@clisp.org>
31421
31422         * lib/progname.c (set_program_name): Don't strip off a leading
31423         "lt-" prefix outside a .libs directory.
31424         Suggested by Paul Eggert.
31425
31426 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
31427             Bruno Haible  <bruno@clisp.org>
31428
31429         Improve memory cleanup in 'relocatable' module.
31430         * lib/relocatable.h (compute_curr_prefix): Change return type to
31431         'char *'.
31432         * lib/relocatable.c (compute_curr_prefix): Change return type to
31433         'char *'. Free curr_installdir after use.
31434         (relocate): Free curr_prefix_better after use.
31435         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
31436
31437 2008-01-01  Bruno Haible  <bruno@clisp.org>
31438
31439         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
31440         failure on older glibc systems.
31441         Reported by Peter Fales <psfales@alcatel-lucent.com>.
31442
31443 2008-01-05  Eric Blake  <ebb9@byu.net>
31444
31445         Avoid quadratic system memmem.
31446         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
31447         Reported by Ralf Wildenhues.
31448
31449         Fix memmem test for mingw.
31450         * modules/memmem-tests (configure.ac): Check for alarm.
31451         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
31452         it.
31453         * doc/functions/memmem.texi: New file.
31454         * doc/gnulib.texi (Function Substitutes): Add memmem.
31455         Reported by Bruno Haible.
31456
31457 2008-01-04  Bruno Haible  <bruno@clisp.org>
31458
31459         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
31460         Require gl_HEADER_STRINGS_H_DEFAULTS, not
31461         gl_HEADER_STRING_H_DEFAULTS.
31462
31463 2008-01-04  Eric Blake  <ebb9@byu.net>
31464
31465         Shorten duration of memmem test.
31466         * tests/test-memmem.c (main): Use alarm to declare failure if test
31467         is taking too long.
31468         Reported by Ralf Wildenhues.
31469
31470 2007-12-21  Simon Josefsson  <simon@josefsson.org>
31471
31472         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
31473         string, needed by strerror.
31474
31475 2008-01-03  Colin Watson  <cjwatson@debian.org>
31476             Bruno Haible  <bruno@clisp.org>
31477
31478         * doc/gnulib-tool.texi (Localization): New section.
31479
31480 2008-01-02  Bruno Haible  <bruno@clisp.org>
31481
31482         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
31483         variables to 'unsigned char *' type.
31484         Reported by Paul Eggert.
31485
31486 2008-01-02  Jim Meyering  <jim@meyering.net>
31487
31488         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
31489
31490 2007-12-31  Jim Meyering  <jim@meyering.net>
31491
31492         Avoid use of private FTS type name.
31493         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
31494
31495 2007-12-30  Karl Berry  <karl@gnu.org>
31496
31497         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
31498         work around defect in Texinfo and/or the standalone Info browser.
31499
31500 2007-12-30  Bruno Haible  <bruno@clisp.org>
31501
31502         Unify 5 copies of the KMP code.
31503         * lib/str-kmp.h: New file.
31504         * lib/c-strcasestr.c: Include str-kmp.h.
31505         (knuth_morris_pratt): Remove function.
31506         (c_strcasestr): Update.
31507         * lib/c-strstr.c: Include str-kmp.h.
31508         (knuth_morris_pratt): Remove function.
31509         (c_strcasestr): Update.
31510         * lib/mbscasestr.c: Include str-kmp.h.
31511         (knuth_morris_pratt_unibyte): Remove function.
31512         * lib/mbsstr.c: Include str-kmp.h.
31513         (knuth_morris_pratt_unibyte): Remove function.
31514         * lib/strcasestr.c: Include str-kmp.h.
31515         (knuth_morris_pratt): Remove function.
31516         (strcasestr): Update.
31517         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
31518         * modules/c-strstr (Files): Likewise.
31519         * modules/mbscasestr (Files): Likewise.
31520         * modules/mbsstr (Files): Likewise.
31521         * modules/strcasestr (Files): Likewise.
31522         Suggested by Paul Eggert.
31523
31524 2007-12-30  Bruno Haible  <bruno@clisp.org>
31525
31526         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
31527         defined.
31528
31529 2007-12-30  Bruno Haible  <bruno@clisp.org>
31530
31531         * lib/xmalloca.h: Include xalloc.h.
31532         (xnmalloca): New macro.
31533
31534 2007-12-30  Bruno Haible  <bruno@clisp.org>
31535
31536         * lib/malloca.h (nmalloca): New macro.
31537         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
31538         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
31539         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
31540         knuth_morris_pratt_multibyte): Likewise.
31541         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
31542         knuth_morris_pratt_multibyte): Likewise.
31543         * lib/memmem.c (knuth_morris_pratt): Likewise.
31544         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
31545
31546 2007-12-25  Bruno Haible  <bruno@clisp.org>
31547
31548         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
31549         * lib/glob.c: Don't include openat.h.
31550         (link_exists2_p): Add back the code that deals with the
31551         !GLOB_ALTDIRFUNC case.
31552         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
31553         let it do the filename concatenation.
31554         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
31555         * modules/glob (Depends-on): Remove openat.
31556
31557 2007-12-31  Bruno Haible  <bruno@clisp.org>
31558
31559         * modules/dirfd (License): Change to LGPLv2+.
31560         Approved by Jim Meyering.
31561
31562 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
31563
31564         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
31565         when multiplying M by sizeof (size_t).
31566
31567 2007-12-10  Martin Lambers  <marlam@marlam.de>
31568
31569         Override getpagesize on mingw.
31570         * lib/getpagesize.c: New file.
31571         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
31572         * modules/getpagesize (Files): Add lib/getpagesize.c.
31573         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
31574         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31575         REPLACE_GETPAGESIZE.
31576         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
31577
31578 2007-12-25  Bruno Haible  <bruno@clisp.org>
31579
31580         * modules/localcharset (Notice): New field.
31581         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
31582         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
31583
31584 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
31585             Bruno Haible  <bruno@clisp.org>
31586
31587         Avoid using the syntax symbol() in formatted documentation.
31588         * MODULES.html.sh (func_module): When replacing symbol() with a
31589         hyperlink, remove the parentheses. Show an error if some remain.
31590         Recognize and render the '...' syntax.
31591         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
31592         Rework. Add paragraph about GCC's inlining.
31593         * doc/alloca.texi: Likewise.
31594         * doc/error.texi: Remove parentheses from symbol reference.
31595         * doc/gnulib-intro.texi: Likewise.
31596         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
31597         * modules/fnmatch (Description): Reword to say "the ... function".
31598         * modules/full-read (Description): Likewise.
31599         * modules/full-write (Description): Likewise.
31600         * modules/safe-read (Description): Likewise.
31601         * modules/safe-write (Description): Likewise.
31602         * modules/strchrnul (Description): Likewise.
31603         * modules/trim (Description): Likewise.
31604         * modules/error (Description): Remove parentheses from symbol
31605         references.
31606         * modules/verror (Description): Likewise.
31607         Reported by Karl Berry.
31608
31609 2007-12-25  Bruno Haible  <bruno@clisp.org>
31610
31611         Fixup after 2007-10-16 commit.
31612         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
31613
31614 2007-12-24  Bruno Haible  <bruno@clisp.org>
31615
31616         Make --enable-relocatable work with DESTDIR.
31617         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
31618         to compute installdir from destprog.
31619         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
31620         also set the RELOC_DESTDIR variable.
31621         Reported by Левашев Иван <octagram@bluebottle.com>.
31622
31623 2007-12-24  Bruno Haible  <bruno@clisp.org>
31624
31625         Fix link error due to xalloc_die().
31626         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
31627         of xreadlink.
31628         * lib/relocwrapper.c: Update comments.
31629         * build-aux/install-reloc: Remove xreadlink.c from file list.
31630         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
31631         xreadlink.c.
31632         Reported by Левашев Иван <octagram@bluebottle.com>.
31633
31634 2007-12-24  Bruno Haible  <bruno@clisp.org>
31635
31636         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
31637         * lib/setenv.h: Remove file.
31638         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
31639         lib/setenv.h.
31640         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
31641         (Depends-on): Add stdlib.
31642         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
31643         gl_FUNC_UNSETENV.
31644         (Include): Replace setenv.h with <stdlib.h>.
31645         * modules/unsetenv: New file.
31646         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
31647         * lib/unsetenv.c: Include <stdlib.h> first.
31648         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
31649         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
31650         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
31651         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
31652         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
31653         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
31654         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
31655         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
31656         * doc/functions/unsetenv.texi: Update.
31657         * modules/xsetenv (Depends-on): Add unsetenv.
31658         * modules/getdate (Depends-on): Likewise.
31659         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
31660         * lib/xsetenv.c: Don't include setenv.h.
31661         * lib/getdate.y: Likewise.
31662         * lib/relocwrapper.c: Likewise.
31663         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
31664         (Depends-on): Add stdlib.
31665         * NEWS: Mention the changes.
31666         Reported by Левашев Иван <octagram@bluebottle.com>.
31667
31668 2007-12-23  Bruno Haible  <bruno@clisp.org>
31669
31670         * lib/memmem.c (memmem): Use lowercase variable names. Tab
31671         indentation.
31672
31673 2007-12-23  Bruno Haible  <bruno@clisp.org>
31674
31675         * lib/c-strcasestr.c: Add more comments.
31676         * lib/c-strstr.c: Likewise.
31677         * lib/mbscasestr.c: Likewise.
31678         * lib/mbsstr.c: Likewise.
31679         * lib/strcasestr.c: Likewise.
31680         * lib/memmem.c: Likewise.
31681
31682 2007-12-23  Bruno Haible  <bruno@clisp.org>
31683
31684         * tests/test-memmem.c: Include <string.h> first.
31685
31686 2007-12-22  Bruno Haible  <bruno@clisp.org>
31687
31688         * gnulib-tool (func_create_testdir): Change $auxdir while generating
31689         the contents of $testsbase.
31690         Reported by Ralf Wildenhues.
31691
31692 2007-12-22  Bruno Haible  <bruno@clisp.org>
31693
31694         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
31695         two variables local_ldadd_before, local_ldadd_last.
31696
31697 2007-12-20  Eric Blake  <ebb9@byu.net>
31698
31699         Work around circular library issue when cross-compiling.
31700         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
31701         that progname.o does not need to pull in rpl_memcmp.
31702
31703 2007-12-19  Eric Blake  <ebb9@byu.net>
31704
31705         Fix memmem to avoid O(n^2) worst-case complexity.
31706         * lib/memmem.c (knuth_morris_pratt): New function.
31707         (memmem): Use it if first few naive iterations fail.
31708         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
31709         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
31710         * modules/memchr (License): Likewise.
31711         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
31712         malloca.
31713         * tests/test-memmem.c: Rewrite, borrowing ideas from
31714         test-mbsstr1.c; the old version wouldn't even compile!
31715         * modules/memmem-tests: New file.
31716         * lib/string.in.h (rpl_memmem): Add declaration.
31717         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
31718         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
31719         REPLACE_MEMMEM.
31720
31721 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
31722
31723         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
31724         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
31725         before any system include files, and undef after them all.  This
31726         should fix a problem on VMS reported by John E. Malmberg in
31727         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
31728
31729 2007-12-17  Eric Blake  <ebb9@byu.net>
31730
31731         Revert addition of verify, for BSD/OS.
31732         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
31733         can't handle large files, for the sake of obsolete platforms.
31734         * modules/fseeko (Depends-on): Remove verify.
31735         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
31736         * doc/functions/ftello.texi (ftello): Likewise.
31737         * doc/functions/fgetpos.texi (fgetpos): Likewise.
31738         Reported by Larry Jones.
31739
31740 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
31741
31742         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
31743         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
31744
31745 2007-12-17  Jim Meyering  <meyering@redhat.com>
31746
31747         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
31748         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
31749         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
31750         * modules/getcwd (Depends-on): Add openat.
31751         Reported by Petr Salinger.
31752
31753 2007-12-17  Bruno Haible  <bruno@clisp.org>
31754
31755         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
31756         avoid a segmentation fault of the configure test on x86_64 systems.
31757
31758 2007-12-15  Jim Meyering  <meyering@redhat.com>
31759
31760         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
31761
31762 2007-12-13  Eric Blake  <ebb9@byu.net>
31763
31764         Another fseek test.
31765         * tests/test-fseek.c (main): Also test ungetc handling.
31766         * tests/test-fseeko.c (main): Likewise.
31767         * modules/fseeko (Depends-on): Add verify.
31768         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
31769         large.
31770         Reported by Larry Jones.
31771
31772         Fix fseeko on mingw.
31773         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
31774         seek.
31775
31776         Beef up fseek tests.
31777         * tests/test-fseek.c (main): Also test eof handling.
31778         * tests/test-fseeko.c (main): Likewise.
31779         Reported by Larry Jones.
31780
31781 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
31782
31783         Fix fseeko on BSD-based platforms.
31784         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
31785         successful seek.
31786
31787 2007-12-12  Eric Blake  <ebb9@byu.net>
31788
31789         Allow circular dependency of separate libtests.a
31790         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
31791         when use_libtests.
31792
31793 2007-12-11  Eric Blake  <ebb9@byu.net>
31794
31795         Fix bug with -0.0L in previous patch.
31796         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
31797         * tests/test-isnan.c (main): Also test on zeroes.
31798         * tests/test-isnanf.c (main): Likewise.
31799         * tests/test-isnanl.h (main): Likewise.
31800
31801         Detect pseudo-denormals on x86 even when cross-compiling.
31802         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
31803         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
31804         invalid bit patterns that happen to satisfy ==.
31805
31806         Avoid link failures with separate libtests.a.
31807         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
31808         last, to satisfy circular dependencies.
31809
31810 2007-12-11  Eric Blake  <ebb9@byu.net>
31811         and Bruno Haible  <bruno@clisp.org>
31812
31813         Fix OpenBSD 4.0 <float.h> handling of long double.
31814         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
31815         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
31816         * doc/headers/float.texi (float.h): Document OpenBSD bug.
31817
31818 2007-12-11  Jim Meyering  <meyering@redhat.com>
31819
31820         * users.txt: Add libvirt.
31821
31822         Support versions of autoconf prior to 2.59c.
31823         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
31824         if it is not already defined.
31825
31826 2007-12-09  Bruno Haible  <bruno@clisp.org>
31827
31828         Let 'gnulib-tool --import' collect sources needed for the tests in
31829         tests/ rather than in lib/.
31830         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
31831         argument. If true, add rules to generate libtests.a, and put libtests.a
31832         into $(LDADD). Consider source files in subdirectories and set
31833         uses_subdirs.
31834         (func_emit_initmacro_start, func_emit_initmacro_end,
31835         func_emit_initmacro_done): Pass all arguments explicitly.
31836         (func_import): Determine two module lists main_modules,
31837         testsrelated_modules. Determine use_libtests. Determine two variables
31838         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
31839         instead of just sed_transform_lib_file. Determine two variables
31840         main_files and testsrelated_files. Compute 'files' as the union of
31841         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
31842         func_add_or_update. In the generated gnulib-comp.m4, collect the
31843         object files for tests/ in different variables than those for lib/.
31844         Substitute LIBTESTS_LIBDEPS.
31845         (func_create_testdir): Combine the uses_subdirs results from
31846         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
31847
31848 2007-12-09  Bruno Haible  <bruno@clisp.org>
31849
31850         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
31851         the build-aux directory.
31852
31853 2007-12-09  Bruno Haible  <bruno@clisp.org>
31854
31855         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
31856         introduced on 2006-09-09.
31857
31858 2007-12-07  Jim Meyering  <meyering@redhat.com>
31859
31860         Let these macros work also with autoconf-2.59.
31861         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
31862         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
31863         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
31864
31865 2007-12-06  Jim Meyering  <meyering@redhat.com>
31866
31867         Avoid a configure-time syntax error in gl_FUNC_ACL.
31868         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
31869         function in each branch, before testing the cache variable.
31870
31871 2007-12-04  Eric Blake  <ebb9@byu.net>
31872
31873         Make scripts executable.
31874         * build-aux/config.guess: Add execute permissions.
31875         * build-aux/config.sub: Likewise.
31876         * build-aux/gendocs.sh: Likewise.
31877
31878         Fix frexp on mingw.
31879         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
31880         cross-compiling.
31881         * doc/functions/frexp.texi (frexp): Document the bug.
31882
31883         Make cygwin fseeko check more reliable.
31884         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
31885         version numbers, rather than unrelated feature check.
31886         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
31887         * doc/functions/ftello.texi (ftello): Likewise.
31888         Reported by Bruno Haible.
31889
31890         * m4/strerror.m4: Bump version number.
31891
31892 2007-12-03  Bruno Haible  <bruno@clisp.org>
31893
31894         * doc/functions/mprotect.texi: Mention the mingw problem.
31895
31896 2007-12-03  Eric Blake  <ebb9@byu.net>
31897
31898         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
31899         REPLACE_STRERROR is initialized before this macro.
31900
31901 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
31902
31903         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
31904         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
31905         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
31906         put -lsec in even for programs other than 'ls'.  This fixes a problem
31907         for gettext reported by Bruno Haible in
31908         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
31909         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
31910         Add support for Solaris 10.  This isn't efficient, but should get the
31911         job done for now.
31912
31913 2007-12-03  James Youngman  <jay@gnu.org>
31914
31915         * doc/regexprops-generic.texi: change "an close-group" to "a
31916         close-group" and "illegal" to "not allowed".
31917
31918 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31919
31920         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
31921         pr_byname.h. Needed for the rare case when the maintainer has done
31922         "make maintainer-clean" in the source directory and then attempts a
31923         build outside the source directory.
31924         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
31925         scripts_byname.h.
31926
31927 2007-12-02  Martin Lambers <marlam@marlam.de>
31928             Bruno Haible  <bruno@clisp.org>
31929
31930         * lib/getpagesize.h: Remove file.
31931         * lib/unistd.in.h: Include declaration of getpagesize here.
31932         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
31933         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
31934         HAVE_SYS_PARAM_H.
31935         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
31936         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
31937         * modules/getpagesize (Files): Remove lib/getpagesize.h.
31938         (Depends-on): Add unistd.
31939         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
31940         (Include): Use <unistd.h> instead of getpagesize.h.
31941         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
31942         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
31943         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
31944         gl_GETPAGESIZE invocation, already handled by module dependency.
31945         * lib/pagealign_alloc.c: Don't include getpagesize.h.
31946
31947 2007-12-02  Bruno Haible  <bruno@clisp.org>
31948
31949         * modules/strings-tests: New file.
31950         * tests/test-strings.c: New file.
31951
31952         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
31953         * lib/strings.in.h: New file.
31954         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
31955         * m4/strings_h.m4: New file.
31956         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
31957         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
31958         * modules/strings: New file.
31959         * modules/string (Makefile.am): Update.
31960         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
31961         Reported by Karl Berry.
31962
31963 2007-12-01  Eric Blake  <ebb9@byu.net>
31964
31965         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
31966         accomodate fix in cygwin 1.5.25.
31967
31968 2007-12-01  Jim Meyering  <meyering@redhat.com>
31969
31970         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
31971         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
31972         that would inhibit utf8-optimization of a regexp containing line-
31973         or buffer-anchors, e.g., `^', `$'.
31974
31975 2007-11-30  Bruno Haible  <bruno@clisp.org>
31976
31977         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
31978         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
31979         glthread_recursive_lock_init.
31980         * lib/lock.c (glthread_recursive_lock_init)
31981         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
31982         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
31983
31984 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
31985
31986         New function qset_acl, like set_acl but with syscall semantics.
31987         * lib/acl.h (qset_acl): New decl.
31988         * lib/acl.c (qset_acl): New function.
31989         (set_acl): Use new function.  Use more-consistent diagnostics.
31990
31991 2007-11-28  Jim Meyering  <meyering@redhat.com>
31992
31993         * modules/physmem (License): Change from GPL to LGPLv2+.
31994
31995 2007-11-26  Bruno Haible  <bruno@clisp.org>
31996
31997         * lib/vasnprintf.c (decode_long_double): Don't abort if the
31998         'long double' type has excess precision.
31999         Reported by Jim Meyering in
32000         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
32001
32002 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32003
32004         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
32005         Sync from <http://gnu.org/licenses>.
32006         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
32007         with license text from same location.
32008         * doc/maintain.texi, doc/standards.texi:  Sync from
32009         <http://savannah.gnu.org/projects/gnustandards>.
32010
32011 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
32012         and Jim Meyering  <meyering@redhat.com>
32013
32014         Adjust getdate' grammar to accept a slightly more regular language.
32015         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
32016         Before, the former was rejected.
32017         * lib/getdate.y (digits_to_date_time): New function, factored
32018         out of ...
32019         (number): ...here.  Just call digits_to_date_time.
32020         (hybrid): New non-terminal to handle an <unsigned number,
32021         signed relative offset> sequence consistently.
32022
32023 2007-11-18  Jim Meyering  <meyering@redhat.com>
32024
32025         Pull my changes from coreutils:
32026         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
32027         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
32028         use of $gnulib_tool_option_extras, so that it's separated from the
32029         preceding argument.
32030
32031         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
32032         * build-aux/bootstrap (cp_mark_as_generated): Create any required
32033         parent destination directories before copying a file into place.
32034
32035 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
32036
32037         bootstrap: work also with 4-argument variant of AC_INIT
32038         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
32039
32040 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
32041
32042         Port test-getaddrinfo to Solaris.
32043         Problem reported by Bruno Haible in
32044         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
32045         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
32046         explanation of setting 'hints'.
32047         Don't reject an implementation merely because it returns EAI_SERVICE.
32048         (EAI_SERVICE): Define to 0 if not defined.
32049
32050 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
32051
32052         The license of gnu-make and posix-shell is now "GPLed build tool".
32053         * modules/gnu-make (License): Likewise.
32054         * modules/posix-shell (License): Likewise.
32055
32056         New module posix-shell, for determining a POSIX shell
32057         or perhaps something that is close enough to a POSIX shell.
32058         * m4/posix-shell.m4: New file.
32059         * modules/posix-shell: New file.
32060
32061         * MODULES.html.sh: Mention new module.
32062
32063         New module gnu-make, for determining whether we're using GNU Make.
32064         * m4/gnu-make.m4: New file.
32065         * modules/gnu-make: New file.
32066         * MODULES.html.sh: Mention new module.
32067
32068 2007-11-14  Jim Meyering  <meyering@redhat.com>
32069
32070         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
32071         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
32072         use this macro to create a function _definition_.
32073         Remove useless "#undef ARGMATCH_DIE".
32074
32075 2007-11-14  Bruno Haible  <bruno@clisp.org>
32076
32077         * lib/config.charset: Update for OpenBSD 4.1.
32078         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
32079
32080 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
32081
32082         Document 64-bit #if problems in stdint.texi.
32083         * doc/headers/stdint.texi (stdint.h): Mention problems with
32084         64-bit-#if, and how to work around them.
32085
32086         Don't insist on 'long long int' support in the preprocessor.  It
32087         breaks too many things.  For example, PRIdMAX still uses a 'long
32088         long int' format with the latest Sun compiler, even though
32089         HAVE_LONG_LONG_INT isn't defined due to that compiler's
32090         preprocessor problem.  This causes the latest coreutils to dump
32091         core on Solaris 10 sparc with the Sun C compiler.
32092         Instead, fix the 2007-10-16 problem in a different way, by evaluating
32093         the troublesome expressions at configure-time, not at #if-time.
32094         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
32095         preprocessor.
32096         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
32097         compile-time C checks, done at 'configure'-time.
32098         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
32099         * modules/inttypes (Makefile): Substitute the new symbols that
32100         gl_INTTYPES_H now generates.
32101         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
32102
32103 2007-11-12  Bruno Haible  <bruno@clisp.org>
32104
32105         Tests for Unicode character classification functions.
32106
32107         * modules/unictype/bidicategory-byname-tests: New file.
32108         * modules/unictype/bidicategory-name-tests: New file.
32109         * modules/unictype/bidicategory-of-tests: New file.
32110         * modules/unictype/bidicategory-test-tests: New file.
32111         * modules/unictype/block-list-tests: New file.
32112         * modules/unictype/block-of-tests: New file.
32113         * modules/unictype/block-test-tests: New file.
32114         * modules/unictype/category-C-tests: New file.
32115         * modules/unictype/category-Cc-tests: New file.
32116         * modules/unictype/category-Cf-tests: New file.
32117         * modules/unictype/category-Cn-tests: New file.
32118         * modules/unictype/category-Co-tests: New file.
32119         * modules/unictype/category-Cs-tests: New file.
32120         * modules/unictype/category-L-tests: New file.
32121         * modules/unictype/category-Ll-tests: New file.
32122         * modules/unictype/category-Lm-tests: New file.
32123         * modules/unictype/category-Lo-tests: New file.
32124         * modules/unictype/category-Lt-tests: New file.
32125         * modules/unictype/category-Lu-tests: New file.
32126         * modules/unictype/category-M-tests: New file.
32127         * modules/unictype/category-Mc-tests: New file.
32128         * modules/unictype/category-Me-tests: New file.
32129         * modules/unictype/category-Mn-tests: New file.
32130         * modules/unictype/category-N-tests: New file.
32131         * modules/unictype/category-Nd-tests: New file.
32132         * modules/unictype/category-Nl-tests: New file.
32133         * modules/unictype/category-No-tests: New file.
32134         * modules/unictype/category-P-tests: New file.
32135         * modules/unictype/category-Pc-tests: New file.
32136         * modules/unictype/category-Pd-tests: New file.
32137         * modules/unictype/category-Pe-tests: New file.
32138         * modules/unictype/category-Pf-tests: New file.
32139         * modules/unictype/category-Pi-tests: New file.
32140         * modules/unictype/category-Po-tests: New file.
32141         * modules/unictype/category-Ps-tests: New file.
32142         * modules/unictype/category-S-tests: New file.
32143         * modules/unictype/category-Sc-tests: New file.
32144         * modules/unictype/category-Sk-tests: New file.
32145         * modules/unictype/category-Sm-tests: New file.
32146         * modules/unictype/category-So-tests: New file.
32147         * modules/unictype/category-Z-tests: New file.
32148         * modules/unictype/category-Zl-tests: New file.
32149         * modules/unictype/category-Zp-tests: New file.
32150         * modules/unictype/category-Zs-tests: New file.
32151         * modules/unictype/category-and-not-tests: New file.
32152         * modules/unictype/category-and-tests: New file.
32153         * modules/unictype/category-byname-tests: New file.
32154         * modules/unictype/category-name-tests: New file.
32155         * modules/unictype/category-none-tests: New file.
32156         * modules/unictype/category-of-tests: New file.
32157         * modules/unictype/category-or-tests: New file.
32158         * modules/unictype/category-test-withtable-tests: New file.
32159         * modules/unictype/combining-class-tests: New file.
32160         * modules/unictype/ctype-alnum-tests: New file.
32161         * modules/unictype/ctype-alpha-tests: New file.
32162         * modules/unictype/ctype-blank-tests: New file.
32163         * modules/unictype/ctype-cntrl-tests: New file.
32164         * modules/unictype/ctype-digit-tests: New file.
32165         * modules/unictype/ctype-graph-tests: New file.
32166         * modules/unictype/ctype-lower-tests: New file.
32167         * modules/unictype/ctype-print-tests: New file.
32168         * modules/unictype/ctype-punct-tests: New file.
32169         * modules/unictype/ctype-space-tests: New file.
32170         * modules/unictype/ctype-upper-tests: New file.
32171         * modules/unictype/ctype-xdigit-tests: New file.
32172         * modules/unictype/decimal-digit-tests: New file.
32173         * modules/unictype/digit-tests: New file.
32174         * modules/unictype/mirror-tests: New file.
32175         * modules/unictype/numeric-tests: New file.
32176         * modules/unictype/property-alphabetic-tests: New file.
32177         * modules/unictype/property-ascii-hex-digit-tests: New file.
32178         * modules/unictype/property-bidi-arabic-digit-tests: New file.
32179         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
32180         * modules/unictype/property-bidi-block-separator-tests: New file.
32181         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
32182         * modules/unictype/property-bidi-common-separator-tests: New file.
32183         * modules/unictype/property-bidi-control-tests: New file.
32184         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
32185         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
32186         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
32187         * modules/unictype/property-bidi-european-digit-tests: New file.
32188         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
32189         * modules/unictype/property-bidi-left-to-right-tests: New file.
32190         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
32191         * modules/unictype/property-bidi-other-neutral-tests: New file.
32192         * modules/unictype/property-bidi-pdf-tests: New file.
32193         * modules/unictype/property-bidi-segment-separator-tests: New file.
32194         * modules/unictype/property-bidi-whitespace-tests: New file.
32195         * modules/unictype/property-byname-tests: New file.
32196         * modules/unictype/property-combining-tests: New file.
32197         * modules/unictype/property-composite-tests: New file.
32198         * modules/unictype/property-currency-symbol-tests: New file.
32199         * modules/unictype/property-dash-tests: New file.
32200         * modules/unictype/property-decimal-digit-tests: New file.
32201         * modules/unictype/property-default-ignorable-code-point-tests: New file.
32202         * modules/unictype/property-deprecated-tests: New file.
32203         * modules/unictype/property-diacritic-tests: New file.
32204         * modules/unictype/property-extender-tests: New file.
32205         * modules/unictype/property-format-control-tests: New file.
32206         * modules/unictype/property-grapheme-base-tests: New file.
32207         * modules/unictype/property-grapheme-extend-tests: New file.
32208         * modules/unictype/property-grapheme-link-tests: New file.
32209         * modules/unictype/property-hex-digit-tests: New file.
32210         * modules/unictype/property-hyphen-tests: New file.
32211         * modules/unictype/property-id-continue-tests: New file.
32212         * modules/unictype/property-id-start-tests: New file.
32213         * modules/unictype/property-ideographic-tests: New file.
32214         * modules/unictype/property-ids-binary-operator-tests: New file.
32215         * modules/unictype/property-ids-trinary-operator-tests: New file.
32216         * modules/unictype/property-ignorable-control-tests: New file.
32217         * modules/unictype/property-iso-control-tests: New file.
32218         * modules/unictype/property-join-control-tests: New file.
32219         * modules/unictype/property-left-of-pair-tests: New file.
32220         * modules/unictype/property-line-separator-tests: New file.
32221         * modules/unictype/property-logical-order-exception-tests: New file.
32222         * modules/unictype/property-lowercase-tests: New file.
32223         * modules/unictype/property-math-tests: New file.
32224         * modules/unictype/property-non-break-tests: New file.
32225         * modules/unictype/property-not-a-character-tests: New file.
32226         * modules/unictype/property-numeric-tests: New file.
32227         * modules/unictype/property-other-alphabetic-tests: New file.
32228         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
32229         * modules/unictype/property-other-grapheme-extend-tests: New file.
32230         * modules/unictype/property-other-id-continue-tests: New file.
32231         * modules/unictype/property-other-id-start-tests: New file.
32232         * modules/unictype/property-other-lowercase-tests: New file.
32233         * modules/unictype/property-other-math-tests: New file.
32234         * modules/unictype/property-other-uppercase-tests: New file.
32235         * modules/unictype/property-paired-punctuation-tests: New file.
32236         * modules/unictype/property-paragraph-separator-tests: New file.
32237         * modules/unictype/property-pattern-syntax-tests: New file.
32238         * modules/unictype/property-pattern-white-space-tests: New file.
32239         * modules/unictype/property-private-use-tests: New file.
32240         * modules/unictype/property-punctuation-tests: New file.
32241         * modules/unictype/property-quotation-mark-tests: New file.
32242         * modules/unictype/property-radical-tests: New file.
32243         * modules/unictype/property-sentence-terminal-tests: New file.
32244         * modules/unictype/property-soft-dotted-tests: New file.
32245         * modules/unictype/property-space-tests: New file.
32246         * modules/unictype/property-terminal-punctuation-tests: New file.
32247         * modules/unictype/property-test-tests: New file.
32248         * modules/unictype/property-titlecase-tests: New file.
32249         * modules/unictype/property-unassigned-code-value-tests: New file.
32250         * modules/unictype/property-unified-ideograph-tests: New file.
32251         * modules/unictype/property-uppercase-tests: New file.
32252         * modules/unictype/property-variation-selector-tests: New file.
32253         * modules/unictype/property-white-space-tests: New file.
32254         * modules/unictype/property-xid-continue-tests: New file.
32255         * modules/unictype/property-xid-start-tests: New file.
32256         * modules/unictype/property-zero-width-tests: New file.
32257         * modules/unictype/scripts-tests: New file.
32258         * modules/unictype/syntax-c-ident-tests: New file.
32259         * modules/unictype/syntax-c-whitespace-tests: New file.
32260         * modules/unictype/syntax-java-ident-tests: New file.
32261         * modules/unictype/syntax-java-whitespace-tests: New file.
32262         * tests/unictype/test-bidi_byname.c: New file.
32263         * tests/unictype/test-bidi_name.c: New file.
32264         * tests/unictype/test-bidi_of.c: New file.
32265         * tests/unictype/test-bidi_test.c: New file.
32266         * tests/unictype/test-block_list.c: New file.
32267         * tests/unictype/test-block_of.c: New file.
32268         * tests/unictype/test-block_test.c: New file.
32269         * tests/unictype/test-categ_and.c: New file.
32270         * tests/unictype/test-categ_and_not.c: New file.
32271         * tests/unictype/test-categ_byname.c: New file.
32272         * tests/unictype/test-categ_name.c: New file.
32273         * tests/unictype/test-categ_none.c: New file.
32274         * tests/unictype/test-categ_of.c: New file.
32275         * tests/unictype/test-categ_or.c: New file.
32276         * tests/unictype/test-categ_test_withtable.c: New file.
32277         * tests/unictype/test-combining.c: New file.
32278         * tests/unictype/test-decdigit.c: New file.
32279         * tests/unictype/test-digit.c: New file.
32280         * tests/unictype/test-mirror.c: New file.
32281         * tests/unictype/test-numeric.c: New file.
32282         * tests/unictype/test-pr_byname.c: New file.
32283         * tests/unictype/test-pr_test.c: New file.
32284         * tests/unictype/test-predicate-part1.h: New file.
32285         * tests/unictype/test-predicate-part2.h: New file.
32286         * tests/unictype/test-scripts.c: New file.
32287         * tests/unictype/test-sy_c_ident.c: New file.
32288         * tests/unictype/test-sy_java_ident.c: New file.
32289
32290         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
32291         for Unicode 5.0.0.
32292         * tests/unictype/test-categ_Cc.c: Likewise.
32293         * tests/unictype/test-categ_Cf.c: Likewise.
32294         * tests/unictype/test-categ_Cn.c: Likewise.
32295         * tests/unictype/test-categ_Co.c: Likewise.
32296         * tests/unictype/test-categ_Cs.c: Likewise.
32297         * tests/unictype/test-categ_L.c: Likewise.
32298         * tests/unictype/test-categ_Ll.c: Likewise.
32299         * tests/unictype/test-categ_Lm.c: Likewise.
32300         * tests/unictype/test-categ_Lo.c: Likewise.
32301         * tests/unictype/test-categ_Lt.c: Likewise.
32302         * tests/unictype/test-categ_Lu.c: Likewise.
32303         * tests/unictype/test-categ_M.c: Likewise.
32304         * tests/unictype/test-categ_Mc.c: Likewise.
32305         * tests/unictype/test-categ_Me.c: Likewise.
32306         * tests/unictype/test-categ_Mn.c: Likewise.
32307         * tests/unictype/test-categ_N.c: Likewise.
32308         * tests/unictype/test-categ_Nd.c: Likewise.
32309         * tests/unictype/test-categ_Nl.c: Likewise.
32310         * tests/unictype/test-categ_No.c: Likewise.
32311         * tests/unictype/test-categ_P.c: Likewise.
32312         * tests/unictype/test-categ_Pc.c: Likewise.
32313         * tests/unictype/test-categ_Pd.c: Likewise.
32314         * tests/unictype/test-categ_Pe.c: Likewise.
32315         * tests/unictype/test-categ_Pf.c: Likewise.
32316         * tests/unictype/test-categ_Pi.c: Likewise.
32317         * tests/unictype/test-categ_Po.c: Likewise.
32318         * tests/unictype/test-categ_Ps.c: Likewise.
32319         * tests/unictype/test-categ_S.c: Likewise.
32320         * tests/unictype/test-categ_Sc.c: Likewise.
32321         * tests/unictype/test-categ_Sk.c: Likewise.
32322         * tests/unictype/test-categ_Sm.c: Likewise.
32323         * tests/unictype/test-categ_So.c: Likewise.
32324         * tests/unictype/test-categ_Z.c: Likewise.
32325         * tests/unictype/test-categ_Zl.c: Likewise.
32326         * tests/unictype/test-categ_Zp.c: Likewise.
32327         * tests/unictype/test-categ_Zs.c: Likewise.
32328         * tests/unictype/test-ctype_alnum.c: Likewise.
32329         * tests/unictype/test-ctype_alpha.c: Likewise.
32330         * tests/unictype/test-ctype_blank.c: Likewise.
32331         * tests/unictype/test-ctype_cntrl.c: Likewise.
32332         * tests/unictype/test-ctype_digit.c: Likewise.
32333         * tests/unictype/test-ctype_graph.c: Likewise.
32334         * tests/unictype/test-ctype_lower.c: Likewise.
32335         * tests/unictype/test-ctype_print.c: Likewise.
32336         * tests/unictype/test-ctype_punct.c: Likewise.
32337         * tests/unictype/test-ctype_space.c: Likewise.
32338         * tests/unictype/test-ctype_upper.c: Likewise.
32339         * tests/unictype/test-ctype_xdigit.c: Likewise.
32340         * tests/unictype/test-decdigit.h: Likewise.
32341         * tests/unictype/test-digit.h: Likewise.
32342         * tests/unictype/test-numeric.h: Likewise.
32343         * tests/unictype/test-pr_alphabetic.c: Likewise.
32344         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
32345         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
32346         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
32347         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
32348         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
32349         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
32350         * tests/unictype/test-pr_bidi_control.c: Likewise.
32351         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
32352         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
32353         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
32354         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
32355         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
32356         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
32357         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
32358         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
32359         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
32360         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
32361         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
32362         * tests/unictype/test-pr_combining.c: Likewise.
32363         * tests/unictype/test-pr_composite.c: Likewise.
32364         * tests/unictype/test-pr_currency_symbol.c: Likewise.
32365         * tests/unictype/test-pr_dash.c: Likewise.
32366         * tests/unictype/test-pr_decimal_digit.c: Likewise.
32367         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
32368         * tests/unictype/test-pr_deprecated.c: Likewise.
32369         * tests/unictype/test-pr_diacritic.c: Likewise.
32370         * tests/unictype/test-pr_extender.c: Likewise.
32371         * tests/unictype/test-pr_format_control.c: Likewise.
32372         * tests/unictype/test-pr_grapheme_base.c: Likewise.
32373         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
32374         * tests/unictype/test-pr_grapheme_link.c: Likewise.
32375         * tests/unictype/test-pr_hex_digit.c: Likewise.
32376         * tests/unictype/test-pr_hyphen.c: Likewise.
32377         * tests/unictype/test-pr_id_continue.c: Likewise.
32378         * tests/unictype/test-pr_id_start.c: Likewise.
32379         * tests/unictype/test-pr_ideographic.c: Likewise.
32380         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
32381         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
32382         * tests/unictype/test-pr_ignorable_control.c: Likewise.
32383         * tests/unictype/test-pr_iso_control.c: Likewise.
32384         * tests/unictype/test-pr_join_control.c: Likewise.
32385         * tests/unictype/test-pr_left_of_pair.c: Likewise.
32386         * tests/unictype/test-pr_line_separator.c: Likewise.
32387         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
32388         * tests/unictype/test-pr_lowercase.c: Likewise.
32389         * tests/unictype/test-pr_math.c: Likewise.
32390         * tests/unictype/test-pr_non_break.c: Likewise.
32391         * tests/unictype/test-pr_not_a_character.c: Likewise.
32392         * tests/unictype/test-pr_numeric.c: Likewise.
32393         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
32394         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
32395         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
32396         * tests/unictype/test-pr_other_id_continue.c: Likewise.
32397         * tests/unictype/test-pr_other_id_start.c: Likewise.
32398         * tests/unictype/test-pr_other_lowercase.c: Likewise.
32399         * tests/unictype/test-pr_other_math.c: Likewise.
32400         * tests/unictype/test-pr_other_uppercase.c: Likewise.
32401         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
32402         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
32403         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
32404         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
32405         * tests/unictype/test-pr_private_use.c: Likewise.
32406         * tests/unictype/test-pr_punctuation.c: Likewise.
32407         * tests/unictype/test-pr_quotation_mark.c: Likewise.
32408         * tests/unictype/test-pr_radical.c: Likewise.
32409         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
32410         * tests/unictype/test-pr_soft_dotted.c: Likewise.
32411         * tests/unictype/test-pr_space.c: Likewise.
32412         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
32413         * tests/unictype/test-pr_titlecase.c: Likewise.
32414         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
32415         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
32416         * tests/unictype/test-pr_uppercase.c: Likewise.
32417         * tests/unictype/test-pr_variation_selector.c: Likewise.
32418         * tests/unictype/test-pr_white_space.c: Likewise.
32419         * tests/unictype/test-pr_xid_continue.c: Likewise.
32420         * tests/unictype/test-pr_xid_start.c: Likewise.
32421         * tests/unictype/test-pr_zero_width.c: Likewise.
32422         * tests/unictype/test-sy_c_whitespace.c: Likewise.
32423         * tests/unictype/test-sy_java_whitespace.c: Likewise.
32424
32425 2007-11-12  Bruno Haible  <bruno@clisp.org>
32426
32427         Unicode character classification functions.
32428         * lib/unictype.h: New file.
32429         * modules/unictype/base: New file.
32430         * modules/unictype/category-L: New file.
32431         * modules/unictype/category-Lu: New file.
32432         * modules/unictype/category-Ll: New file.
32433         * modules/unictype/category-Lt: New file.
32434         * modules/unictype/category-Lm: New file.
32435         * modules/unictype/category-Lo: New file.
32436         * modules/unictype/category-M: New file.
32437         * modules/unictype/category-Mn: New file.
32438         * modules/unictype/category-Mc: New file.
32439         * modules/unictype/category-Me: New file.
32440         * modules/unictype/category-N: New file.
32441         * modules/unictype/category-Nd: New file.
32442         * modules/unictype/category-Nl: New file.
32443         * modules/unictype/category-No: New file.
32444         * modules/unictype/category-P: New file.
32445         * modules/unictype/category-Pc: New file.
32446         * modules/unictype/category-Pd: New file.
32447         * modules/unictype/category-Ps: New file.
32448         * modules/unictype/category-Pe: New file.
32449         * modules/unictype/category-Pi: New file.
32450         * modules/unictype/category-Pf: New file.
32451         * modules/unictype/category-Po: New file.
32452         * modules/unictype/category-S: New file.
32453         * modules/unictype/category-Sm: New file.
32454         * modules/unictype/category-Sc: New file.
32455         * modules/unictype/category-Sk: New file.
32456         * modules/unictype/category-So: New file.
32457         * modules/unictype/category-Z: New file.
32458         * modules/unictype/category-Zs: New file.
32459         * modules/unictype/category-Zl: New file.
32460         * modules/unictype/category-Zp: New file.
32461         * modules/unictype/category-C: New file.
32462         * modules/unictype/category-Cc: New file.
32463         * modules/unictype/category-Cf: New file.
32464         * modules/unictype/category-Cs: New file.
32465         * modules/unictype/category-Co: New file.
32466         * modules/unictype/category-Cn: New file.
32467         * modules/unictype/category-or: New file.
32468         * modules/unictype/category-of: New file.
32469         * modules/unictype/category-test: New file.
32470         * modules/unictype/category-test-withtable: New file.
32471         * modules/unictype/category-byname: New file.
32472         * modules/unictype/category-none: New file.
32473         * modules/unictype/category-and: New file.
32474         * modules/unictype/category-and-not: New file.
32475         * modules/unictype/category-name: New file.
32476         * modules/unictype/combining-class: New file.
32477         * modules/unictype/category-all: New file.
32478         * modules/unictype/bidicategory-all: New file.
32479         * modules/unictype/bidicategory-byname: New file.
32480         * modules/unictype/bidicategory-name: New file.
32481         * modules/unictype/bidicategory-of: New file.
32482         * modules/unictype/bidicategory-test: New file.
32483         * modules/unictype/decimal-digit: New file.
32484         * modules/unictype/digit: New file.
32485         * modules/unictype/numeric: New file.
32486         * modules/unictype/mirror: New file.
32487         * modules/unictype/property-white-space: New file.
32488         * modules/unictype/property-alphabetic: New file.
32489         * modules/unictype/property-other-alphabetic: New file.
32490         * modules/unictype/property-not-a-character: New file.
32491         * modules/unictype/property-default-ignorable-code-point: New file.
32492         * modules/unictype/property-other-default-ignorable-code-point: New
32493         file.
32494         * modules/unictype/property-deprecated: New file.
32495         * modules/unictype/property-logical-order-exception: New file.
32496         * modules/unictype/property-variation-selector: New file.
32497         * modules/unictype/property-private-use: New file.
32498         * modules/unictype/property-unassigned-code-value: New file.
32499         * modules/unictype/property-uppercase: New file.
32500         * modules/unictype/property-other-uppercase: New file.
32501         * modules/unictype/property-lowercase: New file.
32502         * modules/unictype/property-other-lowercase: New file.
32503         * modules/unictype/property-titlecase: New file.
32504         * modules/unictype/property-soft-dotted: New file.
32505         * modules/unictype/property-id-start: New file.
32506         * modules/unictype/property-other-id-start: New file.
32507         * modules/unictype/property-id-continue: New file.
32508         * modules/unictype/property-other-id-continue: New file.
32509         * modules/unictype/property-xid-start: New file.
32510         * modules/unictype/property-xid-continue: New file.
32511         * modules/unictype/property-pattern-white-space: New file.
32512         * modules/unictype/property-pattern-syntax: New file.
32513         * modules/unictype/property-join-control: New file.
32514         * modules/unictype/property-grapheme-base: New file.
32515         * modules/unictype/property-grapheme-extend: New file.
32516         * modules/unictype/property-other-grapheme-extend: New file.
32517         * modules/unictype/property-grapheme-link: New file.
32518         * modules/unictype/property-bidi-control: New file.
32519         * modules/unictype/property-bidi-left-to-right: New file.
32520         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
32521         * modules/unictype/property-bidi-arabic-right-to-left: New file.
32522         * modules/unictype/property-bidi-european-digit: New file.
32523         * modules/unictype/property-bidi-eur-num-separator: New file.
32524         * modules/unictype/property-bidi-eur-num-terminator: New file.
32525         * modules/unictype/property-bidi-arabic-digit: New file.
32526         * modules/unictype/property-bidi-common-separator: New file.
32527         * modules/unictype/property-bidi-block-separator: New file.
32528         * modules/unictype/property-bidi-segment-separator: New file.
32529         * modules/unictype/property-bidi-whitespace: New file.
32530         * modules/unictype/property-bidi-non-spacing-mark: New file.
32531         * modules/unictype/property-bidi-boundary-neutral: New file.
32532         * modules/unictype/property-bidi-pdf: New file.
32533         * modules/unictype/property-bidi-embedding-or-override: New file.
32534         * modules/unictype/property-bidi-other-neutral: New file.
32535         * modules/unictype/property-hex-digit: New file.
32536         * modules/unictype/property-ascii-hex-digit: New file.
32537         * modules/unictype/property-ideographic: New file.
32538         * modules/unictype/property-unified-ideograph: New file.
32539         * modules/unictype/property-radical: New file.
32540         * modules/unictype/property-ids-binary-operator: New file.
32541         * modules/unictype/property-ids-trinary-operator: New file.
32542         * modules/unictype/property-zero-width: New file.
32543         * modules/unictype/property-space: New file.
32544         * modules/unictype/property-non-break: New file.
32545         * modules/unictype/property-iso-control: New file.
32546         * modules/unictype/property-format-control: New file.
32547         * modules/unictype/property-dash: New file.
32548         * modules/unictype/property-hyphen: New file.
32549         * modules/unictype/property-punctuation: New file.
32550         * modules/unictype/property-line-separator: New file.
32551         * modules/unictype/property-paragraph-separator: New file.
32552         * modules/unictype/property-quotation-mark: New file.
32553         * modules/unictype/property-sentence-terminal: New file.
32554         * modules/unictype/property-terminal-punctuation: New file.
32555         * modules/unictype/property-currency-symbol: New file.
32556         * modules/unictype/property-math: New file.
32557         * modules/unictype/property-other-math: New file.
32558         * modules/unictype/property-paired-punctuation: New file.
32559         * modules/unictype/property-left-of-pair: New file.
32560         * modules/unictype/property-combining: New file.
32561         * modules/unictype/property-composite: New file.
32562         * modules/unictype/property-decimal-digit: New file.
32563         * modules/unictype/property-numeric: New file.
32564         * modules/unictype/property-diacritic: New file.
32565         * modules/unictype/property-extender: New file.
32566         * modules/unictype/property-ignorable-control: New file.
32567         * modules/unictype/property-test: New file.
32568         * modules/unictype/property-byname: New file.
32569         * modules/unictype/property-all: New file.
32570         * modules/unictype/scripts: New file.
32571         * modules/unictype/scripts-all: New file.
32572         * modules/unictype/block-of: New file.
32573         * modules/unictype/block-test: New file.
32574         * modules/unictype/block-list: New file.
32575         * modules/unictype/block-all: New file.
32576         * modules/unictype/syntax-c-whitespace: New file.
32577         * modules/unictype/syntax-java-whitespace: New file.
32578         * modules/unictype/syntax-c-ident: New file.
32579         * modules/unictype/syntax-java-ident: New file.
32580         * modules/unictype/ctype-alnum: New file.
32581         * modules/unictype/ctype-alpha: New file.
32582         * modules/unictype/ctype-cntrl: New file.
32583         * modules/unictype/ctype-digit: New file.
32584         * modules/unictype/ctype-graph: New file.
32585         * modules/unictype/ctype-lower: New file.
32586         * modules/unictype/ctype-print: New file.
32587         * modules/unictype/ctype-punct: New file.
32588         * modules/unictype/ctype-space: New file.
32589         * modules/unictype/ctype-upper: New file.
32590         * modules/unictype/ctype-xdigit: New file.
32591         * modules/unictype/ctype-blank: New file.
32592         * lib/unictype/bidi_byname.c: New file.
32593         * lib/unictype/bidi_name.c: New file.
32594         * lib/unictype/bidi_of.c: New file.
32595         * lib/unictype/bidi_test.c: New file.
32596         * lib/unictype/bitmap.h: New file.
32597         * lib/unictype/block_test.c: New file.
32598         * lib/unictype/blocks.c: New file.
32599         * lib/unictype/categ_C.c: New file.
32600         * lib/unictype/categ_Cc.c: New file.
32601         * lib/unictype/categ_Cf.c: New file.
32602         * lib/unictype/categ_Cn.c: New file.
32603         * lib/unictype/categ_Co.c: New file.
32604         * lib/unictype/categ_Cs.c: New file.
32605         * lib/unictype/categ_L.c: New file.
32606         * lib/unictype/categ_Ll.c: New file.
32607         * lib/unictype/categ_Lm.c: New file.
32608         * lib/unictype/categ_Lo.c: New file.
32609         * lib/unictype/categ_Lt.c: New file.
32610         * lib/unictype/categ_Lu.c: New file.
32611         * lib/unictype/categ_M.c: New file.
32612         * lib/unictype/categ_Mc.c: New file.
32613         * lib/unictype/categ_Me.c: New file.
32614         * lib/unictype/categ_Mn.c: New file.
32615         * lib/unictype/categ_N.c: New file.
32616         * lib/unictype/categ_Nd.c: New file.
32617         * lib/unictype/categ_Nl.c: New file.
32618         * lib/unictype/categ_No.c: New file.
32619         * lib/unictype/categ_P.c: New file.
32620         * lib/unictype/categ_Pc.c: New file.
32621         * lib/unictype/categ_Pd.c: New file.
32622         * lib/unictype/categ_Pe.c: New file.
32623         * lib/unictype/categ_Pf.c: New file.
32624         * lib/unictype/categ_Pi.c: New file.
32625         * lib/unictype/categ_Po.c: New file.
32626         * lib/unictype/categ_Ps.c: New file.
32627         * lib/unictype/categ_S.c: New file.
32628         * lib/unictype/categ_Sc.c: New file.
32629         * lib/unictype/categ_Sk.c: New file.
32630         * lib/unictype/categ_Sm.c: New file.
32631         * lib/unictype/categ_So.c: New file.
32632         * lib/unictype/categ_Z.c: New file.
32633         * lib/unictype/categ_Zl.c: New file.
32634         * lib/unictype/categ_Zp.c: New file.
32635         * lib/unictype/categ_Zs.c: New file.
32636         * lib/unictype/categ_and.c: New file.
32637         * lib/unictype/categ_and_not.c: New file.
32638         * lib/unictype/categ_byname.c: New file.
32639         * lib/unictype/categ_name.c: New file.
32640         * lib/unictype/categ_none.c: New file.
32641         * lib/unictype/categ_of.c: New file.
32642         * lib/unictype/categ_or.c: New file.
32643         * lib/unictype/categ_test.c: New file.
32644         * lib/unictype/combining.c: New file.
32645         * lib/unictype/ctype_alnum.c: New file.
32646         * lib/unictype/ctype_alpha.c: New file.
32647         * lib/unictype/ctype_blank.c: New file.
32648         * lib/unictype/ctype_cntrl.c: New file.
32649         * lib/unictype/ctype_digit.c: New file.
32650         * lib/unictype/ctype_graph.c: New file.
32651         * lib/unictype/ctype_lower.c: New file.
32652         * lib/unictype/ctype_print.c: New file.
32653         * lib/unictype/ctype_punct.c: New file.
32654         * lib/unictype/ctype_space.c: New file.
32655         * lib/unictype/ctype_upper.c: New file.
32656         * lib/unictype/ctype_xdigit.c: New file.
32657         * lib/unictype/decdigit.c: New file.
32658         * lib/unictype/digit.c: New file.
32659         * lib/unictype/identsyntaxmap.h: New file.
32660         * lib/unictype/mirror.c: New file.
32661         * lib/unictype/numeric.c: New file.
32662         * lib/unictype/pr_alphabetic.c: New file.
32663         * lib/unictype/pr_ascii_hex_digit.c: New file.
32664         * lib/unictype/pr_bidi_arabic_digit.c: New file.
32665         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
32666         * lib/unictype/pr_bidi_block_separator.c: New file.
32667         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
32668         * lib/unictype/pr_bidi_common_separator.c: New file.
32669         * lib/unictype/pr_bidi_control.c: New file.
32670         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
32671         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
32672         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
32673         * lib/unictype/pr_bidi_european_digit.c: New file.
32674         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
32675         * lib/unictype/pr_bidi_left_to_right.c: New file.
32676         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
32677         * lib/unictype/pr_bidi_other_neutral.c: New file.
32678         * lib/unictype/pr_bidi_pdf.c: New file.
32679         * lib/unictype/pr_bidi_segment_separator.c: New file.
32680         * lib/unictype/pr_bidi_whitespace.c: New file.
32681         * lib/unictype/pr_byname.c: New file.
32682         * lib/unictype/pr_byname.gperf: New file.
32683         * lib/unictype/pr_combining.c: New file.
32684         * lib/unictype/pr_composite.c: New file.
32685         * lib/unictype/pr_currency_symbol.c: New file.
32686         * lib/unictype/pr_dash.c: New file.
32687         * lib/unictype/pr_decimal_digit.c: New file.
32688         * lib/unictype/pr_default_ignorable_code_point.c: New file.
32689         * lib/unictype/pr_deprecated.c: New file.
32690         * lib/unictype/pr_diacritic.c: New file.
32691         * lib/unictype/pr_extender.c: New file.
32692         * lib/unictype/pr_format_control.c: New file.
32693         * lib/unictype/pr_grapheme_base.c: New file.
32694         * lib/unictype/pr_grapheme_extend.c: New file.
32695         * lib/unictype/pr_grapheme_link.c: New file.
32696         * lib/unictype/pr_hex_digit.c: New file.
32697         * lib/unictype/pr_hyphen.c: New file.
32698         * lib/unictype/pr_id_continue.c: New file.
32699         * lib/unictype/pr_id_start.c: New file.
32700         * lib/unictype/pr_ideographic.c: New file.
32701         * lib/unictype/pr_ids_binary_operator.c: New file.
32702         * lib/unictype/pr_ids_trinary_operator.c: New file.
32703         * lib/unictype/pr_ignorable_control.c: New file.
32704         * lib/unictype/pr_iso_control.c: New file.
32705         * lib/unictype/pr_join_control.c: New file.
32706         * lib/unictype/pr_left_of_pair.c: New file.
32707         * lib/unictype/pr_line_separator.c: New file.
32708         * lib/unictype/pr_logical_order_exception.c: New file.
32709         * lib/unictype/pr_lowercase.c: New file.
32710         * lib/unictype/pr_math.c: New file.
32711         * lib/unictype/pr_non_break.c: New file.
32712         * lib/unictype/pr_not_a_character.c: New file.
32713         * lib/unictype/pr_numeric.c: New file.
32714         * lib/unictype/pr_other_alphabetic.c: New file.
32715         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
32716         * lib/unictype/pr_other_grapheme_extend.c: New file.
32717         * lib/unictype/pr_other_id_continue.c: New file.
32718         * lib/unictype/pr_other_id_start.c: New file.
32719         * lib/unictype/pr_other_lowercase.c: New file.
32720         * lib/unictype/pr_other_math.c: New file.
32721         * lib/unictype/pr_other_uppercase.c: New file.
32722         * lib/unictype/pr_paired_punctuation.c: New file.
32723         * lib/unictype/pr_paragraph_separator.c: New file.
32724         * lib/unictype/pr_pattern_syntax.c: New file.
32725         * lib/unictype/pr_pattern_white_space.c: New file.
32726         * lib/unictype/pr_private_use.c: New file.
32727         * lib/unictype/pr_punctuation.c: New file.
32728         * lib/unictype/pr_quotation_mark.c: New file.
32729         * lib/unictype/pr_radical.c: New file.
32730         * lib/unictype/pr_sentence_terminal.c: New file.
32731         * lib/unictype/pr_soft_dotted.c: New file.
32732         * lib/unictype/pr_space.c: New file.
32733         * lib/unictype/pr_terminal_punctuation.c: New file.
32734         * lib/unictype/pr_test.c: New file.
32735         * lib/unictype/pr_titlecase.c: New file.
32736         * lib/unictype/pr_unassigned_code_value.c: New file.
32737         * lib/unictype/pr_unified_ideograph.c: New file.
32738         * lib/unictype/pr_uppercase.c: New file.
32739         * lib/unictype/pr_variation_selector.c: New file.
32740         * lib/unictype/pr_white_space.c: New file.
32741         * lib/unictype/pr_xid_continue.c: New file.
32742         * lib/unictype/pr_xid_start.c: New file.
32743         * lib/unictype/pr_zero_width.c: New file.
32744         * lib/unictype/scripts.c: New file.
32745         * lib/unictype/sy_c_ident.c: New file.
32746         * lib/unictype/sy_c_whitespace.c: New file.
32747         * lib/unictype/sy_java_ident.c: New file.
32748         * lib/unictype/sy_java_whitespace.c: New file.
32749
32750         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
32751         Unicode 5.0.0.
32752         * lib/unictype/blocks.h: Likewise.
32753         * lib/unictype/categ_C.h: Likewise.
32754         * lib/unictype/categ_Cc.h: Likewise.
32755         * lib/unictype/categ_Cf.h: Likewise.
32756         * lib/unictype/categ_Cn.h: Likewise.
32757         * lib/unictype/categ_Co.h: Likewise.
32758         * lib/unictype/categ_Cs.h: Likewise.
32759         * lib/unictype/categ_L.h: Likewise.
32760         * lib/unictype/categ_Ll.h: Likewise.
32761         * lib/unictype/categ_Lm.h: Likewise.
32762         * lib/unictype/categ_Lo.h: Likewise.
32763         * lib/unictype/categ_Lt.h: Likewise.
32764         * lib/unictype/categ_Lu.h: Likewise.
32765         * lib/unictype/categ_M.h: Likewise.
32766         * lib/unictype/categ_Mc.h: Likewise.
32767         * lib/unictype/categ_Me.h: Likewise.
32768         * lib/unictype/categ_Mn.h: Likewise.
32769         * lib/unictype/categ_N.h: Likewise.
32770         * lib/unictype/categ_Nd.h: Likewise.
32771         * lib/unictype/categ_Nl.h: Likewise.
32772         * lib/unictype/categ_No.h: Likewise.
32773         * lib/unictype/categ_P.h: Likewise.
32774         * lib/unictype/categ_Pc.h: Likewise.
32775         * lib/unictype/categ_Pd.h: Likewise.
32776         * lib/unictype/categ_Pe.h: Likewise.
32777         * lib/unictype/categ_Pf.h: Likewise.
32778         * lib/unictype/categ_Pi.h: Likewise.
32779         * lib/unictype/categ_Po.h: Likewise.
32780         * lib/unictype/categ_Ps.h: Likewise.
32781         * lib/unictype/categ_S.h: Likewise.
32782         * lib/unictype/categ_Sc.h: Likewise.
32783         * lib/unictype/categ_Sk.h: Likewise.
32784         * lib/unictype/categ_Sm.h: Likewise.
32785         * lib/unictype/categ_So.h: Likewise.
32786         * lib/unictype/categ_Z.h: Likewise.
32787         * lib/unictype/categ_Zl.h: Likewise.
32788         * lib/unictype/categ_Zp.h: Likewise.
32789         * lib/unictype/categ_Zs.h: Likewise.
32790         * lib/unictype/categ_of.h: Likewise.
32791         * lib/unictype/combining.h: Likewise.
32792         * lib/unictype/ctype_alnum.h: Likewise.
32793         * lib/unictype/ctype_alpha.h: Likewise.
32794         * lib/unictype/ctype_blank.h: Likewise.
32795         * lib/unictype/ctype_cntrl.h: Likewise.
32796         * lib/unictype/ctype_digit.h: Likewise.
32797         * lib/unictype/ctype_graph.h: Likewise.
32798         * lib/unictype/ctype_lower.h: Likewise.
32799         * lib/unictype/ctype_print.h: Likewise.
32800         * lib/unictype/ctype_punct.h: Likewise.
32801         * lib/unictype/ctype_space.h: Likewise.
32802         * lib/unictype/ctype_upper.h: Likewise.
32803         * lib/unictype/ctype_xdigit.h: Likewise.
32804         * lib/unictype/decdigit.h: Likewise.
32805         * lib/unictype/digit.h: Likewise.
32806         * lib/unictype/mirror.h: Likewise.
32807         * lib/unictype/numeric.h: Likewise.
32808         * lib/unictype/pr_alphabetic.h: Likewise.
32809         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
32810         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
32811         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
32812         * lib/unictype/pr_bidi_block_separator.h: Likewise.
32813         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
32814         * lib/unictype/pr_bidi_common_separator.h: Likewise.
32815         * lib/unictype/pr_bidi_control.h: Likewise.
32816         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
32817         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
32818         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
32819         * lib/unictype/pr_bidi_european_digit.h: Likewise.
32820         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
32821         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
32822         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
32823         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
32824         * lib/unictype/pr_bidi_pdf.h: Likewise.
32825         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
32826         * lib/unictype/pr_bidi_whitespace.h: Likewise.
32827         * lib/unictype/pr_combining.h: Likewise.
32828         * lib/unictype/pr_composite.h: Likewise.
32829         * lib/unictype/pr_currency_symbol.h: Likewise.
32830         * lib/unictype/pr_dash.h: Likewise.
32831         * lib/unictype/pr_decimal_digit.h: Likewise.
32832         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
32833         * lib/unictype/pr_deprecated.h: Likewise.
32834         * lib/unictype/pr_diacritic.h: Likewise.
32835         * lib/unictype/pr_extender.h: Likewise.
32836         * lib/unictype/pr_format_control.h: Likewise.
32837         * lib/unictype/pr_grapheme_base.h: Likewise.
32838         * lib/unictype/pr_grapheme_extend.h: Likewise.
32839         * lib/unictype/pr_grapheme_link.h: Likewise.
32840         * lib/unictype/pr_hex_digit.h: Likewise.
32841         * lib/unictype/pr_hyphen.h: Likewise.
32842         * lib/unictype/pr_id_continue.h: Likewise.
32843         * lib/unictype/pr_id_start.h: Likewise.
32844         * lib/unictype/pr_ideographic.h: Likewise.
32845         * lib/unictype/pr_ids_binary_operator.h: Likewise.
32846         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
32847         * lib/unictype/pr_ignorable_control.h: Likewise.
32848         * lib/unictype/pr_iso_control.h: Likewise.
32849         * lib/unictype/pr_join_control.h: Likewise.
32850         * lib/unictype/pr_left_of_pair.h: Likewise.
32851         * lib/unictype/pr_line_separator.h: Likewise.
32852         * lib/unictype/pr_logical_order_exception.h: Likewise.
32853         * lib/unictype/pr_lowercase.h: Likewise.
32854         * lib/unictype/pr_math.h: Likewise.
32855         * lib/unictype/pr_non_break.h: Likewise.
32856         * lib/unictype/pr_not_a_character.h: Likewise.
32857         * lib/unictype/pr_numeric.h: Likewise.
32858         * lib/unictype/pr_other_alphabetic.h: Likewise.
32859         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
32860         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
32861         * lib/unictype/pr_other_id_continue.h: Likewise.
32862         * lib/unictype/pr_other_id_start.h: Likewise.
32863         * lib/unictype/pr_other_lowercase.h: Likewise.
32864         * lib/unictype/pr_other_math.h: Likewise.
32865         * lib/unictype/pr_other_uppercase.h: Likewise.
32866         * lib/unictype/pr_paired_punctuation.h: Likewise.
32867         * lib/unictype/pr_paragraph_separator.h: Likewise.
32868         * lib/unictype/pr_pattern_syntax.h: Likewise.
32869         * lib/unictype/pr_pattern_white_space.h: Likewise.
32870         * lib/unictype/pr_private_use.h: Likewise.
32871         * lib/unictype/pr_punctuation.h: Likewise.
32872         * lib/unictype/pr_quotation_mark.h: Likewise.
32873         * lib/unictype/pr_radical.h: Likewise.
32874         * lib/unictype/pr_sentence_terminal.h: Likewise.
32875         * lib/unictype/pr_soft_dotted.h: Likewise.
32876         * lib/unictype/pr_space.h: Likewise.
32877         * lib/unictype/pr_terminal_punctuation.h: Likewise.
32878         * lib/unictype/pr_titlecase.h: Likewise.
32879         * lib/unictype/pr_unassigned_code_value.h: Likewise.
32880         * lib/unictype/pr_unified_ideograph.h: Likewise.
32881         * lib/unictype/pr_uppercase.h: Likewise.
32882         * lib/unictype/pr_variation_selector.h: Likewise.
32883         * lib/unictype/pr_white_space.h: Likewise.
32884         * lib/unictype/pr_xid_continue.h: Likewise.
32885         * lib/unictype/pr_xid_start.h: Likewise.
32886         * lib/unictype/pr_zero_width.h: Likewise.
32887         * lib/unictype/scripts.h: Likewise.
32888         * lib/unictype/scripts_byname.gperf: Likewise.
32889         * lib/unictype/sy_c_ident.h: Likewise.
32890         * lib/unictype/sy_c_whitespace.h: Likewise.
32891         * lib/unictype/sy_java_ident.h: Likewise.
32892         * lib/unictype/sy_java_whitespace.h: Likewise.
32893
32894         * lib/unictype/Makefile: New file.
32895         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
32896         glibc.
32897         * lib/unictype/3level.h: New file, copied from glibc.
32898         * lib/unictype/3levelbit.h: New file.
32899
32900 2007-11-11  Bruno Haible  <bruno@clisp.org>
32901
32902         * modules/gperf: New file.
32903         * modules/iconv_open (Depends-on): Add it.
32904         (Makefile.am): Remove the GPERF definition.
32905
32906 2007-11-11  Bruno Haible  <bruno@clisp.org>
32907
32908         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
32909         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
32910
32911 2007-11-11  Bruno Haible  <bruno@clisp.org>
32912
32913         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
32914         (usage): Remove function.
32915
32916 2007-11-11  Bruno Haible  <bruno@clisp.org>
32917
32918         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
32919         gl_FUNC_CEILF_LIBS.
32920         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
32921         gl_FUNC_CEIL_LIBS.
32922         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
32923         gl_FUNC_CEILL_LIBS.
32924         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
32925         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
32926         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
32927
32928 2007-11-11  Bruno Haible  <bruno@clisp.org>
32929
32930         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
32931         roundf were declared but do not exist on functions.
32932         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
32933         roundl were declared but do not exist on functions.
32934         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
32935         HAVE_FLOORL_AND_CEILL, respectively.
32936         Needed for Sun C on Solaris 10.
32937
32938 2007-11-11  Bruno Haible  <bruno@clisp.org>
32939
32940         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
32941         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
32942         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
32943         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
32944         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
32945         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
32946         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
32947         HAVE_DECL_ROUNDF.
32948         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
32949         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
32950         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
32951         of HAVE_DECL_ROUND*.
32952         * modules/math (Makefile.am): Update.
32953
32954 2007-11-10  Bruno Haible  <bruno@clisp.org>
32955
32956         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
32957         ptrdiff_t as m4/intl.m4.
32958
32959 2007-11-10  Jim Meyering  <meyering@redhat.com>
32960
32961         Avoid link failure for the argmatch test.
32962         * tests/test-argmatch.c (usage): Define function to avoid a link
32963         failure: argmatch_die requires a usage function.
32964
32965 2007-11-09  Bruno Haible  <bruno@clisp.org>
32966
32967         * doc/functions/snprintf.texi: Mention BeOS deficiency.
32968         * doc/functions/vsnprintf.texi: Likewise.
32969         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
32970         with a size argument < 2.
32971
32972 2007-11-09  Bruno Haible  <bruno@clisp.org>
32973
32974         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
32975         buffer. Fixes an inefficiency introduced on 2007-11-03.
32976
32977 2007-11-09  Bruno Haible  <bruno@clisp.org>
32978
32979         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
32980         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
32981
32982 2007-11-08  Jim Meyering  <meyering@redhat.com>
32983
32984         Change cache variable name prefix "jm_" to "gl_" everywhere.
32985         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
32986         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
32987         * m4/uptime.m4: s/gl_/jm_/
32988
32989 2007-11-07  Bruno Haible  <bruno@clisp.org>
32990
32991         Update to GNU gettext 0.17.
32992         * m4/intl.m4: Update to GNU gettext 0.17.
32993         * m4/po.m4: Likewise.
32994         * modules/gettext (Files): Remove m4/ulonglong.m4.
32995         (configure.ac): Require gettext infrastructure from version 0.17.
32996
32997 2007-11-06  Bruno Haible  <bruno@clisp.org>
32998
32999         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
33000         symbolic values are not defined in a public header.
33001         * lib/freadable.c (freadable) [QNX]: Likewise.
33002         * lib/freadahead.c (freadahead) [QNX]: Likewise.
33003         * lib/freading.c (freading) [QNX]: Likewise.
33004         * lib/fseterr.c (fseterr) [QNX]: Likewise.
33005         * lib/fwritable.c (fwritable) [QNX]: Likewise.
33006         * lib/fwriting.c (fwriting) [QNX]: Likewise.
33007         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
33008         Reported by Alain Magloire.
33009
33010         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
33011
33012 2007-11-05  Bruno Haible  <bruno@clisp.org>
33013
33014         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
33015         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
33016         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
33017         Reported by Eric Blake.
33018
33019 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33020             Bruno Haible  <bruno@clisp.org>
33021
33022         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
33023         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
33024         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
33025         (malloc): Undefine also before including <stdlib.h>.
33026         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
33027         Needed on OSF/1 4.0.
33028
33029 2007-11-05  Jim Meyering  <meyering@redhat.com>
33030
33031         git-version-gen: sync from coreutils.
33032         * build-aux/git-version-gen: Add comments.
33033         Change the first '-' to '.' in the snapshot version string,
33034         e.g., 6.9-377-08144 -> 6.9.377-08144
33035         Remove first parameter.
33036         Don't declare a version "-dirty" merely because a time
33037         stamp has changed.
33038
33039 2007-11-04  Bruno Haible  <bruno@clisp.org>
33040
33041         * lib/lock.h: Protect all macro definitions containing an 'if'
33042         statement through a "do { ... } while (0)".
33043         * lib/tls.h: Likewise.
33044
33045 2007-11-04  Bruno Haible  <bruno@clisp.org>
33046
33047         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
33048
33049 2007-11-04  Bruno Haible  <bruno@clisp.org>
33050
33051         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
33052         * modules/fprintf-posix (Depends-on): Add nocrash.
33053         * modules/snprintf-posix (Depends-on): Likewise.
33054         * modules/sprintf-posix (Depends-on): Likewise.
33055         * modules/vasnprintf-posix (Depends-on): Likewise.
33056         * modules/vasprintf-posix (Depends-on): Likewise.
33057         * modules/vfprintf-posix (Depends-on): Likewise.
33058         * modules/vsnprintf-posix (Depends-on): Likewise.
33059         * modules/vsprintf-posix (Depends-on): Likewise.
33060         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
33061         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
33062         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
33063         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
33064         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
33065         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
33066         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
33067
33068 2007-11-04  Bruno Haible  <bruno@clisp.org>
33069
33070         * modules/nocrash: New file.
33071         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
33072         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
33073
33074 2007-11-04  Bruno Haible  <bruno@clisp.org>
33075
33076         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
33077         precision handling.
33078         * tests/test-vasprintf-posix.c (test_function): Likewise.
33079         * tests/test-snprintf-posix.h (test_function): Likewise.
33080         * tests/test-sprintf-posix.h (test_function): Likewise.
33081
33082         Fix *printf behaviour for large precisions on mingw and BeOS.
33083         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
33084         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
33085         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
33086         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
33087         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33088         gl_PRINTF_PRECISION and test its result. Invoke
33089         gl_PREREQ_VASNPRINTF_PRECISION.
33090         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33091         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33092         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33093         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33094         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33095         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33096         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33097         * doc/functions/fprintf.texi: Update.
33098         * doc/functions/printf.texi: Update.
33099         * doc/functions/snprintf.texi: Update.
33100         * doc/functions/sprintf.texi: Update.
33101         * doc/functions/vfprintf.texi: Update.
33102         * doc/functions/vprintf.texi: Update.
33103         * doc/functions/vsnprintf.texi: Update.
33104         * doc/functions/vsprintf.texi: Update.
33105
33106 2007-11-04  Bruno Haible  <bruno@clisp.org>
33107
33108         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
33109
33110 2007-11-04  Bruno Haible  <bruno@clisp.org>
33111
33112         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
33113         Reported by Sylvain Beucler <beuc@gnu.org>.
33114
33115 2007-11-03  Bruno Haible  <bruno@clisp.org>
33116
33117         * tests/test-fprintf-posix2.sh: New file.
33118         * tests/test-fprintf-posix2.c: New file.
33119         * modules/fprintf-posix-tests (Files): Add them.
33120         (TESTS): Add test-fprintf-posix2.sh.
33121         (configure.ac): Check for getrlimit and setrlimit.
33122         (check_PROGRAMS): Add test-fprintf-posix2.
33123
33124         * tests/test-printf-posix2.sh: New file.
33125         * tests/test-printf-posix2.c: New file.
33126         * modules/printf-posix-tests (Files): Add them.
33127         (TESTS): Add test-printf-posix2.sh.
33128         (configure.ac): Check for getrlimit and setrlimit.
33129         (check_PROGRAMS): Add test-printf-posix2.
33130
33131         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
33132         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
33133         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
33134         (decode_double): New function, copied from decode_long_double.
33135         (scale10_round_decimal_decoded): New function, extracted from
33136         scale10_round_decimal_long_double.
33137         (scale10_round_decimal_long_double): Use it.
33138         (scale10_round_decimal_double): New function.
33139         (floorlog10): New function.
33140         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
33141         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
33142         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
33143         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33144         gl_PRINTF_ENOMEM and test its result. Invoke
33145         gl_PREREQ_VASNPRINTF_ENOMEM.
33146         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33147         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33148         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33149         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33150         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33151         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33152         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33153         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
33154         * modules/snprintf-posix (Depends-on): Likewise.
33155         * modules/sprintf-posix (Depends-on): Likewise.
33156         * modules/vasnprintf-posix (Depends-on): Likewise.
33157         * modules/vasprintf-posix (Depends-on): Likewise.
33158         * modules/vfprintf-posix (Depends-on): Likewise.
33159         * modules/vsnprintf-posix (Depends-on): Likewise.
33160         * modules/vsprintf-posix (Depends-on): Likewise.
33161         * doc/functions/fprintf.texi: Update.
33162         * doc/functions/printf.texi: Update.
33163         * doc/functions/snprintf.texi: Update.
33164         * doc/functions/sprintf.texi: Update.
33165         * doc/functions/vfprintf.texi: Update.
33166         * doc/functions/vprintf.texi: Update.
33167         * doc/functions/vsnprintf.texi: Update.
33168         * doc/functions/vsprintf.texi: Update.
33169
33170 2007-11-03  Bruno Haible  <bruno@clisp.org>
33171
33172         * modules/frexp-nolibm-tests: New file.
33173
33174         * modules/frexp-nolibm: New file.
33175         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
33176
33177 2007-11-03  Bruno Haible  <bruno@clisp.org>
33178
33179         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
33180         value is C99 compliant.
33181         Needed for OSF/1 5.1.
33182
33183 2007-11-03  Bruno Haible  <bruno@clisp.org>
33184
33185         Fix out-of-memory handling of vasnprintf.
33186         * lib/printf-parse.c: Include <errno.h>.
33187         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
33188         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
33189         is already set.
33190
33191 2007-11-02  Eric Blake  <ebb9@byu.net>
33192
33193         Fix tests on cygwin.
33194         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
33195
33196 2007-11-01  Bruno Haible  <bruno@clisp.org>
33197
33198         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
33199         warning.
33200         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
33201         needed for POSIX compatibility.
33202
33203 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
33204
33205         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
33206         for compatibility with GNU.
33207
33208 2007-11-01  Bruno Haible  <bruno@clisp.org>
33209
33210         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
33211         (putenv): Renamed from rpl_putenv. Change argument type from
33212         'const char *' to 'char *'.
33213         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
33214         of defining putenv in config.h, just set REPLACE_PUTENV.
33215         * modules/putenv (Depends-on): Add stdlib.
33216         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
33217         (Include): Use <stdlib.h>.
33218         * lib/stdlib.in.h (putenv): New declaration.
33219         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
33220         REPLACE_PUTENV.
33221         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
33222         REPLACE_PUTENV.
33223         Needed for MacOS X 10.5.0.
33224         Reported by Peter O'Gorman <peter@pogma.com>.
33225
33226 2007-11-01  Jim Meyering  <meyering@redhat.com>
33227
33228         Treat an empty date string exactly like "0".
33229         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
33230         if the remaining date string (to be parsed) is empty, use "0".
33231         Reported by Mischa Molhoek and discussed in this thread:
33232         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
33233
33234 2007-10-31  Bruno Haible  <bruno@clisp.org>
33235
33236         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
33237         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
33238         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
33239         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
33240         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
33241         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
33242
33243 2007-10-31  Bruno Haible  <bruno@clisp.org>
33244
33245         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
33246         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
33247         (AC_TYPE_LONG_LONG_INT): Use it.
33248         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
33249         it as well.
33250         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
33251         to m4/longlong.m4.
33252         * modules/stdint (Files): Remove m4/ulonglong.m4.
33253         * modules/strtoull (Files): Use m4/longlong.m4 instead of
33254         m4/ulonglong.m4.
33255         * modules/strtoumax (Files): Likewise.
33256
33257 2007-10-30  Bruno Haible  <bruno@clisp.org>
33258
33259         * modules/xvasprintf-posix: New file.
33260         Suggested by Eric Blake.
33261
33262 2007-10-30  Bruno Haible  <bruno@clisp.org>
33263
33264         * modules/xprintf-posix-tests: New file.
33265         * tests/test-xprintf-posix.sh: New file.
33266         * tests/test-xprintf-posix.c: New file.
33267         * tests/test-xfprintf-posix.c: New file.
33268
33269         * modules/xprintf-posix: New file.
33270
33271 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33272
33273         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
33274         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
33275         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
33276
33277 2007-10-29  Bruno Haible  <bruno@clisp.org>
33278
33279         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
33280         contain the special marker '_cv_'.
33281         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
33282         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
33283         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
33284         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
33285         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
33286         Reported by Ralf Wildenhues.
33287
33288 2007-10-29  Bruno Haible  <bruno@clisp.org>
33289
33290         * gnulib-tool (func_import): When --lgpl is not specified, set
33291         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
33292         GPLv3.
33293         Reported by Simon Josefsson.
33294
33295 2007-10-28  Bruno Haible  <bruno@clisp.org>
33296
33297         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
33298         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
33299         HAVE_DECL_ISFINITE.
33300         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
33301         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
33302         HAVE_DECL_ISFINITE.
33303
33304 2007-10-28  Bruno Haible  <bruno@clisp.org>
33305
33306         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
33307         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
33308
33309 2007-10-28  Bruno Haible  <bruno@clisp.org>
33310
33311         Fix link errors with Sun C 5.0 on Solaris 10.
33312         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
33313         function is declared but not present in the compiler's libm.
33314         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
33315         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
33316         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
33317         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
33318         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
33319         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
33320         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
33321         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
33322         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
33323         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
33324         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
33325         HAVE_DECL_FLOORL.
33326
33327 2007-10-28  Bruno Haible  <bruno@clisp.org>
33328
33329         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
33330         gl_FUNC_FLOORL. Cache the result.
33331         (gl_FUNC_FLOORL): Use it.
33332         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
33333         gl_FUNC_CEILL. Cache the result.
33334         (gl_FUNC_CEILL): Use it.
33335
33336         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
33337         gl_FUNC_FLOOR. Cache the result.
33338         (gl_FUNC_FLOOR): Use it.
33339         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
33340         gl_FUNC_CEIL. Cache the result.
33341         (gl_FUNC_CEIL): Use it.
33342
33343         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
33344         gl_FUNC_FLOORF. Cache the result.
33345         (gl_FUNC_FLOORF): Use it.
33346         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
33347         gl_FUNC_CEILF. Cache the result.
33348         (gl_FUNC_CEILF): Use it.
33349
33350 2007-10-28  Bruno Haible  <bruno@clisp.org>
33351
33352         * gnulib-tool: Allow specifying the LGPL version number through
33353         --lgpl=2 or --lgpl=3.
33354         (func_usage): Document --lgpl with argument.
33355         Handle --lgpl=... arguments.
33356         (func_import): Recognize also gl_LGPL calls with an argument. When
33357         --lgpl=2 is used and the module's license is just LGPL, report an
33358         error. Set sed_transform_lib_file according to the lgpl variable. In
33359         the generated files, use --lgpl or gl_LGPL invocations with argument,
33360         if necessary.
33361         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
33362         an LGPv2+ license.
33363         * doc/gnulib-tool.texi (Modified imports): Update explanation of
33364         gl_LGPL macro.
33365
33366 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33367             Bruno Haible  <bruno@clisp.org>
33368
33369         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
33370         (u16_uctomb_aux): Likewise.
33371         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
33372         !HAVE_INLINE.
33373         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
33374
33375 2007-10-28  Bruno Haible  <bruno@clisp.org>
33376
33377         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
33378         Invoke AM_GETTEXT_OPTION if it exists.
33379         * modules/vasprintf: Likewise.
33380         * modules/verror: Likewise.
33381         * modules/xprintf: Likewise.
33382         * modules/xvasprintf: Likewise.
33383
33384 2007-10-27  Ben Pfaff  <blp@gnu.org>
33385
33386         * lib/math.in.h: Define isfinite macro and prototypes for
33387         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
33388         implementations.
33389         * m4/math_h.m4: New substitutions for isfinite module.
33390         * lib/isfinite.c: New file.
33391         * m4/isfinite.m4: New file.
33392         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
33393         * modules/isfinite: New file.
33394         * modules/isfinite-tests: New file.
33395         * tests/tests-isfinite.c: New file.
33396         * doc/functions/isfinite.texi: Mention isfinite module.
33397         * MODULES.html.sh: Mention new module.
33398
33399 2007-10-27  Ben Pfaff  <blp@gnu.org>
33400
33401         Ralf Wildenhues reported that Tru64 4.0D declares the round
33402         functions but does not have definitions.
33403         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
33404         cannot be found in any library, set the output variable to
33405         "missing" instead of "".
33406         * m4/round.m4: Also use our substitute if we cannot find round in
33407         any library, even if it is declared.
33408         * m4/roundf.m4: Likewise for roundf.
33409         * m4/roundl.m4: Likewise for roundl.
33410         * lib/math.in.h: Undefine roundf, round, roundl before defining
33411         their replacements, to allow for hypothetical systems where these
33412         may be defined as macros but not available in libraries.
33413
33414 2007-10-27  Bruno Haible  <bruno@clisp.org>
33415
33416         * doc/gnulib.texi: Invoke @firstparagraphindent.
33417         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
33418         changes in gnulib.
33419         (Source changes): New section.
33420
33421 2007-10-26  Bruno Haible  <bruno@clisp.org>
33422
33423         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
33424         borrowed from autoconf.
33425
33426 2007-10-26  Bruno Haible  <bruno@clisp.org>
33427
33428         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
33429         strerror returned the empty string. Needed on HP-UX 11.00.
33430
33431 2007-10-24  Micah Cowan  <micah@cowan.name>
33432
33433         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
33434         * build-aux/bootstrap: Remove support for now-unnecessary option,
33435         --cvs-user, and envvars CVS_USER, CVS_RSH.
33436
33437 2007-10-24  Jim Meyering  <meyering@redhat.com>
33438
33439         Avoid diagnostics from sha1sum when there is no cached checksum.
33440         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
33441         if the po.s1 file hasn't been created yet.
33442
33443         * build-aux/bootstrap: Sync from coreutils:
33444         2007-10-24  Jim Meyering  <meyering@redhat.com>
33445         Get gnulib from the git repository, not from an obsolete cvs one.
33446         * build-aux/bootstrap: Suggestion from Micah Cowan.
33447         2007-10-04  Jim Meyering  <jim@meyering.net>
33448         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
33449         (update_po_files): Work also when there are no .po files in po/.
33450
33451 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
33452
33453         * README: Append ".git" to git and cg examples.
33454         Problem reported by Benoit Sigoure.
33455
33456 2007-10-23  Micah Cowan  <micah@cowan.name>
33457
33458         * users.txt: Add wget.
33459
33460 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33461
33462         Fix linking of some unistdio tests on FreeBSD.
33463         * modules/unistdio/u16-vsnprintf-tests
33464         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
33465         * modules/unistdio/u16-vsprintf-tests
33466         (test_u16_vsnprintf1_LDADD): Likewise.
33467         * modules/unistdio/u32-vsnprintf-tests
33468         (test_u32_vsnprintf1_LDADD): Likewise.
33469         * modules/unistdio/u32-vsprintf-tests
33470         (test_u32_vsprintf1_LDADD): Likewise.
33471         * modules/unistdio/u8-vsnprintf-tests
33472         (test_u8_vsnprintf1_LDADD): Likewise.
33473         * modules/unistdio/u8-vsprintf-tests
33474         (test_u8_vsprintf1_LDADD): Likewise.
33475         * modules/unistdio/ulc-vsnprintf-tests
33476         (test_ulc_vsnprintf1_LDADD): Likewise.
33477         * modules/unistdio/ulc-vsprintf-tests
33478         (test_ulc_vsprintf1_LDADD): Likewise.
33479
33480         Fix linking of some uniconv tests on FreeBSD.
33481         * modules/uniconv/u16-conv-from-enc-tests
33482         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
33483         * modules/uniconv/u16-conv-to-enc-tests
33484         (test_u16_conv_to_enc_LDADD): Likewise.
33485         * modules/uniconv/u16-strconv-from-enc-tests
33486         (test_u16_strconv_from_enc_LDADD): Likewise.
33487         * modules/uniconv/u16-strconv-to-enc-tests
33488         (test_u16_strconv_to_enc_LDADD): Likewise.
33489         * modules/uniconv/u32-conv-from-enc-tests
33490         (test_u32_conv_from_enc_LDADD): Likewise.
33491         * modules/uniconv/u32-conv-to-enc-tests
33492         (test_u32_conv_to_enc_LDADD): Likewise.
33493         * modules/uniconv/u32-strconv-from-enc-tests
33494         (test_u32_strconv_from_enc_LDADD): Likewise.
33495         * modules/uniconv/u32-strconv-to-enc-tests
33496         (test_u32_strconv_to_enc_LDADD): Likewise.
33497         * modules/uniconv/u8-conv-from-enc-tests
33498         (test_u8_conv_from_enc_LDADD): Likewise.
33499         * modules/uniconv/u8-conv-to-enc-tests
33500         (test_u8_conv_to_enc_LDADD): Likewise.
33501         * modules/uniconv/u8-strconv-from-enc-tests
33502         (test_u8_strconv_from_enc_LDADD): Likewise.
33503         * modules/uniconv/u8-strconv-to-enc-tests
33504         (test_u8_strconv_to_enc_LDADD): Likewise.
33505
33506 2007-10-22  Bruno Haible  <bruno@clisp.org>
33507
33508         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
33509         size.
33510
33511 2007-10-22  Eric Blake  <ebb9@byu.net>
33512
33513         Tweak x*printf documentation.
33514         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
33515         variable name and comments.
33516         Suggested by Bruno Haible.
33517
33518 2007-10-22  Bruno Haible  <bruno@clisp.org>
33519
33520         * lib/acl.c (copy_acl): Fix file name in comment.
33521
33522 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
33523
33524         Fix Tru64 problem with stdbool.h.
33525         * lib/stdbool.in.h (false, true):
33526         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
33527         Don't declare as an enum in this situation; it runs afoul of Tru64.
33528         Problem reported by Steven M. Schweda in
33529         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
33530
33531 2007-10-22  Eric Blake  <ebb9@byu.net>
33532
33533         Also wrap vf?printf.
33534         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
33535         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
33536         (xvprintf, xvfprintf): New functions.
33537
33538 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33539
33540         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
33541         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
33542
33543         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
33544         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
33545
33546 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
33547
33548         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
33549         by Bruno Haible.
33550
33551 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33552
33553         * lib/getloadavg.c
33554         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
33555         Undef `sys' after including sys/table.h, for Tru64 4.0D.
33556
33557         * tests/test-i-ring.c: Work for C89.
33558
33559 2007-10-22  Bruno Haible  <bruno@clisp.org>
33560
33561         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
33562         -1u, in preprocessor expression, so that we don't test for the bug
33563         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
33564         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
33565
33566 2007-10-22  Eric Blake  <ebb9@byu.net>
33567
33568         * tests/test-yesno.sh: Silence stderr during test.
33569
33570 2007-10-22  Simon Josefsson  <simon@josefsson.org>
33571
33572         * modules/crypto/gc-camellia: New file.
33573
33574         * m4/gc-camellia.m4: New file.
33575
33576         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
33577
33578         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
33579
33580 2007-10-22  Simon Josefsson  <simon@josefsson.org>
33581
33582         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
33583         --help to stdout.  Reported by sms@antinode.org (Steven
33584         M. Schweda).
33585
33586 2007-10-22  Simon Josefsson  <simon@josefsson.org>
33587
33588         * users.txt: Fix link to libksba.
33589
33590 2007-10-21  Ben Pfaff  <blp@gnu.org>
33591
33592         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
33593         round.c roundf implementation that depends on floorf and ceilf to
33594         be tested unconditionally.
33595
33596 2007-10-21  Ben Pfaff  <blp@gnu.org>
33597
33598         * m4/check-libm-func.m4: Removed.
33599         * m4/check-math-lib.m4: New file.
33600         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
33601         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
33602         definition and lack of AC_LIBOBJ([roundf]).
33603         * m4/roundl.m4: Ditto, and similarly for roundl.
33604         * modules/round: Reference new m4 file.
33605         * modules/roundf: Ditto.
33606         * modules/roundl: Ditto.
33607         * tests/test-round2.c (main): Use ROUND instead of round.
33608         Bug report from Bruno Haible.
33609
33610 2007-10-21  Bruno Haible  <bruno@clisp.org>
33611
33612         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
33613         context.
33614
33615 2007-10-21  Bruno Haible  <bruno@clisp.org>
33616
33617         * tests/test-wcwidth.c (main): Allow negative result for some control
33618         characters.
33619
33620         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
33621         Needed on OSF/1 5.1.
33622
33623 2007-10-21  Bruno Haible  <bruno@clisp.org>
33624
33625         * tests/test-floorf1.c: Include isnanf.h.
33626         (main): Use isnanf() instead of isnan().
33627         * tests/test-ceilf1.c: Include isnanf.h.
33628         (main): Use isnanf() instead of isnan().
33629         * tests/test-truncf1.c: Include isnanf.h.
33630         (main): Use isnanf() instead of isnan().
33631         * tests/test-roundf1.c: Include isnanf.h.
33632         (main): Use isnanf() instead of isnan().
33633
33634 2007-10-21  Eric Blake  <ebb9@byu.net>
33635
33636         * users.txt: Update URL for m4.
33637
33638 2007-10-21  Bruno Haible  <bruno@clisp.org>
33639
33640         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
33641
33642 2007-10-21  Bruno Haible  <bruno@clisp.org>
33643
33644         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
33645         Git's management files if the CVS files are not present.
33646
33647 2007-10-20  Bruno Haible  <bruno@clisp.org>
33648
33649         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
33650         gcc-3.4.x.
33651
33652 2007-10-20  Ben Pfaff  <blp@gnu.org>
33653
33654         * lib/math.in.h: Declare round, roundf, roundl if we are providing
33655         implementations.
33656         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
33657         * lib/round.c: New file.
33658         * lib/roundf.c: New file.
33659         * lib/roundl.c: New file.
33660         * m4/round.m4: New file.
33661         * m4/roundf.m4: New file.
33662         * m4/roundl.m4: New file.
33663         * m4/check-libm-func-m4: New file.
33664         * modules/math: Replace round, roundf, roundl related @VARS@ in
33665         math.in.h.
33666         * modules/round: New file.
33667         * modules/round-tests: New file.
33668         * modules/roundf: New file.
33669         * modules/roundf-tests: New file.
33670         * modules/roundl: New file.
33671         * modules/roundl-tests: New file.
33672         * tests/test-round1.c: New file.
33673         * tests/test-round2.c: New file.
33674         * tests/test-roundf1.c: New file.
33675         * tests/test-roundf2.c: New file.
33676         * tests/test-roundl.c: New file.
33677         * doc/functions/round.texi: Mention round module.
33678         * doc/functions/roundf.texi: Mention roundf module.
33679         * doc/functions/roundl.texi: Mention roundl module.
33680         * MODULES.html.sh: Mention new modules.
33681         Thanks to Bruno Haible for suggestions.
33682
33683 2007-10-20  Jim Meyering  <meyering@redhat.com>
33684
33685         * lib/xprintf.c: Include <config.h> unconditionally.
33686
33687         Change xprintf's license to GPL.
33688         * modules/xprintf (License): s/LGPL/GPL/, since this module
33689         depends on modules (exit and exitfail) which are GPL.
33690         Suggestion from Bruno Haible.
33691
33692         xprintf fixes.
33693         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
33694         Use a clearer diagnostic.
33695         Patch from Bruno Haible.
33696
33697 2007-10-20  Bruno Haible  <bruno@clisp.org>
33698
33699         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
33700         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
33701         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33702
33703 2007-10-20  Bruno Haible  <bruno@clisp.org>
33704
33705         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
33706         precision in the comparison result > x - 1 or similar.
33707         * tests/test-ceilf2.c (correct_result_p): Likewise.
33708         * tests/test-truncf2.c (correct_result_p): Likewise.
33709         * tests/test-trunc2.c (correct_result_p): Likewise.
33710         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33711
33712 2007-10-20  Bruno Haible  <bruno@clisp.org>
33713
33714         * modules/ceil: New file.
33715         * m4/ceil.m4: New file.
33716         * doc/functions/ceil.texi: Mention the 'ceil' module.
33717
33718 2007-10-20  Bruno Haible  <bruno@clisp.org>
33719
33720         * modules/floor: New file.
33721         * m4/floor.m4: New file.
33722         * doc/functions/floor.texi: Mention the 'floor' module.
33723
33724 2007-10-20  Bruno Haible  <bruno@clisp.org>
33725
33726         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
33727         of %a.
33728         * modules/floorf-tests (Depends-on): Likewise.
33729         * modules/truncf-tests (Depends-on): Likewise.
33730         * modules/trunc-tests (Depends-on): Likewise.
33731         Reported by Ben Pfaff.
33732
33733 2007-10-19  Jim Meyering  <meyering@redhat.com>
33734
33735         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
33736         Don't bother testing specific errno values.  Just test ferror.
33737
33738         New module: xprintf
33739         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
33740
33741 2007-10-19  Bruno Haible  <bruno@clisp.org>
33742
33743         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
33744         syntax.
33745         * modules/javaexec (Makefile.am): Likewise.
33746         * modules/relocatable-prog (Makefile.am): Likewise.
33747         Suggested by Jim Meyering.
33748
33749 2007-10-18  Bruno Haible  <bruno@clisp.org>
33750
33751         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
33752         Reported by Jim Meyering.
33753
33754 2007-10-18  Eric Blake  <ebb9@byu.net>
33755
33756         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
33757
33758 2007-10-18  Bruno Haible  <bruno@clisp.org>
33759
33760         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
33761         the format string into writable memory. Needed in Fortify conditions.
33762
33763 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
33764             Bruno Haible  <bruno@clisp.org>
33765
33766         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
33767         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
33768         * modules/trim (Depends-on): Add mbchar.
33769         (configure.ac): Add gl_FUNC_MBRTOWC.
33770         (Makefile.am): Augment lib_SOURCES.
33771
33772 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
33773
33774         Modify glob.c to use fstatat and dirfd, to simplify it.
33775         Suggested by Eric Blake.
33776         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
33777         Don't include <stdbool.h>; not used.
33778         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
33779         (link_exists_p): Simplify implementation, since we can now assume
33780         dirfd and fstatat.
33781         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
33782
33783 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33784
33785         * gnulib-tool (func_get_dependencies): Fix sed script to
33786         match only tests.
33787
33788 2007-10-17  Bruno Haible  <bruno@clisp.org>
33789
33790         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
33791         allow locale names without encoding suffix.
33792         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
33793         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
33794
33795 2007-10-16  Bruno Haible  <bruno@clisp.org>
33796
33797         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
33798         * lib/getgroups.c (getgroups): Likewise.
33799         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
33800
33801 2007-10-16  Bruno Haible  <bruno@clisp.org>
33802
33803         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
33804         * modules/malloc-posix (License): Likewise.
33805         * modules/realloc-posix (License): Likewise.
33806         * modules/calloc-posix (License): Likewise.
33807         * modules/intprops (License): Change from GPL to LGPL, with
33808         Paul Eggert's approval.
33809
33810 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
33811
33812         Merge glibc changes into lib/glob.c.
33813
33814         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
33815         2007-10-15 04:59:03 UTC.  Here are the changes:
33816
33817         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
33818
33819         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
33820
33821         * lib/glob.c: Add some branch prediction throughout.
33822
33823         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
33824
33825         [BZ #5103]
33826         * lib/glob.c (glob): Recognize patterns starting \/.
33827
33828         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
33829
33830         [BZ #3996]
33831         * lib/glob.c (attribute_hidden): Define if not defined.
33832         (glob): Unescape dirname, filename or username when needed and not
33833         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
33834         is NULL.  Handle unescaped [ in pattern without closing ].
33835         Don't pass GLOB_CHECK down to recursive glob for directories.
33836         (__glob_pattern_type): New function.
33837         (__glob_pattern_p): Implement using __glob_pattern_type.
33838         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
33839         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
33840         Remove unreachable code.
33841
33842         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
33843
33844         * lib/glob.c (glob_in_dir): Add some comments and asserts to
33845         explain why there are no leaks.
33846
33847         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
33848
33849         [BZ #3253]
33850         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
33851         time, rather allocate increasingly bigger arrays of pointers, if
33852         possible with alloca, if too large with malloc.
33853
33854 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
33855
33856         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
33857         Problem reported by H.Merijn Brand in
33858         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
33859         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
33860         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
33861
33862 2007-10-15  Bruno Haible  <bruno@clisp.org>
33863
33864         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
33865         with explicit rpl_ prefix.
33866         * lib/fopen.c (fopen): Likewise.
33867         * lib/freopen.c (freopen): Likewise.
33868         * lib/iconv.c (iconv): Likewise.
33869         * lib/iconv_close.c (iconv_close): Likewise.
33870
33871 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33872
33873         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
33874
33875 2007-10-15  Bruno Haible  <bruno@clisp.org>
33876
33877         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
33878         <stddef.h> instead of <stdlib.h> since we only need NULL.
33879         Reported by Ben Pfaff <blp@cs.stanford.edu>.
33880
33881 2007-10-15  Bruno Haible  <bruno@clisp.org>
33882
33883         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
33884         Replace paragraph talking about LIBOBJS.
33885         Reported by Colin Watson <cjwatson@debian.org>.
33886
33887 2007-10-15  Bruno Haible  <bruno@clisp.org>
33888
33889         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
33890         <stdlib.h> before using NULL.
33891
33892 2007-10-15  Simon Josefsson  <simon@josefsson.org>
33893
33894         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
33895         Reported by Albert Chin <china@thewrittenword.com>.
33896
33897 2007-10-14  Bruno Haible  <bruno@clisp.org>
33898
33899         * modules/iconv_open-utf-tests: New file.
33900         * tests/test-iconv-utf.c: New file.
33901
33902         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
33903         * modules/iconv_open-utf: New file.
33904         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
33905         (iconv, iconv_close): New declarations.
33906         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
33907         be defined.
33908         (iconv_open): Add special handling of conversion between UTF-8 and
33909         UTF-{16,32}{BE,LE}.
33910         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
33911         * lib/iconv_close.c: New file.
33912         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
33913         gl_FUNC_ICONV_OPEN.
33914         (gl_FUNC_ICONV_OPEN): Use it.
33915         (gl_FUNC_ICONV_OPEN_UTF): New macro.
33916         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
33917         and REPLACE_ICONV_UTF.
33918         * modules/iconv_open (Depends-on): Add c-strcase.
33919         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
33920         ICONV_CONST.
33921         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
33922
33923 2007-10-13  Albert Chin  <china@thewrittenword.com>
33924             Bruno Haible  <bruno@clisp.org>
33925
33926         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
33927         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
33928
33929 2007-10-13  Bruno Haible  <bruno@clisp.org>
33930
33931         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
33932         defined, use the ISO C99 inline semantics.
33933         * lib/argp.h (ARGP_EI): Likewise.
33934
33935 2007-10-13  Bruno Haible  <bruno@clisp.org>
33936
33937         Handle 'inline' change in gcc 4.3.0.
33938         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
33939         argp_fmtstream_write, argp_fmtstream_set_lmargin,
33940         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
33941         argp_fmtstream_point): Disable 'extern' declaration if the function
33942         definition is going to be provided inline.
33943         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
33944         semantics, not the ISO C99 inline semantics.
33945         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
33946         'extern' declaration if the function definition is going to be provided
33947         inline.
33948         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
33949         the GNU C inline semantics, not the ISO C99 inline semantics. With
33950         GCC 4.2, avoid a warning.
33951
33952 2007-10-13  Bruno Haible  <bruno@clisp.org>
33953
33954         * lib/freading.h (freading): Enable the use of __freading for
33955         glibc >= 2.7.
33956         * lib/freading.c (freading): Likewise.
33957
33958 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
33959
33960         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
33961         "warning: C99 inline functions are not supported; using GNU89".
33962
33963 2007-10-12  Bruno Haible  <bruno@clisp.org>
33964
33965         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
33966         of 2.
33967         * tests/test-ceilf2.c: New file.
33968         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
33969
33970         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
33971         * modules/ceilf-tests: Update.
33972
33973 2007-10-12  Bruno Haible  <bruno@clisp.org>
33974
33975         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
33976         of 2.
33977         * tests/test-floorf2.c: New file.
33978         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
33979
33980         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
33981         * modules/floorf-tests: Update.
33982
33983 2007-10-12  Bruno Haible  <bruno@clisp.org>
33984
33985         * tests/test-trunc2.c: New file.
33986         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
33987
33988         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
33989         * modules/trunc-tests: Update.
33990
33991 2007-10-12  Bruno Haible  <bruno@clisp.org>
33992
33993         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
33994         of 2.
33995         * tests/test-truncf2.c: New file.
33996         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
33997
33998         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
33999         * modules/truncf-tests: Update.
34000
34001 2007-10-11  Eric Blake  <ebb9@byu.net>
34002
34003         Don't claim strerror is broken on Interix.
34004         * doc/functions/strerror.texi (strerror): Known broken systems are
34005         now Solaris 8, and not Interix.
34006         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
34007         Interix on cross-compile.
34008         Reported by Martin Koeppe in
34009         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
34010
34011 2007-10-11  Bruno Haible  <bruno@clisp.org>
34012
34013         * modules/i-ring-tests: New file.
34014         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
34015         instead of assert.
34016
34017 2007-10-11  Bruno Haible  <bruno@clisp.org>
34018
34019         * modules/filenamecat-tests: New file.
34020         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
34021         * lib/filenamecat.c: Remove test code.
34022
34023 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
34024
34025         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
34026
34027         * lib/strerror.c: Include <string.h> always, to test interface,
34028         and to remove the need for the dummy.
34029         Include intprops.h to compute width instead of doing it ourselves
34030         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
34031         (strerror): Define it to return NULL if there's no system strerror.
34032         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
34033         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
34034         ancient pre-strerror Unix systems well any more.  Saying "unknown
34035         system error" is enough.
34036         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
34037         simpler strerror.c implementation.
34038         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
34039         Simplify the tests to reflect the simpler strerror implementation.
34040         * modules/strerror (Depends-on): Add intprops.
34041
34042 2007-10-09  Eric Blake  <ebb9@byu.net>
34043
34044         Silence test-fpending.
34045         * modules/fpending-tests (Files): Add wrapper script.
34046         * tests/test-fpending.sh: New file.
34047
34048 2007-10-09  Bruno Haible  <bruno@clisp.org>
34049
34050         * MODULES.html.sh (func_module): Don't create a hyperlink for
34051         function names like 'printf_frexp'.
34052         (Misc): Add crc, memxor.
34053         (Characteristics of floating types): New section.
34054         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
34055         isnanf-nolibm, signbit, trunc, truncf, truncl.
34056         (Enhancements for ISO C 99 functions): New subsection Input/output.
34057         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
34058         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
34059         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
34060         (Compatibility checks for POSIX:2001 functions): Add clock-time.
34061         (Enhancements for POSIX:2001 functions): Add chdir-long.
34062         (File system functions): Add areadlink, chdir-safer, read-file.
34063         Remove cycle-check.
34064         (File system as inode set): New section.
34065         (Date and time): Add gethrxtime.
34066         (Multithreading): Add openmp.
34067         (Internationalization functions): Add localename.
34068         (Unicode string functions): Add unistr/u*-mbsnlen.
34069         (Support for maintaining and releasing projects): Add git-version-gen.
34070         (Lone files): Remove directories.
34071
34072 2007-10-08  Ben Pfaff  <blp@gnu.org>
34073
34074         * lib/xmalloca.h: Fix typo in comment.
34075
34076 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
34077
34078         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
34079         when avoiding problems with integer overflow.  Use a portable test
34080         instead.
34081
34082 2007-10-08  Simon Josefsson  <simon@josefsson.org>
34083
34084         * modules/dummy (License): Change to LGPLv2+.
34085         * modules/float (License): Likewise
34086         * modules/realloc (License): Likewise
34087         * modules/stdlib (License): Likewise
34088
34089 2007-10-07  Bruno Haible  <bruno@clisp.org>
34090
34091         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
34092         * floor.c (TWO_MANT_DIG): Likewise.
34093         * ceil.c (TWO_MANT_DIG): Likewise.
34094         Reported by Ben Pfaff.
34095
34096 2007-10-07  Bruno Haible  <bruno@clisp.org>
34097
34098         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
34099         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
34100         * lib/frexp.c (FUNC): Likewise.
34101         * lib/printf-frexp.h (printf_frexp): Likewise.
34102         * lib/printf-frexpl.h (printf_frexpl): Likewise.
34103         * lib/printf-frexp.c (FUNC): Likewise.
34104         Suggested by Jim Meyering.
34105
34106 2007-10-07  Jim Meyering  <meyering@redhat.com>
34107
34108         Make xnanosleep's integer overflow test more robust.
34109         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
34110         so that gcc-4.3.0 doesn't optimize away this test for overflow.
34111
34112 2007-10-07  Bruno Haible  <bruno@clisp.org>
34113
34114         * NEWS: Mention the license change.
34115
34116         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
34117         abbreviations in the modules files.
34118
34119         Change copyright notice from GPLv2+ to GPLv3+.
34120         * README: Change copyright notice.
34121         * MODULES.html.sh: Likewise.
34122         * build-aux/bootstrap.conf: Likewise.
34123         * build-aux/config.libpath: Likewise.
34124         * build-aux/csharpcomp.sh.in: Likewise.
34125         * build-aux/csharpexec.sh.in: Likewise.
34126         * build-aux/install-reloc: Likewise.
34127         * build-aux/javacomp.sh.in: Likewise.
34128         * build-aux/javaexec.sh.in: Likewise.
34129         * build-aux/ldd.sh.in: Likewise.
34130         * build-aux/reloc-ldflags: Likewise.
34131         * build-aux/relocatable.sh.in: Likewise.
34132         * build-aux/x-to-1.in: Likewise.
34133         * check-module: Likewise.
34134         * config/srclistvars.sh: Likewise.
34135         * gnulib-tool: Likewise.
34136         * lib/acl-internal.h: Likewise.
34137         * lib/acl.c: Likewise.
34138         * lib/acl.h: Likewise.
34139         * lib/acl_entries.c: Likewise.
34140         * lib/areadlink-with-size.c: Likewise.
34141         * lib/areadlink.c: Likewise.
34142         * lib/areadlink.h: Likewise.
34143         * lib/argmatch.c: Likewise.
34144         * lib/argmatch.h: Likewise.
34145         * lib/argp-ba.c: Likewise.
34146         * lib/argp-eexst.c: Likewise.
34147         * lib/argp-fmtstream.c: Likewise.
34148         * lib/argp-fmtstream.h: Likewise.
34149         * lib/argp-fs-xinl.c: Likewise.
34150         * lib/argp-help.c: Likewise.
34151         * lib/argp-namefrob.h: Likewise.
34152         * lib/argp-parse.c: Likewise.
34153         * lib/argp-pin.c: Likewise.
34154         * lib/argp-pv.c: Likewise.
34155         * lib/argp-pvh.c: Likewise.
34156         * lib/argp-xinl.c: Likewise.
34157         * lib/argp.h: Likewise.
34158         * lib/at-func.c: Likewise.
34159         * lib/atanl.c: Likewise.
34160         * lib/backupfile.c: Likewise.
34161         * lib/backupfile.h: Likewise.
34162         * lib/basename.c: Likewise.
34163         * lib/binary-io.h: Likewise.
34164         * lib/byteswap.in.h: Likewise.
34165         * lib/c-stack.c: Likewise.
34166         * lib/c-stack.h: Likewise.
34167         * lib/c-strcasestr.c: Likewise.
34168         * lib/c-strcasestr.h: Likewise.
34169         * lib/c-strstr.c: Likewise.
34170         * lib/c-strstr.h: Likewise.
34171         * lib/c-strtod.c: Likewise.
34172         * lib/calloc.c: Likewise.
34173         * lib/canon-host.c: Likewise.
34174         * lib/canon-host.h: Likewise.
34175         * lib/canonicalize-lgpl.c: Likewise.
34176         * lib/canonicalize.c: Likewise.
34177         * lib/canonicalize.h: Likewise.
34178         * lib/ceil.c: Likewise.
34179         * lib/ceilf.c: Likewise.
34180         * lib/ceill.c: Likewise.
34181         * lib/chdir-long.c: Likewise.
34182         * lib/chdir-long.h: Likewise.
34183         * lib/chdir-safer.c: Likewise.
34184         * lib/chdir-safer.h: Likewise.
34185         * lib/chown.c: Likewise.
34186         * lib/classpath.c: Likewise.
34187         * lib/classpath.h: Likewise.
34188         * lib/clean-temp.c: Likewise.
34189         * lib/clean-temp.h: Likewise.
34190         * lib/cloexec.c: Likewise.
34191         * lib/close-stream.c: Likewise.
34192         * lib/closein.c: Likewise.
34193         * lib/closein.h: Likewise.
34194         * lib/closeout.c: Likewise.
34195         * lib/closeout.h: Likewise.
34196         * lib/concat-filename.c: Likewise.
34197         * lib/copy-file.c: Likewise.
34198         * lib/copy-file.h: Likewise.
34199         * lib/count-one-bits.h: Likewise.
34200         * lib/crc.c: Likewise.
34201         * lib/crc.h: Likewise.
34202         * lib/creat-safer.c: Likewise.
34203         * lib/csharpcomp.c: Likewise.
34204         * lib/csharpcomp.h: Likewise.
34205         * lib/csharpexec.c: Likewise.
34206         * lib/csharpexec.h: Likewise.
34207         * lib/cycle-check.c: Likewise.
34208         * lib/cycle-check.h: Likewise.
34209         * lib/diacrit.c: Likewise.
34210         * lib/diacrit.h: Likewise.
34211         * lib/diffseq.h: Likewise.
34212         * lib/dirchownmod.c: Likewise.
34213         * lib/dirent.in.h: Likewise.
34214         * lib/dirfd.c: Likewise.
34215         * lib/dirfd.h: Likewise.
34216         * lib/dirname.c: Likewise.
34217         * lib/dirname.h: Likewise.
34218         * lib/dummy.c: Likewise.
34219         * lib/dup-safer.c: Likewise.
34220         * lib/dup2.c: Likewise.
34221         * lib/eealloc.h: Likewise.
34222         * lib/error.c: Likewise.
34223         * lib/error.h: Likewise.
34224         * lib/euidaccess.c: Likewise.
34225         * lib/exclude.c: Likewise.
34226         * lib/exclude.h: Likewise.
34227         * lib/execute.c: Likewise.
34228         * lib/execute.h: Likewise.
34229         * lib/exitfail.c: Likewise.
34230         * lib/exitfail.h: Likewise.
34231         * lib/expl.c: Likewise.
34232         * lib/fatal-signal.c: Likewise.
34233         * lib/fatal-signal.h: Likewise.
34234         * lib/fbufmode.c: Likewise.
34235         * lib/fbufmode.h: Likewise.
34236         * lib/fchdir.c: Likewise.
34237         * lib/fchmodat.c: Likewise.
34238         * lib/fchownat.c: Likewise.
34239         * lib/fcntl--.h: Likewise.
34240         * lib/fcntl-safer.h: Likewise.
34241         * lib/fcntl.in.h: Likewise.
34242         * lib/fd-safer.c: Likewise.
34243         * lib/fflush.c: Likewise.
34244         * lib/file-has-acl.c: Likewise.
34245         * lib/file-set.c: Likewise.
34246         * lib/file-type.c: Likewise.
34247         * lib/file-type.h: Likewise.
34248         * lib/fileblocks.c: Likewise.
34249         * lib/filemode.c: Likewise.
34250         * lib/filemode.h: Likewise.
34251         * lib/filename.h: Likewise.
34252         * lib/filenamecat.c: Likewise.
34253         * lib/filenamecat.h: Likewise.
34254         * lib/findprog.c: Likewise.
34255         * lib/findprog.h: Likewise.
34256         * lib/float.in.h: Likewise.
34257         * lib/floor.c: Likewise.
34258         * lib/floorf.c: Likewise.
34259         * lib/floorl.c: Likewise.
34260         * lib/fopen-safer.c: Likewise.
34261         * lib/fopen.c: Likewise.
34262         * lib/fpending.c: Likewise.
34263         * lib/fpending.h: Likewise.
34264         * lib/fprintf.c: Likewise.
34265         * lib/fprintftime.h: Likewise.
34266         * lib/fpucw.h: Likewise.
34267         * lib/fpurge.c: Likewise.
34268         * lib/fpurge.h: Likewise.
34269         * lib/freadable.c: Likewise.
34270         * lib/freadable.h: Likewise.
34271         * lib/freadahead.c: Likewise.
34272         * lib/freadahead.h: Likewise.
34273         * lib/freading.c: Likewise.
34274         * lib/freading.h: Likewise.
34275         * lib/free.c: Likewise.
34276         * lib/freopen.c: Likewise.
34277         * lib/frexp.c: Likewise.
34278         * lib/frexpl.c: Likewise.
34279         * lib/fseek.c: Likewise.
34280         * lib/fseterr.c: Likewise.
34281         * lib/fseterr.h: Likewise.
34282         * lib/fstatat.c: Likewise.
34283         * lib/fstrcmp.c: Likewise.
34284         * lib/fstrcmp.h: Likewise.
34285         * lib/fsusage.c: Likewise.
34286         * lib/fsusage.h: Likewise.
34287         * lib/ftell.c: Likewise.
34288         * lib/ftello.c: Likewise.
34289         * lib/fts-cycle.c: Likewise.
34290         * lib/fts.c: Likewise.
34291         * lib/fts_.h: Likewise.
34292         * lib/full-read.c: Likewise.
34293         * lib/full-read.h: Likewise.
34294         * lib/full-write.c: Likewise.
34295         * lib/full-write.h: Likewise.
34296         * lib/fwritable.c: Likewise.
34297         * lib/fwritable.h: Likewise.
34298         * lib/fwriteerror.c: Likewise.
34299         * lib/fwriteerror.h: Likewise.
34300         * lib/fwriting.c: Likewise.
34301         * lib/fwriting.h: Likewise.
34302         * lib/gcd.c: Likewise.
34303         * lib/gcd.h: Likewise.
34304         * lib/getcwd.c: Likewise.
34305         * lib/getdate.h: Likewise.
34306         * lib/getdate.y: Likewise.
34307         * lib/getdomainname.c: Likewise.
34308         * lib/getdomainname.h: Likewise.
34309         * lib/getgroups.c: Likewise.
34310         * lib/gethostname.c: Likewise.
34311         * lib/gethrxtime.c: Likewise.
34312         * lib/gethrxtime.h: Likewise.
34313         * lib/getloadavg.c: Likewise.
34314         * lib/getndelim2.c: Likewise.
34315         * lib/getndelim2.h: Likewise.
34316         * lib/getnline.c: Likewise.
34317         * lib/getnline.h: Likewise.
34318         * lib/getopt.c: Likewise.
34319         * lib/getopt.in.h: Likewise.
34320         * lib/getopt1.c: Likewise.
34321         * lib/getopt_int.h: Likewise.
34322         * lib/getpagesize.h: Likewise.
34323         * lib/getsubopt.c: Likewise.
34324         * lib/gettime.c: Likewise.
34325         * lib/getugroups.c: Likewise.
34326         * lib/getugroups.h: Likewise.
34327         * lib/getusershell.c: Likewise.
34328         * lib/gl_anyavltree_list1.h: Likewise.
34329         * lib/gl_anyavltree_list2.h: Likewise.
34330         * lib/gl_anyhash_list1.h: Likewise.
34331         * lib/gl_anyhash_list2.h: Likewise.
34332         * lib/gl_anylinked_list1.h: Likewise.
34333         * lib/gl_anylinked_list2.h: Likewise.
34334         * lib/gl_anyrbtree_list1.h: Likewise.
34335         * lib/gl_anyrbtree_list2.h: Likewise.
34336         * lib/gl_anytree_list1.h: Likewise.
34337         * lib/gl_anytree_list2.h: Likewise.
34338         * lib/gl_anytree_oset.h: Likewise.
34339         * lib/gl_anytreehash_list1.h: Likewise.
34340         * lib/gl_anytreehash_list2.h: Likewise.
34341         * lib/gl_array_list.c: Likewise.
34342         * lib/gl_array_list.h: Likewise.
34343         * lib/gl_array_oset.c: Likewise.
34344         * lib/gl_array_oset.h: Likewise.
34345         * lib/gl_avltree_list.c: Likewise.
34346         * lib/gl_avltree_list.h: Likewise.
34347         * lib/gl_avltree_oset.c: Likewise.
34348         * lib/gl_avltree_oset.h: Likewise.
34349         * lib/gl_avltreehash_list.c: Likewise.
34350         * lib/gl_avltreehash_list.h: Likewise.
34351         * lib/gl_carray_list.c: Likewise.
34352         * lib/gl_carray_list.h: Likewise.
34353         * lib/gl_linked_list.c: Likewise.
34354         * lib/gl_linked_list.h: Likewise.
34355         * lib/gl_linkedhash_list.c: Likewise.
34356         * lib/gl_linkedhash_list.h: Likewise.
34357         * lib/gl_list.c: Likewise.
34358         * lib/gl_list.h: Likewise.
34359         * lib/gl_oset.c: Likewise.
34360         * lib/gl_oset.h: Likewise.
34361         * lib/gl_rbtree_list.c: Likewise.
34362         * lib/gl_rbtree_list.h: Likewise.
34363         * lib/gl_rbtree_oset.c: Likewise.
34364         * lib/gl_rbtree_oset.h: Likewise.
34365         * lib/gl_rbtreehash_list.c: Likewise.
34366         * lib/gl_rbtreehash_list.h: Likewise.
34367         * lib/gl_sublist.c: Likewise.
34368         * lib/gl_sublist.h: Likewise.
34369         * lib/group-member.c: Likewise.
34370         * lib/group-member.h: Likewise.
34371         * lib/hard-locale.c: Likewise.
34372         * lib/hard-locale.h: Likewise.
34373         * lib/hash-pjw.c: Likewise.
34374         * lib/hash-pjw.h: Likewise.
34375         * lib/hash-triple.c: Likewise.
34376         * lib/hash.c: Likewise.
34377         * lib/hash.h: Likewise.
34378         * lib/human.c: Likewise.
34379         * lib/human.h: Likewise.
34380         * lib/i-ring.c: Likewise.
34381         * lib/i-ring.h: Likewise.
34382         * lib/idcache.c: Likewise.
34383         * lib/imaxabs.c: Likewise.
34384         * lib/imaxdiv.c: Likewise.
34385         * lib/inet_pton.c: Likewise.
34386         * lib/inet_pton.h: Likewise.
34387         * lib/intprops.h: Likewise.
34388         * lib/inttostr.c: Likewise.
34389         * lib/inttostr.h: Likewise.
34390         * lib/inttypes.in.h: Likewise.
34391         * lib/isapipe.c: Likewise.
34392         * lib/isdir.c: Likewise.
34393         * lib/isnan.c: Likewise.
34394         * lib/isnan.h: Likewise.
34395         * lib/isnanf.c: Likewise.
34396         * lib/isnanf.h: Likewise.
34397         * lib/isnanl-nolibm.h: Likewise.
34398         * lib/isnanl.c: Likewise.
34399         * lib/isnanl.h: Likewise.
34400         * lib/javacomp.c: Likewise.
34401         * lib/javacomp.h: Likewise.
34402         * lib/javaexec.c: Likewise.
34403         * lib/javaexec.h: Likewise.
34404         * lib/javaversion.c: Likewise.
34405         * lib/javaversion.h: Likewise.
34406         * lib/javaversion.java: Likewise.
34407         * lib/lbrkprop.h: Likewise.
34408         * lib/lchmod.h: Likewise.
34409         * lib/lchown.c: Likewise.
34410         * lib/ldexpl.c: Likewise.
34411         * lib/linebreak.c: Likewise.
34412         * lib/linebreak.h: Likewise.
34413         * lib/linebuffer.c: Likewise.
34414         * lib/linebuffer.h: Likewise.
34415         * lib/locale.in.h: Likewise.
34416         * lib/logl.c: Likewise.
34417         * lib/long-options.c: Likewise.
34418         * lib/long-options.h: Likewise.
34419         * lib/lstat.c: Likewise.
34420         * lib/lstat.h: Likewise.
34421         * lib/math.in.h: Likewise.
34422         * lib/mbchar.c: Likewise.
34423         * lib/mbchar.h: Likewise.
34424         * lib/mbfile.h: Likewise.
34425         * lib/mbiter.h: Likewise.
34426         * lib/mbscasecmp.c: Likewise.
34427         * lib/mbscasestr.c: Likewise.
34428         * lib/mbschr.c: Likewise.
34429         * lib/mbscspn.c: Likewise.
34430         * lib/mbslen.c: Likewise.
34431         * lib/mbsncasecmp.c: Likewise.
34432         * lib/mbsnlen.c: Likewise.
34433         * lib/mbspbrk.c: Likewise.
34434         * lib/mbspcasecmp.c: Likewise.
34435         * lib/mbsrchr.c: Likewise.
34436         * lib/mbssep.c: Likewise.
34437         * lib/mbsspn.c: Likewise.
34438         * lib/mbsstr.c: Likewise.
34439         * lib/mbstok_r.c: Likewise.
34440         * lib/mbswidth.c: Likewise.
34441         * lib/mbswidth.h: Likewise.
34442         * lib/mbuiter.h: Likewise.
34443         * lib/memcasecmp.c: Likewise.
34444         * lib/memcasecmp.h: Likewise.
34445         * lib/memchr.c: Likewise.
34446         * lib/memcmp.c: Likewise.
34447         * lib/memcoll.c: Likewise.
34448         * lib/memcoll.h: Likewise.
34449         * lib/memcpy.c: Likewise.
34450         * lib/memrchr.c: Likewise.
34451         * lib/mkancesdirs.c: Likewise.
34452         * lib/mkdir-p.c: Likewise.
34453         * lib/mkdir-p.h: Likewise.
34454         * lib/mkdir.c: Likewise.
34455         * lib/mkdirat.c: Likewise.
34456         * lib/mkdtemp.c: Likewise.
34457         * lib/mkstemp-safer.c: Likewise.
34458         * lib/mkstemp.c: Likewise.
34459         * lib/modechange.c: Likewise.
34460         * lib/modechange.h: Likewise.
34461         * lib/mountlist.c: Likewise.
34462         * lib/mountlist.h: Likewise.
34463         * lib/mpsort.c: Likewise.
34464         * lib/nanosleep.c: Likewise.
34465         * lib/obstack.c: Likewise.
34466         * lib/obstack.h: Likewise.
34467         * lib/open-safer.c: Likewise.
34468         * lib/open.c: Likewise.
34469         * lib/openat-die.c: Likewise.
34470         * lib/openat-priv.h: Likewise.
34471         * lib/openat-proc.c: Likewise.
34472         * lib/openat.c: Likewise.
34473         * lib/openat.h: Likewise.
34474         * lib/pagealign_alloc.c: Likewise.
34475         * lib/pagealign_alloc.h: Likewise.
34476         * lib/physmem.c: Likewise.
34477         * lib/physmem.h: Likewise.
34478         * lib/pipe-safer.c: Likewise.
34479         * lib/pipe.c: Likewise.
34480         * lib/pipe.h: Likewise.
34481         * lib/posixtm.c: Likewise.
34482         * lib/posixtm.h: Likewise.
34483         * lib/posixver.c: Likewise.
34484         * lib/printf-frexp.c: Likewise.
34485         * lib/printf-frexp.h: Likewise.
34486         * lib/printf-frexpl.c: Likewise.
34487         * lib/printf-frexpl.h: Likewise.
34488         * lib/printf.c: Likewise.
34489         * lib/progname.c: Likewise.
34490         * lib/progname.h: Likewise.
34491         * lib/progreloc.c: Likewise.
34492         * lib/putenv.c: Likewise.
34493         * lib/quote.c: Likewise.
34494         * lib/quote.h: Likewise.
34495         * lib/quotearg.c: Likewise.
34496         * lib/quotearg.h: Likewise.
34497         * lib/raise.c: Likewise.
34498         * lib/readline.c: Likewise.
34499         * lib/readline.h: Likewise.
34500         * lib/readlink.c: Likewise.
34501         * lib/readtokens.c: Likewise.
34502         * lib/readtokens.h: Likewise.
34503         * lib/readtokens0.c: Likewise.
34504         * lib/readtokens0.h: Likewise.
34505         * lib/readutmp.c: Likewise.
34506         * lib/readutmp.h: Likewise.
34507         * lib/realloc.c: Likewise.
34508         * lib/relocwrapper.c: Likewise.
34509         * lib/rename-dest-slash.c: Likewise.
34510         * lib/rename.c: Likewise.
34511         * lib/rmdir.c: Likewise.
34512         * lib/rpmatch.c: Likewise.
34513         * lib/safe-read.c: Likewise.
34514         * lib/safe-read.h: Likewise.
34515         * lib/safe-write.c: Likewise.
34516         * lib/safe-write.h: Likewise.
34517         * lib/same-inode.h: Likewise.
34518         * lib/same.c: Likewise.
34519         * lib/same.h: Likewise.
34520         * lib/save-cwd.c: Likewise.
34521         * lib/save-cwd.h: Likewise.
34522         * lib/savedir.c: Likewise.
34523         * lib/savedir.h: Likewise.
34524         * lib/savewd.c: Likewise.
34525         * lib/savewd.h: Likewise.
34526         * lib/search.in.h: Likewise.
34527         * lib/setenv.c: Likewise.
34528         * lib/setenv.h: Likewise.
34529         * lib/settime.c: Likewise.
34530         * lib/sh-quote.c: Likewise.
34531         * lib/sh-quote.h: Likewise.
34532         * lib/sig2str.c: Likewise.
34533         * lib/sig2str.h: Likewise.
34534         * lib/signal.in.h: Likewise.
34535         * lib/signbitd.c: Likewise.
34536         * lib/signbitf.c: Likewise.
34537         * lib/signbitl.c: Likewise.
34538         * lib/sigprocmask.c: Likewise.
34539         * lib/sincosl.c: Likewise.
34540         * lib/sleep.c: Likewise.
34541         * lib/sprintf.c: Likewise.
34542         * lib/sqrtl.c: Likewise.
34543         * lib/stat-time.h: Likewise.
34544         * lib/stdio--.h: Likewise.
34545         * lib/stdio-safer.h: Likewise.
34546         * lib/stdlib--.h: Likewise.
34547         * lib/stdlib-safer.h: Likewise.
34548         * lib/stdlib.in.h: Likewise.
34549         * lib/stpcpy.c: Likewise.
34550         * lib/stpncpy.c: Likewise.
34551         * lib/strchrnul.c: Likewise.
34552         * lib/strcspn.c: Likewise.
34553         * lib/strerror.c: Likewise.
34554         * lib/strftime.c: Likewise.
34555         * lib/strftime.h: Likewise.
34556         * lib/striconveh.c: Likewise.
34557         * lib/striconveh.h: Likewise.
34558         * lib/striconveha.c: Likewise.
34559         * lib/striconveha.h: Likewise.
34560         * lib/stripslash.c: Likewise.
34561         * lib/strnlen1.c: Likewise.
34562         * lib/strnlen1.h: Likewise.
34563         * lib/strtod.c: Likewise.
34564         * lib/strtoimax.c: Likewise.
34565         * lib/strtok_r.c: Likewise.
34566         * lib/strtol.c: Likewise.
34567         * lib/strtoll.c: Likewise.
34568         * lib/strtoul.c: Likewise.
34569         * lib/strtoull.c: Likewise.
34570         * lib/sysexits.in.h: Likewise.
34571         * lib/tempname.c: Likewise.
34572         * lib/tempname.h: Likewise.
34573         * lib/timespec.h: Likewise.
34574         * lib/tls.c: Likewise.
34575         * lib/tls.h: Likewise.
34576         * lib/tmpdir.c: Likewise.
34577         * lib/tmpdir.h: Likewise.
34578         * lib/tmpfile-safer.c: Likewise.
34579         * lib/tmpfile.c: Likewise.
34580         * lib/trigl.c: Likewise.
34581         * lib/trigl.h: Likewise.
34582         * lib/trim.c: Likewise.
34583         * lib/trim.h: Likewise.
34584         * lib/trunc.c: Likewise.
34585         * lib/truncf.c: Likewise.
34586         * lib/truncl.c: Likewise.
34587         * lib/tsearch.c: Likewise.
34588         * lib/unicodeio.c: Likewise.
34589         * lib/unicodeio.h: Likewise.
34590         * lib/unistd--.h: Likewise.
34591         * lib/unistd-safer.h: Likewise.
34592         * lib/unistdio/ulc-fprintf.c: Likewise.
34593         * lib/unistdio/ulc-vfprintf.c: Likewise.
34594         * lib/unlinkdir.c: Likewise.
34595         * lib/unlinkdir.h: Likewise.
34596         * lib/unlocked-io.h: Likewise.
34597         * lib/unsetenv.c: Likewise.
34598         * lib/userspec.c: Likewise.
34599         * lib/utime.c: Likewise.
34600         * lib/utimecmp.c: Likewise.
34601         * lib/utimecmp.h: Likewise.
34602         * lib/utimens.c: Likewise.
34603         * lib/verify.h: Likewise.
34604         * lib/verror.c: Likewise.
34605         * lib/verror.h: Likewise.
34606         * lib/version-etc-fsf.c: Likewise.
34607         * lib/version-etc.c: Likewise.
34608         * lib/version-etc.h: Likewise.
34609         * lib/vfprintf.c: Likewise.
34610         * lib/vprintf.c: Likewise.
34611         * lib/vsprintf.c: Likewise.
34612         * lib/w32spawn.h: Likewise.
34613         * lib/wait-process.c: Likewise.
34614         * lib/wait-process.h: Likewise.
34615         * lib/wcwidth.c: Likewise.
34616         * lib/write-any-file.c: Likewise.
34617         * lib/xalloc-die.c: Likewise.
34618         * lib/xalloc.h: Likewise.
34619         * lib/xasprintf.c: Likewise.
34620         * lib/xgetcwd.c: Likewise.
34621         * lib/xgetcwd.h: Likewise.
34622         * lib/xgetdomainname.c: Likewise.
34623         * lib/xgetdomainname.h: Likewise.
34624         * lib/xgethostname.c: Likewise.
34625         * lib/xmalloc.c: Likewise.
34626         * lib/xmalloca.c: Likewise.
34627         * lib/xmalloca.h: Likewise.
34628         * lib/xmemcoll.c: Likewise.
34629         * lib/xnanosleep.c: Likewise.
34630         * lib/xreadlink.c: Likewise.
34631         * lib/xreadlink.h: Likewise.
34632         * lib/xsetenv.c: Likewise.
34633         * lib/xsetenv.h: Likewise.
34634         * lib/xstriconv.c: Likewise.
34635         * lib/xstriconv.h: Likewise.
34636         * lib/xstrndup.c: Likewise.
34637         * lib/xstrndup.h: Likewise.
34638         * lib/xstrtod.c: Likewise.
34639         * lib/xstrtod.h: Likewise.
34640         * lib/xstrtol-error.c: Likewise.
34641         * lib/xstrtol.c: Likewise.
34642         * lib/xstrtol.h: Likewise.
34643         * lib/xtime.h: Likewise.
34644         * lib/xvasprintf.c: Likewise.
34645         * lib/xvasprintf.h: Likewise.
34646         * lib/yesno.c: Likewise.
34647         * lib/yesno.h: Likewise.
34648         * posix-modules: Likewise.
34649         * tests/test-alloca-opt.c: Likewise.
34650         * tests/test-arcfour.c: Likewise.
34651         * tests/test-arctwo.c: Likewise.
34652         * tests/test-argmatch.c: Likewise.
34653         * tests/test-argp-2.sh: Likewise.
34654         * tests/test-argp.c: Likewise.
34655         * tests/test-arpa_inet.c: Likewise.
34656         * tests/test-array_list.c: Likewise.
34657         * tests/test-array_oset.c: Likewise.
34658         * tests/test-atexit.c: Likewise.
34659         * tests/test-avltree_list.c: Likewise.
34660         * tests/test-avltree_oset.c: Likewise.
34661         * tests/test-avltreehash_list.c: Likewise.
34662         * tests/test-base64.c: Likewise.
34663         * tests/test-binary-io.c: Likewise.
34664         * tests/test-byteswap.c: Likewise.
34665         * tests/test-c-ctype.c: Likewise.
34666         * tests/test-c-strcasecmp.c: Likewise.
34667         * tests/test-c-strcasestr.c: Likewise.
34668         * tests/test-c-strncasecmp.c: Likewise.
34669         * tests/test-c-strstr.c: Likewise.
34670         * tests/test-canonicalize-lgpl.c: Likewise.
34671         * tests/test-canonicalize.c: Likewise.
34672         * tests/test-carray_list.c: Likewise.
34673         * tests/test-ceilf.c: Likewise.
34674         * tests/test-ceill.c: Likewise.
34675         * tests/test-count-one-bits.c: Likewise.
34676         * tests/test-crc.c: Likewise.
34677         * tests/test-dirname.c: Likewise.
34678         * tests/test-fbufmode.c: Likewise.
34679         * tests/test-fcntl.c: Likewise.
34680         * tests/test-fflush.c: Likewise.
34681         * tests/test-floorf.c: Likewise.
34682         * tests/test-floorl.c: Likewise.
34683         * tests/test-fopen.c: Likewise.
34684         * tests/test-fprintf-posix.c: Likewise.
34685         * tests/test-fprintf-posix.h: Likewise.
34686         * tests/test-fpurge.c: Likewise.
34687         * tests/test-freadable.c: Likewise.
34688         * tests/test-freadahead.c: Likewise.
34689         * tests/test-freading.c: Likewise.
34690         * tests/test-freopen.c: Likewise.
34691         * tests/test-frexp.c: Likewise.
34692         * tests/test-frexpl.c: Likewise.
34693         * tests/test-fseek.c: Likewise.
34694         * tests/test-fseeko.c: Likewise.
34695         * tests/test-fseterr.c: Likewise.
34696         * tests/test-fstrcmp.c: Likewise.
34697         * tests/test-ftell.c: Likewise.
34698         * tests/test-ftello.c: Likewise.
34699         * tests/test-fwritable.c: Likewise.
34700         * tests/test-fwriting.c: Likewise.
34701         * tests/test-getaddrinfo.c: Likewise.
34702         * tests/test-getpass.c: Likewise.
34703         * tests/test-gettimeofday.c: Likewise.
34704         * tests/test-hmac-md5.c: Likewise.
34705         * tests/test-hmac-sha1.c: Likewise.
34706         * tests/test-iconv.c: Likewise.
34707         * tests/test-iconvme.c: Likewise.
34708         * tests/test-inttypes.c: Likewise.
34709         * tests/test-isnan.c: Likewise.
34710         * tests/test-isnanf.c: Likewise.
34711         * tests/test-isnanl-nolibm.c: Likewise.
34712         * tests/test-isnanl.c: Likewise.
34713         * tests/test-isnanl.h: Likewise.
34714         * tests/test-ldexpl.c: Likewise.
34715         * tests/test-linked_list.c: Likewise.
34716         * tests/test-linkedhash_list.c: Likewise.
34717         * tests/test-locale.c: Likewise.
34718         * tests/test-localename.c: Likewise.
34719         * tests/test-lock.c: Likewise.
34720         * tests/test-lseek.c: Likewise.
34721         * tests/test-malloca.c: Likewise.
34722         * tests/test-math.c: Likewise.
34723         * tests/test-mbscasecmp.c: Likewise.
34724         * tests/test-mbscasestr1.c: Likewise.
34725         * tests/test-mbscasestr2.c: Likewise.
34726         * tests/test-mbscasestr3.c: Likewise.
34727         * tests/test-mbscasestr4.c: Likewise.
34728         * tests/test-mbschr.c: Likewise.
34729         * tests/test-mbscspn.c: Likewise.
34730         * tests/test-mbsncasecmp.c: Likewise.
34731         * tests/test-mbspbrk.c: Likewise.
34732         * tests/test-mbspcasecmp.c: Likewise.
34733         * tests/test-mbsrchr.c: Likewise.
34734         * tests/test-mbsspn.c: Likewise.
34735         * tests/test-mbsstr1.c: Likewise.
34736         * tests/test-mbsstr2.c: Likewise.
34737         * tests/test-mbsstr3.c: Likewise.
34738         * tests/test-md5.c: Likewise.
34739         * tests/test-memmem.c: Likewise.
34740         * tests/test-netinet_in.c: Likewise.
34741         * tests/test-open.c: Likewise.
34742         * tests/test-printf-frexp.c: Likewise.
34743         * tests/test-printf-frexpl.c: Likewise.
34744         * tests/test-printf-posix.c: Likewise.
34745         * tests/test-printf-posix.h: Likewise.
34746         * tests/test-rbtree_list.c: Likewise.
34747         * tests/test-rbtree_oset.c: Likewise.
34748         * tests/test-rbtreehash_list.c: Likewise.
34749         * tests/test-read-file.c: Likewise.
34750         * tests/test-rijndael.c: Likewise.
34751         * tests/test-search.c: Likewise.
34752         * tests/test-signbit.c: Likewise.
34753         * tests/test-sleep.c: Likewise.
34754         * tests/test-snprintf-posix.c: Likewise.
34755         * tests/test-snprintf-posix.h: Likewise.
34756         * tests/test-snprintf.c: Likewise.
34757         * tests/test-sprintf-posix.c: Likewise.
34758         * tests/test-sprintf-posix.h: Likewise.
34759         * tests/test-stat-time.c: Likewise.
34760         * tests/test-stdbool.c: Likewise.
34761         * tests/test-stdint.c: Likewise.
34762         * tests/test-stdio.c: Likewise.
34763         * tests/test-stdlib.c: Likewise.
34764         * tests/test-stpncpy.c: Likewise.
34765         * tests/test-strcasestr.c: Likewise.
34766         * tests/test-striconv.c: Likewise.
34767         * tests/test-striconveh.c: Likewise.
34768         * tests/test-striconveha.c: Likewise.
34769         * tests/test-string.c: Likewise.
34770         * tests/test-sys_select.c: Likewise.
34771         * tests/test-sys_socket.c: Likewise.
34772         * tests/test-sys_stat.c: Likewise.
34773         * tests/test-sys_time.c: Likewise.
34774         * tests/test-sysexits.c: Likewise.
34775         * tests/test-time.c: Likewise.
34776         * tests/test-tls.c: Likewise.
34777         * tests/test-trunc.c: Likewise.
34778         * tests/test-truncf.c: Likewise.
34779         * tests/test-truncl.c: Likewise.
34780         * tests/test-unistd.c: Likewise.
34781         * tests/test-vasnprintf-posix.c: Likewise.
34782         * tests/test-vasnprintf-posix2.c: Likewise.
34783         * tests/test-vasnprintf.c: Likewise.
34784         * tests/test-vasprintf-posix.c: Likewise.
34785         * tests/test-vasprintf.c: Likewise.
34786         * tests/test-verify.c: Likewise.
34787         * tests/test-vfprintf-posix.c: Likewise.
34788         * tests/test-vprintf-posix.c: Likewise.
34789         * tests/test-vsnprintf-posix.c: Likewise.
34790         * tests/test-vsnprintf.c: Likewise.
34791         * tests/test-vsprintf-posix.c: Likewise.
34792         * tests/test-wchar.c: Likewise.
34793         * tests/test-wctype.c: Likewise.
34794         * tests/test-wcwidth.c: Likewise.
34795         * tests/test-xstrtol.c: Likewise.
34796         * tests/test-xvasprintf.c: Likewise.
34797         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
34798         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
34799         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
34800         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
34801         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
34802         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
34803         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
34804         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
34805         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
34806         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
34807         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
34808         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
34809         * tests/uniname/test-uninames.c: Likewise.
34810         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
34811         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
34812         * tests/unistdio/test-u16-printf1.h: Likewise.
34813         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
34814         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
34815         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
34816         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
34817         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
34818         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
34819         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
34820         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
34821         * tests/unistdio/test-u32-printf1.h: Likewise.
34822         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
34823         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
34824         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
34825         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
34826         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
34827         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
34828         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
34829         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
34830         * tests/unistdio/test-u8-printf1.h: Likewise.
34831         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
34832         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
34833         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
34834         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
34835         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
34836         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
34837         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
34838         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
34839         * tests/unistdio/test-ulc-printf1.h: Likewise.
34840         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
34841         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
34842         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
34843         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
34844         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
34845         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
34846         * tests/uniwidth/test-u16-strwidth.c: Likewise.
34847         * tests/uniwidth/test-u16-width.c: Likewise.
34848         * tests/uniwidth/test-u32-strwidth.c: Likewise.
34849         * tests/uniwidth/test-u32-width.c: Likewise.
34850         * tests/uniwidth/test-u8-strwidth.c: Likewise.
34851         * tests/uniwidth/test-u8-width.c: Likewise.
34852         * tests/uniwidth/test-uc_width.c: Likewise.
34853         * config/srclist-update: Likewise.
34854         (fixlicense): Update to GPLv3+.
34855
34856         Change copyright notice from LGPLv2.1+ to LGPLv3+.
34857         * tests/test-tsearch.c: Change copyright notice.
34858
34859         Change copyright notice from LGPLv2.0+ to LGPLv3+.
34860         * lib/c-strcaseeq.h: Change copyright notice.
34861         * lib/streq.h: Likewise.
34862         * lib/uniconv.h: Likewise.
34863         * lib/uniconv/u-conv-from-enc.h: Likewise.
34864         * lib/uniconv/u-conv-to-enc.h: Likewise.
34865         * lib/uniconv/u-strconv-from-enc.h: Likewise.
34866         * lib/uniconv/u-strconv-to-enc.h: Likewise.
34867         * lib/uniconv/u16-conv-from-enc.c: Likewise.
34868         * lib/uniconv/u16-conv-to-enc.c: Likewise.
34869         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
34870         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
34871         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
34872         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
34873         * lib/uniconv/u32-conv-from-enc.c: Likewise.
34874         * lib/uniconv/u32-conv-to-enc.c: Likewise.
34875         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
34876         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
34877         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
34878         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
34879         * lib/uniconv/u8-conv-from-enc.c: Likewise.
34880         * lib/uniconv/u8-conv-to-enc.c: Likewise.
34881         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
34882         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
34883         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
34884         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
34885         * lib/uniname.h: Likewise.
34886         * lib/uniname/uniname.c: Likewise.
34887         * lib/unistdio.h: Likewise.
34888         * lib/unistdio/u-asnprintf.h: Likewise.
34889         * lib/unistdio/u-asprintf.h: Likewise.
34890         * lib/unistdio/u-printf-args.c: Likewise.
34891         * lib/unistdio/u-printf-args.h: Likewise.
34892         * lib/unistdio/u-printf-parse.h: Likewise.
34893         * lib/unistdio/u-snprintf.h: Likewise.
34894         * lib/unistdio/u-sprintf.h: Likewise.
34895         * lib/unistdio/u-vasprintf.h: Likewise.
34896         * lib/unistdio/u-vsnprintf.h: Likewise.
34897         * lib/unistdio/u-vsprintf.h: Likewise.
34898         * lib/unistdio/u16-asnprintf.c: Likewise.
34899         * lib/unistdio/u16-asprintf.c: Likewise.
34900         * lib/unistdio/u16-printf-parse.c: Likewise.
34901         * lib/unistdio/u16-snprintf.c: Likewise.
34902         * lib/unistdio/u16-sprintf.c: Likewise.
34903         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
34904         * lib/unistdio/u16-u16-asprintf.c: Likewise.
34905         * lib/unistdio/u16-u16-snprintf.c: Likewise.
34906         * lib/unistdio/u16-u16-sprintf.c: Likewise.
34907         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
34908         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
34909         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
34910         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
34911         * lib/unistdio/u16-vasnprintf.c: Likewise.
34912         * lib/unistdio/u16-vasprintf.c: Likewise.
34913         * lib/unistdio/u16-vsnprintf.c: Likewise.
34914         * lib/unistdio/u16-vsprintf.c: Likewise.
34915         * lib/unistdio/u32-asnprintf.c: Likewise.
34916         * lib/unistdio/u32-asprintf.c: Likewise.
34917         * lib/unistdio/u32-printf-parse.c: Likewise.
34918         * lib/unistdio/u32-snprintf.c: Likewise.
34919         * lib/unistdio/u32-sprintf.c: Likewise.
34920         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
34921         * lib/unistdio/u32-u32-asprintf.c: Likewise.
34922         * lib/unistdio/u32-u32-snprintf.c: Likewise.
34923         * lib/unistdio/u32-u32-sprintf.c: Likewise.
34924         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
34925         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
34926         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
34927         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
34928         * lib/unistdio/u32-vasnprintf.c: Likewise.
34929         * lib/unistdio/u32-vasprintf.c: Likewise.
34930         * lib/unistdio/u32-vsnprintf.c: Likewise.
34931         * lib/unistdio/u32-vsprintf.c: Likewise.
34932         * lib/unistdio/u8-asnprintf.c: Likewise.
34933         * lib/unistdio/u8-asprintf.c: Likewise.
34934         * lib/unistdio/u8-printf-parse.c: Likewise.
34935         * lib/unistdio/u8-snprintf.c: Likewise.
34936         * lib/unistdio/u8-sprintf.c: Likewise.
34937         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
34938         * lib/unistdio/u8-u8-asprintf.c: Likewise.
34939         * lib/unistdio/u8-u8-snprintf.c: Likewise.
34940         * lib/unistdio/u8-u8-sprintf.c: Likewise.
34941         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
34942         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
34943         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
34944         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
34945         * lib/unistdio/u8-vasnprintf.c: Likewise.
34946         * lib/unistdio/u8-vasprintf.c: Likewise.
34947         * lib/unistdio/u8-vsnprintf.c: Likewise.
34948         * lib/unistdio/u8-vsprintf.c: Likewise.
34949         * lib/unistdio/ulc-asnprintf.c: Likewise.
34950         * lib/unistdio/ulc-asprintf.c: Likewise.
34951         * lib/unistdio/ulc-printf-parse.c: Likewise.
34952         * lib/unistdio/ulc-snprintf.c: Likewise.
34953         * lib/unistdio/ulc-sprintf.c: Likewise.
34954         * lib/unistdio/ulc-vasnprintf.c: Likewise.
34955         * lib/unistdio/ulc-vasprintf.c: Likewise.
34956         * lib/unistdio/ulc-vsnprintf.c: Likewise.
34957         * lib/unistdio/ulc-vsprintf.c: Likewise.
34958         * lib/unistr.h: Likewise.
34959         * lib/unistr/u-cpy-alloc.h: Likewise.
34960         * lib/unistr/u-cpy.h: Likewise.
34961         * lib/unistr/u-endswith.h: Likewise.
34962         * lib/unistr/u-move.h: Likewise.
34963         * lib/unistr/u-set.h: Likewise.
34964         * lib/unistr/u-startswith.h: Likewise.
34965         * lib/unistr/u-stpcpy.h: Likewise.
34966         * lib/unistr/u-stpncpy.h: Likewise.
34967         * lib/unistr/u-strcat.h: Likewise.
34968         * lib/unistr/u-strcpy.h: Likewise.
34969         * lib/unistr/u-strcspn.h: Likewise.
34970         * lib/unistr/u-strdup.h: Likewise.
34971         * lib/unistr/u-strlen.h: Likewise.
34972         * lib/unistr/u-strncat.h: Likewise.
34973         * lib/unistr/u-strncpy.h: Likewise.
34974         * lib/unistr/u-strnlen.h: Likewise.
34975         * lib/unistr/u-strpbrk.h: Likewise.
34976         * lib/unistr/u-strspn.h: Likewise.
34977         * lib/unistr/u-strstr.h: Likewise.
34978         * lib/unistr/u-strtok.h: Likewise.
34979         * lib/unistr/u16-check.c: Likewise.
34980         * lib/unistr/u16-chr.c: Likewise.
34981         * lib/unistr/u16-cmp.c: Likewise.
34982         * lib/unistr/u16-cpy-alloc.c: Likewise.
34983         * lib/unistr/u16-cpy.c: Likewise.
34984         * lib/unistr/u16-endswith.c: Likewise.
34985         * lib/unistr/u16-mblen.c: Likewise.
34986         * lib/unistr/u16-mbsnlen.c: Likewise.
34987         * lib/unistr/u16-mbtouc-aux.c: Likewise.
34988         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
34989         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
34990         * lib/unistr/u16-mbtouc.c: Likewise.
34991         * lib/unistr/u16-mbtoucr.c: Likewise.
34992         * lib/unistr/u16-move.c: Likewise.
34993         * lib/unistr/u16-next.c: Likewise.
34994         * lib/unistr/u16-prev.c: Likewise.
34995         * lib/unistr/u16-set.c: Likewise.
34996         * lib/unistr/u16-startswith.c: Likewise.
34997         * lib/unistr/u16-stpcpy.c: Likewise.
34998         * lib/unistr/u16-stpncpy.c: Likewise.
34999         * lib/unistr/u16-strcat.c: Likewise.
35000         * lib/unistr/u16-strchr.c: Likewise.
35001         * lib/unistr/u16-strcmp.c: Likewise.
35002         * lib/unistr/u16-strcpy.c: Likewise.
35003         * lib/unistr/u16-strcspn.c: Likewise.
35004         * lib/unistr/u16-strdup.c: Likewise.
35005         * lib/unistr/u16-strlen.c: Likewise.
35006         * lib/unistr/u16-strmblen.c: Likewise.
35007         * lib/unistr/u16-strmbtouc.c: Likewise.
35008         * lib/unistr/u16-strncat.c: Likewise.
35009         * lib/unistr/u16-strncmp.c: Likewise.
35010         * lib/unistr/u16-strncpy.c: Likewise.
35011         * lib/unistr/u16-strnlen.c: Likewise.
35012         * lib/unistr/u16-strpbrk.c: Likewise.
35013         * lib/unistr/u16-strrchr.c: Likewise.
35014         * lib/unistr/u16-strspn.c: Likewise.
35015         * lib/unistr/u16-strstr.c: Likewise.
35016         * lib/unistr/u16-strtok.c: Likewise.
35017         * lib/unistr/u16-to-u32.c: Likewise.
35018         * lib/unistr/u16-to-u8.c: Likewise.
35019         * lib/unistr/u16-uctomb-aux.c: Likewise.
35020         * lib/unistr/u16-uctomb.c: Likewise.
35021         * lib/unistr/u32-check.c: Likewise.
35022         * lib/unistr/u32-chr.c: Likewise.
35023         * lib/unistr/u32-cmp.c: Likewise.
35024         * lib/unistr/u32-cpy-alloc.c: Likewise.
35025         * lib/unistr/u32-cpy.c: Likewise.
35026         * lib/unistr/u32-endswith.c: Likewise.
35027         * lib/unistr/u32-mblen.c: Likewise.
35028         * lib/unistr/u32-mbsnlen.c: Likewise.
35029         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
35030         * lib/unistr/u32-mbtouc.c: Likewise.
35031         * lib/unistr/u32-mbtoucr.c: Likewise.
35032         * lib/unistr/u32-move.c: Likewise.
35033         * lib/unistr/u32-next.c: Likewise.
35034         * lib/unistr/u32-prev.c: Likewise.
35035         * lib/unistr/u32-set.c: Likewise.
35036         * lib/unistr/u32-startswith.c: Likewise.
35037         * lib/unistr/u32-stpcpy.c: Likewise.
35038         * lib/unistr/u32-stpncpy.c: Likewise.
35039         * lib/unistr/u32-strcat.c: Likewise.
35040         * lib/unistr/u32-strchr.c: Likewise.
35041         * lib/unistr/u32-strcmp.c: Likewise.
35042         * lib/unistr/u32-strcpy.c: Likewise.
35043         * lib/unistr/u32-strcspn.c: Likewise.
35044         * lib/unistr/u32-strdup.c: Likewise.
35045         * lib/unistr/u32-strlen.c: Likewise.
35046         * lib/unistr/u32-strmblen.c: Likewise.
35047         * lib/unistr/u32-strmbtouc.c: Likewise.
35048         * lib/unistr/u32-strncat.c: Likewise.
35049         * lib/unistr/u32-strncmp.c: Likewise.
35050         * lib/unistr/u32-strncpy.c: Likewise.
35051         * lib/unistr/u32-strnlen.c: Likewise.
35052         * lib/unistr/u32-strpbrk.c: Likewise.
35053         * lib/unistr/u32-strrchr.c: Likewise.
35054         * lib/unistr/u32-strspn.c: Likewise.
35055         * lib/unistr/u32-strstr.c: Likewise.
35056         * lib/unistr/u32-strtok.c: Likewise.
35057         * lib/unistr/u32-to-u16.c: Likewise.
35058         * lib/unistr/u32-to-u8.c: Likewise.
35059         * lib/unistr/u32-uctomb.c: Likewise.
35060         * lib/unistr/u8-check.c: Likewise.
35061         * lib/unistr/u8-chr.c: Likewise.
35062         * lib/unistr/u8-cmp.c: Likewise.
35063         * lib/unistr/u8-cpy-alloc.c: Likewise.
35064         * lib/unistr/u8-cpy.c: Likewise.
35065         * lib/unistr/u8-endswith.c: Likewise.
35066         * lib/unistr/u8-mblen.c: Likewise.
35067         * lib/unistr/u8-mbsnlen.c: Likewise.
35068         * lib/unistr/u8-mbtouc-aux.c: Likewise.
35069         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
35070         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
35071         * lib/unistr/u8-mbtouc.c: Likewise.
35072         * lib/unistr/u8-mbtoucr.c: Likewise.
35073         * lib/unistr/u8-move.c: Likewise.
35074         * lib/unistr/u8-next.c: Likewise.
35075         * lib/unistr/u8-prev.c: Likewise.
35076         * lib/unistr/u8-set.c: Likewise.
35077         * lib/unistr/u8-startswith.c: Likewise.
35078         * lib/unistr/u8-stpcpy.c: Likewise.
35079         * lib/unistr/u8-stpncpy.c: Likewise.
35080         * lib/unistr/u8-strcat.c: Likewise.
35081         * lib/unistr/u8-strchr.c: Likewise.
35082         * lib/unistr/u8-strcmp.c: Likewise.
35083         * lib/unistr/u8-strcpy.c: Likewise.
35084         * lib/unistr/u8-strcspn.c: Likewise.
35085         * lib/unistr/u8-strdup.c: Likewise.
35086         * lib/unistr/u8-strlen.c: Likewise.
35087         * lib/unistr/u8-strmblen.c: Likewise.
35088         * lib/unistr/u8-strmbtouc.c: Likewise.
35089         * lib/unistr/u8-strncat.c: Likewise.
35090         * lib/unistr/u8-strncmp.c: Likewise.
35091         * lib/unistr/u8-strncpy.c: Likewise.
35092         * lib/unistr/u8-strnlen.c: Likewise.
35093         * lib/unistr/u8-strpbrk.c: Likewise.
35094         * lib/unistr/u8-strrchr.c: Likewise.
35095         * lib/unistr/u8-strspn.c: Likewise.
35096         * lib/unistr/u8-strstr.c: Likewise.
35097         * lib/unistr/u8-strtok.c: Likewise.
35098         * lib/unistr/u8-to-u16.c: Likewise.
35099         * lib/unistr/u8-to-u32.c: Likewise.
35100         * lib/unistr/u8-uctomb-aux.c: Likewise.
35101         * lib/unistr/u8-uctomb.c: Likewise.
35102         * lib/unitypes.h: Likewise.
35103         * lib/uniwidth.h: Likewise.
35104         * lib/uniwidth/cjk.h: Likewise.
35105         * lib/uniwidth/u16-strwidth.c: Likewise.
35106         * lib/uniwidth/u16-width.c: Likewise.
35107         * lib/uniwidth/u32-strwidth.c: Likewise.
35108         * lib/uniwidth/u32-width.c: Likewise.
35109         * lib/uniwidth/u8-strwidth.c: Likewise.
35110         * lib/uniwidth/u8-width.c: Likewise.
35111         * lib/uniwidth/width.c: Likewise.
35112
35113 2007-10-07  Bruno Haible  <bruno@clisp.org>
35114
35115         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
35116         The file is still under LGPL (see modules/inttypes).
35117
35118 2007-10-06  Bruno Haible  <bruno@clisp.org>
35119
35120         * modules/trunc (Dependencies): Add 'extensions'.
35121         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
35122         Reported by Ben Pfaff <blp@gnu.org>.
35123
35124 2007-10-06  Bruno Haible  <bruno@clisp.org>
35125
35126         * modules/freopen-tests: New file.
35127         * tests/test-freopen.c: New file.
35128
35129         * modules/fopen-tests: New file.
35130         * tests/test-fopen.c: New file.
35131
35132         * modules/fopen: New file.
35133         * lib/fopen.c: New file.
35134         * m4/fopen.m4: New file.
35135         * modules/freopen: New file.
35136         * lib/freopen.c: New file.
35137         * m4/freopen.m4: New file.
35138         * lib/stdio.in.h (fopen, freopen): New declarations.
35139         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
35140         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
35141         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
35142         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
35143         * doc/functions/fopen.texi: Mention the 'fopen' module.
35144         * doc/functions/freopen.texi: Mention the 'freopen' module.
35145
35146 2007-10-06  Bruno Haible  <bruno@clisp.org>
35147
35148         * modules/open-tests: New file.
35149         * tests/test-open.c: New file.
35150
35151         * modules/open: New file.
35152         * lib/open.c: New file.
35153         * m4/open.m4: New file.
35154         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
35155         lib/open.c does.
35156         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
35157         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
35158         macros.
35159         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
35160         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
35161         REPLACE_OPEN.
35162         * doc/functions/open.texi: Mention the 'open' module.
35163
35164 2007-10-04  Bruno Haible  <bruno@clisp.org>
35165
35166         * modules/ceill-tests: New file.
35167         * tests/test-ceill.c: New file.
35168
35169         * modules/ceill: New file.
35170         * lib/ceill.c: Replace entire file.
35171         * m4/ceill.m4: New file.
35172         * lib/math.in.h (ceill): Replace declaration.
35173         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
35174         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
35175         * doc/functions/ceill.texi: Mention the 'ceill' module.
35176         * modules/mathl (Files): Remove lib/ceill.c.
35177         (Depends-on): Add ceill.
35178
35179 2007-10-04  Bruno Haible  <bruno@clisp.org>
35180
35181         * modules/ceilf-tests: New file.
35182         * tests/test-ceilf.c: New file.
35183
35184         * modules/ceilf: New file.
35185         * lib/ceil.c: New file.
35186         * lib/ceilf.c: New file.
35187         * m4/ceilf.m4: New file.
35188         * lib/math.in.h (ceilf): New declaration.
35189         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
35190         HAVE_DECL_CEILF.
35191         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
35192         HAVE_DECL_CEILF.
35193         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
35194
35195 2007-10-04  Bruno Haible  <bruno@clisp.org>
35196
35197         * modules/floorl-tests: New file.
35198         * tests/test-floorl.c: New file.
35199
35200         * modules/floorl: New file.
35201         * lib/floorl.c: Replace entire file.
35202         * m4/floorl.m4: New file.
35203         * lib/math.in.h (floorl): Replace declaration.
35204         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
35205         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
35206         * doc/functions/floorl.texi: Mention the 'floorl' module.
35207         * modules/mathl (Files): Remove lib/floorl.c.
35208         (Depends-on): Add floorl.
35209
35210 2007-10-04  Bruno Haible  <bruno@clisp.org>
35211
35212         * modules/floorf-tests: New file.
35213         * tests/test-floorf.c: New file.
35214
35215         * modules/floorf: New file.
35216         * lib/floor.c: New file.
35217         * lib/floorf.c: New file.
35218         * m4/floorf.m4: New file.
35219         * lib/math.in.h (floorf): New declaration.
35220         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
35221         HAVE_DECL_FLOORF.
35222         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
35223         HAVE_DECL_FLOORF.
35224         * doc/functions/floorf.texi: Mention the 'floorf' module.
35225
35226 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
35227             Bruno Haible  <bruno@clisp.org>
35228
35229         Advertise for the Git server instead of the CVS server.
35230         * doc/gnulib-intro.texi (Steady Development): Mention the Git
35231         repository instead of the CVS one.
35232         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
35233         about all VCS systems generically.
35234         * doc/gnulib.texi (Introduction): Capitalize `Git'.
35235
35236 2007-10-04  Bruno Haible  <bruno@clisp.org>
35237
35238         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
35239         means.
35240         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
35241
35242 2007-10-04  Bruno Haible  <bruno@clisp.org>
35243
35244         * modules/truncl-tests: New file.
35245         * tests/test-truncl.c: New file.
35246
35247         * modules/truncl: New file.
35248         * lib/truncl.c: New file.
35249         * m4/truncl.m4: New file.
35250         * lib/math.in.h (truncl): New declaration.
35251         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
35252         HAVE_DECL_TRUNCL.
35253         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
35254         HAVE_DECL_TRUNCL.
35255         * doc/functions/truncl.texi: Mention the 'truncl' module.
35256
35257 2007-10-04  Bruno Haible  <bruno@clisp.org>
35258
35259         * modules/truncf-tests: New file.
35260         * tests/test-truncf.c: New file.
35261
35262         * modules/truncf: New file.
35263         * lib/trunc.c: Make paramerizable through USE_* macros.
35264         * lib/truncf.c: New file.
35265         * m4/truncf.m4: New file.
35266         * lib/math.in.h (truncf): New declaration.
35267         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
35268         HAVE_DECL_TRUNCF.
35269         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
35270         HAVE_DECL_TRUNCF.
35271         * doc/functions/truncf.texi: Mention the 'truncf' module.
35272
35273 2007-10-03  Bruno Haible  <bruno@clisp.org>
35274
35275         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
35276         augmentation also for tests modules.
35277         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
35278         * modules/atexit-tests (Makefile.am): Likewise.
35279         * modules/binary-io-tests (Makefile.am): Likewise.
35280         * modules/c-strcase-tests (Makefile.am): Likewise.
35281         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
35282         * modules/canonicalize-tests (Makefile.am): Likewise.
35283         * modules/closein-tests (Makefile.am): Likewise.
35284         * modules/fprintf-posix-tests (Makefile.am): Likewise.
35285         * modules/freadahead-tests (Makefile.am): Likewise.
35286         * modules/fseek-tests (Makefile.am): Likewise.
35287         * modules/fseeko-tests (Makefile.am): Likewise.
35288         * modules/ftell-tests (Makefile.am): Likewise.
35289         * modules/ftello-tests (Makefile.am): Likewise.
35290         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
35291         * modules/isnanl-tests (Makefile.am): Likewise.
35292         * modules/lseek-tests (Makefile.am): Likewise.
35293         * modules/mbscasecmp-tests (Makefile.am): Likewise.
35294         * modules/mbscasestr-tests (Makefile.am): Likewise.
35295         * modules/mbschr-tests (Makefile.am): Likewise.
35296         * modules/mbscspn-tests (Makefile.am): Likewise.
35297         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
35298         * modules/mbspbrk-tests (Makefile.am): Likewise.
35299         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
35300         * modules/mbsrchr-tests (Makefile.am): Likewise.
35301         * modules/mbsspn-tests (Makefile.am): Likewise.
35302         * modules/mbsstr-tests (Makefile.am): Likewise.
35303         * modules/printf-posix-tests (Makefile.am): Likewise.
35304         * modules/snprintf-posix-tests (Makefile.am): Likewise.
35305         * modules/sprintf-posix-tests (Makefile.am): Likewise.
35306         * modules/tsearch-tests (Makefile.am): Likewise.
35307         * modules/uniname/uniname-tests (Makefile.am): Likewise.
35308         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
35309         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
35310         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
35311         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
35312         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
35313         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
35314         * modules/vprintf-posix-tests (Makefile.am): Likewise.
35315         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
35316         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
35317         * modules/xstrtoimax-tests (Makefile.am): Likewise.
35318         * modules/xstrtol-tests (Makefile.am): Likewise.
35319         * modules/xstrtoumax-tests (Makefile.am): Likewise.
35320         * modules/yesno-tests (Makefile.am): Likewise.
35321
35322 2007-10-03  Bruno Haible  <bruno@clisp.org>
35323
35324         * modules/trunc-tests: New file.
35325         * tests/test-trunc.c: New file.
35326
35327         * modules/trunc: New file.
35328         * lib/trunc.c: New file.
35329         * m4/trunc.m4: New file.
35330         * lib/math.in.h (trunc): New declaration.
35331         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
35332         HAVE_DECL_TRUNC.
35333         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
35334         HAVE_DECL_TRUNC.
35335         * doc/functions/trunc.texi: Mention the 'trunc' module.
35336
35337 2007-10-03  Bruno Haible  <bruno@clisp.org>
35338
35339         * tests/test-fpending.c: New file, mostly copied
35340         from coreutils/lib/t-fpending.c.
35341         * modules/fpending-tests: New file.
35342
35343 2007-10-03  Bruno Haible  <bruno@clisp.org>
35344
35345         Port the stdio extensions to QNX (untested).
35346         * lib/fseterr.c (fseterr): Add support for QNX.
35347         * lib/fbufmode.c (fbufmode): Likewise.
35348         * lib/freadable.c (freadable): Likewise.
35349         * lib/fwritable.c (fwritable): Likewise.
35350         * lib/freading.c (freading): Likewise.
35351         * lib/fwriting.c (fwriting): Likewise.
35352         * lib/freadahead.c (freadahed): Likewise.
35353         * lib/fpurge.c (fpurge): Likewise.
35354         * lib/fseeko.c (rpl_fseeko): Likewise.
35355
35356 2007-10-03  Bruno Haible  <bruno@clisp.org>
35357             Jim Meyering  <jim@meyering.net>
35358             Eric Blake  <ebb9@byu.net>
35359
35360         * doc/relocatable.texi: Use @command instead of @program.
35361
35362 2007-10-02  Jim Meyering  <jim@meyering.net>
35363
35364         Perform one more "_.h" -> ".in.h" substitution.
35365         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
35366         instead of unistd_.h here, too.
35367
35368 2007-10-01  Bruno Haible  <bruno@clisp.org>
35369
35370         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
35371         Needed for the alloca-opt module.
35372
35373 2007-09-30  Bruno Haible  <bruno@clisp.org>
35374
35375         * lib/alloca.in.h: Renamed from lib/alloca_.h.
35376         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
35377         alloca_.h.
35378         * lib/argz.in.h: Renamed from lib/argz_.h.
35379         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
35380         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
35381         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
35382         byteswap_.h.
35383         * lib/dirent.in.h: Renamed from lib/dirent_.h.
35384         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
35385         dirent_.h.
35386         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
35387         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
35388         fcntl_.h.
35389         * lib/float.in.h: Renamed from lib/float_.h.
35390         * modules/float (Files, Makefile.am): Use float.in.h instead of
35391         float_.h.
35392         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
35393         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
35394         fnmatch_.h.
35395         * lib/getopt.in.h: Renamed from lib/getopt_.h.
35396         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
35397         getopt_.h.
35398         * lib/glob.in.h: Renamed from lib/glob_.h.
35399         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
35400         * lib/iconv.in.h: Renamed from lib/iconv_.h.
35401         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
35402         iconv_.h.
35403         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
35404         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
35405         inttypes_.h.
35406         * lib/locale.in.h: Renamed from lib/locale_.h.
35407         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
35408         locale_.h.
35409         * lib/math.in.h: Renamed from lib/math_.h.
35410         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
35411         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
35412         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
35413         of netinet_in_.h. Add dependency.
35414         * lib/poll.in.h: Renamed from lib/poll_.h.
35415         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
35416         * lib/search.in.h: Renamed from lib/search_.h.
35417         * modules/search (Files, Makefile.am): Use search.in.h instead of
35418         search_.h.
35419         * lib/signal.in.h: Renamed from lib/signal_.h.
35420         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
35421         _signal.h.
35422         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
35423         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
35424         stdbool_.h.
35425         * lib/stdint.in.h: Renamed from lib/stdint_.h.
35426         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
35427         stdint_.h.
35428         * lib/stdio.in.h: Renamed from lib/stdio_.h.
35429         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
35430         stdio_.h.
35431         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
35432         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
35433         stdlib_.h.
35434         * lib/string.in.h: Renamed from lib/string_.h.
35435         * modules/string (Files, Makefile.am): Use string.in.h instead of
35436         string_.h.
35437         * doc/gnulib-tool.texi (Initial import): Update.
35438         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
35439         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
35440         of sys_select_.h. Add dependency.
35441         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
35442         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
35443         of sys_socket_.h.
35444         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
35445         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
35446         sys_stat_.h.
35447         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
35448         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
35449         sys_time_.h.
35450         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
35451         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
35452         sysexits_.h.
35453         * lib/time.in.h: Renamed from lib/time_.h.
35454         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
35455         * lib/unistd.in.h: Renamed from lib/unistd_.h.
35456         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
35457         unistd_.h.
35458         * lib/wchar.in.h: Renamed from lib/wchar_.h.
35459         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
35460         wchar_.h.
35461         * lib/wctype.in.h: Renamed from lib/wctype_.h.
35462         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
35463         wctype_.h.
35464         * build-aux/bootstrap (slurp): Update.
35465         * lib/.cppi-disable: Update.
35466
35467 2007-09-30  Bruno Haible  <bruno@clisp.org>
35468
35469         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
35470         Needed on BeOS.
35471
35472 2007-09-30  Bruno Haible  <bruno@clisp.org>
35473
35474         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
35475
35476 2007-09-29  Bruno Haible  <bruno@clisp.org>
35477
35478         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
35479
35480 2007-09-29  Bruno Haible  <bruno@clisp.org>
35481
35482         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
35483         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
35484         * build-aux/install-reloc: Compile also areadlink.c.
35485         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
35486
35487 2007-09-29  Bruno Haible  <bruno@clisp.org>
35488
35489         * gnulib-tool (func_emit_initmacro_done): Indentation.
35490
35491 2007-09-29  Bruno Haible  <bruno@clisp.org>
35492
35493         * README: Add CVS checkout update instructions.
35494         Info from Bob Proulx <bob@proulx.com>.
35495
35496 2007-09-28  Eric Blake  <ebb9@byu.net>
35497
35498         Provide move-if-change.
35499         * build-aux/move-if-change: New file, based on best practice
35500         rather than any canonical upstream location.
35501
35502 2007-09-28  Jim Meyering  <jim@meyering.net>
35503
35504         Fix canonicalize loop-detection corner case.
35505         Do not attempt to stat the symlink values stored via seen_triple.
35506         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
35507         on linux-2.6.18, (but not 2.6.22).
35508         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
35509         triple_compare.  The former compares dev,ino,filename, while the latter
35510         would actually stat dirname(filename) when dev and ino were equal.
35511         * lib/hash-triple.c: Install <string.h>.
35512         (STREQ): Define.
35513         (triple_compare_ino_str): New function.
35514         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
35515
35516 2007-09-28  Eric Blake  <ebb9@byu.net>
35517
35518         Enforce that AC_REPLACE_FUNCS files exist.
35519         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
35520         override check for typos.
35521
35522         Fix test-closein on Solaris 10.
35523         * tests/test-closein.c (main): Don't assume stdin can be inherited
35524         closed on all systems.
35525         * tests/test-closein.sh: Likewise.
35526         Reported by Piotr Tarnowski.
35527
35528 2007-09-28  Jim Meyering  <jim@meyering.net>
35529
35530         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
35531
35532 2007-09-27  Jim Meyering  <jim@meyering.net>
35533
35534         canonicalize: Avoid a false-positive cycle failure.
35535         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
35536         Sort.  Remove cycle-check.
35537         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
35538         not cycle-check.h.
35539         (seen_triple): New function.
35540         (canonicalize_filename_mode): Use it instead of cycle-check.
35541         * tests/test-canonicalize.c: Add a test for this bug.
35542         * tests/test-canonicalize.sh: Set up and run the test.
35543
35544         New module, file-set, from coreutils.
35545         * modules/file-set: Define it.
35546         * lib/file-set.c, lib/file-set.h: Implement.
35547
35548         New module, hash-triple, from coreutils.
35549         * modules/hash-triple: Define it.
35550         * lib/hash-triple.c, lib/hash-triple.h: Implement.
35551
35552 2007-09-25  Eric Blake  <ebb9@byu.net>
35553
35554         Fix strerror on Interix.
35555         * lib/string_.h (strerror): Declare replacement.
35556         * doc/functions/strerror.texi (strerror): Document the Interix
35557         shortcoming.
35558         * modules/string (Makefile.am): Support new hooks.
35559         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
35560         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
35561         gl_FUNC_STRERROR_SEPARATE.
35562         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
35563         * lib/strerror.c (rpl_strerror): Provide replacement.
35564         * modules/strerror (Depends-on): Add string.
35565         (configure.ac): Detect use of module.
35566         * tests/test-strerror.c: New file.
35567         * modules/strerror-tests: New test module.
35568         * modules/argp (Depends-on): Add strerror.
35569         * modules/error (Depends-on): Likewise.
35570         Reported by Martin Koeppe.
35571
35572 2007-09-24  Bruno Haible  <bruno@clisp.org>
35573
35574         * README: Update git instructions.
35575
35576 2007-09-24  Eric Blake  <ebb9@byu.net>
35577
35578         Revert fpending breakage from 2007-09-08.
35579         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
35580         __fpending.c.
35581
35582 2007-09-24  Jim Meyering  <jim@meyering.net>
35583
35584         filenamecat.c: Add a test.
35585         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
35586         showing how the function works when DIR is the empty string.
35587
35588 2007-09-21  Simon Josefsson  <simon@josefsson.org>
35589
35590         * tests/test-canonicalize.sh: Turn on executable bit.
35591
35592 2007-09-19  Eric Blake  <ebb9@byu.net>
35593
35594         * README: Update CVS instructions.
35595
35596 2007-09-18  Bruno Haible  <bruno@clisp.org>
35597
35598         * modules/areadlink: New file.
35599         * lib/areadlink.h (areadlink): New declaration.
35600         * lib/areadlink.c: New file, based on lib/xreadlink.c.
35601
35602 2007-09-17  Jim Meyering  <jim@meyering.net>
35603
35604         * lib/savewd.c (ESTALE) [!defined]: Define.
35605         Reported to be required on Interix by Martin Koeppe.
35606
35607 2007-09-17  Bruno Haible  <bruno@clisp.org>
35608
35609         * gnulib-tool (func_version): Use $version.
35610
35611 2007-09-16  Bruno Haible  <bruno@clisp.org>
35612
35613         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
35614         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
35615         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
35616         Reported by Greg Schafer <gschafer@zip.com.au>.
35617
35618 2007-09-15  Bruno Haible  <bruno@clisp.org>
35619
35620         * gnulib-tool (sed): Try a little harder to make bash understand the
35621         alias.
35622         Reported by Bruce Korb <bruce.korb@gmail.com>.
35623
35624 2007-09-13  Eric Blake  <ebb9@byu.net>
35625
35626         * ChangeLog: Remove conflict markers.
35627
35628 2007-09-13  Simon Josefsson  <simon@josefsson.org>
35629
35630         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
35631         Reported by Bruno Haible <bruno@clisp.org>.
35632
35633 2007-09-12  Bruno Haible  <bruno@clisp.org>
35634
35635         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
35636         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
35637         is not defined.
35638
35639 2007-09-12  Eric Blake  <ebb9@byu.net>
35640
35641         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
35642         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
35643         Autoconf definition.
35644         * modules/euidaccess (Depends-on): Add extensions, for
35645         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
35646         * modules/fnmatch (Depends-on): Likewise.
35647         * modules/getaddrinfo (Depends-on): Likewise.
35648         * modules/getdelim (Depends-on): Likewise.
35649         * modules/getline (Depends-on): Likewise.
35650         * modules/getsubopt (Depends-on): Likewise.
35651         * modules/gettext (Depends-on): Likewise.
35652         * modules/group-member (Depends-on): Likewise.
35653         * modules/mbchar (Depends-on): Likewise.
35654         * modules/memmem (Depends-on): Likewise.
35655         * modules/mempcpy (Depends-on): Likewise.
35656         * modules/memrchr (Depends-on): Likewise.
35657         * modules/pagealign_alloc (Depends-on): Likewise.
35658         * modules/readutmp (Depends-on): Likewise.
35659         * modules/stpcpy (Depends-on): Likewise.
35660         * modules/stpncpy (Depends-on): Likewise.
35661         * modules/strchrnul (Depends-on): Likewise.
35662         * modules/strndup (Depends-on): Likewise.
35663         * modules/strsep (Depends-on): Likewise.
35664         * modules/strverscmp (Depends-on): Likewise.
35665         * modules/vasprintf (Depends-on): Likewise.
35666         * modules/wcwidth (Depends-on): Likewise.
35667         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
35668         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
35669         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
35670         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
35671         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
35672         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
35673         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
35674         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
35675         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
35676         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
35677         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
35678         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
35679         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
35680         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
35681         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
35682         * m4/readutmp.m4 (gl_READUTMP): Likewise.
35683         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
35684         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
35685         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
35686         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
35687         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
35688         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
35689         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
35690         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
35691         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
35692         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
35693         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
35694         so that lock.m4 can be used in gettext without extensions module.
35695
35696 2007-09-11  Bruno Haible  <bruno@clisp.org>
35697
35698         * m4/isc-posix.m4: Remove file.
35699         Suggested by Eric Blake.
35700
35701 2007-09-11  Eric Blake  <ebb9@byu.net>
35702
35703         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
35704
35705 2007-09-10  Bruno Haible  <bruno@clisp.org>
35706
35707         * posix-modules: Fix typo in error message.
35708         Reported by Matt <mkraai@beckman.com>.
35709
35710 2007-09-09  Bruno Haible  <bruno@clisp.org>
35711
35712         * doc/functions/getdelim.texi: Update list of platforms lacking the
35713         function.
35714         * doc/functions/getline.texi: Likewise.
35715
35716 2007-09-09  Jim Meyering  <jim@meyering.net>
35717
35718         * lib/hash.c (hash_initialize): Detect calloc failure.
35719         Reported by Bruno Haible.
35720
35721 2007-09-09  Bruno Haible  <bruno@clisp.org>
35722
35723         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
35724         malloc or realloc fails.
35725
35726 2007-09-09  Bruno Haible  <bruno@clisp.org>
35727
35728         * modules/getcwd (Depends-on): Add malloc-posix.
35729         * modules/glob (Depends-on): Likewise.
35730         * modules/putenv (Depends-on): Likewise.
35731         * modules/strdup (Depends-on): Likewise.
35732         * modules/getdelim (Depends-on): Add realloc-posix.
35733         * modules/read-file (Depends-on): Likewise.
35734
35735 2007-09-09  Bruno Haible  <bruno@clisp.org>
35736
35737         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
35738         (gl_FUNC_MALLOC_POSIX): Require it.
35739         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
35740         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
35741         * modules/realloc (Files): Add m4/malloc.m4.
35742         * modules/calloc (Files): Likewise.
35743
35744 2007-09-09  Bruno Haible  <bruno@clisp.org>
35745
35746         * modules/malloc-posix: New file.
35747         * modules/malloc (Depends-on): Add malloc-posix.
35748         * lib/malloc.c: Include errno.h.
35749         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
35750         and a POSIX-compatible malloc into a single function. Set ENOMEM
35751         when returning NULL.
35752         * m4/malloc.m4: New file.
35753         * doc/functions/malloc.texi: Mention the malloc-posix module.
35754         * lib/stdlib_.h (malloc): New declaration.
35755         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
35756         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
35757         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
35758         and HAVE_MALLOC_POSIX.
35759
35760 2007-09-09  Bruno Haible  <bruno@clisp.org>
35761
35762         * modules/realloc-posix: New file.
35763         * modules/realloc (Depends-on): Add realloc-posix.
35764         * lib/realloc.c: Include errno.h.
35765         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
35766         and a POSIX-compatible realloc into a single function. Set ENOMEM
35767         when returning NULL.
35768         * m4/realloc.m4: New file.
35769         * doc/functions/realloc.texi: Mention the realloc-posix module.
35770         * lib/stdlib_.h (realloc): New declaration.
35771         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
35772         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
35773         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
35774         and HAVE_REALLOC_POSIX.
35775
35776 2007-09-09  Bruno Haible  <bruno@clisp.org>
35777
35778         * modules/calloc-posix: New file.
35779         * modules/calloc (Depends-on): Add calloc-posix.
35780         * lib/calloc.c: Include errno.h.
35781         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
35782         and a POSIX-compatible calloc into a single function. Set ENOMEM
35783         when returning NULL.
35784         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
35785         * doc/functions/calloc.texi: Mention the calloc-posix module.
35786         * lib/stdlib_.h (calloc): New declaration.
35787         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
35788         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
35789         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
35790         and HAVE_CALLOC_POSIX.
35791
35792 2007-09-09  Bruno Haible  <bruno@clisp.org>
35793
35794         Allow for modules to show an arbitrary notice.
35795         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
35796         * gnulib-tool: New option --extract-notice.
35797         (func_usage): Document it.
35798         (sed_extract_prog): Update.
35799         (func_get_notice): New function.
35800         (func_modules_notice): New function.
35801         (func_import, func_create_testdir): Invoke it.
35802         Suggested by Jim Meyering.
35803
35804 2007-09-09  Bruno Haible  <bruno@clisp.org>
35805
35806         * gnulib-tool: New options --verbose, --quiet.
35807         (func_usage): Document them.
35808         (verbose): New variable.
35809         (func_execute_command): New function.
35810         (func_import): Don't show the module list and the file list if
35811         $verbose < 0.
35812         (func_create_testdir): Likewise. Use func_execute_command.
35813         (func_create_megatestdir): Use func_execute_command.
35814
35815 2007-09-08  Bruno Haible  <bruno@clisp.org>
35816
35817         * gnulib-tool (func_import): Prefer rsync over wget when available,
35818         for fetching the PO files.
35819
35820 2007-09-08  Bruno Haible  <bruno@clisp.org>
35821
35822         * posix-modules: New file. Portions copied from gnulib-tool.
35823         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
35824
35825 2007-09-08  Jim Meyering  <jim@meyering.net>
35826
35827         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
35828         * lib/fpending.h: Rename from __fpending.h.
35829         * lib/fpending.c: Rename from __fpending.c.
35830         Include "fpending.h", not "__fpending.h".
35831         * lib/__fpending.h, lib/__fpending.c: Remove files.
35832         * modules/fpending (Files): Reflect new file names.
35833         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
35834
35835 2007-09-08  Bruno Haible  <bruno@clisp.org>
35836
35837         * m4/inttypes-h.m4: Remove stub file.
35838
35839 2007-09-07  Simon Josefsson  <simon@josefsson.org>
35840
35841         * doc/headers/stdint.texi: Discuss #include_next issue.
35842
35843 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
35844
35845         * build-aux/bootstrap: Remove obsolete comment about wget --help.
35846
35847 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35848
35849         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
35850         in variable name.
35851
35852 2007-09-03  Jim Meyering  <jim@meyering.net>
35853
35854         New module: git-version-gen.
35855         * modules/git-version-gen: New file.
35856
35857         Import changes from coreutils for bootstrap script.
35858
35859         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
35860
35861         bootstrap: uses rsync to download the .po files
35862         * build-aux/bootstrap (po_download_command_format): New global.
35863         (download_po_files): Use rsync.
35864         (update_po_files): Don't remove .po files after download,
35865         so future rsync runs can take advantage of the copies.
35866
35867         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
35868
35869         Solve the unnecessary-.po-file-regeneration problem once and for all.
35870         * build-aux/bootstrap (download_po_files): New function, renamed from
35871         get_translations.  Now, downloads, but doesn't update LINGUAS.
35872         (update_po_files): New function.
35873
35874         bootstrap: Ignore more.
35875         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
35876         uniwidth to e.g., lib/.gitignore.
35877         (slurp): Handle the sys_stat_.h -> sys mapping, too.
35878
35879         * build-aux/bootstrap: New setting: vc_ignore.
35880         (insert_sorted_if_absent): Create $file if absent.
35881         Adapt to new, possibly empty, list: $vc_ignore.
35882
35883         bootstrap: generate more ignorable names
35884         * build-aux/bootstrap (slurp): When generating ignorable names,
35885         also map .sin to .sed, .gperf to .c, and .y to .c.
35886
35887 2007-09-03  Jim Meyering  <jim@meyering.net>
35888
35889         * build-aux/git-version-gen: New file, from coreutils.  For details, see
35890         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
35891
35892 2007-09-02  Bruno Haible  <bruno@clisp.org>
35893
35894         Fix mis-recognition of 'mcs' on QNX 6.
35895         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
35896         output contains the string "Mono".
35897         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
35898         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
35899
35900 2007-09-01  Bruno Haible  <bruno@clisp.org>
35901
35902         Fix collision between uniwidth/* and linebreak modules.
35903         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
35904         u32_width): Remove declarations.
35905         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
35906         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
35907         streq3, streq2, streq1, streq0): Remove functions.
35908         (STREQ): Remove macro.
35909         (is_cjk_encoding): Remove function.
35910         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
35911         (uc_width, u8_width, u16_width, u32_width): Remove functions.
35912         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
35913         * NEWS: Document the change.
35914
35915 2007-09-01  Bruno Haible  <bruno@clisp.org>
35916
35917         * lib/streq.h: Add double-inclusion guard.
35918
35919 2007-09-01  Karl Berry  <karl@gnu.org>
35920
35921         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
35922
35923 2007-08-28  Jim Meyering  <jim@meyering.net>
35924
35925         Rename mreadlink_with_size to areadlink_with_size.
35926         * NEWS: Document the change.
35927         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
35928         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
35929         * lib/mreadlink.h: Rename this to...
35930         * lib/areadlink.h: ...this.
35931         * modules/mreadlink-with-size: Rename this to...
35932         * modules/areadlink-with-size: ...this.
35933         * lib/canonicalize.c: Reflect the renaming.
35934         * modules/canonicalize: Likewise.
35935
35936 2007-08-26  Bruno Haible  <bruno@clisp.org>
35937
35938         * gnulib-tool (func_import): When deciding which files to remove,
35939         consider also dangling symbolic links.
35940         Reported by Eric Blake.
35941
35942 2007-08-26  Bruno Haible  <bruno@clisp.org>
35943
35944         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
35945
35946 2007-08-23  Simon Josefsson  <simon@josefsson.org>
35947
35948         * lib/readline.c: Don't include getline.h, the prototype is now
35949         found in stdio.h.
35950
35951 2007-08-23  Jim Meyering  <jim@meyering.net>
35952
35953         Getdelim touchup.
35954         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
35955         around the funlockfile call, since funlockfile never sets errno.
35956         Don't set errno upon failed realloc.
35957
35958 2007-08-22  Eric Blake  <ebb9@byu.net>
35959
35960         Getline touchups.
35961         * lib/getdelim.c (getdelim): Revert regression that required *n to
35962         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
35963         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
35964         getdelim, rather than whether implementation is missing.
35965         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
35966         * lib/stdio_.h (getline): Also declare if replacement is
35967         required.
35968         * doc/functions/getdelim.texi: New file.
35969         * doc/functions/getline.texi: Likewise.
35970         * doc/gnulib.texi (Function Substitutes): Add new files.
35971         Reported by Bruno Haible.
35972
35973 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
35974
35975         * users.txt: Add Guile.
35976
35977 2007-08-22  Eric Blake  <ebb9@byu.net>
35978
35979         * tests/test-getdelim.c (main): Use remove, not unlink.
35980         * tests/test-getline.c (main): Likewise.
35981
35982         Move getline and getdelim into stdio.h, per POSIX 200x.
35983         * modules/getline (Files): Remove getline.h.
35984         (Depends-on): Add stdio.
35985         (configure.ac): Add module indicator.
35986         * modules/getdelim (Files): Remove getdelim.h.
35987         (Depends-on): Add stdio.
35988         (configure.ac): Add module indicator.
35989         * modules/stdio (Makefile.am): Work with new indicators.
35990         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
35991         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
35992         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
35993         * lib/getdelim.h: Delete.
35994         * lib/getline.h: Delete.
35995         * lib/stdio_.h (getdelim, getline): Declare.
35996         * modules/getdelim-tests: New module.
35997         * modules/getline-tests: Likewise.
35998         * tests/test-getdelim.c: New file.
35999         * tests/test-getline.c: Likewise.
36000         * NEWS: Document the change.
36001         * lib/getline.c: Update choice of header.
36002         * lib/csharpcomp.c: Likewise.
36003         * lib/getpass.c: Likewise.
36004         * lib/javacomp.c: Likewise.
36005         * lib/javaversion.c: Likewise.
36006         * lib/yesno.c: Likewise.
36007         * lib/getdelim.c: Likewise.
36008         (getdelim): Set errno on failure, and avoid memory leak.
36009
36010 2007-08-19  Bruno Haible  <bruno@clisp.org>
36011
36012         * modules/closein (Depends-on): Add freadahead.
36013         * lib/closein.c: Include freadahead.h.
36014         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
36015         is zero.
36016
36017 2007-08-19  Bruno Haible  <bruno@clisp.org>
36018
36019         * modules/freadahead-tests: New file.
36020         * tests/test-freadahead.sh: New file.
36021         * tests/test-freadahead.c: New file.
36022
36023         * modules/freadahead: New file.
36024         * lib/freadahead.h: New file.
36025         * lib/freadahead.c: New file.
36026         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
36027         fbufmode, fpurge, freadable, fwritable.
36028
36029 2007-08-19  Eric Blake  <ebb9@byu.net>
36030
36031         Test yesno in combination with closein.
36032         * lib/yesno.c (yesno): Document use of stdin.
36033         * modules/yesno-tests (Files): New module.
36034         * tests/test-yesno.c (main): New file.
36035         * tests/test-yesno.sh: Likewise.
36036
36037 2007-08-19  Bruno Haible  <bruno@clisp.org>
36038
36039         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
36040         * lib/fseeko.c (rpl_fseeko): Likewise.
36041         * lib/fseterr.c (fseterr): Likewise.
36042
36043 2007-08-19  Bruno Haible  <bruno@clisp.org>
36044
36045         * tests/test-lseek.c (main): Disable a test for BeOS.
36046         * doc/functions/lseek.texi: Document the BeOS bug.
36047
36048 2007-08-19  Bruno Haible  <bruno@clisp.org>
36049             Eric Blake  <ebb9@byu.net>
36050
36051         * lib/lseek.c: Include <sys/stat.h>.
36052         (rpl_lseek): Add workaround code also for Unix platforms.
36053         Needed for BeOS.
36054         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
36055         * doc/functions/lseek.texi: Document BeOS definiency.
36056
36057 2007-08-18  Bruno Haible  <bruno@clisp.org>
36058
36059         * modules/fstrcmp-tests: New file.
36060         * tests/test-fstrcmp.c: New file.
36061
36062 2007-08-18  Bruno Haible  <bruno@clisp.org>
36063
36064         * modules/fstrcmp: New file, from GNU gettext with modifications.
36065         * lib/fstrcmp.h: New file, from GNU gettext.
36066         * lib/fstrcmp.c: New file, from GNU gettext.
36067         * MODULES.html.sh (String handling): Add fstrcmp.
36068
36069 2007-08-18  Bruno Haible  <bruno@clisp.org>
36070
36071         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
36072         'bool'.
36073         (diag, compareseq): Remove const from the ctxt argument.
36074         (USE_HEURISTIC): Undefine at the end.
36075
36076 2007-08-18  Jim Meyering  <jim@meyering.net>
36077
36078         New file: lib/idcache.h
36079         * NEWS: Mention the addition.
36080         * modules/idcache (Files): Add lib/idcache.h
36081         * lib/idcache.c: Include "idcache.h".
36082         Don't include <sys/types.h>.
36083         Add a FIXME comment.
36084         Move file-scoped "static" declarations to the top.
36085         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
36086
36087 2007-08-17  Bruno Haible  <bruno@clisp.org>
36088         and Paul Eggert  <eggert@cs.ucla.edu>
36089
36090         * MODULES.html.sh: Add diffseq.
36091         * modules/diffseq: New file.
36092         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
36093         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
36094
36095 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
36096
36097         Import changes from coreutils for bootstrap script.
36098
36099         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
36100
36101         * build-aux/bootstrap (slurp): Work even in environments where
36102         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
36103         current code does not slurp files whose names start with ".", and
36104         this looks like it might be a troublesome area.
36105
36106         2007-07-11  Jim Meyering  <jim@meyering.net>
36107
36108         If there's a GPL vN copyright comment, require that N == 3.
36109
36110         2007-07-08  Jim Meyering  <jim@meyering.net>
36111
36112         Run the coreutils-specific code only if tests/Makefile.am.in exists.
36113         * build-aux/bootstrap (mam_template): Move definition out of loop.
36114
36115         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
36116
36117         * build-aux/bootstrap (symlink_to_dir): Rename function from
36118         symlink_to_gnulib.  Add a directory parameter.  Update all
36119         callers.
36120         (cp_mark_as_generated): Also check for -- and link to -- files in
36121         gl/.
36122
36123         2007-07-08  Jim Meyering  <jim@meyering.net>
36124
36125         Adapt to deeper hierarchy in gnulib.
36126         * build-aux/bootstrap (symlink_to_dir): If the destination
36127         directory doesn't exist, create it. This is required at least for
36128         "lib/uniwidth/cjk.h".
36129
36130         2007-05-15  Jim Meyering  <jim@meyering.net>
36131
36132         * build-aux/bootstrap: Now that generated Makefile.am files
36133         are no longer under version control, they must be created at
36134         bootstrap time.
36135
36136 2007-08-14  Ben Pfaff  <blp@gnu.org>
36137
36138         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
36139
36140 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
36141
36142         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
36143         given the changes below.
36144         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
36145         even on hosts that have padding bits beyond the supported 64.
36146
36147 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
36148
36149         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
36150         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
36151         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
36152         depends on it.
36153         (xstrtol_error): Remove.
36154         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
36155         but with a different signature.
36156         (ATTRIBUTE_NORETURN, __attribute__): New macros.
36157         * lib/xstrtol-error.c: Include exitfail.h.
36158         (xstrtol_fatal): New function, with a different signature from the
36159         old xstrtol_error, so that the caller need not worry about passing
36160         in an exit status, or about storage management of the option argument.
36161         (xstrtol_error): Now a static function.  Redo signature to
36162         implement xstrtol_fatal.  Output the correct number of hyphens in
36163         front of the option so that the caller need not worry about
36164         storage management.
36165         (N_): New macro.
36166         (_): Remove; not used now.
36167         * modules/xstrtol: Depend on getopt.
36168         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
36169         of old STRTOL_FATAL_ERROR macro.
36170         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
36171         of test program.
36172         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
36173         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
36174
36175 2007-08-08  Eric Blake  <ebb9@byu.net>
36176
36177         * lib/xstrtol-error.c: Add missing include.
36178
36179         Move xstrtol messages into gnulib domain, when --pobase is used.
36180         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
36181         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
36182         * modules/xstrtol (Files): Distribute new file.
36183         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
36184         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
36185         * tests/test-xstrtol.c: ...into new file.
36186         * tests/test-xstrtoul.c: Also test xstrtoul.
36187         * tests/test-xstrtoimax.c: Also test xstrtoimax.
36188         * tests/test-xstrtoumax.c: Also test xstrtoumax.
36189         * tests/test-xstrtol.sh: Drive the tests.
36190         * tests/test-xstrtoimax.sh: Likewise.
36191         * tests/test-xstrtoumax.sh: Likewise.
36192         * modules/xstrtol-tests: New module.
36193         * modules/xstrtoimax-tests: Likewise.
36194         * modules/xstrtoumax-tests: Likewise.
36195
36196 2007-08-08  Jim Meyering  <jim@meyering.net>
36197
36198         New function: mfile_name_concat.
36199         * lib/filenamecat.c (mfile_name_concat): New function, just like
36200         file_name_concat, but return NULL upon failure rather than exiting
36201         with a diagnostic.
36202         * lib/filenamecat.h: Declare it.
36203
36204 2007-08-07  Bruno Haible  <bruno@clisp.org>
36205
36206         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
36207         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
36208         warning from gcc.
36209         Reported by Eric Blake.
36210
36211 2007-08-07  Simon Josefsson  <simon@josefsson.org>
36212
36213         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
36214         * modules/crypto/arcfour (License): Likewise.
36215         * modules/crypto/des-tests (License): Likewise.
36216         * modules/crypto/gc-arctwo-tests (License): Likewise.
36217         * modules/crypto/gc-des-tests (License): Likewise.
36218         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
36219         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
36220         * modules/crypto/gc-md2-tests (License): Likewise.
36221         * modules/crypto/gc-md4-tests (License): Likewise.
36222         * modules/crypto/gc-md5-tests (License): Likewise.
36223         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
36224         * modules/crypto/gc-rijndael-tests (License): Likewise.
36225         * modules/crypto/gc-sha1-tests (License): Likewise.
36226         * modules/crypto/gc-tests (License): Likewise.
36227         * modules/crypto/hmac-md5 (License): Likewise.
36228         * modules/crypto/hmac-sha1 (License): Likewise.
36229         * modules/crypto/md2-tests (License): Likewise.
36230         * modules/crypto/md4-tests (License): Likewise.
36231         * modules/crypto/md5 (License): Likewise.
36232         * modules/crypto/rijndael (License): Likewise.
36233         * modules/crypto/sha1 (License): Likewise.
36234         * modules/memxor (License): Likewise.
36235
36236 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
36237         and Bruno Haible  <bruno@clisp.org>
36238
36239         * NEWS: Describe interface changes to human, xstrtol.
36240         * lib/human.h: Include <xstrtol.h>.
36241         (human_options): Return enum strtol_error, not int.  Remove
36242         bool arg; take int * instead.
36243         * lib/human.c: Don't include "gettext.h".
36244         (_): Remove; no longer used.
36245         Don't include <xstrtol.h>, since human.h does it.
36246         (human_options): Adjust to abovementioned interface changes.
36247         Do not report error to stderr; that's now the caller's
36248         responsibility.
36249         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
36250         interface change.
36251         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
36252         Str, Argument_type_string.  All uses changed.  Put " argument"
36253         in diagnostics to make them clearer.  Change wording of suffix
36254         message for clarity.
36255         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
36256         Argument_type_string.
36257         (STRTOL_FATAL_WARN): Remove; no longer used.
36258         * modules/human (Depends-on): Remove gettext-h.
36259
36260 2007-08-06  Simon Josefsson  <simon@josefsson.org>
36261
36262         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
36263
36264 2007-07-31  Bruno Haible  <bruno@clisp.org>
36265
36266         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
36267         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
36268         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
36269
36270 2007-07-31  Bruno Haible  <bruno@clisp.org>
36271
36272         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
36273         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
36274
36275 2007-07-30  Bruno Haible  <bruno@clisp.org>
36276
36277         * modules/base64 (License): Use the synonymous term "LGPLv2+".
36278         * modules/c-ctype (License): Likewise.
36279         * modules/c-strcase (License): Likewise.
36280         * modules/check-version (License): Likewise.
36281         * modules/iconv (License): Likewise.
36282         * modules/iconv_open (License): Likewise.
36283         * modules/read-file (License): Likewise.
36284         * modules/striconv (License): Likewise.
36285         * modules/strverscmp (License): Likewise.
36286         * modules/vasprintf (License): Likewise.
36287         * modules/crypto/des (License): Likewise.
36288         * modules/crypto/gc (License): Likewise.
36289         * modules/crypto/gc-arcfour (License): Likewise.
36290         * modules/crypto/gc-arctwo (License): Likewise.
36291         * modules/crypto/gc-des (License): Likewise.
36292         * modules/crypto/gc-hmac-md5 (License): Likewise.
36293         * modules/crypto/gc-hmac-sha1 (License): Likewise.
36294         * modules/crypto/gc-md2 (License): Likewise.
36295         * modules/crypto/gc-md4 (License): Likewise.
36296         * modules/crypto/gc-md5 (License): Likewise.
36297         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
36298         * modules/crypto/gc-random (License): Likewise.
36299         * modules/crypto/gc-rijndael (License): Likewise.
36300         * modules/crypto/gc-sha1 (License): Likewise.
36301         * modules/crypto/md2 (License): Likewise.
36302         * modules/crypto/md4 (License): Likewise.
36303
36304 2007-07-30  Jim Meyering  <jim@meyering.net>
36305
36306         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
36307         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
36308         it has valid stat data.  This bug would cause du not to count the
36309         sizes of inaccessible directories.
36310         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
36311         in <http://bugzilla.redhat.com/250077>.
36312
36313 2007-07-25  Peter O'Gorman  <peter@pogma.com>
36314             Bruno Haible  <bruno@clisp.org>
36315
36316         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
36317         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
36318         #include_next, gives a diagnostic about it, but reports no error in
36319         the exit code.
36320         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
36321
36322 2007-07-24  Ben Pfaff  <blp@gnu.org>
36323
36324         Improve name: "count-one-bits" is better than "popcount".
36325         * MODULES.html.sh: Update name.
36326         * lib/popcount.h: Renamed lib/count-one-bits.h.
36327         (popcount): Renamed count_one_bits.
36328         (popcountl): Renamed count_one_bits_l.
36329         (popcountll): Renamed count_one_bits_ll.
36330         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
36331         * modules/popcount: Renamed module/count-one-bits.
36332         * modules/popcount-tests: Renamed module/count-one-bits-tests.
36333         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
36334
36335 2007-07-23  Ben Pfaff  <blp@gnu.org>
36336
36337         * lib/popcount.h (popcount32): Reduce size of constants, to allow
36338         better code generation, and add U to large constants to avoid
36339         warnings, in non-GCC case.
36340         Suggested by Bruno Haible.
36341
36342 2007-07-23  Ben Pfaff  <blp@gnu.org>
36343
36344         * lib/popcount.h: Use verify_true instead of if...abort.
36345         * modules/popcount: Depend on verify module.
36346         Suggested by Jim Meyering.
36347
36348 2007-07-23  Bruno Haible  <bruno@clisp.org>
36349
36350         * gnulib-tool (func_import): Create a .cvsignore file also when the
36351         directory is not yet in CVS but the toplevel directory is. When
36352         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
36353         Reported by Karl Berry.
36354
36355 2007-07-22  Ben Pfaff  <blp@gnu.org>
36356
36357         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
36358         case.
36359         Suggested by Eric Blake.
36360
36361 2007-07-22  Ben Pfaff  <blp@gnu.org>
36362
36363         New module: popcount.
36364         * MODULES.html.sh: Add popcount.
36365         * modules/popcount: New file.
36366         * modules/popcount-tests: New file.
36367         * tests/test-popcount.c: New file.
36368         * lib/popcount.h: New file.
36369         * m4/popcount.m4: New file.
36370
36371 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
36372
36373         * build-aux/announce-gen: Update to GPLv3.
36374
36375         * build-aux/config.guess: Update from config.
36376
36377 2007-07-21  Bruno Haible  <bruno@clisp.org>
36378
36379         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
36380         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
36381
36382 2007-07-20  Jim Meyering  <jim@meyering.net>
36383
36384         * check-module: Diagnose a self-dependency.
36385
36386 2007-07-19  Bruno Haible  <bruno@clisp.org>
36387
36388         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
36389         empty.
36390         Reported by Eric Blake.
36391
36392 2007-07-18  Bruno Haible  <bruno@clisp.org>
36393
36394         * gnulib-tool: New options --po-base, --po-domain.
36395         (func_usage): Document them.
36396         (pobase, po_domain): New variables.
36397         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
36398         DEFAULT_TEXT_DOMAIN.
36399         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
36400         (func_import): Consider pobase and po_domain. Create a po/ directory.
36401         (func_create_testdir): Set pobase and po_domain to empty.
36402         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
36403         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
36404
36405 2007-07-18  Bruno Haible  <bruno@clisp.org>
36406
36407         * gnulib-tool (func_get_automake_snippet): Synthesize also an
36408         EXTRA_DIST augmentation for files in build-aux/.
36409
36410 2007-07-16  Bruno Haible  <bruno@clisp.org>
36411
36412         * modules/lseek (License): Use the synonymous term "LGPLv2+".
36413         * modules/getdelim (License): Likewise.
36414
36415 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36416
36417         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
36418         * modules/d-type (License): Likewise.
36419         * modules/extensions (License): Likewise.
36420         * modules/fnmatch (License): Likewise.
36421         * modules/fseeko (License): Likewise.
36422         * modules/getaddrinfo (License): Likewise.
36423         * modules/getline (License): Likewise.
36424         * modules/getlogin_r (License): Likewise.
36425         * modules/getpass (License): Likewise.
36426         * modules/gettimeofday (License): Likewise.
36427         * modules/glob (License): Likewise.
36428         * modules/inet_ntop (License): Likewise.
36429         * modules/malloc (License): Likewise.
36430         * modules/malloca (License): Likewise.
36431         * modules/memmem (License): Likewise.
36432         * modules/mempcpy (License): Likewise.
36433         * modules/memset (License): Likewise.
36434         * modules/minmax (License): Likewise.
36435         * modules/mktime (License): Likewise.
36436         * modules/netinet_in (License): Likewise.
36437         * modules/pathmax (License): Likewise.
36438         * modules/poll (License): Likewise.
36439         * modules/regex (License): Likewise.
36440         * modules/snprintf (License): Likewise.
36441         * modules/stdbool (License): Likewise.
36442         * modules/stdint (License): Likewise.
36443         * modules/stdio (License): Likewise.
36444         * modules/strcase (License): Likewise.
36445         * modules/strcasestr (License): Likewise.
36446         * modules/strdup (License): Likewise.
36447         * modules/string (License): Likewise.
36448         * modules/strndup (License): Likewise.
36449         * modules/strnlen (License): Likewise.
36450         * modules/strpbrk (License): Likewise.
36451         * modules/strptime (License): Likewise.
36452         * modules/strsep (License): Likewise.
36453         * modules/sys_select (License): Likewise.
36454         * modules/sys_socket (License): Likewise.
36455         * modules/sys_stat (License): Likewise.
36456         * modules/sys_time (License): Likewise.
36457         * modules/time (License): Likewise.
36458         * modules/time_r (License): Likewise.
36459         * modules/timegm (License): Likewise.
36460         * modules/unistd (License): Likewise.
36461         * modules/vsnprintf (License): Likewise.
36462         * modules/wctype (License): Likewise.
36463
36464 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36465
36466         * modules/argz (License): LGPLv2+.
36467
36468 2007-07-15  Karl Berry  <karl@gnu.org>
36469
36470         * doc/gnulib.texi: revise node structure per new fdl.texi.
36471
36472 2007-07-14  Bruno Haible  <bruno@clisp.org>
36473
36474         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
36475         the output file.
36476         * lib/uniname/uninames.h: Regenerated.
36477
36478 2007-07-14  Karl Berry  <karl@gnu.org>
36479
36480         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
36481         omitting sectioning and index commands.
36482
36483 2007-07-13  Bruno Haible  <bruno@clisp.org>
36484
36485         New gnulib-tool option --more-symlinks.
36486         * gnulib-tool (func_usage): Document --more-symlinks.
36487         (do_copyrights): New variable.
36488         Recognize option --more-symlinks.
36489         (func_import): Don't add a copyright notice transform to
36490         sed_transform_lib_file if do_copyrights is empty.
36491
36492 2007-07-13  Bruno Haible  <bruno@clisp.org>
36493
36494         * lib/vasnprintf.c (decimal_point_char): Define also if
36495         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
36496         && !NEED_PRINTF_DIRECTIVE_A.
36497         Reported by Clemens Koller <clemens.koller@anagramm.de> via
36498         Gary V. Vaughan <gary@gnu.org>.
36499
36500 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
36501
36502         * lib/inttypes_.h: Undo previous change, since it was fixed
36503         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
36504
36505 2007-07-13  Bruno Haible  <bruno@clisp.org>
36506
36507         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
36508         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
36509
36510 2007-07-13  Jim Meyering  <jim@meyering.net>
36511
36512         df: Don't fail for Tru64's "file-on-file mount".
36513         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
36514         so we fall through and use statfs instead.  Details here:
36515         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
36516         Reported by Albert Chin.
36517
36518 2007-07-13  Bruno Haible  <bruno@clisp.org>
36519
36520         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
36521         * modules/configmake (License): Likewise.
36522         * modules/gettext (License): Likewise.
36523         * modules/gettext-h (License): Likewise.
36524         * modules/include_next (License): Likewise.
36525         * modules/link-warning (License): Likewise.
36526         * modules/localcharset (License): Likewise.
36527         * modules/localename (License): Likewise.
36528         * modules/lock (License): Likewise.
36529         * modules/relocatable-lib-lgpl (License): Likewise.
36530         * modules/size_max (License): Likewise.
36531         * modules/vasnprintf (License): Likewise.
36532         * modules/wchar (License): Likewise.
36533         * modules/xsize (License): Likewise.
36534
36535 2007-07-13  Bruno Haible  <bruno@clisp.org>
36536
36537         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
36538         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
36539
36540 2007-07-12  Bruno Haible  <bruno@clisp.org>
36541
36542         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
36543         in the modules files.
36544
36545 2007-07-11  Karl Berry  <karl@gnu.org>
36546
36547         * MODULES.html.sh (func_module): use
36548          sed -e '\|^'"${includefile}"'$|d'
36549          instead of /.../d, to avoid errors on $includefile's containing /.
36550
36551 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
36552
36553         * gnulib-tool (func_import): Avoid duplication of --avoid
36554         statements
36555         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
36556         names to `_' in variable names.
36557
36558 2007-07-10  Eric Blake  <ebb9@byu.net>
36559
36560         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
36561         * NEWS: Document this change.
36562
36563 2007-07-08  Bruno Haible  <bruno@clisp.org>
36564
36565         Update to Unicode 5.0.
36566         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
36567         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
36568         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
36569         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
36570         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
36571         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
36572         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
36573         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
36574         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
36575         U+10A3F, U+1D242..U+1D244.
36576         (nonspacing_table_ind): Update.
36577         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
36578         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
36579
36580 2007-07-08  Bruno Haible  <bruno@clisp.org>
36581
36582         Update to Unicode 5.0.
36583         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
36584         code transform. Extend the name index field of unicode_name_to_code and
36585         unicode_code_to_name from 16 to 24 bits.
36586         * lib/uniname/uniname.c (unicode_character_name,
36587         unicode_name_character): Add the range 0x12xxx to the code transform.
36588         * lib/uniname/uninames.h: Regenerated.
36589         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
36590
36591 2007-07-07  Bruno Haible  <bruno@clisp.org>
36592
36593         * modules/wcwidth-tests: New file.
36594         * tests/test-wcwidth.c: New file.
36595
36596         Work around MacOS X wcwidth() bug.
36597         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
36598         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
36599         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
36600         original wcwidth in non-UTF-8 locales.
36601         * modules/wcwidth (Depends-on): Add localcharset, streq,
36602         uniwidth/width.
36603         * doc/functions/wcwidth.texi: Update.
36604
36605 2007-07-07  Bruno Haible  <bruno@clisp.org>
36606
36607         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
36608         (wcwidth): New declaration.
36609         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
36610         macros.
36611         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
36612         here. Prepare for creating <wchar.h> unconditionally.
36613         * modules/wchar (Depends-on): Add link-warning.
36614         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
36615         REPLACE_WCWIDTH, and GL_LINK_WARNING.
36616         * lib/wcwidth.h: Remove file.
36617         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
36618         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
36619         * modules/wcwidth (Files): Remove lib/wcwidth.h.
36620         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
36621         (Include): Replace wcwidth.h with <wchar.h>.
36622         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
36623         * lib/mbchar.h: Don't include wcwidth.h.
36624         * lib/mbswidth.c: Likewise.
36625         * NEWS: Mention the change.
36626
36627 2007-07-07  Bruno Haible  <bruno@clisp.org>
36628
36629         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
36630         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
36631         definition with an external declaration.
36632         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
36633         defined as a function. Remove AC_C_INLINE requirement.
36634         * modules/wcwidth (Files): Add lib/wcwidth.c.
36635         (Makefile.am): Remove redundant statement.
36636
36637 2007-07-07  Bruno Haible  <bruno@clisp.org>
36638
36639         * MODULES.html.sh (Unicode string functions): Add the new modules.
36640
36641         * tests/uniwidth/test-u32-strwidth.c: New file.
36642         * modules/uniwidth/u32-strwidth-tests: New file.
36643
36644         * lib/uniwidth/u32-strwidth.c: New file.
36645         * modules/uniwidth/u32-strwidth: New file.
36646
36647         * tests/uniwidth/test-u16-strwidth.c: New file.
36648         * modules/uniwidth/u16-strwidth-tests: New file.
36649
36650         * lib/uniwidth/u16-strwidth.c: New file.
36651         * modules/uniwidth/u16-strwidth: New file.
36652
36653         * tests/uniwidth/test-u8-strwidth.c: New file.
36654         * modules/uniwidth/u8-strwidth-tests: New file.
36655
36656         * lib/uniwidth/u8-strwidth.c: New file.
36657         * modules/uniwidth/u8-strwidth: New file.
36658
36659         * tests/uniwidth/test-u32-width.c: New file.
36660         * modules/uniwidth/u32-width-tests: New file.
36661
36662         * lib/uniwidth/u32-width.c: New file.
36663         * modules/uniwidth/u32-width: New file.
36664
36665         * tests/uniwidth/test-u16-width.c: New file.
36666         * modules/uniwidth/u16-width-tests: New file.
36667
36668         * lib/uniwidth/u16-width.c: New file.
36669         * modules/uniwidth/u16-width: New file.
36670
36671         * tests/uniwidth/test-u8-width.c: New file.
36672         * modules/uniwidth/u8-width-tests: New file.
36673
36674         * lib/uniwidth/u8-width.c: New file.
36675         * modules/uniwidth/u8-width: New file.
36676
36677         * tests/uniwidth/test-uc_width.c: New file.
36678         * modules/uniwidth/width-tests: New file.
36679
36680         * lib/uniwidth/width.c: New file, from GNU libiconv.
36681         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
36682         * modules/uniwidth/width: New file.
36683
36684         * lib/uniwidth.h: New file, from GNU libiconv.
36685         * modules/uniwidth/base: New file.
36686
36687 2007-07-07  Bruno Haible  <bruno@clisp.org>
36688
36689         * lib/uniname.h: New file, from GNU gettext.
36690         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
36691         * lib/uniname/uninames.h: New file, from GNU gettext.
36692         * lib/uniname/uniname.c: New file, from GNU gettext.
36693         * tests/uniname/test-uninames.sh: New file.
36694         * tests/uniname/test-uninames.c: New file, from GNU gettext.
36695         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
36696         * modules/uniname/base: New file.
36697         * modules/uniname/uniname: New file.
36698         * modules/uniname/uniname-tests: New file.
36699         * MODULES.html.sh (Unicode string functions): Add the new modules.
36700
36701 2007-07-06  Bruno Haible  <bruno@clisp.org>
36702
36703         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
36704
36705 2007-07-06  Bruno Haible  <bruno@clisp.org>
36706
36707         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
36708         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
36709         includes <cygwin/sys_time.h> which includes <sys/select.h> which
36710         include <sys/time.h>.
36711         Reported by Eric Blake.
36712
36713 2007-07-06  Eric Blake  <ebb9@byu.net>
36714
36715         Fix testing canonicalize on cygwin.
36716         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
36717         Revert patch from 2007-06-19.
36718         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
36719         canonicalize module is also in use.
36720         * tests/test-canonicalize.c: New file.
36721         * tests/test-canonicalize.sh: Likewise.
36722         * modules/canonicalize-tests: Likewise.
36723
36724 2007-07-06  Jim Meyering  <jim@meyering.net>
36725
36726         * lib/getugroups.c (getugroups): Detect getgrent failure.
36727         Adjust comment to reflect reality: this function may return -1.
36728
36729 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
36730
36731         * build-aux/bootstrap (TP_URL,get_translations): Update to use
36732         the new TP address.
36733         (usage): Fix typo
36734         (gnulib_mk): New variable.
36735
36736 2007-07-05  Jim Meyering  <jim@meyering.net>
36737
36738         Don't let endgrent clobber errno, no matter how improbable.
36739         * lib/getugroups.c (getugroups): Save and restore errno around
36740         endgrent call.
36741
36742         Close the group DB even when failing with 2^31 or more members.
36743         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
36744
36745 2007-07-04  Jim Meyering  <jim@meyering.net>
36746
36747         * lib/getugroups.h: New file.
36748         * lib/getugroups.c: Include "getugroups.h".
36749         Remove uses of "register" keyword.
36750         Move local variable, "cp", down into scope where used.
36751         Give "username" parameter the "const" attribute.
36752         * modules/getugroups (Files): Add lib/getugroups.h
36753
36754 2007-07-04  Karl Berry  <karl@gnu.org>
36755
36756         * MODULES.html.sh (func_all_modules): Complete rename of
36757         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
36758
36759 2007-07-02  Bruno Haible  <bruno@clisp.org>
36760
36761         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
36762         mode, when inttypes.h comes from gnulib.
36763         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
36764
36765 2007-07-02  Simon Josefsson  <simon@josefsson.org>
36766
36767         * NEWS: Mention lgpl module name change.
36768
36769         * modules/lgpl-2.1: Renamed from lgpl.
36770
36771         * NEWS: Mention gpl module name change.
36772
36773         * modules/gpl-3.0: New file, based on gpl-2.0.
36774
36775         * modules/gpl-2.0: Renamed from gpl.
36776
36777         * modules/gpl: Fix filename, doc/gpl.texi is now found at
36778         doc/gpl-2.0.texi.
36779
36780 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
36781
36782         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
36783         #define __STDC_LIMIT_MACROS temporarily while including
36784         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
36785         Problem reported by Joel E. Denny in
36786         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
36787
36788 2007-07-01  Bruno Haible  <bruno@clisp.org>
36789
36790         * lib/unistdio.h: New file.
36791         * lib/unistdio/u-asnprintf.h: New file.
36792         * lib/unistdio/u-asprintf.h: New file.
36793         * lib/unistdio/u-printf-args.c: New file.
36794         * lib/unistdio/u-printf-args.h: New file.
36795         * lib/unistdio/u-printf-parse.h: New file.
36796         * lib/unistdio/u-snprintf.h: New file.
36797         * lib/unistdio/u-sprintf.h: New file.
36798         * lib/unistdio/u-vasprintf.h: New file.
36799         * lib/unistdio/u-vsnprintf.h: New file.
36800         * lib/unistdio/u-vsprintf.h: New file.
36801         * lib/unistdio/ulc-asnprintf.c: New file.
36802         * lib/unistdio/ulc-asprintf.c: New file.
36803         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
36804         * lib/unistdio/ulc-printf-parse.c: New file.
36805         * lib/unistdio/ulc-snprintf.c: New file.
36806         * lib/unistdio/ulc-sprintf.c: New file.
36807         * lib/unistdio/ulc-vasnprintf.c: New file.
36808         * lib/unistdio/ulc-vasprintf.c: New file.
36809         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
36810         * lib/unistdio/ulc-vsnprintf.c: New file.
36811         * lib/unistdio/ulc-vsprintf.c: New file.
36812         * lib/unistdio/u8-asnprintf.c: New file.
36813         * lib/unistdio/u8-asprintf.c: New file.
36814         * lib/unistdio/u8-printf-parse.c: New file.
36815         * lib/unistdio/u8-snprintf.c: New file.
36816         * lib/unistdio/u8-sprintf.c: New file.
36817         * lib/unistdio/u8-vasnprintf.c: New file.
36818         * lib/unistdio/u8-vasprintf.c: New file.
36819         * lib/unistdio/u8-vsnprintf.c: New file.
36820         * lib/unistdio/u8-vsprintf.c: New file.
36821         * lib/unistdio/u8-u8-asnprintf.c: New file.
36822         * lib/unistdio/u8-u8-asprintf.c: New file.
36823         * lib/unistdio/u8-u8-snprintf.c: New file.
36824         * lib/unistdio/u8-u8-sprintf.c: New file.
36825         * lib/unistdio/u8-u8-vasnprintf.c: New file.
36826         * lib/unistdio/u8-u8-vasprintf.c: New file.
36827         * lib/unistdio/u8-u8-vsnprintf.c: New file.
36828         * lib/unistdio/u8-u8-vsprintf.c: New file.
36829         * lib/unistdio/u16-asnprintf.c: New file.
36830         * lib/unistdio/u16-asprintf.c: New file.
36831         * lib/unistdio/u16-printf-parse.c: New file.
36832         * lib/unistdio/u16-snprintf.c: New file.
36833         * lib/unistdio/u16-sprintf.c: New file.
36834         * lib/unistdio/u16-vasnprintf.c: New file.
36835         * lib/unistdio/u16-vasprintf.c: New file.
36836         * lib/unistdio/u16-vsnprintf.c: New file.
36837         * lib/unistdio/u16-vsprintf.c: New file.
36838         * lib/unistdio/u16-u16-asnprintf.c: New file.
36839         * lib/unistdio/u16-u16-asprintf.c: New file.
36840         * lib/unistdio/u16-u16-snprintf.c: New file.
36841         * lib/unistdio/u16-u16-sprintf.c: New file.
36842         * lib/unistdio/u16-u16-vasnprintf.c: New file.
36843         * lib/unistdio/u16-u16-vasprintf.c: New file.
36844         * lib/unistdio/u16-u16-vsnprintf.c: New file.
36845         * lib/unistdio/u16-u16-vsprintf.c: New file.
36846         * lib/unistdio/u32-asnprintf.c: New file.
36847         * lib/unistdio/u32-asprintf.c: New file.
36848         * lib/unistdio/u32-printf-parse.c: New file.
36849         * lib/unistdio/u32-snprintf.c: New file.
36850         * lib/unistdio/u32-sprintf.c: New file.
36851         * lib/unistdio/u32-vasnprintf.c: New file.
36852         * lib/unistdio/u32-vasprintf.c: New file.
36853         * lib/unistdio/u32-vsnprintf.c: New file.
36854         * lib/unistdio/u32-vsprintf.c: New file.
36855         * lib/unistdio/u32-u32-asnprintf.c: New file.
36856         * lib/unistdio/u32-u32-asprintf.c: New file.
36857         * lib/unistdio/u32-u32-snprintf.c: New file.
36858         * lib/unistdio/u32-u32-sprintf.c: New file.
36859         * lib/unistdio/u32-u32-vasnprintf.c: New file.
36860         * lib/unistdio/u32-u32-vasprintf.c: New file.
36861         * lib/unistdio/u32-u32-vsnprintf.c: New file.
36862         * lib/unistdio/u32-u32-vsprintf.c: New file.
36863         * tests/unistdio/test-ulc-asnprintf1.c: New file.
36864         * tests/unistdio/test-ulc-asnprintf1.h: New file.
36865         * tests/unistdio/test-ulc-printf1.h: New file.
36866         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
36867         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
36868         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
36869         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
36870         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
36871         * tests/unistdio/test-ulc-vasprintf1.c: New file.
36872         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
36873         * tests/unistdio/test-ulc-vsprintf1.c: New file.
36874         * tests/unistdio/test-u8-asnprintf1.c: New file.
36875         * tests/unistdio/test-u8-asnprintf1.h: New file.
36876         * tests/unistdio/test-u8-printf1.h: New file.
36877         * tests/unistdio/test-u8-vasnprintf1.c: New file.
36878         * tests/unistdio/test-u8-vasnprintf2.c: New file.
36879         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
36880         * tests/unistdio/test-u8-vasnprintf3.c: New file.
36881         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
36882         * tests/unistdio/test-u8-vasprintf1.c: New file.
36883         * tests/unistdio/test-u8-vsnprintf1.c: New file.
36884         * tests/unistdio/test-u8-vsprintf1.c: New file.
36885         * tests/unistdio/test-u16-asnprintf1.c: New file.
36886         * tests/unistdio/test-u16-asnprintf1.h: New file.
36887         * tests/unistdio/test-u16-printf1.h: New file.
36888         * tests/unistdio/test-u16-vasnprintf1.c: New file.
36889         * tests/unistdio/test-u16-vasnprintf2.c: New file.
36890         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
36891         * tests/unistdio/test-u16-vasnprintf3.c: New file.
36892         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
36893         * tests/unistdio/test-u16-vasprintf1.c: New file.
36894         * tests/unistdio/test-u16-vsnprintf1.c: New file.
36895         * tests/unistdio/test-u16-vsprintf1.c: New file.
36896         * tests/unistdio/test-u32-asnprintf1.c: New file.
36897         * tests/unistdio/test-u32-asnprintf1.h: New file.
36898         * tests/unistdio/test-u32-printf1.h: New file.
36899         * tests/unistdio/test-u32-vasnprintf1.c: New file.
36900         * tests/unistdio/test-u32-vasnprintf2.c: New file.
36901         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
36902         * tests/unistdio/test-u32-vasnprintf3.c: New file.
36903         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
36904         * tests/unistdio/test-u32-vasprintf1.c: New file.
36905         * tests/unistdio/test-u32-vsnprintf1.c: New file.
36906         * tests/unistdio/test-u32-vsprintf1.c: New file.
36907         * modules/unistdio/base: New file.
36908         * modules/unistdio/u-printf-args: New file.
36909         * modules/unistdio/ulc-asnprintf: New file.
36910         * modules/unistdio/ulc-asprintf: New file.
36911         * modules/unistdio/ulc-fprintf: New file.
36912         * modules/unistdio/ulc-printf-parse: New file.
36913         * modules/unistdio/ulc-snprintf: New file.
36914         * modules/unistdio/ulc-sprintf: New file.
36915         * modules/unistdio/ulc-vasnprintf: New file.
36916         * modules/unistdio/ulc-vasprintf: New file.
36917         * modules/unistdio/ulc-vfprintf: New file.
36918         * modules/unistdio/ulc-vsnprintf: New file.
36919         * modules/unistdio/ulc-vsprintf: New file.
36920         * modules/unistdio/u8-asnprintf: New file.
36921         * modules/unistdio/u8-asprintf: New file.
36922         * modules/unistdio/u8-printf-parse: New file.
36923         * modules/unistdio/u8-snprintf: New file.
36924         * modules/unistdio/u8-sprintf: New file.
36925         * modules/unistdio/u8-vasnprintf: New file.
36926         * modules/unistdio/u8-vasprintf: New file.
36927         * modules/unistdio/u8-vsnprintf: New file.
36928         * modules/unistdio/u8-vsprintf: New file.
36929         * modules/unistdio/u8-u8-asnprintf: New file.
36930         * modules/unistdio/u8-u8-asprintf: New file.
36931         * modules/unistdio/u8-u8-snprintf: New file.
36932         * modules/unistdio/u8-u8-sprintf: New file.
36933         * modules/unistdio/u8-u8-vasnprintf: New file.
36934         * modules/unistdio/u8-u8-vasprintf: New file.
36935         * modules/unistdio/u8-u8-vsnprintf: New file.
36936         * modules/unistdio/u8-u8-vsprintf: New file.
36937         * modules/unistdio/u16-asnprintf: New file.
36938         * modules/unistdio/u16-asprintf: New file.
36939         * modules/unistdio/u16-printf-parse: New file.
36940         * modules/unistdio/u16-snprintf: New file.
36941         * modules/unistdio/u16-sprintf: New file.
36942         * modules/unistdio/u16-vasnprintf: New file.
36943         * modules/unistdio/u16-vasprintf: New file.
36944         * modules/unistdio/u16-vsnprintf: New file.
36945         * modules/unistdio/u16-vsprintf: New file.
36946         * modules/unistdio/u16-u16-asnprintf: New file.
36947         * modules/unistdio/u16-u16-asprintf: New file.
36948         * modules/unistdio/u16-u16-snprintf: New file.
36949         * modules/unistdio/u16-u16-sprintf: New file.
36950         * modules/unistdio/u16-u16-vasnprintf: New file.
36951         * modules/unistdio/u16-u16-vasprintf: New file.
36952         * modules/unistdio/u16-u16-vsnprintf: New file.
36953         * modules/unistdio/u16-u16-vsprintf: New file.
36954         * modules/unistdio/u32-asnprintf: New file.
36955         * modules/unistdio/u32-asprintf: New file.
36956         * modules/unistdio/u32-printf-parse: New file.
36957         * modules/unistdio/u32-snprintf: New file.
36958         * modules/unistdio/u32-sprintf: New file.
36959         * modules/unistdio/u32-vasnprintf: New file.
36960         * modules/unistdio/u32-vasprintf: New file.
36961         * modules/unistdio/u32-vsnprintf: New file.
36962         * modules/unistdio/u32-vsprintf: New file.
36963         * modules/unistdio/u32-u32-asnprintf: New file.
36964         * modules/unistdio/u32-u32-asprintf: New file.
36965         * modules/unistdio/u32-u32-snprintf: New file.
36966         * modules/unistdio/u32-u32-sprintf: New file.
36967         * modules/unistdio/u32-u32-vasnprintf: New file.
36968         * modules/unistdio/u32-u32-vasprintf: New file.
36969         * modules/unistdio/u32-u32-vsnprintf: New file.
36970         * modules/unistdio/u32-u32-vsprintf: New file.
36971         * modules/unistdio/ulc-asnprintf-tests: New file.
36972         * modules/unistdio/ulc-vasnprintf-tests: New file.
36973         * modules/unistdio/ulc-vasprintf-tests: New file.
36974         * modules/unistdio/ulc-vsnprintf-tests: New file.
36975         * modules/unistdio/ulc-vsprintf-tests: New file.
36976         * modules/unistdio/u8-asnprintf-tests: New file.
36977         * modules/unistdio/u8-vasnprintf-tests: New file.
36978         * modules/unistdio/u8-vasprintf-tests: New file.
36979         * modules/unistdio/u8-vsnprintf-tests: New file.
36980         * modules/unistdio/u8-vsprintf-tests: New file.
36981         * modules/unistdio/u16-asnprintf-tests: New file.
36982         * modules/unistdio/u16-vasnprintf-tests: New file.
36983         * modules/unistdio/u16-vasprintf-tests: New file.
36984         * modules/unistdio/u16-vsnprintf-tests: New file.
36985         * modules/unistdio/u16-vsprintf-tests: New file.
36986         * modules/unistdio/u32-asnprintf-tests: New file.
36987         * modules/unistdio/u32-vasnprintf-tests: New file.
36988         * modules/unistdio/u32-vasprintf-tests: New file.
36989         * modules/unistdio/u32-vsnprintf-tests: New file.
36990         * modules/unistdio/u32-vsprintf-tests: New file.
36991         * MODULES.html.sh (Unicode string functions): Add the new modules.
36992
36993 2007-07-01  Bruno Haible  <bruno@clisp.org>
36994
36995         * lib/sprintf.c (sprintf): Limit the available length estimation,
36996         to avoid address wraparound.
36997         * lib/vsprintf.c (vsprintf): Likewise.
36998         * modules/sprintf-posix (Dependencies): Add stdint.
36999         * modules/vsprintf-posix (Dependencies): Likewise.
37000
37001 2007-07-01  Bruno Haible  <bruno@clisp.org>
37002
37003         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
37004         Windows PATH as well. Conservative double-quoting. Comments.
37005
37006 2007-07-01  Bruno Haible  <bruno@clisp.org>
37007             Eric Blake  <ebb9@byu.net>
37008             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37009
37010         * gnulib-tool (self_abspathname): Fix algorithm to cope with
37011         empty components in $PATH, denoting '.'.
37012
37013 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37014
37015         * gnulib-tool: Fix indentation.
37016         (func_create_megatestdir): Likewise.
37017         Report by Bruno Haible.
37018
37019 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37020
37021         Sync from Automake.
37022         * build-aux/gnupload: Fix shell portability issues with for loops.
37023         Report by Karl Berry.
37024
37025 2007-06-29  Simon Josefsson  <simon@josefsson.org>
37026
37027         * build-aux/maint.mk (POURL): Use translationproject.org.
37028
37029 2007-06-27  Simon Josefsson  <simon@josefsson.org>
37030             Bruno Haible  <bruno@clisp.org>
37031
37032         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
37033         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
37034         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
37035         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
37036         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
37037
37038 2007-06-27  Bruno Haible  <bruno@clisp.org>
37039
37040         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
37041         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
37042
37043 2007-06-26  Karl Berry  <karl@gnu.org>
37044
37045         * MODULES.html.sh: remove xreadlink-with-size.
37046
37047 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
37048
37049         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
37050         method that I hope also handles the double-include problem noted
37051         by Bruno Haible in
37052         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
37053
37054 2007-06-23  Bruno Haible  <bruno@clisp.org>
37055
37056         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
37057         Don't let the 'mostlyclean' target fail if the last subdirectory could
37058         not be removed.
37059         Reported by Karl Berry.
37060
37061 2007-06-23  Bruno Haible  <bruno@clisp.org>
37062
37063         * gnulib-tool (echo): Add a speedier workaround for ksh.
37064         * tests/test-echo.sh: Likewise.
37065
37066 2007-06-23  Bruno Haible  <bruno@clisp.org>
37067
37068         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
37069         * tests/test-echo.sh: Likewise.
37070
37071 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37072
37073         * gnulib-tool (IFS): Initialize early, so we don't set it to
37074         empty later.
37075         (self_abspathname): Rewrite algorithm to set it, reindent.
37076         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
37077         (func_create_megatestdir): Merge some sed scripts.
37078
37079 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
37080
37081         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
37082         exposed by Sun Studio 11 cc on Solaris 8.
37083
37084 2007-06-22  Bruno Haible  <bruno@clisp.org>
37085
37086         * gnulib-tool (echo): Ensure the echo primitive does not interpret
37087         backslashes.
37088         * tests/test-echo.sh: New file.
37089
37090 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37091
37092         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
37093         simplify `sed_replace_build_aux' scripts, they are portable but
37094         echoing them with `echo' is not.
37095         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
37096
37097 2007-06-21  Karl Berry  <karl@gnu.org>
37098
37099         * config/srclist.txt: guess we can't handle the licenses via
37100         srclist at the moment.
37101
37102 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
37103
37104         * MODULES.html.sh: Add include_next.
37105         * modules/include_next: New file.
37106
37107 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
37108
37109         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
37110         INCLUDE_NEXT.
37111         (gl_CHECK_NEXT_HEADERS): New macro.
37112         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
37113         the obsolescent gl_ABSOLUTE_HEADER.
37114         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
37115         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
37116         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
37117         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
37118         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
37119         * m4/math_h.m4 (gl_MATH_H): Likewise.
37120         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
37121         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
37122         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
37123         * m4/stdint.m4 (gl_STDINT_H): Likewise.
37124         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
37125         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
37126         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
37127         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37128         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
37129         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
37130         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
37131         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
37132         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
37133         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
37134         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
37135         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
37136         * m4/inttypes.m4 (gl_INTTYPES_H): Define
37137         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
37138         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
37139         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
37140         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
37141         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
37142         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
37143         * lib/float_.h: Likewise.
37144         * lib/inttypes_.h: Likewise.
37145         * lib/math_.h: Likewise.
37146         * lib/search_.h: Likewise.
37147         * lib/signal_.h: Likewise.
37148         * lib/stdint_.h: Likewise.
37149         * lib/stdio_.h: Likewise.
37150         * lib/stdlib_.h: Likewise.
37151         * lib/string_.h: Likewise.
37152         * lib/sys_stat_.h: Likewise.
37153         * lib/sys_time_.h: Likewise.
37154         * lib/time_.h: Likewise.
37155         * lib/unistd_.h: Likewise.
37156         * lib/wchar_.h: Likewise.
37157         * lib/wctype_.h: Likewise.
37158         * lib/dirent_.h: Likewise.
37159         * lib/iconv_.h: Likewise.
37160         * lib/locale_.h: Likewise.
37161         * lib/netinet_in_.h: Likewise.
37162         * lib/sys_select_.h: Likewise.
37163         * lib/sys_socket_.h: Likewise.
37164         * lib/sysexits_.h: Likewise.
37165         * modules/fcntl (Depends-on): Depend on include_next, not
37166         absolute_header.
37167         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
37168         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
37169         * modules/fchdir: Likewise.
37170         * modules/float: Likewise.
37171         * modules/iconv_open: Likewise.
37172         * modules/inttypes: Likewise.
37173         * modules/locale: Likewise.
37174         * modules/math: Likewise.
37175         * modules/netinet_in: Likewise.
37176         * modules/search: Likewise.
37177         * modules/signal: Likewise.
37178         * modules/stdint: Likewise.
37179         * modules/stdio: Likewise.
37180         * modules/stdlib: Likewise.
37181         * modules/string: Likewise.
37182         * modules/sys_select: Likewise.
37183         * modules/sys_socket: Likewise.
37184         * modules/sys_stat: Likewise.
37185         * modules/sys_time: Likewise.
37186         * modules/sysexits: Likewise.
37187         * modules/time: Likewise.
37188         * modules/unistd: Likewise.
37189         * modules/wchar: Likewise.
37190         * modules/wctype: Likewise.
37191         * modules/sys_stat: Change maintainer to "all".
37192         * modules/unistd: Likewise.
37193
37194 2007-06-20  Karl Berry  <karl@gnu.org>
37195
37196         * config/srclist.txt: track www changes in license files.
37197
37198 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
37199
37200         * build-aux/bootstrap: Remove stray dot.
37201         Make sure build_aux settings are honored when linking
37202         gnulib_extra_files.
37203
37204 2007-06-19  Eric Blake  <ebb9@byu.net>
37205
37206         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
37207         Allow compilation on cygwin.
37208
37209 2007-06-19  Jim Meyering  <jim@meyering.net>
37210
37211         xreadlink-with-size: Remove module.  No longer used.
37212         Ex-callers now use xreadlink or mreadlink-with-size.
37213         * modules/xreadlink-with-size: Remove module.
37214         * lib/xreadlink-with-size.c: Remove file.
37215         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
37216         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
37217         just before the function definition *is* accurate.
37218
37219         Eliminate one way canonicalize_filename_mode could exit.
37220         * lib/canonicalize.c (canonicalize_filename_mode):
37221         Use mreadlink_with_size, not xreadlink_with_size.
37222
37223 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
37224
37225         Detect porting problems to FreeBSD/arm, which has time_t wider than
37226         long int.  Original problem reported for GNU diff by Xin Li in
37227         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
37228         * modules/getdate (Depends-on): Add intprops, verify.
37229         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
37230         is an integer type no wider than long int.
37231
37232 2007-06-18  Jim Meyering  <jim@meyering.net>
37233
37234         New module: mreadlink-with-size.
37235         * MODULES.html.sh: Add mreadlink-with-size.
37236         * modules/mreadlink-with-size: New module
37237         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
37238         not xreadlink-with-size.
37239         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
37240
37241 2007-06-16  Bruno Haible  <bruno@clisp.org>
37242
37243         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
37244         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
37245         Reported by Gary V. Vaughan <gary@gnu.org>.
37246
37247 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
37248
37249         Revamp lchown so that it lives in unistd.h where it belongs.
37250         * lib/lchown.h: Remove.
37251         * lib/dirchownmod.c: Don't include lib/lchown.h.
37252         * lib/fchownat.c: Likewise.
37253         * lib/openat.c: Likewise.
37254         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
37255         does not follow symlinks.
37256         (EOPNOTSUPP): Define if not defined.
37257         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
37258         is defined to 0.
37259         (lchown): New decl.
37260         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
37261         Do not check for lchown decl.
37262         Set REPLACE_LCHOWN.
37263         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
37264         REPLACE_LCHOWN.
37265         * modules/chown: Make it clear it follows symlinks.
37266         * modules/lchown: Make it clear it doesn't follow symlinks.
37267         (Files): Remove lib/lchown.h
37268         (Depends-on): Add unistd.
37269         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
37270         (Include): Include <unistd.h>, not "lchown.h".
37271         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
37272         REPLACE_LCHOWN.
37273
37274 2007-06-15  Jim Meyering  <jim@meyering.net>
37275
37276         Change license (GPL to LGPL) of fsusage and dependents.
37277         * modules/fsusage (License): Change to LGPL.
37278         * modules/full-read (License): Likewise.
37279         * modules/full-write (License): Likewise.
37280         * modules/safe-read (License): Likewise.
37281         * modules/safe-write (License): Likewise.
37282
37283 2007-06-14  Ben Pfaff  <blp@gnu.org>
37284
37285         Missing part of allocsa -> malloca transition.
37286         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
37287         gl_MALLOCA.
37288
37289 2007-06-12  Bruno Haible  <bruno@clisp.org>
37290
37291         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
37292         to ia64, x86_64, i386.
37293         Reported by Eric Blake.
37294
37295 2007-06-12  Bruno Haible  <bruno@clisp.org>
37296
37297         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
37298         cross-compiling to x86_64.
37299
37300 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
37301
37302         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
37303         glitch reported by Ralf Wildenhues in
37304         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
37305
37306         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
37307         Vin Shelton.
37308
37309 2007-06-11  Bruno Haible  <bruno@clisp.org>
37310
37311         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
37312         replacement string.
37313         Reported by Eric Blake.
37314
37315 2007-06-10  Bruno Haible  <bruno@clisp.org>
37316
37317         Prepare vasnprintf code for use with Unicode strings.
37318         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
37319         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
37320         TYPE_U32_STRING.
37321         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
37322         a_u32_string variants.
37323         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
37324         * lib/printf-args.c: Don't include config.h and the specification
37325         header if PRINTF_FETCHARGS is already defined.
37326         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
37327         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
37328         TYPE_U16_STRING, TYPE_U32_STRING.
37329         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
37330         u16_directive, u16_directives, u32_directive, u32_directives): New
37331         types.
37332         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
37333         New declarations.
37334         * lib/printf-parse.c: Don't include config.h and the specification
37335         header if PRINTF_PARSE is already defined. Eliminate the set of
37336         parameters for WIDE_CHAR_VERSION; the user of this file must provide
37337         them now. Include c-ctype.h.
37338         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
37339         directive and CHAR_T_ONLY_ASCII.
37340         * lib/vasnprintf.c: Don't include config.h and the specification header
37341         if VASNPRINTF is already defined.
37342         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
37343         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
37344         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
37345         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
37346         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
37347         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
37348         code accordingly.
37349         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
37350         pad_ourselves also in this case, with the 'c' and 's' directives, and
37351         with a different notion of "width".
37352         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
37353
37354 2007-06-10  Bruno Haible  <bruno@clisp.org>
37355
37356         * modules/unistr/u32-mbsnlen: New file.
37357         * lib/unistr/u32-mbsnlen.c: New file.
37358
37359         * modules/unistr/u16-mbsnlen: New file.
37360         * lib/unistr/u16-mbsnlen.c: New file.
37361
37362         * modules/unistr/u8-mbsnlen: New file.
37363         * lib/unistr/u8-mbsnlen.c: New file.
37364
37365         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
37366         declarations.
37367
37368 2007-06-10  Bruno Haible  <bruno@clisp.org>
37369
37370         * lib/string_.h (mbsnlen): New declaration.
37371         * lib/mbsnlen.c: New file.
37372         * m4/mbsnlen.m4: New file.
37373         * modules/mbsnlen: New file.
37374         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
37375         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
37376         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
37377
37378 2007-06-10  Bruno Haible  <bruno@clisp.org>
37379
37380         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
37381
37382 2007-06-10  Bruno Haible  <bruno@clisp.org>
37383
37384         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
37385         * lib/mbuiter.h: Likewise.
37386
37387 2007-06-10  Bruno Haible  <bruno@clisp.org>
37388
37389         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
37390         declaration.
37391
37392 2007-06-10  Karl Berry  <karl@gnu.org>
37393
37394         * config/srclist.txt: remove gettext entries, Bruno prefers
37395         to update individually.
37396
37397 2007-06-10  Bruno Haible  <bruno@clisp.org>
37398
37399         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
37400         'maxlen'. Ensure only length + width bytes are allocated, not
37401         length + 1 + width.
37402
37403 2007-06-09  Bruno Haible  <bruno@clisp.org>
37404
37405         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
37406         (CHAR_T): Remove macro.
37407         (VASNPRINTF): Update.
37408
37409 2007-06-09  Bruno Haible  <bruno@clisp.org>
37410
37411         * MODULES.html.sh (Unicode string functions): Add the new modules.
37412
37413         * modules/uniconv/u32-conv-to-enc: New file.
37414         * lib/uniconv/u32-conv-to-enc.c: New file.
37415         * modules/uniconv/u32-conv-to-enc-tests: New file.
37416         * tests/uniconv/test-u32-conv-to-enc.c: New file.
37417
37418         * modules/uniconv/u16-conv-to-enc: New file.
37419         * lib/uniconv/u16-conv-to-enc.c: New file.
37420         * lib/uniconv/u-conv-to-enc.h: New file.
37421         * modules/uniconv/u16-conv-to-enc-tests: New file.
37422         * tests/uniconv/test-u16-conv-to-enc.c: New file.
37423
37424         * modules/uniconv/u8-conv-to-enc: New file.
37425         * lib/uniconv/u8-conv-to-enc.c: New file.
37426         * modules/uniconv/u8-conv-to-enc-tests: New file.
37427         * tests/uniconv/test-u8-conv-to-enc.c: New file.
37428
37429         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
37430         u32_conv_to_encoding): New declarations.
37431
37432 2007-06-09  Bruno Haible  <bruno@clisp.org>
37433
37434         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
37435
37436 2007-06-09  Bruno Haible  <bruno@clisp.org>
37437
37438         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
37439         * modules/malloca: Renamed from modules/allocsa, updated.
37440         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
37441         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
37442         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
37443         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
37444         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
37445         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
37446         * modules/xmalloca: Renamed from modules/xallocsa, updated.
37447         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
37448         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
37449         * modules/c-strcasestr (Depends-on): Update.
37450         * lib/c-strcasestr.c: Update.
37451         * modules/c-strstr (Depends-on): Update.
37452         * lib/c-strstr.c: Update.
37453         * modules/canonicalize-lgpl (Depends-on): Update.
37454         * lib/canonicalize-lgpl.c: Update.
37455         * modules/clean-temp (Depends-on): Update.
37456         * lib/clean-temp.c: Update.
37457         * modules/csharpcomp (Depends-on): Update.
37458         * lib/csharpcomp.c: Update.
37459         * modules/csharpexec (Depends-on): Update.
37460         * lib/csharpexec.c: Update.
37461         * modules/javacomp (Depends-on): Update.
37462         * lib/javacomp.c: Update.
37463         * modules/javaexec (Depends-on): Update.
37464         * lib/javaexec.c: Update.
37465         * modules/mbscasestr (Depends-on): Update.
37466         * lib/mbscasestr.c: Update.
37467         * modules/mbsstr (Depends-on): Update.
37468         * lib/mbsstr.c: Update.
37469         * modules/setenv (Depends-on): Update.
37470         * lib/setenv.c: Update.
37471         * modules/strcasestr (Depends-on): Update.
37472         * lib/strcasestr.c: Update.
37473         * modules/striconveha (Depends-on): Update.
37474         * lib/striconveha.c: Update.
37475         * modules/relocatable-prog-wrapper (Files): Update.
37476         * lib/relocwrapper.c: Update.
37477         * build-aux/install-reloc: Update.
37478         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
37479
37480 2007-06-08  Bruno Haible  <bruno@clisp.org>
37481
37482         Port to uClibc.
37483         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
37484         * lib/fpurge.c (fpurge): Likewise.
37485         * lib/freading.c (freading): Likewise.
37486         * lib/fseeko.c (rpl_fseeko): Likewise.
37487         * lib/fseterr.c (fseterr): Likewise.
37488         * lib/fwriting.c (fwriting): Likewise.
37489         * tests/test-fflush.c (main): Avoid a failure on uClibc.
37490
37491 2007-06-08  Bruno Haible  <bruno@clisp.org>
37492
37493         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
37494         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
37495         * modules/gettext (Files): Add m4/intlmacosx.m4.
37496
37497 2007-06-07  Bruno Haible  <bruno@clisp.org>
37498
37499         * modules/localename-tests: New file.
37500         * tests/test-localename.c: New file.
37501
37502         New module 'localename'.
37503         * lib/localename.h: New file.
37504         * lib/localename.c: New file, from GNU gettext.
37505         * m4/localename.m4: New file.
37506         * modules/localename: New file.
37507
37508 2007-06-07  Bruno Haible  <bruno@clisp.org>
37509
37510         Work around the lack of <wchar.h> on some builds of uClibc.
37511         * doc/headers/wchar.texi: Update.
37512         * lib/wchar_.h: Include <wchar.h> only if it exists.
37513         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
37514         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
37515         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
37516         doesn't exist.
37517         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
37518         * modules/mbfile (Depends-on): Add wchar.
37519         * modules/mbiter (Depends-on): Likewise.
37520         * modules/mbuiter (Depends-on): Likewise.
37521         Reported by Simon Josefsson.
37522
37523 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
37524
37525         Work around problem reported by Steven M. Schweda in
37526         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
37527         Tru64 5.1B with the Compaq compiler environment installed declares
37528         an 'isblank' function but does not define it in the C library.
37529         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
37530         * lib/regex_internal.h (isblank): Likewise.
37531         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
37532         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
37533
37534 2007-06-05  Bruno Haible  <bruno@clisp.org>
37535
37536         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
37537         ia64.
37538         * modules/printf-safe: New file.
37539         * modules/fprintf-posix (Depends-on): Add printf-safe.
37540         * modules/printf-posix (Depends-on): Likewise.
37541         * modules/snprintf-posix (Depends-on): Likewise.
37542         * modules/sprintf-posix (Depends-on): Likewise.
37543         * modules/vasnprintf-posix (Depends-on): Likewise.
37544         * modules/vasprintf-posix (Depends-on): Likewise.
37545         * modules/vfprintf-posix (Depends-on): Likewise.
37546         * modules/vprintf-posix (Depends-on): Likewise.
37547         * modules/vsnprintf-posix (Depends-on): Likewise.
37548         * modules/vsprintf-posix (Depends-on): Likewise.
37549         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
37550         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
37551         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
37552         "no" on i386, x86_64, ia64.
37553         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
37554         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
37555         on i386, x86_64, ia64.
37556         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
37557         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
37558         on i386, x86_64, ia64.
37559         * tests/test-vasnprintf-posix.c: Include float.h.
37560         (LDBL80_WORDS): New macro.
37561         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
37562         on i386, x86_64, ia64.
37563         * tests/test-vasprintf-posix.c: Include float.h.
37564         (LDBL80_WORDS): New macro.
37565         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
37566         on i386, x86_64, ia64.
37567         * tests/test-snprintf-posix.c: Include float.h.
37568         * tests/test-sprintf-posix.c: Likewise.
37569         * tests/test-vsnprintf-posix.c: Likewise.
37570         * tests/test-vsprintf-posix.c: Likewise.
37571
37572 2007-06-05  Bruno Haible  <bruno@clisp.org>
37573
37574         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
37575         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
37576         non-IEEE numbers on i386, x86_64, ia64.
37577         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
37578         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
37579         * tests/test-isnanl.h: Include float.h.
37580         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
37581
37582 2007-06-05  Bruno Haible  <bruno@clisp.org>
37583
37584         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
37585         also the %a / %A. Handle the %a / %A code before this extra handling.
37586
37587 2007-06-05  Bruno Haible  <bruno@clisp.org>
37588
37589         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
37590         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
37591
37592 2007-06-05  Bruno Haible  <bruno@clisp.org>
37593
37594         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
37595         typo in variable name.
37596
37597 2007-06-05  Eric Blake  <ebb9@byu.net>
37598
37599         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
37600         Reported by Simon Josefsson.
37601
37602 2007-06-04  Bruno Haible  <bruno@clisp.org>
37603
37604         Avoid test failures on some PowerPC platforms.
37605         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
37606         Define differently for PowerPC.
37607         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
37608         Reported by Gary V. Vaughan <gary@gnu.org>.
37609
37610 2007-06-02  Bruno Haible  <bruno@clisp.org>
37611
37612         Fix test-stdint failure on FreeBSD/ia64.
37613         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
37614         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
37615         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
37616         * doc/headers/stdint.texi: Update.
37617
37618 2007-06-01  Bruno Haible  <bruno@clisp.org>
37619
37620         * tests/test-binary-io.c (main): Pass a third argument to open().
37621         Reported by Gary V. Vaughan <gary@gnu.org>.
37622
37623 2007-06-01  Bruno Haible  <bruno@clisp.org>
37624
37625         * doc/functions/frexpl.texi: Update for mingw.
37626
37627 2007-06-01  Bruno Haible  <bruno@clisp.org>
37628
37629         * tests/test-lseek.c (main): Disable test of errno for invalid third
37630         argument.
37631         * doc/functions/lseek.texi: Update.
37632         Reported by Gary V. Vaughan <gary@gnu.org>.
37633
37634 2007-05-28  Bruno Haible  <bruno@clisp.org>
37635
37636         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
37637
37638 2007-05-31  Eric Blake  <ebb9@byu.net>
37639
37640         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
37641         cross compiling.
37642
37643 2007-05-30  Eric Blake  <ebb9@byu.net>
37644         and Bruno Haible  <bruno@clisp.org>
37645
37646         Work around mingw test failures exposed by m4-1.4.9b.
37647         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
37648         * tests/test-unistd.c: Disable uid_t and git_t tests for the
37649         moment.
37650
37651 2007-05-30  Bruno Haible  <bruno@clisp.org>
37652
37653         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
37654         assuming that they are closed. Needed on HP-UX 11.
37655
37656 2007-05-29  Bruno Haible  <bruno@clisp.org>
37657
37658         Fix a problem with #include_next.
37659         * lib/dirent_.h: Split the double-inclusion guard.
37660         * lib/fcntl_.h: Likewise.
37661         * lib/float_.h: Likewise.
37662         * lib/iconv_.h: Likewise.
37663         * lib/inttypes_.h: Likewise.
37664         * lib/locale_.h: Likewise.
37665         * lib/math_.h: Likewise.
37666         * lib/netinet_in_.h: Likewise.
37667         * lib/search_.h: Likewise.
37668         * lib/signal_.h: Likewise.
37669         * lib/stdint_.h: Likewise.
37670         * lib/stdio_.h: Likewise.
37671         * lib/stdlib_.h: Likewise.
37672         * lib/string_.h: Likewise.
37673         * lib/sys_select_.h: Likewise.
37674         * lib/sys_socket_.h: Likewise.
37675         * lib/sys_stat_.h: Likewise.
37676         * lib/sys_time_.h: Likewise.
37677         * lib/sysexits_.h: Likewise.
37678         * lib/time_.h: Likewise.
37679         * lib/unistd_.h: Likewise.
37680         * lib/wchar_.h: Likewise.
37681         * lib/wctype_.h: Likewise.
37682
37683 2007-05-29  Bruno Haible  <bruno@clisp.org>
37684
37685         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
37686         for the moment.
37687
37688 2007-05-29  Bruno Haible  <bruno@clisp.org>
37689
37690         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
37691         invocation.
37692         Reported by Eric Blake.
37693
37694 2007-05-29  Bruno Haible  <bruno@clisp.org>
37695
37696         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
37697         compiling case.
37698
37699 2007-05-29  Eric Blake  <ebb9@byu.net>
37700             Bruno Haible  <bruno@clisp.org>
37701
37702         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
37703         cross compiles.
37704
37705 2007-05-28  Eric Blake  <ebb9@byu.net>
37706
37707         * modules/closein-tests (test_closein_LDADD): Support test on
37708         cygwin with libtool.
37709
37710 2007-05-28  Bruno Haible  <bruno@clisp.org>
37711
37712         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
37713         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
37714         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
37715         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
37716         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
37717         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
37718         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
37719         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
37720         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
37721
37722 2007-05-28  Eric Blake  <ebb9@byu.net>
37723
37724         Unconditionally include <config.h> in unit tests.
37725         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
37726         * tests/test-allocsa.c, tests/test-arcfour.c,
37727         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
37728         tests/test-array_list.c, tests/test-array_oset.c,
37729         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
37730         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
37731         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
37732         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
37733         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
37734         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
37735         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
37736         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
37737         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
37738         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
37739         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
37740         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
37741         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
37742         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
37743         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
37744         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
37745         test-md5.c, test-memmem.c, test-printf-posix.c,
37746         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
37747         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
37748         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
37749         test-strcasestr.c, test-striconv.c, test-striconveh.c,
37750         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
37751         test-vasnprintf-posix2.c, test-vasnprintf.c,
37752         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
37753         test-vfprintf-posix.c, test-vprintf-posix.c,
37754         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
37755         test-xvasprintf.c: Likewise.
37756
37757 2007-05-28  Bruno Haible  <bruno@clisp.org>
37758
37759         * gnulib-tool (func_import): Remember the --with-tests command-line
37760         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
37761         Reported by Eric Blake.
37762
37763 2007-05-28  Bruno Haible  <bruno@clisp.org>
37764
37765         * modules/ftell-tests: New file.
37766         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
37767         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
37768
37769         * lib/ftell.c: New file.
37770         * modules/ftell: New file.
37771         * m4/ftell.m4: New file.
37772         * doc/functions/ftell.texi: Update.
37773         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
37774         REPLACE_FTELL.
37775         * lib/stdio_.h (rpl_ftell): New declaration.
37776         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
37777         REPLACE_FTELL.
37778
37779 2007-05-28  Eric Blake  <ebb9@byu.net>
37780
37781         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
37782
37783 2007-05-28  Bruno Haible  <bruno@clisp.org>
37784
37785         * modules/fseek-tests: New file.
37786         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
37787         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
37788
37789         * lib/fseek.c: New file.
37790         * modules/fseek: New file.
37791         * m4/fseek.m4: New file.
37792         * doc/functions/fseek.texi: Update.
37793         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
37794         REPLACE_FSEEK.
37795         * lib/stdio_.h (rpl_fseek): New declaration.
37796         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
37797         REPLACE_FSEEK.
37798
37799 2007-05-28  Bruno Haible  <bruno@clisp.org>
37800
37801         * lib/stdio_.h (fflush): More comments.
37802
37803 2007-05-28  Bruno Haible  <bruno@clisp.org>
37804
37805         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
37806         runtime test.
37807
37808 2007-05-28  Eric Blake  <ebb9@byu.net>
37809
37810         Improve lseek module.
37811         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
37812         * lib/unistd_.h (lseek): Scale back link warning message.
37813         * tests/test-lseek.c: Beef up test.
37814         * tests/test-lseek.sh: Exercise more facets of lseek.
37815         Reported by Bruno Haible.
37816
37817 2007-05-28  Bruno Haible  <bruno@clisp.org>
37818
37819         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
37820         to define.
37821
37822 2007-05-27  Bruno Haible  <bruno@clisp.org>
37823
37824         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
37825
37826 2007-05-27  Bruno Haible  <bruno@clisp.org>
37827
37828         * modules/openmp: New file.
37829         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
37830         Noah Misch.
37831
37832 2007-05-26  Bruno Haible  <bruno@clisp.org>
37833
37834         * modules/chdir-long (Depends-on): Add fchdir.
37835         * modules/chdir-safer (Depends-on): Likewise.
37836         * modules/fts (Depends-on): Likewise.
37837         * modules/fts-lgpl (Depends-on): Likewise.
37838         * modules/openat (Depends-on): Likewise.
37839         * modules/savewd (Depends-on): Likewise.
37840
37841 2007-05-24  Eric Blake  <ebb9@byu.net>
37842
37843         Fix lseek on mingw.
37844         * modules/lseek: New module.
37845         * m4/lseek.m4: New file.
37846         * lib/lseek.c: New file.
37847         * modules/lseek-tests: New file.
37848         * tests/test-lseek.c: New file.
37849         * tests/test-lseek.sh: New file.
37850         * MODULES.html.sh: Document lseek module.
37851         * modules/fflush (Depends-on): Add lseek, fseeko.
37852         * modules/fseeko (Depends-on): Likewise.
37853         * modules/ftello (Depends-on): Likewise.
37854         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
37855         broken.
37856         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
37857         broken.
37858         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
37859         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
37860         * lib/ftello.c (rpl_ftello): Likewise.
37861         * tests/test-fseeko.c (main): Test this.
37862         * tests/test-fseeko.sh: Likewise.
37863         * tests/test-ftello.c (main): Likewise.
37864         * tests/test-ftello.sh: Likewise.
37865         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
37866         implies replacing fseek.
37867         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
37868         HAVE_FTELLO.
37869         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
37870         * modules/unistd (Makefile.am): Likewise.
37871         * lib/unistd_.h (lseek): Declare a replacement.
37872         * doc/functions/lseek.texi (lseek): Document this fix.
37873         * doc/functions/fseek.texi (fseek): Likewise.
37874         * doc/functions/ftell.texi (ftell): Likewise.
37875
37876 2007-05-24  Bruno Haible  <bruno@clisp.org>
37877
37878         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
37879         in the printed representation of a NaN.
37880         * tests/test-vasprintf-posix.c (test_function): Likewise.
37881         * tests/test-snprintf-posix.h (test_function): Likewise.
37882         * tests/test-sprintf-posix.h (test_function): Likewise.
37883         Reported by Eric Blake.
37884
37885 2007-05-23  Eric Blake  <ebb9@byu.net>
37886
37887         Fix fseeko/ftello on cygwin 1.5.24.
37888         * doc/functions/fseeko.texi (fseeko): Document the fix.
37889         * doc/functions/ftello.texi (ftello): Document the fix.
37890         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
37891         * doc/functions/stdout.text (stdout): New file.
37892         * doc/functions/stderr.text (stderr): New file.
37893         * doc/gnulib.texi (Function Substitutes): Use new files.
37894         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
37895         prior to 1.7.0.
37896         * tests/test-ftello.c (main): Likewise for ftello.
37897         * tests/test-fseeko.sh: New file.
37898         * tests/test-ftello.sh: New file.
37899         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
37900         with seekable stdin.
37901         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
37902         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
37903         (gl_REPLACE_FSEEKO): New macro.
37904         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
37905         * modules/fseeko (Files): Distribute fseeko.c.
37906         * modules/ftello (Files): Distribute ftello.c.
37907         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
37908         mode.
37909         * lib/ftello.c (rpl_ftello): New file.
37910         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
37911         fseeko, ftello.
37912         (gl_STDIN_LARGE_OFFSET): New macro.
37913         * modules/stdio (Makefile.am): Perform the replacement.
37914         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
37915
37916 2007-05-23  Bruno Haible  <bruno@clisp.org>
37917
37918         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
37919         GNULIB_POSIXCHECK is defined.
37920
37921 2007-05-21  Bruno Haible  <bruno@clisp.org>
37922
37923         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
37924         Check also the output for NaN arguments. When cross-compiling, guess
37925         no on IRIX.
37926         * lib/vasnprintf.c: Update comments.
37927         * tests/test-vasnprintf-posix.c (strisnan): New function.
37928         (test_function): Use it.
37929         * tests/test-vasprintf-posix.c (strisnan): New function.
37930         (test_function): Use it.
37931         * tests/test-snprintf-posix.h (strisnan): New function.
37932         (test_function): Use it.
37933         * tests/test-sprintf-posix.h (strisnan): New function.
37934         (test_function): Use it.
37935         Reported by Eric Blake.
37936
37937 2007-05-20  Bruno Haible  <bruno@clisp.org>
37938
37939         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
37940         numbers that fails on BeOS.
37941         * doc/functions/frexpl.texi: Update.
37942
37943 2007-05-20  Jim Meyering  <jim@meyering.net>
37944
37945         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
37946         forced upon us by glibc-2.6.
37947
37948 2007-05-20  Bruno Haible  <bruno@clisp.org>
37949
37950         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
37951         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
37952         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
37953         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
37954         NEED_PRINTF_INFINITE.
37955         (is_infinitel): New function.
37956         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
37957         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
37958         gl_PREREQ_VASNPRINTF_INFINITE.
37959         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
37960         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
37961         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
37962         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
37963         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
37964         gl_PREREQ_VASNPRINTF_INFINITE.
37965         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
37966         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37967         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37968         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37969         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
37970         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37971         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37972         * doc/functions/fprintf.texi: Update.
37973         * doc/functions/printf.texi: Update.
37974         * doc/functions/snprintf.texi: Update.
37975         * doc/functions/sprintf.texi: Update.
37976         * doc/functions/vfprintf.texi: Update.
37977         * doc/functions/vprintf.texi: Update.
37978         * doc/functions/vsnprintf.texi: Update.
37979         * doc/functions/vsprintf.texi: Update.
37980
37981 2007-05-20  Bruno Haible  <bruno@clisp.org>
37982
37983         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
37984         was not found in libc.
37985         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
37986
37987 2007-05-20  Bruno Haible  <bruno@clisp.org>
37988
37989         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
37990         printed as "-nan" instead of "nan".
37991         * tests/test-vasprintf-posix.c (test_function): Likewise.
37992         * tests/test-snprintf-posix.h (test_function): Likewise.
37993         * tests/test-sprintf-posix.h (test_function): Likewise.
37994         Needed for HP-UX 11.
37995
37996 2007-05-20  Jim Meyering  <jim@meyering.net>
37997
37998         Fix buggy test for the fchownat-deref bug.
37999         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
38000         symlink required for the run-test.  Without it, this test would
38001         always declare that fchownat doesn't work, and client code would
38002         unnecessarily use the replacement function with fixed libc.
38003         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
38004         Reported by Greg Schafer.
38005
38006 2007-05-19  Bruno Haible  <bruno@clisp.org>
38007
38008         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
38009         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
38010         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
38011         Needed for IRIX 6.5 and Solaris 2.5.1.
38012
38013 2007-05-19  Bruno Haible  <bruno@clisp.org>
38014
38015         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
38016         (test_function): Skip tests involving -0.0 on platforms where
38017         -0.0 = 0.0.
38018         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
38019         (test_function): Skip tests involving -0.0 on platforms where
38020         -0.0 = 0.0.
38021         * tests/test-snprintf-posix.h (have_minus_zero): New function.
38022         (test_function): Skip tests involving -0.0 on platforms where
38023         -0.0 = 0.0.
38024         * tests/test-sprintf-posix.h (have_minus_zero): New function.
38025         (test_function): Skip tests involving -0.0 on platforms where
38026         -0.0 = 0.0.
38027         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
38028         tests.
38029         * tests/test-printf-posix.h (test_function): Likewise.
38030         * tests/test-printf-posix.output: Remove all -0.0 related results.
38031         Needed for IRIX 6.5.
38032
38033 2007-05-19  Bruno Haible  <bruno@clisp.org>
38034
38035         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
38036         printed as "nan0x7fffffff" instead of "nan".
38037         * tests/test-vasprintf-posix.c (test_function): Likewise.
38038         * tests/test-snprintf-posix.h (test_function): Likewise.
38039         * tests/test-sprintf-posix.h (test_function): Likewise.
38040         * tests/test-fprintf-posix.h (NaN): Remove macro.
38041         (test_function): Remove all NaN related tests.
38042         * tests/test-printf-posix.h (NaN): Remove macro.
38043         (test_function): Remove all NaN related tests.
38044         * tests/test-printf-posix.output: Remove all NaN related results.
38045         Needed for IRIX 6.5.
38046
38047 2007-05-19  Bruno Haible  <bruno@clisp.org>
38048
38049         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
38050         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
38051
38052 2007-05-19  Bruno Haible  <bruno@clisp.org>
38053
38054         * lib/float_.h: New file.
38055         * m4/float_h.m4: New file.
38056         * modules/float: New file.
38057         * modules/isnanl (Dependencies): Add float.
38058         * modules/isnanl-nolibm (Dependencies): Likewise.
38059         * modules/mathl (Dependencies): Likewise.
38060         * modules/printf-frexpl (Dependencies): Likewise.
38061         * modules/signbit (Dependencies): Likewise.
38062         * modules/vasnprintf (Dependencies): Likewise.
38063         * doc/headers/float.texi: Update.
38064
38065 2007-05-19  Jim Meyering  <jim@meyering.net>
38066
38067         * lib/utimens.c (gl_futimens): Rename from futimens,
38068         now that glibc-2.6 declares futimens.
38069         * lib/utimens.h: Likewise.
38070
38071 2007-05-19  Bruno Haible  <bruno@clisp.org>
38072
38073         Avoid test failures on mingw.
38074         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
38075         * tests/test-printf-posix.sh: Likewise.
38076         * tests/test-vfprintf-posix.sh: Likewise.
38077         * tests/test-vprintf-posix.sh: Likewise.
38078
38079 2007-05-19  Bruno Haible  <bruno@clisp.org>
38080
38081         Fix *printf result for NaN, Inf, -0.0 on mingw.
38082         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
38083         * lib/vasnprintf.c: Include math.h and isnan.h.
38084         (is_infinite_or_zero): New function.
38085         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
38086         values in the %f, %F, %e, %E, %g, %G directives.
38087         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
38088         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
38089         gl_PRINTF_INFINITE and test its result. Invoke
38090         gl_PREREQ_VASNPRINTF_INFINITE.
38091         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
38092         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
38093         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
38094         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
38095         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
38096         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38097         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
38098         * doc/functions/fprintf.texi: Update.
38099         * doc/functions/printf.texi: Update.
38100         * doc/functions/snprintf.texi: Update.
38101         * doc/functions/sprintf.texi: Update.
38102         * doc/functions/vfprintf.texi: Update.
38103         * doc/functions/vprintf.texi: Update.
38104         * doc/functions/vsnprintf.texi: Update.
38105         * doc/functions/vsprintf.texi: Update.
38106
38107 2007-05-19  Bruno Haible  <bruno@clisp.org>
38108
38109         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
38110         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
38111         Instead of multiplying with 10^k, set extra_zeroes to k.
38112         (scale10_round_long_double): Remove function.
38113
38114 2007-05-18  Bruno Haible  <bruno@clisp.org>
38115
38116         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
38117         introduced on 2007-05-06.
38118
38119 2007-05-18  Bruno Haible  <bruno@clisp.org>
38120
38121         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
38122         %g directives.
38123         * tests/test-vasprintf-posix.c (test_function): Likewise.
38124         * tests/test-snprintf-posix.h (test_function): Likewise.
38125         * tests/test-sprintf-posix.h (test_function): Likewise.
38126
38127 2007-05-18  Bruno Haible  <bruno@clisp.org>
38128
38129         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
38130         (strmatch): New function.
38131         (test_function): Test the %f directive on numbers of various exponents.
38132         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
38133         (strmatch): New function.
38134         (test_function): Test the %f directive on numbers of various exponents.
38135         * tests/test-snprintf-posix.h (strmatch): New function.
38136         (test_function): Test the %f directive on numbers of various exponents.
38137         * tests/test-sprintf-posix.h (strmatch): New function.
38138         (test_function): Test the %f directive on numbers of various exponents.
38139         * tests/test-snprintf-posix.c (SIZEOF): New macro.
38140         * tests/test-sprintf-posix.c (SIZEOF): New macro.
38141         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
38142         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
38143
38144 2007-05-18  Bruno Haible  <bruno@clisp.org>
38145
38146         Add support for 'long double' number output.
38147         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
38148         * lib/vasnprintf.c: Include math.h and float+.h.
38149         (mp_limb_t): New type.
38150         (GMP_LIMB_BITS): New macro.
38151         (mp_twolimb_t): New type.
38152         (GMP_TWOLIMB_BITS): New macro.
38153         (mpn_t): New type.
38154         (multiply, divide, convert_to_decimal, decode_long_double,
38155         scale10_round_long_double, scale10_round_decimal_long_double,
38156         floorlog10l): New functions.
38157         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
38158         for the %f, %F, %e, %E, %g, %G directives.
38159         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
38160         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
38161         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
38162         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
38163         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
38164         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
38165         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
38166         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
38167         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
38168         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38169         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
38170         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
38171         * modules/snprintf-posix (Depends-on): Likewise.
38172         * modules/sprintf-posix (Depends-on): Likewise.
38173         * modules/vasnprintf-posix (Depends-on): Likewise.
38174         * modules/vasprintf-posix (Depends-on): Likewise.
38175         * modules/vfprintf-posix (Depends-on): Likewise.
38176         * modules/vsnprintf-posix (Depends-on): Likewise.
38177         * modules/vsprintf-posix (Depends-on): Likewise.
38178         * modules/vasnprintf (Files): Add lib/float+.h.
38179         * doc/functions/fprintf.texi: Update.
38180         * doc/functions/printf.texi: Update.
38181         * doc/functions/snprintf.texi: Update.
38182         * doc/functions/sprintf.texi: Update.
38183         * doc/functions/vfprintf.texi: Update.
38184         * doc/functions/vprintf.texi: Update.
38185         * doc/functions/vsnprintf.texi: Update.
38186         * doc/functions/vsprintf.texi: Update.
38187
38188 2007-05-18  Bruno Haible  <bruno@clisp.org>
38189
38190         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
38191
38192 2007-05-18  Bruno Haible  <bruno@clisp.org>
38193
38194         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
38195         for printing 64-bit integers. Needed for mingw.
38196
38197 2007-05-18  Bruno Haible  <bruno@clisp.org>
38198
38199         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
38200         gl_FUNC_FREXPL_WORKS.
38201         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
38202
38203 2007-05-18  Bruno Haible  <bruno@clisp.org>
38204
38205         * modules/frexpl-nolibm-tests: New file.
38206
38207         * modules/frexpl-nolibm: New file.
38208         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
38209
38210 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
38211
38212         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
38213         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
38214         GCC 4.2, which otherwise issues a lot of warnings.
38215         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
38216         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
38217         Likewise.
38218         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
38219         * modules/iconv_open (iconv.h): Likewise.
38220         * modules/locale (locale.h): Likewise.
38221         * modules/netinet_in (netinet/in.h): Likewise.
38222         * modules/sys_select (sys_select.h): Likewise.
38223         * modules/sys_socket (sys/socket.h): Likewise.
38224         * modules/sys_stat (sys/stat.h): Likewise.
38225         * modules/sysexits (sysexits.h): Likewise.
38226         * modules/unistd (unistd.h): Likewise.
38227
38228 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38229
38230         * modules/closein-tests (Makefile.am): Distribute
38231         `test-closein.sh'.
38232
38233 2007-05-17  Bruno Haible  <bruno@clisp.org>
38234
38235         * tests/test-printf-posix.output: Renamed from
38236         tests/test-fprintf-posix.out.
38237         * modules/fprintf-posix-tests: Update.
38238         * modules/printf-posix-tests: Update.
38239         * modules/vfprintf-posix-tests: Update.
38240         * modules/vprintf-posix-tests: Update.
38241         * tests/test-fprintf-posix.sh: Update.
38242         * tests/test-printf-posix.sh: Update.
38243         * tests/test-vfprintf-posix.sh: Update.
38244         * tests/test-vprintf-posix.sh: Update.
38245         Reported by Ralf Wildenhues.
38246
38247 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
38248
38249         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
38250         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
38251         GCC 4.2, which otherwise issues a lot of warnings.
38252         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
38253         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
38254         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
38255         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
38256         it should no longer be needed.
38257         * lib/string_.h: Likewise.
38258         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
38259         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
38260         * modules/inttypes (inttypes.h): Likewise.
38261         * modules/math (math.h): Likewise.
38262         * modules/search (search.h): Likewise.
38263         * modules/signal (signal.h): Likewise.
38264         * modules/stdint (stdint.h): Likewise.
38265         * modules/stdio (stdio.h): Likewise.
38266         * modules/stdlib (stdlib.h): Likewise.
38267         * modules/string (string.h): Likewise.
38268         * modules/sys_time (sys/time.h): Likewise.
38269         * modules/time (time.h): Likewise.
38270         * modules/wchar (wchar.h): Likewise.
38271         * modules/wctype (wtype.h): Likewise.
38272
38273 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
38274
38275         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
38276
38277 2007-05-13  Bruno Haible  <bruno@clisp.org>
38278
38279         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
38280         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
38281         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
38282         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
38283         (gl_PREREQ_STRTOK_R): Don't require it here.
38284
38285 2007-05-13  Bruno Haible  <bruno@clisp.org>
38286
38287         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
38288         when used in C++ mode.
38289
38290 2007-05-12  Bruno Haible  <bruno@clisp.org>
38291
38292         * lib/linebuffer.h: Tweak doc.
38293         * lib/linebuffer.c: Likewise.
38294
38295 2007-05-12  James Youngman  <jay@gnu.org>
38296
38297         * lib/linebuffer.c (readlinebuffer_delim): New function,
38298         like readlinebuffer, but use a caller-specified delimiter.
38299         (readlinebuffer): Just call readlinebuffer_delim with '\n'
38300         as the delimiter.
38301         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
38302
38303 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
38304
38305         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
38306         * modules/openat (Files): Remove openat-die.c.
38307         (Depends-on): Add openat-die.
38308         * modules/openat-die: New module.
38309
38310 2007-05-06  Bruno Haible  <bruno@clisp.org>
38311
38312         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
38313         Update with info about Cygwin.
38314         * doc/functions/fprintf.texi: Update.
38315         * doc/functions/printf.texi: Update.
38316         * doc/functions/snprintf.texi: Update.
38317         * doc/functions/sprintf.texi: Update.
38318         * doc/functions/vfprintf.texi: Update.
38319         * doc/functions/vprintf.texi: Update.
38320         * doc/functions/vsnprintf.texi: Update.
38321         * doc/functions/vsprintf.texi: Update.
38322         Reported by Eric Blake.
38323
38324 2007-05-06  Bruno Haible  <bruno@clisp.org>
38325
38326         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
38327         padding ourselves for the floating-point directives.
38328         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
38329         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
38330         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
38331         gl_PRINTF_FLAG_ZERO and test its result. Invoke
38332         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
38333         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
38334         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
38335         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
38336         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
38337         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
38338         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38339         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
38340         * tests/test-snprintf-posix.h (test_function): Also check the width
38341         and some flags in the %f directive.
38342         * tests/test-sprintf-posix.h (test_function): Likewise.
38343         * tests/test-vasnprintf-posix.c (test_function): Likewise.
38344         * tests/test-vasprintf-posix.c (test_function): Likewise.
38345         * doc/functions/fprintf.texi: Update.
38346         * doc/functions/printf.texi: Update.
38347         * doc/functions/snprintf.texi: Update.
38348         * doc/functions/sprintf.texi: Update.
38349         * doc/functions/vfprintf.texi: Update.
38350         * doc/functions/vprintf.texi: Update.
38351         * doc/functions/vsnprintf.texi: Update.
38352         * doc/functions/vsprintf.texi: Update.
38353
38354 2007-05-06  Bruno Haible  <bruno@clisp.org>
38355
38356         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
38357         pass the ' flag character to sprintf or snprintf.
38358         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
38359         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
38360         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
38361         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
38362         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
38363         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
38364         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
38365         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
38366         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
38367         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
38368         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38369         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
38370         * tests/test-snprintf-posix.h (test_function): Also check the grouping
38371         flag.
38372         * tests/test-sprintf-posix.h (test_function): Likewise.
38373         * tests/test-vasnprintf-posix.c (test_function): Likewise.
38374         * tests/test-vasprintf-posix.c (test_function): Likewise.
38375         * doc/functions/fprintf.texi: Update.
38376         * doc/functions/printf.texi: Update.
38377         * doc/functions/snprintf.texi: Update.
38378         * doc/functions/sprintf.texi: Update.
38379         * doc/functions/vfprintf.texi: Update.
38380         * doc/functions/vprintf.texi: Update.
38381         * doc/functions/vsnprintf.texi: Update.
38382         * doc/functions/vsprintf.texi: Update.
38383
38384 2007-05-01  Bruno Haible  <bruno@clisp.org>
38385
38386         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
38387
38388 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
38389
38390         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
38391         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
38392
38393 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
38394
38395         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
38396         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
38397         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
38398
38399 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
38400
38401         * lib/argp-help.c (struct hol_entry): New member `ord'.
38402         (HOL_ENTRY_PTRCMP): Use ord for comparison
38403         (hol_sort): Initialize ord.
38404
38405 2007-05-01  Bruno Haible  <bruno@clisp.org>
38406
38407         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
38408         Reported by Eric Blake.
38409         * doc/gnulib.texi (Function Substitutes): Update.
38410
38411 2007-05-01  Bruno Haible  <bruno@clisp.org>
38412
38413         * doc/functions.texi: Remove file, now redundant through
38414         doc/functions/*.texi.
38415
38416 2007-05-01  Bruno Haible  <bruno@clisp.org>
38417
38418         * modules/argp (Depends-on): Add sleep.
38419
38420 2007-05-01  Bruno Haible  <bruno@clisp.org>
38421
38422         * modules/sleep-tests: New file.
38423         * tests/test-sleep.c: New file.
38424
38425         * modules/sleep: New file.
38426         * lib/sleep.c: New file.
38427         * m4/sleep.m4: New file.
38428         * lib/unistd_.h (sleep): New declaration.
38429         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
38430         HAVE_SLEEP.
38431         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
38432         * doc/functions/sleep.texi: Document the sleep module.
38433
38434 2007-05-01  Bruno Haible  <bruno@clisp.org>
38435
38436         * lib/sigprocmask.h: Remove file.
38437         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
38438         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
38439         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
38440         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
38441         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
38442         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
38443         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
38444         HAVE_SIGSET_T as a shell variable.
38445         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
38446         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
38447         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
38448         (Depends-on): Add signal. Remove verify.
38449         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
38450         (Include): Mention <signal.h> instead of sigprocmask.h.
38451         * NEWS: Mention the change.
38452         * lib/fatal-signal.c: Don't include sigprocmask.h.
38453
38454 2007-05-01  Bruno Haible  <bruno@clisp.org>
38455
38456         * modules/signal: New file.
38457         * lib/signal_.h: New file.
38458         * m4/signal_h.m4: New file.
38459
38460 2007-05-01  Bruno Haible  <bruno@clisp.org>
38461
38462         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
38463         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
38464         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
38465         HAVE_WCTYPE_CTMP_BUG into wctype.h.
38466
38467 2007-05-01  Bruno Haible  <bruno@clisp.org>
38468
38469         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
38470         configure time.
38471         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
38472         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
38473         * modules/sys_stat (Makefile.am): Substitute their values into
38474         sys/stat.h.
38475
38476 2007-05-01  Bruno Haible  <bruno@clisp.org>
38477
38478         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
38479         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
38480         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
38481
38482 2007-05-01  Bruno Haible  <bruno@clisp.org>
38483
38484         * doc/header/assert.texi: Undo last change: don't mention the gnulib
38485         'assert' module here.
38486
38487 2007-05-01  Bruno Haible  <bruno@clisp.org>
38488
38489         * doc/functions/*.texi: New files.
38490         * doc/functions/google-ranking.txt: New file.
38491         * doc/gnulib.texi (Function Substitutes): New chapter.
38492         (ctime, inet_ntoa): Remove sections.
38493         * doc/ctime.texi: Remove file.
38494         * doc/inet_ntoa.texi: Remove file.
38495         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
38496         dependencies.
38497         (%.info): New rule, specifying a --reference-limit.
38498
38499 2007-05-01  Bruno Haible  <bruno@clisp.org>
38500
38501         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
38502
38503 2007-05-01  Bruno Haible  <bruno@clisp.org>
38504
38505         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
38506         the portability of 'mkdir' to mingw systems.
38507
38508 2007-05-01  Bruno Haible  <bruno@clisp.org>
38509
38510         * doc/headers/google-ranking.txt: New file.
38511
38512 2007-04-30  Eric Blake  <ebb9@byu.net>
38513
38514         Prefer fseeko to fseek.
38515         * modules/getpass (Depends-on): Add fseeko.
38516         * lib/getpass.c (getpass): Use fseeko, not fseek.
38517
38518 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
38519
38520         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
38521         assumes the sorting is stable, while most qsort implementations
38522         are not.  Use argument addresses to ensure they never compare as
38523         equal.
38524
38525         * tests/test-argp-2.sh (usage-indent test): Fix output
38526         (func_compare): Restore diff options
38527         * tests/test-argp.c: Restore #include "progname.h"
38528
38529 2007-04-29  Bruno Haible  <bruno@clisp.org>
38530
38531         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
38532         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
38533         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
38534         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38535         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
38536         (configure.ac): Define CHECK_SNPRINTF_POSIX.
38537         (TESTS, check_PROGRAMS): Add test-snprintf.
38538         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
38539         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
38540         (TESTS, check_PROGRAMS): Add test-vsnprintf.
38541         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
38542         assertions that fail on HP-UX, OSF/1, or IRIX.
38543         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
38544
38545 2007-04-29  Bruno Haible  <bruno@clisp.org>
38546
38547         * MODULES.html.sh (posix_functions): Remove 'contents'.
38548
38549 2007-04-29  Karl Berry  <karl@gnu.org>
38550
38551         * config/srclist.txt (gendocs_template_min): new entry.
38552
38553 2007-04-29  Bruno Haible  <bruno@clisp.org>
38554
38555         Work around fpurge bug on BSD systems.
38556         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
38557         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
38558         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
38559         fpurge to rpl_fpurge if the system already has this function.
38560         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
38561         the case where the system already has this function. Correct invariants
38562         on BSD systems.
38563         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
38564         BSD systems.
38565
38566 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
38567
38568         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
38569         proposed by Sven Verdoolaege.
38570
38571         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
38572         options.
38573         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
38574         (usage and help tests): Update
38575
38576 2007-04-29  Bruno Haible  <bruno@clisp.org>
38577
38578         * tests/test-fflush.c (main): Use a file of size 17, not 10.
38579         Print more information in case of failure. Disable a test on BeOS.
38580
38581 2007-04-29  Bruno Haible  <bruno@clisp.org>
38582
38583         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
38584         This helps debugging on systems on which no gdb is available.
38585
38586 2007-04-29  Bruno Haible  <bruno@clisp.org>
38587
38588         * lib/freading.h: Improve comments.
38589         * lib/fwriting.h: Likewise.
38590         * tests/test-freading.c (main): Don't check freading immediately after
38591         repositioning. Needed for glibc.
38592
38593 2007-04-29  Bruno Haible  <bruno@clisp.org>
38594
38595         * lib/freading.c (freading): Trivial simplification.
38596
38597 2007-04-28  Bruno Haible  <bruno@clisp.org>
38598
38599         * tests/test-fwriting.c (main): Also test the interaction between
38600         fflush and fwriting.
38601         * modules/fwriting-tests (Depends-on): Add fflush.
38602
38603         * tests/test-freading.c (main): Also test the interaction between
38604         fflush and freading.
38605         * modules/freading-tests (Depends-on): Add fflush.
38606
38607 2007-04-28  Bruno Haible  <bruno@clisp.org>
38608
38609         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
38610         fseeko and ftello.
38611         Suggested by Eric Blake.
38612
38613 2007-04-28  Jim Meyering  <jim@meyering.net>
38614
38615         Avoid false-negative in gl_STDINT_H's C99 conformance test.
38616         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
38617         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
38618
38619 2007-04-27  Eric Blake  <ebb9@byu.net>
38620
38621         * doc/headers/assert.texi (assert.h): Document assert module use.
38622
38623 2007-04-27  Bruno Haible  <bruno@clisp.org>
38624
38625         * doc/headers/*.texi: New files.
38626         * doc/gnulib.texi (Header File Substitutes): New chapter.
38627         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
38628         dependencies.
38629         (standards.info ,standards.html, standards.dvi): Update dependencies.
38630         (mostlyclean, clean): New targets.
38631
38632 2007-04-27  Bruno Haible  <bruno@clisp.org>
38633
38634         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
38635         * modules/sysexits (Files, Makefile.am): Update.
38636
38637         * lib/sys_socket_.h: Renamed from lib/socket_.h.
38638         * modules/sys_socket (Files, Makefile.am): Update.
38639
38640         * lib/sys_stat_.h: Renamed from lib/stat_.h.
38641         * modules/sys_stat (Files, Makefile.am): Update.
38642
38643 2007-04-27  Eric Blake  <ebb9@byu.net>
38644
38645         * lib/freading.h: Improve comments.
38646         * lib/fwriting.h: Likewise.
38647         * lib/fflush.c: Likewise.
38648
38649         Fix closein for mingw.
38650         * modules/closein-tests: Add tests for closein.
38651         * tests/test-closein.c: New file.
38652         * tests/test-closein.sh: Likewise.
38653         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
38654         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
38655
38656 2007-04-27  Bruno Haible  <bruno@clisp.org>
38657
38658         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
38659         version is < 6.
38660         * lib/math_.h [__DECC]: Likewise.
38661         * lib/stdio_.h [__DECC]: Likewise.
38662         * lib/stdlib_.h [__DECC]: Likewise.
38663         * lib/string_.h [__DECC]: Likewise.
38664         * lib/time_.h [__DECC]: Likewise.
38665         * lib/wchar_.h [__DECC]: Likewise.
38666         * lib/wctype_.h [__DECC]: Likewise.
38667
38668 2007-04-27  Bruno Haible  <bruno@clisp.org>
38669
38670         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
38671
38672 2007-04-27  Bruno Haible  <bruno@clisp.org>
38673
38674         * lib/fflush.c: Add comments.
38675         * modules/fpurge-tests (Depends-on): Add fflush.
38676         * modules/freadable-tests (Depends-on): Likewise.
38677         * modules/fwritable-tests (Depends-on): Likewise.
38678
38679 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
38680
38681         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
38682         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
38683         Report by Bruno Haible <bruno@clisp.org>.
38684
38685 2007-04-26  Eric Blake  <ebb9@byu.net>
38686
38687         Fix fflush on mingw.
38688         * modules/fflush (Depends-on): Add freading.
38689         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
38690         but unread data.
38691
38692 2007-04-26  Eric Blake  <ebb9@byu.net>
38693         and Bruno Haible  <bruno@clisp.org>
38694
38695         Implement freading and fwriting.
38696         * lib/freading.c: New file.
38697         * lib/freading.h: Likewise.
38698         * m4/freading.m4: Likewise.
38699         * modules/freading: Likewise.
38700         * modules/freading-tests: Likewise.
38701         * tests/test-freading.c: Likewise.
38702         * lib/fwriting.c: New file.
38703         * lib/fwriting.h: Likewise.
38704         * m4/fwriting.m4: Likewise.
38705         * modules/fwriting: Likewise.
38706         * modules/fwriting-tests: Likewise.
38707         * tests/test-fwriting.c: Likewise.
38708         * MODULES.html.sh (File stream based Input/Output): Mention them.
38709
38710 2007-04-26  Bruno Haible  <bruno@clisp.org>
38711
38712         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
38713         'long' when we assume it.
38714         Suggested by Eric Blake.
38715
38716 2007-04-26  Bruno Haible  <bruno@clisp.org>
38717
38718         Ensure fseeko, ftello are declared on glibc systems.
38719         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
38720         * modules/fseeko (configure.ac-early): Likewise.
38721         * modules/ftello (configure.ac-early): Likewise.
38722         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
38723         AC_FUNC_FSEEKO for this.
38724         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
38725         (gl_CHECK_FSEEKO): Remove macro.
38726
38727 2007-04-26  Bruno Haible  <bruno@clisp.org>
38728
38729         * tests/test-fflush.c (main): Also check the ftell result after
38730         fflush and fseek/fseeko.
38731         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
38732         file descriptor position cache in the stream.
38733         * lib/fseeko.c (rpl_fseeko): Likewise.
38734
38735 2007-04-26  Bruno Haible  <bruno@clisp.org>
38736
38737         * modules/fflush-tests (Depends-on): Add fseeko.
38738
38739 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
38740             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38741
38742         * lib/argz_.h: ensure error_t definition is obtained in same
38743         mechanism system argz.h would have.
38744         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
38745         argz facilities are known bad.  Err on the side of caution if
38746         cross-compiling.
38747
38748 2007-04-25  Eric Blake  <ebb9@byu.net>
38749
38750         * lib/fpurge.c (includes): Use stdlib.h for free.
38751         * tests/test-fflush.c (main): Also test fflush-fseeko.
38752
38753 2007-04-25  Bruno Haible  <bruno@clisp.org>
38754
38755         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
38756         * lib/fseeko.c: New file.
38757         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
38758         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
38759         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
38760         gl_FUNC_FSEEKO.
38761         (gl_FUNC_FSEEKO): Invoke it.
38762         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
38763         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
38764         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
38765
38766 2007-04-25  Bruno Haible  <bruno@clisp.org>
38767
38768         * modules/fflush (Depends-on): Add ftello.
38769
38770 2007-04-25  Bruno Haible  <bruno@clisp.org>
38771
38772         * modules/ftello-tests: New file.
38773         * tests/test-ftello.c: New file.
38774
38775         * modules/ftello: New file.
38776         * m4/ftello.m4: New file.
38777         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
38778         HAVE_FTELLO.
38779         * lib/stdio_.h (ftello): New declaration.
38780         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
38781         HAVE_FTELLO.
38782
38783 2007-04-25  Bruno Haible  <bruno@clisp.org>
38784
38785         * modules/fseeko-tests: New file.
38786         * tests/test-fseeko.c: New file.
38787
38788         * modules/fseeko: New file.
38789         * m4/fseeko.m4: New file.
38790         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
38791         HAVE_FSEEKO.
38792         * lib/stdio_.h (fseeko): New declaration.
38793         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
38794         HAVE_FSEEKO.
38795
38796 2007-04-25  Bruno Haible  <bruno@clisp.org>
38797
38798         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
38799
38800 2007-04-25  Bruno Haible  <bruno@clisp.org>
38801
38802         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
38803         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
38804         * tests/test-unistd.c: Likewise.
38805         * tests/test-fcntl.c: Likewise.
38806
38807 2007-04-23  Eric Blake  <ebb9@byu.net>
38808
38809         * lib/fflush.c: Fix missing include.
38810         Reported by Bruno Haible.
38811
38812 2007-04-23  Bruno Haible  <bruno@clisp.org>
38813
38814         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
38815         Reported by Eric Blake.
38816
38817 2007-04-23  Bruno Haible  <bruno@clisp.org>
38818
38819         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
38820
38821 2007-04-23  Bruno Haible  <bruno@clisp.org>
38822
38823         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
38824
38825 2007-04-23  Bruno Haible  <bruno@clisp.org>
38826
38827         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
38828         Needed on HP-UX 11.
38829
38830 2007-04-16  Eric Blake  <ebb9@byu.net>
38831
38832         Make fflush rely on fpurge.
38833         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
38834         open coding all variants.
38835         * modules/fflush (Depends-on): Add fpurge and unistd.
38836         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
38837         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
38838
38839         Fix --with-tests compilation on cygwin.
38840         * modules/argmatch-tests (Makefile.am): List gnulib library first
38841         in LDADD.
38842         * modules/argp-tests (Makefile.am): Likewise.
38843         * modules/array-list-tests (Makefile.am): Likewise.
38844         * modules/array-oset-tests (Makefile.am): Likewise.
38845         * modules/avltree-list-tests (Makefile.am): Likewise.
38846         * modules/avltree-oset-tests (Makefile.am): Likewise.
38847         * modules/avltreehash-list-tests (Makefile.am): Likewise.
38848         * modules/carray-list-tests (Makefile.am): Likewise.
38849         * modules/dirname-tests (Makefile.am): Likewise.
38850         * modules/frexp-tests (Makefile.am): Likewise.
38851         * modules/isnanl-tests (Makefile.am): Likewise.
38852         * modules/linked-list-tests (Makefile.am): Likewise.
38853         * modules/linkedhash-list-tests (Makefile.am): Likewise.
38854         * modules/lock-tests (Makefile.am): Likewise.
38855         * modules/rbtree-list-tests (Makefile.am): Likewise.
38856         * modules/rbtree-oset-tests (Makefile.am): Likewise.
38857         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
38858         * modules/tls-tests (Makefile.am): Likewise.
38859         * modules/tsearch-tests (Makefile.am): Likewise.
38860         * modules/xvasprintf-tests (Makefile.am): Likewise.
38861
38862         Fix fpurge for cygwin.
38863         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
38864         value.
38865         * modules/fpurge-tests (Depends-on): Clean up trash.
38866
38867 2007-04-16  Simon Josefsson  <simon@josefsson.org>
38868
38869         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
38870
38871         * m4/autobuild.m4: Re-indent.
38872
38873 2007-04-13  Bruno Haible  <bruno@clisp.org>
38874
38875         * modules/fpurge-tests: New file.
38876         * tests/test-fpurge.c: New file.
38877
38878         * modules/fpurge: New file.
38879         * lib/fpurge.h: New file.
38880         * lib/fpurge.c: New file.
38881         * m4/fpurge.m4: New file.
38882
38883 2007-04-13  Bruno Haible  <bruno@clisp.org>
38884
38885         * modules/fbufmode-tests: New file.
38886         * tests/test-fbufmode.c: New file.
38887
38888         * modules/fbufmode: New file.
38889         * lib/fbufmode.h: New file.
38890         * lib/fbufmode.c: New file.
38891         * m4/fbufmode.m4: New file.
38892
38893 2007-04-13  Bruno Haible  <bruno@clisp.org>
38894
38895         * modules/fwritable-tests: New file.
38896         * tests/test-fwritable.c: New file.
38897
38898         * modules/fwritable: New file.
38899         * lib/fwritable.h: New file.
38900         * lib/fwritable.c: New file.
38901         * m4/fwritable.m4: New file.
38902
38903 2007-04-13  Bruno Haible  <bruno@clisp.org>
38904
38905         * modules/freadable-tests: New file.
38906         * tests/test-freadable.c: New file.
38907
38908         * modules/freadable: New file.
38909         * lib/freadable.h: New file.
38910         * lib/freadable.c: New file.
38911         * m4/freadable.m4: New file.
38912
38913 2007-04-13  Bruno Haible  <bruno@clisp.org>
38914
38915         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
38916         MOSTLYCLEANFILES.
38917
38918 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
38919
38920         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
38921         gzip bootstrap.conf to avoid dragging in i18n machinery.
38922         (gnulib_tool_option): Use it.
38923
38924 2007-04-13  Bruno Haible  <bruno@clisp.org>
38925
38926         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
38927         %F directives.
38928         * tests/test-vasprintf-posix.c (test_function): Likewise.
38929         * tests/test-snprintf-posix.h (test_function): Likewise.
38930         * tests/test-sprintf-posix.h (test_function): Likewise.
38931         * tests/test-fprintf-posix.h (test_function): Likewise.
38932         * tests/test-printf-posix.h (test_function): Likewise.
38933         * tests/test-fprintf-posix.out: Likewise.
38934
38935 2007-04-13  Bruno Haible  <bruno@clisp.org>
38936
38937         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
38938         * modules/tls-tests (configure.ac): Likewise.
38939         Reported by Arto C. Nirkko <anirkko@insel.ch>.
38940
38941 2007-04-13  Bruno Haible  <bruno@clisp.org>
38942
38943         * lib/tls.c (glthread_tls_get): Fix return type.
38944         Patch by Arto C. Nirkko <anirkko@insel.ch>.
38945
38946 2007-04-12  Eric Blake  <ebb9@byu.net>
38947
38948         * modules/gettime (Depends-on): Remove gettime.
38949         Reported by Dmitry V. Levin.
38950
38951 2007-04-12  Bruno Haible  <bruno@clisp.org>
38952
38953         * modules/fflush (Include): Mention <stdio.h>.
38954         * modules/strtoimax (Include): Mention <inttypes.h>.
38955         * modules/strtoumax (Include): Likewise.
38956
38957 2007-04-12  Eric Blake  <ebb9@byu.net>
38958
38959         * .cvsignore: New file.
38960         * .gitignore: Likewise.
38961
38962 2007-04-12  Bruno Haible  <bruno@clisp.org>
38963
38964         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
38965         not before, since $(LDADD) often contains libgnu.a.
38966         * modules/striconv-tests (test_striconv_LDADD): Likewise.
38967         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
38968         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
38969         Needed on Cygwin.
38970
38971 2007-04-12  Eric Blake  <ebb9@byu.net>
38972
38973         Work around glibc's failure to flush stdin on fclose.
38974         * lib/closein.c (close_stdin): Flush stdin before closing.
38975
38976         Work around glibc's failure to reset seekable stdin on exit.
38977         * modules/closein: New module.
38978         * lib/closein.c: New file.
38979         * lib/closein.h: Likewise.
38980         * m4/closein.m4: Likewise.
38981         * MODULES.html.sh (File stream based Input/Output): Document it.
38982
38983 2007-04-12  Simon Josefsson  <simon@josefsson.org>
38984
38985         * gnulib-tool: Rename generated 'autobuild' script to
38986         'do-autobuild' in --create-megatestdir output.
38987
38988         * doc/gnulib.texi (Build robot for gnulib): Fix.
38989
38990 2007-04-12  Simon Josefsson  <simon@josefsson.org>
38991
38992         * modules/sysexits (Depends-on): Add absolute-header.
38993
38994 2007-04-12  Eric Blake  <ebb9@byu.net>
38995
38996         No need to preserve errno on success.
38997         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
38998         Reported by Bruno Haible.
38999
39000 2007-04-12  Simon Josefsson  <simon@josefsson.org>
39001
39002         * MODULES.html.sh (Support for maintaining and releasing
39003         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
39004
39005 2007-04-12  Simon Josefsson  <simon@josefsson.org>
39006
39007         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
39008
39009 2007-04-12  Simon Josefsson  <simon@josefsson.org>
39010
39011         * modules/autobuild: New module.
39012
39013         * m4/autobuild.m4: New file.
39014
39015 2007-04-11  Bruno Haible  <bruno@clisp.org>
39016
39017         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
39018         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
39019         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
39020         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
39021         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39022         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
39023         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
39024         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
39025         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
39026         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
39027         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
39028         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
39029         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
39030         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
39031         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
39032         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
39033         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
39034         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
39035         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
39036         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
39037         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
39038         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
39039         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
39040         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
39041         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
39042         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
39043         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
39044         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
39045         Reported by Eric Blake.
39046
39047 2007-04-11  Bruno Haible  <bruno@clisp.org>
39048
39049         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
39050
39051 2007-04-10  Bruno Haible  <bruno@clisp.org>
39052
39053         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
39054         for NaN and Infinity. Needed on FreeBSD 6.1.
39055         * tests/test-vasnprintf-posix.c (test_function): Undo last change
39056         regarding results for "%010a" of Infinity and NaN.
39057         * tests/test-vasprintf-posix.c (test_function): Likewise.
39058         * tests/test-snprintf-posix.h (test_function): Likewise.
39059         * tests/test-sprintf-posix.h (test_function): Likewise.
39060         * tests/test-fprintf-posix.h (test_function): Likewise.
39061         * tests/test-printf-posix.h (test_function): Likewise.
39062         * tests/test-fprintf-posix.out: Likewise.
39063
39064 2007-04-10  Bruno Haible  <bruno@clisp.org>
39065
39066         * modules/locale-tests: New file.
39067         * tests/test-locale.c: New file.
39068
39069         * modules/locale: New file.
39070         * lib/locale_.h: New file.
39071         * m4/locale_h.m4: New file.
39072
39073 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
39074             Bruno Haible  <bruno@clisp.org>
39075
39076         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
39077         be determined, test for availability of the copysignf, copysign,
39078         copysignl functions.
39079         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
39080         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
39081         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
39082
39083 2007-04-09  Eric Blake  <ebb9@byu.net>
39084
39085         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
39086         * modules/stdio (Makefile.am): Support fflush.
39087         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
39088         * modules/fflush: New file.
39089         * lib/fflush.c: Likewise.
39090         * m4/fflush.m4: Likewise.
39091         * modules/fflush-tests: New test.
39092         * tests/test-fflush.c: Likewise.
39093         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
39094
39095 2007-04-06  Bruno Haible  <bruno@clisp.org>
39096
39097         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
39098         (VASNPRINTF): Use signbit for faster determination whether to print a
39099         minus sign.
39100         * modules/vasnprintf (Files): Remove lib/float+.h.
39101         * modules/fprintf-posix (Depends-on): Add signbit.
39102         * modules/snprintf-posix (Depends-on): Likewise.
39103         * modules/sprintf-posix (Depends-on): Likewise.
39104         * modules/vasnprintf-posix (Depends-on): Likewise.
39105         * modules/vasprintf-posix (Depends-on): Likewise.
39106         * modules/vfprintf-posix (Depends-on): Likewise.
39107         * modules/vsnprintf-posix (Depends-on): Likewise.
39108         * modules/vsprintf-posix (Depends-on): Likewise.
39109
39110 2007-04-06  Bruno Haible  <bruno@clisp.org>
39111
39112         * tests/test-frexp.c (main): Test also the sign bit of zero results.
39113         * tests/test-frexpl.c (main): Likewise.
39114         * tests/test-ldexpl.c (main): Likewise.
39115         * modules/frexp-tests (Depends-on): Add signbit.
39116         * modules/frexpl-tests (Depdends-on): Likewise.
39117         * modules/ldexpl-tests (Depdends-on): Likewise.
39118
39119 2007-04-06  Bruno Haible  <bruno@clisp.org>
39120
39121         * modules/signbit-tests: New file.
39122         * tests/test-signbit.c: New file.
39123
39124         * modules/signbit: New file.
39125         * lib/signbitf.c: New file.
39126         * lib/signbitd.c: New file.
39127         * lib/signbitl.c: New file.
39128         * m4/signbit.m4: New file.
39129         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
39130         (signbit): New macro.
39131         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
39132         REPLACE_SIGNBIT.
39133         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
39134         REPLACE_FREXPL into math.h.
39135
39136 2007-04-06  Bruno Haible  <bruno@clisp.org>
39137
39138         * modules/isnanf-nolibm-tests: New file.
39139         * tests/test-isnanf.c: New file.
39140
39141         * modules/isnanf-nolibm: New file.
39142         * lib/isnanf.h: New file.
39143         * lib/isnanf.c: New file.
39144         * lib/isnan.c: Consider the USE_FLOAT macro.
39145         * m4/isnanf.m4: New file.
39146
39147 2007-04-06  Bruno Haible  <bruno@clisp.org>
39148
39149         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
39150         (Link): New section.
39151
39152         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
39153
39154 2007-04-06  Bruno Haible  <bruno@clisp.org>
39155
39156         Assume the 'long double' type.
39157         * m4/longdouble.m4: Remove file.
39158         * config/srclist.txt: Don't mention longdouble.m4.
39159         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
39160         * lib/float+.h: Likewise.
39161         * lib/frexp.c: Likewise.
39162         * lib/printf-args.h: Likewise.
39163         * lib/printf-args.c: Likewise.
39164         * lib/printf-frexp.c: Likewise.
39165         * lib/printf-parse.c: Likewise.
39166         * lib/vasnprintf.c: Likewise.
39167         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
39168         * m4/intl.m4: Likewise.
39169         * m4/isnanl.m4: Likewise.
39170         * m4/printf.m4: Likewise.
39171         * m4/printf-frexpl.m4: Likewise.
39172         * m4/vasnprintf.m4: Likewise.
39173         * modules/allocsa (Files): Remove m4/longdouble.m4.
39174         * modules/gettext (Files): Likewise.
39175         * modules/relocatable-prog-wrapper (Files): Likewise.
39176         * modules/vasnprintf (Files): Likewise.
39177         * modules/isnanl (Files): Likewise.
39178         (Include): Simplify.
39179         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
39180         (Include): Simplify.
39181         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
39182         (Include): Simplify.
39183         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
39184         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
39185         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
39186         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
39187         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
39188         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
39189         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
39190         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
39191         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
39192         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
39193         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
39194         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
39195         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
39196         * tests/test-isnanl.c: Likewise.
39197         * tests/test-snprintf-posix.h: Likewise.
39198         * tests/test-sprintf-posix.h: Likewise.
39199         * tests/test-vasnprintf-posix.c: Likewise.
39200         * tests/test-vasnprintf-posix2.c: Likewise.
39201         * tests/test-vasprintf-posix.c: Likewise.
39202
39203 2007-04-06  Bruno Haible  <bruno@clisp.org>
39204
39205         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
39206         * lib/math_.h [__DECC]: Include the overridden include file through
39207         #include_next, outside the double-inclusion guard.
39208         * lib/stdio_.h [__DECC]: Likewise.
39209         * lib/stdlib_.h [__DECC]: Likewise.
39210         * lib/string_.h [__DECC]: Likewise.
39211         * lib/time_.h [__DECC]: Likewise.
39212         * lib/wchar_.h [__DECC]: Likewise.
39213         * lib/wctype_.h [__DECC]: Likewise.
39214         * lib/inttypes_.h [__DECC]: Likewise.
39215         Reported by Albert Chin <china@thewrittenword.com> in
39216         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
39217
39218 2007-04-04  Eric Blake  <ebb9@byu.net>
39219
39220         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
39221         1.5.x.
39222
39223 2007-04-04  Bruno Haible  <bruno@clisp.org>
39224
39225         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
39226         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
39227
39228 2007-04-04  Bruno Haible  <bruno@clisp.org>
39229
39230         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
39231         results for "%010a" of Infinity and NaN.
39232         * tests/test-vasprintf-posix.c (test_function): Likewise.
39233         * tests/test-snprintf-posix.h (test_function): Likewise.
39234         * tests/test-sprintf-posix.h (test_function): Likewise.
39235         * tests/test-fprintf-posix.h (test_function): Remove these tests.
39236         * tests/test-printf-posix.h (test_function): Likewise.
39237         * tests/test-fprintf-posix.out: Update.
39238         Needed for FreeBSD 6.1.
39239
39240 2007-04-04  Bruno Haible  <bruno@clisp.org>
39241
39242         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
39243         directly used by the gnulib modules nor by gnulib-tool.
39244
39245 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
39246
39247         * DEPENDENCIES: Give overall description of version dependency
39248         desirability.  Use more-typical names for apps.
39249         Add shell, coreutils, diffutils, grep, tar, gzip.
39250
39251 2007-04-04  Simon Josefsson  <simon@josefsson.org>
39252
39253         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
39254
39255 2007-04-04  Karl Berry  <karl@gnu.org>
39256
39257         * MODULES.html.sh (func_module): missing '.
39258
39259 2007-04-03  Bruno Haible  <bruno@clisp.org>
39260
39261         * modules/argmatch-tests (Makefile.am): New variable
39262         test_argmatch_LDADD.
39263         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
39264         * modules/array-list-tests (Makefile.am): New variable
39265         test_array_list_LDADD.
39266         * modules/array-oset-tests (Makefile.am): New variable
39267         test_array_oset_LDADD.
39268         * modules/avltree-list-tests (Makefile.am): New variable
39269         test_avltree_list_LDADD.
39270         * modules/avltree-oset-tests (Makefile.am): New variable
39271         test_avltree_oset_LDADD.
39272         * modules/avltreehash-list-tests (Makefile.am): New variable
39273         test_avltreehash_list_LDADD.
39274         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
39275         test_canonicalize_lgpl_LDADD.
39276         * modules/carray-list-tests (Makefile.am): New variable
39277         test_carray_list_LDADD.
39278         * modules/dirname-tests (Makefile.am): New variable
39279         test_dirname_LDADD.
39280         * modules/linked-list-tests (Makefile.am): New variable
39281         test_linked_list_LDADD.
39282         * modules/linkedhash-list-tests (Makefile.am): New variable
39283         test_linkedhash_list_LDADD.
39284         * modules/rbtree-list-tests (Makefile.am): New variable
39285         test_rbtree_list_LDADD.
39286         * modules/rbtree-oset-tests (Makefile.am): New variable
39287         test_rbtree_oset_LDADD.
39288         * modules/rbtreehash-list-tests (Makefile.am): New variable
39289         test_rbtreehash_list_LDADD.
39290         * modules/xvasprintf-tests (Makefile.am): New variable
39291         test_xvasprintf_LDADD.
39292         Reported by Eric Blake.
39293
39294 2007-04-03  Eric Blake  <ebb9@byu.net>
39295
39296         * DEPENDENCIES: Weaken m4 requirements.
39297
39298 2007-04-03  Bruno Haible  <bruno@clisp.org>
39299
39300         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
39301         * modules/isnanl-tests (configure.ac): Likewise.
39302
39303 2007-04-03  Ben Pfaff  <blp@gnu.org>
39304
39305         * modules/iconv_open: Add $(srcdir)/ to source directory
39306         references in Makefile fragments that call gperf, to fix VPATH
39307         builds.
39308
39309 2007-04-03  Bruno Haible  <bruno@clisp.org>
39310
39311         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
39312         * lib/ldexpl.c: Undo last change.
39313
39314 2007-04-03  Bruno Haible  <bruno@clisp.org>
39315
39316         * modules/printf-frexpl (Depends-on): Undo last change.
39317         (Files): Add m4/ldexpl.m4.
39318
39319 2007-04-03  Bruno Haible  <bruno@clisp.org>
39320
39321         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
39322         * modules/isnanl (Link): New section.
39323
39324         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
39325         * modules/frexp (Link): New section.
39326
39327         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
39328         * modules/frexpl (Link): New section.
39329
39330         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
39331         * modules/ldexpl (Link): New section.
39332
39333 2007-04-03  Bruno Haible  <bruno@clisp.org>
39334
39335         * modules/TEMPLATE-EXTENDED: New file.
39336         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
39337
39338 2007-04-03  Bruno Haible  <bruno@clisp.org>
39339
39340         * DEPENDENCIES: New file.
39341         Suggested by Simon Josefsson.
39342
39343 2007-04-03  Bruno Haible  <bruno@clisp.org>
39344
39345         * doc/gnulib.texi: Escape @.
39346
39347 2007-04-03  James Youngman  <jay@gnu.org>
39348         and Paul Eggert  <eggert@cs.ucla.edu>
39349
39350         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
39351         birthtime on all systems that have birthtime, not just those which
39352         use st_birthtimensec rather than st_birthtim.  Putting zero in
39353         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
39354         that the birth time is not available for files on an NFS mount.
39355
39356 2007-04-03  Simon Josefsson  <simon@josefsson.org>
39357
39358         * modules/memxor: Move back from crypto/, suggested by Bruno.
39359         * modules/crypto/hmac-sha1: Fix memxor dependency.
39360
39361         * modules/crypto/gc: Moved from ../.
39362
39363 2007-04-02  Eric Blake  <ebb9@byu.net>
39364
39365         * lib/ldexpl.c (includes): Avoid libm.
39366
39367         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
39368
39369 2007-04-02  Bruno Haible  <bruno@clisp.org>
39370
39371         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
39372         on IRIX.
39373
39374 2007-04-02  Bruno Haible  <bruno@clisp.org>
39375
39376         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
39377         x86 or x86_64 platforms running MacOS X.
39378         Reported by Ryan Schmidt <@ryandesign.com>.
39379
39380 2007-04-02  Bruno Haible  <bruno@clisp.org>
39381
39382         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
39383         i386.
39384
39385 2007-04-01  Simon Josefsson  <simon@josefsson.org>
39386
39387         * modules/crypto/arcfour: Moved from ../.
39388         * modules/crypto/arcfour-tests: Moved from ../.
39389         * modules/crypto/arctwo: Moved from ../.
39390         * modules/crypto/arctwo-tests: Moved from ../.
39391         * modules/crypto/des: Moved from ../.
39392         * modules/crypto/des-tests: Moved from ../.
39393         * modules/crypto/gc-arcfour: Moved from ../.
39394         * modules/crypto/gc-arcfour-tests: Moved from ../.
39395         * modules/crypto/gc-arctwo: Moved from ../.
39396         * modules/crypto/gc-arctwo-tests: Moved from ../.
39397         * modules/crypto/gc-des: Moved from ../.
39398         * modules/crypto/gc-des-tests: Moved from ../.
39399         * modules/crypto/gc-hmac-md5: Moved from ../.
39400         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
39401         * modules/crypto/gc-hmac-sha1: Moved from ../.
39402         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
39403         * modules/crypto/gc-md2: Moved from ../.
39404         * modules/crypto/gc-md2-tests: Moved from ../.
39405         * modules/crypto/gc-md4: Moved from ../.
39406         * modules/crypto/gc-md4-tests: Moved from ../.
39407         * modules/crypto/gc-md5: Moved from ../.
39408         * modules/crypto/gc-md5-tests: Moved from ../.
39409         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
39410         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
39411         * modules/crypto/gc-random: Moved from ../.
39412         * modules/crypto/gc-rijndael: Moved from ../.
39413         * modules/crypto/gc-rijndael-tests: Moved from ../.
39414         * modules/crypto/gc-sha1: Moved from ../.
39415         * modules/crypto/gc-sha1-tests: Moved from ../.
39416         * modules/crypto/gc-tests: Moved from ../.
39417         * modules/crypto/hmac-md5: Moved from ../.
39418         * modules/crypto/hmac-md5-tests: Moved from ../.
39419         * modules/crypto/hmac-sha1: Moved from ../.
39420         * modules/crypto/hmac-sha1-tests: Moved from ../.
39421         * modules/crypto/md2: Moved from ../.
39422         * modules/crypto/md2-tests: Moved from ../.
39423         * modules/crypto/md4: Moved from ../.
39424         * modules/crypto/md4-tests: Moved from ../.
39425         * modules/crypto/md5: Moved from ../.
39426         * modules/crypto/md5-tests: Moved from ../.
39427         * modules/crypto/memxor: Moved from ../.
39428         * modules/crypto/rijndael: Moved from ../.
39429         * modules/crypto/rijndael-tests: Moved from ../.
39430         * modules/crypto/sha1: Moved from ../.
39431
39432 2007-03-30  James Youngman  <jay@gnu.org>
39433
39434         * tests/test-stat-time.c (prepare_test): use chmod() rather than
39435         rename() to change the ctime of a file (because ctime is unaffected
39436         by rename on jfs2 on AIX 5.1).
39437         (main): Start by doing cleanup, in case a previous run failed leaving
39438         test files behind.
39439
39440 2007-03-31  Bruno Haible  <bruno@clisp.org>
39441
39442         Support old proprietary implementations of iconv.
39443         * modules/iconv_open: New file.
39444         * lib/iconv_.h: New file.
39445         * m4/iconv_h.m4: New file.
39446         * lib/iconv_open.c: New file.
39447         * lib/iconv_open-aix.gperf: New file.
39448         * lib/iconv_open-hpux.gperf: New file.
39449         * lib/iconv_open-irix.gperf: New file.
39450         * lib/iconv_open-osf.gperf: New file.
39451         * m4/iconv_open.m4: New file.
39452         * modules/linebreak (Depends-on): Add iconv_open.
39453         * modules/striconv (Depends-on): Likewise.
39454         * modules/striconveh (Depends-on): Likewise.
39455         * modules/unicodeio (Depends-on): Likewise.
39456         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
39457         (iconv_t)(-1).
39458         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
39459         conversion if cd is (iconv_t)(-1).
39460         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
39461         is not possible.
39462
39463 2007-03-31  Bruno Haible  <bruno@clisp.org>
39464
39465         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
39466         work on Solaris either. Protect also second use of "autodetect_jp".
39467
39468 2007-03-31  Bruno Haible  <bruno@clisp.org>
39469
39470         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
39471         the function is not present.
39472
39473 2007-03-31  Bruno Haible  <bruno@clisp.org>
39474
39475         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
39476         the function is not present.
39477
39478 2007-03-31  Bruno Haible  <bruno@clisp.org>
39479
39480         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
39481         a bug in HP-UX iconv_open().
39482
39483 2007-03-31  Bruno Haible  <bruno@clisp.org>
39484
39485         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
39486         (Mathematics <math.h>): New section, add fpieee.
39487         (Input/output <stdio.h>): Add fseterr.
39488         (Mathematics <math.h>): New section, add printf-frexp.
39489         (Container data structures): Add sublist.
39490         (Core language properties): Add fpucw, inline.
39491         (Functions for greatest-width integer types <inttypes.h>): Add
39492         imaxabs, imaxdiv, inttypes.
39493         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
39494         isnanl-nolibm, ldexp.
39495         (Mathematics <math.h>): New section, add printf-frexpl.
39496         (Support for systems lacking POSIX:2001): Add fprintf-posix,
39497         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
39498         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
39499         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
39500         (Unicode string functions): Add unistr/u*-mbtoucr.
39501         (Java): Add javacomp-script, javaexec-script.
39502         (C#): Add csharpcomp-script, csharpexec-script.
39503         (Support for building libraries and executables): Add havelib,
39504         relocatable-*.
39505         (Support for maintaining and releasing projects): Renamed from
39506         'Support for maintaining and release projects'. Add announce-gen.
39507
39508 2007-03-31  Bruno Haible  <bruno@clisp.org>
39509
39510         * README: Talk primarily about git.
39511         (git and CVS): Renamed from CVS.
39512         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
39513         gnulib is available through git.
39514         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
39515
39516 2007-03-30  Bruno Haible  <bruno@clisp.org>
39517
39518         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
39519         * lib/poll_.h: Likewise.
39520         * lib/stat_.h: Likewise.
39521         * lib/sys_time_.h: Likewise.
39522         * lib/sysexit_.h: Likewise.
39523         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
39524         * lib/stdbool_.h: Likewise.
39525         * lib/byteswap_.h: Add double-inclusion guard.
39526
39527 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
39528
39529         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
39530
39531 2007-03-30  Karl Berry  <karl@gnu.org>
39532
39533         * config/srclist-update: double space after USA in the license
39534         substitution, since that's how it's usually (?) written.
39535
39536 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
39537
39538         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
39539         reported by Bruno Haible.
39540
39541 2007-03-29  Bruno Haible  <bruno@clisp.org>
39542
39543         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
39544         a bug in AIX iconv().
39545
39546 2007-03-29  Bruno Haible  <bruno@clisp.org>
39547
39548         * modules/ldexpl-tests: New file.
39549         * tests/test-ldexpl.c: New file.
39550
39551 2007-03-29  Bruno Haible  <bruno@clisp.org>
39552
39553         * lib/ldexpl.c: Include fpucw.h.
39554         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
39555         multiplication.
39556         * modules/ldexpl (Depends-on): Add fpucw.
39557
39558 2007-03-29  Bruno Haible  <bruno@clisp.org>
39559
39560         * modules/ldexpl: New file.
39561         * m4/ldexpl.m4: New file.
39562         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
39563         set.
39564         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
39565         REPLACE_LDEXPL.
39566         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
39567         REPLACE_LDEXPL.
39568         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
39569         gl_FUNC_LDEXPL_WORKS.
39570         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
39571         * modules/mathl (Files): Remove lib/ldexpl.c.
39572         (Depends-on): Add ldexpl.
39573
39574 2007-03-29  Bruno Haible  <bruno@clisp.org>
39575
39576         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
39577
39578 2007-03-29  Bruno Haible  <bruno@clisp.org>
39579
39580         * tests/test-striconveh.c (main): Don't assume that a direct conversion
39581         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
39582         and possibly also HP-UX.
39583         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
39584         work on AIX, IRIX, HP-UX, OSF/1.
39585         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
39586         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
39587         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
39588         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
39589         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
39590         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
39591
39592 2007-03-29  Bruno Haible  <bruno@clisp.org>
39593
39594         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
39595
39596 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
39597
39598         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
39599         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
39600
39601 2007-03-29  Eric Blake  <ebb9@byu.net>
39602
39603         * lib/acl-internal.h: Remove redundant include.
39604         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
39605         Cygwin when a file is locked.
39606
39607 2007-03-29  Bruno Haible  <bruno@clisp.org>
39608
39609         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
39610         file.
39611         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
39612
39613 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
39614
39615         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
39616         try to remove a parent directory if the child couldn't be removed
39617         (except for the first rmdir, which could fail because the child
39618         doesn't exist).  Problem reported by Jeff Blaine in
39619         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
39620
39621 2007-03-28  Bruno Haible  <bruno@clisp.org>
39622
39623         * lib/striconveh.c (utf8conv_carefully): New function.
39624         (mem_cd_iconveh_internal): Invoke it.
39625
39626 2007-03-28  Bruno Haible  <bruno@clisp.org>
39627
39628         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
39629         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
39630         input.
39631         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
39632         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
39633         unistr/u8-uctomb.
39634
39635 2007-03-28  Bruno Haible  <bruno@clisp.org>
39636
39637         * modules/unistr/u8-mbtoucr: New file.
39638         * lib/unistr/u8-mbtoucr.c: New file.
39639         * modules/unistr/u16-mbtoucr: New file.
39640         * lib/unistr/u16-mbtoucr.c: New file.
39641         * modules/unistr/u16-mbtoucr: New file.
39642         * lib/unistr/u16-mbtoucr.c: New file.
39643         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
39644
39645 2007-03-27  Simon Josefsson  <simon@josefsson.org>
39646             Bruno Haible  <bruno@clisp.org>
39647
39648         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
39649         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
39650         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
39651
39652         * m4/stdio_h.m4: Add stubs for vasprintf too.
39653
39654         * modules/stdio: Support vasprintf in sed command.
39655
39656         * modules/vasprintf: Depend on stdio for prototypes.  Remove
39657         vasprintf.h.  Add stdio module indicator.
39658
39659         * lib/stdio_.h: Declare asprintf and vasprintf, based on
39660         vasprintf.h.
39661
39662         * lib/vasprintf.h: File removed.
39663
39664         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
39665         * lib/vasprintf.c: Ditto.
39666         * lib/xvasprintf.c: Ditto.
39667         * tests/test-vasprintf-posix.c: Ditto.
39668         * tests/test-vasprintf.c: Ditto.
39669
39670 2007-03-27  Bruno Haible  <bruno@clisp.org>
39671
39672         Make vasnprintf multithread-safe.
39673         * lib/vasnprintf.c (decimal_point_char): New function.
39674         (VASNPRINTF): Use it.
39675         Suggested by Simon Josefsson.
39676
39677 2007-03-27  Eric Blake  <ebb9@byu.net>
39678
39679         Support sub-second birthtime on cygwin.
39680         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
39681         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
39682         (get_stat_birthtime): Also work with st_birthtim.
39683
39684 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
39685
39686         * lib/stat-time.h (USE_BIRTHTIME): Remove.
39687         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
39688         (get_stat_birthtime_ns): Do not try to use "spare" fields.
39689         (get_stat_birthtime_ns): Simplify compile-time tests.
39690         (get_stat_birthtime): Change the API to look like
39691         get_stat_mtime etc., except return a negative tv_nsec on error.
39692         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
39693         Don't check for "spare" fields.
39694         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
39695         or for struct stat.st_birthtime, as these tests aren't used.
39696         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
39697
39698 2007-03-27  Bruno Haible  <bruno@clisp.org>
39699
39700         * lib/stat-time.h: Include <sys/stat.h>.
39701
39702 2007-03-27  James Youngman  <jay@gnu.org>
39703
39704         * lib/stat-time.h (get_stat_birthtime): New function for
39705           retrieving st_birthtime as provided by UFS2 (hence *BSD).
39706         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
39707           and its variants.
39708         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
39709         * modules/stat-time-test: New file.
39710         * tests/test-stat-time.c: New test, devised by Bruno Haible.
39711
39712 2007-03-26  Bruno Haible  <bruno@clisp.org>
39713
39714         Better support of signalling NaNs.
39715         * lib/atanl.c: Include isnanl.h.
39716         (atanl): Perform test for NaN at the beginning of the function and
39717         through a call to isnanl.
39718         * lib/cosl.c: Include isnanl.h.
39719         (cosl): Perform test for NaN at the beginning of the function and
39720         through a call to isnanl.
39721         * lib/ldexpl.c: Include isnanl.h.
39722         (ldexpl): Perform test for NaN through a call to isnanl.
39723         * lib/logl.c: Include isnanl.h.
39724         (logl): Perform test for NaN at the beginning of the function and
39725         through a call to isnanl.
39726         * lib/sinl.c: Include isnanl.h.
39727         (sinl): Perform test for NaN at the beginning of the function and
39728         through a call to isnanl.
39729         * lib/sqrtl.c: Include isnanl.h.
39730         (sqrtl): Perform test for NaN at the beginning of the function and
39731         through a call to isnanl.
39732         * lib/tanl.c: Include isnanl.h.
39733         (tanl): Perform test for NaN at the beginning of the function and
39734         through a call to isnanl.
39735         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
39736         * modules/mathl (Depends-on): Add isnanl.
39737
39738 2007-03-26  Eric Blake  <ebb9@byu.net>
39739
39740         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
39741         regression in logic sense of previous patch.
39742
39743 2007-03-26  Bruno Haible  <bruno@clisp.org>
39744
39745         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
39746         unportable shell command "if ! ...".
39747         Reported by Ralf Wildenhues.
39748
39749 2007-03-25  Bruno Haible  <bruno@clisp.org>
39750
39751         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
39752         <sysexits.h> file, and only add EX_CONFIG.
39753         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
39754         absolute file name and whether it is sufficient. Substitute also
39755         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
39756         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
39757         ABSOLUTE_SYSEXITS_H into sysexits.h.
39758
39759 2007-03-25  Bruno Haible  <bruno@clisp.org>
39760
39761         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
39762         hints is NULL.
39763
39764 2007-03-25  Bruno Haible  <bruno@clisp.org>
39765
39766         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
39767         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
39768
39769 2007-03-25  Bruno Haible  <bruno@clisp.org>
39770
39771         * lib/vasnprintf.c: Include langinfo.h.
39772         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
39773         multithread-safe.
39774         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
39775         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
39776         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39777         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39778         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39779         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39780         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39781         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
39782         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39783         Reported by Simon Josefsson.
39784
39785 2007-03-25  Bruno Haible  <bruno@clisp.org>
39786
39787         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
39788         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
39789         * modules/vasnprintf (Depends-on): Add stdint.
39790
39791 2007-03-25  Bruno Haible  <bruno@clisp.org>
39792
39793         * modules/fpieee: New file.
39794         * m4/fpieee.m4: New file.
39795         * modules/isnan-nolibm (Depends-on): Add fpieee.
39796         * modules/isnanl-nolibm (Depends-on): Add fpieee.
39797         * modules/isnanl (Depends-on): Add fpieee.
39798
39799 2007-03-25  Bruno Haible  <bruno@clisp.org>
39800
39801         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
39802
39803 2007-03-25  Bruno Haible  <bruno@clisp.org>
39804
39805         Avoid test failures on IRIX 6.5.
39806         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
39807         (main): Use it.
39808         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
39809         macros.
39810         (main): Use them.
39811
39812 2007-03-25  Bruno Haible  <bruno@clisp.org>
39813
39814         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
39815         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
39816         exists but doesn't work.
39817         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
39818         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
39819         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
39820         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
39821
39822 2007-03-25  Bruno Haible  <bruno@clisp.org>
39823
39824         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
39825         returns inf. Needed on IRIX 6.5.
39826
39827 2007-03-25  Bruno Haible  <bruno@clisp.org>
39828
39829         * tests/test-frexpl.c: Include isnanl-nolibm.h.
39830         (main): Use isnanl instead of x != x idiom.
39831         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
39832
39833         * tests/test-frexp.c: Include isnan.h.
39834         (main): Use isnan instead of x != x idiom.
39835         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
39836
39837 2007-03-25  Bruno Haible  <bruno@clisp.org>
39838
39839         * tests/test-frexp.c (NaN): New function/macro.
39840         (main): Use it instead of 0.0 / 0.0.
39841         * tests/test-isnan.c (NaN): New function/macro.
39842         (main): Use it instead of 0.0 / 0.0.
39843         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
39844         (test_function): Use it instead of 0.0 / 0.0.
39845         * tests/test-vasprintf-posix.c (NaN): New function/macro.
39846         (test_function): Use it instead of 0.0 / 0.0.
39847         * tests/test-snprintf-posix.h (NaN): New function/macro.
39848         (test_function): Use it instead of 0.0 / 0.0.
39849         * tests/test-sprintf-posix.h (NaN): New function/macro.
39850         (test_function): Use it instead of 0.0 / 0.0.
39851         * tests/test-fprintf-posix.h (NaN): New function/macro.
39852         (test_function): Use it instead of 0.0 / 0.0.
39853         * tests/test-printf-posix.h (NaN): New function/macro.
39854         (test_function): Use it instead of 0.0 / 0.0.
39855
39856         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
39857
39858 2007-03-25  Bruno Haible  <bruno@clisp.org>
39859
39860         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
39861
39862 2007-03-25  Bruno Haible  <bruno@clisp.org>
39863
39864         * lib/regexec.c (merge_state_with_log): Make static.
39865
39866 2007-03-25  Bruno Haible  <bruno@clisp.org>
39867
39868         * lib/trigl.c (kernel_rem_pio2): Make static.
39869
39870 2007-03-25  Bruno Haible  <bruno@clisp.org>
39871
39872         * lib/sincosl.c (sincosl_table): Make static.
39873
39874 2007-03-25  Bruno Haible  <bruno@clisp.org>
39875
39876         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
39877         if the compiler does not support C99.
39878
39879 2007-03-25  Bruno Haible  <bruno@clisp.org>
39880
39881         * modules/time (Makefile.am): Ensure all rule action lines start with a
39882         tab.
39883
39884 2007-03-24  Bruno Haible  <bruno@clisp.org>
39885
39886         * modules/tsearch-tests: New file.
39887         * tests/test-tsearch.sh: New file.
39888         * tests/test-tsearch.c: New file, mostly copied from glibc.
39889
39890         * modules/search-tests: New file.
39891         * tests/test-search.c: New file.
39892
39893         * modules/search: New file.
39894         * lib/search_.h: New file, incorporating lib/tsearch.h.
39895         * m4/search_h.m4: New file.
39896         * lib/tsearch.h: Remove file.
39897         * lib/tsearch.c: Include search.h instead of tsearch.h.
39898         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
39899         HAVE_TSEARCH.
39900         * modules/tsearch (Files): Remove lib/tsearch.h.
39901         (Depends-on): Add search.
39902         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
39903         (Include): Change tsearch.h into search.h.
39904
39905 2007-03-24  Bruno Haible  <bruno@clisp.org>
39906
39907         * modules/fpucw: New file.
39908         * lib/fpucw.h: New file.
39909         * lib/frexp.c: Include fpucw.h.
39910         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
39911         (FUNC): Use them.
39912         * lib/printf-frexp.c: Include fpucw.h.
39913         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
39914         (FUNC): Use them.
39915         * lib/vasnprintf.c: Include fpucw.h.
39916         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
39917         'long double' calculations.
39918         * tests/test-frexpl.c: Include fpucw.h.
39919         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
39920         * tests/test-printf-frexpl.c: Include fpucw.h.
39921         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
39922         * modules/frexpl (Depends-on): Add fpucw.
39923         * modules/printf-frexpl (Depends-on): Likewise.
39924         * modules/fprintf-posix (Depends-on): Likewise.
39925         * modules/snprintf-posix (Depends-on): Likewise.
39926         * modules/sprintf-posix (Depends-on): Likewise.
39927         * modules/vasnprintf-posix (Depends-on): Likewise.
39928         * modules/vasprintf-posix (Depends-on): Likewise.
39929         * modules/vfprintf-posix (Depends-on): Likewise.
39930         * modules/vsnprintf-posix (Depends-on): Likewise.
39931         * modules/vsprintf-posix (Depends-on): Likewise.
39932         * modules/frexpl-tests (Depends-on): Likewise.
39933         * modules/printf-frexpl-tests (Depends-on): Likewise.
39934
39935 2007-03-24  Bruno Haible  <bruno@clisp.org>
39936
39937         * lib/float+.h: New file.
39938         * lib/isnan.c: Include float+.h.
39939         (SIZE): New macro.
39940         (FUNC): Compare only SIZE bytes of the value.
39941         * lib/vasnprintf.c: Include float+.h.
39942         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
39943         SIZEOF_LDBL or SIZEOF_DBL bytes.
39944         * modules/isnan-nolibm (Files): Add lib/float+.h.
39945         * modules/isnanl-nolibm (Files): Add lib/float+.h.
39946         * modules/isnanl (Files): Add lib/float+.h.
39947         * modules/vasnprintf (Files): Add lib/float+.h.
39948
39949 2007-03-24  Bruno Haible  <bruno@clisp.org>
39950
39951         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
39952         include isnanl-nolibm.h.
39953
39954 2007-03-24  Bruno Haible  <bruno@clisp.org>
39955
39956         * tests/test-read-file.c (main): Don't produce spurious output for
39957         expected situations. Make the test fail if it encountered unexpected
39958         results.
39959
39960 2007-03-24  Bruno Haible  <bruno@clisp.org>
39961
39962         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
39963         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
39964
39965 2007-03-24  Bruno Haible  <bruno@clisp.org>
39966
39967         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
39968
39969 2007-03-24  Bruno Haible  <bruno@clisp.org>
39970
39971         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
39972         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
39973
39974         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
39975         * modules/utf8-ucs4: Turn into a symbolic link to module
39976         unistr/u8-mbtouc.
39977
39978         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
39979         utf8-ucs4-unsafe.
39980         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
39981         unistr/u8-mbtouc-unsafe.
39982
39983         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
39984         * modules/utf16-ucs4: Turn into a symbolic link to module
39985         unistr/u16-mbtouc.
39986
39987         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
39988         utf16-ucs4-unsafe.
39989         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
39990         unistr/u16-mbtouc-unsafe.
39991
39992         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
39993         * modules/ucs4-utf8: Turn into a symbolic link to module
39994         unistr/u8-ubtomb.
39995
39996         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
39997         * modules/ucs4-utf16: Turn into a symbolic link to module
39998         unistr/u16-ubtomb.
39999
40000 2007-03-24  Bruno Haible  <bruno@clisp.org>
40001
40002         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
40003         Enable the function only if HAVE_INLINE.
40004         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
40005         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
40006         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
40007         Enable the function only if HAVE_INLINE.
40008         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
40009         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
40010         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
40011         Enable the function only if HAVE_INLINE.
40012         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
40013         Enable the function only if HAVE_INLINE.
40014         * modules/utf8-ucs4: Update.
40015         * modules/utf8-ucs4-unsafe: Update.
40016         * modules/utf16-ucs4: Update.
40017         * modules/utf16-ucs4-unsafe: Update.
40018         * modules/ucs4-utf8: Update.
40019         * modules/ucs4-utf16: Update.
40020
40021 2007-03-24  Bruno Haible  <bruno@clisp.org>
40022
40023         * lib/utf8-ucs4.h: Remove file.
40024         * lib/utf8-ucs4-unsafe.h: Remove file.
40025         * lib/utf16-ucs4.h: Remove file.
40026         * lib/utf16-ucs4-unsafe.h: Remove file.
40027         * lib/ucs4-utf8.h: Remove file.
40028         * lib/ucs4-utf16.h: Remove file.
40029         * lib/unistr.h: Include their previous contents.
40030         * m4/utf-ucs4.m4: Remove file.
40031         * m4/ucs4-utf.m4: Remove file.
40032         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
40033         (Depends-on): Add unistr/base.
40034         (configure.ac): Remove gl_UTF_UCS4.
40035         (Makefile.am): Update.
40036         (Include): Change to unistr.h.
40037         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
40038         (Depends-on): Add unistr/base.
40039         (configure.ac): Remove gl_UTF_UCS4.
40040         (Makefile.am): Update.
40041         (Include): Change to unistr.h.
40042         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
40043         (Depends-on): Add unistr/base.
40044         (configure.ac): Remove gl_UTF_UCS4.
40045         (Makefile.am): Update.
40046         (Include): Change to unistr.h.
40047         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
40048         (Depends-on): Add unistr/base.
40049         (configure.ac): Remove gl_UTF_UCS4.
40050         (Makefile.am): Update.
40051         (Include): Change to unistr.h.
40052         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
40053         (Depends-on): Add unistr/base.
40054         (configure.ac): Remove gl_UCS4_UTF.
40055         (Makefile.am): Update.
40056         (Include): Change to unistr.h.
40057         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
40058         (Depends-on): Add unistr/base.
40059         (configure.ac): Remove gl_UCS4_UTF.
40060         (Makefile.am): Update.
40061         (Include): Change to unistr.h.
40062         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
40063         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
40064         utf8-ucs4-unsafe.h.
40065         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
40066         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
40067         utf16-ucs4-unsafe.h.
40068         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
40069         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
40070         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
40071         * lib/unistr/u8-strchr.c: Likewise.
40072         * lib/unistr/u8-strrchr.c: Likewise.
40073         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
40074         * lib/unistr/u16-strchr.c: Likewise.
40075         * lib/unistr/u16-strrchr.c: Likewise.
40076         * lib/striconveh.c: Update.
40077         * lib/linebreak.c: Update.
40078
40079 2007-03-24  Bruno Haible  <bruno@clisp.org>
40080
40081         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
40082         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
40083
40084 2007-03-22  Bruno Haible  <bruno@clisp.org>
40085
40086         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
40087
40088 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
40089
40090         * MODULES.html.sh (File system functions): New module write-any-file.
40091         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
40092         * m4/write-any-file.m4: New files.
40093
40094 2007-03-23  Eric Blake  <ebb9@byu.net>
40095
40096         * gnulib-tool: Rearrange space-tab sequences, since some editors
40097         like to eat them.
40098
40099 2007-03-23  Eric Blake  <ebb9@byu.net>
40100
40101         * lib/version-etc.c (version_etc_va): Update license wording to
40102         be more concise.  Recommended by Richard Stallman.
40103
40104 2007-03-22  Bruno Haible  <bruno@clisp.org>
40105
40106         * lib/poll.c (MSG_PEEK): New fallback definition.
40107
40108 2007-03-22  Bruno Haible  <bruno@clisp.org>
40109
40110         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
40111         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
40112         (main): Update.
40113         Fixes a compilation error on BeOS.
40114
40115 2007-03-22  Bruno Haible  <bruno@clisp.org>
40116
40117         * modules/frexpl-tests: New file.
40118         * tests/test-frexpl.c: New file.
40119
40120         * modules/frexpl: New file.
40121         * m4/frexpl.m4: New file.
40122         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
40123         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
40124         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
40125         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
40126         (Depends-on): Add frexpl. Remove isnanl-nolibm.
40127         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
40128
40129 2007-03-22  Bruno Haible  <bruno@clisp.org>
40130
40131         * lib/frexpl.c: Share code with lib/frexp.c.
40132         * modules/mathl (Files): Add lib/frexp.c.
40133         (Depends-on): Add isnanl-nolibm.
40134
40135 2007-03-22  Bruno Haible  <bruno@clisp.org>
40136
40137         * modules/printf-frexp (Files): Add m4/frexp.m4.
40138         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
40139         only if the found frexp function actually works.
40140
40141 2007-03-22  Bruno Haible  <bruno@clisp.org>
40142
40143         * lib/frexp.c: Remove older implementation that uses divisions.
40144
40145 2007-03-21  Bruno Haible  <bruno@clisp.org>
40146
40147         * modules/frexp-tests: New file.
40148         * tests/test-frexp.c: New file.
40149
40150         * modules/frexp: New file.
40151         * lib/frexp.c: New file.
40152         * m4/frexp.m4: New file.
40153         * lib/math_.h (frexp): New declaration.
40154         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
40155         REPLACE_FREXP.
40156         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
40157
40158 2007-03-21  Bruno Haible  <bruno@clisp.org>
40159
40160         * modules/isnanl-tests: New file.
40161         * tests/test-isnanl.c: New file.
40162
40163         * modules/isnanl: New file.
40164         * lib/isnanl.h: New file.
40165         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
40166         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
40167         gl_FUNC_ISNANL_WORKS.
40168         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
40169         New macros.
40170
40171 2007-03-21  Bruno Haible  <bruno@clisp.org>
40172
40173         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
40174         lib/isnanl.h.
40175         (Include): Update.
40176         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
40177         * lib/vasnprintf.c: Update.
40178         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
40179         tests/test-isnanl.h, remove tests/test-isnanl.c.
40180         (Makefile.am): Update.
40181         * tests/test-isnanl-nolibm.c: New file.
40182         * tests/test-isnanl.h: New file.
40183         * tests/test-isnanl.c: Remove file.
40184
40185 2007-03-21  Jim Meyering  <jim@meyering.net>
40186
40187         When trying to open ".", treat ESTALE like EACCES.
40188         * lib/savewd.c (savewd_save): Resort to forking not just upon
40189         failure with EACCES, but also when errno is ESTALE.
40190
40191 2007-03-20  Bruno Haible  <bruno@clisp.org>
40192
40193         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
40194         Needed on AIX 5.1. Reported by Matthew Woehlke.
40195
40196 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
40197
40198         Suggestions by Bruno Haible:
40199         * lib/acl-internal.h: Include "gettext.h" rather than rolling
40200         our own.
40201         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
40202         * modules/acl (Depends-on): Add gettext.
40203
40204 2007-03-19  Bruno Haible  <bruno@clisp.org>
40205
40206         * modules/iconvme: Remove file.
40207         * lib/iconvme.h: Remove file.
40208         * lib/iconvme.c: Remove file.
40209         * m4/iconvme.m4: Remove file.
40210
40211 2007-03-19  Bruno Haible  <bruno@clisp.org>
40212
40213         * doc/relocatable-maint.texi: Break long shell script line.
40214         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
40215
40216 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
40217
40218         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
40219         handle file_has_acl.
40220         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
40221         * lib/acl.c: Move header inclusions and related macro defns into
40222         lib/acl-internal.h.
40223         (S_ISLNK): Remove defn, since that's now done for us.
40224         (file_has_acl): Move to lib/file-has-acl.c.
40225         Call acl_trivial if available.  This is the crucial part of the fix.
40226         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
40227         shared within the library.  Rewrite a bit, partly to make it compatible
40228         with the GNU coding style.
40229         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
40230         Remove unnecessary double-quotes.
40231         Don't test for acl_to_text; the build will catch that.
40232         Replace acl_entries if it doesn't exist and it is needed.
40233         Check for -lsec and acl_trivial (as used on Solaris 10).
40234         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
40235         lib/file-has-acl.c.
40236         (Depends-on): Add sys_stat, for S_ISLNK.
40237
40238 2007-03-19  Ben Pfaff  <blp@gnu.org>
40239
40240         * doc/gnulib.texi: Fix typos.
40241         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
40242
40243 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
40244
40245         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
40246         If size is zero here, buf must be zero.
40247
40248 2007-03-19  Simon Josefsson  <simon@josefsson.org>
40249
40250         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
40251         <bruno@clisp.org>.
40252
40253 2007-03-18  Bruno Haible  <bruno@clisp.org>
40254
40255         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
40256         Suggested by Eric Blake.
40257
40258 2007-03-18  Ben Pfaff  <blp@gnu.org>
40259
40260         * doc/relocatable.texi: Recommend using as prefix a directory
40261         that does not exist and will never be created.  Based on
40262         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
40263         and others.
40264
40265 2007-03-17  Bruno Haible  <bruno@clisp.org>
40266
40267         * lib/fchownat.c: Include lchown.h.
40268
40269 2007-03-17  Bruno Haible  <bruno@clisp.org>
40270
40271         Fix endless loop when the given allocated size was > INT_MAX.
40272         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
40273         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
40274         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
40275         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
40276         * lib/sprintf.c (sprintf): Likewise.
40277
40278 2007-03-17  Bruno Haible  <bruno@clisp.org>
40279
40280         * tests/test-argp-2.sh (func_compare): Output a context diff.
40281
40282 2007-03-17  Bruno Haible  <bruno@clisp.org>
40283
40284         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
40285         locale's decimal-point character.
40286
40287 2007-03-17  Bruno Haible  <bruno@clisp.org>
40288
40289         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
40290         before comparing it. Needed because on some platforms (e.g. x86) a
40291         'long double' occupies less bytes than sizeof (long double).
40292
40293 2007-03-17  Bruno Haible  <bruno@clisp.org>
40294
40295         * tests/test-crc.c (main): Make printf statements 64-bit clean.
40296         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
40297         * tests/test-getaddrinfo.c (simple): Likewise.
40298         * tests/test-read-file.c (main): Likewise.
40299
40300 2007-03-17  Bruno Haible  <bruno@clisp.org>
40301
40302         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
40303
40304 2007-03-17  Bruno Haible  <bruno@clisp.org>
40305
40306         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
40307         unused variable.
40308
40309 2007-03-17  Bruno Haible  <bruno@clisp.org>
40310
40311         * tests/test-c-strcasecmp.c: Include c-strcase.h.
40312         * tests/test-c-strncasecmp.c: Likewise.
40313
40314 2007-03-17  Bruno Haible  <bruno@clisp.org>
40315
40316         * modules/stdlib (Depends-on): Add unistd.
40317         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
40318         Needed for MacOS X 10.3.
40319
40320 2007-03-17  Bruno Haible  <bruno@clisp.org>
40321
40322         * lib/unistr/u-strdup.h: Include <stdlib.h>.
40323
40324 2007-03-17  Bruno Haible  <bruno@clisp.org>
40325
40326         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
40327
40328 2007-03-17  Bruno Haible  <bruno@clisp.org>
40329
40330         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
40331         to reflect files copied from gnulib (with or without modifications).
40332         Suggested by Jim Meyering.
40333
40334 2007-03-17  Eric Blake  <ebb9@byu.net>
40335
40336         * NEWS: Document stdlib change from 2007-02-18.
40337
40338 2007-03-17  Jim Meyering  <jim@meyering.net>
40339
40340         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
40341         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
40342         someone uses a name containing shell meta-characters.
40343         Reported by Alfred M. Szmidt.
40344
40345         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
40346
40347 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
40348
40349         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
40350         and copy gettext configuration files only if configure.ac contains
40351         a use of AM_GNU_GETTEXT_VERSION.
40352
40353 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
40354
40355         * build-aux/bootstrap (gnulib_name): New variable.
40356         (gnulib_tool_options): Use it.
40357
40358 2007-03-13  Simon Josefsson  <simon@josefsson.org>
40359
40360         * tests/test-des.c: Use new namespace.
40361
40362 2007-03-15  Bruno Haible  <bruno@clisp.org>
40363
40364         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
40365         Reported by James Youngman <jay@gnu.org>.
40366
40367 2007-03-15  Bruno Haible  <bruno@clisp.org>
40368
40369         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
40370         declared prototype. Needed with cc on OSF/1 5.1.
40371
40372 2007-03-15  Bruno Haible  <bruno@clisp.org>
40373
40374         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
40375         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
40376         (struct gl_list_implementation): Add dispose_fn argument to the
40377         'create_empty', 'create' methods.
40378         (struct gl_list_impl_base): Add field 'dispose_fn'.
40379         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
40380         argument.
40381         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
40382         dispose_fn argument.
40383         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
40384         dispose_fn on the dropped values.
40385         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
40386         dispose_fn argument.
40387         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
40388         dropped values.
40389         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
40390         (gl_tree_remove_node): Call dispose_fn on the dropped value.
40391         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
40392         (gl_tree_remove_node): Call dispose_fn on the dropped value.
40393         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
40394         argument.
40395         (gl_tree_list_free): Call dispose_fn on the dropped values.
40396         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
40397         the dropped values.
40398         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
40399         Add dispose_fn argument.
40400         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
40401         Call dispose_fn on the dropped values.
40402         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
40403         Add dispose_fn argument.
40404         (gl_sublist_create): Initialize the 'dispose_fn' field.
40405         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
40406         * tests/test-array_list.c (main): Update.
40407         * tests/test-carray_list.c (main): Update.
40408         * tests/test-avltree_list.c (main): Update.
40409         * tests/test-rbtree_list.c (main): Update.
40410         * tests/test-avltreehash_list.c (main): Update.
40411         * tests/test-rbtreehash_list.c (main): Update.
40412         * tests/test-linked_list.c (main): Update.
40413         * tests/test-linkedhash_list.c (main): Update.
40414         * tests/test-array_oset.c (main): Update.
40415
40416 2007-03-15  Bruno Haible  <bruno@clisp.org>
40417
40418         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
40419         (gl_oset_create_empty): Add dispose_fn argument.
40420         (struct gl_oset_implementation): Add dispose_fn argument to
40421         'create_empty' method.
40422         (struct gl_oset_impl_base): Add dispose_fn field.
40423         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
40424         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
40425         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
40426         values.
40427         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
40428         (gl_tree_oset_free): Call dispose_fn on the dropped values.
40429         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
40430         dropped value.
40431         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
40432         dropped value.
40433         * tests/test-array_oset.c (main): Update.
40434         * tests/test-avltree_oset.c (main): Update.
40435         * tests/test-rbtree_oset.c (main): Update.
40436         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
40437
40438 2007-03-13  Bruno Haible  <bruno@clisp.org>
40439
40440         * tests/test-stdbool.c (i): Update after last patch.
40441
40442 2007-03-12  Bruno Haible  <bruno@clisp.org>
40443
40444         * lib/quotearg.c: Include <wctype.h> early, before the definition of
40445         the iswprint macro. Needed on Solaris 2.5.1.
40446
40447 2007-03-12  Bruno Haible  <bruno@clisp.org>
40448
40449         * tests/test-printf-frexp.c (main): Declare x as volatile.
40450
40451 2007-03-12  Simon Josefsson  <simon@josefsson.org>
40452
40453         * doc/gnulib.texi (Build robot for gnulib): New section.
40454
40455 2007-03-12  Jim Meyering  <jim@meyering.net>
40456
40457         * build-aux/bootstrap: New file.
40458         * build-aux/bootstrap.conf: New file, from coreutils.
40459
40460 2007-03-11  Bruno Haible  <bruno@clisp.org>
40461
40462         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
40463
40464 2007-03-12  Simon Josefsson  <simon@josefsson.org>
40465
40466         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
40467         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
40468         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
40469
40470 2007-03-11  Bruno Haible  <bruno@clisp.org>
40471
40472         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
40473         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
40474
40475 2007-03-11  Bruno Haible  <bruno@clisp.org>
40476
40477         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
40478         formula. Needed for SunPRO C 5.0.
40479
40480 2007-03-11  Bruno Haible  <bruno@clisp.org>
40481
40482         * modules/long-options (Depends-on): Add getopt.
40483
40484 2007-03-11  Bruno Haible  <bruno@clisp.org>
40485
40486         * modules/modechange (Depends-on): Add stdbool.
40487
40488 2007-03-11  Bruno Haible  <bruno@clisp.org>
40489
40490         * modules/i-ring (Depends-on): Add stdbool.
40491
40492 2007-03-11  Bruno Haible  <bruno@clisp.org>
40493
40494         * modules/gc-des (Depends-on): Add stdbool.
40495
40496 2007-03-11  Bruno Haible  <bruno@clisp.org>
40497
40498         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
40499
40500 2007-03-11  Bruno Haible  <bruno@clisp.org>
40501
40502         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
40503
40504 2007-03-11  Bruno Haible  <bruno@clisp.org>
40505
40506         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
40507
40508 2007-03-11  Bruno Haible  <bruno@clisp.org>
40509
40510         * lib/vasnprintf.c (sprintf): Undefine.
40511
40512 2007-03-11  Bruno Haible  <bruno@clisp.org>
40513
40514         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
40515         initializers in SunPRO C and Compaq C compilers.
40516
40517 2007-03-11  Bruno Haible  <bruno@clisp.org>
40518
40519         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
40520         decrementing code ANSI C compliant.
40521
40522 2007-03-11  Bruno Haible  <bruno@clisp.org>
40523
40524         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
40525         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
40526
40527 2007-03-11  Bruno Haible  <bruno@clisp.org>
40528
40529         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
40530         <stdbool.h> substitute doesn't pass.
40531
40532 2007-03-11  Bruno Haible  <bruno@clisp.org>
40533
40534         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
40535
40536 2007-03-11  Bruno Haible  <bruno@clisp.org>
40537
40538         * gnulib-tool (func_create_megatestdir): Create also an autobuild
40539         script, for submission to autobuild.josefsson.org.
40540
40541 2007-03-10  Bruno Haible  <bruno@clisp.org>
40542
40543         * modules/canonicalize-lgpl-tests: New file.
40544         * tests/test-canonicalize-lgpl.sh: New file.
40545         * tests/test-canonicalize-lgpl.c: New file.
40546
40547         * modules/c-strcase-tests: New file.
40548         * tests/test-c-strcase.sh: New file.
40549         * tests/test-c-strcasecmp.c: New file.
40550         * tests/test-c-strncasecmp.c: New file.
40551
40552         * modules/atexit-tests: New file.
40553         * tests/test-atexit.sh: New file.
40554         * tests/test-atexit.c: New file.
40555
40556 2007-03-10  Bruno Haible  <bruno@clisp.org>
40557
40558         * tests/test-binary-io.sh: Use temporary filenames that are not so
40559         likely to clash with those of other tests (in a parallel make).
40560         * tests/test-binary-io.c: Likewise.
40561
40562 2007-03-10  Bruno Haible  <bruno@clisp.org>
40563
40564         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
40565         fallback; use #error instead.
40566         Suggested by Simon Josefsson.
40567
40568 2007-03-10  Bruno Haible  <bruno@clisp.org>
40569
40570         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
40571         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
40572         first and the last.
40573
40574 2007-03-10  Bruno Haible  <bruno@clisp.org>
40575
40576         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
40577
40578 2007-03-10  Bruno Haible  <bruno@clisp.org>
40579
40580         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
40581         "make distcheck".
40582         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
40583         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
40584         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
40585
40586 2007-03-10  Bruno Haible  <bruno@clisp.org>
40587
40588         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
40589         variable.
40590         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
40591         variable.
40592
40593 2007-03-09  Eric Blake  <ebb9@byu.net>
40594         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
40595
40596         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
40597         types are not being provided by gnulib.
40598         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
40599         types are supported.
40600
40601 2007-03-10  Bruno Haible  <bruno@clisp.org>
40602
40603         * lib/stdio_.h (__attribute__): New macro.
40604         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
40605         vsprintf): Specify __attribute__ __format__ for GCC.
40606         Suggested by Eric Blake.
40607
40608 2007-03-09  Bruno Haible  <bruno@clisp.org>
40609
40610         * modules/printf-posix-tests: New file.
40611         * tests/test-printf-posix.sh: New file.
40612         * tests/test-printf-posix.c: New file.
40613
40614         * modules/printf-posix: New file.
40615         * lib/printf.c: New file.
40616         * m4/printf-posix-rpl.m4: New file.
40617         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
40618         REPLACE_PRINTF.
40619         * lib/stdio_.h (printf): New declaration.
40620         (format, __format__, ____printf____, ____scanf____, ____strftime____,
40621         ____strfmon____): New macros.
40622         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
40623         REPLACE_PRINTF.
40624
40625 2007-03-09  Bruno Haible  <bruno@clisp.org>
40626
40627         * tests/test-vasnprintf-posix2.sh: New file.
40628         * tests/test-vasnprintf-posix2.c: New file.
40629         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
40630         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
40631         (Makefile.am): Activate test-vasnprintf-posix2.sh.
40632
40633         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
40634         a locale dependent decimal point, rather than always '.'.
40635
40636 2007-03-09  Eric Blake  <ebb9@byu.net>
40637
40638         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
40639         spite of platforms like Tandem/NSK that define it to -1.
40640
40641 2007-03-08  Bruno Haible  <bruno@clisp.org>
40642
40643         * modules/vprintf-posix-tests: New file.
40644         * tests/test-vprintf-posix.sh: New file.
40645         * tests/test-vprintf-posix.c: New file.
40646         * tests/test-printf-posix.h: New file.
40647
40648         * modules/vprintf-posix: New file.
40649         * lib/vprintf.c: New file.
40650         * m4/vprintf-posix.m4: New file.
40651         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
40652         REPLACE_VPRINTF.
40653         * lib/stdio_.h (vprintf): New declaration.
40654         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
40655         REPLACE_VPRINTF.
40656
40657 2007-03-08  Bruno Haible  <bruno@clisp.org>
40658
40659         * modules/fprintf-posix-tests: New file.
40660         * tests/test-fprintf-posix.sh: New file.
40661         * tests/test-fprintf-posix.c: New file.
40662
40663         * modules/fprintf-posix: New file.
40664         * lib/fprintf.c: New file.
40665         * m4/fprintf-posix.m4: New file.
40666         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
40667         REPLACE_FPRINTF.
40668         * lib/stdio_.h (fprintf): New declaration.
40669         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
40670         REPLACE_FPRINTF.
40671
40672 2007-03-08  Bruno Haible  <bruno@clisp.org>
40673
40674         * modules/vfprintf-posix-tests: New file.
40675         * tests/test-vfprintf-posix.sh: New file.
40676         * tests/test-vfprintf-posix.c: New file.
40677         * tests/test-fprintf-posix.h: New file.
40678         * tests/test-fprintf-posix.out: New file.
40679
40680         * modules/vfprintf-posix: New file.
40681         * lib/vfprintf.c: New file.
40682         * m4/vfprintf-posix.m4: New file.
40683         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
40684         REPLACE_VFPRINTF.
40685         * lib/stdio_.h (vfprintf): New declaration.
40686         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
40687         REPLACE_VFPRINTF.
40688
40689 2007-03-08  Bruno Haible  <bruno@clisp.org>
40690
40691         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
40692
40693 2007-03-08  Bruno Haible  <bruno@clisp.org>
40694
40695         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
40696         instead of 'expr' invocations.
40697         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40698         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40699         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40700         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40701         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40702         Suggested by Paul Eggert.
40703
40704 2007-03-08  Bruno Haible  <bruno@clisp.org>
40705
40706         * modules/fseterr-tests: New file.
40707         * tests/test-fseterr.c: New file.
40708
40709         * modules/fseterr: New file.
40710         * lib/fseterr.h: New file.
40711         * lib/fseterr.c: New file.
40712
40713 2007-03-08  Bruno Haible  <bruno@clisp.org>
40714
40715         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
40716         * lib/getopt_.h: Likewise.
40717         * lib/mbswidth.h: Likewise.
40718         * lib/setenv.h: Likewise.
40719         * lib/vasnprintf.h: Likewise.
40720         * lib/vasprintf.h: Likewise.
40721         * lib/verror.h: Likewise.
40722         * lib/xsetenv.h: Likewise.
40723         * lib/xvasprintf.h: Likewise.
40724
40725 2007-03-08  Jim Meyering  <jim@meyering.net>
40726
40727         * users.txt: Add parted.
40728
40729         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
40730
40731 2007-03-07  Bruno Haible  <bruno@clisp.org>
40732
40733         * m4/printf.m4: Make the shell script snippets copy&pastable.
40734
40735 2007-03-02  Bruno Haible  <bruno@clisp.org>
40736
40737         * lib/netinet_in_.h: New file.
40738         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
40739         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
40740         * modules/netinet_in (Files): Add lib/netinet_in_.h.
40741         (Depends-on): Add absolute-header.
40742         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
40743         into netinet/in.h.
40744
40745 2007-03-03  Bruno Haible  <bruno@clisp.org>
40746
40747         * lib/sys_select_.h: New file.
40748         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
40749         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
40750         * modules/sys_select (Files): Add lib/sys_select_.h.
40751         (Depends-on): Add absolute-header.
40752         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
40753         into sys/select.h.
40754
40755 2007-03-02  Bruno Haible  <bruno@clisp.org>
40756
40757         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
40758         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
40759         values.
40760         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
40761         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
40762         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
40763         * modules/sys_socket (Depends-on): Add absolute-header.
40764         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
40765         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
40766         (Include): Remove requirement of inclusion of <sys/types.h>.
40767
40768 2007-03-02  Bruno Haible  <bruno@clisp.org>
40769
40770         * lib/byteswap_.h (bswap_32): Fix formula.
40771
40772 2007-03-06  Bruno Haible  <bruno@clisp.org>
40773
40774         * modules/sprintf-posix-tests: New file.
40775         * tests/test-sprintf-posix.c: New file.
40776
40777         * modules/sprintf-posix: New file.
40778         * lib/sprintf.c: New file.
40779         * m4/sprintf-posix.m4: New file.
40780         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
40781         REPLACE_SPRINTF.
40782         * lib/stdio_.h (sprintf): New declaration.
40783         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
40784         REPLACE_SPRINTF.
40785
40786 2007-03-06  Bruno Haible  <bruno@clisp.org>
40787
40788         * modules/vsprintf-posix-tests: New file.
40789         * tests/test-vsprintf-posix.c: New file.
40790         * tests/test-sprintf-posix.h: New file.
40791
40792         * modules/vsprintf-posix: New file.
40793         * lib/vsprintf.c: New file.
40794         * m4/vsprintf-posix.m4: New file.
40795         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
40796         REPLACE_VSPRINTF.
40797         * lib/stdio_.h (vsprintf): New declaration.
40798         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
40799         REPLACE_VSPRINTF.
40800
40801 2007-03-06  Bruno Haible  <bruno@clisp.org>
40802
40803         * modules/vsnprintf (Depend-on): Remove minmax.
40804
40805 2007-03-06  Bruno Haible  <bruno@clisp.org>
40806
40807         * modules/snprintf-posix-tests: New file.
40808         * tests/test-snprintf-posix.c: New file.
40809
40810         * modules/snprintf-posix: New file.
40811         * m4/snprintf-posix.m4: New file.
40812         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
40813         gl_FUNC_SNPRINTF.
40814         (gl_FUNC_SNPRINTF): Invoke it.
40815         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
40816         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
40817         is set.
40818         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
40819
40820 2007-03-06  Bruno Haible  <bruno@clisp.org>
40821
40822         * modules/vsnprintf-posix-tests: New file.
40823         * tests/test-vsnprintf-posix.c: New file.
40824         * tests/test-snprintf-posix.h: New file.
40825
40826         * modules/vsnprintf-posix: New file.
40827         * m4/vsnprintf-posix.m4: New file.
40828         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
40829         gl_FUNC_VSNPRINTF.
40830         (gl_FUNC_VSNPRINTF): Invoke it.
40831         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
40832         * lib/stdio_.h (vsnprintf): Define as a replacement if
40833         REPLACE_VSNPRINTF is set.
40834         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
40835
40836 2007-03-06  Bruno Haible  <bruno@clisp.org>
40837
40838         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
40839         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
40840
40841 2007-03-06  Bruno Haible  <bruno@clisp.org>
40842
40843         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
40844         (asinl): Declare also if HAVE_DECL_ASINL is set.
40845         (atanl): Declare also if HAVE_DECL_ATANL is set.
40846         (ceill): Declare also if HAVE_DECL_CEILL is set.
40847         (cosl): Declare also if HAVE_DECL_COSL is set.
40848         (expl): Declare also if HAVE_DECL_EXPL is set.
40849         (floorl): Declare also if HAVE_DECL_FLOORL is set.
40850         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
40851         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
40852         (logl): Declare also if HAVE_DECL_LOGL is set.
40853         (sinl): Declare also if HAVE_DECL_SINL is set.
40854         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
40855         (tanl): Declare also if HAVE_DECL_TANL is set.
40856         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
40857         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
40858         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
40859         declaration of frexpl, ldexpl.
40860         * modules/printf-frexpl (Depends-on): Add math.
40861         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
40862
40863 2007-03-05  Bruno Haible  <bruno@clisp.org>
40864
40865         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
40866         frexpl and ldexpl are declared.
40867         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
40868
40869 2007-03-05  Bruno Haible  <bruno@clisp.org>
40870
40871         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
40872         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
40873
40874 2007-03-05  Bruno Haible  <bruno@clisp.org>
40875
40876         * lib/stdio_.h: Include <stddef.h>.
40877
40878 2007-03-05  Bruno Haible  <bruno@clisp.org>
40879
40880         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
40881
40882 2007-03-05  Bruno Haible  <bruno@clisp.org>
40883
40884         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
40885         NetBSD 4, from Ralf Wildenhues.
40886
40887 2007-03-04  Bruno Haible  <bruno@clisp.org>
40888
40889         * lib/vasprintf.h: Update #if logic for the case when the functions
40890         exist but are overridden.
40891
40892 2007-03-04  Bruno Haible  <bruno@clisp.org>
40893
40894         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
40895         implementations: glibc-2.4 and MacOS X 10.3.
40896         * tests/test-vasnprintf-posix.c (test_function): Test also the case
40897         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
40898         * tests/test-vasprintf-posix.c (test_function): Likewise.
40899
40900 2007-03-04  Bruno Haible  <bruno@clisp.org>
40901
40902         * modules/vasprintf-posix-tests: New file.
40903         * tests/test-vasprintf-posix.c: New file.
40904
40905         * modules/vasprintf-posix: New file.
40906         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
40907         defined.
40908         * m4/vasprintf-posix.m4: New file.
40909         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
40910         gl_FUNC_VASPRINTF.
40911         (gl_FUNC_VASPRINTF): Invoke it.
40912         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
40913         here.
40914         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
40915
40916 2007-03-04  Bruno Haible  <bruno@clisp.org>
40917
40918         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
40919         REPLACE_GETTIMEOFDAY.
40920         * modules/sys_time (Makefile.am): Likewise.
40921         * m4/sys_time_h.m4: Likewise.
40922         * m4/gettimeofday.m4: Likewise.
40923
40924 2007-03-04  Bruno Haible  <bruno@clisp.org>
40925
40926         * modules/vasnprintf-posix-tests: New file.
40927         * tests/test-vasnprintf-posix.c: New file.
40928
40929         * modules/vasnprintf-posix: New file.
40930         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
40931         printf-frexpl.h.
40932         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
40933         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
40934         REPLACE_VASNPRINTF is defined.
40935         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
40936         gl_FUNC_VASNPRINTF.
40937         (gl_FUNC_VASNPRINTF): Invoke it.
40938         * m4/vasnprintf-posix.m4: New file.
40939         * m4/printf.m4: New file.
40940
40941 2007-03-04  Bruno Haible  <bruno@clisp.org>
40942
40943         Compile progreloc.c only if --enable-relocatable is specified.
40944         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
40945         if --enable-relocatable was specified.
40946         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
40947         lib_SOURCES.
40948
40949 2007-03-04  Jim Meyering  <jim@meyering.net>
40950
40951         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
40952         Use it consistently, rather than enumerating errno constants.
40953
40954 2007-03-04  Bruno Haible  <bruno@clisp.org>
40955
40956         * modules/xvasprintf-tests: New file.
40957         * tests/test-xvasprintf.c: New file.
40958
40959         * modules/vasprintf-tests: New file.
40960         * tests/test-vasprintf.c: New file.
40961
40962         * modules/vasnprintf-tests: New file.
40963         * tests/test-vasnprintf.c: New file.
40964
40965         * modules/vsnprintf-tests: New file.
40966         * tests/test-vsnprintf.c: New file.
40967
40968         * modules/snprintf-tests: New file.
40969         * tests/test-snprintf.c: New file.
40970
40971 2007-03-04  Bruno Haible  <bruno@clisp.org>
40972
40973         Compile relocatable.c only if --enable-relocatable is specified.
40974         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
40975         gl_RELOCATABLE_LIBRARY.
40976         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
40977         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
40978         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
40979         gl_RELOCATABLE_LIBRARY.
40980         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
40981         (Makefile.am): Remove lib_SOURCES.
40982         * modules/relocatable-lib-lgpl (configure.ac): Invoke
40983         gl_RELOCATABLE_LIBRARY.
40984         (Makefile.am): Remove lib_SOURCES.
40985         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
40986         always.
40987         * modules/relocatable-prog-wrapper (configure.ac): Invoke
40988         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
40989
40990 2007-03-04  Bruno Haible  <bruno@clisp.org>
40991
40992         * modules/argmatch-tests: New file.
40993         * tests/test-argmatch.c: New file.
40994
40995         * tests/test-allocsa.c (main): Halve the number of loop runs.
40996
40997         * modules/alloca-opt-tests: New file.
40998         * tests/test-alloca-opt.c: New file.
40999
41000 2007-03-04  Jim Meyering  <jim@meyering.net>
41001
41002         Work around difference between Linux ACLs and Solaris 10 ZFS.
41003         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
41004         for EINVAL.
41005
41006 2007-03-03  Bruno Haible  <bruno@clisp.org>
41007
41008         * modules/relocatable-prog (Depends-on): Add back progreloc's
41009         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
41010
41011 2007-03-03  Bruno Haible  <bruno@clisp.org>
41012
41013         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
41014         * modules/relocatable-lib: New file.
41015
41016 2007-03-03  Bruno Haible  <bruno@clisp.org>
41017
41018         * modules/relocatable-prog: Renamed from modules/relocatable.
41019         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
41020
41021 2007-03-03  Bruno Haible  <bruno@clisp.org>
41022
41023         * modules/relocatable-script (Files): Add doc/relocatable.texi,
41024         m4/relocatable-lib.m4.
41025         (Depends-on): Remove 'relocatable'.
41026         (configure.ac): Add gl_RELOCATABLE_NOP.
41027
41028 2007-03-03  Bruno Haible  <bruno@clisp.org>
41029
41030         * modules/relocatable-prog-wrapper: New file.
41031         * modules/relocatable (Depends-on): Add it. Remove all other
41032         dependencies except progname.
41033         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
41034
41035         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
41036         (gl_FUNC_STRERROR): Nop.
41037         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
41038
41039         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
41040         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
41041
41042         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
41043         (gl_FUNC_READLINK): Update.
41044
41045         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
41046
41047 2007-03-03  Bruno Haible  <bruno@clisp.org>
41048
41049         * lib/xreadlink.c: Include <unistd.h> unconditionally.
41050         * modules/xreadlink (Depends-on): Add unistd.
41051         * modules/xreadlink-with-size (Depends-on): Likewise.
41052
41053 2007-03-03  Bruno Haible  <bruno@clisp.org>
41054
41055         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
41056         extracted from gt_FUNC_SETENV.
41057         (gt_FUNC_SETENV): Remove macro.
41058         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
41059         remove gt_FUNC_SETENV.
41060
41061 2007-03-03  Bruno Haible  <bruno@clisp.org>
41062
41063         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
41064         ENABLE_RELOCATABLE here.
41065         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
41066
41067 2007-03-03  Bruno Haible  <bruno@clisp.org>
41068
41069         * modules/rbtreehash-list-tests (Depends-on): Add progname.
41070         * tests/test-rbtreehash_list.c: Include progname.h.
41071         (main): Call set_program_name.
41072
41073         * modules/rbtree-oset-tests (Depends-on): Add progname.
41074         * tests/test-rbtree_oset.c: Include progname.h.
41075         (main): Call set_program_name.
41076
41077         * modules/rbtree-list-tests (Depends-on): Add progname.
41078         * tests/test-rbtree_list.c: Include progname.h.
41079         (main): Call set_program_name.
41080
41081         * modules/linked-list-tests (Depends-on): Add progname.
41082         * tests/test-linked_list.c: Include progname.h.
41083         (main): Call set_program_name.
41084
41085 2007-03-03  Bruno Haible  <bruno@clisp.org>
41086
41087         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
41088         All uses of __restrict changed to _Restrict_.
41089         * lib/glob_.h (__restrict): Remove macro.
41090
41091 2007-03-02  Bruno Haible  <bruno@clisp.org>
41092
41093         * modules/gettext (configure.ac): Require gettext infrastructure
41094         from version 0.16.1.
41095
41096 2007-03-02  Bruno Haible  <bruno@clisp.org>
41097
41098         * modules/linkedhash-list-tests (Depends-on): Add progname.
41099         * tests/test-linkedhash_list.c: Include progname.h.
41100         (main): Call set_program_name.
41101
41102         * modules/carray-list-tests (Depends-on): Add progname.
41103         * tests/test-carray_list.c: Include progname.h.
41104         (main): Call set_program_name.
41105
41106         * modules/avltreehash-list-tests (Depends-on): Add progname.
41107         * tests/test-avltreehash_list.c: Include progname.h.
41108         (main): Call set_program_name.
41109
41110         * modules/avltree-oset-tests (Depends-on): Add progname.
41111         * tests/test-avltree_oset.c: Include progname.h.
41112         (main): Call set_program_name.
41113
41114         * modules/avltree-list-tests (Depends-on): Add progname.
41115         * tests/test-avltree_list.c: Include progname.h.
41116         (main): Call set_program_name.
41117
41118         * modules/array-oset-tests (Depends-on): Add progname.
41119         * tests/test-array_oset.c: Include progname.h.
41120         (main): Call set_program_name.
41121
41122         * modules/array-list-tests (Depends-on): Add progname.
41123         * tests/test-array_list.c: Include progname.h.
41124         (main): Call set_program_name.
41125
41126         * modules/argp-tests (Depends-on): Add progname.
41127         * tests/test-argp.c: Include argp.h first. Include progname.h.
41128         (main): Call set_program_name.
41129
41130 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
41131
41132         * doc/gnulib-tool.texi (Initial import): Reword description of
41133         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
41134         limited effect even if defined after the first system include.
41135
41136 2007-03-01  Bruno Haible  <bruno@clisp.org>
41137
41138         * build-aux/config.libpath: Update to libtool-1.5.22.
41139         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41140
41141 2007-03-01  Bruno Haible  <bruno@clisp.org>
41142
41143         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
41144         foo_CFLAGS.
41145         Reported by Ralf Wildenhues.
41146
41147 2007-03-01  Bruno Haible  <bruno@clisp.org>
41148
41149         * build-aux/install-reloc: Remove object files left over by some
41150         compilers.
41151         Reported by Ralf Wildenhues.
41152
41153 2007-03-01  Bruno Haible  <bruno@clisp.org>
41154
41155         * build-aux/install-reloc: Break long lines.
41156
41157 2007-03-01  Bruno Haible  <bruno@clisp.org>
41158
41159         * doc/relocatable.texi: Document that it may not work on OpenBSD.
41160         Reported by Ralf Wildenhues.
41161
41162 2007-03-01  Bruno Haible  <bruno@clisp.org>
41163
41164         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
41165         include ordering constraints.
41166
41167 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
41168
41169         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
41170         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
41171         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
41172         as another example.
41173         * lib/time_.h: Fix misspelling.
41174         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
41175         Require gl_HEADER_TIME_H_DEFAULTS.
41176         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
41177         * m4/time_r.m4 (gl_TIME_R): Likewise.
41178         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
41179
41180 2007-03-01  Bruno Haible  <bruno@clisp.org>
41181
41182         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
41183         * m4/utimens.m4 (gl_UTIMENS): Likewise.
41184
41185 2007-03-01  Jim Meyering  <jim@meyering.net>
41186
41187         * modules/xreadlink (Maintainer): Add my name.
41188         * modules/xreadlink-with-size (Depends-on): Alphabetize.
41189
41190 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
41191             Bruno Haible  <bruno@clisp.org>
41192
41193         * build-aux/install-reloc: Compile also c-ctype.c.
41194         * build-aux/relocatable.sh.in: New file.
41195         * doc/relocatable.texi: New file.
41196         * doc/relocatable-maint.texi: New file.
41197         * doc/gnulib.texi: Include relocatable-maint.texi.
41198         * lib/progreloc.c: Include unistd.h unconditionally.
41199         * lib/relocwrapper.c: Include unistd.h unconditionally.
41200         Include c-ctype.h.
41201         (add_dotbin): Use c_tolower.
41202         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
41203         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
41204         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
41205         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
41206         to m4/relocatable-lib.m4.
41207         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
41208         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
41209         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
41210         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
41211         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
41212         * modules/relocatable: New file.
41213         * modules/relocatable-lib: New file.
41214         * modules/relocatable-script: New file.
41215
41216 2007-02-28  Bruno Haible  <bruno@clisp.org>
41217
41218         Import --enable-relocatable infrastructure.
41219         * build-aux/config.libpath: New file, from GNU gettext.
41220         * build-aux/install-reloc: New file, from GNU gettext.
41221         * build-aux/reloc-ldflags: New file, from GNU gettext.
41222         * lib/relocatable.h: New file, from GNU gettext.
41223         * lib/relocatable.c: New file, from GNU gettext.
41224         * lib/relocwrapper.c: New file, from GNU gettext.
41225         * m4/relocatable.m4: New file, from GNU gettext.
41226
41227 2007-02-28  Bruno Haible  <bruno@clisp.org>
41228
41229         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
41230
41231         * modules/xreadlink: New file, from GNU gettext with modifications.
41232         * lib/xreadlink.c: New file, from GNU gettext.
41233         * lib/xreadlink.h: Add comments.
41234         (xreadlink): New declaration.
41235
41236         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
41237         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
41238         lib/xreadlink-with-size.c.
41239         (configure.ac): Remove gl_XREADLINK invocation.
41240         (Makefile.am): Augment lib_SOURCES.
41241         * m4/xreadlink.m4: Remove file.
41242         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
41243         (xreadlink_with_size): Renamed from xreadink.
41244         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
41245         * modules/canonicalize (Depends-on): Replace xreadlink with
41246         xreadlink-with-size.
41247         * lib/canonicalize.c (canonicalize_filename_mode): Update.
41248
41249 2007-02-25  Jim Meyering  <jim@meyering.net>
41250
41251         * build-aux/announce-gen: When complaining about excess arguments,
41252         list them.
41253
41254 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
41255
41256         * README: Document signed integer overflow situation more
41257         accurately.
41258
41259 2007-02-25  Bruno Haible  <bruno@clisp.org>
41260
41261         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
41262         'a' or 'A' conversion.
41263
41264 2007-02-25  Bruno Haible  <bruno@clisp.org>
41265
41266         * modules/filename: Renamed from modules/pathname.
41267         (Files): Replace lib/pathname.h with lib/filename.h. Replace
41268         lib/concatpath.c with lib/concat-filename.c.
41269         (Makefile.am): Update.
41270         (Include): Replace pathname.h with filename.h.
41271         * lib/filename.h: Renamed from lib/pathname.h.
41272         (concatenated_filename): Renamed from concatenated_pathname.
41273         * lib/concat-filename.c: Renamed from lib/concatpath.c.
41274         (concatenated_filename): Renamed from concatenated_pathname.
41275         * lib/findprog.c: Include filename.h instead of pathname.h.
41276         (find_in_path): Update.
41277         * lib/javacomp.c: Include filename.h instead of pathname.h.
41278         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
41279         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
41280         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
41281         is_oldgcj_14_13_usable, is_javac_usable): Update.
41282         * lib/javaexec.c: Include filename.h instead of pathname.h.
41283         (execute_java_class): Update.
41284         * modules/findprog: Update.
41285         * modules/javacomp: Update.
41286         * modules/javaexec: Update.
41287         * MODULES.html.sh (File system functions): Add 'filename', remove
41288         'pathname'.
41289
41290 2007-02-25  Bruno Haible  <bruno@clisp.org>
41291
41292         * modules/printf-frexpl-tests: New file.
41293         * tests/test-printf-frexpl.c: New file.
41294
41295         * modules/printf-frexpl: New file.
41296         * lib/printf-frexpl.h: New file.
41297         * lib/printf-frexpl.c: New file.
41298         * m4/printf-frexpl.m4: New file.
41299
41300 2007-02-25  Bruno Haible  <bruno@clisp.org>
41301
41302         * modules/printf-frexp-tests: New file.
41303         * tests/test-printf-frexp.c: New file.
41304
41305         * modules/printf-frexp: New file.
41306         * lib/printf-frexp.h: New file.
41307         * lib/printf-frexp.c: New file.
41308         * m4/printf-frexp.m4: New file.
41309
41310 2007-02-25  Bruno Haible  <bruno@clisp.org>
41311
41312         Assume automake >= 1.10 for the tests.
41313         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
41314         * modules/arctwo-tests: Likewise.
41315         * modules/argp-tests: Likewise.
41316         * modules/avltree-list-tests: Likewise.
41317         * modules/avltree-oset-tests: Likewise.
41318         * modules/avltreehash-list-tests: Likewise.
41319         * modules/carray-list-tests: Likewise.
41320         * modules/crc-tests: Likewise.
41321         * modules/des-tests: Likewise.
41322         * modules/gc-arcfour-tests: Likewise.
41323         * modules/gc-arctwo-tests: Likewise.
41324         * modules/gc-des-tests: Likewise.
41325         * modules/gc-hmac-md5-tests: Likewise.
41326         * modules/gc-hmac-sha1-tests: Likewise.
41327         * modules/gc-md2-tests: Likewise.
41328         * modules/gc-md4-tests: Likewise.
41329         * modules/gc-md5-tests: Likewise.
41330         * modules/gc-pbkdf2-sha1-tests: Likewise.
41331         * modules/gc-rijndael-tests: Likewise.
41332         * modules/gc-sha1-tests: Likewise.
41333         * modules/gc-tests: Likewise.
41334         * modules/getaddrinfo-tests: Likewise.
41335         * modules/hmac-md5-tests: Likewise.
41336         * modules/hmac-sha1-tests: Likewise.
41337         * modules/linked-list-tests: Likewise.
41338         * modules/linkedhash-list-tests: Likewise.
41339         * modules/lock-tests: Likewise.
41340         * modules/md2-tests: Likewise.
41341         * modules/md4-tests: Likewise.
41342         * modules/md5-tests: Likewise.
41343         * modules/rbtree-list-tests: Likewise.
41344         * modules/rbtree-oset-tests: Likewise.
41345         * modules/rbtreehash-list-tests: Likewise.
41346         * modules/read-file-tests: Likewise.
41347         * modules/rijndael-tests: Likewise.
41348         * modules/stdint-tests: Likewise.
41349         * modules/tls-tests: Likewise.
41350
41351 2007-02-24  Bruno Haible  <bruno@clisp.org>
41352
41353         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
41354         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
41355         function; instead check whether isnan with a double argument links.
41356         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
41357         function; instead check whether isnan with a 'long double' argument
41358         links.
41359         Reported by Eric Blake <ebb9@byu.net>.
41360
41361 2007-02-24  Bruno Haible  <bruno@clisp.org>
41362
41363         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
41364         defined.
41365         * lib/isnanl.c: Remove all code. Just include isnan.c.
41366         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
41367
41368 2007-02-25  Jim Meyering  <jim@meyering.net>
41369
41370         Avoid conflicting types for 'unsetenv' on FreeBSD.
41371         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
41372         conflicting with FreeBSD's (5.0 and 6.1) function declaration
41373         in stdlib.h.
41374
41375 2007-02-24  Bruno Haible  <bruno@clisp.org>
41376
41377         * modules/isnanl-nolibm-tests: New file.
41378         * tests/test-isnanl.c: New file.
41379
41380         * modules/isnanl-nolibm: New file.
41381         * lib/isnanl.h: New file.
41382         * lib/isnanl.c: New file.
41383         * m4/isnanl.m4: New file.
41384
41385 2007-02-24  Bruno Haible  <bruno@clisp.org>
41386
41387         * modules/isnan-nolibm-tests: New file.
41388         * tests/test-isnan.c: New file.
41389
41390         * modules/isnan-nolibm: New file.
41391         * lib/isnan.h: New file.
41392         * lib/isnan.c: New file.
41393         * m4/isnan.m4: New file.
41394
41395 2007-02-24  Bruno Haible  <bruno@clisp.org>
41396
41397         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
41398         assume that an exponent fits in 20 bits.
41399
41400 2007-02-24  Jim Meyering  <jim@meyering.net>
41401
41402         * m4/regex.m4: Update the description of the configure-time option,
41403         --without-included-regex, to state accurately what the defaults are,
41404         and perhaps to give people an idea why using this option is risky.
41405
41406 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
41407
41408         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
41409         loops on small arguments.  This attempts to avoid the problem
41410         Bruno Haible reported for AIX 4.3.2 in
41411         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
41412
41413 2007-02-23  Bruno Haible  <bruno@clisp.org>
41414
41415         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
41416         Needed for help2man.
41417
41418 2007-02-23  Karl Berry  <karl@gnu.org>
41419
41420         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
41421         exists, foo.h should be cvs-ignored, not committed.
41422
41423 2007-02-23  Eric Blake  <ebb9@byu.net>
41424
41425         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
41426         * lib/stat-time.h (includes): Likewise.
41427         * lib/utimecmp.c (includes): Likewise.
41428         * lib/utimens.h (includes): Likewise.
41429         * lib/getdate.y (includes): Also include "timespec.h" for use
41430         internal to the module.
41431         * modules/utimens (Depends-on): Revert yesterday's patch.
41432         * modules/nanosleep (Depends-on): Add missing dependency.
41433
41434 2007-02-22  Bruno Haible  <bruno@clisp.org>
41435
41436         * lib/glob.c: Don't include getlogin_r.h.
41437
41438 2007-02-22  Jim Meyering  <jim@meyering.net>
41439
41440         * modules/utimens (Depends-on): Add timespec, required for
41441         utimens.h's inclusion of timespec.h.
41442
41443 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
41444
41445         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
41446         long unreadable paths in GNU/Linux.  Problem reported by Andreas
41447         Schwab in
41448         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
41449         I'll try to think of a better way to fix the Solaris problem.
41450
41451         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
41452         like glibc; on Solaris 10, it fails with errno == EINVAL.
41453         POSIX says the behavior is unspecified if the first argument is NULL,
41454         so play it safe and never pass NULL to the system getcwd.
41455
41456 2007-02-21  Jim Meyering  <jim@meyering.net>
41457
41458         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
41459         of gettimeofday.  It would conflict with the one now always
41460         provided via sys_time_.h.  Reported by Matthew Woehlke, as
41461         an IRIX 6.5 build failure.
41462
41463 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
41464
41465         Minor fixups to port to Solaris 10 with Sun C 5.8.
41466         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
41467         * modules/getcwd (Depends-on): Add dirfd.
41468         * lib/putenv.c (putenv): #undef it.
41469         (rpl_putenv): New decl.
41470         (malloc, free): Include <stdlib.h> rather than prototyping separately.
41471
41472 2007-02-20  Bruno Haible  <bruno@clisp.org>
41473
41474         * modules/stdio-tests: New file.
41475         * tests/test-stdio.c: New file.
41476
41477         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
41478         (Depends-on): Add stdio.
41479         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
41480         (Include): Use <stdio.h> instead of vsnprintf.h.
41481         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
41482         HAVE_DECL_VSNPRINTF.
41483         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
41484
41485         * modules/snprintf (Files): Remove lib/snprintf.h.
41486         (Depends-on): Add stdio.
41487         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
41488         (Include): Use <stdio.h> instead of snprintf.h.
41489         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
41490         HAVE_DECL_SNPRINTF.
41491         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
41492         * lib/getaddrinfo.c: Likewise.
41493
41494         * modules/stdio: New file.
41495         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
41496         * lib/snprintf.h: Remove file.
41497         * lib/vsnprintf.h: Remove file.
41498         * lib/.cppi-disable: Remove snprintf.h.
41499         * m4/stdio_h.m4: New file.
41500         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
41501
41502 2007-02-20  Jim Meyering  <jim@meyering.net>
41503
41504         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
41505         used by e.g., mingw.  From Bruno Haible.
41506
41507 2007-02-19  Bruno Haible  <bruno@clisp.org>
41508
41509         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
41510         warnings.
41511         Reported by Ben Pfaff <blp@cs.stanford.edu>.
41512
41513 2007-02-19  Bruno Haible  <bruno@clisp.org>
41514
41515         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
41516         from mingw users.
41517
41518 2007-02-19  Bruno Haible  <bruno@clisp.org>
41519
41520         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
41521         warnings.
41522         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
41523
41524 2007-02-19  Jim Meyering  <jim@meyering.net>
41525
41526         Don't use FD after a successful "fdopendir (fd)".
41527         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
41528         Reset it by calling dirfd on the just-obtained DIR*.
41529
41530         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
41531         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
41532
41533 2007-02-18  Bruno Haible  <bruno@clisp.org>
41534
41535         * lib/readlink.c: Include <unistd.h>.
41536         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
41537         HAVE_READLINK.
41538         * modules/readlink (Depends-on): Add unistd.
41539         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41540         (Include): Add <unistd.h>.
41541
41542         * lib/getlogin_r.h: Remove file.
41543         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
41544         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
41545         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
41546         HAVE_DECL_GETLOGIN_R.
41547         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
41548         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41549         (Include): Use <unistd.h> instead of getlogin_r.h.
41550
41551         * lib/getcwd.h: Remove file.
41552         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
41553         * lib/xgetcwd.c: Likewise.
41554         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
41555         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
41556         * modules/getcwd (Files): Remove lib/getcwd.h.
41557         (Depends-on): Add unistd.
41558         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41559         (Include): Use <unistd.h> instad of getcwd.h.
41560
41561         * lib/ftruncate.c: Include <unistd.h> first.
41562         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
41563         Set HAVE_FTRUNCATE.
41564         * modules/ftruncate (Depends-on): Add unistd.
41565         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41566
41567         * lib/fchdir.c: Include <unistd.h> first.
41568         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
41569         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
41570         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
41571         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41572         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
41573
41574         * lib/dup2.c: Include <unistd.h> first.
41575         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
41576         HAVE_DUP2.
41577         * modules/dup2 (Depends-on): Add unistd.
41578         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41579
41580         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
41581         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
41582         REPLACE_CHOWN. Don't define chown as a macro here.
41583         * modules/chown (Depends-on): Add unistd.
41584         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41585
41586         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
41587         Add definition for GL_LINK_WARNING.
41588         (chown, dup2): New declarations.
41589         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
41590         link warning.
41591         (ftruncate): New declaration.
41592         (getcwd): New declaration, taken from old getcwd.h.
41593         (getlogin_r): New declaration, taken from old getlogin_r.h.
41594         (readlink): New declaration.
41595         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
41596         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
41597         (gl_PREREQ_UNISTD): Remove macro.
41598         (gl_UNISTD_MODULE_INDICATOR): New macro.
41599         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
41600         many new variables. Don't set UNISTD_H.
41601         * modules/unistd (Description): Change.
41602         (Depends-on): Add link-warning.
41603         (configure.ac): Update.
41604         (Makefile.am): Create unistd.h always. Substitute many new variables
41605         into it.
41606
41607 2007-02-18  Bruno Haible  <bruno@clisp.org>
41608
41609         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
41610         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
41611         HAVE_GETSUBOPT.
41612         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
41613         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
41614         * lib/getsubopt.h: Remove file.
41615         * modules/getsubopt (Files): Remove lib/getsubopt.h.
41616         (Depends-on): Add stdlib.
41617         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41618         (Includes): Use <stdlib.h> instead of getsubopt.h.
41619         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
41620         Set HAVE_GETSUBOPT.
41621         * lib/getsubopt.c: Don't include getsubopt.h.
41622
41623 2007-02-18  Bruno Haible  <bruno@clisp.org>
41624
41625         * modules/fchdir (Depends-on): Add dup2.
41626
41627 2007-02-18  Bruno Haible  <bruno@clisp.org>
41628
41629         * lib/stdlib_.h: Handle glibc's special invocation convention
41630         specially.
41631
41632 2007-02-18  Bruno Haible  <bruno@clisp.org>
41633
41634         * modules/stdlib-tests: New file.
41635         * tests/test-stdlib.c: New file.
41636
41637         * modules/mkstemp (Files): Remove lib/mkstemp.h.
41638         (Depends-on): Add stdlib.
41639         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41640         (Includes): Use <stdlib.h> instead of mkstemp.h.
41641         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
41642         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
41643         * lib/mkstemp.c: Don't include mkstemp.h.
41644         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
41645         * lib/stdlib--.h: Don't include mkstemp.h.
41646
41647         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
41648         (Depends-on): Add stdlib.
41649         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41650         (Includes): Use <stdlib.h> instead of mkdtemp.h.
41651         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
41652         HAVE_MKDTEMP.
41653         * lib/mkdtemp.c: Don't include mkdtemp.h.
41654         * lib/clean-temp.c: Don't include mkdtemp.h.
41655
41656         * modules/exit (Files): Remove lib/exit.h.
41657         (Depends-on): Add stdlib.
41658         (Makefile.am): Remove lib_SOURCES.
41659         (Include): Use <stdlib.h> instead of exit.h.
41660         * lib/argmatch.c: Don't include exit.h.
41661         * lib/execute.c: Likewise.
41662         * lib/pagealign_alloc.c: Likewise.
41663         * lib/pipe.c: Likewise.
41664         * lib/wait-process.c: Likewise.
41665         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
41666         * lib/exitfail.c: Likewise.
41667         * lib/savewd.c: Likewise.
41668         * lib/xsetenv.c: Likewise.
41669
41670         * modules/stdlib: New file.
41671         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
41672         and extra comments about mkstemp().
41673         * lib/exit.h: Remove file.
41674         * lib/mkdtemp.h: Remove file.
41675         * lib/mkstemp.h: Remove file.
41676         * m4/stdlib_h.m4: New file.
41677         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
41678
41679 2007-02-18  Bruno Haible  <bruno@clisp.org>
41680
41681         * modules/math-tests: New file.
41682         * tests/test-math.c: New file.
41683
41684         * modules/math: New file.
41685         * modules/mathl (Files): Remove lib/mathl.h.
41686         (Depends-on): Add math.
41687         (Makefile.am): Don't mention mathl.h.
41688         (Include): Use <math.h> instead of mathl.h.
41689         * lib/math_.h: New file.
41690         * lib/mathl.h: Remove file.
41691         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
41692         mathl.h.
41693         * lib/asinl.c: Likewise.
41694         * lib/atanl.c: Likewise.
41695         * lib/ceill.c: Likewise.
41696         * lib/cosl.c: Likewise.
41697         * lib/expl.c: Likewise.
41698         * lib/floorl.c: Likewise.
41699         * lib/frexpl.c: Likewise.
41700         * lib/ldexpl.c: Likewise.
41701         * lib/logl.c: Likewise.
41702         * lib/sincosl.c: Likewise.
41703         * lib/sinl.c: Likewise.
41704         * lib/sqrtl.c: Likewise.
41705         * lib/tanl.c: Likewise.
41706         * lib/trigl.c: Likewise.
41707         * m4/math_h.m4: New file.
41708         * MODULES.html.sh (Mathematics): Add math.
41709
41710 2007-02-17  Bruno Haible  <bruno@clisp.org>
41711
41712         * modules/wctype-tests: New file.
41713         * tests/test-wctype.c: New file.
41714
41715         * modules/wchar-tests: New file.
41716         * tests/test-wchar.c: New file.
41717
41718         * modules/unistd-tests: New file.
41719         * tests/test-unistd.c: New file.
41720
41721         * modules/time-tests: New file.
41722         * tests/test-time.c: New file.
41723
41724         * modules/sysexits-tests: New file.
41725         * tests/test-sysexits.c: New file.
41726
41727         * modules/sys_time-tests: New file.
41728         * tests/test-sys_time.c: New file.
41729
41730         * modules/sys_stat-tests: New file.
41731         * tests/test-sys_stat.c: New file.
41732
41733         * modules/sys_socket-tests: New file.
41734         * tests/test-sys_socket.c: New file.
41735
41736         * modules/sys_select-tests: New file.
41737         * tests/test-sys_select.c: New file.
41738
41739         * modules/string-tests: New file.
41740         * tests/test-string.c: New file.
41741
41742         * modules/stdbool-tests: New file.
41743         * tests/test-stdbool.c: New file.
41744
41745         * modules/netinet_in-tests: New file.
41746         * tests/test-netinet_in.c: New file.
41747
41748         * modules/inttypes-tests: New file.
41749         * tests/test-inttypes.c: New file.
41750
41751         * modules/fcntl-tests: New file.
41752         * tests/test-fcntl.c: New file.
41753
41754         * modules/byteswap-tests: New file.
41755         * tests/test-byteswap.c: New file.
41756
41757         * modules/arpa_inet-tests: New file.
41758         * tests/test-arpa_inet.c: New file.
41759
41760 2007-02-17  Bruno Haible  <bruno@clisp.org>
41761
41762         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
41763         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
41764         if the corresponding module is not enabled. Emit link warnings if
41765         the function is used nevertheless.
41766         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
41767         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
41768         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
41769         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
41770         * modules/inttypes (Depends-on): Add link-warning.
41771         (Makefile.am): Copy the contents of build-aux/link-warning.h into
41772         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
41773         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
41774         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
41775         * modules/imaxdiv (configure.ac): Likewise.
41776         * modules/strtoimax (configure.ac): Likewise.
41777         * modules/strtoumax (configure.ac): Likewise.
41778
41779 2007-02-17  Bruno Haible  <bruno@clisp.org>
41780
41781         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
41782         gl_STRING_MODULE_INDICATOR_DEFAULTS.
41783         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
41784         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
41785
41786 2007-02-17  Bruno Haible  <bruno@clisp.org>
41787
41788         * modules/link-warning: New file.
41789         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
41790         * lib/string_.h (GL_LINK_WARNING): Remove definition.
41791         * modules/string (Depends-on): Add link-warning.
41792         (Makefile.am): Copy the contents of build-aux/link-warning.h into
41793         string.h.
41794         * MODULES.html.sh (Support for building libraries and executables): Add
41795         link-warning.
41796
41797 2007-02-17  Bruno Haible  <bruno@clisp.org>
41798
41799         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
41800         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
41801         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
41802         long lines.
41803
41804 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
41805             Bruno Haible  <bruno@clisp.org>
41806
41807         * modules/tmpfile: New file.
41808         * lib/tmpfile.c: New file.
41809         * m4/tmpfile.m4: New file.
41810         * MODULES.html.sh (func_all_modules): New section "Input/output".
41811
41812 2007-02-15  Bruno Haible  <bruno@clisp.org>
41813
41814         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
41815         (supports_delete_on_close): New function.
41816         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
41817
41818 2007-02-14  Bruno Haible  <bruno@clisp.org>
41819
41820         * modules/mbspcasecmp-tests: New file.
41821         * tests/test-mbspcasecmp.sh: New file.
41822         * tests/test-mbspcasecmp.c: New file.
41823
41824         New module mbspcasecmp.
41825         * modules/mbspcasecmp: New file.
41826         * lib/mbspcasecmp.c: New file.
41827         * lib/string_.h (strncasecmp): Change warning message.
41828         (mbspcasecmp): New declaration.
41829         * m4/mbspcasecmp.m4: New file.
41830         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
41831         GNULIB_MBSPCASECMP.
41832         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
41833         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
41834
41835 2007-02-14  Bruno Haible  <bruno@clisp.org>
41836
41837         * modules/mbsncasecmp-tests: New file.
41838         * tests/test-mbsncasecmp.sh: New file.
41839         * tests/test-mbsncasecmp.c: New file.
41840
41841         New module mbsncasecmp.
41842         * modules/mbsncasecmp: New file.
41843         * lib/mbsncasecmp.c: New file.
41844         * lib/string_.h (mbsncasecmp): New declaration.
41845         * m4/mbsncasecmp.m4: New file.
41846         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
41847         GNULIB_MBSNCASECMP.
41848         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
41849         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
41850
41851 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
41852
41853         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
41854         Verify that it doesn't overlap with our flags.
41855         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
41856         do not have the desired effect in multibyte locales; instead, use
41857         mbscasecmp.
41858         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
41859         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
41860         we don't require GNU fnmatch ourselves (if our users require it, they
41861         should do so explicitly).
41862
41863         Fix regex code so it doesn't rely on strcasecmp.
41864         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
41865         Otherwise, include gnulib's langinfo.h.
41866         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
41867         undesirable behavior in non-C locales.  Instead, rely on localecharset.
41868         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
41869         * modules/regex (FILES): Remove m4/codeset.m4.
41870         (Depends-on): Add localcharset.  Remove strcase.
41871
41872 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41873
41874         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
41875         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
41876
41877 2007-02-13  Bruno Haible  <bruno@clisp.org>
41878
41879         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
41880         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41881
41882 2007-02-12  Bruno Haible  <bruno@clisp.org>
41883
41884         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
41885         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
41886         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
41887         time warning rather than a link error.
41888
41889 2007-02-12  Bruno Haible  <bruno@clisp.org>
41890
41891         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
41892         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
41893         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41894
41895 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
41896
41897         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
41898         args, not 2.
41899
41900 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
41901
41902         New module 'time', so that apps can include <time.h> as per
41903         POSIX and GNU instead of separate include files like time_r.h
41904         and timegm.h.  This implementation tries out a simpler approach
41905         for replacing decls in standard include files (as compared to
41906         the string module), somewhat as an experiment.
41907
41908         * config/srclist.txt: Comment out mktime.c for now.
41909         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
41910         since it doesn't apply any more.  Use generic wording instead.
41911         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
41912         'time'.
41913         * lib/time_.h, m4/time_h.m4, modules/time: New files.
41914         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
41915         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
41916         Don't include <sys/types.h>; no longer needed since we assume C89.
41917         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
41918         * lib/strftime.c: Likewise.
41919         * lib/time_r.c: Likewise.
41920         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
41921         * lib/nanosleep.c: Include <time.h> first, to check interface.
41922         * lib/strptime.c: Likewise.
41923         * lib/time_r.c: Likewise.
41924         * lib/timegm.c: Likewise.
41925         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
41926         needed.
41927         * lib/timegm.c: Don't include timegm.h; no longer needed.
41928         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
41929         time.h now handles any problems in that area.
41930         (struct timespec, nanosleep): Remove; time.h now arranges for these.
41931         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
41932         that time.h defines struct timespec.
41933         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
41934         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
41935         handles that.
41936         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
41937         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
41938         needed.  Set REPLACE_LOCALTIME.
41939         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
41940         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
41941         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
41942         nanosleep; time_h.m4 now does that.  Don't require
41943         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
41944         module handles this now.
41945         * modules/getdate (Depends-on): Remove timespec.  Add time.
41946         * modules/nanosleep (Depends-on): Likewise.
41947         * modules/stat-time (Depends-on): Likewise.
41948         * modules/nanosleep (Include): Include time.h, not timespec.h.
41949         * modules/strptime (Files): Remove lib/strptime.h.
41950         (Depends-on): Add extensions, time.
41951         (Include): Include time.h, not strptime.h.
41952         * modules/time_r (Files): Remove lib/time_r.h.
41953         (Depends-on): Add time.
41954         (Include): Include time.h, not time_r.h.
41955         * modules/timegm: Likewise.
41956         * modules/timespec (Description): Now does timespec-related decls
41957         of our own, instead of struct timespec itself.
41958         (Depends-on): Add time; remove extensions.
41959         (Maintainer): Add self.
41960         * modules/utimecmp (Depends-on): Add time; remove timespec.
41961         * modules/utimens (Depends-on): Likewise.
41962         * modules/xnanosleep (Depends-on): Likewise.
41963
41964 2007-02-11  Bruno Haible  <bruno@clisp.org>
41965
41966         * lib/c-strstr.c: Include allocsa.h.
41967         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
41968         * lib/c-strcasestr.c: Include allocsa.h.
41969         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
41970         * lib/strcasestr.c: Include allocsa.h.
41971         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
41972         * lib/mbsstr.c: Include allocsa.h.
41973         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
41974         allocsa/freesa instead of malloc/free.
41975         * lib/mbscasestr.c: Include allocsa.h.
41976         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
41977         allocsa/freesa instead of malloc/free.
41978         * modules/c-strstr (Depends-on): Add allocsa.
41979         * modules/c-strcasestr (Depends-on): Likewise.
41980         * modules/strcasestr (Depends-on): Likewise.
41981         * modules/mbsstr (Depends-on): Likewise.
41982         * modules/mbscasestr (Depends-on): Likewise.
41983
41984 2007-02-11  Bruno Haible  <bruno@clisp.org>
41985
41986         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
41987
41988         * modules/mbsspn-tests: New file.
41989         * tests/test-mbsspn.sh: New file.
41990         * tests/test-mbsspn.c: New file.
41991
41992 2007-02-11  Bruno Haible  <bruno@clisp.org>
41993
41994         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
41995
41996         * modules/mbspbrk-tests: New file.
41997         * tests/test-mbspbrk.sh: New file.
41998         * tests/test-mbspbrk.c: New file.
41999
42000 2007-02-11  Bruno Haible  <bruno@clisp.org>
42001
42002         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
42003         unneeded cast.
42004
42005         * modules/mbscspn-tests: New file.
42006         * tests/test-mbscspn.sh: New file.
42007         * tests/test-mbscspn.c: New file.
42008
42009 2007-02-11  Bruno Haible  <bruno@clisp.org>
42010
42011         * modules/mbscasecmp-tests: New file.
42012         * tests/test-mbscasecmp.sh: New file.
42013         * tests/test-mbscasecmp.c: New file.
42014
42015 2007-02-11  Bruno Haible  <bruno@clisp.org>
42016
42017         Ensure O(n) worst-case complexity of mbscasestr.
42018         * lib/mbscasestr.c: Include stdbool.h.
42019         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
42020         functions.
42021         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
42022         the bookkeeping indicates that it's worth it.
42023         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
42024
42025         * modules/mbscasestr-tests: New file.
42026         * tests/test-mbscasestr1.c: New file.
42027         * tests/test-mbscasestr2.sh: New file.
42028         * tests/test-mbscasestr2.c: New file.
42029         * tests/test-mbscasestr3.sh: New file.
42030         * tests/test-mbscasestr3.c: New file.
42031         * tests/test-mbscasestr4.sh: New file.
42032         * tests/test-mbscasestr4.c: New file.
42033         * m4/locale-tr.m4: New file.
42034
42035 2007-02-11  Bruno Haible  <bruno@clisp.org>
42036
42037         Ensure O(n) worst-case complexity of mbsstr.
42038         * lib/mbsstr.c: Include stdbool.h.
42039         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
42040         functions.
42041         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
42042         bookkeeping indicates that it's worth it.
42043         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
42044
42045         * modules/mbsstr-tests: New file.
42046         * tests/test-mbsstr1.c: New file.
42047         * tests/test-mbsstr2.sh: New file.
42048         * tests/test-mbsstr2.c: New file.
42049         * tests/test-mbsstr3.sh: New file.
42050         * tests/test-mbsstr3.c: New file.
42051         * m4/locale-fr.m4: New file.
42052
42053 2007-02-11  Bruno Haible  <bruno@clisp.org>
42054
42055         * lib/mbsrchr.c (mbsrchr): Fix bug.
42056
42057         * modules/mbsrchr-tests: New file.
42058         * tests/test-mbsrchr.sh: New file.
42059         * tests/test-mbsrchr.c: New file.
42060
42061 2007-02-11  Bruno Haible  <bruno@clisp.org>
42062
42063         * lib/mbschr.c (mbschr): Fix bug.
42064
42065         * modules/mbschr-tests: New file.
42066         * tests/test-mbschr.sh: New file.
42067         * tests/test-mbschr.c: New file.
42068         * m4/locale-zh.m4: New file.
42069
42070 2007-02-11  Bruno Haible  <bruno@clisp.org>
42071
42072         Support for copying multibyte string iterators.
42073         * lib/mbiter.h: Include <string.h>.
42074         (mbiter_multi_copy): New function.
42075         (mbi_copy): New macro.
42076         * lib/mbuiter.h: Include <string.h>.
42077         (mbuiter_multi_copy): New function.
42078         (mbui_copy): New macro.
42079
42080 2007-02-11  Bruno Haible  <bruno@clisp.org>
42081
42082         New module mbslen.
42083         * modules/mbslen: New file.
42084         * lib/mbslen.c: New file.
42085         * lib/string_.h (mbslen): New declaration.
42086         * m4/mbslen.m4: New file.
42087         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
42088         GNULIB_MBSLEN.
42089         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
42090         * MODULES.html.sh (Internationalization functions): Add mbslen.
42091
42092 2007-02-11  Bruno Haible  <bruno@clisp.org>
42093
42094         Ensure O(n) worst-case complexity of strcasestr substitute.
42095         * lib/strcasestr.c: Include stdbool.h.
42096         (knuth_morris_pratt): New function.
42097         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
42098         bookkeeping indicates that it's worth it.
42099         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
42100
42101         * modules/strcasestr-tests: New file.
42102         * tests/test-strcasestr.c: New file.
42103
42104 2007-02-11  Bruno Haible  <bruno@clisp.org>
42105
42106         Ensure O(n) worst-case complexity of c_strcasestr.
42107         * lib/c-strcasestr.c: Include stdbool.h, string.h.
42108         (knuth_morris_pratt): New function.
42109         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
42110         the bookkeeping indicates that it's worth it.
42111         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
42112
42113         * modules/c-strcasestr-tests: New file.
42114         * tests/test-c-strcasestr.c: New file.
42115
42116 2007-02-11  Bruno Haible  <bruno@clisp.org>
42117
42118         Ensure O(n) worst-case complexity of c_strstr.
42119         * lib/c-strstr.c: Include stdbool.h, string.h.
42120         (knuth_morris_pratt): New function.
42121         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
42122         bookkeeping indicates that it's worth it.
42123         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
42124
42125         * lib/c-strstr.c: Complete rewrite for maintainability.
42126
42127         * modules/c-strstr-tests: New file.
42128         * tests/test-c-strstr.c: New file.
42129
42130 2007-02-11  Bruno Haible  <bruno@clisp.org>
42131
42132         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
42133         5.2.1 and earlier, whereby \055 was treated just like the range
42134         delimiter '-'.
42135         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
42136
42137 2007-02-08  Bruno Haible  <bruno@clisp.org>
42138
42139         * modules/regex (Depends-on): Add stdbool.
42140         Reported by Dalibor Topic <robilad@kaffe.org>.
42141
42142 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
42143
42144         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
42145         Prefer returning from main to exiting from it.
42146         Remove unnecessary parens after sizeof.
42147
42148 2007-02-05  Bruno Haible  <bruno@clisp.org>
42149
42150         New module mbssep.
42151         * modules/mbssep: New file.
42152         * lib/mbssep.c: New file.
42153         * lib/string_.h (strsep): Add a conditional link warning.
42154         (mbssep): New declaration.
42155         * m4/mbssep.m4: New file.
42156         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
42157         GNULIB_MBSSEP.
42158         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
42159         * MODULES.html.sh (Internationalization functions): Add mbssep.
42160
42161 2007-02-05  Bruno Haible  <bruno@clisp.org>
42162
42163         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
42164         Optimize search in case of 1 delimiter.
42165
42166 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
42167
42168         * lib/acl.h: Include sys/types.h before sys/acl.h.
42169
42170 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
42171
42172         Merge upstream fix for glibc bugzilla #3957:
42173
42174         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
42175
42176         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
42177         bit for RE_HAT_LISTS_NOT_NEWLINE.
42178         (build_charclass_op): Remove bogus comment.
42179
42180 2007-02-05  Simon Josefsson  <simon@josefsson.org>
42181
42182         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
42183
42184 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
42185
42186         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
42187         * lib/memmem.c [!defined _LIBC]: Include config.h.
42188
42189 2007-02-04  Bruno Haible  <bruno@clisp.org>
42190
42191         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
42192         warning message.
42193
42194 2007-02-04  Bruno Haible  <bruno@clisp.org>
42195
42196         New module mbstok_r.
42197         * modules/mbstok_r: New file.
42198         * lib/mbstok_r.c: New file.
42199         * lib/string_.h (strtok_r): Change argument names to match the
42200         comments. Add a conditional link warning.
42201         (mbstok_r): New declaration.
42202         * m4/mbstok_r.m4: New file.
42203         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
42204         GNULIB_MBSTOK_R.
42205         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
42206         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
42207
42208 2007-02-04  Bruno Haible  <bruno@clisp.org>
42209
42210         New module mbsspn.
42211         * modules/mbsspn: New file.
42212         * lib/mbsspn.c: New file.
42213         * lib/string_.h (strspn): Add a conditional link warning.
42214         (mbsspn): New declaration.
42215         * m4/mbsspn.m4: New file.
42216         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
42217         GNULIB_MBSSPN.
42218         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
42219         * MODULES.html.sh (Internationalization functions): Add mbsspn.
42220
42221 2007-02-04  Bruno Haible  <bruno@clisp.org>
42222
42223         New module mbspbrk.
42224         * modules/mbspbrk: New file.
42225         * lib/mbspbrk.c: New file.
42226         * lib/string_.h (strpbrk): Add a conditional link warning.
42227         (mbspbrk): New declaration.
42228         * m4/mbspbrk.m4: New file.
42229         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
42230         GNULIB_MBSPBRK.
42231         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
42232         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
42233
42234 2007-02-04  Bruno Haible  <bruno@clisp.org>
42235
42236         New module mbscspn.
42237         * modules/mbscspn: New file.
42238         * lib/mbscspn.c: New file.
42239         * lib/string_.h (strcspn): Add a conditional link warning.
42240         (mbscspn): New declaration.
42241         * m4/mbscspn.m4: New file.
42242         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
42243         GNULIB_MBSCSPN.
42244         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
42245         * MODULES.html.sh (Internationalization functions): Add mbscspn.
42246
42247 2007-02-04  Bruno Haible  <bruno@clisp.org>
42248
42249         New module mbscasestr, reduced goal of strcasestr.
42250         * modules/mbscasestr: New file.
42251         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
42252         (mbscasestr): Renamed from strcasestr.
42253         * lib/strcasestr.c: Don't include mbuiter.h.
42254         (strcasestr): Remove support for multibyte locales.
42255         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
42256         Change the conditional link warning.
42257         (mbscasestr): New declaration.
42258         * m4/mbscasestr.m4: New file.
42259         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
42260         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
42261         REPLACE_STRCASESTR.
42262         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
42263         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
42264         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
42265         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
42266         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
42267         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
42268         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
42269         (Depends-on): Remove mbuiter.
42270         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
42271
42272 2007-02-04  Bruno Haible  <bruno@clisp.org>
42273
42274         Simplify handling of strncasecmp.
42275         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
42276         the conditional link warning.
42277         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
42278         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
42279         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
42280         * modules/strcase (configure.ac): Don't invoke
42281         gl_STRING_MODULE_INDICATOR.
42282         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
42283
42284 2007-02-04  Bruno Haible  <bruno@clisp.org>
42285
42286         New module mbscasecmp, reduced goal of strcasecmp.
42287         * modules/mbscasecmp: New file.
42288         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
42289         (mbscasecmp): Renamed from strcasecmp.
42290         * lib/strcasecmp.c: Don't include mbuiter.h.
42291         (strcasecmp): Remove support for multibyte locales.
42292         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
42293         Change the conditional link warning.
42294         (mbscasecmp): New declaration.
42295         * m4/mbscasecmp.m4: New file.
42296         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
42297         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
42298         REPLACE_STRCASECMP.
42299         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
42300         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
42301         GNULIB_MBSCASECMP.
42302         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
42303         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
42304         * modules/strcase (Files): Remove m4/mbrtowc.m4.
42305         (Depends-on): Remove mbuiter.
42306         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
42307
42308 2007-02-04  Bruno Haible  <bruno@clisp.org>
42309
42310         New module mbsstr. Remove module strstr.
42311         * modules/mbsstr: New file.
42312         * modules/strstr: Remove file.
42313         * lib/mbsstr.c: Renamed from lib/strstr.c.
42314         (mbsstr): Renamed from strstr.
42315         * lib/string_.h (strstr): Remove declaration. Change the conditional
42316         link warning.
42317         (mbsstr): New declaration.
42318         * m4/mbsstr.m4: New file.
42319         * m4/strstr.m4: Remove file.
42320         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
42321         REPLACE_STRSTR.
42322         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
42323         Don't initialize GNULIB_STRSTR.
42324         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
42325         substitute GNULIB_STRSTR and REPLACE_STRSTR.
42326         * MODULES.html.sh (Internationalization functions): Add mbsstr.
42327         (Support for systems lacking ANSI C 89): Remove strstr.
42328
42329 2007-02-04  Bruno Haible  <bruno@clisp.org>
42330
42331         New module mbsrchr.
42332         * modules/mbsrchr: New file.
42333         * lib/mbsrchr.c: New file.
42334         * lib/string_.h (strrchr): Add a conditional link warning.
42335         (mbsrchr): New declaration.
42336         * m4/mbsrchr.m4: New file.
42337         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
42338         GNULIB_MBSRCHR.
42339         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
42340         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
42341
42342 2007-02-04  Bruno Haible  <bruno@clisp.org>
42343
42344         New module mbschr.
42345         * modules/mbschr: New file.
42346         * lib/mbschr.c: New file.
42347         * lib/string_.h (strchr): Add a conditional link warning.
42348         (mbschr): New declaration.
42349         * m4/mbschr.m4: New file.
42350         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
42351         GNULIB_MBSCHR.
42352         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
42353         * MODULES.html.sh (Internationalization functions): Add mbschr.
42354
42355 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
42356
42357         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
42358
42359         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
42360
42361 2007-02-04  Bruno Haible  <bruno@clisp.org>
42362
42363         New module description section 'configure.ac-early'.
42364         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
42365         (func_get_autoconf_early_snippet): New function.
42366         (func_import, func_create_testdir): Use it. Remove special cases for
42367         modules 'extensions' and 'lock'.
42368         * modules/extensions (configure.ac-early): Require
42369         gl_USE_SYSTEM_EXTENSIONS.
42370         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
42371
42372 2007-02-04  Bruno Haible  <bruno@clisp.org>
42373
42374         Make use of gcj-4.3's -fsource and -ftarget option.
42375         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
42376         and if so try the options -fsource and -ftarget.
42377         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
42378         source_version, ftarget_option, target_version arguments.
42379         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
42380         (is_envjavac_oldgcj_14_14_usable): Renamed from
42381         is_envjavac_gcj_14_14_usable.
42382         (is_envjavac_oldgcj_14_13_usable): Renamed from
42383         is_envjavac_gcj_14_13_usable.
42384         (is_gcj_present): Update.
42385         (is_gcj_43, is_gcj43_usable): New functions.
42386         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
42387         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
42388         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
42389         try the options -fsource and -ftarget.
42390
42391 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
42392
42393         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
42394         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
42395         larger value.
42396
42397 2007-02-03  Jim Meyering  <jim@meyering.net>
42398
42399         Give tools a better chance to allocate space for very large buffers.
42400         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
42401
42402         Make pwd and readlink work also when run with an unreadable parent dir
42403         on systems with openat support.
42404         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
42405         provided getcwd function, even when we have openat support.
42406         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
42407
42408 2007-02-02  Bruno Haible  <bruno@clisp.org>
42409
42410         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
42411         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
42412         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
42413         portability problems if one of these functions is only used on specific
42414         platforms.
42415         Reported by Paul Eggert.
42416
42417 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
42418
42419         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
42420         is causing more trouble than it's curing.
42421         * lib/regex_internal.h (__mempcpy): Remove.
42422         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
42423         (and make the code a tad smaller to boot).
42424         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
42425
42426 2007-02-02  Jim Meyering  <jim@meyering.net>
42427
42428         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
42429         section, not in the Makefile.am: one.
42430
42431 2007-02-02  Eric Blake  <ebb9@byu.net>
42432
42433         * lib/strchrnul.c: Always include config.h first.
42434
42435         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
42436         gnulib strstr is not necessary here.
42437
42438 2007-02-02  Simon Josefsson  <simon@josefsson.org>
42439
42440         * m4/socklen.m4: Fix typo.
42441
42442 2007-02-02  Eric Blake  <ebb9@byu.net>
42443
42444         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
42445         * modules/netinet_in (Makefile.am): Likewise.
42446
42447 2007-02-01  Bruno Haible  <bruno@clisp.org>
42448
42449         * lib/string_.h (GL_LINK_WARNING): New macro.
42450         (strcasecmp, strstr, strcasestr): If provided by the system,
42451         conditionally define as a macro that leads to a warning instead of to
42452         an error.
42453         (strncasecmp): Conditionally define as a macro that leads to a warning.
42454
42455 2007-02-01  Karl Berry  <karl@gnu.org>
42456
42457         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
42458
42459 2007-02-01  Bruno Haible  <bruno@clisp.org>
42460
42461         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
42462         renamings.
42463
42464 2007-02-01  Eric Blake  <ebb9@byu.net>
42465
42466         * modules/regex (Depends-on): Revert dependence on mempcpy.
42467         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
42468         module's definition of mempcpy.
42469         Reported by Paul Eggert.
42470
42471 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
42472
42473         * lib/string_.h: If the gnulib module XYZ is not present, undefine
42474         the symbol XYZ before redefining it.  This fixes a problem with
42475         programs that don't use XYZ, when compiled on systems that define
42476         XYZ to something else.
42477
42478 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
42479
42480         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
42481         occurs when "mkdir -m foo" creates a setgid directory that is (1)
42482         writeable to group or other and (2) is intended to have a special
42483         mode bit that is set or cleared.  In such a case, the directory
42484         should be neither group- nor other-writeable until the special
42485         mode bits are right.
42486
42487 2007-01-31  Eric Blake  <ebb9@byu.net>
42488
42489         * modules/mountlist (Depends-on): Add strstr.
42490
42491         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
42492         bug.
42493         * modules/string (Makefile.am): Remove redundant replacement.
42494         * modules/regex (Depends-on): Add mempcpy.
42495
42496 2007-01-31  Bruno Haible  <bruno@clisp.org>
42497
42498         New module description field 'Link'.
42499         * gnulib-tool (func_usage): Document --extract-link-directive.
42500         (sed_extract_prog): Recognize 'Link' directive.
42501         (func_get_link_directive): New function.
42502         (func_import): Show summary of link directives.
42503         Handle --extract-link-directive option.
42504         * modules/acl (Link): New section.
42505         * modules/clock-time (Link): New section.
42506         * modules/euidaccess (Link): New section.
42507         * modules/gettext (Link): New section.
42508         * modules/iconv (Link): New section.
42509         * modules/lock (Link): New section.
42510         * modules/nanosleep (Link): New section.
42511         * modules/readline (Link): New section.
42512
42513 2007-01-27  Bruno Haible  <bruno@clisp.org>
42514
42515         Enforce the use of gnulib modules for unportable <string.h> functions.
42516         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
42517         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
42518         (gl_HEADER_STRING_H_BODY): Require it.
42519         * lib/string_.h: If the gnulib module XYZ is not present, redefine
42520         the symbol XYZ to one that gives a link error.
42521         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
42522         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
42523         * modules/mempcpy (configure.ac): Likewise.
42524         * modules/memrchr (configure.ac): Likewise.
42525         * modules/stpcpy (configure.ac): Likewise.
42526         * modules/stpncpy (configure.ac): Likewise.
42527         * modules/strcase (configure.ac): Likewise.
42528         * modules/strcasestr (configure.ac): Likewise.
42529         * modules/strchrnul (configure.ac): Likewise.
42530         * modules/strdup (configure.ac): Likewise.
42531         * modules/strndup (configure.ac): Likewise.
42532         * modules/strnlen (configure.ac): Likewise.
42533         * modules/strpbrk (configure.ac): Likewise.
42534         * modules/strsep (configure.ac): Likewise.
42535         * modules/strstr (configure.ac): Likewise.
42536         * modules/strtok_r (configure.ac): Likewise.
42537
42538 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
42539
42540         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
42541
42542 2007-01-30  Jim Meyering  <jim@meyering.net>
42543
42544         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
42545
42546 2007-01-29  Bruno Haible  <bruno@clisp.org>
42547
42548         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
42549         * lib/execute.c: Likewise.
42550         * lib/pipe.c: Likewise.
42551         * lib/printf-args.h: Likewise.
42552         * lib/printf-args.c: Likewise.
42553         * lib/printf-parse.c: Likewise.
42554         * lib/vasnprintf.c: Likewise.
42555
42556 2007-01-29  Eric Blake  <ebb9@byu.net>
42557
42558         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
42559         declaration.
42560
42561 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
42562
42563         * lib/strptime.h (strptime): Use 'restrict' for args where
42564         POSIX requires this.
42565         * lib/strptime.c (strptime): Likewise.
42566         Change license notice from LGPL to GPL, since gnulib-tool will
42567         change this as needed.
42568         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
42569         defined.
42570         Include "strptime.h" first, to check interface.
42571         Do not #undef _LIBC and _NL_CURRENT.
42572         Do not include <stdlib.h>; no longer needed.
42573         Include "time_r.h" and declare ptime_locale_status
42574         only if _LIBC is not defined.
42575         (__P): Remove unused macro.
42576         (match_string): Bring back glibc version, but use it only if _LIBC
42577         is defined.
42578         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
42579         Remove unnecessary assertion and abort() call.
42580         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
42581         * m4/strptime.m4: Fix serial number comment.
42582         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
42583         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
42584         (Depends-on): Add time_r.
42585
42586 2007-01-29  Bruno Haible  <bruno@clisp.org>
42587
42588         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42589         strptime.
42590         * modules/strptime (Depends-on): Add stdbool.
42591         * lib/strptime.h: Include <time.h> always. Add comments.
42592
42593 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
42594
42595         * modules/strptime: New file.
42596         * lib/strptime.h: New file.
42597         * lib/strptime.c: New file.
42598         * m4/strptime.m4: New file.
42599
42600 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
42601
42602         * MODULES.html.sh: New module mpsort.
42603         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
42604
42605         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
42606         a circularity problem with HP-UX ia64 reported by Bob Proulx in
42607         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
42608         All uses changed.
42609         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
42610         All uses changed.
42611         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
42612         to _Restrict_.
42613         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
42614         the parameter matches the prototype.
42615
42616 2007-01-28  Jim Meyering  <jim@meyering.net>
42617
42618         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
42619         sys/time.h here, reverting that part of the previous patch:
42620         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
42621
42622 2007-01-28  Bruno Haible  <bruno@clisp.org>
42623
42624         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
42625         value of $(SYS_TIME_H).
42626         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
42627         remove it conditionally, too. [added by Jim Meyering]
42628         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
42629         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
42630         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
42631         GETTIMEOFDAY_REPLACEMENT to 1.
42632
42633 2007-01-28  Bruno Haible  <bruno@clisp.org>
42634
42635         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
42636         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
42637         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
42638         Set UNISTD_H instead of UNISTD_H2.
42639         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
42640
42641 2007-01-28  Bruno Haible  <bruno@clisp.org>
42642
42643         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
42644         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
42645
42646 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42647
42648         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
42649         (func_create_testdir): Ensure C locale for `grep' and `tr'
42650         character ranges.
42651         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
42652         ACLOCAL_AMFLAGS parsing state machine.
42653
42654 2007-01-27  Bruno Haible  <bruno@clisp.org>
42655
42656         * modules/unistr/base: Update.
42657
42658 2007-01-27  Bruno Haible  <bruno@clisp.org>
42659
42660         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
42661         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
42662         * modules/unistr/u32-mbtouc-unsafe: Renamed from
42663         modules/unistr/u32-mbtouc.
42664         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
42665         * lib/unistr.h: Update.
42666         * lib/linebreak.c: Update.
42667         * modules/unistr/u32-mbtouc: Renamed from
42668         modules/unistr/u32-mbtouc-safe.
42669         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
42670         * lib/unistr.h: Update.
42671         * lib/unistr/u32-to-u8.c: Update.
42672         * lib/unistr/u32-to-u16.c: Update.
42673
42674 2007-01-27  Bruno Haible  <bruno@clisp.org>
42675
42676         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
42677         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
42678         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
42679         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
42680         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
42681         * modules/unistr/u16-mbtouc-unsafe: Renamed from
42682         modules/unistr/u16-mbtouc.
42683         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
42684         * lib/unistr.h: Update.
42685         * lib/linebreak.c: Update.
42686         * modules/linebreak: Update.
42687         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
42688         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
42689         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
42690         * modules/unistr/u16-mbtouc: Renamed from
42691         modules/unistr/u16-mbtouc-safe.
42692         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
42693         * lib/unistr.h: Update.
42694         * lib/unistr/u16-to-u8.c: Update.
42695         * modules/unistr/u16-to-u8: Update.
42696         * lib/unistr/u16-to-u32.c: Update.
42697         * modules/unistr/u16-to-u32: Update.
42698
42699 2007-01-27  Bruno Haible  <bruno@clisp.org>
42700
42701         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
42702         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
42703         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
42704         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
42705         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
42706         * modules/unistr/u8-mbtouc-unsafe: Renamed from
42707         modules/unistr/u8-mbtouc.
42708         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
42709         * lib/unistr.h: Update.
42710         * lib/striconveh.c: Update.
42711         * modules/striconveh: Update.
42712         * lib/linebreak.c: Update.
42713         * modules/linebreak: Update.
42714         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
42715         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
42716         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
42717         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
42718         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
42719         * lib/unistr.h: Update.
42720         * lib/striconveh.c: Update.
42721         * modules/striconveh: Update.
42722         * lib/unistr/u8-to-u16.c: Update.
42723         * modules/unistr/u8-to-u16: Update.
42724         * lib/unistr/u8-to-u32.c: Update.
42725         * modules/unistr/u8-to-u32: Update.
42726
42727 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42728
42729         Sync from Libtool.
42730         * lib/argz.c: Do not include strings.h nor memory.h, include
42731         string.h unconditionally.  Patch by Simon Josefsson.
42732
42733 2007-01-27  Bruno Haible  <bruno@clisp.org>
42734
42735         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
42736         from gl_HEADER_STRING_H_BODY.
42737         (gl_HEADER_STRING_H_BODY): Require it.
42738         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
42739         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
42740         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
42741         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
42742         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
42743         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
42744         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
42745         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
42746         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
42747         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
42748         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
42749         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
42750         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
42751         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
42752         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
42753
42754 2007-01-27  Bruno Haible  <bruno@clisp.org>
42755
42756         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
42757         check_PROGRAMS into noinst_PROGRAMS.
42758         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
42759         check_PROGRAMS in this case.
42760         (func_import): Set for_test to false.
42761         (func_create_testdir): Set for_test to true.
42762
42763 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
42764             Bruno Haible  <bruno@clisp.org>
42765
42766         * modules/strcasestr (Files): Remove lib/strcasestr.h.
42767         (Depends-on): Add string.
42768         (Includes): Use <string.h> instead of strcasestr.h.
42769         * modules/string (Makefile.am): Also substitute the value of
42770         REPLACE_STRCASESTR.
42771         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
42772         assume strcasestr is declared in <string.h> not <strings.h>. Also
42773         set REPLACE_STRCASESTR.
42774         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
42775         REPLACE_STRCASESTR.
42776         * lib/strcasestr.h: Remove file.
42777         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
42778         * lib/string_.h (strcasestr): New declaration.
42779
42780 2007-01-27  Bruno Haible  <bruno@clisp.org>
42781
42782         * lib/string_.h: Use 'extern'.
42783
42784 2007-01-27  Jim Meyering  <jim@meyering.net>
42785
42786         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
42787         of set-but-not-used local, "q".
42788
42789         * lib/mempcpy.c: Include <config.h> before <string.h>.
42790         This fixes a compilation error on HP-UX, due to the system's
42791         "restrict"-using mempcpy prototype.
42792
42793 2007-01-26  Bruno Haible  <bruno@clisp.org>
42794
42795         Small optimization.
42796         * lib/javacomp.c: Include c-strstr.h.
42797          (is_envjavac_gcj): Use c_strstr instead of strstr.
42798         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
42799
42800 2007-01-26  Bruno Haible  <bruno@clisp.org>
42801
42802         * MODULES.html.sh (Unicode string functions): Add the new modules.
42803
42804         * modules/uniconv/u32-strconv-to-locale: New file.
42805         * lib/uniconv/u32-strconv-to-locale.c: New file.
42806
42807         * modules/uniconv/u16-strconv-to-locale: New file.
42808         * lib/uniconv/u16-strconv-to-locale.c: New file.
42809
42810         * modules/uniconv/u8-strconv-to-locale: New file.
42811         * lib/uniconv/u8-strconv-to-locale.c: New file.
42812
42813         * modules/uniconv/u32-strconv-from-locale: New file.
42814         * lib/uniconv/u32-strconv-from-locale.c: New file.
42815
42816         * modules/uniconv/u16-strconv-from-locale: New file.
42817         * lib/uniconv/u16-strconv-from-locale.c: New file.
42818
42819         * modules/uniconv/u8-strconv-from-locale: New file.
42820         * lib/uniconv/u8-strconv-from-locale.c: New file.
42821
42822         * modules/uniconv/u32-strconv-to-enc: New file.
42823         * lib/uniconv/u32-strconv-to-enc.c: New file.
42824         * modules/uniconv/u32-strconv-to-enc-tests: New file.
42825         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
42826
42827         * modules/uniconv/u16-strconv-to-enc: New file.
42828         * lib/uniconv/u16-strconv-to-enc.c: New file.
42829         * lib/uniconv/u-strconv-to-enc.h: New file.
42830         * modules/uniconv/u16-strconv-to-enc-tests: New file.
42831         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
42832
42833         * modules/uniconv/u8-strconv-to-enc: New file.
42834         * lib/uniconv/u8-strconv-to-enc.c: New file.
42835         * modules/uniconv/u8-strconv-to-enc-tests: New file.
42836         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
42837
42838         * modules/uniconv/u32-strconv-from-enc: New file.
42839         * lib/uniconv/u32-strconv-from-enc.c: New file.
42840         * modules/uniconv/u32-strconv-from-enc-tests: New file.
42841         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
42842
42843         * modules/uniconv/u16-strconv-from-enc: New file.
42844         * lib/uniconv/u16-strconv-from-enc.c: New file.
42845         * modules/uniconv/u16-strconv-from-enc-tests: New file.
42846         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
42847
42848         * modules/uniconv/u8-strconv-from-enc: New file.
42849         * lib/uniconv/u8-strconv-from-enc.c: New file.
42850         * lib/uniconv/u-strconv-from-enc.h: New file.
42851         * modules/uniconv/u8-strconv-from-enc-tests: New file.
42852         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
42853
42854         * modules/uniconv/u32-conv-from-enc: New file.
42855         * lib/uniconv/u32-conv-from-enc.c: New file.
42856         * modules/uniconv/u32-conv-from-enc-tests: New file.
42857         * tests/uniconv/test-u32-conv-from-enc.c: New file.
42858
42859         * modules/uniconv/u16-conv-from-enc: New file.
42860         * lib/uniconv/u16-conv-from-enc.c: New file.
42861         * lib/uniconv/u-conv-from-enc.h: New file.
42862         * modules/uniconv/u16-conv-from-enc-tests: New file.
42863         * tests/uniconv/test-u16-conv-from-enc.c: New file.
42864
42865         * modules/uniconv/u8-conv-from-enc: New file.
42866         * lib/uniconv/u8-conv-from-enc.c: New file.
42867         * modules/uniconv/u8-conv-from-enc-tests: New file.
42868         * tests/uniconv/test-u8-conv-from-enc.c: New file.
42869
42870         * modules/uniconv/base: New file.
42871         * lib/uniconv.h: New file.
42872
42873 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
42874
42875         * doc/gnulib-tool.texi (Initial import): Update to match current
42876         behavior with strdup module.
42877         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
42878         * lib/memmem.h: Remove; all uses removed.  This is now done
42879         by <string.h>.
42880         * lib/mempcpy.h: Likewise.
42881         * lib/memrchr.h: Likewise.
42882         * lib/stpcpy.h: Likewise.
42883         * lib/stpncpy.h: Likewise.
42884         * lib/strcase.h: Likewise.
42885         * lib/strchrnul.h: Likewise.
42886         * lib/strdup.h: Likewise.
42887         * lib/strndup.h: Likewise.
42888         * lib/strnlen.h: Likewise.
42889         * lib/strpbrk.h: Likewise.
42890         * lib/strsep.h: Likewise.
42891         * lib/strstr.h: Likewise.
42892         * lib/strtok_r.h: Likewise.
42893         * lib/string_.h: New file.
42894         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
42895         Rely on <string.h> instead.
42896         * lib/canon-host.c: Likewise.
42897         * lib/chdir-long.c: Likewise.
42898         * lib/concatpath.c: Likewise.
42899         * lib/exclude.c: Likewise.
42900         * lib/fchdir.c: Likewise.
42901         * lib/getaddrinfo.c: Likewise.
42902         * lib/getcwd.c: Likewise.
42903         * lib/getsubopt.c: Likewise.
42904         * lib/glob.c: Likewise.
42905         * lib/hard-locale.c: Likewise.
42906         * lib/iconvme.c: Likewise.
42907         * lib/javacomp.c: Likewise.
42908         * lib/mempcpy.c: Likewise.
42909         * lib/memrchr.c: Likewise.
42910         * lib/regex_internal.h: Likewise.
42911         * lib/stpncpy.c: Likewise.
42912         * lib/strcasecmp.c: Likewise.
42913         * lib/strchrnul.c: Likewise.
42914         * lib/strdup.c: Likewise.
42915         * lib/striconv.c: Likewise.
42916         * lib/striconveh.c: Likewise.
42917         * lib/striconveha.c: Likewise.
42918         * lib/strncasecmp.c: Likewise.
42919         * lib/strndup.c: Likewise.
42920         * lib/strnlen.c: Likewise.
42921         * lib/strsep.c: Likewise.
42922         * lib/strstr.c: Likewise.
42923         * lib/strtok_r.c: Likewise.
42924         * lib/userspec.c: Likewise.
42925         * lib/w32spawn.h: Likewise.
42926         * lib/xstrndup.c: Likewise.
42927         * lib/mountlist.c (strstr): Remove decl.
42928         * m4/string_h.m4: New file.
42929         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
42930         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
42931         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
42932         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
42933         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
42934         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
42935         Set REPLACE_STRCASECMP if necessary.
42936         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
42937         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
42938         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
42939         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
42940         HAVE_DECL_STRDUP if necessary.
42941         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
42942         since gl_FUNC_STRNDUP does that now.
42943         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
42944         Check for decl here...
42945         (gl_PREREQ_STRNLEN): ... not here.
42946         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
42947         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
42948         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
42949         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
42950         necessary.
42951         * modules/string: New file.
42952         * modules/memmem (Files): Remove special-purpose include file.
42953         (Depends-on): Add string.
42954         (Include): Include <string.h>, not the removed file.
42955         * modules/mempcpy: Likewise.
42956         * modules/memrchr: Likewise.
42957         * modules/stpcpy: Likewise.
42958         * modules/stpncpy: Likewise.
42959         * modules/strcase: Likewise.
42960         * modules/strchrnul: Likewise.
42961         * modules/strdup: Likewise.
42962         * modules/strndup: Likewise.
42963         * modules/strnlen: Likewise.
42964         * modules/strpbrk: Likewise.
42965         * modules/strsep: Likewise.
42966         * modules/strstr: Likewise.
42967         * modules/strtok_r: Likewise.
42968         * tests/test-dirname.c: Don't include "strdup.h", since
42969         <string.h> now suffices.
42970         * tests/test-memmem.c: Don't include "memmem.h", since
42971         <string.h> now suffices.
42972
42973 2007-01-25  Bruno Haible  <bruno@clisp.org>
42974
42975         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
42976         *resultp is 0.
42977
42978         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
42979         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
42980         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
42981         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
42982
42983         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
42984         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
42985         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
42986         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
42987         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
42988         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
42989
42990 2007-01-24  Bruno Haible  <bruno@clisp.org>
42991
42992         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
42993         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
42994         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
42995         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
42996         gl_FUNC_FTS_CORE.
42997         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
42998         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
42999         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
43000         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
43001         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
43002         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
43003         gl_FUNC_FCHOWNAT.
43004         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
43005         gl_FUNC_STRFTIME.
43006         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
43007         Reported by Ralf Wildenhues.
43008
43009 2007-01-24  Bruno Haible  <bruno@clisp.org>
43010
43011         Drop AC_REQUIRE calls that are redundant with the module dependencies.
43012         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
43013         gl_GETADDRINFO.
43014         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
43015         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
43016         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
43017
43018 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
43019
43020         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
43021         Don't use 'exit'; just return from 'main'.
43022         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
43023
43024         * lib/fnmatch_.h: Readjust white space and comments to match
43025         glibc, to avoid spurious diffs.
43026
43027 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
43028
43029         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
43030         2004-12-01 change by Jakub Jelinek, since this code won't compile
43031         if !LIBC.  Problem reported by Bob Proulx.
43032
43033 2007-01-23  Bruno Haible  <bruno@clisp.org>
43034
43035         * lib/striconveh.c: Include c-strcaseeq.h.
43036         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
43037         * modules/striconveh (Depends-on): Add c-strcaseeq.
43038
43039 2007-01-23  Bruno Haible  <bruno@clisp.org>
43040
43041         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
43042
43043         * modules/c-strcaseeq: New file.
43044         * lib/c-strcaseeq.h: New file.
43045
43046         * modules/streq: New file.
43047         * lib/streq.h: New file.
43048
43049 2007-01-23  Bruno Haible  <bruno@clisp.org>
43050
43051         * modules/striconveha-tests: New file.
43052         * tests/test-striconveha.c: New file.
43053
43054         * lib/striconveha.h: Include <stdbool.h>.
43055         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
43056         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
43057         (mem_iconveha_notranslit): Renamed from mem_iconveha.
43058         (mem_iconveha): New function.
43059         (str_iconveha_notranslit): Renamed from str_iconveha.
43060         (str_iconveha): New function.
43061         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
43062         c-strcase.
43063
43064 2007-01-23  Bruno Haible  <bruno@clisp.org>
43065
43066         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
43067         encodings without forgiving before trying any encoding with handler.
43068         (str_iconveha): Try all encodings without forgiving before trying any
43069         encoding with handler.
43070
43071 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
43072
43073         Import the following changes from libc.
43074
43075         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
43076
43077         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
43078
43079         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
43080
43081         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
43082         normal_bracket label.
43083
43084         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
43085
43086         [BZ #361]
43087         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
43088         to normal_bracket after fetching the next character.
43089
43090 2007-01-22  Bruno Haible  <bruno@clisp.org>
43091
43092         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
43093         argument.
43094         * lib/striconveh.c (iconv_carefully_1): New function.
43095         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
43096         argument.
43097         (str_cd_iconveh): Update.
43098         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
43099         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
43100         * tests/test-striconveh.c (MAGIC): New macro.
43101         (new_offsets): New function.
43102         (main): Test call with and without offsets.
43103
43104 2007-01-22  Bruno Haible  <bruno@clisp.org>
43105
43106         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
43107         * modules/sys_select (Makefile.am): Likewise.
43108         * modules/sys_socket (Makefile.am): Likewise.
43109         * modules/sys_time (Makefile.am): Likewise.
43110
43111 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
43112
43113         * modules/gettimeofday (License): Change from GPL to LGPL, since
43114         gettimeofday is a library function.
43115
43116 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43117
43118         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
43119
43120 2007-01-21  Bruno Haible  <bruno@clisp.org>
43121
43122         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
43123
43124 2007-01-21  Bruno Haible  <bruno@clisp.org>
43125
43126         * modules/striconveha: New file.
43127         * lib/striconveha.h: New file.
43128         * lib/striconveha.c: New file.
43129         * MODULES.html.sh (Internationalization functions): Add striconveha.
43130         * lib/striconv.c (str_iconv): Optimize the case of an empty input
43131         string.
43132         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
43133
43134 2007-01-21  Bruno Haible  <bruno@clisp.org>
43135
43136         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
43137         * lib/striconveh.c (str_iconveh): Likewise.
43138
43139 2007-01-21  Bruno Haible  <bruno@clisp.org>
43140
43141         * lib/striconveh.h (mem_iconveh): New declaration.
43142         * lib/striconveh.c (mem_iconveh): New function.
43143         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
43144
43145 2007-01-21  Bruno Haible  <bruno@clisp.org>
43146
43147         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
43148
43149         * lib/striconveh.h (mem_cd_iconveh): Change specification.
43150         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
43151         original result buffer.
43152         (str_cd_iconveh): Update.
43153         * tests/test-striconveh.c (main): Update.
43154
43155         * lib/striconv.h (mem_cd_iconv): Change specification.
43156         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
43157         result buffer.
43158         (str_cd_iconv): Update.
43159         * tests/test-striconv.c (main): Update.
43160
43161 2007-01-21  Bruno Haible  <bruno@clisp.org>
43162
43163         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
43164
43165 2007-01-20  Jim Meyering  <jim@meyering.net>
43166
43167         * lib/userspec.c (parse_with_separator): If a user or group string
43168         starts with "+", skip the corresponding name-to-ID look-up, since
43169         such a look-up must fail: user and group names may not include "+".
43170
43171 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
43172
43173         * lib/poll.c: Include sys/time.h and time.h unconditionally,
43174         since we now assume the sys_time module.
43175         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
43176         check for sys/time.h; no longer needed.
43177         * modules/poll (Depends-on): Depend on sys_time.
43178
43179 2007-01-18  Bruno Haible  <bruno@clisp.org>
43180
43181         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
43182         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
43183
43184         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
43185         gettimeofday.
43186
43187         * tests/test-gettimeofday.c: Include <time.h>.
43188         (dummy): Remove variable.
43189
43190         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
43191         gl_HEADER_SYS_TIME_H.
43192         (gl_HEADER_SYS_TIME_H): New macro.
43193
43194         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
43195         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
43196         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
43197         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
43198         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
43199         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
43200         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
43201         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
43202         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
43203         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
43204         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
43205
43206         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
43207         last change; it caused a compilation error when cross-compiling to
43208         Cygwin.
43209
43210 2007-01-18  Jim Meyering  <jim@meyering.net>
43211
43212         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
43213         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
43214         than the race-prone "test -d sys || mkdir sys".
43215         (configure.ac): Use AC_PROG_MKDIR_P.
43216         * modules/sys_select: Likewise.
43217         * modules/sys_socket: Likewise.
43218         * modules/sys_time: Likewise.
43219
43220 2007-01-18  Eric Blake  <ebb9@byu.net>
43221
43222         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
43223         replace gettimeofday.
43224         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
43225         name, to avoid infinite recursion.
43226
43227 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
43228
43229         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
43230         module sys_time.
43231         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
43232         assume timespec.h defines struct timeval.
43233         * lib/settime.c: Likewise.
43234         * lib/utimens.c: Likewise.
43235         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
43236         since we now assume the gettimeofday module.
43237         * lib/tempname.c (__gen_tempname): Likewise.
43238         * lib/gettimeofday.h: Remove.
43239         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
43240         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
43241         Include <time.h>, for 'time()'.
43242         (localtime_buffer_addr): Also use this workaround if
43243         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
43244         to simplify the uses.  All uses changed.
43245         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
43246         that #undef is inside {}, and 'const' follows type name consistently.
43247         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
43248         (gettimeofday): Do not use the maximum possible value for
43249         tv->tv_usec, since that might break usages other than ls.c.
43250         Instead, we'll leave ls.c alone.  This undoes today's patch
43251         by Bruno.  Add a compile-time warning for 1s-clock resolution;
43252         we've never observed the problem but might as well keep the
43253         canary.
43254         * lib/nanosleep.c: Include timespec.h first, for interface check.
43255         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
43256         now assume the sys_time module.
43257         * lib/tempname.c: Likewise.
43258         * lib/timespec.h: Likewise.
43259         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
43260         needed.
43261         * lib/strftime.c: Likewise.
43262         * lib/timespec.h: Likewise.
43263         * lib/posixtm.c: Include posixtm.h first, for interface check.
43264         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
43265         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
43266         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
43267         * lib/sys_time_.h: New file.
43268         * lib/timespec.h (struct timespec): Use long int, not long.
43269         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
43270         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
43271         Remove obsolescent call to AC_HEADER_TIME.
43272         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
43273         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
43274         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
43275         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
43276         Likewise.
43277         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
43278         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
43279         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
43280         into the sys_time module.  Check for gettimeofday just once.
43281         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
43282         for gettimeofday signature to just check the signature.  Merely
43283         compile it, since linking doesn't test signature.  Improve test for
43284         whether gettimeofday.o is actually needed.
43285         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
43286         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
43287         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
43288         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
43289         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
43290         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
43291         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
43292         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
43293         than worrying about sys/time.h.
43294         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
43295         Don't bother worrying about TIME_WITH_SYS_TIME.
43296         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
43297         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
43298         * m4/sys_time_h.m4: New file.
43299         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
43300         Don't include sys/time.h.  Return from main rather than exiting.
43301         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
43302         all uses changed.
43303         * modules/gethrxtime (Depends-on): Add sys_time.
43304         * modules/gettime (Depends-on): Likewise.
43305         * modules/gettimeofday (Depends-on): Likewise.
43306         * modules/nanosleep (Depends-on): Likewise.
43307         * modules/settime (Depends-on): Likewise.
43308         * modules/tempname (Depends-on): Likewise.
43309         * modules/utimens (Depends-on): Likewise.
43310         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
43311         (Include:) Change back to <sys/time.h>.
43312         (Maintainer:) Add self.
43313         * modules/sys_time: New file.
43314         * modules/tempname (Depends-on): Add gettimeofday.
43315         * tests/test-gettimeofday.c: Include <sys/time.h>
43316         rather than gettimeofday.h.
43317
43318 2007-01-17  Bruno Haible  <bruno@clisp.org>
43319
43320         * gnulib-tool (func_get_license): Revert last patch. Instead, let
43321         the license default to GPL.
43322         (func_create_testdir): Don't complain if a module is LGPL and its
43323         tests module depends on GPLed modules.
43324
43325 2007-01-17  Bruno Haible  <bruno@clisp.org>
43326
43327         * lib/gettimeofday.c (gettimeofday): Add code for the case
43328         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
43329         maximum possible value for tv->tv_usec, rather than the minimum one.
43330
43331 2005-10-08  Martin Lambers  <marlam@marlam.de>
43332 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
43333 2007-01-16  Bruno Haible  <bruno@clisp.org>
43334
43335         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
43336         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
43337         gl_FUNC_GETTIMEOFDAY.
43338         (Include): Add gettimeofday.h.
43339         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
43340         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
43341         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
43342         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
43343         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
43344         * lib/gettimeofday.h: New file.
43345         * lib/gettimeofday.c: Include <sys/timeb.h>.
43346         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
43347         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
43348         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
43349         fall back on time().
43350
43351         * tests/test-gettimeofday.c: New file.
43352         * modules/gettimeofday-tests: New file.
43353
43354 2007-01-16  Eric Blake  <ebb9@byu.net>
43355
43356         * modules/fnmatch (Depends-on): Depend on wchar.
43357         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
43358         * m4/fnmatch.m4: Likewise.
43359         * modules/mbchar (Makefile.am): Assume <wchar.h>.
43360         * m4/mbchar.m4: Likewise.
43361         * modules/mbswidth (Depends-on): Depend on wchar.
43362         * lib/mbswidth.c: Assume <wchar.h>.
43363         * m4/mbswidth.m4: Likewise.
43364         * modules/quotearg (Depends-on): Depend on wchar.
43365         * lib/quotearg.c: Assume <wchar.h>.
43366         * m4/quotearg.m4: Likewise.
43367         * modules/regex (Depends-on): Depend on wchar.
43368         * lib/regex_internal.h: Assume <wchar.h>.
43369         * m4/regex.m4: Likewise.
43370         * modules/stdint (Depends-on): Depend on wchar.
43371         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
43372         * m4/stdint.m4: Likewise.
43373         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
43374         * modules/strftime (Depends-on): Depend on wchar.
43375         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
43376         * modules/strtol (Depends-on): Depend on wchar.
43377         * lib/strtol.c: Assume <wchar.h>.
43378         * modules/wcwidth (Depends-on): Depend on wchar.
43379         * lib/wcwidth.h: Assume <wchar.h>.
43380         * m4/wcwidth.m4: Likewise.
43381
43382 2007-01-16  Bruno Haible  <bruno@clisp.org>
43383
43384         * modules/csharpexec-script: New, created from...
43385         * modules/csharpexec: ... this.
43386
43387 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
43388
43389         * modules/javaexec-script: New, created from...
43390         * modules/javaexec: ... this.
43391
43392 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43393
43394         * modules/poll (Dependencies): Add sys_select.
43395
43396 2007-01-15  Jim Meyering  <jim@meyering.net>
43397
43398         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
43399         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
43400         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
43401         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
43402
43403 2007-01-15  Bruno Haible  <bruno@clisp.org>
43404
43405         * modules/striconveh: New file.
43406         * lib/striconveh.h: New file.
43407         * lib/striconveh.c: New file.
43408         * MODULES.html.sh (Internationalization functions): Add striconveh.
43409
43410         * modules/striconveh-tests: New file.
43411         * tests/test-striconveh.c: New file.
43412
43413 2007-01-15  Bruno Haible  <bruno@clisp.org>
43414
43415         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
43416         not from GNU libiconv or GNU libc.
43417
43418 2007-01-15  Bruno Haible  <bruno@clisp.org>
43419
43420         * doc/gnulib-intro.texi (Copyright): Explain the different license
43421         terms for module descriptions, autoconf macros, tests, documentation.
43422
43423 2007-01-14  Bruno Haible  <bruno@clisp.org>
43424
43425         * modules/striconv-tests: New file.
43426         * tests/test-striconv.c: New file.
43427
43428 2007-01-14  Bruno Haible  <bruno@clisp.org>
43429
43430         * modules/iconv-tests: New file.
43431         * tests/test-iconv.c: New file.
43432
43433 2007-01-14  Bruno Haible  <bruno@clisp.org>
43434
43435         * gnulib-tool (func_get_license): For test modules, use the license of
43436         the main module.
43437
43438 2007-01-14  Bruno Haible  <bruno@clisp.org>
43439
43440         * modules/iconv (Include): Clarify that <iconv.h> can only be included
43441         if iconv is found to exist.
43442
43443 2007-01-14  Bruno Haible  <bruno@clisp.org>
43444
43445         * modules/c-ctype-tests: New file.
43446         * tests/test-c-ctype.c: New file.
43447
43448 2007-01-14  Bruno Haible  <bruno@clisp.org>
43449
43450         * modules/binary-io-tests: New file.
43451         * tests/test-binary-io.sh: New file.
43452         * tests/test-binary-io.c: New file.
43453
43454 2007-01-14  Bruno Haible  <bruno@clisp.org>
43455
43456         * modules/array-oset-tests: New file.
43457         * tests/test-array_oset.c: New file.
43458
43459 2007-01-14  Bruno Haible  <bruno@clisp.org>
43460
43461         * modules/array-list-tests: New file.
43462         * tests/test-array_list.c: New file.
43463
43464 2007-01-14  Bruno Haible  <bruno@clisp.org>
43465
43466         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
43467         and make.
43468         Reported by Simon Josefsson in
43469         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
43470
43471 2007-01-14  Bruno Haible  <bruno@clisp.org>
43472
43473         * modules/allocsa-tests: New file.
43474         * tests/test-allocsa.c: New file.
43475
43476 2007-01-14  Bruno Haible  <bruno@clisp.org>
43477
43478         * modules/fchdir (Depends-on): Add absolute-header.
43479         * modules/unistd (Depends-on): Likewise.
43480
43481 2006-12-30  Bruno Haible  <bruno@clisp.org>
43482
43483         * modules/fchdir: New file.
43484         * modules/unistd (Files): Add lib/unistd_.h.
43485         (Makefile.am): Generate unistd.h from unistd_.h.
43486         * lib/fchdir.c: New file.
43487         * lib/dirent_.h: New file.
43488         * lib/unistd_.h: New file.
43489         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
43490         * m4/fchdir.m4: New file.
43491         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
43492         (gl_HEADER_UNISTD): Invoke it.
43493         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
43494         function.
43495         * lib/backupfile.c (opendir, closedir): Undefine.
43496         * lib/chown.c (open, close): Undefine.
43497         * lib/clean-temp.c (open, close): Undefine.
43498         * lib/copy-file.c (open, close): Undefine.
43499         * lib/execute.c (open, close): Undefine.
43500         * lib/fsusage.c (open, close): Undefine.
43501         * lib/gc-gnulib.c (open, close): Undefine.
43502         * lib/getcwd.c (opendir, closedir): Undefine.
43503         * lib/glob.c (opendir, closedir): Undefine.
43504         * lib/javacomp.c (open, close): Undefine.
43505         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
43506         * lib/openat-proc.c (open, close): Undefine.
43507         * lib/pagealign_alloc.c (open, close): Undefine.
43508         * lib/pipe.c (open, close): Undefine.
43509         * lib/progreloc.c (open, close): Undefine.
43510         * lib/savedir.c (opendir, closedir): Undefine.
43511         * lib/utime.c (open, close): Undefine.
43512         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
43513
43514 2007-01-10  Bruno Haible  <bruno@clisp.org>
43515
43516         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
43517
43518 2007-01-12  Eric Blake  <ebb9@byu.net>
43519
43520         Provide a robust <wchar.h>.  Further simplifications are now
43521         possible in other modules, but not included here.
43522         * modules/wchar: New module.
43523         * m4/wchar.m4: New file.
43524         * lib/wchar_.h: Likewise.
43525         * modules/mbchar (Depends-on): Depend on wchar, as the first use
43526         of the new module.
43527         * MODULES.html.sh (Extended multibyte and wide character utilities):
43528         New section.
43529
43530 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
43531
43532         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
43533         to a reasonable default for memory allocation.
43534         (xreadlink): Don't allocate a huge buffer, to work around a buggy
43535         file system that reports garbage st_size values for symlinks.
43536         Problem reported by Liyang Hu.
43537
43538 2007-01-11  Simon Josefsson  <simon@josefsson.org>
43539
43540         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
43541         Emacs .#* auto-save files).
43542
43543 2007-01-11  Bruno Haible  <bruno@clisp.org>
43544
43545         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
43546         directory.
43547
43548 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
43549
43550         Use @...@ consistently in lib/wctype_.h.
43551         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
43552         on it being set to 1 or 0.
43553         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
43554         go back to AC_SUBSTing it.
43555         * modules/wctype (Makefile.am): Undo previous change.
43556
43557 2007-01-10  Eric Blake  <ebb9@byu.net>
43558
43559         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
43560         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
43561         * modules/wctype (Makefile.am): Likewise.
43562         Reported by Chris McGuire.
43563
43564 2007-01-10  Jim Meyering  <jim@meyering.net>
43565
43566         fts.c: a small readability/maintainability improvement
43567         * lib/fts.c (fts_read): Make this code slightly more readable and
43568         maintainable by hoisting the "sp->fts_cur = p" assignments to
43569         immediately follow the statements that set P.  Derived from
43570         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
43571
43572 2007-01-10  Eric Blake  <ebb9@byu.net>
43573
43574         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
43575         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
43576         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
43577         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
43578         Reported by Chris McGuire.
43579
43580 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43581
43582         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
43583         in sed script.
43584
43585 2007-01-09  Bruno Haible  <bruno@clisp.org>
43586
43587         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
43588         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
43589         variables.
43590         (func_module): Use them.
43591
43592 2007-01-09  Bruno Haible  <bruno@clisp.org>
43593
43594         * modules/unistr/base: New file.
43595         * lib/unistr.h: New file.
43596
43597         * modules/unistr/u8-to-u16: New file.
43598         * lib/unistr/u8-to-u16.c: New file.
43599
43600         * modules/unistr/u8-to-u32: New file.
43601         * lib/unistr/u8-to-u32.c: New file.
43602
43603         * modules/unistr/u16-to-u8: New file.
43604         * lib/unistr/u16-to-u8.c: New file.
43605
43606         * modules/unistr/u16-to-u32: New file.
43607         * lib/unistr/u16-to-u32.c: New file.
43608
43609         * modules/unistr/u32-to-u8: New file.
43610         * lib/unistr/u32-to-u8.c: New file.
43611
43612         * modules/unistr/u32-to-u16: New file.
43613         * lib/unistr/u32-to-u16.c: New file.
43614
43615         * modules/unistr/u8-check: New file.
43616         * modules/unistr/u16-check: New file.
43617         * modules/unistr/u32-check: New file.
43618         * lib/unistr/u8-check.c: New file.
43619         * lib/unistr/u16-check.c: New file.
43620         * lib/unistr/u32-check.c: New file.
43621
43622         * modules/unistr/u8-chr: New file.
43623         * modules/unistr/u16-chr: New file.
43624         * modules/unistr/u32-chr: New file.
43625         * lib/unistr/u8-chr.c: New file.
43626         * lib/unistr/u16-chr.c: New file.
43627         * lib/unistr/u32-chr.c: New file.
43628
43629         * modules/unistr/u8-cmp: New file.
43630         * modules/unistr/u16-cmp: New file.
43631         * modules/unistr/u32-cmp: New file.
43632         * lib/unistr/u8-cmp.c: New file.
43633         * lib/unistr/u16-cmp.c: New file.
43634         * lib/unistr/u32-cmp.c: New file.
43635
43636         * modules/unistr/u8-cpy: New file.
43637         * modules/unistr/u16-cpy: New file.
43638         * modules/unistr/u32-cpy: New file.
43639         * lib/unistr/u8-cpy.c: New file.
43640         * lib/unistr/u16-cpy.c: New file.
43641         * lib/unistr/u32-cpy.c: New file.
43642         * lib/unistr/u-cpy.h: New file.
43643
43644         * modules/unistr/u8-cpy-alloc: New file.
43645         * modules/unistr/u16-cpy-alloc: New file.
43646         * modules/unistr/u32-cpy-alloc: New file.
43647         * lib/unistr/u8-cpy-alloc.c: New file.
43648         * lib/unistr/u16-cpy-alloc.c: New file.
43649         * lib/unistr/u32-cpy-alloc.c: New file.
43650         * lib/unistr/u-cpy-alloc.h: New file.
43651
43652         * modules/unistr/u8-endswith: New file.
43653         * modules/unistr/u16-endswith: New file.
43654         * modules/unistr/u32-endswith: New file.
43655         * lib/unistr/u8-endswith.c: New file.
43656         * lib/unistr/u16-endswith.c: New file.
43657         * lib/unistr/u32-endswith.c: New file.
43658         * lib/unistr/u-endswith.h: New file.
43659
43660         * modules/unistr/u8-mblen: New file.
43661         * modules/unistr/u16-mblen: New file.
43662         * modules/unistr/u32-mblen: New file.
43663         * lib/unistr/u8-mblen.c: New file.
43664         * lib/unistr/u16-mblen.c: New file.
43665         * lib/unistr/u32-mblen.c: New file.
43666
43667         * modules/unistr/u8-mbtouc: New file.
43668         * modules/unistr/u16-mbtouc: New file.
43669         * modules/unistr/u32-mbtouc: New file.
43670         * lib/unistr/u8-mbtouc.c: New file.
43671         * lib/unistr/u16-mbtouc.c: New file.
43672         * lib/unistr/u32-mbtouc.c: New file.
43673
43674         * modules/unistr/u8-mbtouc-safe: New file.
43675         * modules/unistr/u16-mbtouc-safe: New file.
43676         * modules/unistr/u32-mbtouc-safe: New file.
43677         * lib/unistr/u8-mbtouc-safe.c: New file.
43678         * lib/unistr/u16-mbtouc-safe.c: New file.
43679         * lib/unistr/u32-mbtouc-safe.c: New file.
43680
43681         * modules/unistr/u8-move: New file.
43682         * modules/unistr/u16-move: New file.
43683         * modules/unistr/u32-move: New file.
43684         * lib/unistr/u8-move.c: New file.
43685         * lib/unistr/u16-move.c: New file.
43686         * lib/unistr/u32-move.c: New file.
43687         * lib/unistr/u-move.h: New file.
43688
43689         * modules/unistr/u8-next: New file.
43690         * modules/unistr/u16-next: New file.
43691         * modules/unistr/u32-next: New file.
43692         * lib/unistr/u8-next.c: New file.
43693         * lib/unistr/u16-next.c: New file.
43694         * lib/unistr/u32-next.c: New file.
43695
43696         * modules/unistr/u8-prev: New file.
43697         * modules/unistr/u16-prev: New file.
43698         * modules/unistr/u32-prev: New file.
43699         * lib/unistr/u8-prev.c: New file.
43700         * lib/unistr/u16-prev.c: New file.
43701         * lib/unistr/u32-prev.c: New file.
43702
43703         * modules/unistr/u8-set: New file.
43704         * modules/unistr/u16-set: New file.
43705         * modules/unistr/u32-set: New file.
43706         * lib/unistr/u8-set.c: New file.
43707         * lib/unistr/u16-set.c: New file.
43708         * lib/unistr/u32-set.c: New file.
43709         * lib/unistr/u-set.h: New file.
43710
43711         * modules/unistr/u8-startswith: New file.
43712         * modules/unistr/u16-startswith: New file.
43713         * modules/unistr/u32-startswith: New file.
43714         * lib/unistr/u8-startswith.c: New file.
43715         * lib/unistr/u16-startswith.c: New file.
43716         * lib/unistr/u32-startswith.c: New file.
43717         * lib/unistr/u-startswith.h: New file.
43718
43719         * modules/unistr/u8-stpcpy: New file.
43720         * modules/unistr/u16-stpcpy: New file.
43721         * modules/unistr/u32-stpcpy: New file.
43722         * lib/unistr/u8-stpcpy.c: New file.
43723         * lib/unistr/u16-stpcpy.c: New file.
43724         * lib/unistr/u32-stpcpy.c: New file.
43725         * lib/unistr/u-stpcpy.h: New file.
43726
43727         * modules/unistr/u8-stpncpy: New file.
43728         * modules/unistr/u16-stpncpy: New file.
43729         * modules/unistr/u32-stpncpy: New file.
43730         * lib/unistr/u8-stpncpy.c: New file.
43731         * lib/unistr/u16-stpncpy.c: New file.
43732         * lib/unistr/u32-stpncpy.c: New file.
43733         * lib/unistr/u-stpncpy.h: New file.
43734
43735         * modules/unistr/u8-strcat: New file.
43736         * modules/unistr/u16-strcat: New file.
43737         * modules/unistr/u32-strcat: New file.
43738         * lib/unistr/u8-strcat.c: New file.
43739         * lib/unistr/u16-strcat.c: New file.
43740         * lib/unistr/u32-strcat.c: New file.
43741         * lib/unistr/u-strcat.h: New file.
43742
43743         * modules/unistr/u8-strchr: New file.
43744         * modules/unistr/u16-strchr: New file.
43745         * modules/unistr/u32-strchr: New file.
43746         * lib/unistr/u8-strchr.c: New file.
43747         * lib/unistr/u16-strchr.c: New file.
43748         * lib/unistr/u32-strchr.c: New file.
43749
43750         * modules/unistr/u8-strcmp: New file.
43751         * modules/unistr/u16-strcmp: New file.
43752         * modules/unistr/u32-strcmp: New file.
43753         * lib/unistr/u8-strcmp.c: New file.
43754         * lib/unistr/u16-strcmp.c: New file.
43755         * lib/unistr/u32-strcmp.c: New file.
43756
43757         * modules/unistr/u8-strcpy: New file.
43758         * modules/unistr/u16-strcpy: New file.
43759         * modules/unistr/u32-strcpy: New file.
43760         * lib/unistr/u8-strcpy.c: New file.
43761         * lib/unistr/u16-strcpy.c: New file.
43762         * lib/unistr/u32-strcpy.c: New file.
43763         * lib/unistr/u-strcpy.h: New file.
43764
43765         * modules/unistr/u8-strcspn: New file.
43766         * modules/unistr/u16-strcspn: New file.
43767         * modules/unistr/u32-strcspn: New file.
43768         * lib/unistr/u8-strcspn.c: New file.
43769         * lib/unistr/u16-strcspn.c: New file.
43770         * lib/unistr/u32-strcspn.c: New file.
43771         * lib/unistr/u-strcspn.h: New file.
43772
43773         * modules/unistr/u8-strdup: New file.
43774         * modules/unistr/u16-strdup: New file.
43775         * modules/unistr/u32-strdup: New file.
43776         * lib/unistr/u8-strdup.c: New file.
43777         * lib/unistr/u16-strdup.c: New file.
43778         * lib/unistr/u32-strdup.c: New file.
43779         * lib/unistr/u-strdup.h: New file.
43780
43781         * modules/unistr/u8-strlen: New file.
43782         * modules/unistr/u16-strlen: New file.
43783         * modules/unistr/u32-strlen: New file.
43784         * lib/unistr/u8-strlen.c: New file.
43785         * lib/unistr/u16-strlen.c: New file.
43786         * lib/unistr/u32-strlen.c: New file.
43787         * lib/unistr/u-strlen.h: New file.
43788
43789         * modules/unistr/u8-strmblen: New file.
43790         * modules/unistr/u16-strmblen: New file.
43791         * modules/unistr/u32-strmblen: New file.
43792         * lib/unistr/u8-strmblen.c: New file.
43793         * lib/unistr/u16-strmblen.c: New file.
43794         * lib/unistr/u32-strmblen.c: New file.
43795
43796         * modules/unistr/u8-strmbtouc: New file.
43797         * modules/unistr/u16-strmbtouc: New file.
43798         * modules/unistr/u32-strmbtouc: New file.
43799         * lib/unistr/u8-strmbtouc.c: New file.
43800         * lib/unistr/u16-strmbtouc.c: New file.
43801         * lib/unistr/u32-strmbtouc.c: New file.
43802
43803         * modules/unistr/u8-strncat: New file.
43804         * modules/unistr/u16-strncat: New file.
43805         * modules/unistr/u32-strncat: New file.
43806         * lib/unistr/u8-strncat.c: New file.
43807         * lib/unistr/u16-strncat.c: New file.
43808         * lib/unistr/u32-strncat.c: New file.
43809         * lib/unistr/u-strncat.h: New file.
43810
43811         * modules/unistr/u8-strncmp: New file.
43812         * modules/unistr/u16-strncmp: New file.
43813         * modules/unistr/u32-strncmp: New file.
43814         * lib/unistr/u8-strncmp.c: New file.
43815         * lib/unistr/u16-strncmp.c: New file.
43816         * lib/unistr/u32-strncmp.c: New file.
43817
43818         * modules/unistr/u8-strncpy: New file.
43819         * modules/unistr/u16-strncpy: New file.
43820         * modules/unistr/u32-strncpy: New file.
43821         * lib/unistr/u8-strncpy.c: New file.
43822         * lib/unistr/u16-strncpy.c: New file.
43823         * lib/unistr/u32-strncpy.c: New file.
43824         * lib/unistr/u-strncpy.h: New file.
43825
43826         * modules/unistr/u8-strnlen: New file.
43827         * modules/unistr/u16-strnlen: New file.
43828         * modules/unistr/u32-strnlen: New file.
43829         * lib/unistr/u8-strnlen.c: New file.
43830         * lib/unistr/u16-strnlen.c: New file.
43831         * lib/unistr/u32-strnlen.c: New file.
43832         * lib/unistr/u-strnlen.h: New file.
43833
43834         * modules/unistr/u8-strpbrk: New file.
43835         * modules/unistr/u16-strpbrk: New file.
43836         * modules/unistr/u32-strpbrk: New file.
43837         * lib/unistr/u8-strpbrk.c: New file.
43838         * lib/unistr/u16-strpbrk.c: New file.
43839         * lib/unistr/u32-strpbrk.c: New file.
43840         * lib/unistr/u-strpbrk.h: New file.
43841
43842         * modules/unistr/u8-strrchr: New file.
43843         * modules/unistr/u16-strrchr: New file.
43844         * modules/unistr/u32-strrchr: New file.
43845         * lib/unistr/u8-strrchr.c: New file.
43846         * lib/unistr/u16-strrchr.c: New file.
43847         * lib/unistr/u32-strrchr.c: New file.
43848
43849         * modules/unistr/u8-strspn: New file.
43850         * modules/unistr/u16-strspn: New file.
43851         * modules/unistr/u32-strspn: New file.
43852         * lib/unistr/u8-strspn.c: New file.
43853         * lib/unistr/u16-strspn.c: New file.
43854         * lib/unistr/u32-strspn.c: New file.
43855         * lib/unistr/u-strspn.h: New file.
43856
43857         * modules/unistr/u8-strstr: New file.
43858         * modules/unistr/u16-strstr: New file.
43859         * modules/unistr/u32-strstr: New file.
43860         * lib/unistr/u8-strstr.c: New file.
43861         * lib/unistr/u16-strstr.c: New file.
43862         * lib/unistr/u32-strstr.c: New file.
43863         * lib/unistr/u-strstr.h: New file.
43864
43865         * modules/unistr/u8-strtok: New file.
43866         * modules/unistr/u16-strtok: New file.
43867         * modules/unistr/u32-strtok: New file.
43868         * lib/unistr/u8-strtok.c: New file.
43869         * lib/unistr/u16-strtok.c: New file.
43870         * lib/unistr/u32-strtok.c: New file.
43871         * lib/unistr/u-strtok.h: New file.
43872
43873         * modules/unistr/u8-uctomb: New file.
43874         * modules/unistr/u16-uctomb: New file.
43875         * modules/unistr/u32-uctomb: New file.
43876         * lib/unistr/u8-uctomb.c: New file.
43877         * lib/unistr/u16-uctomb.c: New file.
43878         * lib/unistr/u32-uctomb.c: New file.
43879
43880         * MODULES.html.sh (Unicode string functions): Add the new modules.
43881
43882 2007-01-08  Bruno Haible  <bruno@clisp.org>
43883
43884         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
43885         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
43886         subdirectories.
43887
43888 2007-01-08  Karl Berry  <karl@gnu.org>
43889
43890         * doc/error.texi: mention that main() fns must set program_name
43891         when progname is used.
43892
43893 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
43894
43895         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
43896         WCTYPE_H is empty, for the benefit of builds from non-distclean
43897         directories.  Problem reported by Eric Blake in
43898         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
43899
43900 2007-01-08  Bruno Haible  <bruno@clisp.org>
43901
43902         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
43903         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
43904         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
43905         PROVIDE_CANONICALIZE_FILENAME_MODE.
43906         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
43907
43908 2007-01-08  Bruno Haible  <bruno@clisp.org>
43909
43910         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
43911         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
43912         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
43913         * lib/fts.c: Likewise.
43914         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
43915
43916 2006-12-25  Bruno Haible  <bruno@clisp.org>
43917
43918         * modules/utf8-ucs4-safe: New file.
43919         * lib/utf8-ucs4-safe.h: New file.
43920         * lib/unistr/utf8-ucs4-safe.c: New file.
43921
43922         * modules/utf16-ucs4-safe: New file.
43923         * lib/utf16-ucs4-safe.h: New file.
43924         * lib/unistr/utf16-ucs4-safe.c: New file.
43925
43926         * MODULES.html.sh (Unicode string functions): Add the new modules.
43927
43928 2007-01-08  Bruno Haible  <bruno@clisp.org>
43929
43930         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
43931         (Depends-on): Add unitypes.
43932         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
43933         (u8_mbtouc_aux): Move out to separate file.
43934         (u8_mbtouc): Use ucs4_t, uint8_t types.
43935         * lib/unistr/utf8-ucs4.c: New file.
43936
43937         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
43938         (Depends-on): Add unitypes.
43939         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
43940         (u16_mbtouc_aux): Move out to separate file.
43941         (u16_mbtouc): Use ucs4_t, uint16_t types.
43942         * lib/unistr/utf16-ucs4.c: New file.
43943
43944         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
43945         (Depends-on): Add unitypes.
43946         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
43947         (u8_uctomb_aux): Move out to separate file.
43948         (u8_uctomb): Use ucs4_t, uint8_t types.
43949         * lib/unistr/ucs4-utf8.c: New file.
43950
43951         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
43952         (Depends-on): Add unitypes.
43953         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
43954         (u16_uctomb_aux): Move out to separate file.
43955         (u16_uctomb): Use ucs4_t, uint16_t types.
43956         * lib/unistr/ucs4-utf16.c: New file.
43957
43958 2006-12-25  Bruno Haible  <bruno@clisp.org>
43959
43960         * modules/unitypes: New file.
43961         * lib/unitypes.h: New file.
43962         * MODULES.html.sh (func_all_modules): New section "Unicode string
43963         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
43964         this section. Add unitypes.
43965
43966 2007-01-08  Bruno Haible  <bruno@clisp.org>
43967
43968         Avoid variable names that conflict with those from libtool.
43969         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
43970         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
43971         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
43972         library_names_spec to acl_library_names_spec, hardcode_* to
43973         acl_hardcode_*.
43974         Reported by Ralf Wildenhues.
43975
43976 2007-01-08  Bruno Haible  <bruno@clisp.org>
43977
43978         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
43979         definition.
43980         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
43981         definition.
43982         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
43983         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
43984         definition.
43985         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
43986         definition.
43987         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
43988         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
43989         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
43990         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
43991         definition.
43992         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
43993         definition.
43994         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
43995         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
43996         GC_USE_<algorithm>.
43997         * lib/gc-libgcrypt.c: Likewise.
43998         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
43999         * modules/gc-arctwo (configure.ac): Likewise.
44000         * modules/gc-des (configure.ac): Likewise.
44001         * modules/gc-hmac-md5 (configure.ac): Likewise.
44002         * modules/gc-hmac-sha1 (configure.ac): Likewise.
44003         * modules/gc-md2 (configure.ac): Likewise.
44004         * modules/gc-md4 (configure.ac): Likewise.
44005         * modules/gc-md5 (configure.ac): Likewise.
44006         * modules/gc-random (configure.ac): Likewise.
44007         * modules/gc-rijndael (configure.ac): Likewise.
44008         * modules/gc-sha1 (configure.ac): Likewise.
44009
44010 2007-01-08  Bruno Haible  <bruno@clisp.org>
44011
44012         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
44013         macro definition.
44014         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
44015         definition.
44016         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
44017         definition.
44018         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
44019         * modules/fcntl-safer (configure.ac): Likewise.
44020         * modules/fopen-safer (configure.ac): Likewise.
44021         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
44022         GNULIB_FWRITEERROR macro definition.
44023
44024 2007-01-08  Bruno Haible  <bruno@clisp.org>
44025
44026         * m4/gnulib-common.m4: New file.
44027         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
44028         (func_get_filelist): Add m4/gnulib-common.m4.
44029
44030 2007-01-08  Bruno Haible  <bruno@clisp.org>
44031
44032         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
44033         command.
44034
44035 2007-01-08  Jim Meyering  <jim@meyering.net>
44036
44037         Use a more robust test for a "can't happen" condition.
44038         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
44039         narrowed the st_size value.  Presuming the "can't happen" condition
44040         is true, that narrowing could conceivably convert an invalid st_size
44041         value into a valid one.  Instead, use a change based on Matthew
44042         Woehlke's original patch.
44043
44044         Slight readability improvement: use an assert-like macro
44045         in place of literal "abort ()" uses.
44046         * lib/fts.c (fts_assert): Define.
44047         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
44048         Use this macro instead of a bare 'abort'.
44049
44050 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
44051
44052         Don't worry about using IRIX 5.3's wctype.h broken definitions;
44053         simply work around them.
44054         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
44055         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
44056         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
44057         declaring.
44058         Don't bother to define as macros, since the standard doesn't require it.
44059         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
44060         longer worry about IRIX 5.3.
44061         (HAVE_WCTYPE_CTMP_BUG): Remove.
44062
44063 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
44064
44065         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
44066         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
44067         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
44068         Problems reported by Georg Schwarz for IRIX 5.3.
44069
44070         * gnulib-tool (autoconf_minversion): Take the maximum version number
44071         found, not the minimum.  Problem reported by James Youngman.
44072
44073 2007-01-03  Karl Berry  <karl@gnu.org>
44074
44075         * doc/error.texi: new file, explaining interaction with progname.
44076         * doc/gnulib.texi: include it.  Update copyright.
44077
44078 2007-01-03  Simon Josefsson  <simon@josefsson.org>
44079
44080         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
44081         AC_CANONICAL_HOST, to improve autobuild outputs.
44082
44083 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
44084             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
44085
44086         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
44087         sockets, server sockets, and other file descriptors.  Count errors
44088         to compute the return value.  Reorder the code a bit to be easier
44089         to follow.  Don't set event bits that were not requested (except
44090         POLLERR and POLLHUP).
44091
44092 2007-01-01  Bruno Haible  <bruno@clisp.org>
44093
44094         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
44095
44096 2007-01-03  Jim Meyering  <jim@meyering.net>
44097
44098         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
44099
44100 2007-01-02  Bruno Haible  <bruno@clisp.org>
44101
44102         * modules/settime (Include): Require timespec.h.
44103         * modules/nanosleep (Include): Likewise.
44104
44105 2007-01-01  Bruno Haible  <bruno@clisp.org>
44106
44107         * gnulib-tool (func_emit_copyright_notice): Bump year.
44108         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
44109
44110 2007-01-01  Bruno Haible  <bruno@clisp.org>
44111
44112         Improve support for OpenBSD.
44113         * build-aux/config.rpath (libname_spec): Export.
44114         (library_names_spec): New variable. Export.
44115         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
44116         library_names_spec from the config.rpath output. Locate shared library
44117         through the name pattern in library_names_spec.
44118
44119 2007-01-01  Eric Blake  <ebb9@byu.net>
44120
44121         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
44122
44123 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
44124
44125         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
44126         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
44127         assume the C locale, and avoid an "eval" that could cause trouble.
44128         Problem with SORT reported by Bob Proulx.
44129
44130         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
44131         Define.  Trivial patch from Henning Nielsen Lund, originally
44132         sent to bug-grep@gnu.org today.
44133
44134 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
44135
44136         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
44137         struct stat.  Problem reported by Henning Nielsen Lund.
44138         * lib/acl.c: Include acl.h first, to check interface.  Don't
44139         bother to include sys/types.h and sys/stat.h again.
44140
44141 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
44142
44143         Import the following change from libc; problem reported by
44144         Sven Verdoolaege.
44145
44146         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
44147
44148         [BZ #1373]
44149         * lib/argp.h: Remove __NTH for __argp_usage inline function.
44150
44151 2006-12-28  Jim Meyering  <jim@meyering.net>
44152
44153         * build-aux/announce-gen: Do not assume that the package
44154         builds any of tar.gz, tar.bz2, and .xdelta files.
44155         Suggestion from Simon Josefsson.
44156
44157 2006-12-28  Simon Josefsson  <simon@josefsson.org>
44158
44159         * modules/announce-gen: New file.
44160
44161 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
44162
44163         * lib/mbchar.h: Just include <wctype.h>; the wctype module
44164         handles its gotchas now.
44165         * lib/mbswidth.c: Likewise.
44166         * lib/wcwidth.h: Likewise.
44167         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
44168         and iswcntrl; the wctype module does this stuff now.
44169         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
44170         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
44171         * modules/mbchar (Depends-on): Add wctype.
44172         * modules/mbswidth (Depends-on): Likewise.
44173         * modules/wcwidth (Depends-on): Likewise.
44174
44175 2006-12-27  Eric Blake  <ebb9@byu.net>
44176
44177         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
44178         module uses more than what <wctype.h> is required to provide.
44179
44180 2006-12-26  Eric Blake  <ebb9@byu.net>
44181
44182         * gnulib-tool (sed_extract_prog): Avoid space-tab.
44183
44184 2006-12-26  Eric Blake  <ebb9@byu.net>
44185
44186         * modules/absolute-header: New module.
44187         * modules/fcntl (Depends-on): Depend on it.
44188         * modules/inttypes (Depends-on): Likewise.
44189         * modules/stdint (Depends-on): Likewise.
44190         * modules/sys_stat (Depends-on): Likewise.
44191         * modules/wctype (Depends-on): Likewise.
44192         * MODULES.html.sh (Support for building libraries and
44193         executables): Document it.
44194
44195 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
44196
44197         * gnulib-tool (SED): Remove, undoing previous change.
44198         The problem was that it broke coreutils on Solaris, because
44199         "sed --posix" leaked into a makefile.
44200         (sed): New alias, if 'alias' and GNU sed.
44201
44202 2006-12-24  Jim Meyering  <jim@meyering.net>
44203
44204         Work around an fchownat bug in glibc-2.4:
44205         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
44206         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
44207         in spite of the -P option.
44208         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
44209         New macros.
44210         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
44211         * modules/openat (Files): Add lib/fchownat.c.
44212         * lib/openat.c (fchownat): Don't define here.  Move to...
44213         * lib/fchownat.c: ...this new file.
44214
44215 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
44216
44217         Fix bug reported by Bruno Haible in
44218         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
44219         where quotearg.c didn't compile on Mac OS X 10.2 because it
44220         lacks <wchar.h> and wint_t.
44221         * lib/wctype_.h (__wctype_wint_t): New type.
44222         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
44223         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
44224         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
44225         Arg is now of type __wctype_wint_t, not wint_t.
44226         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
44227         substitute HAVE_WINT_T.
44228         * modules/wctype (Files): Add m4/wint_t.m4.
44229         (wctype.h): Substitute HAVE_WINT_T.
44230
44231 2006-12-23  Bruno Haible  <bruno@clisp.org>
44232
44233         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
44234
44235 2006-12-23  Bruno Haible  <bruno@clisp.org>
44236
44237         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
44238         S_ISLNK.
44239         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
44240         mingw.
44241
44242 2006-12-22  Bruno Haible  <bruno@clisp.org>
44243
44244         * lib/copy-file.c: Include acl.h.
44245         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
44246         Close the file descriptors only after being done with copy_acl.
44247         * modules/copy-file (Depends-on): Add acl.
44248
44249 2006-12-22  Bruno Haible  <bruno@clisp.org>
44250
44251         * gnulib-tool (SED): New variable.
44252         Use $SED instead of sed everywhere.
44253
44254 2006-12-22  Bruno Haible  <bruno@clisp.org>
44255
44256         * modules/no-c++: New file.
44257         * m4/no-c++.m4: New file.
44258         * MODULES.html.sh (Support for building libraries and executables):
44259         Add no-c++.
44260
44261 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
44262
44263         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
44264         Include <limits.h>, and use its INT_MAX to rewrite the
44265         j loop so that it does not overflow 'int'.  Problem reported by
44266         Ralf Wildenhues in
44267         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
44268         Play it safe by shifting left by 1 rather than multiplying by 2,
44269         as GCC is less likely to optimize this away when the value
44270         is signed (when it assumes overflow leads to undefined behavior).
44271         Also, don't assume time_t uses two's complement.
44272
44273 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
44274
44275         * MODULES.html.sh: New module wctype.
44276         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
44277         * lib/fnmatch.c: Don't bother to include <wchar.h> before
44278         <wctype.h>, since the new wctype module should fix this.
44279         * lib/quotearg.c: Include <wctype.h> unconditionally, since
44280         the wctype module should arrange for it.
44281         * lib/regex_internal.h: Likewise.
44282         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
44283         since the wctype module should handle this now.
44284         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
44285         * modules/fnmatch (Depends-on): Add wctype.
44286         * modules/quotearg (Depends-on): Likewise.
44287         * modules/regex (Depends-on): Likewise.
44288
44289 2006-12-19  Bruno Haible  <bruno@clisp.org>
44290
44291         * lib/strdup.h [C++]: Wrap definitions in extern "C".
44292         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
44293
44294 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44295
44296         * modules/savewd (Depends-on): Fix dependency on fcntl.
44297
44298 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
44299
44300         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
44301         conforms to C99, rather than relying on the user's environment
44302         setting of STDINT_H.
44303
44304 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
44305         and Eric Blake  <ebb9@byu.net>
44306
44307         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
44308         This is more consistent with the other defines here.
44309         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
44310         Port to z/OS.  Problem reported by Paul Gilmartin.
44311         Change local vars to use gl_ prefix rather than ac_.
44312         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
44313         with other defines.
44314         * modules/double-slash-root: New module.
44315         * modules/dirname (Files): Remove m4/double-slash-root.m4.
44316         (Depends-on): Add double-slash-root.
44317         * MODULES.html.sh (File system functions): Mention new module.
44318
44319 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
44320
44321         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
44322         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
44323         This is for the benefit of gzip, which doesn't do i18n.
44324
44325 2006-12-12  Jim Meyering  <jim@meyering.net>
44326
44327         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
44328         Reported by Andreas Schwab <schwab@suse.de>.
44329
44330 2006-12-12  Bruno Haible  <bruno@clisp.org>
44331
44332         Merge these changes.
44333         2006-09-05  Bruno Haible  <bruno@clisp.org>
44334         * lib/iconvme.c (iconv_string): No need to save and restore errno when
44335         iconv_alloc succeeded.
44336         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
44337         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
44338         test for " && dest " at the end - dest is always != NULL there. Call
44339         iconv with 4xNULL arguments initially, to reset the state. Call iconv
44340         with 2xNULL arguments, also to flush the state storage. Handle the
44341         IRIX iconv behaviour. Realloc the final result, to throw away unused
44342         memory.
44343
44344 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
44345
44346         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
44347         and fchmodat unconditionally, since glibc 2.4 has them.
44348         Problem reported by Arkadiusz Miskiewicz.
44349
44350 2006-12-10  Bruno Haible  <bruno@clisp.org>
44351
44352         * gnulib-tool (func_import): Show the include files only for those
44353         modules that are copied and specified.
44354         Reported by Karl Berry.
44355
44356 2006-12-08  Jim Meyering  <jim@meyering.net>
44357
44358         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
44359         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
44360
44361         * build-aux/announce-gen: Add two new options, both optional:
44362         --bootstrap-tools=TOOL_LIST
44363               a comma-separated list of tools, e.g.,
44364               autoconf,automake,bison,gnulib
44365         --gnulib-snapshot-date=DATE
44366               if gnulib is in the bootstrap tool list,
44367               then report this as the snapshot date.
44368               If not specified, use the current date/time.
44369               If you specify a date here, be sure it's UTC.
44370
44371 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44372
44373         * tests/test-argp-2.sh: Fix test to match actual output.
44374         (func_compare): Fix sed script to be portable.
44375
44376 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
44377
44378         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
44379         workaround for this case.  It is not autoconfigured now; offhand
44380         it's hard to see how to autoconfigure it.
44381
44382 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
44383
44384         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
44385         a directory that is about to be chowned.  Such a directory's
44386         initial file permissions should permit the owner only and this
44387         should not be changed until after the chown, since the group and
44388         other bits would be incorrect if they granted permission before
44389         the chown.
44390
44391         Fix porting problem for iswctype reported by Georg Schwarz in:
44392         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
44393         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
44394         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
44395         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
44396         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
44397
44398 2006-12-03  Jim Meyering  <jim@meyering.net>
44399
44400         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
44401         p->fts_statp may not yet be defined.
44402         (fts_read): Instead, set it in the caller, once p->fts_statp is
44403         sure to be defined, and corresponds to a top-level directory.
44404         This bug made du -x fail.  Here's the coreutils test case:
44405         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
44406         Reported by Mike Frysinger.
44407
44408 2006-12-01  Jim Meyering  <jim@meyering.net>
44409
44410         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
44411         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
44412         Reported by Simon Josefsson.
44413
44414 2006-11-30  Jim Meyering  <jim@meyering.net>
44415
44416         * m4/warning.m4: Use the all-permissive copyright notice
44417         recommended by RMS (rather than LGPL).
44418         * m4/vararrays.m4: Likewise.
44419         * m4/flexmember.m4: Likewise.
44420
44421 2006-11-29  Bruno Haible  <bruno@clisp.org>
44422
44423         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
44424         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
44425         using +=.
44426         Reported by Simon Josefsson <simon@josefsson.org>.
44427
44428 2006-11-28  James Youngman <jay@gnu.org>
44429
44430         * README: Advise users that they might find the bug-gnulib@gnu.org
44431         and autotools-announce@gnu.org mailing lists useful.
44432
44433 2006-11-28  Bruno Haible  <bruno@clisp.org>
44434
44435         * m4/ptrdiff_max.m4: Remove file.
44436
44437 2006-11-21  Bruno Haible  <bruno@clisp.org>
44438
44439         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
44440         _AC_COMPUTE_INT.
44441         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
44442         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
44443         _AC_COMPUTE_INT.
44444         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
44445         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
44446         _AC_COMPUTE_INT.
44447         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
44448
44449 2006-11-28  Jim Meyering  <jim@meyering.net>
44450
44451         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
44452         warning from "gcc -Wshadow" about shadowing the builtin.
44453
44454 2006-11-27  Bruno Haible  <bruno@clisp.org>
44455
44456         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
44457         _AC_COMPUTE_INT.
44458         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
44459
44460 2006-11-27  Bruno Haible  <bruno@clisp.org>
44461             Paul Eggert  <eggert@cs.ucla.edu>
44462
44463         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
44464
44465 2006-11-26  Bruno Haible  <bruno@clisp.org>
44466
44467         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
44468         noinst_LTLIBRARIES.
44469
44470 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
44471             Bruno Haible  <bruno@clisp.org>
44472
44473         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
44474         if compiling with "gcc -ansi".
44475
44476 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
44477
44478         Fix some incompatibilities with gcc -ansi -pedantic.
44479         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
44480         if compiling pedantically with GCC, unless it's C99 or later.
44481         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
44482         it mishandles gcc -ansi -pedantic as well.
44483         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
44484         if gcc -pedantic.
44485         * lib/regexec.c (check_node_accept_bytes): Don't use auto
44486         initializers for struct if -pedantic, unless it's C99 or later.
44487
44488 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
44489
44490         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
44491         Don't close an fd more than once. Identical atimes indicate
44492         success, not failure.
44493
44494 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
44495
44496         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
44497
44498 2006-11-23  Jim Meyering  <jim@meyering.net>
44499
44500         * build-aux/announce-gen: New file.  From coreutils.
44501
44502 2006-11-22  Jim Meyering  <jim@meyering.net>
44503
44504         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
44505         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
44506         (fts_read): Use a temporary to narrow the overused st_size member
44507         before using it in a switch statement.  Reported by Matthew Woehlke.
44508
44509         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
44510         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
44511
44512 2006-11-20  Bruno Haible  <bruno@clisp.org>
44513
44514         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
44515         changequote instead of pairs of brackets.
44516         Reported by Andreas Schwab <schwab@suse.de>.
44517
44518 2006-11-21  Jim Meyering  <jim@meyering.net>
44519
44520         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
44521         so as to remain compatible with older compilers.
44522         Patch from Michael Deutschmann.
44523
44524 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
44525
44526         * MODULES.html.sh (File system functions): Add openat.
44527
44528         * lib/openat.h (rpl_fstatat): New macro, if
44529         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
44530         (fstatat): Define to rpl_fstatat under the same conditions,
44531         unless COMPILING_FSTATAT.
44532         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
44533         seems to have the bug.
44534         * lib/fstatat.c: New file.
44535         * modules/openat (Files): Add it.
44536
44537 2006-11-20  Bruno Haible  <bruno@clisp.org>
44538
44539         * Makefile: New file.
44540
44541 2006-11-20  Jim Meyering  <jim@meyering.net>
44542
44543         The beginnings of syntax-related checks for gnulib.
44544         * lib/Makefile: New file.
44545         * lib/t-idcache: New script.  Ensure that the two halves of
44546         idcache.c stay in sync.
44547
44548         * lib/idcache.c: Adjust comments in user- and group- portions to
44549         be more accurate, and to be consistent with one another.
44550
44551 2006-11-20  Jim Meyering  <jim@meyering.net>
44552
44553         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
44554         continue using the flexible array member (thus, this module performs
44555         half as many malloc calls), with the addition that...
44556         (getgroup, getuser): Consistently record a non-match via an empty
44557         "name" string, and map an empty string match to a NULL return value.
44558         * modules/idcache (Depends-on): Re-add flexmember.
44559
44560         * lib/idcache.c (getuser): Remove all uses of the register keyword.
44561         (getuidbyname, getgroup, getgidbyname): Likewise.
44562
44563         Use cleaner syntax: NULL rather than 0.
44564         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
44565
44566 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
44567
44568         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
44569         It mishandled the case where the group was missing.
44570         Problem reported by Greg Schafer.
44571         * modules/idcache: Likewise.
44572
44573 2006-11-18  Jim Meyering  <jim@meyering.net>
44574
44575         * check-module (%exempt_header): Add exception for some
44576         conditionally-included headers.
44577
44578         * modules/i-ring (Depends-on): Add verify.
44579         (License): Change to LGPL.
44580
44581 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
44582
44583         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
44584         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
44585         and inttostr.h.  Use snprintf rather than uinttostr, so that
44586         LGPLed code doesn't depend on GPLed.
44587
44588 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
44589
44590         * modules/inline (License): Change from GPL to LGPL.
44591
44592 2006-11-17  Jim Meyering  <jim@meyering.net>
44593
44594         * modules/d-type (License): Switch to LGPL.
44595
44596 2006-11-15  Bruno Haible  <bruno@clisp.org>
44597
44598         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
44599
44600 2006-11-15  Eric Blake  <ebb9@byu.net>
44601
44602         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
44603         the module dependency.
44604
44605 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44606             Bruno Haible  <bruno@clisp.org>
44607
44608         * gnulib-tool (func_create_testdir): Add license consistency check.
44609
44610 2006-11-15  Eric Blake  <ebb9@byu.net>
44611
44612         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
44613         random "(cached)" in configure output.
44614
44615 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44616
44617         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
44618         test for conforming inttypes.h is both announced and cached.
44619
44620         * MODULES.html.sh (seen_modules, seen_files): New variables.
44621         (func_module): Rewrite to use a few less gnulib-tool and sed
44622         invocations.  Avoid a couple of quadratic algorithms for ...
44623         (missed_modules, missed_files): ... these, with ...
44624         (func_append, func_tmpdir): ... these new functions, from
44625         gnulib-tool.  Analogously, install traps for cleanup.
44626
44627         * tests/test-gc.c (main): Remove unused variables.
44628         * tests/test-read-file.c: Include stdlib.h, for 'free'.
44629
44630 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
44631
44632         * modules/inttostr (License): Change to LGPL.
44633
44634 2006-11-14  Eric Blake  <ebb9@byu.net>
44635
44636         * modules/tempname (License): Change to LGPL.
44637
44638 2006-11-14  Eric Blake  <ebb9@byu.net>
44639
44640         * doc/functions.texi (Function Portability): *printf functions on
44641         Cygwin now understand all POSIX size specifiers.
44642
44643 2006-11-14  Bruno Haible  <bruno@clisp.org>
44644
44645         * modules/c-ctype (License): Change to LGPL.
44646
44647 2006-11-12  Bruno Haible  <bruno@clisp.org>
44648
44649         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
44650         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
44651         for GNOME libraries, for which the include files are installed in
44652         subdirectories of $prefix/include.
44653
44654 2006-11-12  Bruno Haible  <bruno@clisp.org>
44655
44656         * m4/lib-link.m4: Require at least autoconf-2.54.
44657         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
44658         name to underscores for the --with option.
44659
44660 2006-11-13  Bruno Haible  <bruno@clisp.org>
44661
44662         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
44663         the tests directory.
44664         Reported by Ralf Wildenhues.
44665
44666 2006-11-13  Bruno Haible  <bruno@clisp.org>
44667
44668         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
44669         (func_emit_initmacro_end): Undo the override here.
44670         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
44671         Works around the famous automake error in coreutils.
44672
44673 2006-11-13  Eric Blake  <ebb9@byu.net>
44674
44675         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
44676         element, not its node.
44677
44678 2006-11-12  Bruno Haible  <bruno@clisp.org>
44679
44680         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
44681         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
44682
44683 2006-11-12  Bruno Haible  <bruno@clisp.org>
44684
44685         * gnulib-tool: New option --local-symlink.
44686         (func_usage): Document it.
44687         (lsymbolic): New variable.
44688         (func_import, func_create_testdir): If --symlink was not specified,
44689         test whether --local-symlink was specified and the file comes from
44690         the local_gnulib_dir.
44691
44692 2006-11-12  Bruno Haible  <bruno@clisp.org>
44693
44694         * gnulib-tool (func_ln): New function.
44695         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
44696
44697 2006-11-12  Bruno Haible  <bruno@clisp.org>
44698
44699         Finish support for source files in subdirectories.
44700         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
44701         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
44702         AUTOMAKE_OPTIONS.
44703         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
44704
44705 2006-11-12  Bruno Haible  <bruno@clisp.org>
44706
44707         * gnulib-tool (func_get_automake_snippet): Synthesize also an
44708         EXTRA_lib_SOURCES augmentation.
44709         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
44710
44711 2006-11-12  Jim Meyering  <jim@meyering.net>
44712
44713         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
44714         file descriptors.  This also averts a failure on systems with
44715         native openat support when a traversed directory lacks "x" access.
44716         * lib/fts_.h: Include "i-ring.h"
44717         (struct FTS) [fts_fd_ring]: New member.
44718         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
44719         (FCHDIR): Add parentheses.
44720         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
44721         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
44722         When descending, rather than simply closing the previous
44723         fts_cwd_fd value, push that file descriptor onto the ring.
44724         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
44725         (fts_open): Initialize the new fd_ring member.
44726         (fts_close): Clear the ring.
44727         (fts_safe_changedir): When possible, use our new fd_ring to skip
44728         the diropen and fstat and dev/ino comparison that would normally
44729         accompany a virtual `chdir ("..")'.
44730
44731         * modules/fts (Depends-on): Add i-ring.
44732         * modules/i-ring: New module.
44733         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
44734         * m4/i-ring.m4: New file.
44735
44736 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44737
44738         * gnulib-tool (func_create_testdir): Fix replacement of
44739         `build-aux' in configure.ac.  Run autotools in gltests
44740         subdirectory.
44741         (func_create_testdir, func_create_megatestdir, test): There is
44742         no need for '--force' in most autotool invocations in a new
44743         tree.  Actually fail the whole test if any of the tools, or the
44744         configure or make stages fail.
44745
44746         Sync from Automake.
44747         * build-aux/gnupload: Revert last change.  Add pointer to upload
44748         instructions of the GNU Maintenance Instructions.
44749         Suggestion by Karl Berry.
44750
44751 2006-11-10  Jim Meyering  <jim@meyering.net>
44752
44753         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
44754
44755 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
44756
44757         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
44758         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
44759         (bind_textdomain_codeset) [! ENABLE_NLS]:
44760         Evaluate all the arguments.  That way, callers get compatible behavior
44761         if the arguments have side effects.  Also, it avoids some GCC
44762         diagnostics in some cases; Joel E. Denny reported problems when Bison
44763         was configured with --enable-gcc-warnigs.
44764
44765 2006-11-10  Jim Meyering  <jim@meyering.net>
44766
44767         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
44768         relevant options in CFLAGS (like -O, -fno-inline) are taken into
44769         account.
44770
44771 2006-11-10  Jim Meyering  <jim@meyering.net>
44772
44773         * modules/inline: New file/module.
44774         * modules/xalloc (Files): Remove m4/inline.m4.
44775         (Depends-on): Add inline, instead.
44776         * modules/oset: Likewise.
44777         * modules/list: Likewise.
44778
44779 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
44780
44781         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
44782         Problem reported by Matthew Woehlke.
44783
44784 2006-11-09  Bruno Haible  <bruno@clisp.org>
44785
44786         * lib/tempname.c (gen_tempname): Remove variant that invokes
44787         __gen_tempname.
44788         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
44789         __gen_tempname.
44790
44791 2006-11-08  Bruno Haible  <bruno@clisp.org>
44792
44793         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
44794         to 'yes' instead of 'cross-compiling'.
44795
44796 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
44797
44798         * lib/quotearg.h (quotearg_free): New decl.
44799         * lib/quotearg.c (quotearg_free): New function.
44800         (slot0, nslots, slotvec0, slotvec):
44801         Now file-scope so that quotearg_free can get at them.
44802
44803 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44804
44805         Sync from Automake.
44806         * build-aux/gnupload: Add missing 'gnu' to example URL.
44807         Report by Karl Berry.
44808
44809 2006-11-08  Bruno Haible  <bruno@clisp.org>
44810
44811         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
44812         Suggested by Paul Eggert.
44813
44814 2006-11-08  Jim Meyering  <jim@meyering.net>
44815
44816         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
44817         It's already included if !_LIBC.
44818         (fts_safe_changedir): Add a comment.
44819
44820 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
44821
44822         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
44823         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
44824         Matthew Woehlke.
44825
44826         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
44827         definitions up, to avoid colliding with change below.
44828         (static_inline) [HAVE_INLINE]: New macro.
44829         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
44830         Provide extern decls when !HAVE_INLINE.  Do not define unless
44831         static_inline is defined, either by us or by xmalloc.c.  Use
44832         static_inline rather than static inline.
44833         (XCALLOC): Optimize sizeof(T) = 1 case.
44834         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
44835
44836 2006-11-07  Bruno Haible  <bruno@clisp.org>
44837
44838         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
44839         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
44840         AC_C_INLINE.
44841         * modules/xalloc (Files): Add m4/inline.m4.
44842
44843 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44844
44845         * README: Fix typo.
44846         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
44847         (Miscellanous Notes): ...from this.
44848
44849 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
44850
44851         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
44852         Mention that offsetof should be used instead of sizeof.
44853         From Bruno Haible.
44854
44855 2006-11-07  Bruno Haible  <bruno@clisp.org>
44856
44857         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
44858
44859 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
44860
44861         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
44862         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
44863         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
44864         (gl_tree_add_before, gl_tree_add_after):
44865         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
44866         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
44867         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
44868         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
44869         (gl_linked_add_after, gl_linked_add_at): Likewise.
44870         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
44871         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
44872         (gl_tree_add_before, gl_tree_add_after): Likewise.
44873         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
44874         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
44875         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
44876
44877 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44878
44879         * lib/gl_oset.h: Use C comment style, not C++ comment style.
44880
44881 2006-11-06  Bruno Haible  <bruno@clisp.org>
44882
44883         * m4/inline.m4: New file.
44884         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
44885         * modules/list (Files): Add m4/inline.m4.
44886         * modules/oset (Files): Likewise.
44887
44888 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
44889
44890         * lib/idcache.c: Include <stddef.h>, for offsetof.
44891         (struct userid.name): Change from char * to a flexible array member.
44892         All uses changed.
44893         * modules/idcache (Depends-on): Add flexmember.
44894
44895         * MODULES.html.sh (Core language properties): New module flexmember.
44896         * modules/flexmember, m4/flexmember.m4: New files.
44897
44898         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
44899         inline functions that are identical with the old xnmalloc_inline,
44900         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
44901         that we can avoid some unnecessary integer multiplications and
44902         divisions in the common case where the element size is known at
44903         compile time.
44904         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
44905         needed.
44906         (xnboundedmalloc): Remove.
44907         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
44908         arguments, for consistency with rest of this header.
44909         (xcharalloc): Rewrite using XNMALLOC.
44910         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
44911         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
44912         versions have been moved to lib/xalloc.h and renamed to be the
44913         non-*_inline versions.
44914         (xmalloc, xrealloc): Implement without reference to the xnmalloc
44915         and xnrealloc functions, since those functions are now inline and
44916         now call us.
44917         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
44918         renaming described above.
44919         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
44920         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
44921         captures the dependency in AC_C_INLINE.
44922
44923         New module canonicalize-lgpl, proposed by Charles Wilson in
44924         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
44925         with a few small changes afterwards.
44926         * MODULES.html.sh (File system functions): New module
44927         canonicalize-lgpl.
44928         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
44929         and canonicalize_file_name.
44930         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
44931         * modules/canonicalize-lgpl: New files.
44932
44933 2006-11-05  Bruno Haible  <bruno@clisp.org>
44934
44935         * gnulib-tool (func_import, func_create_testdir): Create directories
44936         also for files in subdirectories of lib/.
44937
44938 2006-11-05  Bruno Haible  <bruno@clisp.org>
44939
44940         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
44941         ANSI C compliant.
44942
44943 2006-11-03  Bruno Haible  <bruno@clisp.org>
44944
44945         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
44946         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
44947         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
44948         (xnboundedmalloc): New inline function.
44949         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
44950         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
44951         xmalloc.
44952         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
44953         xmalloc.
44954         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
44955         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
44956         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
44957         xmalloc.
44958         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
44959         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
44960         xmalloc.
44961         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
44962         gl_tree_add_after): Use XMALLOC instead of xmalloc.
44963         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
44964         xmalloc.
44965         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
44966         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
44967         gl_tree_add_after): Use XMALLOC instead of xmalloc.
44968         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
44969         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
44970         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
44971         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
44972
44973 2006-11-03  Bruno Haible  <bruno@clisp.org>
44974
44975         * lib/c-ctype.h [C++]: Define functions without name mangling.
44976         * lib/fwriteerror.h [C++]: Likewise.
44977         * lib/gcd.h [C++]: Likewise.
44978         * lib/linebreak.h [C++]: Likewise.
44979
44980 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
44981
44982         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
44983         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
44984         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
44985         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
44986         Check for functions and headers just once.
44987         Check for declaration of canonicalize_file_name.
44988         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
44989
44990 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
44991
44992         * gnulib-tool (func_import): Fix typo in actioncmd.
44993
44994 2006-11-02  Bruno Haible  <bruno@clisp.org>
44995
44996         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
44997         newline sequence in the Makefile.am snippet as a space, like "make"
44998         does.
44999         Reported by Roger Persson <perrog@gmail.com>.
45000
45001 2006-11-01  Bruno Haible  <bruno@clisp.org>
45002
45003         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
45004         already declared in <string.h>.
45005         * lib/strcase.h (strncasecmp): Don't declare it if yes.
45006
45007 2006-11-01  Bruno Haible  <bruno@clisp.org>
45008
45009         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
45010         * lib/strcase.h: Include <string.h>.
45011         (strcasecmp): Define to rpl_strcasecmp here.
45012
45013 2006-11-01  Bruno Haible  <bruno@clisp.org>
45014
45015         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
45016
45017 2006-11-01  Eric Blake  <ebb9@byu.net>
45018
45019         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
45020
45021         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
45022
45023 2006-10-29  Bruno Haible  <bruno@clisp.org>
45024
45025         Make it compile in C++ mode.
45026         * lib/full-write.c (full_rw): Add a cast.
45027
45028 2006-11-01  Bruno Haible  <bruno@clisp.org>
45029
45030         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
45031         be POSIX compliant.
45032         Reported by Roger Persson <perrog@gmail.com>.
45033
45034 2006-11-01  Eric Blake  <ebb9@byu.net>
45035
45036         * lib/getopt_.h: Fix comments.
45037
45038 2006-10-31  Eric Blake  <ebb9@byu.net>
45039
45040         * modules/tmpdir (Depends-on): Add sys_stat.
45041         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
45042         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
45043         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
45044         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
45045         tempname.
45046
45047 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
45048
45049         Avoid some C++ diagnostics reported by Bruno Haible.
45050         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
45051         xmalloc.
45052         (quotearg_alloc): Use xcharalloc rather than xmalloc.
45053         (struct slotvec): Move to top level.
45054         (quotearg_n_options): Rewrite to avoid xmalloc.
45055         * lib/xalloc.h (xcharalloc): New function.
45056         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
45057         [defined __cplusplus]: Add function template that provides result
45058         type propagation.  This part of the change is from Bruno Haible.
45059
45060 2006-10-29  Bruno Haible  <bruno@clisp.org>
45061
45062         Make it compile in C++ mode.
45063         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
45064         * lib/strnlen1.c (strnlen1): Cast memchr result.
45065         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
45066         * lib/clean-temp.c (string_equals, string_hash): Add casts.
45067         (create_temp_dir): Rename local variable 'template'.
45068         (compile_csharp_using_sscli): Add cast.
45069         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
45070         * lib/findprog.c (find_in_path): Likewise.
45071         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
45072         * lib/wait-process.c (register_slave_subprocess): Likewise.
45073
45074 2006-10-22  Bruno Haible  <bruno@clisp.org>
45075
45076         * modules/tsearch: New file.
45077         * lib/tsearch.h: New file.
45078         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
45079         * m4/tsearch.m4: New file.
45080         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
45081
45082 2006-10-29  Eric Blake  <ebb9@byu.net>
45083
45084         * lib/arcfour.c: Assume config.h.
45085         * lib/arctwo.c: Likewise.
45086         * lib/base64.c: Likewise.
45087         * lib/check-version.c: Likewise.
45088         * lib/crc.c: Likewise.
45089         * lib/des.c: Likewise.
45090         * lib/gc-gnulib.c: Likewise.
45091         * lib/gc-libgcrypt.c: Likewise.
45092         * lib/gc-pbkdf2-sha1.c: Likewise.
45093         * lib/getaddrinfo.c: Likewise.
45094         * lib/getdelim.c: Likewise.
45095         * lib/getline.c: Likewise.
45096         * lib/hmac-md5.c: Likewise.
45097         * lib/hmac-sha1.c: Likewise.
45098         * lib/iconvme.c: Likewise.
45099         * lib/md2.c: Likewise.
45100         * lib/md4.c: Likewise.
45101         * lib/memxor.c: Likewise.
45102         * lib/read-file.c: Likewise.
45103         * lib/readline.c: Likewise.
45104         * lib/rijndael-alg-fst.c: Likewise.
45105         * lib/rijndael-api-fst.c: Likewise.
45106         * lib/xgetdomainname.c: Likewise.
45107
45108 2006-10-28  Eric Blake  <ebb9@byu.net>
45109
45110         * lib/xstrndup.c: Assume config.h.
45111
45112 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
45113
45114         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
45115         stat-macros.h is now for our own macros, whereas stat_h is for
45116         macros in the <sys/stat.h> name space.
45117         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
45118         (STAT_MACROS_H): Remove.
45119         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
45120         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
45121         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
45122         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
45123         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
45124         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
45125         Move these macros to ...
45126         * lib/stat_.h: here.  Don't include stat-macros.h.
45127         * lib/canonicalize.c: Don't include stat-macros.h.
45128         * lib/chown.c: Likewise.
45129         * lib/euidaccess.c: Likewise.
45130         * lib/file-type.c: Likewise.
45131         * lib/filemode.c: Likewise.
45132         * lib/glob.c: Likewise.
45133         * lib/isapipe.c: Likewise.
45134         * lib/lchown.c: Likewise.
45135         * lib/lstat.c: Likewise.
45136         * lib/mkdir-p.c: Likewise.
45137         * lib/rmdir.c: Likewise.
45138         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
45139         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
45140         unless mkdir isn't declared, to speed up 'configure'.
45141         Always create sys/stat.h, since it's unlikely any real sys/stat.h
45142         would define all the S_* symbols.
45143         * modules/canonicalize (Depends-on):
45144         Depend on sys_stat, not stat-macros.
45145         * modules/chown: Likewise.
45146         * modules/euidaccess: Likewise.
45147         * modules/filemode: Likewise.
45148         * modules/file-type: Likewise.
45149         * modules/glob: Likewise.
45150         * modules/isapipe: Likewise.
45151         * modules/lchown: Likewise.
45152         * modules/lstat: Likewise.
45153         * modules/mkancesdirs: Likewise.
45154         * modules/rmdir: Likewise.
45155         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
45156         * modules/modechange: Likewise.
45157         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
45158         (configure.ac): Remove gl_STAT_MACROS.
45159         * modules/sys_stat (Depends-on): Remove stat-macros.
45160
45161 2006-10-27  Bruno Haible  <bruno@clisp.org>
45162
45163         * m4/signed.m4: Remove file.
45164         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
45165         invocation.
45166         * modules/vasnprintf (Files): Remove m4/signed.m4.
45167
45168 2006-10-27  Bruno Haible  <bruno@clisp.org>
45169
45170         Update to GNU gettext 0.16.
45171         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
45172         m4/inttypes-h.m4, m4/signed.m4.
45173         * m4/gettext.m4: Update to GNU gettext 0.16.
45174         * m4/intl.m4: New file, from GNU gettext.
45175         * m4/intldir.m4: New file, from GNU gettext.
45176         * config/srclist.txt: Update
45177
45178 2006-10-27  Eric Blake  <ebb9@byu.net>
45179
45180         * MODULES.html.sh: Document tempname.
45181         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
45182         dependencies.
45183         (Files): Move lib/tempname.c...
45184         * modules/tempname: ...to this new module.
45185         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
45186         (gl_PREREQ_TEMPNAME): Move...
45187         * m4/tempname.m4: ...to this new file.
45188         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
45189         * modules/sys_stat (Depends-on): Add stat-macros.
45190         * lib/stat_.h (includes): Pick up stat macros.
45191         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
45192         if stat macros are broken.
45193         * lib/tempname.c (includes): No need to include "stat-macros.h".
45194         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
45195         (direxists, __path_search) [!_LIBC]: Don't compile these in
45196         gnulib; the tmpdir module covers that.
45197         * lib/tempname.h: New file.
45198
45199 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
45200
45201         * COPYING: Explain how gnulib-tool converts licence headers.
45202         Almost all wording by Eric Blake.
45203
45204 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
45205
45206         * lib/mbchar.h (is_basic_table): Make read-only.
45207         * lib/mbchar.c (is_basic_table): Likewise.
45208         Reported by John Darrington.
45209
45210 2006-10-25  Bruno Haible  <bruno@clisp.org>
45211
45212         * lib/progname.h (set_program_name): Undefine before defining.
45213
45214 2006-10-25  Bruno Haible  <bruno@clisp.org>
45215
45216         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
45217         false for non-gcc C++ compilers.
45218         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
45219
45220 2006-10-24  Bruno Haible  <bruno@clisp.org>
45221
45222         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
45223         iconv implementations like Irix iconv.
45224
45225 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
45226
45227         * modules/vararrays: New file.
45228         * m4/vararrays.m4: New file, taken from diffutils.
45229         * MODULES.html.sh: New module vararrays.
45230
45231 2006-10-24  Karl Berry  <karl@gnu.org>
45232
45233         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
45234         Don't call GNU Unix.
45235
45236 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45237
45238         * users.txt: Add Libtool.
45239
45240         Sync from Libtool:
45241
45242         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
45243
45244         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
45245         to gnulib's policy of including config.h unconditionally.
45246
45247 2006-10-24  Bruno Haible  <bruno@clisp.org>
45248
45249         * modules/wcwidth (Files): Add m4/wint_t.m4.
45250         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
45251         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
45252
45253 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
45254
45255         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
45256         to pacify GCC with some -W flags enabled.  Problem reported by
45257         Bruno Haible.
45258
45259 2006-10-24  Jim Meyering  <jim@meyering.net>
45260
45261         * MODULES.html.sh: Remove uinttostr.  It's not a module.
45262         Reported by Karl Berry.
45263
45264 2006-10-23  Bruno Haible  <bruno@clisp.org>
45265
45266         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
45267
45268 2006-10-24  Bruno Haible  <bruno@clisp.org>
45269
45270         * lib/gl_list.h: Use C comment style, not C++ comment style.
45271
45272 2006-10-23  Eric Blake  <ebb9@byu.net>
45273
45274         * lib/getaddrinfo.c (includes): Add missing include.
45275
45276 2006-10-23  Bruno Haible  <bruno@clisp.org>
45277             Paul Eggert  <eggert@cs.ucla.edu>
45278
45279         Ability to rename obstack_free.
45280         * lib/obstack.h (__obstack_free): New macro. Declare instead of
45281         obstack_free.
45282         (obstack_free): Invoke the __obstack_free macro.
45283         * lib/obstack.c (obstack_free): Use __obstack_free macro.
45284
45285 2006-10-23  Bruno Haible  <bruno@clisp.org>
45286             Paul Eggert  <eggert@cs.ucla.edu>
45287
45288         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
45289         __argc, __argv from the declaration. (They are defined as macros on
45290         mingw.)
45291
45292 2006-10-22  Bruno Haible  <bruno@clisp.org>
45293
45294         * doc/gnulib-intro.texi: New file.
45295         * doc/gnulib.texi: Include it.
45296
45297 2006-10-21  Bruno Haible  <bruno@clisp.org>
45298
45299         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
45300         "Introduction", "Miscellanous Notes", "Particular Modules".
45301
45302 2006-10-21  Bruno Haible  <bruno@clisp.org>
45303
45304         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45305         Change mostlyclean-local rule to avoid sh syntax error from bash
45306         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
45307
45308 2006-10-23  Jim Meyering  <jim@meyering.net>
45309
45310         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
45311         in place of snprintf.
45312
45313         * modules/inttostr (Files): Add lib/uinttostr.c.
45314         * lib/uinttostr.c (inttostr): New file/function.
45315         * lib/inttostr.h (uinttostr): Declare.
45316         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
45317         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
45318         Add uinttostr.
45319         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
45320
45321 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
45322
45323         * lib/canonicalize.c (ELOOP): Define if not already defined.
45324         Problem reported by Bruno Haible in
45325         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
45326
45327 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
45328
45329         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
45330         Problem reported by Perry Smith and Ville Laurikari.
45331
45332         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
45333         uses.
45334
45335 2006-10-19  Bruno Haible  <bruno@clisp.org>
45336
45337         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
45338         for mingw.
45339
45340 2006-10-19  Bruno Haible  <bruno@clisp.org>
45341
45342         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
45343         Needed for mingw.
45344
45345 2006-10-19  Bruno Haible  <bruno@clisp.org>
45346
45347         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
45348
45349 2006-10-19  Bruno Haible  <bruno@clisp.org>
45350
45351         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
45352         it.
45353
45354 2006-10-19  Bruno Haible  <bruno@clisp.org>
45355
45356         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
45357         invocation.
45358
45359 2006-10-19  Bruno Haible  <bruno@clisp.org>
45360
45361         * gnulib-tool (func_create_testdir): Don't include ftruncate and
45362         mountlist by default.
45363
45364 2006-10-16  Bruno Haible  <bruno@clisp.org>
45365
45366         * lib/c-strstr.c: Include c-strstr.h.
45367
45368 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
45369
45370         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
45371         in a slash.
45372
45373 2006-10-18  Bruno Haible  <bruno@clisp.org>
45374
45375         * lib/lock.h [C++]: Wrap definitions in extern "C".
45376
45377 2006-10-18  Bruno Haible  <bruno@clisp.org>
45378
45379         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
45380         gl_LIBOBJS list.
45381
45382 2006-10-18  Bruno Haible  <bruno@clisp.org>
45383
45384         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
45385
45386 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
45387
45388         * lib/xstrtol.h: Include gettext.h.
45389         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
45390         Problem reported by Eric Blake.
45391         * modules/xstrtol (Depends-on): Add gettext-h.
45392
45393 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
45394
45395         * lib/strftime.c (advance): New macro.
45396         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
45397         incomplete type, so you can't add 0 to it.  Problem and patch
45398         reported by Eelco Dolstra for dietlibc.
45399
45400 2006-10-18  Jim Meyering  <jim@meyering.net>
45401
45402         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
45403         type for a local, and rename it: s/up/user_proc/.
45404
45405 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
45406
45407         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
45408         READ_UTMP_USER_PROCESS.
45409         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
45410
45411 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
45412
45413         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
45414         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
45415
45416 2006-10-17  Eric Blake  <ebb9@byu.net>
45417
45418         * lib/sigprocmask.c (sigprocmask): Fix typo.
45419
45420         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
45421
45422         * modules/clean-temp (Makefile.am): Don't add to make output...
45423         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
45424         config.h.
45425
45426 2006-10-17  Bruno Haible  <bruno@clisp.org>
45427
45428         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
45429         differently if DEFAULT_TEXT_DOMAIN is set.
45430
45431 2006-10-16  Bruno Haible  <bruno@clisp.org>
45432
45433         * lib/clean-temp.c: Include fwriteerror.h.
45434
45435 2006-10-16  Bruno Haible  <bruno@clisp.org>
45436
45437         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
45438
45439 2006-10-16  Bruno Haible  <bruno@clisp.org>
45440
45441         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
45442         * lib/sigprocmask.h: Include <sys/types.h>.
45443         (sigset_t): Use the system's definition if present.
45444
45445 2006-10-17  Eric Blake  <ebb9@byu.net>
45446
45447         * lib/xvasprintf.c (includes): Assume config.h.
45448         * lib/xasprintf.c (includes): Likewise.
45449
45450 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
45451
45452         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
45453         at least as wide as intmax_t.
45454
45455 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
45456
45457         (Imported from Automake.)
45458         * build-aux/gnupload: Update to version 1.1 of directive file.
45459
45460 2006-10-16  Eric Blake  <ebb9@byu.net>
45461
45462         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
45463         match Automake 1.10a.
45464
45465 2006-10-14  Bruno Haible  <bruno@clisp.org>
45466
45467         * modules/sigprocmask: New file.
45468         * lib/sigprocmask.h: New file.
45469         * lib/sigprocmask.c: New file.
45470         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
45471         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
45472         request sigprocmask.o.
45473         (gl_PREREQ_SIGPROCMASK): New macro.
45474         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
45475         (Depends-on): Add sigprocmask.
45476         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
45477         gt_SIGNALBLOCKING. Test for 'raise' only once.
45478         * lib/fatal-signal.c: Include sigprocmask.h.
45479         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
45480         unblock_fatal_signals): Define always.
45481         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45482         sigprocmask.
45483
45484 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
45485
45486         Sync from Automake.
45487         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
45488         which incorrectly sets the mode of an existing destination
45489         directory.  In some cases the unpatched install-sh could do the
45490         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
45491         system.  We hope this is rare in practice, but it's clearly worth
45492         fixing.  Problem reported by Alex Unleashed in
45493         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
45494         Also, don't bother to check for -m bugs unless we're using -m;
45495         suggested by Stepan Kasal.
45496
45497 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45498
45499         Sync from Automake.
45500         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
45501         `-c' flag, so they appear at the same position as in %FASTDEP%
45502         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
45503         which ignores unknown options only after the first non-option.
45504         Bug report against M4 by Nelson H. F. Beebe.
45505
45506 2006-10-13  Jim Meyering  <jim@meyering.net>
45507
45508         Fix a bug in yesterday's change.
45509         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
45510         p->fts_statp->st_dev would be used uninitialized.
45511         Ensures that we always call fts_stat on the very first entry.
45512         Miklos Szeredi reported that find -xdev stopped working.
45513
45514 2006-10-12  Bruno Haible  <bruno@clisp.org>
45515
45516         * gnulib-tool (func_get_automake_snippet): Append an automatically
45517         computed EXTRA_DIST augmentation.
45518         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
45519         * modules/alloca-opt (Makefile.am): Likewise.
45520         * modules/allocsa (Makefile.am): Likewise.
45521         * modules/arcfour (Makefile.am): Likewise.
45522         * modules/arctwo (Makefile.am): Likewise.
45523         * modules/argmatch (Makefile.am): Likewise.
45524         * modules/argz (Makefile.am): Likewise.
45525         * modules/atexit (Makefile.am): Likewise.
45526         * modules/backupfile (Makefile.am): Likewise.
45527         * modules/byteswap (Makefile.am): Likewise.
45528         * modules/c-strtod (Makefile.am): Likewise.
45529         * modules/c-strtold (Makefile.am): Likewise.
45530         * modules/calloc (Makefile.am): Likewise.
45531         * modules/canon-host (Makefile.am): Likewise.
45532         * modules/canonicalize (Makefile.am): Likewise.
45533         * modules/chdir-long (Makefile.am): Likewise.
45534         * modules/chdir-safer (Makefile.am): Likewise.
45535         * modules/check-version (Makefile.am): Likewise.
45536         * modules/chown (Makefile.am): Likewise.
45537         * modules/cloexec (Makefile.am): Likewise.
45538         * modules/close-stream (Makefile.am): Likewise.
45539         * modules/closeout (Makefile.am): Likewise.
45540         * modules/crc (Makefile.am): Likewise.
45541         * modules/csharpexec (Makefile.am): Likewise.
45542         * modules/cycle-check (Makefile.am): Likewise.
45543         * modules/des (Makefile.am): Likewise.
45544         * modules/dev-ino (Makefile.am): Likewise.
45545         * modules/dirfd (Makefile.am): Likewise.
45546         * modules/dirname (Makefile.am): Likewise.
45547         * modules/dup2 (Makefile.am): Likewise.
45548         * modules/eealloc (Makefile.am): Likewise.
45549         * modules/error (Makefile.am): Likewise.
45550         * modules/euidaccess (Makefile.am): Likewise.
45551         * modules/exclude (Makefile.am): Likewise.
45552         * modules/exitfail (Makefile.am): Likewise.
45553         * modules/fcntl-safer (Makefile.am): Likewise.
45554         * modules/fcntl (Makefile.am): Likewise.
45555         * modules/file-type (Makefile.am): Likewise.
45556         * modules/fileblocks (Makefile.am): Likewise.
45557         * modules/filemode (Makefile.am): Likewise.
45558         * modules/filenamecat (Makefile.am): Likewise.
45559         * modules/fnmatch (Makefile.am): Likewise.
45560         * modules/fopen-safer (Makefile.am): Likewise.
45561         * modules/fpending (Makefile.am): Likewise.
45562         * modules/fprintftime (Makefile.am): Likewise.
45563         * modules/free (Makefile.am): Likewise.
45564         * modules/fsusage (Makefile.am): Likewise.
45565         * modules/ftruncate (Makefile.am): Likewise.
45566         * modules/fts (Makefile.am): Likewise.
45567         * modules/gc-arcfour (Makefile.am): Likewise.
45568         * modules/gc-des (Makefile.am): Likewise.
45569         * modules/gc-hmac-md5 (Makefile.am): Likewise.
45570         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
45571         * modules/gc-md4 (Makefile.am): Likewise.
45572         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
45573         * modules/gc-sha1 (Makefile.am): Likewise.
45574         * modules/gc (Makefile.am): Likewise.
45575         * modules/getaddrinfo (Makefile.am): Likewise.
45576         * modules/getcwd (Makefile.am): Likewise.
45577         * modules/getdelim (Makefile.am): Likewise.
45578         * modules/getdomainname (Makefile.am): Likewise.
45579         * modules/getgroups (Makefile.am): Likewise.
45580         * modules/gethostname (Makefile.am): Likewise.
45581         * modules/gethrxtime (Makefile.am): Likewise.
45582         * modules/getline (Makefile.am): Likewise.
45583         * modules/getloadavg (Makefile.am): Likewise.
45584         * modules/getlogin_r (Makefile.am): Likewise.
45585         * modules/getndelim2 (Makefile.am): Likewise.
45586         * modules/getopt (Makefile.am): Likewise.
45587         * modules/getpagesize (Makefile.am): Likewise.
45588         * modules/getpass-gnu (Makefile.am): Likewise.
45589         * modules/getpass (Makefile.am): Likewise.
45590         * modules/getsubopt (Makefile.am): Likewise.
45591         * modules/gettime (Makefile.am): Likewise.
45592         * modules/gettimeofday (Makefile.am): Likewise.
45593         * modules/getugroups (Makefile.am): Likewise.
45594         * modules/getusershell (Makefile.am): Likewise.
45595         * modules/glob (Makefile.am): Likewise.
45596         * modules/group-member (Makefile.am): Likewise.
45597         * modules/hard-locale (Makefile.am): Likewise.
45598         * modules/hash (Makefile.am): Likewise.
45599         * modules/hmac-md5 (Makefile.am): Likewise.
45600         * modules/hmac-sha1 (Makefile.am): Likewise.
45601         * modules/human (Makefile.am): Likewise.
45602         * modules/idcache (Makefile.am): Likewise.
45603         * modules/imaxabs (Makefile.am): Likewise.
45604         * modules/imaxdiv (Makefile.am): Likewise.
45605         * modules/inet_ntop (Makefile.am): Likewise.
45606         * modules/inet_pton (Makefile.am): Likewise.
45607         * modules/intprops (Makefile.am): Likewise.
45608         * modules/inttostr (Makefile.am): Likewise.
45609         * modules/inttypes (Makefile.am): Likewise.
45610         * modules/isapipe (Makefile.am): Likewise.
45611         * modules/javaversion (Makefile.am): Likewise.
45612         * modules/lchmod (Makefile.am): Likewise.
45613         * modules/lchown (Makefile.am): Likewise.
45614         * modules/localcharset (Makefile.am): Likewise.
45615         * modules/long-options (Makefile.am): Likewise.
45616         * modules/lstat (Makefile.am): Likewise.
45617         * modules/malloc (Makefile.am): Likewise.
45618         * modules/mathl (Makefile.am): Likewise.
45619         * modules/mbchar (Makefile.am): Likewise.
45620         * modules/md2 (Makefile.am): Likewise.
45621         * modules/md4 (Makefile.am): Likewise.
45622         * modules/md5 (Makefile.am): Likewise.
45623         * modules/memcasecmp (Makefile.am): Likewise.
45624         * modules/memchr (Makefile.am): Likewise.
45625         * modules/memcmp (Makefile.am): Likewise.
45626         * modules/memcoll (Makefile.am): Likewise.
45627         * modules/memcpy (Makefile.am): Likewise.
45628         * modules/memmem (Makefile.am): Likewise.
45629         * modules/memmove (Makefile.am): Likewise.
45630         * modules/mempcpy (Makefile.am): Likewise.
45631         * modules/memrchr (Makefile.am): Likewise.
45632         * modules/memset (Makefile.am): Likewise.
45633         * modules/memxor (Makefile.am): Likewise.
45634         * modules/mkancesdirs (Makefile.am): Likewise.
45635         * modules/mkdir-p (Makefile.am): Likewise.
45636         * modules/mkdir (Makefile.am): Likewise.
45637         * modules/mkdtemp (Makefile.am): Likewise.
45638         * modules/mkstemp (Makefile.am): Likewise.
45639         * modules/mktime (Makefile.am): Likewise.
45640         * modules/modechange (Makefile.am): Likewise.
45641         * modules/mountlist (Makefile.am): Likewise.
45642         * modules/nanosleep (Makefile.am): Likewise.
45643         * modules/obstack (Makefile.am): Likewise.
45644         * modules/openat (Makefile.am): Likewise.
45645         * modules/pagealign_alloc (Makefile.am): Likewise.
45646         * modules/pathmax (Makefile.am): Likewise.
45647         * modules/physmem (Makefile.am): Likewise.
45648         * modules/poll (Makefile.am): Likewise.
45649         * modules/posixtm (Makefile.am): Likewise.
45650         * modules/posixver (Makefile.am): Likewise.
45651         * modules/putenv (Makefile.am): Likewise.
45652         * modules/quote (Makefile.am): Likewise.
45653         * modules/quotearg (Makefile.am): Likewise.
45654         * modules/raise (Makefile.am): Likewise.
45655         * modules/read-file (Makefile.am): Likewise.
45656         * modules/readline (Makefile.am): Likewise.
45657         * modules/readlink (Makefile.am): Likewise.
45658         * modules/readtokens (Makefile.am): Likewise.
45659         * modules/readutmp (Makefile.am): Likewise.
45660         * modules/realloc (Makefile.am): Likewise.
45661         * modules/regex (Makefile.am): Likewise.
45662         * modules/rename-dest-slash (Makefile.am): Likewise.
45663         * modules/rename (Makefile.am): Likewise.
45664         * modules/rijndael (Makefile.am): Likewise.
45665         * modules/rmdir (Makefile.am): Likewise.
45666         * modules/rpmatch (Makefile.am): Likewise.
45667         * modules/safe-read (Makefile.am): Likewise.
45668         * modules/safe-write (Makefile.am): Likewise.
45669         * modules/same-inode (Makefile.am): Likewise.
45670         * modules/same (Makefile.am): Likewise.
45671         * modules/save-cwd (Makefile.am): Likewise.
45672         * modules/savedir (Makefile.am): Likewise.
45673         * modules/setenv (Makefile.am): Likewise.
45674         * modules/settime (Makefile.am): Likewise.
45675         * modules/sha1 (Makefile.am): Likewise.
45676         * modules/sig2str (Makefile.am): Likewise.
45677         * modules/snprintf (Makefile.am): Likewise.
45678         * modules/stat-macros (Makefile.am): Likewise.
45679         * modules/stat-time (Makefile.am): Likewise.
45680         * modules/stdbool (Makefile.am): Likewise.
45681         * modules/stdint (Makefile.am): Likewise.
45682         * modules/stdlib-safer (Makefile.am): Likewise.
45683         * modules/stpcpy (Makefile.am): Likewise.
45684         * modules/stpncpy (Makefile.am): Likewise.
45685         * modules/strcase (Makefile.am): Likewise.
45686         * modules/strcasestr (Makefile.am): Likewise.
45687         * modules/strchrnul (Makefile.am): Likewise.
45688         * modules/strcspn (Makefile.am): Likewise.
45689         * modules/strdup (Makefile.am): Likewise.
45690         * modules/strerror (Makefile.am): Likewise.
45691         * modules/strftime (Makefile.am): Likewise.
45692         * modules/strndup (Makefile.am): Likewise.
45693         * modules/strnlen (Makefile.am): Likewise.
45694         * modules/strpbrk (Makefile.am): Likewise.
45695         * modules/strsep (Makefile.am): Likewise.
45696         * modules/strstr (Makefile.am): Likewise.
45697         * modules/strtod (Makefile.am): Likewise.
45698         * modules/strtoimax (Makefile.am): Likewise.
45699         * modules/strtok_r (Makefile.am): Likewise.
45700         * modules/strtol (Makefile.am): Likewise.
45701         * modules/strtoll (Makefile.am): Likewise.
45702         * modules/strtoul (Makefile.am): Likewise.
45703         * modules/strtoull (Makefile.am): Likewise.
45704         * modules/strtoumax (Makefile.am): Likewise.
45705         * modules/strverscmp (Makefile.am): Likewise.
45706         * modules/sys_socket (Makefile.am): Likewise.
45707         * modules/sys_stat (Makefile.am): Likewise.
45708         * modules/sysexits (Makefile.am): Likewise.
45709         * modules/time_r (Makefile.am): Likewise.
45710         * modules/timegm (Makefile.am): Likewise.
45711         * modules/timespec (Makefile.am): Likewise.
45712         * modules/tmpfile-safer (Makefile.am): Likewise.
45713         * modules/trim (Makefile.am): Likewise.
45714         * modules/unistd-safer (Makefile.am): Likewise.
45715         * modules/unlinkdir (Makefile.am): Likewise.
45716         * modules/unlocked-io (Makefile.am): Likewise.
45717         * modules/userspec (Makefile.am): Likewise.
45718         * modules/utime (Makefile.am): Likewise.
45719         * modules/utimecmp (Makefile.am): Likewise.
45720         * modules/utimens (Makefile.am): Likewise.
45721         * modules/vasnprintf (Makefile.am): Likewise.
45722         * modules/vasprintf (Makefile.am): Likewise.
45723         * modules/vsnprintf (Makefile.am): Likewise.
45724         * modules/xalloc (Makefile.am): Likewise.
45725         * modules/xgetcwd (Makefile.am): Likewise.
45726         * modules/xnanosleep (Makefile.am): Likewise.
45727         * modules/xreadlink (Makefile.am): Likewise.
45728         * modules/xstrtod (Makefile.am): Likewise.
45729         * modules/xstrtol (Makefile.am): Likewise.
45730         * modules/xstrtold (Makefile.am): Likewise.
45731         * modules/yesno (Makefile.am): Likewise.
45732         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
45733
45734 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
45735
45736         * modules/error (Makefile.am): Distribute files through
45737         EXTRA_DIST, not lib_SOURCES.
45738
45739 2006-10-12  Eric Blake  <ebb9@byu.net>
45740
45741         * modules/error (Makefile.am): Distribute files in /lib.
45742         * modules/obstack (Makefile.am): Likewise.
45743
45744 2006-10-12  Bruno Haible  <bruno@clisp.org>
45745
45746         * modules/acl (Makefile.am): Distribute all files in lib/ through
45747         EXTRA_DIST.
45748         * modules/arcfour (Makefile.am): Likewise.
45749         * modules/arctwo (Makefile.am): Likewise.
45750         * modules/argmatch (Makefile.am): Likewise.
45751         * modules/argz (Makefile.am): Likewise.
45752         * modules/atexit (Makefile.am): Likewise.
45753         * modules/backupfile (Makefile.am): Likewise.
45754         * modules/c-strtod (Makefile.am): Likewise.
45755         * modules/c-strtold (Makefile.am): Likewise.
45756         * modules/calloc (Makefile.am): Likewise.
45757         * modules/canon-host (Makefile.am): Likewise.
45758         * modules/canonicalize (Makefile.am): Likewise.
45759         * modules/chdir-long (Makefile.am): Likewise.
45760         * modules/chdir-safer (Makefile.am): Likewise.
45761         * modules/check-version (Makefile.am): Likewise.
45762         * modules/chown (Makefile.am): Likewise.
45763         * modules/cloexec (Makefile.am): Likewise.
45764         * modules/close-stream (Makefile.am): Likewise.
45765         * modules/closeout (Makefile.am): Likewise.
45766         * modules/crc (Makefile.am): Likewise.
45767         * modules/cycle-check (Makefile.am): Likewise.
45768         * modules/des (Makefile.am): Likewise.
45769         * modules/dirfd (Makefile.am): Likewise.
45770         * modules/dirname (Makefile.am): Likewise.
45771         * modules/dup2 (Makefile.am): Likewise.
45772         * modules/euidaccess (Makefile.am): Likewise.
45773         * modules/exclude (Makefile.am): Likewise.
45774         * modules/exitfail (Makefile.am): Likewise.
45775         * modules/fcntl-safer (Makefile.am): Likewise.
45776         * modules/file-type (Makefile.am): Likewise.
45777         * modules/fileblocks (Makefile.am): Likewise.
45778         * modules/filemode (Makefile.am): Likewise.
45779         * modules/filenamecat (Makefile.am): Likewise.
45780         * modules/fnmatch (Makefile.am): Likewise.
45781         * modules/fopen-safer (Makefile.am): Likewise.
45782         * modules/fpending (Makefile.am): Likewise.
45783         * modules/fprintftime (Makefile.am): Likewise.
45784         * modules/free (Makefile.am): Likewise.
45785         * modules/fsusage (Makefile.am): Likewise.
45786         * modules/ftruncate (Makefile.am): Likewise.
45787         * modules/fts (Makefile.am): Likewise.
45788         * modules/gc (Makefile.am): Likewise.
45789         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
45790         * modules/getaddrinfo (Makefile.am): Likewise.
45791         * modules/getcwd (Makefile.am): Likewise.
45792         * modules/getdelim (Makefile.am): Likewise.
45793         * modules/getdomainname (Makefile.am): Likewise.
45794         * modules/getgroups (Makefile.am): Likewise.
45795         * modules/gethostname (Makefile.am): Likewise.
45796         * modules/gethrxtime (Makefile.am): Likewise.
45797         * modules/getline (Makefile.am): Likewise.
45798         * modules/getloadavg (Makefile.am): Likewise.
45799         * modules/getlogin_r (Makefile.am): Likewise.
45800         * modules/getopt (Makefile.am): Likewise.
45801         * modules/getpass (Makefile.am): Likewise.
45802         * modules/getpass-gnu (Makefile.am): Likewise.
45803         * modules/getsubopt (Makefile.am): Likewise.
45804         * modules/gettime (Makefile.am): Likewise.
45805         * modules/gettimeofday (Makefile.am): Likewise.
45806         * modules/getugroups (Makefile.am): Likewise.
45807         * modules/getusershell (Makefile.am): Likewise.
45808         * modules/glob (Makefile.am): Likewise.
45809         * modules/group-member (Makefile.am): Likewise.
45810         * modules/hard-locale (Makefile.am): Likewise.
45811         * modules/hash (Makefile.am): Likewise.
45812         * modules/hmac-md5 (Makefile.am): Likewise.
45813         * modules/hmac-sha1 (Makefile.am): Likewise.
45814         * modules/human (Makefile.am): Likewise.
45815         * modules/idcache (Makefile.am): Likewise.
45816         * modules/imaxabs (Makefile.am): Likewise.
45817         * modules/imaxdiv (Makefile.am): Likewise.
45818         * modules/inet_ntop (Makefile.am): Likewise.
45819         * modules/inet_pton (Makefile.am): Likewise.
45820         * modules/inttostr (Makefile.am): Likewise.
45821         * modules/isapipe (Makefile.am): Likewise.
45822         * modules/lchown (Makefile.am): Likewise.
45823         * modules/long-options (Makefile.am): Likewise.
45824         * modules/lstat (Makefile.am): Likewise.
45825         * modules/malloc (Makefile.am): Likewise.
45826         * modules/mathl (Makefile.am): Likewise.
45827         * modules/mbchar (Makefile.am): Likewise.
45828         * modules/md2 (Makefile.am): Likewise.
45829         * modules/md4 (Makefile.am): Likewise.
45830         * modules/md5 (Makefile.am): Likewise.
45831         * modules/memcasecmp (Makefile.am): Likewise.
45832         * modules/memchr (Makefile.am): Likewise.
45833         * modules/memcmp (Makefile.am): Likewise.
45834         * modules/memcoll (Makefile.am): Likewise.
45835         * modules/memcpy (Makefile.am): Likewise.
45836         * modules/memmem (Makefile.am): Likewise.
45837         * modules/memmove (Makefile.am): Likewise.
45838         * modules/mempcpy (Makefile.am): Likewise.
45839         * modules/memrchr (Makefile.am): Likewise.
45840         * modules/memset (Makefile.am): Likewise.
45841         * modules/memxor (Makefile.am): Likewise.
45842         * modules/mkancesdirs (Makefile.am): Likewise.
45843         * modules/mkdir (Makefile.am): Likewise.
45844         * modules/mkdir-p (Makefile.am): Likewise.
45845         * modules/mkdtemp (Makefile.am): Likewise.
45846         * modules/mkstemp (Makefile.am): Likewise.
45847         * modules/mktime (Makefile.am): Likewise.
45848         * modules/modechange (Makefile.am): Likewise.
45849         * modules/mountlist (Makefile.am): Likewise.
45850         * modules/nanosleep (Makefile.am): Likewise.
45851         * modules/openat (Makefile.am): Likewise.
45852         * modules/pagealign_alloc (Makefile.am): Likewise.
45853         * modules/physmem (Makefile.am): Likewise.
45854         * modules/poll (Makefile.am): Likewise.
45855         * modules/posixtm (Makefile.am): Likewise.
45856         * modules/posixver (Makefile.am): Likewise.
45857         * modules/putenv (Makefile.am): Likewise.
45858         * modules/quote (Makefile.am): Likewise.
45859         * modules/quotearg (Makefile.am): Likewise.
45860         * modules/raise (Makefile.am): Likewise.
45861         * modules/read-file (Makefile.am): Likewise.
45862         * modules/readline (Makefile.am): Likewise.
45863         * modules/readlink (Makefile.am): Likewise.
45864         * modules/readtokens (Makefile.am): Likewise.
45865         * modules/readutmp (Makefile.am): Likewise.
45866         * modules/realloc (Makefile.am): Likewise.
45867         * modules/regex (Makefile.am): Likewise.
45868         * modules/rename (Makefile.am): Likewise.
45869         * modules/rename-dest-slash (Makefile.am): Likewise.
45870         * modules/rijndael (Makefile.am): Likewise.
45871         * modules/rmdir (Makefile.am): Likewise.
45872         * modules/rpmatch (Makefile.am): Likewise.
45873         * modules/safe-read (Makefile.am): Likewise.
45874         * modules/safe-write (Makefile.am): Likewise.
45875         * modules/same (Makefile.am): Likewise.
45876         * modules/save-cwd (Makefile.am): Likewise.
45877         * modules/savedir (Makefile.am): Likewise.
45878         * modules/setenv (Makefile.am): Likewise.
45879         * modules/settime (Makefile.am): Likewise.
45880         * modules/sha1 (Makefile.am): Likewise.
45881         * modules/sig2str (Makefile.am): Likewise.
45882         * modules/snprintf (Makefile.am): Likewise.
45883         * modules/stdlib-safer (Makefile.am): Likewise.
45884         * modules/stpcpy (Makefile.am): Likewise.
45885         * modules/stpncpy (Makefile.am): Likewise.
45886         * modules/strcase (Makefile.am): Likewise.
45887         * modules/strcasestr (Makefile.am): Likewise.
45888         * modules/strchrnul (Makefile.am): Likewise.
45889         * modules/strcspn (Makefile.am): Likewise.
45890         * modules/strdup (Makefile.am): Likewise.
45891         * modules/strerror (Makefile.am): Likewise.
45892         * modules/strftime (Makefile.am): Likewise.
45893         * modules/strndup (Makefile.am): Likewise.
45894         * modules/strnlen (Makefile.am): Likewise.
45895         * modules/strpbrk (Makefile.am): Likewise.
45896         * modules/strsep (Makefile.am): Likewise.
45897         * modules/strstr (Makefile.am): Likewise.
45898         * modules/strtod (Makefile.am): Likewise.
45899         * modules/strtoimax (Makefile.am): Likewise.
45900         * modules/strtok_r (Makefile.am): Likewise.
45901         * modules/strtol (Makefile.am): Likewise.
45902         * modules/strtoll (Makefile.am): Likewise.
45903         * modules/strtoul (Makefile.am): Likewise.
45904         * modules/strtoull (Makefile.am): Likewise.
45905         * modules/strtoumax (Makefile.am): Likewise.
45906         * modules/strverscmp (Makefile.am): Likewise.
45907         * modules/time_r (Makefile.am): Likewise.
45908         * modules/timegm (Makefile.am): Likewise.
45909         * modules/tmpfile-safer (Makefile.am): Likewise.
45910         * modules/unistd-safer (Makefile.am): Likewise.
45911         * modules/unlinkdir (Makefile.am): Likewise.
45912         * modules/userspec (Makefile.am): Likewise.
45913         * modules/utime (Makefile.am): Likewise.
45914         * modules/utimecmp (Makefile.am): Likewise.
45915         * modules/utimens (Makefile.am): Likewise.
45916         * modules/vasnprintf (Makefile.am): Likewise.
45917         * modules/vasprintf (Makefile.am): Likewise.
45918         * modules/vsnprintf (Makefile.am): Likewise.
45919         * modules/xalloc (Makefile.am): Likewise.
45920         * modules/xgetcwd (Makefile.am): Likewise.
45921         * modules/xnanosleep (Makefile.am): Likewise.
45922         * modules/xreadlink (Makefile.am): Likewise.
45923         * modules/xstrtod (Makefile.am): Likewise.
45924         * modules/xstrtol (Makefile.am): Likewise.
45925         * modules/xstrtold (Makefile.am): Likewise.
45926         * modules/yesno (Makefile.am): Likewise.
45927
45928 2006-10-12  Jim Meyering  <jim@meyering.net>
45929
45930         * m4/getloadavg.m4: Revert the change below.
45931
45932         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
45933         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
45934         fail with a symlink, which is what coreutils' ./bootstrap now
45935         creates by default.
45936
45937 2006-10-12  Bruno Haible  <bruno@clisp.org>
45938
45939         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
45940         mingw.
45941         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
45942         MSVC and mingw explicitly.
45943
45944 2006-10-11  Simon Josefsson  <jas@extundo.com>
45945             Bruno Haible  <bruno@clisp.org>
45946
45947         Add support for multiple gnulib-tool invocations in the scope of a
45948         single configure.ac file.
45949         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
45950         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
45951         with the same contents as the _LIBADD variable.
45952         (func_emit_initmacro_start, func_emit_initmacro_end,
45953         func_emit_initmacro_done): New functions.
45954         (func_import, func_create_testdir): Invoke them. Allow the identifiers
45955         gl_LIBOBJS and gl_LTLIBOBJS.
45956
45957 2006-10-11  Bruno Haible  <bruno@clisp.org>
45958
45959         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
45960         (func_create_testdir): Don't create po/Makefile.am, don't invoke
45961         autoreconf. Instead, invoke autopoint explicitly but move back the
45962         *.m4 files from gnulib.
45963
45964 2006-10-11  Bruno Haible  <bruno@clisp.org>
45965
45966         * gnulib-tool (func_usage): Make module names after --create-testdir
45967         optional.
45968         (func_create_testdir): If no module was specified, use nearly all
45969         modules.
45970
45971 2006-10-12  Jim Meyering  <jim@meyering.net>
45972
45973         Big performance improvement for fts-based tools that use FTS_NOSTAT.
45974         Avoid spurious inode-mismatch problems on non-POSIX file systems.
45975         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
45976         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
45977         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
45978         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
45979         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
45980         (fts_set_stat_required): New function.
45981         (fts_open): Defer the calls to fts_stat, if possible or requested.
45982         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
45983         into fts_stat itself.
45984         (fts_read): Perform any required (deferred) fts_stat call.
45985         (fts_build): Likewise, for the directory we're about to open and read.
45986         In the readdir loop, carefully decide whether each entry will require
45987         an eventual call to fts_stat, using dirent.d_type info if available.
45988         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
45989         a command line argument into this function.  Update all callers.
45990         Map a return value of FTS_DOT to FTS_D for a command line argument.
45991         * modules/fts (Depends-on): Add d-type.  Alphabetize.
45992         Thanks to Miklos Szeredi for his tenacity and for the initial
45993         bug report about "find" failing on a FUSE-based file system.
45994
45995         * lib/fts.c (fts_open): Use consistent indentation.
45996
45997 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
45998
45999         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
46000         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
46001         reported by Jim Meyering.  All uses of cache variables renamed
46002         to match Autoconf's.
46003         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
46004         the other one.
46005
46006         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
46007         Fix misspelling in diagnostic.
46008
46009 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
46010
46011         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
46012         defined.  Problem reported by Matthew Woehlke.
46013
46014         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
46015         Add support for Tandem NonStop R series.
46016         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
46017         Use new macro.
46018
46019         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
46020         (has_trailing_slash): Omit size arg; all callers changed.
46021         Omit 'inline', since it doesn't help performance and we'd
46022         need to configure it.
46023         Don't count //, ///, etc. as having a trailing slash.
46024         As a side effect, this removes a C99ism reported by Matthew Woehlke.
46025         (rpl_rename_dest_slash): On failure, use rename's errno rather
46026         than (in some cases) an incorrect or junk errno.
46027         Simplify code by removing need to compute length; this does
46028         cause it to make two passes instead of one over the file name,
46029         but it's worth it.
46030
46031         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
46032         change, since Autoconf's version may no longer be appropriate now
46033         that we are using CVS Autoconf's version.  Add support for Tandem.
46034
46035 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
46036             Bruno Haible  <bruno@clisp.org>
46037
46038         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
46039         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
46040         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
46041         gl_AC_TYPE_LONG_LONG.
46042
46043         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
46044         instead of HAVE_LONG_LONG.
46045         * lib/printf-args.c (printf_fetchargs): Likewise.
46046         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
46047         * lib/vasnprintf.c (VASNPRINTF): Likewise.
46048         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
46049         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
46050         gl_AC_TYPE_LONG_LONG.
46051
46052 2006-10-11  Bruno Haible  <bruno@clisp.org>
46053
46054         * m4/longlong.m4: Add comments.
46055         * m4/ulonglong.m4: Likewise.
46056
46057 2006-10-10  Bruno Haible  <bruno@clisp.org>
46058
46059         Make it possible to #define stpcpy, strdup to aliases.
46060         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
46061         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
46062
46063 2006-10-10  Bruno Haible  <bruno@clisp.org>
46064
46065         Make it possible to #define gcd to an alias.
46066         * lib/gcd.c: Include config.h.
46067
46068 2006-10-10  Bruno Haible  <bruno@clisp.org>
46069
46070         Make it possible to #define c_isascii to an alias.
46071         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
46072         defined. Undefine the macros before defining them, to avoid gcc
46073         warnings.
46074         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
46075         define NO_C_CTYPE_MACROS early.
46076
46077 2006-10-10  Bruno Haible  <bruno@clisp.org>
46078
46079         Make it possible to #define set_program_name to an alias.
46080         * lib/progname.c: Don't undefine set_program_name; instead, undefine
46081         ENABLE_RELOCATABLE early.
46082
46083 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
46084
46085         Port to Tandem NSK OSS, which has 64-bit signed int but at most
46086         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
46087         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
46088         More generally, don't assume that 64-bit signed int is available
46089         if unsigned int is, and vice versa.
46090         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
46091         unsigned symbols, not on their signed counterparts.
46092         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
46093         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
46094         (UINT64_C, UINTMAX_C):
46095         Likewise.
46096         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
46097         unsigned counterparts.
46098         (Have_long_long, Unsigned): New macros.
46099         (Int): Renamed from INT.
46100         (strtoimax): Use the new macros.
46101         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
46102         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
46103         * modules/inttypes (inttypes.h): Substitute
46104         HAVE_UNSIGNED_LONG_LONG_INT.
46105         * modules/stdint (stdint.h): Likewise.
46106         (Files): Add m4/ulonglong.m4.
46107
46108 2006-10-10  Bruno Haible  <bruno@clisp.org>
46109
46110         Fix a gcc -Wshadow warning.
46111         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
46112         to 'bucket'.
46113         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
46114         gl_linked_indexof_from_to): Likewise.
46115         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
46116         Likewise.
46117         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
46118         Likewise.
46119         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
46120         Reported by Eric Blake.
46121
46122 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
46123
46124         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
46125         for NetBSD.  Problem reported by Bruno Haible.
46126
46127 2006-10-09  Jim Meyering  <jim@meyering.net>
46128
46129         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
46130         Patch from Bruno Haible.
46131
46132 2006-10-09  Jim Meyering  <jim@meyering.net>
46133
46134         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
46135         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
46136         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
46137
46138 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
46139
46140         Don't include <config.h> twice; this doesn't work in some cases,
46141         e.g., when config.h has "#define intmax_t long long int" and
46142         we include <config.h>, <inttypes.h>, <config.h> in that order.
46143         Problem reported by Matthew Woehlke in:
46144         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
46145         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
46146         * lib/fts-cycle.c: Don't include config.h.
46147         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
46148         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
46149         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
46150         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
46151         inttypes.h.
46152         * lib/xstrtoumax.c: Likewise.
46153         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
46154         __strtol and the like, so that this module is more like its siblings.
46155         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
46156         Remove; no longer needed now that we assume gnulib inttypes.h.
46157
46158 2006-10-08  Bruno Haible  <bruno@clisp.org>
46159
46160         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
46161         option.
46162
46163 2006-10-07  Jim Meyering  <jim@meyering.net>
46164
46165         * modules/inttypes (inttypes.h): Revert what seems to have been
46166         an inadvertent part of today's change: use "|", not "/" in the
46167         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
46168
46169 2006-10-07  Bruno Haible  <bruno@clisp.org>
46170
46171         * modules/sublist: New file.
46172
46173 2006-10-07  Bruno Haible  <bruno@clisp.org>
46174
46175         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
46176         * modules/argz (argz.h): Likewise.
46177         * modules/arpa_inet (arpa/inet.h): Likewise.
46178         * modules/byteswap (byteswap.h): Likewise.
46179         * modules/configmake (configmake.h): Likewise.
46180         * modules/fcntl (fcntl.h): Likewise.
46181         * modules/fnmatch (fnmatch.h): Likewise.
46182         * modules/getopt (getopt.h): Likewise.
46183         * modules/glob (glob.h): Likewise.
46184         * modules/inttypes (inttypes.h): Likewise.
46185         * modules/netinet_in (netinet/in.h): Likewise.
46186         * modules/poll (poll.h): Likewise.
46187         * modules/stdbool (stdbool.h): Likewise.
46188         * modules/stdint (stdint.h): Likewise.
46189         * modules/sys_select (sys/select.h): Likewise.
46190         * modules/sys_socket (sys/socket.h): Likewise.
46191         * modules/sys_stat (sys/stat.h): Likewise.
46192         * modules/sysexits (sysexits.h): Likewise.
46193         * modules/unistd (unistd.h): Likewise.
46194         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
46195         Add a "DO NOT EDIT" comment to the generated file.
46196         (func_import): Likewise for gnulib-comp.m4.
46197
46198 2006-10-07  Bruno Haible  <bruno@clisp.org>
46199
46200         * lib/gl_sublist.h: New file.
46201         * lib/gl_sublist.c: New file.
46202
46203 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
46204
46205         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
46206         name (relative to the original working directory) and the file
46207         name component (relative to the temporary working directory).  All
46208         callers changed.
46209         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
46210         * lib/mkdir-p.c (make_dir_parents): Likewise.
46211         * lib/mkdir-p.h (make_dir_parents): Likewise.
46212
46213 2006-10-06  Eric Blake  <ebb9@byu.net>
46214
46215         Define several macros for use by the clean-temp module.
46216         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
46217         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
46218         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
46219
46220         * lib/clean-temp.h (close_stream_temp): New declaration.
46221         * lib/clean-temp.c (includes): Pull in headers according to what
46222         other modules are in use.
46223         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
46224
46225 2006-10-06  Bruno Haible  <bruno@clisp.org>
46226
46227         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
46228         instead of fopen, fwriteerror.
46229
46230 2006-10-06  Bruno Haible  <bruno@clisp.org>
46231
46232         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
46233         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
46234         int.
46235         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
46236         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
46237         Return an error indicator.
46238         Suggested by Eric Blake.
46239
46240 2006-10-06  Bruno Haible  <bruno@clisp.org>
46241
46242         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
46243         Reported by Eric Blake.
46244
46245 2006-10-06  Bruno Haible  <bruno@clisp.org>
46246
46247         * modules/closeout (Description): Mention stderr too.
46248
46249 2006-10-06  Bruno Haible  <bruno@clisp.org>
46250         and Paul Eggert  <eggert@cs.ucla.edu>
46251
46252         * lib/closeout.c (close_stdout): Also close stderr.
46253         * lib/closeout.h: Update comment.
46254
46255 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
46256
46257         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
46258         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
46259         * lib/dirchownmod.c: Include lchown.h.
46260         * lib/lchown.c: Don't include files that lchown.h now includes.
46261         Don't declare chown, since lchown.h now does that.
46262         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
46263         (lchown): Define to rpl_chown if lchown is declared but
46264         does not exist.  Declare using a prototype if lchown is not
46265         declared.  Add a copyright notice.
46266         * lib/mkstemp.h: Include <unistd.h>.
46267         * lib/openat.c: Include lchown.h.
46268
46269         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
46270         we now test for that separately.
46271         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
46272         rather than O_NOFOLLOW, when testing whether it's possible to
46273         avoid a race condition reliably.
46274         * lib/savewd.c (savewd_chdir): Likewise.
46275
46276         Remove macros that are no longer needed now that stdint.h is
46277         reliable.
46278         * lib/fsusage.c (UINTMAX_MAX): Remove.
46279         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
46280         * lib/utimecmp.c (SIZE_MAX): Remove.
46281
46282         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
46283
46284         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
46285         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
46286         O_NOATIME works.
46287
46288 2006-10-05  Bruno Haible  <bruno@clisp.org>
46289
46290         * lib/gl_list.h (gl_sortedlist_search_from_to,
46291         gl_sortedlist_indexof_from_to): New declarations.
46292         (gl_list_implementation): New fields sortedlist_search_from_to,
46293         sortedlist_indexof_from_to.
46294         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
46295         inline functions.
46296         * lib/gl_list.c (gl_sortedlist_search_from_to,
46297         gl_sortedlist_indexof_from_to): New functions.
46298         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
46299         function.
46300         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
46301         (gl_array_sortedlist_search_from_to): New function.
46302         (gl_array_list_implementation): Update.
46303         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
46304         function.
46305         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
46306         (gl_carray_sortedlist_search_from_to): New function.
46307         (gl_carray_list_implementation): Update.
46308         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
46309         gl_linked_sortedlist_indexof_from_to): New functions.
46310         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
46311         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
46312         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
46313         gl_tree_sortedlist_indexof_from_to): New functions.
46314         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
46315         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
46316         Update.
46317         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
46318         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
46319         Update.
46320
46321 2006-10-05  Bruno Haible  <bruno@clisp.org>
46322
46323         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
46324         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
46325         (struct gl_list_implementation): Add fields search_from_to,
46326         indexof_from_to. Remove fields search, indexof.
46327         (gl_list_search): Use the search_from_to method.
46328         (gl_list_search_from, gl_list_search_from_to): New functions.
46329         (gl_list_indexof): Use the indexof_from_to method.
46330         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
46331         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
46332         (gl_list_search_from, gl_list_search_from_to): New functions.
46333         (gl_list_indexof): Use the indexof_from_to method.
46334         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
46335         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
46336         gl_array_indexof. Add start_index, end_index arguments.
46337         (gl_array_search_from_to): Renamed from gl_array_search. Add
46338         start_index, end_index arguments.
46339         (gl_array_remove, gl_array_list_implementation): Update.
46340         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
46341         gl_carray_indexof. Add start_index, end_index arguments.
46342         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
46343         start_index, end_index arguments.
46344         (gl_carray_remove, gl_carray_list_implementation): Update.
46345         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
46346         gl_linked_search. Add start_index, end_index arguments.
46347         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
46348         start_index, end_index arguments.
46349         (gl_linked_remove): Update.
46350         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
46351         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
46352         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
46353         field to 'size_t'.
46354         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
46355         gl_tree_search. Add start_index, end_index arguments.
46356         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
46357         start_index, end_index arguments.
46358         (gl_tree_remove): Update.
46359         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
46360         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
46361         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
46362         function.
46363         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
46364         gl_tree_search. Add start_index, end_index arguments.
46365         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
46366         start_index, end_index arguments.
46367         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
46368         Update.
46369         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
46370
46371 2006-10-05  Bruno Haible  <bruno@clisp.org>
46372
46373         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
46374
46375         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
46376         fwriteerror_temp): New declarations.
46377         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
46378         (descriptors): New variable.
46379         (cleanup): First, close the descriptors.
46380         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
46381         fclose_temp, fwriteerror_temp): New functions.
46382
46383 2006-10-04  Jim Meyering  <jim@meyering.net>
46384
46385         * lib/fts.c (fts_open): Tiny comment change.
46386
46387 2006-10-04  Bruno Haible  <bruno@clisp.org>
46388
46389         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
46390         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
46391         gl_LOCK_BODY.
46392         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
46393         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
46394         gl_LOCK_EARLY_BODY.
46395         (gl_LOCK): Require gl_LOCK_BODY.
46396
46397 2006-10-04  Bruno Haible  <bruno@clisp.org>
46398
46399         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
46400         (gl_oset_search_atleast): New declaration.
46401         (struct gl_oset_implementation): Add field 'search_atleast'.
46402         (gl_oset_search_atleast): New inline function.
46403         * lib/gl_oset.c (gl_oset_search_atleast): New function.
46404         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
46405         (gl_array_oset_implementation): Update.
46406         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
46407         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
46408         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
46409
46410 2006-10-04  Bruno Haible  <bruno@clisp.org>
46411
46412         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
46413
46414 2006-10-03  Bruno Haible  <bruno@clisp.org>
46415
46416         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
46417         from gl_avltreehash_list_implementation.
46418
46419 2006-10-03  Bruno Haible  <bruno@clisp.org>
46420
46421         * lib/gl_oset.c (gl_oset_add): Fix return type.
46422
46423 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
46424
46425         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
46426
46427 2006-10-02  Eric Blake  <ebb9@byu.net>
46428
46429         * modules/strnlen (Depends-on): Add extensions.
46430
46431 2006-10-02  Eric Blake  <ebb9@byu.net>
46432
46433         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
46434         definition in 2.60+.
46435
46436 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
46437
46438         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
46439         checks.
46440
46441 2006-10-02  Bruno Haible  <bruno@clisp.org>
46442
46443         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
46444         to the AUTOMAKE_OPTIONS.
46445         Reported by Jim Meyering.
46446
46447 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
46448
46449         Work around bug in Solaris 10 /proc file system:
46450         /proc/self/fd/NNN/.. isn't the parent directory of
46451         the directory whose file descriptor is NNN.  This needs to
46452         be worked around at run time, not compile time, since a
46453         program might be built on Solaris 8, where things work, and
46454         run on Solaris 10.
46455         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
46456         to use the following interface instead:
46457         (OPENAT_BUFFER_SIZE): New macro.
46458         (openat_proc_name): New function.
46459         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
46460         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
46461         Likewise.
46462         * lib/openat-proc.c: New file.
46463         * modules/openat (Files): Add lib/openat-proc.c.
46464         (Depends-on): Add same-inode, stdbool.
46465         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
46466
46467 2006-09-29  Bruno Haible  <bruno@clisp.org>
46468
46469         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
46470         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
46471         argument. Set stdout_closed before testing for ferror, not after.
46472         (fwriteerror, fwriteerror_no_ebadf): New functions.
46473
46474 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46475
46476         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
46477
46478 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
46479
46480         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
46481         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
46482
46483 2006-09-28  Jim Meyering  <jim@meyering.net>
46484
46485         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
46486         Include <unistd.h>.
46487
46488 2006-09-28  Bruno Haible  <bruno@clisp.org>
46489
46490         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
46491         * modules/linkedhash-list (Depends-on): Likewise.
46492         * modules/rbtreehash-list (Depends-on): Likewise.
46493
46494 2006-09-28  Bruno Haible  <bruno@clisp.org>
46495
46496         * lib/strndup.h: Simplify the redefinition of strndup.
46497         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
46498         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
46499
46500 2006-09-28  Bruno Haible  <bruno@clisp.org>
46501
46502         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
46503         * lib/gl_linkedhash_list.c: Likewise.
46504         * lib/gl_rbtreehash_list.c: Likewise.
46505
46506 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
46507
46508         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
46509         getaddrinfo.
46510
46511         * lib/__fpending.h: Don't include <stdio_ext.h> unless
46512         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
46513         it causes <stdio_ext.h> to cause a compile-time error.
46514         Problem reported by Nelson H. F. Beebe.
46515         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
46516         of HAVE_DECL___PENDING.
46517
46518         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
46519         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
46520         declaration.
46521
46522 2006-09-27  Jim Meyering  <jim@meyering.net>
46523
46524         This file could end up with a definition for a function
46525         named __strndup, rather than rpl_strndup on a system with
46526         incomplete weak_alias support.
46527         * lib/strndup.c (strndup): Rename from __strndup.
46528         Remove #defines that used to map __strndup to strndup.
46529         Don't use K&R prototypes.
46530         Remove LIBC-related code, since this file is not sync'd with glibc.
46531         * lib/strndup.h: Revamp, accordingly.
46532         * m4/strndup.m4: Modernize.
46533
46534 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
46535
46536         * modules/savewd (Depends-on): Add 'raise'.
46537         * lib/savewd.c: Include <signal.h>, for 'raise'.
46538
46539 2006-09-26  Jim Meyering  <jim@meyering.net>
46540
46541         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
46542         when we detect Darwin 8.7.0's acl_get_file bug.
46543         Rearrange to perform the new (below) run-test while $LIBS
46544         contains any acl-related library.  Set USE_ACL at the end.
46545         (gl_ACL_GET_FILE): New function.
46546
46547 2006-09-26  Eric Blake  <ebb9@byu.net>
46548
46549         * lib/verror.c: Include <config.h> unconditionally.
46550
46551 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
46552
46553         * modules/clock-time (Maintainer): Add self.
46554         * modules/getlogin_r (Depends-on): Add extensions.
46555
46556 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46557
46558         * modules/clock-time: New module.
46559         * modules/nanosleep (Depends-on): Add clock-time.
46560         * modules/gethrxtime (Depends-on): Likewise.
46561         * modules/gettime (Depends-on): Likewise.
46562         * modules/settime (Depends-on): Likewise.
46563
46564         * modules/fts-lgpl: Depend on openat.
46565         * modules/mkancesdirs: Depend on savewd.
46566         * modules/mkdir-p: Likewise.
46567
46568 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46569
46570         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
46571
46572         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
46573         `gl_have_arbitrary_file_name_length_limit' to
46574         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
46575         actually works between configure runs.
46576
46577 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46578             Bruno Haible  <bruno@clisp.org>
46579
46580         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
46581
46582 2006-09-25  Jim Meyering  <jim@meyering.net>
46583
46584         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
46585         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
46586
46587 2006-09-25  Eric Blake  <ebb9@byu.net>
46588
46589         * gnulib-tool (func_import, func_create_testdir): Fix typos in
46590         exec's in 2006-09-18 patch when shuffling fds.
46591
46592 2006-09-25  Bruno Haible  <bruno@clisp.org>
46593
46594         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
46595         Reported by Jim Meyering.
46596
46597 2006-09-24  Jim Meyering  <jim@meyering.net>
46598
46599         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
46600         compare a pointer against a literal "0".  That caused failures with
46601         at least HP-UX's hpcc.
46602
46603 2006-09-22  Simon Josefsson  <jas@extundo.com>
46604
46605         * modules/gc-sha1:
46606         * modules/gc-md4:
46607         * modules/gc-hmac-sha1:
46608         * modules/gc-hmac-md5:
46609         * modules/gc-des:
46610         * modules/gc-arcfour: Distribute more files.
46611
46612 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46613
46614         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
46615         (gl_linked_iterator_from_to): Initialize struct completely.
46616         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
46617         (gl_tree_iterator_from_to): Likewise
46618         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
46619         * lib/gl_array_list.c [lint] (gl_array_iterator)
46620         (gl_array_iterator_from_to): Likewise.
46621         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
46622         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
46623         (gl_carray_iterator_from_to): Likewise.
46624
46625         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
46626         * lib/md4.c (md4_process_block): Remove unused variable.
46627         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
46628         parentheses for clarity.
46629
46630 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46631
46632         * modules/bison-i18n (Depends-on): Add gettext.
46633
46634 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46635
46636         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
46637         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
46638         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
46639         also add missing comma that caused broken test.
46640         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
46641         stdlib.h, for `abort'.
46642         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
46643         variables.
46644         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
46645         include unistd.h if present, for `rmdir'.
46646         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
46647         variables.
46648         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
46649         in the process include standard headers for prototypes.
46650         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
46651         gets declared on GNU/Linux.
46652         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
46653         unistd.h, for `rmdir'.
46654         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
46655
46656         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
46657         always true.
46658         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
46659
46660         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
46661
46662 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46663
46664         * gnulib-tool (func_version): Create output all at once.  This
46665         may help avoid triggering unnecessary SIGPIPEs, and at any
46666         rate it doesn't hurt.
46667
46668 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46669             Bruno Haible  <bruno@clisp.org>
46670
46671         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
46672         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
46673         * m4/signed.m4 (bh_C_SIGNED): Likewise.
46674
46675         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
46676         (gl_FUNC_VASPRINTF): Invoke it.
46677
46678 2006-09-22  Bruno Haible  <bruno@clisp.org>
46679
46680         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
46681         getloadavg.c as first argument.
46682
46683 2006-09-22  Bruno Haible  <bruno@clisp.org>
46684
46685         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
46686         at the beginning of the gl_INIT macro.
46687         * modules/getloadavg (configure.ac): Pass $gl_source_base to
46688         gl_GETLOADAVG.
46689
46690 2006-09-22  Bruno Haible  <bruno@clisp.org>
46691
46692         * gnulib-tool (func_create_megatestdir): Don't include the config-h
46693         module.
46694         Suggested by Ralf Wildenhues.
46695
46696 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
46697
46698         Import this patch from libc:
46699
46700         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
46701
46702         * lib/regex_internal.c (re_string_reconstruct): Handle
46703         offset < pstr->valid_raw_len && pstr->offsets_needed case.
46704         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
46705         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
46706         re_string_context_at.
46707
46708         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
46709         now requires it.
46710         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
46711         gl_REGEX now does it for us.
46712         (gl_REGEX): Add test taken from
46713         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
46714
46715         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
46716         Check that large offsets work.  Modernize Autoconf usages.
46717         Prefer "yes" to mean a good thing rather than a bad.
46718         Don't put "#define mkstemp" in config.h, as this might interfere
46719         with standard system headers that "#define mkstemp mkstemp64".
46720
46721         * modules/mkstemp (Depends-on): Add extensions, so that
46722         mkstemp is visible on some platforms.
46723         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
46724         (Include): Change to "mkstemp.h" from <stdlib.h>.
46725         (Files): Add mkstemp.h.
46726
46727         * lib/mkstemp.h: New file, since some standard headers
46728         #define mkstemp.
46729         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
46730         Include "mkstemp.h".
46731         Make the _LIBC code resemble glibc original more,
46732         e.g., use K&R style.
46733         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
46734         (mkstemp): Remove, since mkstemp.h does this for us.
46735         * lib/stdlib--.h: Include mkstemp.h.
46736
46737         Import this patch from libc:
46738
46739         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
46740
46741         * lib/tempname.c (__gen_tempname): Change attempts_min
46742         into a macro.  Use preprocessor to decide how to initialize
46743         attempts [Coverity CID 67].
46744
46745 2006-09-20  Bruno Haible  <bruno@clisp.org>
46746
46747         * lib/mkdtemp.c: Import from libc.
46748         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
46749                 * sysdeps/posix/tempname.c (__gen_tempname): Change
46750                 attempts_min into a macro.  Use preprocessor to decide how to
46751                 initialize attempts [Coverity CID 67].
46752         2001-11-27  Paul Eggert  <eggert@twinsun.com>
46753                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
46754                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
46755
46756 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46757
46758         * gnulib-tool (func_exit): New function, to allow to pass the
46759         exit status portably through the trap.  Use everywhere.
46760         (--help, --version): Signal a write error.
46761         (trap): catch SIGPIPE, for write errors.
46762         Exit at the end of the trap, with the correct exit status.
46763
46764 2006-09-19  Karl Berry  <karl@gnu.org>
46765
46766         * doc/gnulib.texi: note about the license texinfo files.
46767
46768 2006-09-19  Eric Blake  <ebb9@byu.net>
46769
46770         * gnulib-tool: Avoid space-tab.
46771
46772 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
46773
46774         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
46775         that prevented coreutils 6.1 from building.  Problem reported
46776         by Petter Reinholdtsen.
46777
46778 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
46779
46780         * gnulib-tool (avoidlist): Fix typo that broke options like
46781         --avoid=lock that are used by coreutils bootstrap.
46782
46783 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
46784
46785         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
46786         more systematically.
46787
46788 2006-09-18  Jim Meyering  <jim@meyering.net>
46789
46790         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
46791
46792 2006-09-18  Bruno Haible  <bruno@clisp.org>
46793
46794         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
46795
46796 2006-09-18  Bruno Haible  <bruno@clisp.org>
46797
46798         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
46799         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
46800         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
46801         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
46802         * m4/gettext.m4: Require autoconf >= 2.52.
46803         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
46804         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
46805         of gl_cv_header_inttypes_h.
46806
46807 2006-09-18  Bruno Haible  <bruno@clisp.org>
46808
46809         * lib/javaversion.c: Include configmake.h.
46810
46811 2006-09-18  Bruno Haible  <bruno@clisp.org>
46812
46813         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
46814         avoid that the while loops be executed in a subshell.
46815
46816 2006-09-18  Bruno Haible  <bruno@clisp.org>
46817
46818         * MODULES.html.sh (func_module): Break long lines.
46819         Suggested by Bruce Korb <bkorb@gnu.org>.
46820
46821 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46822
46823         Speed up by a factor of 1.12.
46824         * gnulib-tool (nl): New variable.
46825         (func_import): Rewrite include directive extraction to only read each
46826         directive once.
46827
46828 2006-09-17  Bruno Haible  <bruno@clisp.org>
46829
46830         * modules/javaversion (Makefile.am): Remove DEFS setting.
46831         (Depends-on): Add configmake, for PKGDATADIR definition.
46832
46833 2006-09-17  Bruno Haible  <bruno@clisp.org>
46834
46835         * gnulib-tool (func_create_testdir): Rewrite all files at once.
46836
46837 2006-09-17  Bruno Haible  <bruno@clisp.org>
46838
46839         * gnulib-tool (func_append): New function, stolen from libtool.m4.
46840         (func_modules_transitive_closure, func_modules_add_dummy,
46841         func_modules_to_filelist, func_import, func_create_testdir,
46842         func_create_megatestdir, ...): Use it wherever possible.
46843         Suggested by Ralf Wildenhues.
46844
46845 2006-09-16  Karl Berry  <karl@gnu.org>
46846
46847         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
46848         to avoid sectioning errors.
46849         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
46850         [ifinfo]: blank line after @center-ed titles.
46851         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
46852         Spell FSF address consistently with others.
46853         (These changes approved by rms.)
46854
46855 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46856
46857         Speed up by a factor of 1.61.
46858         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
46859         already checked module names again.
46860
46861 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46862
46863         Speed up by a factor of 1.13.
46864         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
46865         for new_files, and the input to func_add_or_update.
46866
46867 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46868
46869         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
46870         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
46871
46872 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
46873
46874         * modules/mkancesdirs (Depends-on): Add fcntl.
46875         * modules/savewd: New file.
46876         * MODULES.html.sh (File system functions): Add savewd.
46877
46878         * modules/configmake (Makefile.am): Add support for the
46879         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
46880
46881 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
46882
46883         * m4/savewd.m4: New file.
46884
46885 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
46886
46887         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
46888         (dirchownmod): New arg FD.  All callers changed.
46889         Use FD rather than opening the directory ourself, as opening is
46890         now the caller's responsibility.
46891         * lib/dirchownmod.h: Likewise.
46892         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
46893         hosts that require <sys/types.h> before <sys/stat.h>.  Include
46894         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
46895         (test_dir): Remove.
46896         (mkancesdirs): Return length of prefix of FILE that has already
46897         been made, or -2 if there is a child doing the work.  Redo
46898         algorithm so that it is O(N) rather than O(N**2).  Optimize away
46899         ".", and treat ".." specially since it might stray back into
46900         already-created areas.  Use a subprocess if necessary.  New arg
46901         WD; all users changed.  MAKE_DIR function should now return 1
46902         if it creates a directory that is not readable.  Return -2 if
46903         a child process is spun off.
46904         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
46905         Adjust signature to match code.
46906         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
46907         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
46908         all users changed.
46909         * lib/savewd.c, lib/savewd.h: New files.
46910
46911 2006-09-15  Jim Meyering  <jim@meyering.net>
46912
46913         * modules/rename-dest-slash: New module.
46914         * MODULES.html.sh (posix_compat): Add it here.
46915
46916         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
46917
46918 2006-09-15  Jim Meyering  <jim@meyering.net>
46919
46920         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
46921         file.
46922
46923         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
46924
46925 2006-09-15  Jim Meyering  <jim@meyering.net>
46926
46927         * lib/rename-dest-slash.c (has_trailing_slash): Use
46928         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
46929         (rpl_rename_dest_slash): Perform the cheaper trailing slash
46930         test before testing whether SRC is a directory.
46931         Suggestions from Bruno Haible.
46932
46933         Avoid a warning about an unused variable.
46934         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
46935         into the #ifdef block where it's used.
46936
46937         * lib/rename-dest-slash.c: New file.
46938
46939 2006-09-14  Bruno Haible  <bruno@clisp.org>
46940
46941         * lib/allocsa.c: Include <config.h> unconditionally.
46942         * lib/asnprintf.c: Likewise.
46943         * lib/asprintf.c: Likewise.
46944         * lib/c-strcasecmp.c: Likewise.
46945         * lib/c-strcasestr.c: Likewise.
46946         * lib/c-strncasecmp.c: Likewise.
46947         * lib/c-strstr.c: Likewise.
46948         * lib/classpath.c: Likewise.
46949         * lib/clean-temp.c: Likewise.
46950         * lib/concatpath.c: Likewise.
46951         * lib/copy-file.c: Likewise.
46952         * lib/csharpcomp.c: Likewise.
46953         * lib/csharpexec.c: Likewise.
46954         * lib/execute.c: Likewise.
46955         * lib/fatal-signal.c: Likewise.
46956         * lib/findprog.c: Likewise.
46957         * lib/fwriteerror.c: Likewise.
46958         * lib/gl_array_list.c: Likewise.
46959         * lib/gl_array_oset.c: Likewise.
46960         * lib/gl_avltree_list.c: Likewise.
46961         * lib/gl_avltree_oset.c: Likewise.
46962         * lib/gl_avltreehash_list.c: Likewise.
46963         * lib/gl_carray_list.c: Likewise.
46964         * lib/gl_linked_list.c: Likewise.
46965         * lib/gl_linkedhash_list.c: Likewise.
46966         * lib/gl_list.c: Likewise.
46967         * lib/gl_oset.c: Likewise.
46968         * lib/gl_rbtree_list.c: Likewise.
46969         * lib/gl_rbtree_oset.c: Likewise.
46970         * lib/gl_rbtreehash_list.c: Likewise.
46971         * lib/imaxabs.c: Likewise.
46972         * lib/imaxdiv.c: Likewise.
46973         * lib/javacomp.c: Likewise.
46974         * lib/javaexec.c: Likewise.
46975         * lib/javaversion.c: Likewise.
46976         * lib/linebreak.c: Likewise.
46977         * lib/localcharset.c: Likewise.
46978         * lib/lock.c: Likewise.
46979         * lib/mbchar.c: Likewise.
46980         * lib/mbswidth.c: Likewise.
46981         * lib/mkdtemp.c: Likewise.
46982         * lib/pipe.c: Likewise.
46983         * lib/printf-args.c: Likewise.
46984         * lib/printf-parse.c: Likewise.
46985         * lib/progname.c: Likewise.
46986         * lib/progreloc.c: Likewise.
46987         * lib/readlink.c: Likewise.
46988         * lib/sh-quote.c: Likewise.
46989         * lib/stpcpy.c: Likewise.
46990         * lib/stpncpy.c: Likewise.
46991         * lib/strcasecmp.c: Likewise.
46992         * lib/strcasestr.c: Likewise.
46993         * lib/strcspn.c: Likewise.
46994         * lib/striconv.c: Likewise.
46995         * lib/strncasecmp.c: Likewise.
46996         * lib/strnlen1.c: Likewise.
46997         * lib/strstr.c: Likewise.
46998         * lib/strtok_r.c: Likewise.
46999         * lib/tls.c: Likewise.
47000         * lib/tmpdir.c: Likewise.
47001         * lib/unicodeio.c: Likewise.
47002         * lib/unsetenv.c: Likewise.
47003         * lib/vasnprintf.c: Likewise.
47004         * lib/vasprintf.c: Likewise.
47005         * lib/wait-process.c: Likewise.
47006         * lib/xallocsa.c: Likewise.
47007         * lib/xsetenv.c: Likewise.
47008         * lib/xstriconv.c: Likewise.
47009
47010 2006-09-13  Simon Josefsson  <jas@extundo.com>
47011
47012         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
47013         that internally, suggested by Ralf Wildenhues
47014         <Ralf.Wildenhues@gmx.de>.
47015
47016 2006-09-13  Simon Josefsson  <jas@extundo.com>
47017
47018         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
47019         @LIBOBJS@.
47020         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47021
47022 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
47023
47024         * lib/_fpending.c: Include <config.h> unconditionally, since we no
47025         longer worry about uses that don't define HAVE_CONFIG_H.
47026         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
47027         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
47028         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
47029         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
47030         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
47031         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
47032         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
47033         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
47034         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
47035         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
47036         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
47037         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
47038         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
47039         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
47040         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
47041         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
47042         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
47043         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
47044         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
47045         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
47046         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
47047         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
47048         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
47049         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
47050         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
47051         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
47052         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
47053         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
47054         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
47055         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
47056         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
47057         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
47058         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
47059         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
47060         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
47061         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
47062         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
47063         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
47064         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
47065         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
47066         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
47067         Likewise.
47068
47069 2006-09-13  Eric Blake  <ebb9@byu.net>
47070
47071         * lib/getopt.c: Fix typo in last commit.
47072
47073 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
47074
47075         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
47076         dgettext.
47077
47078 2006-09-12  Jim Meyering  <jim@meyering.net>
47079
47080         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
47081         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
47082         Reported by Nelson H. F. Beebe.
47083
47084 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
47085
47086         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
47087         program_invocation_name and program_invocation_short_name are
47088         initialized.
47089         * lib/argp-namefrob.h: Move declarations of program_invocation_name
47090         and program_invocation_short_name to argp.h, so they are visible
47091         to user programs.
47092         * lib/argp.h: Likewise
47093
47094 2006-09-10  Bruno Haible  <bruno@clisp.org>
47095
47096         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
47097         m4/inttypes_h.m4, m4/uintmax_t.m4.
47098
47099 2006-09-10  Bruno Haible  <bruno@clisp.org>
47100
47101         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
47102         gl_AC_TYPE_UINTMAX_T.
47103
47104 2006-09-10  Bruno Haible  <bruno@clisp.org>
47105
47106         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
47107
47108 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
47109
47110         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
47111         convention.  Text proposed by Bruno Haible.
47112         (struct argp_option): Document the use of N_() wrappers.
47113
47114         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
47115         '\v', and translate the two parts separately, instead of feeding
47116         the whole string to gettext.  This allows to exclude
47117         '\v' from the strings visible to the translator by writing doc
47118         strings as N_("..") "\v" N_("..").
47119
47120 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
47121
47122         * config/srclist.txt: Undo latest change; the bug was fixed.
47123
47124 2006-09-09  Bruno Haible  <bruno@clisp.org>
47125
47126         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
47127         assignments if building a library without libtool.
47128         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
47129         in func_emit_lib_Makefile_am.
47130         (func_import): When building a static library libfoo.a, arrange to
47131         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
47132         (func_create_testdir): Likewise.
47133         * modules/gc (configure.ac, Makefile.am): If building statically,
47134         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
47135         * modules/iconvme (configure.ac, Makefile.am): Likewise.
47136         * modules/striconv (configure.ac, Makefile.am): Likewise.
47137         Based on a suggestion by Ralf Wildenhues.
47138
47139 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
47140
47141         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
47142         Check for unistd.h too, since Autoconf doesn't assume POSIX.
47143         Also:
47144
47145         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
47146         Add year_2050_test to catch glibc bug 2821
47147         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
47148
47149         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
47150         Prefer #ifdef to #if.
47151
47152         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
47153         Return from 'main' instead of calling 'exit'.
47154
47155 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
47156
47157         * lib/mktime.c (guess_time_tm): Fix bug where mktime
47158         returned the maximum time_t value rather than (time_t) -1.
47159         Problem originally reported by William Bardwell
47160         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
47161
47162         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
47163         Moved to here ...
47164         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
47165         ... from here.
47166
47167 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
47168
47169         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
47170         2821 is fixed.
47171
47172 2006-09-08  Jim Meyering  <jim@meyering.net>
47173
47174         Don't make generated files read-only.  That would bother too many
47175         people.  However, do retain the ability to work when targets are
47176         read-only: remove the destination and temporary files before writing
47177         them (when generated via sed or echo), or by using the -f option for
47178         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
47179         * modules/alloca-opt, modules/argz, modules/arpa_inet:
47180         * modules/byteswap, modules/configmake, modules/fcntl:
47181         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
47182         * modules/localcharset, modules/netinet_in, modules/poll:
47183         * modules/stdbool, modules/stdint, modules/sys_select:
47184         * modules/sys_socket, modules/sys_stat, modules/sysexits:
47185
47186 2006-09-08  Jim Meyering  <jim@meyering.net>
47187
47188         Avoid new build failure on FreeBSD 6.0.
47189         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
47190         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
47191         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
47192
47193 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47194
47195         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
47196
47197 2006-09-07  Jim Meyering  <jim@meyering.net>
47198
47199         Fix global typo in last change: use chmod u-w, not chmod u-x.
47200         Spotted by Paul Eggert and Bruce Korb.
47201         * modules/alloca-opt, modules/argz, modules/arpa_inet:
47202         * modules/byteswap, modules/configmake, modules/fcntl:
47203         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
47204         * modules/localcharset, modules/netinet_in, modules/poll:
47205         * modules/stdbool, modules/stdint, modules/sys_select:
47206         * modules/sys_socket, modules/sys_stat, modules/sysexits:
47207
47208 2006-09-06  Jim Meyering  <jim@meyering.net>
47209
47210         Make generated files be read-only.
47211         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
47212         Ensure that each generated file is now read-only.
47213         * modules/argz: Likewise.
47214         * modules/arpa_inet: Likewise.
47215         * modules/byteswap: Likewise.
47216         * modules/configmake: Likewise.
47217         * modules/fcntl: Likewise.
47218         * modules/fnmatch: Likewise.
47219         * modules/getopt: Likewise.
47220         * modules/glob: Likewise.
47221         * modules/inttypes: Likewise.
47222         * modules/netinet_in: Likewise.
47223         * modules/poll: Likewise.
47224         * modules/stdbool: Likewise.
47225         * modules/stdint: Likewise.
47226         * modules/sys_select: Likewise.
47227         * modules/sys_socket: Likewise.
47228         * modules/sys_stat: Likewise.
47229         * modules/sysexits: Likewise.
47230         * modules/localcharset: Same as above, but continue using temporary
47231         file named "t-$@" (why different?) rather than the "$@-t" used
47232         everywhere else.
47233
47234         * modules/sysexits (Makefile.am): Replace literal occurrences
47235         of "sysexit.h" more readable, and more consistent, "$@".
47236
47237 2006-09-06  Bruno Haible  <bruno@clisp.org>
47238
47239         * modules/striconv: New file.
47240         * modules/xstriconv: New file.
47241         * MODULES.html.sh (Internationalization functions): Add striconv,
47242         xstriconv.
47243
47244 2006-09-06  Bruno Haible  <bruno@clisp.org>
47245
47246         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
47247         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
47248         not using libtool correctly.
47249
47250 2006-09-06  Bruno Haible  <bruno@clisp.org>
47251
47252         * lib/striconv.h: New file.
47253         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
47254         iconvstring.c.
47255         * lib/xstriconv.h: New file.
47256         * lib/xstriconv.c: New file.
47257
47258 2006-09-06  Bruno Haible  <bruno@clisp.org>
47259
47260         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
47261         lib_..._LDFLAGS.
47262
47263 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47264
47265         * lib/argz_.h: Sync from Libtool.
47266
47267         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
47268                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
47269
47270         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
47271
47272 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
47273
47274         * modules/trim: New file.
47275
47276 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
47277
47278         * lib/trim.h: New file.
47279         * lib/trim.c: New file.
47280
47281 2006-09-05  Bruno Haible  <bruno@clisp.org>
47282
47283         * MODULES.html.sh (String handling): Add trim.
47284
47285 2006-09-04  Karl Berry  <karl@gnu.org>
47286
47287         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
47288         until next release.
47289
47290 2006-09-03  Bruno Haible  <bruno@clisp.org>
47291
47292         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
47293         correctly.
47294
47295 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
47296
47297         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
47298         not gl_GETLOADAVG.  Omit unneeded semicolons.
47299         Problems reported by Ralf Wildenhues in
47300         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
47301         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
47302         at the end, which is the usual gnulib style.
47303
47304         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
47305         of doing all the work ourselves.
47306         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
47307         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
47308
47309 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
47310
47311         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
47312         Problem reported by Ralf Wildenhues in
47313         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
47314
47315         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
47316         HAVE_STRUCT_STATFS_F_FSTYPENAME.
47317
47318 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
47319
47320         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
47321         yesterday's patch by changing test -n to test -z.
47322
47323 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
47324
47325         * modules/getloadavg (Files): Add m4/getloadavg.m4.
47326         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
47327         the former is now obsolescent.
47328
47329         * modules/chdir-long (Depends-on): Add fcntl.
47330
47331 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
47332
47333         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
47334         obsolescent, and programs should use gnulib instead.
47335         * m4/getloadavg.m4: New file, with contents taken from Autoconf
47336         but with prefixes changed.
47337
47338 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
47339
47340         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
47341         or stdbool.h, because they might not exist while configuring.
47342
47343         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
47344         Don't include unistd.h or limits.h; not needed, since chdir-long.h
47345         does that for us.
47346         (O_DIRECTORY): Remove.
47347
47348 2006-08-31  Eric Blake  <ebb9@byu.net>
47349
47350         * gnulib-tool: Don't let emacs change spaces to TAB.
47351
47352 2006-08-31  Bruno Haible  <bruno@clisp.org>
47353
47354         * gnulib-tool: When calling func_import more than once, do it in a
47355         subshell.
47356         Reported by Eric Blake <ebb9@byu.net>.
47357
47358 2006-08-31  Bruno Haible  <bruno@clisp.org>
47359
47360         * gnulib-tool (nl): Remove variable.
47361         (sed_transform_lib_file): Use more robust test for config-h module.
47362         (func_import): Fix typo in 2006-08-25 patch.
47363
47364 2006-08-31  Bruno Haible  <bruno@clisp.org>
47365
47366         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
47367         specified, augment Makefile.am variables instead of assigning them.
47368
47369 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
47370
47371         Work around a bug in both the Linux and SunOS 64-bit kernels:
47372         nanosleep mishandles sleeps for longer than 2**31 seconds.
47373         Problem reported by Frank v Waveren in
47374         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
47375         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
47376         Check for nanosleep bug.
47377         (LIB_NANOSLEEP): Append clock_gettime library if needed.
47378
47379 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
47380
47381         Work around a bug in both the Linux and SunOS 64-bit kernels:
47382         nanosleep mishandles sleeps for longer than 2**31 seconds.
47383         Problem reported by Frank v Waveren in
47384         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
47385         * lib/nanosleep.c (BILLION): New constant.
47386         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
47387         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
47388         implementation.
47389
47390 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
47391
47392         * modules/nanosleep (Depends-on): Add gettime.
47393
47394 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
47395         and Simon Josefsson  <jas@extundo.com>
47396         and Oskar Liljeblad  <oskar@osk.mine.nu>
47397
47398         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
47399         * gnulib-tool (func_import): New license type 'unmodifiable license
47400         text'.
47401         * modules/fdl: Use it.  Longer description.
47402         * module/gpl, module/lgpl: New files.
47403
47404 2006-08-30  Jim Meyering  <jim@meyering.net>
47405
47406         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
47407         shadowing the parameter.
47408
47409 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47410
47411         Sync from Libtool:
47412
47413         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47414
47415         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
47416         sharing with gnulib.  Report by Eric Blake.
47417
47418 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
47419
47420         * modules/isapipe: New file.
47421         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
47422
47423 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
47424
47425         * modules/configmake (Makefile.am): Add a comment, and omit
47426         the CONFIGMAKE_ prefix from generated macro names.  Suggested
47427         by Bruno Haible.
47428
47429 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
47430
47431         * m4/isapipe.m4: New file.
47432
47433 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
47434
47435         * lib/isapipe.c, lib/isapipe.h: New files.
47436
47437 2006-08-29  Jim Meyering  <jim@meyering.net>
47438
47439         * modules/configmake (Makefile.am): Make configmake.h depend on
47440         Makefile.  Otherwise, a stale configmake.h could hang around.
47441
47442 2006-08-29  Eric Blake  <ebb9@byu.net>
47443
47444         * lib/error.c (error_at_line, print_errno_message): Match libc, after
47445         resolution of upstream bug 3044.
47446
47447 2006-08-29  Bruno Haible  <bruno@clisp.org>
47448
47449         * modules/localcharset (Depends-on): Add configmake.
47450         (Makefile.am): Remove setting of LIBDIR through DEFS.
47451
47452 2006-08-29  Bruno Haible  <bruno@clisp.org>
47453
47454         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
47455         defined.
47456
47457 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
47458
47459         * modules/fcntl: New file.
47460         * modules/chdir-safer (Depends-on): Add fcntl.
47461         * modules/fts: Likewise.
47462         * modules/mkdir-p: Likewise.
47463
47464         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
47465         This undoes the most recent change, since we're now addressing the
47466         problem in a different way.
47467
47468         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
47469         into output, since the output might be called Makefile.am even
47470         if $makefile_name is something different.
47471         (func_import): Use $makefile_am rather than
47472         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
47473         empty.
47474
47475         * modules/inttypes (Files): Add m4/inttypes-h.m4.
47476
47477 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
47478
47479         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
47480         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
47481         recent change to stdint.m4, since we're now addressing the problem in a
47482         different way.
47483
47484 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
47485
47486         * m4/fcntl_h.m4: New file.
47487
47488 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
47489
47490         * lib/fcntl_.h: New file.
47491         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
47492         the fcntl module.
47493         * lib/dirchownmod.c: Likewise.
47494         * lib/fts.c: Likewise.
47495
47496         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
47497         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
47498         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
47499         just before including <inttypes.h>, to avoid circular inclusion.
47500
47501 2006-08-28  Jim Meyering  <jim@meyering.net>
47502
47503         * doc/visibility.texi: Actually read and correct the grammar of the
47504         sentence affected by yesterday's change.
47505
47506 2006-08-28  Eric Blake  <ebb9@byu.net>
47507
47508         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
47509         needs wrapper.
47510
47511 2006-08-28  Eric Blake  <ebb9@byu.net>
47512
47513         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
47514
47515 2006-08-28  Eric Blake  <ebb9@byu.net>
47516
47517         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
47518
47519 2006-08-28  Bruno Haible  <bruno@clisp.org>
47520
47521         * modules/c-strstr: New file, from GNU gettext.
47522         * MODULES.html.sh (String handling): Add c-strstr.
47523
47524 2006-08-28  Bruno Haible  <bruno@clisp.org>
47525
47526         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
47527         macros.
47528         Reported by Eric Blake.
47529
47530 2006-08-28  Bruno Haible  <bruno@clisp.org>
47531
47532         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
47533         (VASNPRINTF): Return a string of length > INT_MAX without failing.
47534         * lib/vasprintf.c: Include errno.h, limits.h.
47535         (EOVERFLOW): New fallback definition.
47536         (vasprintf): Test here whether the string length is > INT_MAX.
47537         * lib/vsnprintf.c: Include errno.h, limits.h.
47538         (EOVERFLOW): New fallback definition.
47539         (vsnprintf): Fix bug when generated string was too long for the buffer.
47540         Test here whether the string length is > INT_MAX.
47541
47542 2006-08-28  Bruno Haible  <bruno@clisp.org>
47543
47544         * lib/inttypes_.h (SCNX*): Remove definitions.
47545         Reported by Eric Blake.
47546
47547 2006-08-28  Bruno Haible  <bruno@clisp.org>
47548
47549         * lib/c-strstr.h: New file, from GNU gettext.
47550         * lib/c-strstr.c: New file, from GNU gettext.
47551
47552 2006-08-28  Bruno Haible  <bruno@clisp.org>
47553
47554         * gnulib-tool: Reorder some statements.
47555
47556 2006-08-28  Bruno Haible  <bruno@clisp.org>
47557
47558         * gnulib-tool: New option --makefile-name.
47559         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
47560         $makefile_name.
47561         (func_import): Write $makefile_name to the cache file, and read it from
47562         there unless explicitly specified. Use $makefile_name as file name
47563         instead of Makefile.am. Adjust the recommendations accordingly.
47564
47565 2006-08-28  Bruno Haible  <bruno@clisp.org>
47566
47567         * gnulib-tool (func_verify_module): Check against misapplying patch.
47568
47569 2006-08-28  Bruno Haible  <bruno@clisp.org>
47570
47571         * gnulib-tool (func_relativize, func_relconcat): New functions.
47572         Give an error if --local-dir is given with --update.
47573         Remove trailing slashes from $local_gnulib_dir.
47574         (func_import): Store the relativized $local_gnulib_dir in
47575         gnulib-cache.m4, and read it from there if not specified explicitly.
47576
47577 2006-08-28  Bruno Haible  <bruno@clisp.org>
47578
47579         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
47580         is the current directory. Respect also $local_gnulib_dir.
47581
47582 2006-08-28  Bruno Haible  <bruno@clisp.org>
47583             Simon Josefsson  <jas@extundo.com>
47584
47585         BeOS portability.
47586         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
47587
47588 2006-08-27  Jim Meyering  <jim@meyering.net>
47589
47590         * doc/visibility.texi: Remove duplicate word: "pointer".
47591
47592 2006-08-26  Bruno Haible  <bruno@clisp.org>
47593
47594         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
47595         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
47596         (Makefile.am): Create inttypes.h from inttypes_.h.
47597         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
47598
47599         * modules/imaxabs: New file.
47600
47601         * modules/imaxdiv: New file.
47602
47603 2006-08-26  Bruno Haible  <bruno@clisp.org>
47604
47605         * m4/inttypes.m4: New file.
47606         * m4/_inttypes_h.m4: Remove file.
47607         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
47608         PRI_MACROS_BROKEN.
47609         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
47610
47611         * m4/imaxabs.m4: New file.
47612
47613         * m4/imaxdiv.m4: New file.
47614
47615 2006-08-26  Bruno Haible  <bruno@clisp.org>
47616
47617         * lib/inttypes_.h: New file.
47618         * lib/inttypes.h: Remove file.
47619         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
47620
47621         * lib/imaxabs.c: New file.
47622
47623         * lib/imaxdiv.c: New file.
47624
47625 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
47626
47627         New config-h module, so that "make" output needn't be cluttered
47628         by -DHAVE_CONFIG_H.
47629         * MODULES.html.sh (Support for building libraries and executables):
47630         Add config-h.
47631         * modules/config-h: New file.
47632         * gnulib-tool (nl, sed_transform_lib_file): New vars.
47633         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
47634         the config-h module is used.
47635
47636         New configmake module, so that "make" output needn't be cluttered
47637         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
47638         * MODULES.html.sh (Support for building libraries and executables):
47639         Add configmake.
47640         * modules/configmake: New file.
47641
47642 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
47643
47644         * m4/config-h.m4: New file.
47645
47646 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
47647
47648         * config/srclist.txt: Add elisp-comp.
47649
47650 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
47651
47652         * MODULES.html.sh (Support for building libraries and executables):
47653         Add elisp-comp.
47654         * build-aux/elisp-comp: New file.
47655         * modules/elisp-comp: New file.
47656
47657 2006-08-24  Bruno Haible  <bruno@clisp.org>
47658
47659         * gnulib-tool (func_create_testdir): Use non-default values of
47660         sourcebase and m4base.
47661
47662 2006-08-24  Bruno Haible  <bruno@clisp.org>
47663
47664         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
47665         HTML structure.
47666
47667 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
47668
47669         * modules/openat (Depends-on): Add lchown.
47670
47671 2006-08-23  Bruno Haible  <bruno@clisp.org>
47672
47673         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
47674         of gl_LOCK_EARLY instead of gl_LOCK.
47675
47676 2006-08-23  Bruno Haible  <bruno@clisp.org>
47677
47678         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
47679         on OSF/1 to no.
47680         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
47681
47682 2006-08-23  Bruno Haible  <bruno@clisp.org>
47683
47684         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
47685         as unusable.
47686
47687         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
47688         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
47689         (gl_LOCK): New macro.
47690
47691 2006-08-22  Simon Josefsson  <jas@extundo.com>
47692
47693         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
47694         to md5 module.
47695
47696 2006-08-22  Simon Josefsson  <jas@extundo.com>
47697
47698         * MODULES.html.sh: Add "Support for maintaining and release
47699         projects".
47700
47701         * build-aux/gnupload: New file, from coreutils.
47702
47703 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
47704
47705         Avoid the need for AC_LIBSOURCES in m4 macros.
47706         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
47707         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
47708         * modules/check-version (EXTRA_DIST): Add check-version.h.
47709         * modules/crc (EXTRA_DIST): Add crc.h.
47710         * modules/des (EXTRA_DIST): Add des.h.
47711         * modules/gc (EXTRA_DIST): Add gc.h.
47712         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
47713         * modules/getline (EXTRA_DIST): Add getline.h.
47714         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
47715         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
47716         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
47717         * modules/md2 (EXTRA_DIST): Add md2.h.
47718         * modules/md4 (EXTRA_DIST): Add md4.h.
47719         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
47720         * modules/read-file (EXTRA_DIST): Add read-file.h.
47721         * modules/readline (EXTRA_DIST): Add readline.h.
47722         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
47723         rijndael-api-fst.h.
47724
47725 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
47726
47727         * m4/rijndael.m4 (gl_ARCFOUR):
47728         * m4/arctwo.m4 (gl_ARCTWO):
47729         * m4/check-version.m4 (gl_CHECK_VERSION):
47730         * m4/crc.m4 (gl_CRC):
47731         * m4/des.m4 (gl_DES):
47732         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
47733         * m4/gc.m4 (gl_GC):
47734         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
47735         * m4/getline.m4 (gl_FUNC_GETLINE):
47736         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
47737         * m4/hmac-md5.m4 (gl_HMAC_MD5):
47738         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
47739         * m4/md2.m4 (gl_MD2):
47740         * m4/md4.m4 (gl_MD4):
47741         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
47742         * m4/read-file.m4 (gl_FUNC_READ_FILE):
47743         * m4/readline.m4 (gl_FUNC_READLINE):
47744         * m4/rijndael.m4 (gl_RIJNDAEL):
47745         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
47746         to get the necessary .h files and whatnot.
47747
47748 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
47749
47750         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
47751         gnulib rather than the other way around.
47752         * config/srclistvars.sh (COREUTILS): Remove.
47753
47754 2006-08-22  Jim Meyering  <jim@meyering.net>
47755
47756         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
47757
47758         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
47759
47760 2006-08-22  Eric Blake  <ebb9@byu.net>
47761
47762         * modules/regexprops-generic: New file.
47763         * MODULES.html.sh (Support for building documentation): List it.
47764
47765 2006-08-22  Eric Blake  <ebb9@byu.net>
47766
47767         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
47768         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
47769         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
47770         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
47771
47772 2006-08-22  Bruno Haible  <bruno@clisp.org>
47773
47774         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
47775         and lib_LTLIBRARIES like the other lib_* variables.
47776
47777 2006-08-22  Bruno Haible  <bruno@clisp.org>
47778
47779         * build-aux/x-to-1.in: New file, from GNU gettext.
47780
47781 2006-08-22  Bruno Haible  <bruno@clisp.org>
47782
47783         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
47784         <utmpx.h> exists.
47785
47786 2006-08-22  Bruno Haible  <bruno@clisp.org>
47787
47788         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
47789         <utmpx.h> exists.
47790
47791 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
47792
47793         BeOS portability.
47794         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
47795         exist.
47796         Problem reported by Bruno Haible.
47797
47798 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
47799
47800         Avoid the need for AC_LIBSOURCES in m4 macros.
47801         * modules/acl (EXTRA_DIST): Add acl.h.
47802         * modules/argmatch (Files): Add m4/argmatch.m4.
47803         (configure.ac): Add gl_ARGMATCH.
47804         (EXTRA_DIST): Renamed from lib_SOURCES, for
47805         consistency with the other modules.  Remove argmatch.c.
47806         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
47807         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
47808         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
47809         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
47810         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
47811         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
47812         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
47813         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
47814         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
47815         * modules/closeout (EXTRA_DIST): Add closeout.h.
47816         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
47817         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
47818         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
47819         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
47820         dirname.h; remove basename.c and stripslash.c.
47821         * modules/exclude (EXTRA_DIST): Add exclude.h.
47822         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
47823         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
47824         * modules/file-type (EXTRA_DIST): Add file-type.h.
47825         * modules/filemode (EXTRA_DIST): Add filemode.h.
47826         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
47827         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
47828         * modules/fpending (EXTRA_DIST): Add __fpending.h.
47829         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
47830         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
47831         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
47832         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
47833         * modules/getdate (EXTRA_DIST): Add getdate.c.
47834         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
47835         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
47836         * modules/getpass (EXTRA_DIST): Add getpass.h.
47837         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
47838         * modules/group-member (EXTRA_DIST): Add group-member.h.
47839         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
47840         * modules/hash (EXTRA_DIST): Add hash.h.
47841         * modules/human (EXTRA_DIST): Add human.h.
47842         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
47843         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
47844         * modules/lchown (EXTRA_DIST): Add lchown.h.
47845         * modules/long-options (EXTRA_DIST): Add long-options.h.
47846         * modules/lstat (EXTRA_DIST): Add lstat.h.
47847         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
47848         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
47849         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
47850         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
47851         * modules/memxor (EXTRA_DIST): Add memxor.h.
47852         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
47853         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
47854         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
47855         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
47856         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
47857         * modules/physmem (EXTRA_DIST): Add physmem.h.
47858         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
47859         * modules/posixver (EXTRA_DIST): Add posixver.h.
47860         * modules/quote (EXTRA_DIST): Add quote.h.
47861         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
47862         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
47863         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
47864         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
47865         regex_internal.h regexec.c.
47866         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
47867         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
47868         * modules/same (EXTRA_DIST): Add same.h.
47869         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
47870         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
47871         * modules/savedir (EXTRA_DIST): Add savedir.h.
47872         * modules/sha1 (EXTRA_DIST): Add sha1.h.
47873         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
47874         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
47875         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
47876         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
47877         * modules/strdup (EXTRA_DIST): Add strdup.h.
47878         * modules/strftime (EXTRA_DIST): Add strftime.h.
47879         * modules/strndup (EXTRA_DIST): Add strndup.h.
47880         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
47881         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
47882         * modules/time_r (EXTRA_DIST): Add time_r.h.
47883         * modules/timespec (EXTRA_DIST): Add timespec.h.
47884         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
47885         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
47886         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
47887         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
47888         * modules/userspec (EXTRA_DIST): Add userspec.h.
47889         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
47890         * modules/utimens (EXTRA_DIST): Add utimens.h.
47891         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
47892         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
47893         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
47894         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
47895         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
47896         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
47897         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
47898         * modules/yesno (EXTRA_DIST): Add yesno.h.
47899
47900 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
47901
47902         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
47903
47904         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
47905         * m4/dev-ino.m4, same-inode.m4: Remove.
47906
47907         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
47908         * m4/acl.m4 (AC_FUNC_ACL):
47909         * m4/backupfile.m4 (gl_BACKUPFILE):
47910         * m4/c-strtod.m4 (gl_C99_STRTOLD):
47911         * m4/canon-host.m4 (gl_CANON_HOST):
47912         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
47913         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
47914         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
47915         * m4/cloexec.m4 (gl_CLOEXEC):
47916         * m4/close-stream.m4 (gl_CLOSE_STREAM):
47917         * m4/closeout.m4 (gl_CLOSEOUT):
47918         * m4/dirfd.m4 (gl_FUNC_DIRFD):
47919         * m4/dirname.m4 (gl_DIRNAME):
47920         * m4/exclude.m4 (gl_EXCLUDE):
47921         * m4/exitfail.m4 (gl_EXITFAIL):
47922         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
47923         * m4/file-type.m4 (gl_FILE_TYPE):
47924         * m4/filemode.m4 (gl_FILEMODE):
47925         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
47926         * m4/fpending.m4 (gl_FUNC_FPENDING):
47927         * m4/fprintftime.m4 (gl_FPRINTFTIME):
47928         * m4/fts.m4 (gl_FUNC_FTS):
47929         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
47930         * m4/getdate.m4 (gl_GETDATE):
47931         * m4/gethrxtime.m4 (gl_GETHRXTIME):
47932         * m4/getpagesize.m4 (gl_GETPAGESIZE):
47933         * m4/getpass.m4 (gl_FUNC_GETPASS):
47934         * m4/gettime.m4 (gl_GETTIME):
47935         * m4/getugroups.m4 (gl_GETUGROUPS):
47936         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
47937         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
47938         * m4/hard-locale.m4 (gl_HARD_LOCALE):
47939         * m4/hash.m4 (gl_HASH):
47940         * m4/idcache.m4 (gl_IDCACHE):
47941         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
47942         * m4/lchown.m4 (gl_FUNC_LCHOWN):
47943         * m4/long-options.m4 (gl_LONG_OPTIONS):
47944         * m4/lstat.m4 (gl_FUNC_LSTAT):
47945         * m4/md5.m4 (gl_MD5):
47946         * m4/memcasecmp.m4 (gl_MEMCASECMP):
47947         * m4/memcoll.m4 (gl_MEMCOLL):
47948         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
47949         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
47950         * m4/memxor.m4 (gl_MEMXOR):
47951         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
47952         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
47953         * m4/modechange.m4 (gl_MODECHANGE):
47954         * m4/mountlist.m4 (gl_MOUNTLIST):
47955         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
47956         * m4/openat.m4 (gl_FUNC_OPENAT):
47957         * m4/pathmax.m4 (gl_PATHMAX):
47958         * m4/physmem.m4 (gl_PHYSMEM):
47959         * m4/posixtm.m4 (gl_POSIXTM):
47960         * m4/posixver.m4 (gl_POSIXVER):
47961         * m4/quote.m4 (gl_QUOTE):
47962         * m4/quotearg.m4 (gl_QUOTEARG):
47963         * m4/readtokens.m4 (gl_READTOKENS):
47964         * m4/readutmp.m4 (gl_READUTMP):
47965         * m4/regex.m4 (gl_REGEX):
47966         * m4/safe-read.m4 (gl_SAFE_READ):
47967         * m4/safe-write.m4 (gl_SAFE_WRITE):
47968         * m4/same.m4 (gl_SAME):
47969         * m4/save-cwd.m4 (gl_SAVE_CWD):
47970         * m4/savedir.m4 (gl_SAVEDIR):
47971         * m4/settime.m4 (gl_SETTIME):
47972         * m4/sha1.m4 (gl_SHA1):
47973         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
47974         * m4/stat-macros.m4 (gl_STAT_MACROS):
47975         * m4/stat-time.m4 (gl_STAT_TIME):
47976         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
47977         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
47978         * m4/strdup.m4 (gl_FUNC_STRDUP):
47979         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
47980         * m4/strndup.m4 (gl_FUNC_STRNDUP):
47981         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
47982         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
47983         * m4/time_r.m4 (gl_TIME_R):
47984         * m4/timespec.m4 (gl_TIMESPEC):
47985         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
47986         * m4/unlinkdir.m4 (gl_UNLINKDIR):
47987         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
47988         * m4/userspec.m4 (gl_USERSPEC):
47989         * m4/utimecmp.m4 (gl_UTIMECMP):
47990         * m4/utimens.m4 (gl_UTIMENS):
47991         * m4/xalloc.m4 (gl_XALLOC):
47992         * m4/xgetcwd.m4 (gl_XGETCWD):
47993         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
47994         * m4/xreadlink.m4 (gl_XREADLINK):
47995         * m4/xstrtod.m4 (gl_XSTRTOD):
47996         * m4/yesno.m4 (gl_YESNO):
47997         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
47998         to get the necessary .h files and whatnot.
47999
48000 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
48001             Bruno Haible  <bruno@clisp.org>
48002
48003         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
48004         /bin/sh understanding of '!' conditional negation.
48005
48006 2006-08-21  Jim Meyering  <jim@meyering.net>
48007
48008         * modules/openat (Depends-on): Really alphabetize.
48009
48010         * modules/acl (Depends-on): Add error and quote.
48011
48012         * check-module (find_included_lib_files): Add at-func.c to the
48013         ok-to-include-more-than-once white list.
48014
48015         * modules/openat (Depends-on): Add lstat.  Alphabetize.
48016
48017 2006-08-21  Bruno Haible  <bruno@clisp.org>
48018
48019         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48020         Emit a pkgdata_DATA variable only if some snippets add contents to it.
48021         Reported by Martin Lambers <marlam@marlam.de>.
48022
48023 2006-08-21  Bruno Haible  <bruno@clisp.org>
48024
48025         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
48026         specify an installation location, don't emit a noinst_LIBRARIES or
48027         noinst_LTLIBRARIES assignment.
48028
48029 2006-08-21  Bruno Haible  <bruno@clisp.org>
48030
48031         BeOS portability.
48032         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
48033         BeOS has mbrtowc() but no <wctype.h>.
48034
48035 2006-08-21  Bruno Haible  <bruno@clisp.org>
48036
48037         BeOS portability.
48038         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
48039         exist.
48040
48041 2006-08-21  Bruno Haible  <bruno@clisp.org>
48042
48043         BeOS portability.
48044         * lib/mbchar.h: Include <wctype.h> only if it exists.
48045
48046 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
48047
48048         Remove files that are no longer needed by their respective modules.
48049         * m4/obstack.m4: Remove.
48050         * m4/strerror_r.m4: Remove.
48051         * m4/uint32_t.m4: Remove.
48052         * m4/uintptr_t.m4: Remove.
48053         * m4/ullong_max.m4: Remove.
48054         * m4/xstrtoimax.m4: Remove.
48055         * m4/xstrtoumax.m4: Remove.
48056
48057         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
48058         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
48059         dependencies now capture this.
48060
48061         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
48062         Do not use AC_LIBSOURCES, since gnulib modules now do this.
48063         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
48064         * m4/human.m4 (gl_HUMAN): Likewise.
48065         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
48066         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
48067
48068         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
48069
48070         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
48071         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
48072         stdint.
48073         * m4/human.m4 (gl_HUMAN): Likewise.
48074         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
48075         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
48076         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
48077         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
48078         * m4/xstrtol (gl_XSTRTOL): Likewise.
48079
48080         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
48081         AC_TYPE_LONG_LONG_INT.
48082         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
48083         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
48084         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
48085         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
48086
48087         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
48088         on stdbool.
48089
48090         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
48091         (gl_PREREQ_XSTRTOUL): Remove.
48092
48093         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
48094
48095         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
48096         mode.
48097
48098 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
48099
48100         Add and change modules to make it easier for coreutils to use
48101         gnulib-tool.
48102         * modules/backupfile (Files): Remove m4/d-ino.m4.
48103         (Depends-on): Add d-ino.
48104         * modules/cycle-check (Depends-on): Add stdint.
48105         (lib_SOURCES): Add cycle-check.h.
48106         * modules/d-ino: New module.
48107         * modules/d-type: New module.
48108         * modules/error (Files): Remove m4/strerror_r.m4.
48109         * modules/filemode (Files): Add m4/st_dm_mode.m4.
48110         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
48111         m4/inttypes_h.m4, m4/uintmax_t.m4.
48112         (Depends-on): Add stdint.
48113         (lib_SOURCES): Add fsusage.h.
48114         * modules/getcwd (Files): Remove d-ino.m4.
48115         (Depends-on): Add d-ino.
48116         * modules/getndelim2 (Depends-on): Add stdint.
48117         * modules/glob (Files): Remove m4/d-type.m4.
48118         (Depends-on): Add d-type.
48119         * modules/host-os: New module.
48120         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
48121         m4/inttypes_h.m4, m4/uintmax_t.m4.
48122         * Depends-on: Add stdint.
48123         (lib_SOURCES): Add human.h.
48124         * modules/inttostr (Files): Remove m4/intmax_t.m4,
48125         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
48126         m4/uintmax_t.m4, m4/ulonglong.m4.
48127         (Depends-on): Add stdint.
48128         (EXTRA_DIST): Add inttostr.h.
48129         * modules/lchmod: New module.
48130         * modules/link-follow: New module.
48131         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
48132         (Depends-on): Add lchmod.
48133         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
48134         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
48135         (Depends-on): Add stdint.
48136         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
48137         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
48138         (Depends-on): Add stdint.
48139         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
48140         * modules/perl: New module.
48141         * modules/regex (Depends-on): Add stdint.
48142         * modules/rmdir-errno: New module.
48143         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
48144         m4/intmax_t.m4.
48145         (Depends-on): Add stdint.
48146         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
48147         m4/uintmax_t.m4.
48148         (Depends-on): Add stdint.
48149         * modules/unlink-busy: New module.
48150         * modules/utimecmp (Depends-on): Add stdint.
48151         * modules/uptime: New module.
48152         * modules/winsz-ioctl: New module.
48153         * modules/winsz-termios: New module.
48154         * modules/xnanosleep (Depends-on): Add nanosleep.
48155         * modules/ullong_max: Remove.
48156         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
48157         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
48158         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
48159         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
48160         (Depends-on): Add inttypes.
48161         (lib_SOURCES): Add xstrtol.h.
48162         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
48163         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
48164         * MODULES.html.sh: Move 'assert' into the assert section.
48165         Move 'dummy' into the linking section.
48166         Remove ullong_max.
48167         Add section for compatibility checks for POSIX:2001 functions,
48168         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
48169         winsz-ioctl, and winsz-termios into it.
48170         Add lchmod.
48171         Add top-level Misc section and put host-os, perl, and uptime
48172         into it.
48173
48174 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
48175
48176         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
48177         now assume the stdint module.  Do not include inttypes.h.
48178         * lib/fsusage.h: Likewise.
48179         * lib/getndelim2.c: Likewise.
48180         * lib/human.h: Likewise.
48181         * lib/inttostr.h: Likewise.
48182         * lib/obstack.c: Likewise.
48183         * lib/regex_internal.h: Likewise.
48184         * lib/tempname.c: Likewise.
48185         * lib/utimecmp.c: Likewise.
48186         * lib/xstrtol.h: Likewise.
48187
48188         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
48189
48190         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
48191         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
48192         * lib/xtime.h: Likewise.
48193
48194 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
48195
48196         * modules/openat (Files): Add lib/fchmodat.c.
48197         Fixes problem reported by Jay Youngman.
48198
48199 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
48200
48201         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
48202         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
48203
48204 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
48205             Bruno Haible  <bruno@clisp.org>
48206
48207         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
48208         and is a script that invokes bison. Tighten the code. Add comments.
48209
48210 2006-08-18  Jim Meyering  <jim@meyering.net>
48211
48212         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
48213         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
48214         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
48215         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
48216
48217 2006-08-18  Bruno Haible  <bruno@clisp.org>
48218
48219         * modules/bison-i18n: New file.
48220         * MODULES.html.sh (Internationalization functions): Add it.
48221
48222 2006-08-18  Bruno Haible  <bruno@clisp.org>
48223
48224         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
48225         sys/statvfs.h. When getmntinfo was found, check its declaration and
48226         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
48227
48228 2006-08-18  Bruno Haible  <bruno@clisp.org>
48229
48230         * m4/bison-i18n.m4: New file, from bison.
48231
48232 2006-08-18  Bruno Haible  <bruno@clisp.org>
48233
48234         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
48235         (ME_DUMMY): Treat "kernfs" as a dummy.
48236         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
48237
48238 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
48239
48240         Update from coreutils.
48241
48242         2006-08-15  Jim Meyering  <jim@meyering.net>
48243
48244         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
48245
48246         2006-01-17  Jim Meyering  <jim@meyering.net>
48247
48248         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
48249
48250         2006-01-11  Jim Meyering  <jim@meyering.net>
48251
48252         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
48253         Check for the lchmod function.
48254
48255 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
48256
48257         Update from coreutils.
48258
48259         * lib/__fpending.h: Add copyright notice.
48260         * lib/fprintftime.h: Likewise.
48261         * lib/savedir.c: Use (C) in copyright notice.
48262         * lib/savedir.h: Likewise.
48263
48264         2006-08-15  Jim Meyering  <jim@meyering.net>
48265
48266         * lib/at-func.c: New file, with the logic of all emulated at-functions.
48267         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
48268         in support of the EXPECTED_ERRNO macro.
48269         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
48270         definitions.  Instead, define the appropriate symbols and include
48271         "at-func.c".
48272         * lib/mkdirat.c (mkdirat): Likewise.
48273         * lib/fchmodat.c (fchmodat): Likewise.
48274         (ENOSYS): Remove definition.
48275         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
48276         it.  Don't include "unistd--.h" -- it wasn't ever used.
48277
48278         2006-01-17  Jim Meyering  <jim@meyering.net>
48279
48280         Rewrite fts.c not to change the current working directory,
48281         by using openat, fstatat, fdopendir, etc..
48282
48283         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
48284         (HAVE_OPENAT_SUPPORT): Define.
48285         [_LIBC] (fchdir): Don't undef or define; no longer used.
48286         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
48287         Now, this `function' always succeeds, and consumes its file descriptor
48288         parameter -- so callers must not close such FDs.  Update callers.
48289         (diropen_fd, opendirat, cwd_advance_fd): New functions.
48290         (diropen): Add parameter, SP.  Adjust all callers.
48291         Implement using diropen_fd, rather than open.
48292         (fts_open): Initialize new member, fts_cwd_fd.
48293         Remove fts_rft-setting code.
48294         (fts_close): Close fts_cwd_fd, if necessary.
48295         (__opendir2): Define in terms of opendir or opendirat,
48296         depending on whether the FST_NOCHDIR flag is set.
48297         (fts_build): Since fts_safe_changedir consumes its FD, and since
48298         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
48299         and close the dup'd file descriptor upon failure.
48300         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
48301         (fts_safe_changedir): Tweak semantics to reflect that this function
48302         now calls cwd_advance_fd and hence consumes its FD argument.
48303         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
48304         [struct FTS] (fts_rft): Remove now-unused member.
48305         [struct FTS] (fts_cycle.state): Improve comment.
48306
48307         * lib/openat.c (openat_needs_fchdir): New function.
48308         * lib/openat.h (openat_needs_fchdir): Declare it.
48309
48310 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
48311
48312         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
48313         Problem and fix reported by Pádraig Brady in
48314         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
48315
48316 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
48317
48318         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
48319
48320 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
48321
48322         * lib/memcoll.c (memcoll): Optimize for the common case where the
48323         arguments are bytewise equal.
48324
48325 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
48326
48327         * doc/regexprops-generic.texi: Add a copyright notice.
48328
48329 2006-08-15  Bruno Haible  <bruno@clisp.org>
48330
48331         * modules/tmpdir (License): Change to LGPL.
48332
48333 2006-08-15  Bruno Haible  <bruno@clisp.org>
48334
48335         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
48336         module.
48337
48338 2006-08-14  Simon Josefsson  <jas@extundo.com>
48339
48340         * config/srclist.txt: Add gnupload.
48341
48342 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
48343
48344         Change copyright notice from LGPL 2 to GPL 2, since that's the
48345         standard form used in the gnulib repository.
48346         * tests/test-lock.c: Likewise.
48347         * tests/test-stdint.c: Likewise.
48348         * tests/test-tls.c: Likewise.
48349
48350         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
48351         prelude-manager.  User shorter URLs for GNU projects, without '?'.
48352         Add copyright notice.
48353
48354         * check-module: Add copyright notice.  Output a copyright
48355         notice if "--version" is specified.
48356         * modules/COPYING: New file.
48357         * tests/test-getaddrinfo.c: Add copyright notice.
48358         * tests/test-verify.c: Likewise.
48359
48360 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
48361
48362         Change copyright notice from LGPL 2 to GPL 2, since that's the
48363         standard form used in the gnulib repository.
48364         * lib/lock.c: LGPL -> GPL.
48365         * lib/lock.h: Likewise.
48366         * lib/strnlen1.c: Likewise.
48367         * lib/strnlen1.h: Likewise.
48368         * lib/tls.c: Likewise.
48369         * lib/tls.h: Likewise.
48370         * lib/tmpdir.c: Likewise.
48371
48372         * lib/TODO: Remove; this belongs only in coreutils.
48373
48374 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
48375
48376         Add copyright notices to long-enough files that lack them, since
48377         otherwise the files aren't clearly free.  Use the same notice that
48378         getdate.texi already uses.
48379         * doc/alloca-opt.texi: Add copyright notice.
48380         * doc/alloca.texi: Likewise.
48381         * doc/ctime.texi: Likewise.
48382         * doc/functions.texi: Likewise.
48383         * doc/gcd.texi: Likewise.
48384         * doc/gnulib-tool.texi: Likewise.
48385         * doc/inet_ntoa.texi: Likewise.
48386         * doc/visibility.texi: Likewise.
48387
48388         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
48389         * doc/quote.texi: Add copyright notice.
48390
48391         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
48392         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
48393         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
48394         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
48395         is now obsolete, and give a pointer to the Sun list.
48396         Add copyright notice.
48397
48398 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
48399
48400         * config/srclistvars.sh: Add copyright notice.
48401
48402 2006-08-14  Eric Blake  <ebb9@byu.net>
48403
48404         Import the following change from libc:
48405
48406         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
48407
48408         Upstream bug 2997.
48409         * lib/misc/error.c: Add space between program name and message if file
48410         name is missing.
48411
48412 2006-08-12  Karl Berry  <karl@gnu.org>
48413
48414         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
48415         remove, these originate in gnulib now.
48416
48417 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48418
48419         * doc/Makefile (standards.info standards.html standards.dvi):
48420         Also depend on make-stds.texi.
48421
48422 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
48423
48424         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
48425         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
48426
48427         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
48428         in wchar_t.  Problem reported by Eric Blake.
48429
48430         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
48431         LEN is smaller than SIZE.  Suggested by Bruno Haible.
48432         Also, help the compiler to keep LEN in a register.
48433
48434 2006-08-11  Eric Blake  <ebb9@byu.net>
48435
48436         * users.txt: Sort.  Add tar.
48437
48438 2006-08-11  Bruno Haible  <bruno@clisp.org>
48439
48440         * users.txt: New file.
48441
48442 2006-08-11  Bruno Haible  <bruno@clisp.org>
48443
48444         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
48445         before <wchar.h>. Needed for OSF/1 and BSD/OS.
48446
48447 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
48448
48449         * modules/snprintf (Depends-on): Remove minmax.
48450         (Maintainer): Add self and Bruno.
48451
48452 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
48453
48454         * lib/.cppi-disable: Add snprintf.h, socket_.h.
48455         * lib/snprintf.c: Include <errno.h> and <limits.h>.
48456         (EOVERFLOW): Define if the system does not.
48457         Do not include "minmax.h"; it wasn't used.
48458         (snprintf): Don't assume size_t promotes to an unsigned type.
48459         Fix bug when generated string was too long for the buffer: the
48460         buffer's contents are supposed to be the initial prefix of the
48461         output.  Don't assume vasnprintf returns EOVERFLOW if the size
48462         exceeds INT_MAX; do the check ourselves.
48463
48464         Import the following changes from libc:
48465
48466         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
48467
48468         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
48469         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
48470         set wc to the byte which couldn't be converted.
48471         (re_string_reconstruct): Don't clear valid_raw_len before calling
48472         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
48473         tip_context using re_string_context_at.
48474
48475         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
48476
48477         * lib/posix/regex.h: g++ still cannot handled [restrict].
48478
48479         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
48480
48481         * lib/posix/regex.h: Remove special handling for VMS.
48482
48483 2006-08-10  Jim Meyering  <jim@meyering.net>
48484
48485         * modules/same-inode: New module.
48486         * modules/dev-ino: New module.
48487         * modules/cycle-check: Depend on these modules, rather than simply
48488         including their .h files.
48489         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
48490         required via m4/cycle-check.m4.
48491         * modules/same: Depend on new same-inode module, rather than
48492         including same-inode.h.
48493         * modules/chdir-safer: New file.
48494
48495         * modules/chown (Depends-on): Add stat-macros.
48496
48497 2006-08-10  Jim Meyering  <jim@meyering.net>
48498
48499         * m4/cycle-check.m4: New file.
48500         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
48501         * m4/dev-ino.m4, m4/same-inode.m4: New files.
48502
48503 2006-08-10  Eric Blake  <ebb9@byu.net>
48504
48505         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
48506         in from original proposal.
48507
48508 2006-08-10  Eric Blake  <ebb9@byu.net>
48509         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
48510
48511         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
48512         namespace.
48513
48514 2006-08-10  Bruno Haible  <bruno@clisp.org>
48515
48516         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
48517         as well.
48518
48519 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
48520
48521         Sync from coreutils.
48522
48523         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
48524
48525         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
48526         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
48527
48528 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
48529
48530         * modules/restrict: Remove; no longer needed now that we assume
48531         Autoconf 2.59 or later.
48532         * MODULES.html.sh: Remove 'restrict'.
48533         * modules/argp (Depends-on): Remove 'restrict'.
48534         * modules/base64 (Depends-on): Likewise.
48535         * modules/gc (Depends-on): Likewise.
48536         * modules/getaddrinfo (Depends-on): Likewise.
48537         * modules/glob (Depends-on): Likewise.
48538         * modules/inet_ntop (Depends-on): Likewise.
48539         * modules/inet_pton (Depends-on): Likewise.
48540         * modules/memxor (Depends-on): Likewise.
48541         * modules/regex (Depends-on): Likewise.
48542         * modules/strtok_r (Depends-on): Likewise.
48543         * modules/time_r (Depends-on): Likewise.
48544
48545 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
48546
48547         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
48548         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
48549         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
48550         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
48551         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
48552         * m4/memxor.m4 (gl_MEMXOR): Likewise.
48553         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
48554         gl_C_RESTRICT replaced by AC_C_RESTRICT.
48555
48556         Merge from coreutils.
48557         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
48558         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
48559         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
48560         * m4/time_r.m4 (gl_TIME_R): Likewise.
48561
48562 2006-08-09  Karl Berry  <karl@gnu.org>
48563
48564         * config/srclist.txt: no more gettext-tools, per Bruno.
48565
48566 2006-08-08  Eric Blake  <ebb9@byu.net>
48567
48568         * modules/verror: New module.
48569         * MODULES.html.sh: Document it.
48570
48571 2006-08-08  Eric Blake  <ebb9@byu.net>
48572
48573         * lib/verror.h, lib/verror.c: New files.
48574
48575 2006-08-08  Eric Blake  <ebb9@byu.net>
48576
48577         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
48578         verror_at_line output complies with GNU Coding Standards even when
48579         file is NULL.
48580
48581 2006-08-07  Bruno Haible  <bruno@clisp.org>
48582
48583         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
48584         versions of AIX.
48585         Reported by Ralf Wildenhues.
48586
48587 2006-08-07  Bruno Haible  <bruno@clisp.org>
48588
48589         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
48590         in an AC_DEFUN. Needed so that the autoconf snippets can use
48591         AC_REQUIRE.
48592
48593 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48594
48595         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48596         Initialize pkgdata_DATA.
48597         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
48598         overriding it.
48599
48600 2006-08-06  Eric Blake  <ebb9@byu.net>
48601
48602         * lib/error.h: Fold in some upstream changes from glibc.
48603         * lib/error.c: Likewise.
48604
48605 2006-08-04  Bruno Haible  <bruno@clisp.org>
48606
48607         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48608         Make the mostlyclean-local rule depend on mostlyclean-generic.
48609         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
48610
48611 2006-07-31  Bruno Haible  <bruno@clisp.org>
48612
48613         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
48614         <stdlib.h>, <string.h>.
48615
48616 2006-07-30  Bruno Haible  <bruno@clisp.org>
48617
48618         * modules/readlink (License): Change to LGPL.
48619
48620 2006-07-30  Bruno Haible  <bruno@clisp.org>
48621
48622         * modules/javaversion (Makefile.am): Distribute javaversion.java and
48623         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
48624         set PKGDATADIR to point to it.
48625
48626 2006-07-30  Bruno Haible  <bruno@clisp.org>
48627
48628         * modules/csharpexec (configure.ac): Comment out macro invocation.
48629         * modules/javaexec (configure.ac): Likewise.
48630         * modules/javacomp-script (configure.ac): Likewise.
48631
48632         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
48633
48634 2006-07-30  Bruno Haible  <bruno@clisp.org>
48635
48636         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
48637         linked-list.
48638
48639 2006-07-30  Bruno Haible  <bruno@clisp.org>
48640
48641         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
48642
48643 2006-07-30  Bruno Haible  <bruno@clisp.org>
48644
48645         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48646         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
48647         get removed.
48648
48649 2006-07-29  Bruno Haible  <bruno@clisp.org>
48650
48651         Make it possible for gnulib-tool to work with locally modified or
48652         augmented gnulib repositories.
48653         * gnulib-tool (func_usage): Document --local-dir option.
48654         (local_gnulib_dir): New variable.
48655         Handle --local-dir option.
48656         (func_lookup_file): New function.
48657         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
48658         (func_get_description, func_get_filelist, func_get_description,
48659         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
48660         func_get_automake_snippet, func_get_include_directive,
48661         func_get_license, func_get_maintainer): Use func_lookup_file.
48662         (func_import, func_create_testdir): Use func_lookup_file.
48663
48664 2006-07-29  Bruno Haible  <bruno@clisp.org>
48665
48666         * modules/setenv (Depends-on): Add unistd.
48667
48668 2006-07-29  Bruno Haible  <bruno@clisp.org>
48669
48670         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
48671
48672 2006-07-29  Bruno Haible  <bruno@clisp.org>
48673
48674         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
48675
48676 2006-07-29  Bruno Haible  <bruno@clisp.org>
48677
48678         * gnulib-tool (import, update): If there is no Makefile.am, look at
48679         aclocal.m4, instead of bailing out.
48680
48681 2006-07-29  Bruno Haible  <bruno@clisp.org>
48682
48683         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
48684         Categorize the options by when they are useful.
48685
48686 2006-07-29  Bruno Haible  <bruno@clisp.org>
48687
48688         * gnulib-tool (func_usage): Document option --no-libtool.
48689         Handle option --no-libtool.
48690         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
48691         for changed semantics of $libtool variable.
48692         (func_import): Likewise. If libtool is not used, show this through
48693         an option --no-libtool.
48694         (func_create_testdir): Update.
48695
48696 2006-07-29  Bruno Haible  <bruno@clisp.org>
48697
48698         * gnulib-tool (func_import): Extend error message about missing
48699         --doc-base.
48700
48701 2006-07-29  Bruno Haible  <bruno@clisp.org>
48702
48703         * gnulib-tool (func_import): Don't create the $docbase directory if
48704         there is no file to store there.
48705
48706 2006-07-29  Bruno Haible  <bruno@clisp.org>
48707
48708         * gnulib-tool (autoconf_minversion): If a --dir option is given and
48709         relevant, look for configure.ac there, not in the current directory.
48710         Also use a simple search for AC_PREREQ, not "autoconf --trace".
48711
48712 2006-07-29  Bruno Haible  <bruno@clisp.org>
48713
48714         * gnulib-tool (SORT): New variable.
48715         (func_usage): Undocument --assume-autoconf option.
48716         Remove --assume-autoconf option handling.
48717         (autoconf_minversion): Determine from the contents of configure.ac.
48718         (func_import): Remove autoconf_minversion handling.
48719         Suggested by Eric Blake.
48720
48721 2006-07-29  Bruno Haible  <bruno@clisp.org>
48722
48723         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
48724
48725 2006-07-29  Bruno Haible  <bruno@clisp.org>
48726
48727         * config/srclist.txt (*setenv.[ch]): Remove rules.
48728
48729 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48730
48731         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
48732
48733 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48734
48735         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
48736         arpa/inet.h.
48737
48738 2006-07-28  Simon Josefsson  <jas@extundo.com>
48739
48740         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
48741         * modules/inet_pton (Depends-on): Likewise.
48742
48743 2006-07-28  Simon Josefsson  <jas@extundo.com>
48744
48745         * m4/netinet_in_h.m4: New file.
48746
48747 2006-07-28  Simon Josefsson  <jas@extundo.com>
48748
48749         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
48750         #include's.
48751
48752 2006-07-28  Simon Josefsson  <jas@extundo.com>
48753
48754         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
48755         #include's.
48756
48757 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
48758
48759         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
48760         setgid on directories only if they set these bits.
48761         * lib/modechange.h: Remove obsolete comment about masks.
48762
48763 2006-07-28  Eric Blake  <ebb9@byu.net>
48764
48765         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
48766         macro expansion.
48767
48768 2006-07-28  Bruno Haible  <bruno@clisp.org>
48769
48770         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
48771
48772 2006-07-28  Bruno Haible  <bruno@clisp.org>
48773
48774         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
48775
48776 2006-07-28  Bruno Haible  <bruno@clisp.org>
48777
48778         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
48779         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
48780         Define fallbacks.
48781         Avoids link error on FreeBSD 4.x.
48782         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
48783
48784         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
48785         encoding.
48786         * lib/mbswidth.c (iswcntrl): Likewise.
48787
48788 2006-07-27  Bruno Haible  <bruno@clisp.org>
48789
48790         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
48791         test.
48792
48793 2006-07-27  Bruno Haible  <bruno@clisp.org>
48794
48795         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
48796         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
48797         defined.
48798
48799 2006-07-26  Eric Blake  <ebb9@byu.net>
48800
48801         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
48802
48803 2006-07-26  Eric Blake  <ebb9@byu.net>
48804
48805         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
48806         like mingw that lack mkstemp.
48807         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
48808         avoid compilation warning on mingw.
48809
48810 2006-07-26  Bruno Haible  <bruno@clisp.org>
48811
48812         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
48813         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
48814         INT_FAST*_MIN, INTPTR_MIN.
48815
48816 2006-07-25  Bruno Haible  <bruno@clisp.org>
48817
48818         * modules/version-etc (Depends-on): Add stdarg.
48819
48820 2006-07-25  Bruno Haible  <bruno@clisp.org>
48821
48822         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
48823         complex commands.
48824
48825 2006-07-25  Bruno Haible  <bruno@clisp.org>
48826
48827         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
48828         defined in <stdarg.h> or config.h.
48829
48830 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
48831
48832         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
48833         (gl_STDIO_SAFER): Remove.
48834
48835 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
48836
48837         * MODULES.html.sh (File stream based Input/Output):
48838         Add fopen-safer, tmpfile-safer; remove stdio-safer.
48839         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
48840         * modules/fopen-safer, modules/tmpfile-safer: New files.
48841         * modules/stdio-safer: Remove.
48842
48843 2006-07-24  Bruno Haible  <bruno@clisp.org>
48844
48845         * modules/tmpdir: New file.
48846         * MODULES.html.sh (File system functions): Add it.
48847
48848 2006-07-24  Bruno Haible  <bruno@clisp.org>
48849
48850         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
48851         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
48852
48853 2006-07-24  Bruno Haible  <bruno@clisp.org>
48854
48855         * modules/clean-temp: New file.
48856
48857 2006-07-24  Bruno Haible  <bruno@clisp.org>
48858
48859         * m4/tmpdir.m4: New file, from GNU gettext.
48860
48861 2006-07-24  Bruno Haible  <bruno@clisp.org>
48862
48863         * lib/tmpdir.h: New file, from GNU gettext.
48864         * lib/tmpdir.c: New file, from GNU gettext.
48865
48866 2006-07-24  Bruno Haible  <bruno@clisp.org>
48867
48868         * lib/clean-temp.h: New file, from GNU gettext.
48869         * lib/clean-temp.c: New file, from GNU gettext.
48870
48871 2006-07-23  Eric Blake  <ebb9@byu.net>
48872
48873         * modules/stdio-safer (Files): Add tmpfile-safer.c.
48874         (Depends-on): Add binary-io.
48875
48876 2006-07-23  Eric Blake  <ebb9@byu.net>
48877
48878         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
48879
48880 2006-07-23  Eric Blake  <ebb9@byu.net>
48881
48882         * lib/tmpfile-safer.c: New file.
48883         * lib/stdio-safer.h (fopen_safer): Add prototype.
48884         * lib/stdio--.h (tmpfile): Make safer.
48885
48886 2006-07-23  Bruno Haible  <bruno@clisp.org>
48887
48888         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
48889         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
48890         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
48891         gl_linked_remove_at): Use it.
48892
48893 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48894         and Simon Josefsson <jas@extundo.com>
48895
48896         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
48897
48898         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
48899
48900 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
48901
48902         * modules/close-stream: New file.
48903         * modules/closeout (Description): Make it clear that it exits
48904         with a diagnostic on error.
48905         (Depends-on): Add close-stream.  Remove fpending, stdbool.
48906         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
48907
48908 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
48909
48910         * m4/close-stream.m4: New file.
48911
48912 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
48913
48914         * lib/close-stream.c, lib/close-stream.h: New files.
48915
48916 2006-07-22  Bruno Haible  <bruno@clisp.org>
48917
48918         Merge from GNU gettext 0.15.
48919
48920         2006-05-01  Bruno Haible  <bruno@clisp.org>
48921
48922                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
48923
48924         2006-07-22  Bruno Haible  <bruno@clisp.org>
48925
48926                 * modules/javaversion: New file.
48927                 * MODULES.html.sh (Java): Add javaversion.
48928
48929         2006-03-12  Bruno Haible  <bruno@clisp.org>
48930
48931                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
48932
48933         2005-12-04  Bruno Haible  <bruno@clisp.org>
48934
48935                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
48936                 (untested).
48937
48938         2006-06-21  Bruno Haible  <bruno@clisp.org>
48939
48940                 Avoid warnings from recent versions of mcs.
48941                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
48942                 -o, -L, -r any more. Use options documented since mcs-1.0
48943                 instead. Similarly for -g.
48944
48945         2005-12-04  Bruno Haible  <bruno@clisp.org>
48946
48947                 * build-aux/csharpcomp.sh.in: Suffix for resources is
48948                 .resources, not .resource.
48949
48950         2005-07-09  Bruno Haible  <bruno@clisp.org>
48951
48952                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
48953                 add a .dll suffix.
48954                 Reported by Mark Junker <mjscod@gmx.de>.
48955
48956         2006-07-22  Bruno Haible  <bruno@clisp.org>
48957
48958                 * modules/gettext: Upgrade to gettext-0.15.
48959                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
48960                 m4/visibility.m4.
48961                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
48962
48963 2006-07-22  Bruno Haible  <bruno@clisp.org>
48964
48965         Merge from GNU gettext 0.15.
48966
48967         2006-03-25  Bruno Haible  <bruno@clisp.org>
48968
48969                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
48970
48971         2006-07-21  Bruno Haible  <bruno@clisp.org>
48972
48973                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
48974                 "1.1".
48975
48976         2006-05-09  Bruno Haible  <bruno@clisp.org>
48977
48978                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
48979                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
48980                 for the conftestver execution.
48981
48982         2006-05-01  Bruno Haible  <bruno@clisp.org>
48983
48984                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
48985                 optional target-version argument. Verify that the compiler
48986                 groks source of the specified source-version, or add -source
48987                 option as necessary. Verify that the compiler produces
48988                 bytecode in the specified target-version, or add -target and
48989                 -source options as necessary. Make the result of the test
48990                 available as variable CONF_JAVAC. Also log error output in
48991                 config.log.
48992
48993         2006-03-11  Bruno Haible  <bruno@clisp.org>
48994
48995                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
48996
48997         2006-05-09  Bruno Haible  <bruno@clisp.org>
48998
48999                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
49000                 CLASSPATH_SEPARATOR to a semicolon.
49001
49002         2006-03-12  Bruno Haible  <bruno@clisp.org>
49003
49004                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
49005                 available as variable CONF_JAVA, for subsequent autoconf
49006                 tests. Also log error output in config.log.
49007
49008         2006-07-19  Bruno Haible  <bruno@clisp.org>
49009
49010                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
49011                 that getline works on glibc2 systems. Needed to avoid trouble
49012                 in relocatable.c.
49013                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
49014
49015         2005-12-04  Bruno Haible  <bruno@clisp.org>
49016
49017                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
49018                 launcher (untested).
49019
49020         2005-12-04  Bruno Haible  <bruno@clisp.org>
49021
49022                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
49023
49024         2006-07-22  Bruno Haible  <bruno@clisp.org>
49025
49026                 * gettext.m4: Update from GNU gettext-0.15.
49027                 * nls.m4: Likewise.
49028                 * po.m4: Likewise.
49029                 * inttypes-pri.m4: Likewise.
49030                 * inttypes-h.m4: Renamed from inttypes.m4.
49031                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
49032
49033 2006-07-22  Bruno Haible  <bruno@clisp.org>
49034
49035         Merge from GNU gettext 0.15.
49036
49037         2005-07-05  Bruno Haible  <bruno@clisp.org>
49038
49039                 * printf-args.c (printf_fetchargs): Work around broken
49040                 definition of wint_t on mingw.
49041
49042         2005-02-12  Bruno Haible  <bruno@clisp.org>
49043
49044                 * xallocsa.h: Add extern "C" for C++.
49045
49046         2006-05-17  Bruno Haible  <bruno@clisp.org>
49047
49048                 Cygwin portability.
49049                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
49050
49051         2006-04-30  Bruno Haible  <bruno@clisp.org>
49052
49053                 * progreloc.c: Include <mach-o/dyld.h> if available.
49054                 (find_executable): Use _NSGetExecutablePath when possible.
49055
49056         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
49057
49058                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
49059                 function.
49060
49061         2005-12-29  Bruno Haible  <bruno@clisp.org>
49062
49063                 * progreloc.c (set_program_name_and_installdir): Fix
49064                 compilation error.
49065
49066         2005-12-04  Bruno Haible  <bruno@clisp.org>
49067
49068                 Cygwin portability.
49069                 * progreloc.c: Include <windows.h> also on Cygwin.
49070                 (find_executable): Add support for Cygwin.
49071                 (set_program_name_and_installdir): Handle also platforms with
49072                 nonempty EXEEXT.
49073
49074         2006-07-11  Bruno Haible  <bruno@clisp.org>
49075
49076                 * javacomp.c: Fix a comment.
49077                 Reported by Jim Meyering.
49078
49079         2006-04-30  Bruno Haible  <bruno@clisp.org>
49080
49081                 * javacomp.h (compile_java_class): Add source_version,
49082                 target_version arguments.
49083                 * javacomp.c: Rewritten to choose only a compiler that
49084                 respects the specified source_version and target_version.
49085
49086         2006-06-27  Bruno Haible  <bruno@clisp.org>
49087
49088                 Assume correct S_ISDIR macro.
49089                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
49090
49091         2006-07-22  Bruno Haible  <bruno@clisp.org>
49092
49093                 * javaversion.h: New file, from GNU gettext.
49094                 * javaversion.c: New file, from GNU gettext.
49095                 * javaversion.java: New file, from GNU gettext.
49096                 * javaversion.class: New file, from GNU gettext.
49097
49098         2006-05-17  Bruno Haible  <bruno@clisp.org>
49099
49100                 Cygwin portability.
49101                 * javaexec.c (execute_java_class): Test for jview program
49102                 also on Cygwin.
49103
49104         2006-04-09  Bruno Haible  <bruno@clisp.org>
49105
49106                 * fatal-signal.c: Don't include string.h.
49107                 (at_fatal_signal): Use a copying loop instead of memcpy.
49108
49109         2005-12-04  Bruno Haible  <bruno@clisp.org>
49110
49111                 * csharpexec.c: Add support for 'clix' launcher (untested).
49112                 (execute_csharp_using_sscli): New function.
49113                 (execute_csharp_program): Call it.
49114
49115         2006-06-21  Bruno Haible  <bruno@clisp.org>
49116
49117                 Avoid warnings from recent versions of mcs.
49118                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
49119                 -o, -L, -r any more. Use options documented since mcs-1.0
49120                 instead. Similarly for -g.
49121
49122         2005-07-09  Bruno Haible  <bruno@clisp.org>
49123
49124                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
49125                 add a .dll suffix.
49126                 Reported by Mark Junker <mjscod@gmx.de>.
49127
49128         2006-06-17  Bruno Haible  <bruno@clisp.org>
49129
49130                 * config.charset: Update for NetBSD 3.0.
49131
49132         2006-05-17  Bruno Haible  <bruno@clisp.org>
49133
49134                 Cygwin portability.
49135                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
49136
49137         2006-05-16  Bruno Haible  <bruno@clisp.org>
49138
49139                 * localcharset.c [CYGWIN]: Include <windows.h>.
49140                 (get_charset_aliases): For Cygwin, return the same CPxxx
49141                 aliases list as under WIN32.
49142                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
49143                 the environment variables. Fall back to GetACP().
49144
49145         2006-04-05  Bruno Haible  <bruno@clisp.org>
49146
49147                 * config.charset: Update Juan Manuel Guerrero's address.
49148
49149         2005-02-12  Bruno Haible  <bruno@clisp.org>
49150
49151                 * allocsa.h: Add extern "C" for C++.
49152
49153         2005-02-10  Bruno Haible  <bruno@clisp.org>
49154
49155                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
49156                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
49157
49158         2006-07-22  Bruno Haible  <bruno@clisp.org>
49159
49160                 * gettext.h: Update to GNU gettext-0.15.
49161
49162 2006-07-22  Bruno Haible  <bruno@clisp.org>
49163
49164         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
49165         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
49166         lib-prefix.m4, longdouble.m4, ssize_t.m4.
49167
49168 2006-07-21  Eric Blake  <ebb9@byu.net>
49169
49170         * modules/stdlib-safer: New file.
49171         * MODULES.html.sh (File stream based Input/Output): Add
49172         stdlib-safer.
49173
49174 2006-07-21  Eric Blake  <ebb9@byu.net>
49175
49176         * lib/stdlib-safer.h: New file from coreutils, required by
49177         stdlib--.h.
49178
49179 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
49180
49181         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
49182
49183 2006-07-20  Bruno Haible  <bruno@clisp.org>
49184
49185         * gnulib-tool: Recognize new option --assume-autoconf.
49186         (autoconf_minversion): New variable.
49187         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
49188
49189 2006-07-20  Bruno Haible  <bruno@clisp.org>
49190
49191         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
49192
49193 2006-07-19  Derek R. Price  <derek@ximbiot.com>
49194
49195         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
49196         Reindent and repaginate.
49197
49198 2006-07-19  Derek Price  <derek@ximbiot.com>
49199
49200         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
49201         Correct grammar.
49202
49203 2006-07-17  Bruno Haible  <bruno@clisp.org>
49204
49205         * modules/list: New file.
49206         * modules/array-list: New file.
49207         * modules/carray-list, modules/carray-list-tests: New files.
49208         * modules/linked-list, modules/linked-list-tests: New files.
49209         * modules/avltree-list, modules/avltree-list-tests: New files.
49210         * modules/rbtree-list, modules/rbtree-list-tests: New files.
49211         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
49212         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
49213         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
49214         * modules/oset: New file.
49215         * modules/array-oset: New file.
49216         * modules/avltree-oset, modules/avltree-oset-tests: New files.
49217         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
49218         * tests/test-carray_list.c: New file.
49219         * tests/test-linked_list.c: New file.
49220         * tests/test-avltree_list.c: New file.
49221         * tests/test-rbtree_list.c: New file.
49222         * tests/test-linkedhash_list.c: New file.
49223         * tests/test-avltreehash_list.c: New file.
49224         * tests/test-rbtreehash_list.c: New file.
49225         * tests/test-avltree_oset.c: New file.
49226         * tests/test-rbtree_oset.c: New file.
49227         * MODULES.html.sh (Container data structures): New section.
49228
49229 2006-07-17  Bruno Haible  <bruno@clisp.org>
49230
49231         * m4/gl_list.m4: New file.
49232
49233 2006-07-17  Bruno Haible  <bruno@clisp.org>
49234
49235         * lib/gl_list.h: New file.
49236         * lib/gl_list.c: New file.
49237         * lib/gl_array_list.h: New file.
49238         * lib/gl_array_list.c: New file.
49239         * lib/gl_carray_list.h: New file.
49240         * lib/gl_carray_list.c: New file.
49241         * lib/gl_linked_list.h: New file.
49242         * lib/gl_linked_list.c: New file.
49243         * lib/gl_anylinked_list1.h: New file.
49244         * lib/gl_anylinked_list2.h: New file.
49245         * lib/gl_avltree_list.h: New file.
49246         * lib/gl_avltree_list.c: New file.
49247         * lib/gl_anyavltree_list1.h: New file.
49248         * lib/gl_anyavltree_list2.h: New file.
49249         * lib/gl_rbtree_list.h: New file.
49250         * lib/gl_rbtree_list.c: New file.
49251         * lib/gl_anyrbtree_list1.h: New file.
49252         * lib/gl_anyrbtree_list2.h: New file.
49253         * lib/gl_anytree_list1.h: New file.
49254         * lib/gl_anytree_list2.h: New file.
49255         * lib/gl_linkedhash_list.h: New file.
49256         * lib/gl_linkedhash_list.c: New file.
49257         * lib/gl_anyhash_list1.h: New file.
49258         * lib/gl_anyhash_list2.h: New file.
49259         * lib/gl_avltreehash_list.h: New file.
49260         * lib/gl_avltreehash_list.c: New file.
49261         * lib/gl_rbtreehash_list.h: New file.
49262         * lib/gl_rbtreehash_list.c: New file.
49263         * lib/gl_anytreehash_list1.h: New file.
49264         * lib/gl_anytreehash_list2.h: New file.
49265
49266         * lib/gl_oset.h: New file.
49267         * lib/gl_oset.c: New file.
49268         * lib/gl_array_oset.h: New file.
49269         * lib/gl_array_oset.c: New file.
49270         * lib/gl_avltree_oset.h: New file.
49271         * lib/gl_avltree_oset.c: New file.
49272         * lib/gl_rbtree_oset.h: New file.
49273         * lib/gl_rbtree_oset.c: New file.
49274         * lib/gl_anytree_oset.h: New file.
49275
49276 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
49277
49278         * m4/mkancesdirs.m4: New file.
49279         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
49280         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
49281         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
49282         it.
49283
49284 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
49285
49286         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
49287         * lib/mkancesdirs.h: New files.
49288         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
49289         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
49290         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
49291         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
49292         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
49293         callers changed.  Revamp internals significantly, by not
49294         attempting to create directories that are temporarily more
49295         permissive than the final results.  Do not attempt to use
49296         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
49297         This removes some race conditions, fixes some bugs, and simplifies
49298         things.  Use new dirchownmod function to do owner and mode changes.
49299         * lib/mkdir-p.h: Likewise.
49300         * lib/modechange.c (octal_to_mode): New function.
49301         (struct mode_change): New member mentioned.
49302         (make_node_op_equals): New arg mentioned.  All callers changed.
49303         (mode_compile): Keep track of which mode bits the user has explicitly
49304         mentioned.
49305         (mode_adjust): New arg DIR, so that we implement the X op correctly.
49306         New arg PMODE_BITS, to keep track of which mode bits the user
49307         mentioned; it treats S_ISUID and S_ISGID speciall.
49308         All callers changed.
49309         * lib/modechange.h: Likewise.
49310
49311 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
49312
49313         * MODULES.html.sh: Add mkancestors.
49314         * modules/mkancesdirs: New module.
49315         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
49316         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
49317         The chdir-safer and afs files are now orphans; I'll remove them
49318         unless someone speaks up.
49319         Add lib/dirchownmod.c, lib/dirchownmod.h.
49320         (Depends-on): Remove alloca, chown, save-cwd, dirname.
49321         Add lchown, mkancesdirs.
49322         (Maintainer): Add self.
49323
49324 2006-07-15  Karl Berry  <karl@gnu.org>
49325
49326         * gnulib-tool: help message wording/arrangement.
49327
49328 2006-07-14  Simon Josefsson  <jas@extundo.com>
49329
49330         * doc/gnulib.texi (Libtool and Windows): New section.
49331
49332 2006-07-12  Simon Josefsson  <jas@extundo.com>
49333
49334         * modules/gendocs (License): Fix license, approved by Karl.
49335
49336 2006-07-12  Eric Blake  <ebb9@byu.net>
49337
49338         * MODULES.html.sh: Add gendocs.
49339
49340 2006-07-11  Eric Blake  <ebb9@byu.net>
49341
49342         * modules/fdl: New module, to install doc/fdl.texi.
49343         * MODULES.html.sh: Add new section for documentation modules.
49344         * gnulib-tool: Avoid space-tab.
49345         (--doc-base): New option, to manage files from doc.
49346
49347 2006-07-11  Eric Blake  <ebb9@byu.net>
49348
49349         * m4/absolute-header.m4: Fix comments to match recent change.
49350
49351 2006-07-11  Eric Blake  <ebb9@byu.net>
49352
49353         * gnulib-tool: List --doc-base before --tests-base.
49354
49355 2006-07-11  Derek R. Price  <derek@ximbiot.com>
49356
49357         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
49358
49359 2006-07-11  Bruno Haible  <bruno@clisp.org>
49360
49361         * README: Mention where to put documentation.
49362
49363 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49364
49365         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
49366
49367 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
49368
49369         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
49370         to stdint.m4.
49371
49372 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
49373
49374         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
49375         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
49376         "no/such/file/stdint.h" when there is no such file, so that
49377         the resulting C code can be parsed by dodgy compilers.
49378         Problems reported by Bob Proulx.
49379
49380 2006-07-10  Derek R. Price  <derek@ximbiot.com>
49381
49382         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
49383         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
49384         macros into the GNU _D_EXACT_NAMLEN.
49385         * lib/savedir.c:  Likewise.
49386         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
49387
49388 2006-07-10  Derek R. Price  <derek@ximbiot.com>
49389         and Paul Eggert  <eggert@cs.ucla.edu>
49390
49391         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
49392         * m4/savedir.m4:
49393         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
49394         macros into the GNU _D_EXACT_NAMLEN.
49395
49396 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
49397
49398         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
49399         around the absolute name, to work around a problem with the HP-UX
49400         11.23 native C compiler, reported by Bob Proulx.
49401
49402 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
49403
49404         * doc/maintain.texi, make-stds.texi: Sync from
49405         <http://savannah.gnu.org/projects/gnustandards>.
49406
49407 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
49408
49409         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
49410
49411 2006-07-09  Jim Meyering  <jim@meyering.net>
49412
49413         * m4/glob.m4: Remove a doubled word in a comment.
49414
49415 2006-07-09  Jim Meyering  <jim@meyering.net>
49416
49417         * lib/argp-pv.c: Remove a doubled word in a comment.
49418         * lib/check-version.c (check_version): Likewise.
49419         * lib/javacomp.c (compile_java_class): Likewise.
49420
49421 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
49422
49423         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
49424         for the benefit of people using Autoconf 2.60.  If you want to
49425         support older Autoconf versions you can copy m4/onceonly_2_57.m4
49426         (or m4/onceonly.m4, if pre-2.57) manually.
49427
49428 2006-07-08  Jim Meyering  <jim@meyering.net>
49429
49430         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
49431         comment.
49432         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
49433         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
49434         comment.
49435
49436 2006-07-08  Jim Meyering  <jim@meyering.net>
49437
49438         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
49439
49440 2006-07-07  Simon Josefsson  <jas@extundo.com>
49441
49442         * tests/test-crc.c: Change expected crc value, the test vector
49443         were probably computed using the old broken crc.c?
49444
49445 2006-07-06  Simon Josefsson  <jas@extundo.com>
49446
49447         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
49448         now the canonical place for the M4 file).
49449
49450         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
49451         from the sys_socket dependency now.
49452
49453         * modules/inet_pton (Files): Ditto.
49454
49455         * modules/inet_ntop (Files): Ditto.
49456
49457 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
49458
49459         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
49460         not gl_PREREQ_GETUSERSHELL.
49461
49462 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49463
49464         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
49465         with only one argument, for Autoconf 2.60.
49466         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
49467         expand to nothing, so add a shell command to avoid syntax error.
49468         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
49469
49470 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49471
49472         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
49473
49474 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
49475
49476         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
49477         no longer needed.  Check for isblank decl.
49478         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
49479         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
49480         of existence.
49481
49482 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
49483
49484         * lib/getloadavg.c: Use __VMS, not VMS.
49485         * lib/getopt.c: Likewise.
49486         * lib/getpagesize.h: Likewise.
49487         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
49488         and probably does not work.
49489
49490 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
49491
49492         * lib/.cppi-disable: Add wcwidth.
49493         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
49494         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
49495         (ISGRAPH): Remove.  All uses changed to isgraph.
49496         (FOLD) [!defined _LIBC]: Remove special case.
49497         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
49498         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
49499         HAVE_ISBLANK.
49500         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
49501         case.
49502
49503 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
49504
49505         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
49506         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
49507         brackets.  Other minor changes to suppress some compiler
49508         warnings.
49509
49510 2006-07-06  Derek R. Price  <derek@ximbiot.com>
49511         and Paul Eggert  <eggert@cs.ucla.edu>
49512
49513         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
49514         of invoking obsolescent AC_HEADER_DIRENT macro.
49515         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
49516         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
49517         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
49518         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
49519         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
49520         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
49521         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
49522         * m4/readdir.m4: Remove; no longer needed.
49523
49524 2006-07-06  Derek R. Price  <derek@ximbiot.com>
49525         and Paul Eggert  <eggert@cs.ucla.edu>
49526
49527         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
49528         Don't worry about this obsolete case any more.
49529         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
49530         directories.
49531         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
49532         worry about this obsolete case any more.
49533         * lib/fts.c: Likewise.
49534         * lib/getcwd.c: Likewise.
49535         * lib/glob.h: Likewise.
49536         * lib/savedir.c: Likewise.
49537
49538 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
49539
49540         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
49541         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
49542         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
49543         needed.
49544         All uses removed.
49545         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
49546         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
49547         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
49548         needed.
49549         * m4/getdate.m4 (gl_GETDATE): Likewise.
49550         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
49551         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
49552         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
49553         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
49554         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
49555         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
49556         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
49557         needed.
49558
49559 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
49560
49561         * lib/memcasecmp.c: Include <limits.h>.
49562         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
49563         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
49564         Don't assume isdigit succeeds only on '0' through '9'.
49565
49566 2006-07-05  Eric Blake  <ebb9@byu.net>
49567
49568         * modules/getaddrinfo (Depends-on): Add snprintf.
49569
49570 2006-07-05  Eric Blake  <ebb9@byu.net>
49571
49572         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
49573         to avoid 'header present but could not be compiled' on cygwin.
49574
49575 2006-07-05  Eric Blake  <ebb9@byu.net>
49576
49577         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
49578         missing from netdb.h.
49579         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
49580
49581 2006-07-05  Derek R. Price  <derek@ximbiot.com>
49582
49583         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
49584         no longer needed.
49585         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
49586         * m4/getdate.m4 (gl_GETDATE): Likewise.
49587         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
49588         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
49589         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
49590         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
49591         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
49592
49593 2006-07-05  Derek R. Price  <derek@ximbiot.com>
49594
49595         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
49596         All uses of is_space replaced by isspace.
49597         * lib/exit.h: Don't talk about STDC_HEADERS.
49598         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
49599         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
49600         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
49601         replaced by isprint etc.
49602         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
49603         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
49604         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
49605         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
49606         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
49607         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
49608
49609 2006-07-05  Bruno Haible  <bruno@clisp.org>
49610
49611         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
49612         the function exists, before testing against AIX.
49613         Reported by Martin Lambers <marlam@marlam.de>.
49614
49615 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
49616
49617         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
49618         From Mark D. Baushke.
49619
49620 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
49621
49622         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
49623         to the absolute name, not just one, to bypass Sun C 5.8's
49624         "warning: #include of /usr/include/... may be non-portable".
49625
49626 2006-07-04  Eric Blake  <ebb9@byu.net>
49627
49628         * modules/dirname-tests: New test module.
49629         * tests/test-dirname.c: New file, replacing dirname.c
49630         TEST_DIRNAME section that was recently deleted.
49631
49632 2006-07-04  Bruno Haible  <bruno@clisp.org>
49633
49634         Assume ANSI C header files and <ctype.h> functions.
49635         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
49636         (mbsnwidth): Use isprint, iscntrl instead.
49637
49638 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
49639
49640         Merge from coreutils.
49641         * MODULES.html.sh: Add xstrtold.
49642         * modules/xstrtold: New file.
49643         * modules/cycle-check (Files): Add lib/same-inode.h.
49644         * modules/dirname (Files): Add m4/double-slash-root.m4.
49645         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
49646         * modules/mkdir-p (Files): Add lib/same-inode.h.
49647         * modules/same (Files): Add lib/same-inode.h.
49648
49649 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
49650
49651         * m4/absolute-header.m4: Renamed from full-header-path.m4.
49652         This is to keep the terminology clean; POSIX talks about
49653         "absolute pathnames", not "full pathnames", but the GNU
49654         Coding Standards say to use "path" for something else;
49655         so use "absolute" to keep both sides happy.
49656         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
49657         Set gl_absolute_header, not gl_full_header_path.
49658         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
49659         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
49660         All uses changed.
49661
49662         Merge from coreutils.
49663
49664         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
49665
49666         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
49667         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
49668         want to require the building of c-strtod.o.
49669         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
49670         needs -lm directly.
49671         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
49672
49673         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
49674
49675         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
49676         --as-needed option if available.  Problem reported by Albert Chin in
49677         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
49678         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
49679         cc merely issues a bunch of annoying warnings for --as-needed
49680         (this problem was reported by Bob Proulx).  Also, try linking with
49681         -lm to detect a bug in binutils 2.16 (this problem was reported
49682         by Ralf Wildenhues).
49683
49684         2006-06-18  Jim Meyering  <jim@meyering.net>
49685
49686         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
49687         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
49688         macro.
49689         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
49690         also check for glibc-2.4's abort-inducing bug.
49691
49692         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
49693         Low-probability clean-up should be to use rmdir to get rid of
49694         the just-created directory, not unlink.
49695
49696         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
49697         configure fail, and request a bug report to inform us about it.
49698         Add a comment that, barring reports to the contrary, in 2007 we'll
49699         assume ftruncate is universally available.
49700
49701         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
49702
49703         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
49704
49705         2006-03-12  Jim Meyering  <jim@meyering.net>
49706
49707         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
49708         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
49709         * m4/same.m4 (gl_SAME): Likewise.
49710         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
49711
49712         2006-03-11  Eric Blake  <ebb9@byu.net>
49713
49714         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
49715         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
49716         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
49717         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
49718
49719 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
49720
49721         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
49722         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
49723         reported by Mark D. Baushke, one in
49724         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
49725
49726         Merge from coreutils.
49727
49728         * lib/.cppi-disable: Add stdint_.h.
49729         * lib/.cvsignore: Add stdint.h.
49730
49731         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
49732
49733         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
49734         both double and long double versions.
49735         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
49736         * lib/xstrtold.c: New file.
49737         * lib/xstrtod.h (xstrtold): New decl.
49738
49739         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
49740
49741         * lib/filemode.c (setst): Remove.
49742         (strmode): Rewrite to avoid setst.  This makes the code shorter,
49743         (arguably) clearer, and the generated code is a bit smaller on my
49744         Debian GNU/Linux stable x86 host.
49745
49746         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
49747
49748         * lib/filemode.c: Include "filemode.h" first, to test the interface.
49749         Assume that filemode.h includes sys/types.h and sys/stat.h.
49750         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
49751         (ftypelet): Reorder to put common cases first, for efficiency.
49752         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
49753         to do 'M'.
49754         (strmode): Renamed from mode_string, and now stores 12 bytes instead
49755         of 10, for compatibility with FreeBSD.  All callers changed.
49756         (filemodestring): Now stores 12 bytes instead of 10, and sets file
49757         types that can't be deduced solely from st_mode.  First arg is now a
49758         const pointer.
49759         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
49760         (strmode): Renamed from mode_string.
49761         (filemodestring): New decl.
49762         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
49763         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
49764         needed.
49765         (S_ISPORT, S_ISWHT): New macros, if not already defined.
49766
49767         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
49768
49769         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
49770         fsusage.h now does that.  Include fsusage.h first, to test interface.
49771         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
49772         at most one method (the old code could have generated decls that
49773         didn't conform to C89, not that this was ever exercised).
49774         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
49775
49776         2006-03-19  Jim Meyering  <jim@meyering.net>
49777
49778         Work even in a chroot where d_ino values for entries in "/"
49779         don't match the stat.st_ino values for the same names.
49780         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
49781         number, iterate through all entries again, using lstat instead.
49782         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
49783         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
49784
49785         * lib/getcwd.c (__getcwd): Clarify a comment.
49786         Use memcpy in place of a call to strcpy.
49787
49788         2006-03-12  Jim Meyering  <jim@meyering.net>
49789
49790         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
49791         matches that of the current directory (which we're about to chdir ".."
49792         out of), then save the dev-ino of the parent, instead.
49793
49794         * lib/same-inode.h (SAME_INODE): New file/macro.
49795         * lib/chdir-safer.c (SAME_INODE): Remove definition.
49796         Include "same-inode.h", instead.
49797         * lib/same.c: Likewise.
49798         * lib/cycle-check.h: Include "same-inode.h".
49799         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
49800         * lib/cycle-check.c (SAME_INODE): Remove definition.
49801         * lib/root-dev-ino.h: Include "same-inode.h".
49802
49803         2006-03-11  Eric Blake  <ebb9@byu.net>
49804
49805         * lib/same.c (same_name): s/base_name/last_component/
49806         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
49807         * lib/filenamecat.c (file_name_concat): Likewise.
49808
49809         2006-03-11  Eric Blake  <ebb9@byu.net>,
49810                     Paul Eggert  <eggert@cs.ucla.edu>
49811
49812         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
49813         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
49814         drive prefix.
49815         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
49816         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
49817         (last_component): New method.
49818         * lib/dirname.c (dir_len): Determine when drive letters need a
49819         subsequent slash.  Preserve // when it is special.
49820         (dir_name): Don't append dot when drive letter is absolute.
49821         [TEST_DIRNAME]: Move into a full-blown gnulib test.
49822         * lib/basename.c (base_name): New semantics - malloc the result.
49823         Preserve // when it is special.  Preserve relative files that look
49824         like drive letters.
49825         (base_len): Preserve // when it is special.
49826         (last_component): New method, similar to old base_name semantics.
49827         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
49828         base_name.  Strip redundant slashes from ///.
49829
49830 2006-07-03  Jim Meyering  <jim@meyering.net>
49831
49832         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
49833         macro is used before the first cycle_check call.
49834
49835 2006-07-03  Eric Blake  <ebb9@byu.net>
49836
49837         * modules/dirname (Depends-on): Add xstrndup.
49838
49839 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
49840
49841         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
49842         test cases, so that config.log is a bit easier to follow.
49843
49844 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
49845
49846         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
49847         both are 64 bits, since this seems to be the tradition, and this
49848         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
49849         we ever run into a host that prefers long long to long in this
49850         case, we'll need another configure-time test.  Problem reported by
49851         Jim Meyering.
49852
49853 2006-07-02  Eric Blake  <ebb9@byu.net>
49854
49855         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
49856
49857 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
49858
49859         * modules/inttypes (Depends-on): No longer depends on stdint.
49860         * modules/stdint (Description): Say more about assumptions.
49861         Say that the fast types might differ.  Say macros are used.
49862         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
49863         (Makefile.am): Revise list of substituted symbols to match
49864         new stdint.m4.
49865         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
49866         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
49867         * tests/test-stdint.c (verify_same_types)
49868         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
49869         the code conforms to C99/C89.
49870         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
49871         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
49872
49873 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
49874
49875         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
49876         but fix a bug, by requiring at least 64 bits.
49877         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
49878         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
49879         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
49880         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
49881
49882         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
49883         changes.  Make 2.59 a prerequisite.  Check and substitute for
49884         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
49885         inttypes.h.  Do not use special include files; just use the
49886         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
49887         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
49888         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
49889         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
49890         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
49891         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
49892         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
49893         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
49894         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
49895         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
49896         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
49897         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
49898         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
49899         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
49900         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
49901         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
49902         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
49903         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
49904         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
49905         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
49906         WINT_MAX.  Check for C99 conformance more strictly, by detecting
49907         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
49908         not check for things that C99 does not require, e.g., int8_t.  If
49909         a test isn't needed unless <stdint.h> isn't working, and is
49910         unlikely to be needed for any other reason, then don't do it
49911         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
49912         size_t, since we assume C89 freestanding at least.  Do not check
49913         for sig_atomic_t, wchar_t, or wint_t, since the code now does
49914         the right thing even if the types are not defined.  Instead use:
49915         (gl_STDINT_TYPE_PROPERTIES): New macro.
49916         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
49917         testing whether <sys/types.h> clashes, as Autoconf does this for
49918         us now.  All uses removed.
49919         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
49920         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
49921         (gl_CHECK_TYPE_SAME):
49922         Remove; no longer needed.
49923         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
49924         exists, since we'll return 0 anyway in that case.
49925         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
49926
49927 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
49928
49929         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
49930         possible collision with system files.
49931         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
49932         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
49933         WCHAR_MIN and WCHAR_MAX in this case.
49934         (<stddef.h>): Do not include; no longer needed.
49935         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
49936         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
49937         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
49938         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
49939         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
49940         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
49941         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
49942         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
49943         !defined(__c99))]: Include in this case too, since it's harmless
49944         now.
49945         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
49946         dangerous to do so.
49947         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
49948         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
49949         (_STDINT_MIN, _STDINT_MAX): New macros.
49950         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
49951         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
49952         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
49953         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
49954         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
49955         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
49956         macros, not typedefs; this simplifies things quite a bit.
49957         Use long int for all types narrower than int64_t.
49958         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
49959         Define in terms of long long int or int64_t or long int,
49960         not int64_t or int32_t.  This saves some compile-time testing.
49961         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
49962         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
49963         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
49964         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
49965         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
49966         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
49967         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
49968         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
49969         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
49970         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
49971         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
49972         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
49973         undef any previous version and define our own version, for
49974         simplicity and consistency with the new macros for types.
49975         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
49976         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
49977         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
49978         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
49979         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
49980         @WINT_T_SUFFIX@ to keep things simple here.
49981         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
49982         Simplify by assuming typical 8/16/32/64 host, since we're
49983         already doing that elsewhere anyway.
49984         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
49985         and assume long long int is 64 bits if available.  This
49986         speeds up 'configure'.
49987
49988 2006-07-01  Eric Blake  <ebb9@byu.net>
49989
49990         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
49991         Reported by Andreas Buening.
49992
49993 2006-07-01  Eric Blake  <ebb9@byu.net>
49994
49995         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
49996
49997 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
49998
49999         * lib/getaddrinfo.c: fixed typo
50000
50001 2006-06-29  Jim Meyering  <jim@meyering.net>
50002
50003         * modules/strftime (Maintainer): Add my name, since with the
50004         FPRINTFTIME changes strftime.c has forked from glibc.
50005
50006 2006-06-29  Eric Blake  <ebb9@byu.net>
50007
50008         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
50009
50010 2006-06-29  Eric Blake  <ebb9@byu.net>
50011
50012         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
50013
50014 2006-06-29  Eric Blake  <ebb9@byu.net>
50015
50016         * lib/stat_.h: New file.
50017
50018 2006-06-29  Eric Blake  <ebb9@byu.net>
50019
50020         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
50021         unused static function.
50022
50023 2006-06-29  Eric Blake  <ebb9@byu.net>
50024
50025         * doc/functions.texi (Function Portability): Document missing lstat
50026         on mingw.
50027
50028 2006-06-29  Eric Blake  <ebb9@byu.net>
50029
50030         * MODULES.html.sh: Add sys_stat.
50031         * modules/sys_stat: New module.
50032         * modules/mkstemp (Depends-on): Add sys_stat.
50033
50034 2006-06-29  Derek R. Price  <derek@ximbiot.com>
50035
50036         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
50037
50038 2006-06-29  Derek R. Price  <derek@ximbiot.com>
50039
50040         * m4/c-bs-a.m4: Removed.
50041
50042 2006-06-29  Derek R. Price  <derek@ximbiot.com>
50043
50044         * lib/strftime.c: Assume strftime() exists.
50045
50046 2006-06-29  Derek Price  <derek@ximbiot.com>
50047
50048         * modules/c-bs-a: Removed - \a is C89.
50049         * MODULES.html.sh: Remove c-bs-a.
50050
50051 2006-06-29  Bruno Haible  <bruno@clisp.org>
50052
50053         * modules/wcwidth (License): Change to LGPL.
50054
50055 2006-06-28  Simon Josefsson  <jas@extundo.com>
50056
50057         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
50058         on _WIN32.
50059
50060         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
50061         getnameinfo.
50062
50063 2006-06-28  Simon Josefsson  <jas@extundo.com>
50064
50065         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
50066
50067 2006-06-28  Simon Josefsson  <jas@extundo.com>
50068
50069         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
50070         functions there.  It will succeed on Windows XP, but on Windows
50071         2000 and (presumably) earlier, it will fail, and use the internal
50072         re-implementation.
50073         (use_win32_p): New function.
50074         (getaddrinfo): Use strtoul on servname, to support numeric ports.
50075         Support AI_NUMERICSERV to disable getservbyname.
50076         (getnameinfo): New function, only supports
50077         NI_NUMERICHOST|NI_NUMERICSERV for now.
50078
50079         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
50080         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
50081         getnameinfo.
50082
50083 2006-06-28  Eric Blake  <ebb9@byu.net>
50084
50085         * modules/wcwidth: New file.
50086         * modules/mbchar (Depends-on): Add wcwidth.
50087         * modules/mbswidth (Depends-on): Add wcwidth.
50088         * MODULES.html.sh: Add wcwidth.
50089
50090 2006-06-28  Eric Blake  <ebb9@byu.net>
50091
50092         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
50093         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
50094
50095 2006-06-28  Eric Blake  <ebb9@byu.net>
50096
50097         * lib/xvasprintf.h: Fix comments.
50098
50099 2006-06-28  Eric Blake  <ebb9@byu.net>
50100
50101         * lib/mbchar.h (wcwidth): Include wcwidth.h.
50102         * lib/mbswidth.c (wcwidth): Move from here...
50103         * lib/wcwidth.h: ...to this new file.
50104
50105 2006-06-28  Derek R. Price  <derek@ximbiot.com>
50106
50107         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
50108
50109         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
50110         it's obsolete.
50111         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
50112
50113 2006-06-28  Derek R. Price  <derek@ximbiot.com>
50114
50115         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
50116         Autoconf 2.60 says this stuff was obsolete.
50117
50118 2006-06-28  Bruno Haible  <bruno@clisp.org>
50119
50120         * modules/wcwidth (Files): Add m4/wchar_t.m4.
50121
50122 2006-06-28  Bruno Haible  <bruno@clisp.org>
50123
50124         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
50125         gt_TYPE_WCHAR_T.
50126
50127 2006-06-28  Bruno Haible  <bruno@clisp.org>
50128
50129         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
50130         declaration for wcwidth.
50131         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
50132
50133 2006-06-28  Bruno Haible  <bruno@clisp.org>
50134
50135         * lib/mkdtemp.c [MINGW]: Include <io.h>.
50136         (mkdir): Define using _mkdir.
50137
50138 2006-06-28  Bruno Haible  <bruno@clisp.org>
50139
50140         * lib/getaddrinfo.h: Fix POSIX URL.
50141         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
50142         _WIN32.
50143         (use_win32_p): Make static.
50144         (getaddrinfo): Reject service name if it is empty or does not consist
50145         solely of decimal digits, or if its value is > 65535.
50146         (getnameinfo): Remove useless casts.
50147
50148 2006-06-27  Simon Josefsson  <jas@extundo.com>
50149
50150         * modules/sys_select: New file, suggested by Bruno Haible, Paul
50151         Eggert and Martin Lambers.
50152
50153 2006-06-27  Simon Josefsson  <jas@extundo.com>
50154
50155         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
50156         Eggert and Martin Lambers.
50157
50158 2006-06-27  Bruno Haible  <bruno@clisp.org>
50159
50160         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
50161         result to 0, not to empty.
50162         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
50163
50164 2006-06-27  Bruno Haible  <bruno@clisp.org>
50165
50166         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
50167
50168 2006-06-26  Simon Josefsson  <jas@extundo.com>
50169
50170         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
50171         present.
50172
50173 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
50174
50175         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
50176         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
50177         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
50178
50179 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
50180
50181         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
50182
50183 2006-06-26  Bruno Haible  <bruno@clisp.org>
50184
50185         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
50186
50187 2006-06-26  Bruno Haible  <bruno@clisp.org>
50188
50189         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
50190
50191 2006-06-26  Bruno Haible  <bruno@clisp.org>
50192
50193         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
50194         SGI C compiler in pre-C99 mode.
50195         Suggested by Mark D. Baushke and Larry Jones.
50196
50197 2006-06-26  Bruno Haible  <bruno@clisp.org>
50198
50199         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
50200         WCHAR_MAX.
50201         Reported by Mark D. Baushke and Larry Jones.
50202
50203 2006-06-26  Bruno Haible  <bruno@clisp.org>
50204
50205         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
50206         in pre-C99 mode.
50207         Suggested by Mark D. Baushke and Larry Jones.
50208
50209 2006-06-23  Simon Josefsson  <jas@extundo.com>
50210             Bruno Haible  <bruno@clisp.org>
50211
50212         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
50213         Emit mostlyclean-local rule.
50214         (func_emit_tests_Makefile_am): Likewise.
50215         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
50216
50217 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
50218
50219         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
50220
50221 2006-06-23  Bruno Haible  <bruno@clisp.org>
50222
50223         * tests/test-stdint.c: Update to match ISO C 99 Technical
50224         Corrigendum 1.
50225
50226 2006-06-23  Bruno Haible  <bruno@clisp.org>
50227
50228         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
50229
50230 2006-06-23  Bruno Haible  <bruno@clisp.org>
50231
50232         * lib/stdint_.h: Treat IRIX like OpenBSD.
50233
50234 2006-06-23  Bruno Haible  <bruno@clisp.org>
50235
50236         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
50237         ISO C 99 Technical Corrigendum 1.
50238
50239 2006-06-22  Simon Josefsson  <jas@extundo.com>
50240
50241         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
50242         MinGW.
50243
50244 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
50245
50246         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
50247         needed.  Some compiler complained about some of them.  Problem reported
50248         by Larry Jones in
50249         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
50250
50251 2006-06-21  Simon Josefsson  <jas@extundo.com>
50252
50253         * tests/test-getaddrinfo.c: New file.
50254
50255         * modules/getaddrinfo-tests: New file.
50256
50257         * MODULES.html.sh: Add inet_pton.
50258
50259         * modules/inet_pton: New file.
50260
50261 2006-06-21  Simon Josefsson  <jas@extundo.com>
50262
50263         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
50264         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
50265         of using the (limited) gnulib implementation on Windows XP.
50266
50267         * m4/inet_pton.m4: New file.
50268
50269 2006-06-21  Simon Josefsson  <jas@extundo.com>
50270
50271         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
50272         variable.
50273
50274         * lib/socket_.h: Don't define WINVER.
50275
50276         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
50277         slightly modified to work in gnulib.
50278
50279 2006-06-21  Simon Josefsson  <jas@extundo.com>
50280
50281         * doc/gnulib.texi (Windows sockets): Add.
50282
50283 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
50284
50285         * lib/read-file.c (fread_file): Start with buffer allocation of
50286         0 bytes rather than 1 byte; this simplifies the code.
50287         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
50288         code to free buffer and save/restore errno.
50289         (internal_read_file): Remove unused local.
50290
50291 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
50292
50293         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
50294         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
50295         Problem reported by Denis Excoffier in
50296         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
50297
50298 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50299
50300         * modules/sys_socket, modules/socklen: Include sys/types since
50301         FreeBSD 4.x's sys/socket.h needs it.
50302
50303 2006-06-19  Simon Josefsson  <jas@extundo.com>
50304
50305         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
50306
50307 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
50308
50309         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
50310
50311 2006-06-19  Bruno Haible  <bruno@clisp.org>
50312
50313         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
50314         and FULL_PATH_INTTYPES_H in angle brackets.
50315         Reported by Mark D. Baushke <mdb@gnu.org>.
50316
50317 2006-06-17  Eric Blake  <ebb9@byu.net>
50318
50319         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
50320         errno.
50321
50322 2006-06-17  Bruno Haible  <bruno@clisp.org>
50323
50324         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
50325         <sys/inttypes.h>.
50326
50327 2006-06-17  Bruno Haible  <bruno@clisp.org>
50328
50329         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
50330         whether errno is declared. Assume <errno.h> declares errno.
50331
50332 2006-06-17  Bruno Haible  <bruno@clisp.org>
50333
50334         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
50335
50336 2006-06-17  Bruno Haible  <bruno@clisp.org>
50337
50338         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
50339         problem on Solaris 2.5.1.
50340
50341 2006-06-16  Eric Blake  <ebb9@byu.net>
50342
50343         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
50344         * lib/unicodeio.c [!defined errno]: Likewise.
50345         * lib/strtol.c [!defined errno]: Likewise.
50346         * lib/strtod.c [!defined errno]: Likewise.
50347
50348 2006-06-15  Eric Blake  <ebb9@byu.net>
50349
50350         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
50351
50352 2006-06-15  Eric Blake  <ebb9@byu.net>
50353
50354         * config/srclist.txt (ssize_t.m4): Lose sync.
50355
50356 2006-06-15  Bruno Haible  <bruno@clisp.org>
50357
50358         * modules/stdint (Files): Include m4/full-header-path.m4,
50359         m4/size_max.m4, m4/wchar_t.m4.
50360         (Makefile.am): Many more substitutions.
50361         * modules/stdint-tests: New file.
50362         * tests/test-stdint.c: New file.
50363
50364 2006-06-15  Bruno Haible  <bruno@clisp.org>
50365
50366         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
50367         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
50368         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
50369         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
50370         gl_CHECK_TYPE_SAME): New macros.
50371
50372 2006-06-15  Bruno Haible  <bruno@clisp.org>
50373
50374         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
50375
50376 2006-06-15  Bruno Haible  <bruno@clisp.org>
50377
50378         * lib/stdint_.h: Rewritten to be fully auto-configured.
50379         Fixes bug on HP-UX/IA64.
50380
50381 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
50382
50383         * lib/getdate.y (__attribute__): Don't define if already defined.
50384         Problem reported by Larry Jones.
50385         * lib/utimens.c (__attribute__): Likewise.
50386
50387 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
50388
50389         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
50390         reported by Andreas Schwab.
50391
50392 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50393             Bruno Haible  <bruno@clisp.org>
50394
50395         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
50396         check for the declaration of strnlen and a run test that exposes the
50397         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
50398         rpl_strndup.
50399
50400 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50401             Bruno Haible  <bruno@clisp.org>
50402
50403         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
50404
50405 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50406
50407         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
50408         compile test, for Tru64 4.0D.
50409
50410 2006-05-28  Karl Berry  <karl@gnu.org>
50411
50412         * config/srclist.txt (printf-args.c): lose sync.
50413
50414 2006-05-26  Martin Lambers  <marlam@marlam.de>
50415
50416         * lib/getpass.c: Updates the test for the native W32 API, and adds
50417         missing includes, thus fixing compilation warnings.
50418
50419 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
50420
50421         * lib/exclude.c (exclude_fnmatch): New function.
50422         (excluded_file_name): Call exclude_fnmatch.
50423         * lib/exclude.h (excluded_file_name): New prototype
50424
50425 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
50426
50427         * lib/tempname.c (small_open, large_open): New macros.
50428         (__open, __open64) [!_LIBC]: Remove.
50429         (__gen_tempname): Use small_open and large_open instead of __open
50430         and __open64.  This fixes a portability bug on HP-UX 11.11i
50431         reported by Simon Wing-Tang in
50432         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
50433
50434 2006-05-24  Bruno Haible  <bruno@clisp.org>
50435
50436         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
50437         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
50438         Reported by Thorsten Maerz <torte@netztorte.de> via
50439         Aaron Stone <aaron@serendipity.cx>.
50440
50441 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
50442
50443         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
50444         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
50445         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
50446         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
50447         not really conditional on the cache.
50448         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
50449
50450 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
50451
50452         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
50453         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
50454         (my_usleep): Don't mishandle maximum value.
50455
50456 2006-05-19  Jim Meyering  <jim@meyering.net>
50457
50458         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
50459
50460 2006-05-17  Bruno Haible  <bruno@clisp.org>
50461
50462         Cygwin portability.
50463         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
50464
50465 2006-05-17  Bruno Haible  <bruno@clisp.org>
50466
50467         * lib/stdint_.h: Fix recognition of Cygwin.
50468
50469 2006-05-15  Bruno Haible  <bruno@clisp.org>
50470
50471         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
50472         on libtool patch by Ralf Wildenhues.
50473
50474 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
50475
50476         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
50477         test for C99 conformance; (bool) 0.5 is an integer constant
50478         expression, but (bool) -0.5 is not.  Problem reported by Fedor
50479         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
50480
50481 2006-05-11  Simon Josefsson  <jas@extundo.com>
50482
50483         * m4/xvasprintf.m4: Fix obvious typo.
50484
50485 2006-05-11  Jim Meyering  <jim@meyering.net>
50486
50487         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
50488         James Lemley.
50489
50490 2006-05-10  Simon Josefsson  <jas@extundo.com>
50491
50492         * lib/md4.c: Typo fix, update copyright years.
50493         (K1, K2): Don't use L because it turn computations into 64-bit on
50494         64-bit platforms.
50495
50496 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
50497
50498         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
50499         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
50500         unwanted sign propagation, e.g., on hosts with 64-bit int.
50501         There still are some problems with reeelly weird theoretical hosts
50502         (e.g., 33-bit int) but it's not worth worrying about now.
50503         * lib/sha1.c (rol): Likewise.
50504         (K1, K2, K3, K4): Remove unnecessary L suffix.
50505
50506 2006-05-10  Bruno Haible  <bruno@clisp.org>
50507
50508         * lib/des.c: Cast to avoid warnings.
50509
50510 2006-05-09  Bruno Haible  <bruno@clisp.org>
50511
50512         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
50513         (Depends-on): Depend also on xsize, stdarg.
50514         (configure.ac): Add gl_XVASPRINTF.
50515
50516 2006-05-09  Bruno Haible  <bruno@clisp.org>
50517
50518         * m4/xvasprintf.m4: New file.
50519
50520 2006-05-09  Bruno Haible  <bruno@clisp.org>
50521
50522         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
50523         (EOVERFLOW): Define fallback value.
50524         (xstrcat): New function.
50525         (xvasprintf): Recognize the special case of a string concatenation.
50526
50527 2006-05-08  Eric Blake  <ebb9@byu.net>
50528
50529         * gnulib-tool (func_version): Base copyright year on CVS date.
50530         (func_emit_copyright_notice): New function.
50531         (func_emit_lib_Makefile_am): Use it.
50532         (func_emit_tests_Makefile_am): Likewise.
50533         (func_import): Likewise.
50534
50535 2006-05-08  Bruno Haible  <bruno@clisp.org>
50536
50537         * modules/stdarg: New file.
50538         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
50539
50540 2006-05-08  Bruno Haible  <bruno@clisp.org>
50541
50542         * m4/stdarg.m4: New file, from GNU gettext.
50543
50544 2006-05-08  Bruno Haible  <bruno@clisp.org>
50545
50546         * config/srclist.txt (build-aux/config.rpath): different from latest
50547         release.
50548
50549 2006-05-08  Bruno Haible  <bruno@clisp.org>
50550
50551         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
50552
50553 2006-05-05  Jim Meyering  <jim@meyering.net>
50554
50555         * m4/warning.m4: New file, derived from bison's file by the same name.
50556
50557 2006-05-03  Bruno Haible  <bruno@clisp.org>
50558
50559         * lib/stdint_.h: Shorter URL.
50560         * lib/inttypes.h: Likewise.
50561
50562 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
50563
50564         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
50565
50566 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
50567
50568         * lib/verify.h: Document the internals better.  Most of this change
50569         was written by Bruno Haible.
50570
50571 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
50572
50573         * doc/verify.texi: New file, partly based on a proposal by
50574         Bruno Haible.
50575
50576 2006-05-02  Bruno Haible  <bruno@clisp.org>
50577
50578         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
50579         test from here...
50580         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
50581
50582 2006-04-29  Bruno Haible  <bruno@clisp.org>
50583
50584         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
50585         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
50586
50587 2006-04-29  Bruno Haible  <bruno@clisp.org>
50588
50589         * gnulib-tool: Make --update option actually work.
50590
50591 2006-04-29  Bruno Haible  <bruno@clisp.org>
50592
50593         * doc/gcd.texi: New file.
50594         * doc/gnulib.texi: Include it.
50595
50596 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
50597
50598         * lib/getdate.y (get_date): When adding relative date, start with the
50599         initial time, not with the result of the first mktime call.
50600
50601 2006-04-25  Bruno Haible  <bruno@clisp.org>
50602
50603         * gnulib-tool (func_import): Output the include directives in three
50604         blocks, sorted separately.
50605         Reported by Ben Pfaff <blp@cs.stanford.edu>.
50606
50607 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
50608
50609         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
50610         to define main with arguments, for C++.  Reported by Eric Blake.
50611         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
50612         Prefer 'int main ()' to 'int main (void)', for C++.
50613         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
50614         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
50615         for 'main', for C99 and C++.
50616
50617 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
50618
50619         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
50620         Don't assume that exit status -1 is valid.
50621         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
50622         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
50623         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
50624         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
50625         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
50626         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
50627         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
50628         functions can be used without declaring them, or that you can
50629         exit with status -1.
50630         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
50631
50632 2006-04-24  Karl Berry  <karl@gnu.org>
50633
50634         * config/srclist.txt (longdouble.m4): sync lost.
50635
50636 2006-04-24  Eric Blake  <ebb9@byu.net>
50637
50638         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
50639
50640 2006-04-24  Bruno Haible  <bruno@clisp.org>
50641
50642         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
50643         poll() implementation in AIX.
50644         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50645
50646 2006-04-24  Bruno Haible  <bruno@clisp.org>
50647
50648         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
50649         assigned exactly once.
50650
50651 2006-04-23  Claudio Fontana  <claudio@gnu.org>
50652             Bruno Haible  <bruno@clisp.org>
50653
50654         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
50655         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
50656         for AM_CPPFLAGS.
50657
50658 2006-04-23  Bruno Haible  <bruno@clisp.org>
50659
50660         * modules/copy-file: Depend on unistd.
50661         * modules/execute: Likewise.
50662         * modules/fatal-signal: Likewise.
50663         * modules/findprog: Likewise.
50664         * modules/mkdtemp : Likewise.
50665         * modules/pipe: Likewise.
50666         * modules/wait-process: Likewise.
50667
50668 2006-04-23  Bruno Haible  <bruno@clisp.org>
50669
50670         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
50671         condition was already detected.
50672         Reported by Ben Pfaff <blp@cs.stanford.edu>.
50673
50674 2006-04-23  Bruno Haible  <bruno@clisp.org>
50675
50676         * lib/copy-file.c: Include <unistd.h> unconditionally.
50677         * lib/execute.c: Likewise.
50678         * lib/fatal-signal.c: Likewise.
50679         * lib/findprog.c: Likewise.
50680         * lib/mkdtemp.c: Likewise.
50681         * lib/pipe.h: Likewise.
50682         * lib/pipe.c: Likewise.
50683         * lib/wait-process.h: Likewise.
50684
50685 2006-04-23  Bruno Haible  <bruno@clisp.org>
50686
50687         * gnulib-tool (func_usage): Fix --import description. Document
50688         --update.
50689         (func_import): Create temporary file in a temporary directory, if
50690         --dry-run is specified. Silence errors from 'grep' when there are no
50691         m4 files in $m4dir.
50692         (func_create_testdir): Silence errors from 'grep' when there are no
50693         m4 files in $m4dir.
50694         Reported by Karl Berry <karl@freefriends.org>.
50695
50696 2006-04-20  Bruno Haible  <bruno@clisp.org>
50697
50698         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
50699         one argument, so that the code will be portable to Autoconf 2.60.
50700         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
50701         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
50702         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
50703
50704 2006-04-19  Derek Price  <derek@ximbiot.com>
50705             Eric Blake  <ebb9@byu.net>
50706
50707         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
50708         rather than "/full/path.h".  Update comment to match.  Shorten &
50709         generalize m4_translit call via AS_TR_CPP.
50710
50711 2006-04-19  Derek Price  <derek@ximbiot.com>
50712             Eric Blake  <ebb9@byu.net>
50713
50714         * lib/inttypes.h: Correct grammar in comment.
50715
50716 2006-04-18  Derek Price  <derek@ximbiot.com>
50717             Paul Eggert  <eggert@cs.ucla.edu>
50718
50719         * modules/inttypes: New file.
50720         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
50721
50722 2006-04-18  Derek Price  <derek@ximbiot.com>
50723             Paul Eggert  <eggert@cs.ucla.edu>
50724
50725         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
50726         New files.
50727
50728 2006-04-18  Derek Price  <derek@ximbiot.com>
50729             Paul Eggert  <eggert@cs.ucla.edu>
50730
50731         * lib/inttypes.h: New file.
50732         * lib/strtoimax.c: Assume <inttypes.h>.
50733
50734 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
50735
50736         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
50737         isn't mounted.  Problem reported by Kir Kolyshkin.
50738
50739 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
50740
50741         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
50742         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
50743         Derek R. Price.
50744         * lib/regex.h (RE_DUP_MAX): Update comment to match current
50745         implementation.
50746
50747 2006-04-12  Eric Blake  <ebb9@byu.net>
50748
50749         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
50750         is now done automatically by the corresponding Autoconf macro.
50751
50752 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
50753
50754         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
50755         time_r.h.
50756
50757 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
50758
50759         Merge regex changes from libc, removing some of our
50760         POSIX-conformance changes that were rejected and redoing them in a
50761         less-intrusive way.
50762
50763         * lib/regcomp.c (re_compile_internal, init_dfa):
50764         Length arg is now size_t, not Idx.  All uses changed.
50765         (peek_token): Forward decl now says internal_function.
50766         (__re_error_msgid, __re_error_msgid_idx):
50767         Now static rather than extern with attribute_hidden.
50768         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
50769         For some reason libc prefers K&R style defns for external functions.
50770         (regerror) [!defined _LIBC]: Likewise.
50771         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
50772         (seek_collating_symbol_entry, lookup_collation_sequence_value):
50773         (build_range_exp, build_collating_symbol):
50774         Use K&R-style defn.
50775         (re_compile_fastmap): Use '\0' to memset, not 0.
50776         (utf8_sb_map): Make the calculations more obvious.
50777         (init_dfa, parse_bracket_exp, build_charclass_op):
50778         Call calloc and cast result, as glibc does.
50779         (init_word_char, fetch_token, peek_token, peek_token_bracket):
50780         (build_range_exp, build_collating_symbol):
50781         Now internal functions.
50782
50783         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
50784
50785         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
50786         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
50787         Don't depend on VMS; depend on __VMS instead, for POSIX
50788         namespace cleanness.
50789         (regoff_t): Define to ssize_t, not long int.
50790
50791         Remove the REG_ macros named below.  Instead, make the old names
50792         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
50793         __USE_GNU_REGEX.
50794         (REG_BACKSLASH_ESCAPE_IN_LISTS):
50795         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
50796         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
50797         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
50798         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
50799         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
50800         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
50801         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
50802         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
50803         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
50804         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
50805         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
50806         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
50807         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
50808         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
50809         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
50810         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
50811         (REG_NREGS):
50812         Remove.  All uses replaced by the old RE_* names.
50813         (RE_BACKSLASH_ESCAPE_IN_LISTS):
50814         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
50815         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
50816         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
50817         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
50818         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
50819         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
50820         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
50821         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
50822         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
50823         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
50824         Don't bother having these macros be independent of each others'
50825         values, since they no longer exist in the POSIX name space.
50826
50827         Rename the following member names back to their old names,
50828         unless !__USE_GNU_REGEX.  All uses changed back.
50829         (buffer): Renamed from re_buffer.
50830         (allocated): Renamed from re_allocated.
50831         (used): Renamed from re_used.
50832         (syntax): Renamed from re_syntax.
50833         (fastmap): Renamed from re_fastmap.
50834         (translate): Renamed from re_translate.
50835         (can_be_null): Renamed from re_can_be_null.
50836         (regs_allocated): Renamed from re_regs_allocated.
50837         (fastmap_accurate): Renamed from re_fastmap_accurate.
50838         (no_sub): Renamed from re_no_sub.
50839         (not_bol): Renamed from re_not_bol.
50840         (not_eol): Renamed from re_not_eol.
50841         (newline_anchor): Renamed from re_newline_anchor.
50842         (num_regs): Renamed from rm_num_regs.
50843         (start): Renamed from rm_start.
50844         (end): Renamed from rm_end.
50845
50846         (free_state): Move up a bit.
50847
50848         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
50849         #define to be empty.
50850         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
50851         when that is what is intended.
50852         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
50853         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
50854         (MAX): New macro.
50855         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
50856         All uses changed back to re_malloc, etc.  It's now the caller's
50857         responsibility to check for overflow; all callers changed.
50858         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
50859         (re_x2nrealloc): Remove.
50860         (free_state): Remove decl.
50861
50862         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
50863         (re_set_registers, re_exec):
50864         Use K&R-style defn.
50865
50866         2006-01-31  Roland McGrath  <roland@redhat.com>
50867
50868         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
50869         Reported by Mike Frysinger <vapier@gentoo.org>.
50870
50871         2006-01-15  Andreas Jaeger  <aj@suse.de>
50872
50873         [BZ #1950]
50874         * lib/regex_internal.c (re_string_reconstruct): Adjust for
50875         build_wcs_upper_buffer change.
50876         (build_wcs_upper_buffer): Change return type.
50877
50878         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
50879
50880         * lib/regex_internal.h: Include <stdint.h> if available.
50881
50882         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
50883
50884         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
50885
50886         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
50887
50888         * lib/regcomp.c: Adjust for changed secondary hash function.
50889
50890         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
50891
50892         * lib/regex.h: Pretty printing.
50893         Clean up namespace a bit.
50894
50895         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
50896
50897         * lib/regexec.c (update_cur_sifted_state, check_arrival,
50898         check_arrival_add_next_nodes): Avoid using uninitialized variable.
50899
50900         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
50901                     Ulrich Drepper  <drepper@redhat.com>
50902
50903         [BZ #1302]
50904         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
50905         changed.
50906         (bitset_word_t): Renamed from bitset_word.  All uses changed.
50907
50908         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
50909
50910         [BZ #281]
50911         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
50912         * lib/regcomp.c: Remove unnecessary uses of
50913         unsigned RE_TRANSLATE_TYPE.
50914         * lib/regex_internal.h: Likewise.
50915         * lib/regex_internal.c: Likewise.
50916         * lib/regexec.c: Likewise.
50917         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
50918
50919         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
50920
50921         * lib/regexec.c (find_recover_state): Remove unnecessary
50922         initialization.
50923         (transit_state_bkref): Make DFA a const pointer.
50924         (get_subexp): Likewise.
50925         (check_arrival): Likewise.
50926         (update_cur_sifted_state): Likewise.
50927         (re_search_internal): Likewise.
50928         (prune_impossible_nodes): Likewise.
50929         (acquire_init_state_context): Likewise.
50930         (proceed_next_node): Likewise.
50931         (set_regs): Likewise.
50932         (free_fail_stack_return): Likewise.
50933         (check_arrival_expand_ecl): Mark DFA parameter as const.
50934         (check_arrival_expand_ecl_sub): Likewise.
50935         (check_subexp_limits): Likewise.
50936         (sub_epsilon_src_nodes):  Likewise.
50937         (add_epsilon_src_nodes):  Likewise.
50938         (merge_state_array): Likewise.
50939         (update_regs): Likewise.
50940         (build_trtable): Likewise.
50941         (sift_states_backward): Mark MCTX parameter as const.
50942         (build_sifted_states): Likewise.
50943         (update_cur_sifted_state): Likewise.
50944         (sift_states_mkref): Likewise.
50945         (check_arrival_expand_ecl): Mark eclosure as const.
50946         (check_dst_limits_calc_pos_1): Likewise.
50947         * lib/regex_internal.h (re_match_context_t): Make dfa a const
50948         pointer.
50949
50950         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
50951
50952         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
50953         (transit_state_sb): Likewise.
50954         (transit_state_mb): Likewise.
50955         (sift_states_iter_mb): Likewise.
50956         (check_arrival_add_next_nodes): Likewise.
50957         (check_node_accept_bytes): Change first parameter to pointer-to-const.
50958         [_LIBC] (re_search_2_stub): Use mempcpy.
50959
50960         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
50961         mbrtowc for very simple UTF-8 case.
50962
50963         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
50964         a pointer-to-const.
50965         (re_acquire_state_context): Likewise.
50966         * lib/regex_internal.h: Adjust prototypes.
50967
50968         * lib/regex.c: Prevent using C++ compilers.
50969
50970         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
50971         (re_acquire_state_context): Likewise.
50972
50973 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
50974
50975         * modules/regex (Depends-on): Add ssize_t.
50976
50977 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
50978
50979         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
50980         translation table.
50981
50982 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
50983
50984         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
50985
50986 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
50987             Bruno Haible  <bruno@clisp.org>
50988
50989         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
50990         <sys/types.h> and <inttypes.h>.
50991
50992 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50993
50994         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
50995         `__error_t_defined', so argp.h will not typedef the former.
50996
50997 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
50998
50999         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
51000         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
51001         glibc names.  Even if glibc is changed to conform to POSIX, the
51002         traditional names will be available anyway, since regex depends on
51003         the extensions module.  Also, fix a longstanding typo in the
51004         implementation of Spencer ERE test #75 from grep 2.3.  Problems
51005         reported by Emanuele Giaquinta.  Also, change sense of cached
51006         variable, so that the message makes sense.
51007
51008 2006-03-24  Simon Josefsson  <jas@extundo.com>
51009
51010         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
51011         including some doc fixes.
51012         (base64_encode_alloc): Fix +1 bug on allocation failures.
51013
51014 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51015
51016         * lib/base64.c (base64_encode): Do not read past end of array with
51017         unsanitized input on systems with CHAR_BIT > 8.
51018
51019 2006-03-24  Eric Blake  <ebb9@byu.net>
51020
51021         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
51022
51023 2006-03-22  Karl Berry  <karl@gnu.org>
51024
51025         * config/srclist.txt (*setenv.[ch]): get from coreutils.
51026         * config/srclistvars.sh (COREUTILS): new var.
51027
51028 2006-03-17  Jim Meyering  <jim@meyering.net>
51029
51030         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
51031         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
51032
51033 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
51034
51035         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
51036         no longer needs it.  Instead, check that regoff_t is as least
51037         as wide as ptrdiff_t.
51038
51039         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
51040         so that our regex.h stays compatible with the installed regex.
51041         This is helpful for installers who configure --without-included-regex.
51042         Problem reported by Emanuele Giaquinta.
51043
51044 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
51045
51046         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
51047         Typedef to long int, not to off_, as POSIX will likely change
51048         in that direction.
51049
51050 2006-03-15  Eric Blake  <ebb9@byu.net>
51051
51052         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
51053
51054 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
51055
51056         * lib/argp-help.c (validate_uparams): Fix typo
51057         * lib/argp-parse.c (argp_default_options): Consistently begin help
51058         messages with a lowercase letter.
51059
51060 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
51061
51062         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
51063         overrun buffers and shouldn't be used (much as gets shouldn't be
51064         used).
51065         * lib/time_r.c (asctime_r, ctime_r): Likewise.
51066
51067 2006-03-08  Simon Josefsson  <jas@extundo.com>
51068
51069         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
51070         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51071
51072 2006-03-08  Simon Josefsson  <jas@extundo.com>
51073
51074         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
51075         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51076
51077 2006-03-08  Simon Josefsson  <jas@extundo.com>
51078
51079         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
51080         signal that configure disabled the device.
51081
51082 2006-03-08  Simon Josefsson  <jas@extundo.com>
51083
51084         * build-aux/maint.mk: Fix refresh-po, to handle no translated
51085         languages.
51086
51087 2006-03-07  Simon Josefsson  <jas@extundo.com>
51088
51089         * modules/getopt (Depends-on): Add unistd.
51090
51091         * modules/unistd: New file.
51092
51093 2006-03-07  Simon Josefsson  <jas@extundo.com>
51094
51095         * modules/gc-random: New file.
51096
51097 2006-03-07  Simon Josefsson  <jas@extundo.com>
51098
51099         * m4/unistd_h.m4: New file.
51100
51101 2006-03-07  Simon Josefsson  <jas@extundo.com>
51102
51103         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
51104         test to be side-effect free by storing the result in the cache
51105         variable gl_cv_lib_readline, and moving the assignment of
51106         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
51107         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51108
51109 2006-03-07  Simon Josefsson  <jas@extundo.com>
51110
51111         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
51112         error on missing devices (the functions will return an error).
51113
51114         * m4/gc.m4: Move random stuff to gc-random.m4
51115
51116 2006-03-07  Simon Josefsson  <jas@extundo.com>
51117
51118         * lib/unistd_.h: New file.
51119
51120 2006-03-07  Simon Josefsson  <jas@extundo.com>
51121
51122         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
51123
51124 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
51125
51126         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
51127         Problem reported by Juan Manuel Guerrero.
51128
51129 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
51130
51131         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
51132         the unistd module.
51133         * lib/getlogin_r.c: Likewise.
51134         * lib/getlogin_r.h: Likewise.
51135         * lib/glob.c: Likewise.
51136         * lib/pagealign_alloc.c: Likewise.
51137         * lib/unistd_.h: Remove; no longer needed.
51138
51139 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
51140
51141         * MODULES.html.sh (Support for systems lacking POSIX:2001):
51142         Add unistd.
51143         * modules/c-stack (Depends-on): Add unistd.
51144         * modules/getlogin_r: Likewise.
51145         * modules/glob: Likewise.
51146         * modules/pagealign_alloc: Likewise.
51147         * modules/unistd (Files): Remove lib/unistd_.h.
51148         (EXTRA_DIST): Remove.
51149         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
51150         need unistd_.h.
51151         (MOSTLYCLEANFILES): Remove unistd.h-t.
51152
51153 2006-03-03  Simon Josefsson  <jas@extundo.com>
51154
51155         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
51156
51157 2006-03-03  Simon Josefsson  <jas@extundo.com>
51158
51159         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
51160         libidn and bison.
51161
51162 2006-03-03  Simon Josefsson  <jas@extundo.com>
51163
51164         * build-aux/maint.mk: Add indent target.
51165
51166 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
51167
51168         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
51169         our replacement poll.h in any case, to avoid a differing
51170         declaration from a system header.  Seen on AIX.
51171
51172 2006-03-01  Simon Josefsson  <jas@extundo.com>
51173
51174         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
51175         <kasal@ucw.cz>.
51176
51177 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
51178
51179         * modules/gettime (Depends-on): Add extensions module.
51180         * modules/nanosleep (Depends-on): Likewise.
51181         * modules/settime (Depends-on): Likewise.
51182
51183 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
51184
51185         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
51186         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
51187         pedantically.
51188         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
51189         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
51190
51191         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
51192         not "==".  Reported by Ralf Wildenhues.
51193
51194 2006-03-01  Karl Berry  <karl@gnu.org>
51195
51196         * doc/Copyright/request-*: new files, synced from gnuorg.
51197
51198 2006-03-01  Karl Berry  <karl@gnu.org>
51199
51200         * config/srclist.txt (Copyright/*): new entries.
51201
51202 2006-02-28  Simon Josefsson  <jas@extundo.com>
51203
51204         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
51205
51206 2006-02-27  Simon Josefsson  <jas@extundo.com>
51207
51208         * lib/base64.h: Indent #define's.  From Jim Meyering
51209         <jim@meyering.net>.
51210
51211 2006-02-27  Jim Meyering  <jim@meyering.net>
51212
51213         Revert the change of 2006-02-24, so these files can continue
51214         to be sync'd from gettext.
51215         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
51216         of `config.h'.
51217
51218 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
51219
51220         * modules/intprops: New file.
51221         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
51222         Add intprops.
51223         * modules/getloadavg (Files): Remove lib/intprops.h.
51224         (Depends-on): Add intprops.
51225         * modules/human: Likewise.
51226         * modules/inttostr: Likewise.
51227         * modules/openat: Likewise.
51228         * modules/sig2str: Likewise.
51229         * modules/userspec: Likewise.
51230         * modules/utimecmp: Likewise.
51231         * modules/xnanosleep: Likewise.
51232         * modules/xstrtol: Likewise.
51233
51234 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
51235
51236         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
51237         * modules/lock-tests (TESTS): Use $(EXEEXT).
51238         * modules/tls-tests: Likewise.
51239         * modules/argp-tests: Likewise.
51240         (check_PROGRAMS): New var, replacing...
51241         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
51242
51243 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51244
51245         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
51246         `config.h'.
51247
51248 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
51249
51250         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
51251
51252 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51253
51254         Sync from coreutils.
51255         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
51256         gl_CHDIR_SAFER.
51257
51258 2006-02-22  Jim Meyering  <jim@meyering.net>
51259
51260         Sync from coreutils.
51261         * m4/chdir-safer.m4: New file.
51262
51263 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
51264
51265         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
51266         AT_FDCWD exceeds INT_MAX.
51267         * lib/openat.h (AT_FDCWD): Likewise.
51268
51269 2006-02-17  Eric Blake  <address@hidden>
51270
51271         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
51272
51273 2006-02-16  Simon Josefsson  <jas@extundo.com>
51274
51275         * modules/getaddrinfo (Depends-on): Add sys_socket.
51276
51277 2006-02-15  Simon Josefsson  <jas@extundo.com>
51278
51279         * build-aux/maint.mk: Add dsyntax-check rule.
51280
51281 2006-02-15  Eric Blake  <ebb9@byu.net>
51282
51283         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
51284         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
51285         'present but cannot compile' warnings on cygwin.
51286         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
51287         use ws2tcpip.h if sys/socket.h works.
51288         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
51289         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
51290
51291 2006-02-14  Simon Josefsson  <jas@extundo.com>
51292
51293         * modules/maintainer-makefile (Files): Rename.
51294
51295         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
51296         and (the local) Makefile.cfg to maint-cfg.mk.
51297
51298         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
51299         to the latter.
51300
51301         * modules/maintainer-makefile: New module.
51302
51303         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
51304         severaly stripped to make it possible to build it up from scratch
51305         with reliable tests.
51306
51307         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
51308         fixes to permit overriding the default actions when configure and
51309         makefile are not available.
51310
51311 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
51312
51313         Sync from coreutils.
51314         * modules/lstat (Depends-on): Don't depend on xalloc.
51315         (License): Change from GPL to LGPL, since this is now simply a
51316         replacement for a libc function.
51317
51318 2006-02-14  Jim Meyering  <jim@meyering.net>
51319
51320         Sync from coreutils.
51321
51322         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
51323         failure on deficient systems, and simplify gnulib lgpl dependencies.
51324         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
51325         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
51326
51327         * lib/xalloc-die.c: Remove unused definition of N_.
51328
51329 2006-02-14  Jim Meyering  <jim@meyering.net>
51330
51331         Sync from coreutils.
51332         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
51333         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
51334         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
51335         double-quote uses of that variable, to accommodate the rare case in
51336         which getmntent is available in none of the libraries checked.  This
51337         happens at least on FreeBSD 5.0.
51338
51339 2006-02-13  Simon Josefsson  <jas@extundo.com>
51340
51341         * gnulib-tool (Usage): Fix --import, from
51342         karl@freefriends.org (Karl Berry).
51343
51344 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
51345
51346         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
51347
51348 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
51349
51350         * lib/argp-namefrob.h: Restore changes accidentally lost during the
51351         "autoupdate" on 2005-12-12.
51352
51353 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
51354
51355         * modules/closeout (Depends-on): Remove atexit.
51356
51357 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
51358
51359         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
51360         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
51361
51362 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
51363
51364         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
51365         __EXTENSIONS__ if this causes compilation to fail.  Problem
51366         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
51367         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
51368
51369 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
51370
51371         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
51372         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
51373         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
51374         All uses changed.
51375
51376 2006-01-26  Simon Josefsson  <jas@extundo.com>
51377
51378         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
51379         prototype is visible on mingw32.
51380
51381         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
51382         for mingw32.
51383
51384         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
51385         mingw32).
51386
51387 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
51388
51389         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
51390         attempt to open for write; this always fails, at least on POSIX
51391         hosts.  This reinstates the 2006-01-09 change, which was
51392         inadvertently removed.
51393
51394 2006-01-26  Bruno Haible  <bruno@clisp.org>
51395
51396         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
51397         Reported by Paul Eggert.
51398
51399 2006-01-26  Bruno Haible  <bruno@clisp.org>
51400             Paul Eggert  <eggert@cs.ucla.edu>
51401
51402         * lib/stdbool_.h (_Bool)
51403         [(! (defined __cplusplus || defined __BEOS__)
51404           && !defined __GNUC__
51405           && !(defined __HP_cc || defined __xlc__
51406                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
51407                || defined __sgi))]:
51408         #define to signed char in these cases too; this simplifies
51409         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
51410         etc., separately) and makes it more conservative.
51411
51412 2006-01-25  Simon Josefsson  <jas@extundo.com>
51413
51414         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
51415         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
51416         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
51417
51418 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
51419
51420         * lib/argp-namefrob.h: Bugfix. Remove stray #
51421
51422 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
51423
51424         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
51425         so that we test the test.
51426         Check for yet another HP-UX cc bug involving *bool |= bool.
51427
51428 2006-01-25  Karl Berry  <karl@gnu.org>
51429
51430         * config/srclist.txt (vasnprintf.c): sync lost.
51431
51432 2006-01-25  Jim Meyering  <jim@meyering.net>
51433
51434         Sync from the stable (b5) branch of coreutils:
51435
51436         * lib/fts.c (fts_children): Don't let close() clobber errno from
51437         failed fchdir().
51438
51439         * lib/fts.c (fts_stat): When following a symlink-to-directory,
51440         don't necessarily interpret stat-fails+lstat-succeeds as indicating
51441         a dangling symlink.  That can also happen at least for ELOOP.
51442         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
51443         FYI, this bug predates the inclusion of fts.c in coreutils.
51444
51445         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
51446         in their own block, so pre-c99 compilers don't object.
51447
51448         Avoid the double-free (first in fts_read, second in fts_close) that
51449         would occur when an `active' directory is made inaccessible (e.g.,
51450         via chmod a-x) during a traversal.
51451         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
51452         before returning.  Reproduce this failure by
51453         mkdir -p a/b; cd a; chmod a-x . b
51454         Reported by Stavros Passas.
51455
51456 2006-01-25  Jim Meyering  <jim@meyering.net>
51457
51458         * lib/fileblocks.c: Remove more useless parentheses.
51459         * lib/readutmp.h: Likewise.
51460
51461 2006-01-25  Bruno Haible  <bruno@clisp.org>
51462
51463         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
51464         warnings.
51465         Reported by Paul Eggert.
51466
51467 2006-01-25  Bruno Haible  <bruno@clisp.org>
51468
51469         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
51470         rid of a trap command. For Solaris sh.
51471         Reported by Mark D. Baushke <mdb@gnu.org>.
51472
51473 2006-01-24  Simon Josefsson  <jas@extundo.com>
51474
51475         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
51476         Bruno.
51477
51478 2006-01-24  Karl Berry  <karl@gnu.org>
51479
51480         * config/srclist.txt (argp-namefrob.h): sync lost.
51481
51482 2006-01-24  Jim Meyering  <jim@meyering.net>
51483
51484         * modules/openat (Files): Add lib/intprops.h.
51485         From Mark D. Baushke.
51486
51487 2006-01-24  Jim Meyering  <jim@meyering.net>
51488
51489         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
51490         Reported by Mark D. Baushke.
51491
51492 2006-01-24  Jim Meyering  <jim@meyering.net>
51493
51494         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
51495
51496 2006-01-24  Bruno Haible  <bruno@clisp.org>
51497
51498         * modules/strnlen (Maintainer): Change from glibc to all.
51499
51500 2006-01-24  Bruno Haible  <bruno@clisp.org>
51501
51502         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
51503         Patch by Paul Eggert.
51504
51505 2006-01-24  Bruno Haible  <bruno@clisp.org>
51506
51507         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
51508         already has it.
51509         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
51510         2005-11-26.
51511
51512         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
51513         'signed char' to avoid problems with the built-in _Bool type.
51514         Reported by Paul Eggert on 2005-11-26.
51515
51516 2006-01-24  Bruno Haible  <bruno@clisp.org>
51517
51518         * gnulib-tool (func_import): Avoid constructing complicated sed
51519         expressions inside backquote.
51520         Report and solution by Mark D. Baushke <mdb@gnu.org>.
51521
51522 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
51523
51524         These changes imported from libc.
51525         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
51526         test and two separate function calls.
51527         * lib/strndup.c (__strndup): Add libc_hidden_def.
51528
51529 2006-01-23  Simon Josefsson  <jas@extundo.com>
51530
51531         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
51532         Remove the test_*_SOURCES variable: automake infers it by default.
51533         * modules/tls-tests: Likewise.
51534
51535 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
51536
51537         Work around porting bugs reported by Dieter in
51538         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
51539         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
51540         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
51541         Include "getopt.h" first, to check interface.
51542         (getenv): Declare only if defined HAVE_DECL_GETENV &&
51543         !HAVE_DECL_GETENV.
51544         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
51545         (__strndup): Revert to K&R-style function dfns, the glibc style.
51546         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
51547         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
51548         Include strnlen.h first, to get prototype properly.
51549         (strnlen): Renamed from __strnlen.
51550         Remove weak alias.
51551
51552 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
51553
51554         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
51555
51556 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
51557
51558         * config/srclist.txt: Adjust to reflect glibc reorganization.
51559         This affects only comments.
51560
51561 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
51562
51563          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
51564          Reported by Bruce Korb <bkorb@gnu.org>.
51565
51566 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
51567
51568         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
51569         to pacify gcc -Wswitch-default.
51570
51571 2006-01-22  Bruno Haible  <bruno@clisp.org>
51572
51573         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
51574         temporary buffer for sprintf, take into account the precision also
51575         for 'd', 'i', 'u', 'o', 'x', 'X'.
51576
51577 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
51578
51579         * modules/argp-tests: New module
51580         * tests/test-argp.c: New file
51581         * tests/test-argp-2.sh: New file
51582
51583 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
51584
51585         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
51586         (__argp_base_name): Removed
51587         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
51588         typo.
51589         (__argp_base_name): Provide macro definition or extern declaration
51590         depending on the configuration
51591
51592 2006-01-20  Simon Josefsson  <jas@extundo.com>
51593
51594         * modules/inet_ntop (Depends-on): Depend on sys_socket.
51595
51596 2006-01-20  Simon Josefsson  <jas@extundo.com>
51597
51598         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
51599
51600 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
51601
51602         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
51603         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
51604         Suggested by Bruno Haible.
51605
51606 2006-01-20  Karl Berry  <karl@gnu.org>
51607
51608         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
51609         until changes propagate, I guess.
51610
51611 2006-01-19  Simon Josefsson  <jas@extundo.com>
51612
51613         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
51614
51615 2006-01-19  Simon Josefsson  <jas@extundo.com>
51616
51617         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
51618
51619 2006-01-19  Simon Josefsson  <jas@extundo.com>
51620
51621         * gnulib-tool: Set check_PROGRAMS.
51622
51623         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
51624         modules/des-tests, modules/gc-arcfour-tests,
51625         modules/gc-arctwo-tests, modules/gc-des-tests,
51626         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
51627         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
51628         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
51629         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
51630         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
51631         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
51632         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
51633         test_*_SOURCES.
51634
51635 2006-01-18  Simon Josefsson  <jas@extundo.com>
51636
51637         * modules/socklen (Depends-on): Depend on sys_socket.
51638
51639 2006-01-18  Simon Josefsson  <jas@extundo.com>
51640
51641         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
51642         modules/des-tests, modules/gc-arcfour-tests,
51643         modules/gc-arctwo-tests, modules/gc-des-tests,
51644         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
51645         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
51646         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
51647         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
51648         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
51649         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
51650         $(EXEEXT) to automake TESTS variable, for mingw32.
51651
51652 2006-01-17  Simon Josefsson  <jas@extundo.com>
51653
51654         * modules/socklen (Include): Need sys/socket.h.
51655
51656 2006-01-17  Bruno Haible  <bruno@clisp.org>
51657
51658         * modules/ssize_t (Include): Add <sys/types.h>.
51659
51660 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
51661
51662         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
51663         it's not portable and it doesn't work with cross-compiles.
51664         Problem reported by Bruno Haible.  Fix missing-$ typo in
51665         'test "gl_cv_ignore_unused_libraries" ...' that prevented
51666         -zignore from being used with Sun's C compiler.
51667
51668 2006-01-12  Simon Josefsson  <jas@extundo.com>
51669
51670         * lib/base64.c: Fix warning, reported by Bruno Haible
51671         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
51672
51673 2006-01-12  Bruno Haible  <bruno@clisp.org>
51674
51675         * modules/ldd: New file.
51676         * build-aux/ldd.sh.in: New file.
51677         * MODULES.html.sh (Support for building libraries and executables): Add
51678         ldd.
51679
51680 2006-01-12  Bruno Haible  <bruno@clisp.org>
51681
51682         * m4/ldd.m4: New file.
51683
51684 2006-01-12  Bruno Haible  <bruno@clisp.org>
51685
51686         * gnulib-tool (func_import, func_create_testdir): Don't go into an
51687         endless loop while replacing $auxdir with build-aux.
51688
51689 2006-01-11  Simon Josefsson  <jas@extundo.com>
51690
51691         * lib/stdint_.h (SIZE_MAX): Add missing (.
51692
51693 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
51694
51695         Sync from coreutils.
51696         * lib/md5.c: Fix commentary typos.
51697         (alignof, UNALIGNED_P): No need for a GCC-specific version.
51698         * lib/md5.h (__attribute__): Remove; unused.
51699         * lib/sha1.c: Fix commentary to match md5 better.
51700         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
51701         so that we don't need to worry about alignment.  All uses changed.
51702         This merges the 2005-10-28 md5 change into sha1.
51703
51704 2006-01-11  Jim Meyering  <jim@meyering.net>
51705
51706         Sync from coreutils.
51707         * lib/md5.c (OP): Fix spacing.
51708
51709 2006-01-11  Bruno Haible  <bruno@clisp.org>
51710
51711         Ensure automatic ordering between gl_LOCK and gl_ARGP.
51712         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
51713         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
51714
51715 2006-01-11  Bruno Haible  <bruno@clisp.org>
51716
51717         Ensure automatic ordering between gl_LOCK and gl_ARGP.
51718         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
51719         the "early" section as well.
51720
51721 2006-01-11  Bruno Haible  <bruno@clisp.org>
51722
51723         Avoid "ar: no archive members specified" error on MacOS X.
51724         * gnulib-tool (func_modules_add_dummy): New function.
51725         (func_import, func_create_testdir): Invoke it.
51726
51727 2006-01-11  Bruno Haible  <bruno@clisp.org>
51728
51729         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
51730         with $auxdir in AC_CONFIG_FILES statements.
51731
51732 2006-01-11  Bruno Haible  <bruno@clisp.org>
51733
51734         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51735         Initialize also noinst_HEADERS to empty.
51736
51737 2006-01-11  Bruno Haible  <bruno@clisp.org>
51738
51739         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
51740         variables.
51741         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
51742         autoreconf.
51743
51744 2006-01-11  Bruno Haible  <bruno@clisp.org>
51745
51746         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
51747         overridable by the user.
51748         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51749
51750 2006-01-10  Simon Josefsson  <jas@extundo.com>
51751
51752         * modules/sys_socket: New file.
51753
51754 2006-01-10  Simon Josefsson  <jas@extundo.com>
51755
51756         * m4/sys_socket_h.m4: New file.
51757
51758 2006-01-10  Simon Josefsson  <jas@extundo.com>
51759
51760         * lib/socket_.h: New file.
51761
51762 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
51763
51764         * modules/readutmp (Maintainer): Add myself.
51765
51766 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
51767
51768         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
51769         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
51770         People who are still concerned with buggy memcmp implementations
51771         can invoke gl_FUNC_MEMCMP themselves.
51772
51773 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
51774
51775         * lib/regex_internal.h (BITSET_WORD_BITS):
51776         Work around a bug in 64-bit PGC (before version 6.1-2), where the
51777         preprocessor mishandles large unsigned values as if they were signed.
51778         Problem reported by Claudio Fontana in
51779         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
51780
51781 2006-01-10  Jim Meyering  <jim@meyering.net>
51782
51783         Avoid the double-free (first in fts_read, second in fts_close) that
51784         would occur when an `active' directory is made inaccessible (e.g.,
51785         via chmod a-x) during a traversal.
51786         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
51787         before returning.  Reproduce this failure by
51788         mkdir -p a/b; cd a; chmod a-x . b
51789         Reported by Stavros Passas.
51790
51791         Sync from coreutils.
51792         * lib/sha1.c: Tweak grammar in a comment.
51793
51794 2006-01-10  Jim Meyering  <jim@meyering.net>
51795
51796         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
51797         Patch by Joerg Sonnenberger.
51798
51799 2006-01-10  Bruno Haible  <bruno@clisp.org>
51800
51801         * modules/readutmp: Depend on module free.
51802         * modules/strtok_r: Depend on module restrict.
51803
51804 2006-01-10  Bruno Haible  <bruno@clisp.org>
51805
51806         * modules/gettext (configure.ac): Add an invocation of
51807         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
51808
51809 2006-01-10  Bruno Haible  <bruno@clisp.org>
51810
51811         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
51812         Reported by Werner Lemberg <wl@gnu.org>.
51813
51814 2006-01-10  Bruno Haible  <bruno@clisp.org>
51815
51816         * lib/localcharset.c: Update from GNU gettext.
51817
51818 2006-01-10  Bruno Haible  <bruno@clisp.org>
51819
51820         * lib/argp.h (__const): Remove macro. Use const instead.
51821         * lib/argp-fmtstream.h (__const): Likewise.
51822         * lib/glob_.h (__const): Remove macro.
51823         * lib/glob-libc.h: Use const instead of __const.
51824
51825 2006-01-10  Bruno Haible  <bruno@clisp.org>
51826
51827         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
51828         variable.
51829         Needed to avoid an automake error regarding the 'gettext' module.
51830
51831 2006-01-09  Simon Josefsson  <jas@extundo.com>
51832
51833         * modules/inet_ntop (Depends-on): Add restrict.
51834
51835 2006-01-09  Simon Josefsson  <jas@extundo.com>
51836
51837         * modules/gc-rijndael-tests (License): Put under LGPL.
51838
51839         * modules/gc-des-tests (License): Likewise.
51840
51841         * modules/gc-arcfour-tests (License): Likewise.
51842
51843         * modules/gc-arctwo-tests (License): Likewise.
51844
51845         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
51846
51847         * modules/gc-hmac-sha1-tests (Files): Likewise.
51848
51849         * modules/gc-hmac-md5-tests (License): Likewise.
51850
51851         * modules/gc-sha1-tests (License): Likewise.
51852
51853         * modules/gc-md5-tests (License): Likewise.
51854
51855         * modules/gc-md4-tests (License): Likewise.
51856
51857         * modules/gc-md2-tests (License): Likewise.
51858
51859         * modules/gc-tests (License): Likewise.
51860
51861         * modules/des-tests (License): Likewise.
51862
51863         * modules/md4-tests (License): Likewise.
51864
51865         * modules/md2-tests (License): Likewise.
51866
51867 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
51868
51869         Sync from coreutils:
51870
51871         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
51872         * modules/lib-ignore: New file.
51873         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
51874         chdir-safer.m4, lchmod.m4.
51875         * modules/openat: Add mkdirat.c, openat-priv.h.
51876
51877 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
51878
51879         Sync from coreutils.
51880         * m4/lib-ignore.m4: New file.
51881         * m4/lchmod.m4: New file.
51882
51883 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
51884
51885         Sync from coreutils.
51886         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
51887         for write access: POSIX says that must fail.
51888         * lib/fts.c (diropen): Likewise.
51889         * lib/save-cwd.c (save_cwd): Likewise.
51890         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
51891         well, for minor improvements on hosts that lack O_DIRECTORY.
51892         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
51893         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
51894         Fall back on chown if open failed with EACCES.
51895
51896         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
51897         Report an error at compile-time if only a 1-second nominal clock
51898         resolution is found.
51899
51900         * lib/lchmod.h: New file.
51901         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
51902         (make_dir_parents): Use lchown rather than chown, and
51903         lchmod rather than chmod.
51904
51905         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
51906         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
51907         "proc" reported by n0dalus.
51908
51909         * lib/mountlist.c: Include <limits.h>.
51910         (dev_from_mount_options)
51911         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
51912         New function.  It no longer assumes "dev=" has the System V meaning
51913         on Linux (since it doesn't).  It also parses "dev=" more carefully.
51914         (read_file_system_list)
51915         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
51916         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
51917         dev= in that case.
51918
51919         * lib/posixtm.h (PDS_PRE_2000): New macro.
51920         * lib/posixtm.c (year): Arg is now syntax_bits rather than
51921         allow_century.  All usages changed.  Reject dates outside the range
51922         1969-1999 if PDS_PRE_2000 is used.
51923
51924 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
51925
51926         Sync from coreutils.
51927         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
51928         (Time of day items): Mention the possibility of leap seconds.
51929         Problem reported by Dr. David Alan Gilbert.
51930
51931 2006-01-09  Jim Meyering  <jim@meyering.net>
51932
51933         Sync from coreutils.
51934
51935         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
51936
51937         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
51938
51939         * lib/modechange.c (mode_compile): Reject an invalid mode string
51940         that starts with an octal digit.  From Andreas Gruenbacher.
51941
51942         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
51943         and dup to open_safer and dup_safer, respectively.
51944         (openat_permissive): Fix typo in comment.
51945
51946         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
51947         "gettext.h"; either no longer needed or are guaranteed by openat.h.
51948         (_): Remove; no longer needed.
51949         (openat): Renamed from rpl_openat; no need for rpl_openat
51950         since openat.h renames openat for us.
51951         Replace most of the body with a call to openat_permissive,
51952         to avoid duplicate code.
51953         Port to (probably hypothetical) environments were mode_t is
51954         wider than int.
51955         (openat_permissive): Require mode arg, so that we can check
51956         types better.  Put it just after flags.  Change cwd failure
51957         indicator from pointer-to-bool to pointer-to-errno-value.
51958         All callers changed.
51959         Invoke openat_save_fail and/or openat_restore_fail if
51960         cwd_errno is null, so that openat can call us.
51961         (openat_permissive, fdopendir, fstatat, unlinkat):
51962         Simplify errno handling to avoid some duplicate code,
51963         as it's OK to set errno on success.
51964         * lib/openat.h: Revamp code so that function macros depend on
51965         __OPENAT_PREFIX only, not also on AT_FDCWD.
51966         (openat_ro): Remove.  Caller changed to use openat_permissive.
51967         (openat_permissive): Now a macro, if not a function.
51968         (openat_restore_fail, openat_save_fail): Now always functions,
51969         since mkdirat needs them even if __OPENAT_PREFIX is defined.
51970
51971         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
51972         and openat.c.
51973         * lib/mkdirat.c: Include openat-priv.h.
51974         Remove definitions of macros defined therein.
51975         * lib/openat.c: Likewise.
51976
51977         * lib/mkdirat.c (mkdirat): New file and function.
51978         * lib/openat.h (mkdirat): Declare.
51979
51980         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
51981
51982         * lib/openat.h (openat_permissive): Declare.
51983         (openat_ro): Define.
51984
51985         * lib/openat.c (EXPECTED_ERRNO): New macro.
51986         (openat_permissive): New function -- used in remove.c rewrite.
51987         (all functions): Set errno just before returning, only if there
51988         was an actual failure.
51989         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
51990
51991         Emulate openat-family functions using Linux's procfs, if possible.
51992         Idea and some code based on Ulrich Drepper's glibc changes.
51993
51994         * lib/openat.c: (BUILD_PROC_NAME): New macro.
51995         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
51996         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
51997         before falling back on save_cwd and restore_cwd.
51998         (fdopendir, fstatat, unlinkat): Likewise.
51999
52000         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
52001         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
52002
52003         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
52004         as second argument to va_arg.  Otherwise, some versions of gcc
52005         warn that `if this code is reached, the program will abort'.
52006
52007 2006-01-09  Jim Meyering  <jim@meyering.net>
52008
52009         Sync from coreutils.
52010         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
52011         Require openat-priv.h.
52012
52013 2006-01-09  Bruno Haible  <bruno@clisp.org>
52014
52015         * modules/strnlen (Include): Use strnlen.h.
52016
52017 2006-01-09  Bruno Haible  <bruno@clisp.org>
52018
52019         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
52020
52021 2006-01-09  Bruno Haible  <bruno@clisp.org>
52022
52023         * lib/sysexit_.h (EX_OK): New macro.
52024         Suggested by Martin Lambers <marlam@marlam.de>.
52025
52026 2006-01-09  Bruno Haible  <bruno@clisp.org>
52027
52028         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
52029         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
52030
52031 2006-01-09  Bruno Haible  <bruno@clisp.org>
52032
52033         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
52034         numbers.
52035
52036 2006-01-09  Bruno Haible  <bruno@clisp.org>
52037
52038         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
52039         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
52040         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
52041         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
52042
52043 2006-01-09  Bruno Haible  <bruno@clisp.org>
52044
52045         * build-aux/javacomp.sh.in: New file, moved from lib/.
52046         * modules/javacomp-script (Files): Update.
52047         (configure.ac): Add AC_CONFIG_FILES invocation.
52048         (EXTRA_DIST): Remove variable.
52049
52050         * build-aux/javaexec.sh.in: New file, moved from lib/.
52051         * modules/javaexec (Files): Update.
52052         (configure.ac): Add AC_CONFIG_FILES invocation.
52053         (EXTRA_DIST): Remove javaexec.sh.in.
52054
52055         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
52056         * modules/csharpcomp-script (Files): Update.
52057         (configure.ac): Add AC_CONFIG_FILES invocation.
52058         (EXTRA_DIST): Remove variable.
52059
52060         * build-aux/csharpexec.sh.in: New file, moved from lib/.
52061         * modules/csharpexec (Files): Update.
52062         (configure.ac): Add AC_CONFIG_FILES invocation.
52063         (EXTRA_DIST): Remove csharpexec.sh.in.
52064
52065 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
52066
52067         Sync from coreutils.
52068
52069         Add POSIX ACL support
52070         * lib/acl.h (copy_acl, set_acl): Add declarations.
52071         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
52072         systems other than Linux.
52073         (chmod_or_fchmod): New function: use fchmod when possible,
52074         and chmod otherwise.
52075         (file_has_acl): Add a POSIX ACL implementation, with a
52076         Linux-specific subcase.
52077         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
52078         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
52079         acls are unsupported.
52080         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
52081         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
52082         are unsupported.
52083
52084 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
52085
52086         Sync from coreutils.
52087         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
52088
52089 2006-01-07  Bruno Haible  <bruno@clisp.org>
52090
52091         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
52092         gl_EARLY.
52093
52094 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
52095
52096         * lib/strftime.c (tzname): Don't declare if it is already #defined.
52097         Problem reported for Mingw by Mark Junker.
52098
52099 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
52100
52101         * README: Gnulib normally doesn't generate a tarball.
52102
52103 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
52104
52105         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
52106         long int, not int, for nanosecond counts, so that people who are
52107         used to POSIX struct timespec won't be surprised.  Reported by Jim
52108         Meyering.
52109
52110 2005-12-28  Bruno Haible  <bruno@clisp.org>
52111
52112         * build-aux/config.rpath: Update from GNU gettext.
52113
52114 2005-12-16  Jim Meyering  <jim@meyering.net>
52115
52116         * modules/fprintftime: New module.
52117         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
52118
52119 2005-12-16  Jim Meyering  <jim@meyering.net>
52120
52121         * m4/fprintftime.m4: New file.
52122
52123 2005-12-16  Jim Meyering  <jim@meyering.net>
52124
52125         * lib/fprintftime.c, lib/fprintftime.h: New files.
52126
52127 2005-12-15  Simon Josefsson  <jas@extundo.com>
52128
52129         * modules/socklen (configure.ac): Fix M4 macro name, to align with
52130         new m4/socklen.m4.
52131
52132 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
52133
52134         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
52135         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
52136
52137 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
52138
52139         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
52140         * lib/argp-help.c (fill_in_uparams): Check if the constructed
52141         struct uparams is valid. Fall back to the default values if it is
52142         not.
52143
52144 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
52145
52146         * modules/argp (Files): Add argp-pin.c
52147         (Depends-on): dirname
52148         (lib_SOURCES): Add argp-pin.c
52149
52150 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
52151
52152         * m4/argp.m4:  Check if program_invocation_name and
52153         program_invocation_short_name are declared and define appropriate
52154         macros if they are not.
52155
52156 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
52157
52158         * lib/argp-help.c (__argp_base_name): New function
52159         (__argp_short_program_name): Rewrite using __argp_base_name
52160         * lib/argp-namefrob.h: Define program_invocation_name and
52161         program_invocation_short_name if requested
52162         (__argp_base_name): Add prototype
52163         * lib/argp-parse.c (argp_def): Use gettext wrappers
52164         (argp_default_parser): Use __argp_base_name
52165         * lib/argp-pin.c: New file. Defines program_invocation_name and
52166         program_invocation_short_name on systems that lack them.
52167
52168 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
52169
52170         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
52171         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
52172         porting problem reported by Georg Schwarz in
52173         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
52174
52175 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
52176
52177         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
52178         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
52179         porting problem reported by Georg Schwarz in
52180         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
52181
52182 2005-12-05  Bruno Haible  <bruno@clisp.org>
52183
52184         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
52185         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
52186         Reported by Mark Junker <mjscod@gmx.de>.
52187
52188 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
52189
52190         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
52191         Use implementation from Albert Chin, with some
52192         comments/corrections by Stepan Kasal and myself.
52193
52194 2005-12-02  Bruno Haible  <bruno@clisp.org>
52195
52196         * gnulib-tool (func_import): Accept GPLed build tool modules when
52197         --lgpl is given.
52198         * modules/csharpcomp-script: New file.
52199         * modules/csharpcomp: Depend on it.
52200         * modules/javacomp-script: New file.
52201         * modules/javacomp: Depend on it.
52202         Suggested by Simon Josefsson.
52203
52204 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
52205
52206         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
52207         statement, to work around an HP-UX 10.20 compiler bug reported by
52208         Peter O'Gorman.
52209
52210 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
52211
52212         * modules/savedir (Depends-on): Add openat.
52213
52214 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
52215
52216         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
52217         (uintmax_t) [defined uintmax_t]: Do not declare.
52218         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
52219         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
52220         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
52221         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
52222         sake of portability to weird hosts that C allows (though we don't
52223         know of any practical examples).
52224
52225         * lib/savedir.h (fdsavedir): New decl.
52226         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
52227         contains most of the former guts of savedir.
52228         (savedir): Use savedirstream.
52229         Include "openat.h".
52230
52231 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
52232
52233         * modules/obstack (Files): Add m4/ulonglong.m4.
52234         Problem reported by Davide Angelocola.
52235
52236 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
52237
52238         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
52239         coreutils no longer futzes with rounding modes.
52240
52241 2005-11-14  Jim Meyering  <jim@meyering.net>
52242
52243         * lib/mkstemp-safer.c: Include <config.h>, required for possible
52244         replacement of mkstemp.
52245
52246 2005-11-10  Simon Josefsson  <jas@extundo.com>
52247
52248         * lib/readline.c: Remove EOL.
52249
52250 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
52251
52252         * modules/gethrxtime (Depends-on): Add gettime.
52253
52254 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
52255
52256         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
52257         or gettimeofday; no longer needed.
52258
52259 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
52260
52261         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
52262         time business.
52263         (gethrxtime) [! (HAVE_NANOUPTIME
52264         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
52265         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
52266         our own approximation.
52267
52268 2005-11-08  Eric Blake  <ebb9@byu.net>
52269
52270         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
52271
52272 2005-11-08  Eric Blake  <ebb9@byu.net>
52273
52274         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
52275
52276 2005-11-04  Bruno Haible  <bruno@clisp.org>
52277
52278         * gnulib-tool: Implement --update mode.
52279
52280 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
52281
52282         Fix porting problem reported by Theodoros V. Kalamatianos.
52283         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
52284         Don't assume that futimes failing means we must fail.
52285
52286 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
52287
52288         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
52289         variables to suggest the intended function of the PATH_MAX check.
52290
52291 2005-10-30  Kean Johnston  <jkj@sco.com>
52292
52293         Trivial changes to support SCO systems.
52294         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
52295         as PATH_MAX.
52296         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
52297         where __ptr is null when no I/O is pending.
52298
52299 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
52300
52301         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
52302         leave errno alone.  Problem reported by Dmitry V. Levin.
52303
52304 2005-10-28  Simon Josefsson  <jas@extundo.com>
52305
52306         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
52307         Test more.
52308
52309         * tests/test-gc-md2.c, tests/test-md2.c: New files.
52310
52311         * modules/md2, modules/md2-tests: New files.
52312
52313 2005-10-28  Simon Josefsson  <jas@extundo.com>
52314
52315         * m4/inet_ntop.m4: More tests.
52316
52317         * m4/gc-md2.m4, md2.m4: New file.
52318
52319 2005-10-28  Simon Josefsson  <jas@extundo.com>
52320
52321         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
52322         "restrict" keywords, as per POSIX.  Protect the function
52323         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
52324         Don't use K&R prototypes.  Check the sprintf return values.
52325         Re-define EAFNOSUPPORT if not present.  Indent.
52326
52327         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
52328         suggested by Bruno Haible <bruno@clisp.org>.
52329
52330         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
52331
52332         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
52333
52334         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
52335         libgcrypt).
52336
52337         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
52338
52339         * lib/md2.h, lib/md2.c: New files.
52340
52341 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
52342
52343         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
52344         errno alone.  Problem reported by Frederic Jolliton.
52345
52346 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
52347
52348         * modules/verify (License): Change from GPL to LGPL.  This is a
52349         tiny module and there are apparently near-equivalents that are
52350         under the BSD license.
52351
52352 2005-10-24  Simon Josefsson  <jas@extundo.com>
52353
52354         * modules/sha1: Relicense to LGPL.
52355
52356 2005-10-24  Simon Josefsson  <jas@extundo.com>
52357
52358         * lib/md4.h: Shrink buffer size, now that we changed the type.
52359
52360 2005-10-23  Simon Josefsson  <jas@extundo.com>
52361
52362         * gnulib-tool (func_import): Fix --tests-base.
52363
52364 2005-10-22  Simon Josefsson  <jas@extundo.com>
52365
52366         * modules/arcfour (Depends-on): Need stdint.
52367
52368 2005-10-22  Simon Josefsson  <jas@extundo.com>
52369
52370         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
52371         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
52372
52373 2005-10-22  Simon Josefsson  <jas@extundo.com>
52374
52375         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
52376         suggested by Bruno Haible <bruno@clisp.org>.
52377
52378 2005-10-22  Simon Josefsson  <jas@extundo.com>
52379
52380         * lib/crc.h: Include stddef.h, for size_t.
52381
52382 2005-10-22  Simon Josefsson  <jas@extundo.com>
52383
52384         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
52385         arcfour_context struct (simplify test vector testing in GNU
52386         Shishi).
52387
52388 2005-10-21  Simon Josefsson  <jas@extundo.com>
52389
52390         * modules/des, modules/des-tests: New files.
52391
52392         * modules/gc-des, modules/gc-des-tests: New files.
52393
52394         * tests/test-des.c, tests/test-gc-des.c: New file.
52395
52396 2005-10-21  Simon Josefsson  <jas@extundo.com>
52397
52398         * modules/arctwo, modules/arctwo-tests: New files.
52399
52400         * tests/test-arctwo.c: New file.
52401
52402         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
52403
52404         * tests/test-gc-arctwo.c: New file.
52405
52406 2005-10-21  Simon Josefsson  <jas@extundo.com>
52407
52408         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
52409         Bruno Haible <bruno@clisp.org>.
52410
52411         * m4/gc-des.m4: New file.
52412
52413 2005-10-21  Simon Josefsson  <jas@extundo.com>
52414
52415         * m4/arctwo.m4: New file.
52416
52417         * m4/gc-arctwo.m4: New file.
52418
52419 2005-10-21  Simon Josefsson  <jas@extundo.com>
52420
52421         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
52422         block.
52423
52424 2005-10-21  Simon Josefsson  <jas@extundo.com>
52425
52426         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
52427         <bruno@clisp.org>.
52428
52429         * lib/hmac-sha1.c (hmac_sha1): Likewise.
52430
52431         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
52432         Bruno Haible <bruno@clisp.org>.
52433
52434         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
52435         <bruno@clisp.org>.
52436
52437 2005-10-21  Simon Josefsson  <jas@extundo.com>
52438
52439         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
52440
52441 2005-10-21  Simon Josefsson  <jas@extundo.com>
52442
52443         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
52444
52445 2005-10-21  Simon Josefsson  <jas@extundo.com>
52446
52447         * lib/des.h, lib/des.c: New files.
52448
52449         * lib/gc-gnulib.c: Support DES.c
52450
52451 2005-10-21  Simon Josefsson  <jas@extundo.com>
52452
52453         * lib/arctwo.h, lib/arctwo.c: New files.
52454
52455         * lib/gc-gnulib.c: Support ARCTWO.
52456
52457 2005-10-21  Simon Josefsson  <jas@extundo.com>
52458
52459         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
52460         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52461
52462 2005-10-21  Simon Josefsson  <jas@extundo.com>
52463
52464         * gnulib-tool (func_import, func_create_testdir): Define automake
52465         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
52466         Makefile.am snippet),
52467         suggested by Bruno Haible <bruno@clisp.org>.
52468
52469         * modules/gc (Makefile.am): Use it.
52470
52471 2005-10-21  Bruno Haible  <bruno@clisp.org>
52472
52473         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
52474         patch.
52475
52476 2005-10-19  Simon Josefsson  <jas@extundo.com>
52477
52478         * tests/test-gc-rijndael.c: New file.
52479
52480         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
52481
52482 2005-10-19  Simon Josefsson  <jas@extundo.com>
52483
52484         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
52485         interface too.
52486
52487 2005-10-19  Simon Josefsson  <jas@extundo.com>
52488
52489         * tests/test-gc-arcfour.c: New file.
52490
52491         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
52492
52493 2005-10-19  Simon Josefsson  <jas@extundo.com>
52494
52495         * modules/gc-md4, modules/gc-md4-tests: New file.
52496
52497         * tests/test-gc-md4.c: New file.
52498
52499 2005-10-19  Simon Josefsson  <jas@extundo.com>
52500
52501         * m4/gc-md4.m4: New file.
52502
52503 2005-10-19  Simon Josefsson  <jas@extundo.com>
52504
52505         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
52506         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
52507         <kasal@ucw.cz>.
52508
52509 2005-10-19  Simon Josefsson  <jas@extundo.com>
52510
52511         * m4/gc-arcfour.m4: New file.
52512
52513         * m4/gc-rijndael.m4: New file.
52514
52515 2005-10-19  Simon Josefsson  <jas@extundo.com>
52516
52517         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
52518
52519 2005-10-19  Simon Josefsson  <jas@extundo.com>
52520
52521         * lib/gc-gnulib.c: Support ARCFOUR.
52522
52523 2005-10-19  Simon Josefsson  <jas@extundo.com>
52524
52525         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
52526         support.
52527
52528         * lib/gc.h: Add ECB enum type.
52529
52530         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
52531
52532 2005-10-18  Simon Josefsson  <jas@extundo.com>
52533
52534         * tests/test-md5.c: New file.
52535
52536         * modules/md5-tests: New file.
52537
52538 2005-10-18  Simon Josefsson  <jas@extundo.com>
52539
52540         * tests/test-md4.c: New file.
52541
52542         * modules/md4, modules/md4-tests: New files.
52543
52544 2005-10-18  Simon Josefsson  <jas@extundo.com>
52545
52546         * m4/md4.m4: New file.
52547
52548 2005-10-18  Simon Josefsson  <jas@extundo.com>
52549
52550         * lib/md4.h, lib/md4.c: New files, based on md5.?.
52551
52552 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
52553
52554         * gnulib-tool (func_create_testdir): Omit the second check whether
52555         BUILT_SOURCES in nonempty.
52556
52557 2005-10-17  Simon Josefsson  <jas@extundo.com>
52558
52559         * tests/test-rijndael.c: New file.
52560
52561 2005-10-17  Simon Josefsson  <jas@extundo.com>
52562
52563         * modules/sha1: Depend on stdint instead of md5.
52564
52565         * modules/md5: Depend on stdint, remove uint32_t.
52566
52567 2005-10-17  Simon Josefsson  <jas@extundo.com>
52568
52569         * modules/gc-sha1-tests: New file.
52570
52571         * tests/test-gc-sha1.c: New file.
52572
52573 2005-10-17  Simon Josefsson  <jas@extundo.com>
52574
52575         * m4/md5.m4: Remove call to uint32_t.m4.
52576
52577 2005-10-17  Simon Josefsson  <jas@extundo.com>
52578
52579         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
52580
52581         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
52582         md5.h.
52583
52584         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
52585
52586         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
52587
52588 2005-10-17  Simon Josefsson  <jas@extundo.com>
52589
52590         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
52591
52592 2005-10-17  Simon Josefsson  <jas@extundo.com>
52593
52594         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
52595
52596 2005-10-17  Simon Josefsson  <jas@extundo.com>
52597
52598         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
52599
52600         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
52601
52602 2005-10-17  Bruno Haible  <bruno@clisp.org>
52603
52604         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
52605         that it can also be used in a test.
52606
52607 2005-10-16  Bruno Haible  <bruno@clisp.org>
52608
52609         * gnulib-tool (func_emit_tests_Makefile_am): Also define
52610         TESTS_ENVIRONMENT, so that individual tests can augment it.
52611
52612         * gnulib-tool (func_create_testdir): Use an intermediate target for
52613         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
52614         macros, like $(ALLOCA_H), which cannot be passed through the command
52615         line.
52616
52617 2005-10-15  Simon Josefsson  <jas@extundo.com>
52618
52619         * modules/rijndael-tests: New file.
52620
52621         * modules/rijndael: New file.
52622
52623 2005-10-15  Simon Josefsson  <jas@extundo.com>
52624
52625         * m4/rijndael.m4: New file.
52626
52627 2005-10-15  Simon Josefsson  <jas@extundo.com>
52628
52629         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
52630
52631         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
52632
52633 2005-10-14  Simon Josefsson  <jas@extundo.com>
52634
52635         * tests/test-arcfour.c: New file.
52636
52637         * modules/arcfour, modules/arcfour-tests: New files.
52638
52639 2005-10-14  Simon Josefsson  <jas@extundo.com>
52640
52641         * m4/arcfour.m4: New file.
52642
52643 2005-10-14  Simon Josefsson  <jas@extundo.com>
52644
52645         * lib/arcfour.h, lib/arcfour.c: New files.
52646
52647 2005-10-14  Roland McGrath  <roland@redhat.com>
52648
52649         Import from libc.  [BZ #1331]
52650         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
52651         macro argument.
52652         Reported by Matej Vela <vela@debian.org>.
52653
52654 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
52655
52656         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
52657         include <wchar.h>; no longer needed.
52658
52659 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
52660
52661         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
52662
52663 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
52664         and  Ulrich Drepper  <drepper@redhat.com>
52665
52666         Import from libc.
52667         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
52668         instead of inline stream orientation test and two separate
52669         function calls.  Pay no attention to USE_IN_LIBIO.
52670
52671 2005-10-13  Simon Josefsson  <jas@extundo.com>
52672
52673         * modules/gc-hmac-md5-tests: New file.
52674
52675         * tests/test-gc-hmac-sha1.c: New file.
52676
52677         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
52678
52679         * modules/gc-hmac-md5-tests: New file.
52680
52681         * tests/test-gc-md5.c: New file.
52682
52683         * modules/gc-md5-tests: New file.
52684
52685 2005-10-13  Simon Josefsson  <jas@extundo.com>
52686
52687         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
52688         Move memory allocation outside of loop.
52689
52690 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
52691
52692         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
52693         intermediate directory is in a read-only file system.  Problem
52694         reported by Eric Blake.
52695
52696 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
52697
52698         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
52699
52700 2005-10-12  Simon Josefsson  <jas@extundo.com>
52701
52702         * tests/test-hmac-sha1.c: New file.
52703
52704         * modules/hmac-sha1-tests: New file.
52705
52706         * modules/hmac-sha1: New file.
52707
52708 2005-10-12  Simon Josefsson  <jas@extundo.com>
52709
52710         * modules/gc-sha1: New file.
52711
52712 2005-10-12  Simon Josefsson  <jas@extundo.com>
52713
52714         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
52715
52716         * tests/test-gc-pbkdf2-sha1.c: New file.
52717
52718 2005-10-12  Simon Josefsson  <jas@extundo.com>
52719
52720         * modules/gc-md5, modules/gc-hmac-md5: New files.
52721
52722         * modules/gc (Files): Remove md5, memxor and hmac files.
52723
52724 2005-10-12  Simon Josefsson  <jas@extundo.com>
52725
52726         * m4/gc-pbkdf2-sha1.m4: New file.
52727
52728         * m4/gc-hmac-sha1.m4: New file.
52729
52730         * m4/gc-sha1: New file.
52731
52732         * m4/hmac-sha1.m4: New file.
52733
52734 2005-10-12  Simon Josefsson  <jas@extundo.com>
52735
52736         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
52737
52738         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
52739
52740 2005-10-12  Simon Josefsson  <jas@extundo.com>
52741
52742         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
52743         suggested by Bruno Haible <bruno@clisp.org>.
52744
52745 2005-10-12  Simon Josefsson  <jas@extundo.com>
52746
52747         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
52748
52749 2005-10-12  Simon Josefsson  <jas@extundo.com>
52750
52751         * lib/gc-pbkdf2-sha1.c: New file.
52752
52753         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
52754
52755 2005-10-12  Simon Josefsson  <jas@extundo.com>
52756
52757         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
52758
52759         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
52760
52761 2005-10-12  Simon Josefsson  <jas@extundo.com>
52762
52763         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
52764         GC_USE_HMAC_MD5, respectively.
52765
52766         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
52767         (gc_md5): Fix typo.
52768
52769         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
52770
52771         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
52772
52773         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
52774
52775 2005-10-12  Bruno Haible  <bruno@clisp.org>
52776
52777         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
52778         Reported by Stepan Kasal <kasal@ucw.cz>.
52779
52780 2005-10-11  Simon Josefsson  <jas@extundo.com>
52781
52782         * tests/test-crc.c: New file.
52783
52784         * modules/crc, modules/crc-tests: New files.
52785
52786 2005-10-11  Simon Josefsson  <jas@extundo.com>
52787
52788         * m4/crc.m4: New file.
52789
52790 2005-10-11  Simon Josefsson  <jas@extundo.com>
52791
52792         * lib/gc.h: Add gc_hash and gc_hash_buffer.
52793
52794         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
52795
52796         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
52797
52798 2005-10-11  Simon Josefsson  <jas@extundo.com>
52799
52800         * lib/crc.h, lib/crc.c: New files.
52801
52802         * lib/gc.h (gc_hash_buffer): Add doc.
52803
52804 2005-10-11  Bruno Haible  <bruno@clisp.org>
52805
52806         * modules/c-strcasestr: New file.
52807         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
52808
52809 2005-10-11  Bruno Haible  <bruno@clisp.org>
52810
52811         * modules/c-strcase: New file.
52812         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
52813
52814 2005-10-11  Bruno Haible  <bruno@clisp.org>
52815
52816         * lib/strcasecmp.c: Include limits.h.
52817         (strcasecmp): Avoid integer overflow on exotic platforms.
52818         * lib/strncasecmp.c: Include limits.h.
52819         (strncasecmp): Avoid integer overflow on exotic platforms.
52820         Reported by Paul Eggert.
52821
52822 2005-10-11  Bruno Haible  <bruno@clisp.org>
52823
52824         * lib/c-strcasestr.h: New file, from GNU gettext.
52825         * lib/c-strcasestr.c: New file, from GNU gettext.
52826
52827 2005-10-11  Bruno Haible  <bruno@clisp.org>
52828
52829         * lib/c-strcase.h: New file, from GNU gettext.
52830         * lib/c-strcasecmp.c: New file, from GNU gettext.
52831         * lib/c-strncasecmp.c: New file, from GNU gettext.
52832
52833 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
52834
52835         * modules/mempcpy (License): GPL -> LGPL.
52836         * modules/strchrnul (License): Likewise.
52837         * modules/sysexits (License): Likewise.
52838
52839 2005-10-08  Simon Josefsson  <jas@extundo.com>
52840
52841         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
52842
52843 2005-10-07  Simon Josefsson  <jas@extundo.com>
52844
52845         * m4/memxor.m4: Remove gl_C_RESTRICT call.
52846
52847 2005-10-06  Simon Josefsson  <jas@extundo.com>
52848
52849         * tests/test-hmac-md5.c: New file.
52850
52851         * modules/hmac-md5-tests: New file.
52852
52853         * modules/hmac-md5: New file.
52854
52855 2005-10-06  Simon Josefsson  <jas@extundo.com>
52856
52857         * m4/hmac-md5.m4: New file.
52858
52859         * m4/memxor.m4: Require gl_C_RESTRICT.
52860
52861 2005-10-06  Simon Josefsson  <jas@extundo.com>
52862
52863         * lib/memxor.c (memxor): Avoid casts and warnings.
52864
52865 2005-10-06  Simon Josefsson  <jas@extundo.com>
52866
52867         * lib/hmac-md5.c: New file.
52868
52869         * lib/hmac.h: New file.
52870
52871 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
52872
52873         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
52874         promotes to int, not unsigned int, to catch the AIX 5.3
52875         compiler bug.
52876
52877 2005-10-05  Simon Josefsson  <jas@extundo.com>
52878
52879         * modules/memxor: New file.
52880
52881         * modules/iconv (Files): Move config.rpath to havelib, it is used
52882         there.
52883
52884         * modules/havelib (Files): Add config.rpath.
52885
52886 2005-10-05  Simon Josefsson  <jas@extundo.com>
52887
52888         * m4/memxor.m4: New file.
52889
52890 2005-10-05  Simon Josefsson  <jas@extundo.com>
52891
52892         * lib/memxor.c (memxor): Fix compiler error.
52893
52894         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
52895         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
52896
52897         * lib/memxor.h, lib/memxor.c: New files.
52898
52899         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
52900         we assume all systems have it, suggested by Jim Meyering
52901         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
52902         any systems lack sys/socket.h; mingw32 is known to lack it, but we
52903         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
52904         same reasons.
52905
52906 2005-10-05  Simon Josefsson  <jas@extundo.com>
52907
52908         * config/srclist.txt: Add glibc bug 1423 for md5.h.
52909
52910 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
52911
52912         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
52913         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
52914         needed, since the source code now assumes these .h files.
52915
52916 2005-10-05  Derek Price  <derek@ximbiot.com>
52917
52918         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
52919
52920 2005-10-05  Bruno Haible  <bruno@clisp.org>
52921
52922         * modules/stdint (License): Change to LGPL.
52923
52924 2005-10-04  Simon Josefsson  <jas@extundo.com>
52925
52926         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
52927         D. Baushke" <mdb@gnu.org>.
52928
52929 2005-10-04  Bruno Haible  <bruno@clisp.org>
52930
52931         * lib/verify.h (verify_true): Provide alternative definition for C++.
52932
52933 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
52934
52935         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
52936         (SSIZE_MAX): New macro, if not already defined.
52937         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
52938         than 2 GiB.
52939
52940 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
52941
52942         Sync from coreutils.
52943         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
52944         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
52945         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
52946         ULLONG_MAX doesn't work with 2.7.2.1.
52947
52948 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
52949
52950         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
52951         From Ben Pfaff.
52952
52953         * modules/exclude (Depends-on): Depend on verify.
52954         * modules/strtoimax (Depends-on): Likewise.
52955         * modules/utimecmp (Depends-on): Likewise.
52956
52957 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
52958
52959         * lib/exclude.c: Include verify.h.
52960         (verify): Remove.  All callers changed to use verify.h's version.
52961         * lib/strtoimax.c: Likewise.
52962         * lib/utimecmp.c: Likewis.e
52963
52964         Sync from coreutils.
52965         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
52966         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
52967         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
52968         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
52969         bother returning ENOSYS if settimeofday or stime fails; just let
52970         them return whatever errno they want to return.
52971         * lib/utimens.c: Include unistd.h, for dup2.
52972         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
52973         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
52974
52975 2005-10-02  Jim Meyering  <jim@meyering.net>
52976
52977         Sync from coreutils.
52978         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
52979         from glibc-2.2.5 that fails for read-only files.
52980
52981 2005-10-02  Jim Meyering  <jim@meyering.net>
52982
52983         Sync from coreutils.
52984         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
52985         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
52986         `#if HAVE_CONFIG_H'.
52987         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
52988         Remove AT_FDCWD test.
52989         Do not consume the fd unless successful.
52990         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
52991         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
52992         block, so that we don't even try to compile it if settimeofday is
52993         available.  This works around a compilation failure on OSF1 V5.1,
52994         due to stime requiring a `long int*' while tv_sec is `int'.
52995
52996 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
52997
52998         Sync from coreutils.
52999         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
53000         against `yes', rather than just testing for nonempty.
53001
53002 2005-10-01  Simon Josefsson  <jas@extundo.com>
53003
53004         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
53005         and Darwin.
53006
53007         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
53008         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
53009         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
53010         freeaddrinfo and gai_strerror are declared by the POSIX headers.
53011         Check if struct addrinfo is declared.
53012
53013 2005-10-01  Simon Josefsson  <jas@extundo.com>
53014
53015         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
53016         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
53017         AI_* and EAI_* definitions.  Protect function declarations.
53018
53019 2005-10-01  Jim Meyering  <jim@meyering.net>
53020
53021         Sync from coreutils.
53022
53023         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
53024         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
53025         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
53026         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
53027         in the inet and nsl libraries.  Required on Solaris 5.7.
53028
53029 2005-10-01  Jim Meyering  <jim@meyering.net>
53030
53031         Sync from coreutils.
53032         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
53033         in the inet and nsl libraries.  Required on Solaris 5.7.
53034
53035 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
53036
53037         * lib/getdelim.c (getdelim): Remove unused variables.
53038
53039 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
53040
53041         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
53042         so that the code works even with ancient cpp.  Portability problem
53043         with GCC 2.7.2.1 reported by Thomas M.Ott.
53044
53045 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
53046
53047         * modules/regex (Depends-on): Add strcase.
53048
53049         * modules/gethostname (Licence): Change from GPL to LGPL, since
53050         gethostname.c is a trivial implementation of a standard library
53051         function.
53052         * modules/poll (License): Change from GPL to LGPL, since it's
53053         derived from LGPL code.
53054
53055 2005-09-27  Jim Meyering  <jim@meyering.net>
53056
53057         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
53058         HAVE_CONFIG_H.
53059
53060         * lib/intprops.h (signed_type_or_expr__): Define.
53061         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
53062         for unsigned types.
53063
53064 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
53065
53066         * lib/verify.h (verify_expr): Remove, replacing with:
53067         (verify_true): New macro that returns true instead of void.
53068         (verify_type__): Remove.
53069         (verify): Use verify_true rather than verify_type__.
53070
53071 2005-09-26  Bruno Haible  <bruno@clisp.org>
53072
53073         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
53074         is necessary.
53075         (lib_SOURCES): Remove mbchar.c.
53076         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
53077         (Files): Add m4/mbrtowc.m4.
53078         * modules/mbiter: Likewise.
53079         * modules/mbuiter: Likewise.
53080
53081 2005-09-26  Bruno Haible  <bruno@clisp.org>
53082
53083         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
53084         compile mbchar.c if they are not both present.
53085         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
53086         * m4/mbiter.m4 (gl_MBITER): Likewise.
53087         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
53088         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
53089         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
53090
53091 2005-09-25  Jim Meyering  <jim@meyering.net>
53092
53093         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
53094         also uses socklen_t.
53095
53096 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
53097
53098         * lib/utimens.c (ENOSYS): Define if not already defined.
53099         (futimens): Support having a null PATH if the file descriptor
53100         is nonnegative.
53101
53102         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
53103         Remove.
53104         (__attribute): Define to empty unless GCC 3.1 or later.
53105         This works around a core dump on OpenBSD 3.4, which has GCC
53106         2.95.3, which dumps core when given __attribute__(()).  It also
53107         simplifies other tests, since we really don't want to bother with
53108         worrying about which ancient version of GCC supported what.
53109         Original problem reported by Yoann Vandoorselaere, with part of
53110         the fix suggested by Derek Price.
53111
53112 2005-09-24  Jim Meyering  <jim@meyering.net>
53113
53114         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
53115         so we can once again use a positive bitfield width of 1 -- now we
53116         don't have to explain why we were using a bitfield width of 2.
53117
53118 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
53119
53120         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
53121         and similarly for the other external symbols.  Problem reported
53122         by James Gallager.
53123
53124         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
53125         bug reported by Jim Meyering.
53126
53127         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
53128         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
53129         not needed, since socklen is a prerequisite module.
53130
53131 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
53132
53133         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
53134         Problem reported by Eric Blake.
53135         (getaddrinfo): Initialize se so that it's not garbage.
53136         Redo internal storage allocation so that it doesn't make unportable
53137         assumptions about alignment.
53138         Fix a memory leak.
53139
53140         * lib/utimens.c (futimens): Use futimesat if available.
53141         Prefer it to futimes since it doesn't have the futimes bug.
53142
53143         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
53144         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
53145         Instead, declare a function that returns a pointer to an array,
53146         and use verify_type__ to declare the size of the array.
53147         Problem and germ of a solution reported by Bruno Haible.
53148         (verify_type__): Use 2, not 1, for bitfield size, to avoid
53149         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
53150
53151 2005-09-23  Jim Meyering  <jim@meyering.net>
53152
53153         Sync from coreutils.
53154         Correct build failure (socklen_t not defined) on at least
53155         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
53156         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
53157
53158 2005-09-23  Jim Meyering  <jim@meyering.net>
53159
53160         * modules/getaddrinfo (Depends-on): Add socklen.
53161
53162 2005-09-23  Bruno Haible  <bruno@clisp.org>
53163
53164         * tests/test-verify.c: New file.
53165
53166 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
53167
53168         Sync from coreutils.
53169
53170         * modules/argmatch (Depends-on): Add verify.
53171         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
53172         unistd-safer.
53173         * modules/save-cwd (Depends-on): Likewise.
53174
53175         * modules/openat (Files): Add lib/openat-die.c.
53176         (Depends-on): Remove error, exitfail.
53177         Add dirname.
53178
53179         * modules/verify: New file.
53180         * MODULES.html.sh (Diagnostics <assert.h>): New section,
53181         with "verify" module.
53182
53183 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
53184
53185         Sync from coreutils.
53186
53187         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
53188         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
53189         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
53190         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
53191         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
53192         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
53193         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
53194         Don't bother checking for string.h, stdlib.h, unistd.h.
53195         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
53196         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
53197         module's job.
53198         * m4/jm-macros.m4 (gl_MACROS): Likewise.
53199         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
53200
53201         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
53202         (gl_GETDATE): Use it.
53203
53204         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
53205
53206 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
53207
53208         Sync from coreutils.
53209
53210         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
53211         stat-time.h.
53212         * lib/argmatch.h: Include verify.h
53213         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
53214         (ARGMATCH_ASSERT): Remove; unused.
53215         * lib/canonicalize.c: Assume STDC_HEADERS.
53216         * lib/exclude.c: Include "strcase.h".
53217         * lib/regex_internal.h [!defined _LIBC]: Likewise.
53218         * lib/getusershell.c: Include stdio--.h rather than stdio.h
53219         and stdio-safer.h.
53220         (getusershell): Call fopen, not fopen_safer.
53221         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
53222         Do not include unistd-safer.h.
53223         (save_cwd): Don't call fd_safer; no longer needed
53224         now that we include fcntl--.h.
53225
53226         * lib/getdate.y (relative_time): New type.
53227         (RELATIVE_TIME_0): New constant.
53228         (parser_control): Use relative_time instead of doing it ourselves.
53229         (%union): Add new relative_time rel member.
53230         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
53231         Now typeless.
53232         (relunit, relunit_snumber): Now of type rel.
53233         (zone, rel, relunit, get_date): Adjust to above changes.
53234
53235         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
53236         Do not include unistd-safer.h.
53237         (getloadavg): Don't call fd_safer; no longer needed
53238         now that we include fcntl--.h.
53239
53240         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
53241         (make_dir_parents): Treat ENOSYS like EEXIST.
53242
53243         Improve quality of diagnostics on restore_cwd failure.
53244         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
53245         (make_dir_parents): Last arg is now int * (for errno), not bool *.
53246         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
53247         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
53248         each time through the loop.  Do not diagnose restore_cwd failure;
53249         that is the caller's job (and perhaps the caller does not care).
53250
53251         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
53252         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
53253         If the file already exists but is not a directory, don't bother
53254         to try to make its parents.
53255         Close potential file descriptor leak if we can't chdir("/") (!).
53256         Don't always return true if chdir($PWD) fails; return true only
53257         if the requested action was done successfully (except for the
53258         chdir($PWD)).
53259         Don't log final directory unless we actually made it.
53260         Refactor to avoid duplicate code to fix up permissions.
53261         Don't attempt to fix up parent permissions if chdir($PWD) fails.
53262
53263         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
53264         to make it a bit faster and (I hope) clearer.
53265         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
53266         Fix bug in formats like %2N.
53267
53268         * lib/verify.h: New file.
53269
53270 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
53271
53272         Sync from coreutils.
53273         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
53274
53275 2005-09-22  Jim Meyering  <jim@meyering.net>
53276
53277         Sync from coreutils.
53278
53279         * m4/lstat.m4 (gl_FUNC_LSTAT):
53280         Use AC_LIBSOURCES to require lstat.c and lstat.h.
53281         Remove obsolete comment.
53282         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
53283         * m4/xstrtod.m4: Likewise.
53284
53285         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
53286
53287 2005-09-22  Jim Meyering  <jim@meyering.net>
53288
53289         Sync from coreutils.
53290
53291         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
53292
53293         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
53294         the .tm_year member, since otherwise gcc-4.0 would now warn about
53295         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
53296
53297         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
53298         order to avoid an unsuppressible warning from gcc on 64-bit systems.
53299
53300         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
53301         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
53302         when run in a time zone for which daylight savings time is in effect
53303         for the starting date.
53304
53305         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
53306         stop us from restricting permissions of just-created absolute-named
53307         directories.
53308         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
53309         to restore initial working directory.
53310         * lib/mkdir-p.c (make_dir_parents): New parameter:
53311         different_working_dir, to tell caller if/when we change the working
53312         directory and are unable to return to the initial one.
53313         * lib/mkdir-p.h (make_dir_parents): Update prototype.
53314         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
53315         `return false'.  This fixes a bug introduced on 2004-07-30.
53316
53317         * lib/openat.c (fdopendir): Be sure to close the supplied
53318         file descriptor before returning.  This makes our replacement
53319         implementation a little closer to Solaris's, where fdopendir
53320         ties the file descriptor to the returned DIR* pointer.
53321         * lib/openat.c (unlinkat): New function.
53322         * lib/openat.h (unlinkat): Add prototype.
53323         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
53324         (openat_restore_fail): Rename from openat_restore_die.
53325         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
53326
53327         Provide an alternative to exiting immediately upon save_cwd or
53328         restore_cwd failure.  Now, an application can arrange e.g.,
53329         to perform a longjump in that case.
53330         * lib/openat.c: Include dirname.h.
53331         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
53332         (rpl_openat, fdopendir, fstatat): Call openat_save_die
53333         and openat_restore_die rather than calling error directly.
53334         Don't include "error.h" or "exitfail.h"; they're no longer needed.
53335
53336         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
53337         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
53338         define.
53339
53340         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
53341         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
53342                             int utc, int nanoseconds);
53343         Background:
53344         date should not have to allocate a megabyte of virtual memory to
53345         handle a format argument like +%1048575T.  When implemented with
53346         strftime, it must allocate such a buffer, use strftime to fill it
53347         in, print it, then free it.
53348         With fprintftime, it simply prints everything and exits.
53349         With no need for memory allocation, that's one fewer way to fail.
53350         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
53351         optional field width, not before, so we accept %9:z, not %:9z.
53352         (my_strftime): Be sure to use L_('x') for literals.
53353
53354         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
53355         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
53356         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
53357         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
53358         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
53359         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
53360         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
53361         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
53362         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
53363         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
53364         * lib/xgethostname.c, lib/xreadlink.c:
53365         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
53366
53367         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
53368         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
53369         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
53370         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
53371         and don't include <sys/file.h>).
53372
53373 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
53374
53375         Sync from coreutils.
53376
53377         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
53378         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
53379         [!LDAV_DONE]: Avoid unused variable warning.
53380
53381 2005-09-21  Bruno Haible  <bruno@clisp.org>
53382
53383         * lib/unicodeio.h (unicode_to_mb): New declaration.
53384
53385 2005-09-20  Derek Price  <derek@ximbiot.com>
53386
53387         * lib/getaddrinfo.c: Don't include <netdb.h> included from
53388         getaddrinfo.h.
53389
53390 2005-09-20  Bruno Haible  <bruno@clisp.org>
53391
53392         * gnulib-tool: Remove trailing slashes from the values specified for
53393         --source-base, --m4-base, --tests-base, --aux-dir.
53394         Suggested by Simon Josefsson <jas@extundo.com>.
53395
53396 2005-09-20  Bruno Haible  <bruno@clisp.org>
53397
53398         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
53399         func_modules_to_filelist, func_import, func_create_testdir): Make all
53400         sorting results locale-independent, so that gnulib-cache.m4 doesn't
53401         change when gnulib-tool is invoked in a different locale.
53402
53403 2005-09-19  Simon Josefsson  <jas@extundo.com>
53404
53405         * m4/socklen.m4: Fix typo.
53406
53407 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53408
53409         Use a consistent style for including <config.h>.
53410         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
53411         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
53412         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
53413         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
53414         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
53415         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
53416         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
53417         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
53418         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
53419         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
53420         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
53421         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
53422         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
53423         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
53424         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
53425         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
53426         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
53427         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
53428         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
53429         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
53430         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
53431         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
53432         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
53433         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
53434         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
53435         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
53436         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
53437         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
53438         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
53439         lib/xstrtoumax.c, lib/yesno.c:
53440         Standardize inclusion of config.h.
53441         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
53442         lib/inttostr.h:  Removed inclusion of config.h from header files.
53443         * lib/inttostr.c:  Adjusted in-tree users.
53444         * lib/timespec.h: Remove superfluous warning to include config.h.
53445         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
53446         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
53447         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
53448         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
53449         config.h with HAVE_CONFIG_H.
53450
53451 2005-09-19  Jim Meyering  <jim@meyering.net>
53452
53453         * modules/pathmax (License): Change to LGPL.
53454
53455 2005-09-19  Derek Price  <derek@ximbiot.com>
53456
53457         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
53458
53459 2005-09-19  Bruno Haible  <bruno@clisp.org>
53460
53461         * gnulib-tool (import): Provide default for --tests-base.
53462
53463 2005-09-19  Bruno Haible  <bruno@clisp.org>
53464
53465         * doc/quote.texi: New file, extracted from gnulib.texi.
53466         * doc/ctime.texi: New file, extracted from gnulib.texi.
53467         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
53468         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
53469         * doc/gnulib.texi: Include them.
53470
53471 2005-09-18  Bruno Haible  <bruno@clisp.org>
53472
53473         Portability fix.
53474         * gnulib-tool (func_readlink): New function.
53475         (func_ln_if_changed): Use it.
53476
53477 2005-09-18  Bruno Haible  <bruno@clisp.org>
53478
53479         * gnulib-tool: Support --with-tests also with --import.
53480         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
53481         (func_import): Use variables $testsbase and $inctests. Emit a
53482         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
53483         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
53484         SUBDIRS += $testsdir.
53485         (func_create_testdir): Update.
53486
53487 2005-09-18  Bruno Haible  <bruno@clisp.org>
53488
53489         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
53490         instead of $dry_run.
53491         (func_cp_if_changed, func_mv_if_changed): Remove functions.
53492         (func_ln_if_changed): Don't handle dry-run here.
53493         (func_import): In dry-run mode, detect more precisely which actions
53494         would be performed, and don't use "...ing" verbs.
53495
53496 2005-09-18  Bruno Haible  <bruno@clisp.org>
53497
53498         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
53499         (func_import): Use join on two temporary files instead of three nested
53500         loops, in order to determine which files are new or old.
53501
53502 2005-09-18  Bruno Haible  <bruno@clisp.org>
53503
53504         * gnulib-tool (func_import): Comment out code that spits out the
53505         new files with --dry-run.
53506
53507 2005-09-18  Bruno Haible  <bruno@clisp.org>
53508
53509         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
53510
53511 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
53512
53513         * lib/stat-time.h: New file.
53514         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
53515         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
53516         in a different way.
53517         (timespec_cmp): New function.
53518         * lib/utimecmp.c: Include stat-time.h.
53519         (SYSCALL_RESOLUTION): Depend on whether various struct stat
53520         members exist, not on the obsolescent ST_MTIM_NSEC.
53521         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
53522
53523 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
53524
53525         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
53526
53527 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
53528
53529         * MODULES.html.sh (File system functions): Add stat-time.
53530         * modules/stat-time: New file.
53531         * modules/timespec (Files): Remove m4/st_mtim.m4; this
53532         is now done in a different way, by the stat-time module.
53533         * modules/utimecmp (Depends-on): Add stat-time.
53534
53535 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
53536
53537         * m4/st_mtim.m4: Remove.  Superseded by...
53538         * m4/stat-time.m4: New file.
53539         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
53540         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
53541
53542 2005-09-15  Derek Price  <derek@ximbiot.com>
53543
53544         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
53545
53546 2005-09-15  Derek Price  <derek@ximbiot.com>
53547
53548         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
53549         * lib/regex_internal.c: Ditto, using this...
53550         (__GNUC_PREREQ): ...new macro.
53551         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
53552         using...
53553         (__GNUC_PREREQ): ...this new macro.
53554
53555         * lib/strstr.h: Include string.h. Define strstr as a macro here.
53556
53557 2005-09-15  Derek Price  <derek@ximbiot.com>
53558             Paul Eggert  <eggert@cs.ucla.edu>
53559
53560         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
53561         changes, consolidating in...
53562         * lib/regex_internal.h: ...this file.
53563
53564 2005-09-13  Jim Meyering  <jim@meyering.net>
53565
53566         * lib/canon-host.c: Filter through gnu indent and reword comments
53567         slightly.
53568         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
53569
53570 2005-09-13  Derek Price  <derek@ximbiot.com>
53571
53572         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
53573         failure.
53574         Reported by Jim Meyering  <jim@meyering.net>.
53575
53576 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
53577
53578         * lib/base64.c: Typo.
53579         (base64_encode): Put b64str in initialized data section.
53580
53581 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
53582
53583         Merge glibc and coreutils changes into gnulib, plus a few
53584         extra fixes.
53585         * lib/md5.c: Use #error rather than a string.
53586         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
53587         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
53588         (__attribute__): Define to empty for non recent-GCC.
53589         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
53590         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
53591         Renamed from their non-__ counterparts, with new macros replacing
53592         them if not _LIBC.  Add __THROW attribute.
53593         (rol): Remove.
53594         (struct md5_ctx): Align buffer if using GCC.
53595         * lib/sha1.h (struct sha1_ctx): Likewise.
53596         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
53597         The old name was backwards.
53598         (NOTSWAP): Remove; not used.
53599         (rol): New macro, moved here from md5.h.
53600         (sha1_process_block): Remove a FIXME that doesn't make sense.
53601
53602 2005-09-12  Derek Price  <derek@ximbiot.com>
53603
53604         Return usable errors from canon-host.
53605         * lib/canon-host.h: New file.
53606         * lib/canon-host.c (canon_host): Wrap...
53607         (canon_host_r): ...this new function, which now relies exclusively on
53608         getaddrinfo.
53609         (ch_strerror): New function.
53610         (last_cherror): New global.
53611         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
53612         interface.
53613         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
53614         void *.
53615         (freeaddrinfo): Free ai->ai_canonname when set.
53616
53617 2005-09-12  Derek Price  <derek@ximbiot.com>
53618
53619         Make canon-host require getaddrinfo.
53620         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
53621         AC_LIBSOURCE canon-host.h.  Call...
53622         (gl_PREREQ_CANON_HOST): ...this new function, which requires
53623         gl_GETADDRINFO.
53624         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
53625
53626 2005-09-12  Derek Price  <derek@ximbiot.com>
53627
53628         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
53629         LGPL.
53630         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
53631
53632 2005-09-12  Derek Price  <derek@ximbiot.com>
53633
53634         * lib/gai_strerror.c: Include config.h when available.  Include
53635         getaddrinfo.h before other headers to test interface.
53636         Reported by Larry Jones <lawrence.jones@ugs.com>.
53637
53638 2005-09-12  Derek Price  <derek@ximbiot.com>
53639             Paul Eggert  <eggert@cs.ucla.edu>
53640
53641         * modules/glob (Files): Add glob-libc.h.
53642
53643 2005-09-12  Derek Price  <derek@ximbiot.com>
53644             Paul Eggert  <eggert@cs.ucla.edu>
53645
53646         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
53647         glob_.h, glob-libc.h.
53648         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
53649
53650 2005-09-12  Derek Price  <derek@ximbiot.com>
53651             Paul Eggert  <eggert@cs.ucla.edu>
53652
53653         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
53654         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
53655         protecting things that should be done only in gnulib contexts.
53656         * lib/glob_.h: New file, containing only the glob things needed for
53657         gnulib.
53658         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
53659         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
53660         (glob, globfree, glob_pattern_p): Now defined simply in terms of
53661         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
53662         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
53663         and to respect the namespace rules better.
53664
53665 2005-09-08  Simon Josefsson  <jas@extundo.com>
53666
53667         * modules/socklen: New file.
53668
53669 2005-09-08  Simon Josefsson  <jas@extundo.com>
53670
53671         * m4/socklen.m4: New file.
53672
53673 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
53674
53675         * modules/utimens (Files): Add m4/utimbuf.m4, since
53676         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
53677         Reported by Sergey Poznyakoff.
53678
53679 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
53680
53681         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
53682         definitions, since that's the preferred style in glibc.
53683         Fix a minor spacing issue, and update copyright notice to match
53684         glibc's.
53685
53686 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
53687
53688         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
53689
53690 2005-09-06  Simon Josefsson  <jas@extundo.com>
53691
53692         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
53693         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
53694
53695 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
53696
53697         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
53698         warning.
53699
53700 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
53701
53702         * config/srclist.txt: Add glibc bug 1302.
53703
53704 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
53705
53706         Change bitset word type from unsigned int to unsigned long int,
53707         as this has better performance on typical 64-bit hosts.
53708         Port bitset code to hosts with unusual word sizes.
53709         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
53710         (build_collating_symbol):
53711         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
53712         argument is a bitset.  This is merely a style issue, but it makes
53713         it clearer that an entire array is expected.
53714         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
53715         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
53716         Port to the case where bitset_word is not the same as unsigned int.
53717         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
53718         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
53719         Likewise.
53720         * lib/regexec.c (check_dst_limits_calc_pos_1,
53721         check_subexp_matching_top):
53722         (build_trtable, group_nodes_into_DFAstates):
53723         Likewise.
53724         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
53725         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
53726         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
53727         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
53728         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
53729         * lib/regcomp.c (optimize_subexps, lower_subexp):
53730         Work even if bitset_word has holes in its bitwise representation.
53731         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
53732         * lib/regexec.c (check_dst_limits_calc_pos_1,
53733         check_subexp_matching_top):
53734         Likewise.
53735         * lib/regex_internal.c (re_string_reconstruct):
53736         Don't assume UCHAR_MAX == 255.
53737         * lib/regex_internal.h (bitset_set_all): Likewise.
53738         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
53739         All uses changed.
53740         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
53741         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
53742         All uses changed.
53743         (BITSET_WORD_MAX): New macro.
53744         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
53745         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
53746         (bitset_empty, bitset_copy):
53747         Prefer sizeof (bitset) to multiplying it out ourselves.
53748         (bitset_not_merge): Remove; unused.
53749         (bitset_contain): Return bool, not unsigned int with one bit on.
53750         All callers changed.
53751         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
53752         alignment than re_node_set; do this by defining a new internal
53753         type struct dests_alloc and using it to allocate memory.
53754
53755 2005-09-05  Bruno Haible  <bruno@clisp.org>
53756
53757         * gnulib-tool (func_import): Fix comparison in handling of symbolic
53758         links.
53759
53760 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
53761
53762         * modules/size_max (Makefile.am): Add size_max.h
53763
53764 2005-09-04  Derek Price  <derek@ximbiot.com>
53765
53766         * gnulib-tool (func_import): Fix reversed $symbolic logic.
53767
53768 2005-09-03  Simon Josefsson  <jas@extundo.com>
53769
53770         * gnulib-tool: Fix typo.
53771
53772 2005-09-03  Simon Josefsson  <jas@extundo.com>
53773
53774         * config/srclist.txt: Add glibc bug 1293.
53775
53776 2005-09-03  Derek Price  <derek@ximbiot.com>
53777
53778         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
53779         From Larry Jones <lawrence.jones@ugs.com>.
53780
53781 2005-09-02  Simon Josefsson  <jas@extundo.com>
53782
53783         * modules/socklen: New file.
53784
53785 2005-09-02  Simon Josefsson  <jas@extundo.com>
53786
53787         * modules/havelib: New module.
53788
53789         * modules/gettext, modules/iconv, modules/lock, modules/readline:
53790         Use havelib.
53791
53792 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
53793
53794         Check for arithmetic overflow when calculating sizes, to prevent
53795         some buffer-overflow issues.  These patches are conservative, in the
53796         sense that when I couldn't determine whether an overflow was possible,
53797         I inserted a run-time check.
53798         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
53799         macros.
53800         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
53801         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
53802         (re_xnrealloc, re_x2nrealloc): New inline functions.
53803         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
53804         parse_bracket_exp):
53805         (build_equiv_class, build_charclass): Check for arithmetic overflow
53806         in size expression calculations.
53807         * lib/regex_internal.c (re_string_realloc_buffers):
53808         (build_wcs_upper_buffer, re_node_set_add_intersect):
53809         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
53810         (re_dfa_add_node, register_state): Likewise.
53811         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
53812         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
53813         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
53814         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
53815
53816 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
53817
53818         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
53819         m4/ulonglong.m4.  Problem reported by Martin Lambers.
53820
53821 2005-09-02  Bruno Haible  <bruno@clisp.org>
53822
53823         Support for lib vs. lib64 distinction on biarch platforms.
53824         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
53825         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
53826         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
53827
53828 2005-09-02  Bruno Haible  <bruno@clisp.org>
53829
53830         * gnulib-tool (import): In the other first-use case, provide defaults
53831         as well.
53832
53833 2005-09-02  Bruno Haible  <bruno@clisp.org>
53834
53835         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
53836         patches not yet found in the latest gettext release.
53837
53838 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
53839
53840         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
53841         to avoid a collision with bits/local_lim.h in glibc.
53842         All uses changed.  Problem reported by Dmitry V. Levin in
53843         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
53844
53845         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
53846         bugs in int versus size_t comparisons.
53847         (re_string_context_at): Fix bug where the code assumed that
53848         Idx is signed.
53849
53850         Use bool where appropriate.
53851         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
53852         All callers changed.
53853         (calc_eclosure_iter): Likewise, for ROOT arg.
53854         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
53855         (build_charclass_op): Likewise, for NON_MATCH arg.
53856         * lib/regex_internal.c (re_string_allocate, re_string_construct):
53857         (re_string_construct_common): Likewise, for ICASE arg.
53858         * lib/regexec.c (re_search_2_stub, re_search_stub):
53859         Likewise, for RET_LEN arg.
53860         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
53861         (set_regs): Likewise, for FL_BACKTRACK arg.
53862         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
53863         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
53864         (calc_eclosure_iter, parse_bracket_exp):
53865         Use bool for internal variables that are booleans.
53866         * lib/regexec.c (re_search_internal, check_matching,
53867         proceed_next_node):
53868         (set_regs, build_sifted_states, sift_states_bkref):
53869         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
53870         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
53871         (find_collation_sequence_value):
53872         Likewise.
53873         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
53874         (re_node_set_compare):
53875         Return bool, not int. All callers changed.
53876         * lib/regexec.c (check_halt_node_context, check_dst_limits):
53877         (build_trtable, check_node_accept): Likewise.
53878         * lib/regex_internal.h: Include stdbool.h.
53879
53880         Fix bugs uncovered when converting to bool.
53881         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
53882         failure instead of charging ahead blindly.
53883         * lib/regex_internal.c (register_state): Likewise.
53884         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
53885         for freeing internal storage.
53886         (group_nodes_into_DFA_states): Use unsigned int, not int, for
53887         bitset pieces used as boolean, to avoid undefined behavior
53888         on hosts that do int overflow checking.
53889
53890 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
53891
53892         * config/srclist.txt: Add glibc bugs 1285-1287.
53893
53894 2005-09-01  Jim Meyering  <jim@meyering.net>
53895
53896         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
53897         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
53898         Require gl_STAT_MACROS, too.
53899
53900 2005-09-01  Bruno Haible  <bruno@clisp.org>
53901
53902         * gnulib-tool (import): In the first-use case, provide defaults.
53903
53904 2005-09-01  Bruno Haible  <bruno@clisp.org>
53905
53906         * gnulib-tool (func_import): Remove the .tmp files.
53907
53908 2005-09-01  Bruno Haible  <bruno@clisp.org>
53909
53910         * gnulib-tool (func_import): Fix handling of symbolic links.
53911
53912 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
53913
53914         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
53915         old glibc regex code mishandles strings longer than 2**31 bytes.
53916         This patch fixes this when the regex code is used in gnulib
53917         (i.e., outside glibc).
53918
53919         This patch should not affect the use of the regex code inside
53920         glibc.  No doubt this problem also needs to be handled for glibc
53921         as well, but the result will be an incompatible change to the
53922         glibc ABI, and the old ABI will have to be supported too.  That
53923         can be the the subject for another patch.
53924
53925         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
53926         governing whether the rest of this patch is active.  By default,
53927         the macro is disabled and the patch has no effect.
53928         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
53929         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
53930         (struct re_pattern_buffer, re_search, re_search_2, re_match):
53931         (re_match_2, re_set_registers): Use the new types.
53932         * lib/regex_internal.h (Idx, re_hashval_t): New types.
53933         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
53934         New macros.
53935         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
53936         (re_string_context_at, bin_tree_t, re_dfastate_t):
53937         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
53938         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
53939         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
53940         (re_string_char_size_at, re_string_wchar_at):
53941         (re_string_elem_size_at):
53942         Use the new types and macros to port to 64-bit hosts.
53943         Use unsigned types for internal values, so that the code
53944         mostly works even for arrays larger than SSIZE_MAX.
53945         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
53946         (search_duplicated_node, calc_eclosure_iter, fetch_number):
53947         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
53948         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
53949         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
53950         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
53951         (calc_inveclosure, parse_dup_op, build_range_exp):
53952         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
53953         (fetch_number, create_token_tree, mark_opt_subexp):
53954         Likewise.
53955         * lib/regex_internal.c (re_string_construct_common,
53956         create_ci_newstate):
53957         (create_cd_newstate, re_string_allocate, re_string_construct):
53958         (re_string_realloc_buffers, build_wcs_upper_buffer):
53959         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
53960         (re_string_reconstruct, re_string_peek_byte_case):
53961         (re_string_fetch_byte_case, re_string_context_at):
53962         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
53963         (re_node_set_init_copy, re_node_set_add_intersect):
53964         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
53965         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
53966         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
53967         (re_acquire_state, re_acquire_state_context, register_state):
53968         Likewise.
53969         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
53970         search_cur_bkref_entry):
53971         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
53972         (re_search_internal, re_search_2_stub, re_search_stub)
53973         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
53974         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
53975         (update_cur_sifted_state, check_dst_limits):
53976         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
53977         (check_subexp_limits, sift_states_bkref, merge_state_array):
53978         (check_subexp_matching_top, get_subexp, get_subexp_sub):
53979         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
53980         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
53981         (expand_bkref_cache, check_node_accept_bytes):
53982         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
53983         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
53984         (acquire_init_state_context, check_halt_node_context):
53985         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
53986         (sift_states_backward, clean_state_log_if_needed):
53987         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
53988         (find_recover_state, transit_state_sb, transit_state_mb):
53989         (transit_state_bkref, build_trtable, match_ctx_clean):
53990         Likewise.
53991         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
53992         to work around an assumption that REG_MISSING is negative.
53993
53994         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
53995         (seek_collating_symbol_entry) [defined _LIBC]:
53996         (lookup_collation_sequence_value) [defined _LIBC]:
53997         (build_range_exp, build_collating_symbol) [defined _LIBC]:
53998         Use prototypes rather than old-style function definitions.
53999         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
54000         (transit_state_sb) [0]:
54001         (find_collation_sequence_value) [defined _LIBC]: Likewise.
54002
54003         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
54004         rm_eo.
54005
54006         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
54007         (optimize_subexps, lower_subexp):
54008         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
54009         since the signed shift might overflow.  Use 1u<<31 instead.
54010         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
54011         Likewise.
54012         * lib/regexec.c (check_dst_limits_calc_pos_1,
54013         check_subexp_matching_top): Likewise.
54014
54015         * lib/regcomp.c (optimize_subexps, lower_subexp):
54016         Use CHAR_BIT rather than 8, for clarity.
54017         * lib/regexec.c (check_dst_limits_calc_pos_1):
54018         (check_subexp_matching_top): Likewise.
54019         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
54020         have to worry about portability issues when shifting it left.
54021         Remove no-longer-needed test for table_size > 0.
54022         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
54023         in a word, as the resulting behavior is undefined.
54024         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
54025         in one case, a <= should have been an <, and in another case the
54026         whole test was missing.
54027         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
54028         the standard name CHAR_BIT.
54029         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
54030         this is not true on one's complement and signed-magnitude hosts.
54031
54032         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
54033         next_last_offset.
54034         (struct re_dfa_t): Remove unused member states_alloc.
54035         * lib/regcomp.c (init_dfa): Don't initialize unused members.
54036
54037 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
54038
54039         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
54040         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
54041         and large-file glibc and in 32-bit large-file Solaris.
54042
54043 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
54044
54045         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
54046         lengths fit in regoff_t; this isn't true if regoff_t is the same
54047         width as size_t.
54048         * lib/regex.c (re_search_internal): 5th arg is LAST_START
54049         (= START + RANGE) instead of RANGE.  This avoids overflow
54050         problems when regoff_t is the same width as size_t.
54051         All callers changed.
54052         (re_search_2_stub): Check for overflow when adding the
54053         sizes of the two strings.
54054         (re_search_stub): Check for overflow when adding START
54055         to RANGE; if it occurs, substitute the extreme value.
54056
54057 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
54058
54059         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
54060
54061 2005-08-31  Jim Meyering  <jim@meyering.net>
54062
54063         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
54064         a pointer-to-const.
54065         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
54066         (register_state): Likewise.
54067         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
54068         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
54069         (group_nodes_into_DFAstates): Likewise.
54070
54071 2005-08-31  Jim Meyering  <jim@meyering.net>
54072
54073         * check-module: Add a FIXME comment.
54074
54075 2005-08-31  Eric Blake  <ebb9@byu.net>
54076
54077         * modules/unistd-safer (Files): Add unistd--.h.
54078         * modules/stdio-safer (Files): Add stdio--.h.
54079
54080 2005-08-31  Derek Price  <derek@ximbiot.com>
54081
54082         * lib/getdelim.c (getdelim): Return EOF on EOF.
54083         Reported by Larry Jones <lawrence.jones@ugs.com>.
54084
54085 2005-08-31  Bruno Haible  <bruno@clisp.org>
54086
54087         Avoid unnecessary diffs in the generated lib/Makefile.am.
54088         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
54089         the generated files.
54090         (func_import): Don't set cmd.
54091
54092 2005-08-31  Bruno Haible  <bruno@clisp.org>
54093
54094         * lib/strstr.c: Include <stddef.h>, for NULL.
54095         * lib/strcasestr.c: Likewise.
54096         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
54097
54098 2005-08-31  Bruno Haible  <bruno@clisp.org>
54099
54100         * gnulib-tool: New option --macro-prefix.
54101         (func_import): Use macro_prefix.
54102         (import): Handle option --macro-prefix.
54103
54104 2005-08-31  Bruno Haible  <bruno@clisp.org>
54105
54106         * gnulib-tool (import): Rename most ac_* variables to cached_*.
54107         Also use new variables cached_lgpl, cached_libtool.
54108
54109 2005-08-31  Bruno Haible  <bruno@clisp.org>
54110
54111         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
54112         always instantiating them.
54113
54114 2005-08-31  Bruno Haible  <bruno@clisp.org>
54115
54116         * gnulib-tool (func_import): Read the previous cached settings
54117         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
54118         earlier added by gnulib but are now dropped. Warn when a gnulib file
54119         overwrites a non-gnulib file.
54120
54121 2005-08-31  Bruno Haible  <bruno@clisp.org>
54122
54123         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
54124         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
54125         projects that don't keep autogenerated files in CVS. Put into
54126         actioncmd only the specified modules, not the transitive closure.
54127
54128 2005-08-31  Bruno Haible  <bruno@clisp.org>
54129
54130         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
54131         Create directories that shall be filled.
54132         (import): Don't look for gl_* macros in configure.ac. Recurse across
54133         all directories containing a gnulib-cache.m4 files, if meaningful.
54134
54135 2005-08-31  Bruno Haible  <bruno@clisp.org>
54136
54137         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
54138         (import): Set seen_libtool when we see gl_LIBTOOL.
54139
54140 2005-08-31  Bruno Haible  <bruno@clisp.org>
54141
54142         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
54143         declaration macro definitions from generated gnulib.m4.
54144
54145 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
54146
54147         * lib/iconvme.h: Add prototype for iconv_alloc.
54148
54149 2005-08-29  Simon Josefsson  <jas@extundo.com>
54150
54151         * lib/iconvme.c: Fix errno.
54152
54153 2005-08-29  Bruno Haible  <bruno@clisp.org>
54154
54155         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
54156         that it works when the directory contains spaces.
54157
54158 2005-08-29  Bruno Haible  <bruno@clisp.org>
54159
54160         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
54161
54162 2005-08-29  Bruno Haible  <bruno@clisp.org>
54163
54164         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
54165         Emit more advice.
54166
54167 2005-08-29  Bruno Haible  <bruno@clisp.org>
54168         and Stepan Kasal  <kasal@ucw.cz>
54169
54170         * check-module: If more parameters are given, check each of them
54171         separately; add more exceptions, as noted by Jim Meyering.
54172         (check_module): New procedure.
54173         (%exempt_header): Now contains all exceptions.
54174
54175 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
54176
54177         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
54178
54179 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
54180
54181         * lib/iconvme.c: Split iconv_string into iconv_alloc.
54182
54183 2005-08-28  Bruno Haible  <bruno@clisp.org>
54184
54185         * m4/gnulib-tool.m4: New file.
54186
54187 2005-08-27  Jim Meyering  <jim@meyering.net>
54188
54189         * modules/unistd-safer (Files): Add pipe-safer.c.
54190         * modules/fcntl-safer (Files): Add creat-safer.c.
54191
54192 2005-08-27  Jim Meyering  <jim@meyering.net>
54193
54194         * m4/stdlib-safer.m4: New file.  From coreutils.
54195         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
54196         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
54197         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
54198         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
54199         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
54200
54201 2005-08-27  Jim Meyering  <jim@meyering.net>
54202
54203         * lib/fopen-safer.c: Merge minor changes from coreutils.
54204         * lib/dup-safer.c: Likewise.
54205         * lib/fd-safer.c: Likewise.
54206
54207         Merge from coreutils.
54208         * lib/stdio--.h: New file.
54209         * lib/stdlib--.h: New file.
54210         * lib/mkstemp-safer.c: New file.
54211
54212         GNU tar needs these.
54213         * lib/pipe-safer.c: New file.
54214         * lib/creat-safer.c: New file.
54215         * lib/fcntl--.h (creat): Define to creat_safer.
54216         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
54217         * lib/unistd--.h (pipe): Define to pipe_safer.
54218         * lib/unistd-safer.h: Declare pipe_safer.
54219
54220 2005-08-26  Simon Josefsson  <jas@extundo.com>
54221
54222         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
54223         Haible <bruno@clisp.org>.
54224
54225 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
54226
54227         * lib/regex_internal.h: Remove all references to
54228         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
54229         or better.
54230         (bitset_not, bitset_merge, bitset_not_merge):
54231         (bitset_mask, re_string_allocate, re_string_construct):
54232         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
54233         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
54234         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
54235         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
54236         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
54237         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
54238         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
54239         (re_acquire_state_context):
54240         Remove unnecessary forward decls.
54241         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
54242         Put __attribute at function definition,
54243         now that the function decl has been removed.
54244         * lib/regex_internal.c (re_string_peek_byte_case):
54245         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
54246         Likewise.
54247
54248 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
54249
54250         * m4/regex.m4: Add AC_PREREQ(2.50).
54251         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
54252
54253 2005-08-25  Simon Josefsson  <jas@extundo.com>
54254
54255         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
54256         __fsetlocking.
54257
54258 2005-08-25  Simon Josefsson  <jas@extundo.com>
54259
54260         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
54261         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
54262         GLIBC specific code.
54263
54264 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
54265
54266         Make regex safe for g++.  This fixes one real bug (an "err"
54267         that should have been "*err").  g++ problem reported by
54268         Sam Steingold.
54269         * lib/regex_internal.h (re_calloc): New macro, consistent with
54270         re_malloc etc.  All callers of calloc changed to use re_calloc.
54271         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
54272         not int.  All callers changed.
54273         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
54274         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
54275         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
54276         (find_recover_state): Change "err" to "*err"; this fixes what
54277         appears to be a real bug.
54278         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
54279         versus int.
54280
54281 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
54282
54283         * modules/regex (Depends-on): Add malloc, since the code
54284         assumes that !malloc(0) means failure.
54285
54286 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
54287
54288         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
54289
54290         alloca modernization/simplification for regex.
54291         * lib/regex.c: Remove portability cruft for alloca.  This no longer
54292         needs to be at the start of the file, and can be moved into
54293         regex_internal.h and simplified.
54294         * lib/regex_internal.h: Include <alloca.h>.
54295         (__libc_use_alloca) [!defined _LIBC]: New macro.
54296         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
54297         now works outside glibc.
54298
54299 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
54300
54301         * config/srclist.txt: Add glibc bugs 1241, 1245.
54302
54303 2005-08-25  Jim Meyering  <jim@meyering.net>
54304
54305         * lib/open-safer.c: Include <config.h>.
54306         Otherwise, we'd lose LARGEFILE support in any file using
54307         e.g. "fcntl--.h"
54308
54309 2005-08-25  Bruno Haible  <bruno@clisp.org>
54310
54311         * m4/minmax.m4: Require autoconf 2.52.
54312         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
54313         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
54314         alternatives of translit over the alphabet.
54315         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
54316
54317 2005-08-24  Simon Josefsson  <jas@extundo.com>
54318
54319         * tests/test-getpass.c: New file.
54320
54321 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
54322
54323         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
54324         for GNU regex features.
54325
54326 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
54327
54328         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
54329         * lib/regex.h (regerror): Likewise.
54330
54331         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
54332         requires this.  (The code never needed it.)
54333
54334         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
54335         All uses of recently-renamed identifiers changed to use the new,
54336         POSIX-compliant names.  The code will build and run just fine
54337         without these changes, but it's better to eat our own dog food
54338         and use the standard-conforming names.
54339
54340         * lib/regex.h: Fix a multitude of POSIX name space violations.
54341         These changes have an effect only for programs that define
54342         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
54343         do not change anything for programs compiled in the normal way.
54344         Also, there is no effect on the ABI.
54345
54346         (_REGEX_SOURCE): New macro.
54347         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
54348         defined and _GNU_SOURCE is not; this fixes a name space violation.
54349
54350         Rename the following macros to obey POSIX requirements.
54351         The old names are still visible as macros if _REGEX_SOURCE is defined.
54352         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
54353         RE_BACKSLASH_ESCAPE_IN_LISTS.
54354         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
54355         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
54356         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
54357         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
54358         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
54359         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
54360         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
54361         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
54362         (REG_INTERVALS): renamed from RE_INTERVALS.
54363         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
54364         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
54365         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
54366         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
54367         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
54368         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
54369         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
54370         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
54371         RE_UNMATCHED_RIGHT_PAREN_ORD.
54372         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
54373         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
54374         (REG_DEBUG): renamed from RE_DEBUG.
54375         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
54376         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
54377         unusual, since we can't clash with the POSIX REG_ICASE.
54378         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
54379         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
54380         (REG_NO_SUB): renamed from RE_NO_SUB.
54381         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
54382         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
54383         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
54384         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
54385         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
54386         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
54387         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
54388         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
54389         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
54390         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
54391         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
54392         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
54393         RE_SYNTAX_POSIX_MINIMAL_BASIC.
54394         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
54395         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
54396         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
54397         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
54398         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
54399         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
54400         (REG_FIXED): Renamed from REGS_FIXED.
54401         (REG_NREGS): Renamed from RE_NREGS.
54402
54403         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
54404         of other REG_* macros, since POSIX says the user is allowed to
54405         #undef these macros selectively.
54406
54407         (reg_errcode_t): Update comment stating what other tables need
54408         to be consistent.
54409
54410         Rename the following enum values to obey POSIX requirements.
54411         The old names are still visible as macros.
54412         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
54413         is not defined, since GNU is supposed to be a superset of POSIX as
54414         much as possible, and since we want reg_errcode_t to be a signed
54415         type for implementation consistency.
54416         (_REG_NOERROR): Renamed from REG_NOERROR.
54417         (_REG_NOMATCH): Renamed from REG_NOMATCH.
54418         (_REG_BADPAT): Renamed from REG_BADPAT.
54419         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
54420         (_REG_ECTYPE): Renamed from REG_ECTYPE.
54421         (_REG_EESCAPE): Renamed from REG_EESCAPE.
54422         (_REG_ESUBREG): Renamed from REG_ESUBREG.
54423         (_REG_EBRACK): Renamed from REG_EBRACK.
54424         (_REG_EPAREN): Renamed from REG_EPAREN.
54425         (_REG_EBRACE): Renamed from REG_EBRACE.
54426         (_REG_BADBR): Renamed from REG_BADBR.
54427         (_REG_ERANGE): Renamed from REG_ERANGE.
54428         (_REG_ESPACE): Renamed from REG_ESPACE.
54429         (_REG_BADRPT): Renamed from REG_BADRPT.
54430         (_REG_EEND): Renamed from REG_EEND.
54431         (_REG_ESIZE): Renamed from REG_ESIZE.
54432         (_REG_ERPAREN): Renamed from REG_ERPAREN.
54433         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
54434         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
54435         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
54436         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
54437
54438         (_REG_RE_NAME, _REG_RM_NAME): New macros.
54439         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
54440         changed.  But support the old name if the new one is not defined
54441         and if _REGEX_SOURCE.
54442
54443         Change the following member names in struct re_pattern_buffer.
54444         The old names are still supported if !_REGEX_SOURCE.
54445         The new names are always supported, regardless of _REGEX_SOURCE.
54446         (re_buffer): Renamed from buffer.
54447         (re_allocated): Renamed from allocated.
54448         (re_used): Renamed from used.
54449         (re_syntax): Renamed from syntax.
54450         (re_fastmap): Renamed from fastmap.
54451         (re_translate): Renamed from translate.
54452         (re_can_be_null): Renamed from can_be_null.
54453         (re_regs_allocated): Renamed from regs_allocated.
54454         (re_fastmap_accurate): Renamed from fastmap_accurate.
54455         (re_no_sub): Renamed from no_sub.
54456         (re_not_bol): Renamed from not_bol.
54457         (re_not_eol): Renamed from not_eol.
54458         (re_newline_anchor): Renamed from newline_anchor.
54459
54460         Change the following member names in struct re_registers.
54461         The old names are still supported if !_REGEX_SOURCE.
54462         The new names are always supported, regardless of _REGEX_SOURCE.
54463         (rm_num_regs): Renamed from num_regs.
54464         (rm_start): Renamed from start.
54465         (rm_end): Renamed from end.
54466
54467         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
54468         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
54469         Prepend __ to parameter names.
54470
54471         Undo yesterday's changes.
54472
54473 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
54474
54475         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
54476         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
54477         lib/regex.c.
54478
54479 2005-08-24  Jim Meyering  <jim@meyering.net>
54480
54481         Sync from coreutils.
54482         * m4/fcntl-safer.m4: New file.
54483
54484         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
54485         and object files for this module.
54486
54487 2005-08-24  Jim Meyering  <jim@meyering.net>
54488
54489         Sync from coreutils.
54490         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
54491
54492 2005-08-24  Jim Meyering  <jim@meyering.net>
54493
54494         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
54495         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
54496
54497 2005-08-24  Jim Meyering  <jim@meyering.net>
54498
54499         * modules/fcntl-safer: New module.
54500         * modules/fts (Depends-on): Add fcntl-safer.
54501         * MODULES.html.sh (File descriptor based Input/Output):
54502         Add fcntl-safer.
54503
54504 2005-08-24  Bruno Haible  <bruno@clisp.org>
54505
54506         Support for unit test modules.
54507         * modules/README: Mention tests modules.
54508         * modules/TEMPLATE-TESTS: New file.
54509         * gnulib-tool: New options --extract-tests-module, --with-tests and
54510         --tests-base (unused for the moment).
54511         (testsbase, inctests): New variables.
54512         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
54513         (func_verify_module): Exclude TEMPLATE-TESTS.
54514         (func_verify_nontests_module, func_verify_tests_module): New functions.
54515         (func_get_dependencies): Add implicit dependency for tests modules.
54516         (func_get_tests_module): New function.
54517         (func_modules_transitive_closure): When --with-tests was specified,
54518         include the unit tests as well, unless explicitly avoided.
54519         (func_emit_lib_Makefile_am): Ignore the tests modules here.
54520         (func_emit_tests_Makefile_am): New function.
54521         (func_create_testdir): When --with-tests was specified, emit a
54522         tests/ directory.
54523         * MODULES.html.sh (Future developments): Update.
54524
54525 2005-08-24  Bruno Haible  <bruno@clisp.org>
54526
54527         * modules/tls-tests: New file.
54528         * tests/test-tls.c: New file, from GNU gettext.
54529
54530 2005-08-24  Bruno Haible  <bruno@clisp.org>
54531
54532         * modules/lock-tests: New file.
54533         * tests/test-lock.c: New file, from GNU gettext.
54534
54535 2005-08-24  Bruno Haible  <bruno@clisp.org>
54536
54537         * lib/lock.h: Add multiple inclusion guard.
54538         * lib/tls.h: Add multiple inclusion guard.
54539
54540 2005-08-24  Bruno Haible  <bruno@clisp.org>
54541
54542         * gnulib-tool: Add support for the --aux-dir option to
54543         --create-testdir, --create-megatestdir, --test, --megatest.
54544         (func_create_testdir, func_create_megatestdir): Optionally emit a
54545         AC_CONFIG_AUX_DIR directive.
54546         (create-testdir, create-megatestdir, test, megatest): Provide a
54547         default value for $auxdir.
54548
54549 2005-08-24  Bruno Haible  <bruno@clisp.org>
54550
54551         * gnulib-tool (import): Use compound statement instead of subshell
54552         where possible.
54553
54554 2005-08-24  Bruno Haible  <bruno@clisp.org>
54555
54556         * gnulib-tool (import): Change --aux-dir default to "build-aux".
54557
54558 2005-08-24  Bruno Haible  <bruno@clisp.org>
54559
54560         * gnulib-tool (func_version): Update.
54561
54562 2005-08-24  Bruno Haible  <bruno@clisp.org>
54563
54564         * gnulib-tool (func_import, func_create_testdir,
54565         func_create_megatestdir): Quote all autoconf macro arguments.
54566
54567 2005-08-24  Bruno Haible  <bruno@clisp.org>
54568
54569         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
54570         option --force, because --force causes the aclocal.m4 of each
54571         subdirectory to be newer than the corresponding config.h.in.
54572
54573 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
54574
54575         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
54576         All contents moved to gl_REGEX.
54577         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
54578         assume that it does.
54579
54580 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
54581
54582         * lib/regex.h (REG_NOSYS)
54583         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
54584         Define, since POSIX requires it as of 2001.
54585         (_REG_ENOSYS)
54586         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
54587         New private symbol, used to keep the enum signed in all cases.
54588         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
54589         Youngman in
54590         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
54591
54592         * lib/regex_internal.c (re_string_skip_chars, register_state):
54593         (calc_state_hash):
54594         Remove forward decls; no longer needed now that we use prototypes.
54595         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
54596         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
54597         (clean_state_log_if_needed): Likewise.
54598
54599 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
54600
54601         * config/srclist.txt: Add glibc bugs 1231-1233.
54602
54603 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
54604
54605         Fix problems reported by Sam Steingold in
54606         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
54607         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
54608         assumed that reg_errcode_t is a signed type, which is not
54609         necessarily true if _XOPEN_SOURCE is not defined.
54610         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
54611         since some compilers warn about it otherwise.
54612
54613 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
54614
54615         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
54616         (init_word_char, create_initial_state, duplicate_node_closure):
54617         (fetch_token, peek_token_bracket, build_range_exp):
54618         (build_collating_symbol): Remove forward decls; no longer needed
54619         now that we use prototypes.
54620
54621         * lib/regcomp.c:
54622         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
54623         (re_compile_fastmap_iter, regcomp, regerror, regfree):
54624         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
54625         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
54626         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
54627         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
54628         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
54629         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
54630         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
54631         (build_range_exp, build_collating_symbol, parse_bracket_exp):
54632         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
54633         (build_charclass, build_charclass_op, fetch_number, create_tree):
54634         (create_token_tree, mark_opt_subexp, duplicate_tree):
54635         Use prototypes rather than old-style definitions.
54636
54637         * lib/regex_internal.c:
54638         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
54639         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
54640         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
54641         (re_string_reconstruct, re_string_peek_byte_case):
54642         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
54643         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
54644         (re_node_set_init_copy, re_node_set_add_intersect):
54645         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
54646         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
54647         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
54648         (re_acquire_state, re_acquire_state_context, register_state):
54649         (create_ci_newstate, create_cd_newstate, free_state):
54650         Likewise.
54651         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
54652         re_search_2):
54653         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
54654         (re_search_internal, prune_impossible_nodes):
54655         (acquire_init_state_context, check_matching, static):
54656         (check_halt_node_context, check_halt_state_context, proceed_next_node):
54657         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
54658         (update_regs, sift_states_backward, build_sifted_states):
54659         (clean_state_log_if_needed, merge_state_array):
54660         (update_cur_sifted_state, add_epsilon_src_nodes):
54661         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
54662         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
54663         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
54664         (find_recover_state, check_subexp_matching_top, transit_state_mb):
54665         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
54666         (check_arrival, check_arrival_add_next_nodes):
54667         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
54668         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
54669         (check_node_accept_bytes, check_node_accept, extend_buffers):
54670         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
54671         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
54672         (sift_ctx_init):
54673         Likewise.
54674
54675         * lib/regex_internal.h:
54676         (re_string_allocate, re_string_construct, re_string_reconstruct):
54677         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
54678         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
54679         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
54680         (re_string_context_at, re_string_peek_byte_case):
54681         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
54682         is defined, since we now use prototypes always.
54683
54684         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
54685         C89 or better.  All uses removed.
54686
54687 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
54688
54689         * config/srclist.txt: Add glibc bugs 1220-1227.
54690
54691 2005-08-20  Jim Meyering  <jim@meyering.net>
54692
54693         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
54694         of unused local, dfa.
54695
54696 2005-08-20  Bruno Haible  <bruno@clisp.org>
54697
54698         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
54699
54700 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54701
54702         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
54703         (re_node_set_insert_last, re_dfa_add_node):
54704         Rename local variables to avoid GCC shadowing warnings.
54705
54706 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54707
54708         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
54709         [defined lint]: Suppress bogus uninitialized-variable warnings.
54710
54711         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
54712         and let the caller return REG_ESPACE if out of space.  This
54713         removes an uninitialied-variable warning with GCC 4.0.1, and also
54714         avoids taking the address of a local variable.  All callers
54715         changed.
54716
54717 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54718
54719         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
54720         $LIBCSRC/posix/regexec.c.
54721         Add glibc bug 1217 for regcomp.c.
54722
54723 2005-08-19  Jim Meyering  <jim@meyering.net>
54724
54725         * lib/regexec.c (proceed_next_node): Redo local variables to
54726         avoid GCC shadowing warnings.
54727
54728 2005-08-18  Bruno Haible  <bruno@clisp.org>
54729
54730         * lib/strstr.c (strstr): Fix return value in multibyte case.
54731         * lib/strcasestr.c (strcasestr): Likewise.
54732
54733 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
54734
54735         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
54736
54737 2005-08-17  Jim Meyering  <jim@meyering.net>
54738
54739         Make the %s format (seconds since the epoch) work for a negative
54740         number and when used with a zero-padded field width, e.g. %015s.
54741
54742         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
54743         label so that it precedes the code to set `digits'.  Otherwise,
54744         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
54745         print `00-22'.  Now, it prints `-0022', as it should.
54746
54747 2005-08-17  Bruno Haible  <bruno@clisp.org>
54748
54749         * modules/strstr (Files): Add m4/mbrtowc.m4.
54750         (Depends-on): Add mbuiter.
54751
54752 2005-08-17  Bruno Haible  <bruno@clisp.org>
54753
54754         * modules/strcasestr: New file.
54755         * MODULES.html.sh (String handling, based on ANSI C 89): Add
54756         strcasestr.
54757
54758 2005-08-17  Bruno Haible  <bruno@clisp.org>
54759
54760         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
54761
54762 2005-08-17  Bruno Haible  <bruno@clisp.org>
54763
54764         * modules/mbuiter: New file.
54765         * MODULES.html.sh (Extended multibyte and wide character utilities):
54766         Add mbuiter.
54767
54768 2005-08-17  Bruno Haible  <bruno@clisp.org>
54769
54770         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
54771         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
54772
54773 2005-08-17  Bruno Haible  <bruno@clisp.org>
54774
54775         * m4/strcasestr.m4: New file.
54776
54777 2005-08-17  Bruno Haible  <bruno@clisp.org>
54778
54779         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
54780         * lib/strstr.c: Completely rewritten, with multibyte locale support.
54781
54782 2005-08-17  Bruno Haible  <bruno@clisp.org>
54783
54784         * lib/strcasestr.h: New file.
54785         * lib/strcasestr.c: New file.
54786
54787 2005-08-17  Bruno Haible  <bruno@clisp.org>
54788
54789         * lib/strcasecmp.c: Use mbuiter.h.
54790
54791 2005-08-17  Bruno Haible  <bruno@clisp.org>
54792
54793         * lib/mbuiter.h: New file.
54794
54795 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
54796
54797         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
54798         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
54799         and gl_GETOPT are both invoked via different paths (as happens
54800         with GNU tar CVS because it uses both argp and getopt), the former
54801         wins.
54802
54803 2005-08-16  Bruno Haible  <bruno@clisp.org>
54804
54805         * modules/tls: New file.
54806         * MODULES.html.sh (Multithreading): Add tls.
54807
54808 2005-08-16  Bruno Haible  <bruno@clisp.org>
54809
54810         * modules/strnlen1: New file.
54811         * MODULES.html.sh (String handling): Add strnlen1.
54812
54813 2005-08-16  Bruno Haible  <bruno@clisp.org>
54814
54815         * modules/strcase (Files): Add m4/mbrtowc.m4.
54816         (Depends-on): Add strnlen1, mbchar.
54817
54818 2005-08-16  Bruno Haible  <bruno@clisp.org>
54819
54820         * modules/mbiter: New file.
54821         * MODULES.html.sh (Extended multibyte and wide character utilities):
54822         Add mbiter.
54823
54824 2005-08-16  Bruno Haible  <bruno@clisp.org>
54825
54826         * modules/mbfile: New file.
54827         * MODULES.html.sh (Extended multibyte and wide character utilities):
54828         Add mbfile.
54829
54830 2005-08-16  Bruno Haible  <bruno@clisp.org>
54831
54832         * modules/mbchar: New file.
54833         * MODULES.html.sh (Extended multibyte and wide character utilities):
54834         New section.
54835
54836 2005-08-16  Bruno Haible  <bruno@clisp.org>
54837
54838         * m4/tls.m4: New file, from GNU gettext.
54839
54840 2005-08-16  Bruno Haible  <bruno@clisp.org>
54841
54842         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
54843         always.
54844         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
54845
54846 2005-08-16  Bruno Haible  <bruno@clisp.org>
54847
54848         * m4/mbiter.m4: New file.
54849
54850 2005-08-16  Bruno Haible  <bruno@clisp.org>
54851
54852         * m4/mbfile.m4: New file.
54853
54854 2005-08-16  Bruno Haible  <bruno@clisp.org>
54855
54856         * m4/mbchar.m4: New file.
54857
54858 2005-08-16  Bruno Haible  <bruno@clisp.org>
54859
54860         * lib/tls.h: New file, from GNU gettext.
54861         * lib/tls.c: New file, from GNU gettext.
54862
54863 2005-08-16  Bruno Haible  <bruno@clisp.org>
54864
54865         * lib/strnlen1.h: New file.
54866         * lib/strnlen1.c: New file.
54867
54868 2005-08-16  Bruno Haible  <bruno@clisp.org>
54869
54870         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
54871         (mbi_init): Update.
54872         (mbi_avail, mbi_advance): Let the iteration end before the terminating
54873         NUL byte, not after it.
54874
54875 2005-08-16  Bruno Haible  <bruno@clisp.org>
54876
54877         * lib/strcase.h (strcasecmp): Add note in comments.
54878         * lib/strncasecmp.c: Use code from strcasecmp.c.
54879         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
54880         (strcasecmp): Work correctly in multibyte locales.
54881
54882 2005-08-16  Bruno Haible  <bruno@clisp.org>
54883
54884         * lib/mbiter.h: New file.
54885
54886 2005-08-16  Bruno Haible  <bruno@clisp.org>
54887
54888         * lib/mbfile.h: New file.
54889
54890 2005-08-16  Bruno Haible  <bruno@clisp.org>
54891
54892         * lib/mbchar.h: New file.
54893         * lib/mbchar.c: New file.
54894
54895 2005-08-16  Bruno Haible  <bruno@clisp.org>
54896
54897         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
54898         the valid ones. Makes the comparison operations transitive:
54899         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
54900         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
54901
54902 2005-08-15  Simon Josefsson  <jas@extundo.com>
54903
54904         * modules/ssize_t (License): Change to 'unlimited'.
54905
54906         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
54907
54908 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
54909
54910         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
54911         Add comments for each pending glibc patch.
54912
54913 2005-08-15  Bruno Haible  <bruno@clisp.org>
54914
54915         * lib/regex.h (__restrict_arr): Don't define to __restrict if
54916         __cplusplus is defined.
54917
54918 2005-08-14  Jim Meyering  <jim@meyering.net>
54919
54920         Sync from coreutils.
54921
54922         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
54923         Use the hash-table-based cycle-detection code not just when
54924         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
54925         Reported by James Youngman in
54926         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
54927         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
54928         FTS_TIGHT_CYCLE_CHECK.
54929         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
54930         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
54931         once again.
54932         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
54933         * lib/fts.c (fd_safer): Remove decl.
54934         Include fcntl--.h rather than unistd-safer.h
54935         (fts_safe_changedir): Don't call fd_safer; no longer needed
54936         now that we include fcntl--.h.
54937
54938 2005-08-12  Simon Josefsson  <jas@extundo.com>
54939
54940         * modules/getndelim2: Use ssize_t module.
54941         * modules/getnline: Likewise.
54942         * modules/safe-read: Likewise.
54943         * modules/xreadlink: Likewise.
54944
54945         * modules/ssize_t: New file.
54946
54947 2005-08-12  Simon Josefsson  <jas@extundo.com>
54948
54949         * m4/readline.m4: Look for termcap, curses or ncurses if required.
54950
54951 2005-08-12  Simon Josefsson  <jas@extundo.com>
54952
54953         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54954         ssize_t.
54955
54956 2005-08-12  Simon Josefsson  <jas@extundo.com>
54957
54958         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
54959         readline, getdelim and check_version.
54960         (Support for systems lacking ISO C 99: Sizes of integer types):
54961         Add size_max.
54962
54963 2005-08-12  Bruno Haible  <bruno@clisp.org>
54964
54965         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
54966
54967 2005-08-11  Simon Josefsson  <jas@extundo.com>
54968
54969         * modules/readline: New file.
54970
54971         * modules/strnlen (Files): Add strnlen.h.
54972
54973 2005-08-11  Simon Josefsson  <jas@extundo.com>
54974
54975         * m4/readline.m4: New file.
54976
54977 2005-08-11  Simon Josefsson  <jas@extundo.com>
54978
54979         * lib/readline.h, readline.c: New file.
54980
54981 2005-08-11  Simon Josefsson  <jas@extundo.com>
54982
54983         * doc/gnulib.texi (Initial import, Finishing touches): Mention
54984         gl_AVOID.
54985
54986 2005-08-11  Bruno Haible  <bruno@clisp.org>
54987
54988         * lib/strnlen.h (strnlen): Change parameter name to match comment.
54989
54990 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
54991
54992         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
54993
54994 2005-08-10  Simon Josefsson  <jas@extundo.com>
54995
54996         * tests/test-iconvme.c: New file.
54997
54998 2005-08-10  Simon Josefsson  <jas@extundo.com>
54999
55000         * m4/strnlen.m4: New file.
55001
55002         * m4/strndup.m4: Don't check for strnlen declaration, done in
55003         strnlen.m4.
55004
55005 2005-08-10  Simon Josefsson  <jas@extundo.com>
55006
55007         * lib/strndup.c: Use strnlen.h.
55008
55009         * lib/strnlen.h: New file.
55010
55011 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
55012
55013         * README: Typos.
55014
55015 2005-08-02  Simon Josefsson  <jas@extundo.com>
55016
55017         * modules/readline: New file.
55018
55019 2005-08-02  Simon Josefsson  <jas@extundo.com>
55020
55021         * modules/getdelim: New file.
55022
55023         * modules/getline: Rewrite, don't use getndelim2.
55024
55025 2005-08-02  Simon Josefsson  <jas@extundo.com>
55026
55027         * m4/getline.m4: Separate out getdelim stuff into separate module.
55028
55029         * m4/getdelim.m4: New file.
55030
55031 2005-08-02  Simon Josefsson  <jas@extundo.com>
55032
55033         * lib/getline.h, getline.c: Rewrite.
55034
55035         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
55036
55037 2005-07-31  Bruno Haible  <bruno@clisp.org>
55038
55039         * lib/lock.h (gl_lock_initializer): New macro.
55040         (gl_lock_define_initialized): Use it.
55041         (gl_rwlock_initializer): New macro.
55042         (gl_rwlock_define_initialized): Use it.
55043         (gl_recursive_lock_initializer): New macro.
55044         (gl_recursive_lock_define_initialized): Use it.
55045
55046 2005-07-30  Karl Berry  <karl@gnu.org>
55047
55048         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
55049         Report from Ben Pfaff, regarding getopt.
55050
55051 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
55052
55053         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
55054         normal way.
55055         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
55056         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
55057         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
55058         (gl_GETOPT): Use the new macros.  Most of the implementation
55059         is moved to the new macros.  This is for programs like Emacs
55060         that don't want all the functionality of gl_GETOPT.
55061
55062 2005-07-26  Bruno Haible  <bruno@clisp.org>
55063
55064         * m4/lock.m4: Update from GNU gettext.
55065
55066 2005-07-26  Bruno Haible  <bruno@clisp.org>
55067
55068         * lib/lock.h: Update from GNU gettext.
55069         * lib/lock.c: Update from GNU gettext.
55070
55071 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
55072
55073         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
55074         obsolescent AC_TRY_RUN.  Include the default includes files, for
55075         'exit'.
55076
55077 2005-07-24  Bruno Haible  <bruno@clisp.org>
55078
55079         * modules/visibility: New file.
55080         * MODULES.html.sh (Misc): Add visibility.
55081
55082 2005-07-24  Bruno Haible  <bruno@clisp.org>
55083
55084         * m4/visibility.m4: New file.
55085
55086 2005-07-24  Bruno Haible  <bruno@clisp.org>
55087
55088         * doc/visibility.texi: New file.
55089
55090 2005-07-22  Bruno Haible  <bruno@clisp.org>
55091
55092         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
55093         $(ALLOCA_H), redundant through BUILT_SOURCES.
55094         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
55095         redundant through BUILT_SOURCES.
55096         * modules/byteswap (Makefile.am): Remove explicit dependency on
55097         $(BYTESWAP_H), redundant through BUILT_SOURCES.
55098         * modules/fnmatch (Makefile.am): Remove explicit dependency on
55099         $(FNMATCH_H), redundant through BUILT_SOURCES.
55100         * modules/getopt (Makefile.am): Remove explicit dependency on
55101         $(GETOPT_H), redundant through BUILT_SOURCES.
55102         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
55103         redundant through BUILT_SOURCES.
55104         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
55105         redundant through BUILT_SOURCES.
55106         * modules/stdbool (Makefile.am): Remove explicit dependency on
55107         $(STDBOOL_H), redundant through BUILT_SOURCES.
55108         * modules/stdint (Makefile.am): Remove explicit dependency on
55109         $(STDINT_H), redundant through BUILT_SOURCES.
55110         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
55111         Remove explicit dependency on $(SYSEXITS_H).
55112         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
55113
55114 2005-07-18  Simon Josefsson  <jas@extundo.com>
55115
55116         * lib/check-version.c (check_version): Accept identical versions too.
55117
55118 2005-07-18  Bruno Haible  <bruno@clisp.org>
55119
55120         * modules/lock: New file.
55121         * MODULES.html.sh (Multithreading): New section.
55122
55123 2005-07-18  Bruno Haible  <bruno@clisp.org>
55124
55125         * m4/lock.m4: New file, from GNU gettext.
55126
55127 2005-07-18  Bruno Haible  <bruno@clisp.org>
55128
55129         * lib/lock.h: New file, from GNU gettext.
55130         * lib/lock.c: New file, from GNU gettext.
55131
55132 2005-07-18  Bruno Haible  <bruno@clisp.org>
55133
55134         * lib/lock.h (gl_once_t): New type.
55135         (gl_once_define, gl_once): New macros.
55136         * lib/lock.c (fresh_once): New variable.
55137         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
55138         functions.
55139
55140 2005-07-16  Simon Josefsson  <jas@extundo.com>
55141
55142         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
55143         workaround, suggested by Bruno.
55144
55145 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
55146
55147         * modules/xalloc (Depends-on): Add xalloc-die.
55148         * modules/xvasprintf (Depends-on): Add xalloc-die.
55149
55150 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
55151
55152         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
55153         with a minor change.
55154
55155 2005-07-15  Bruno Haible  <bruno@clisp.org>
55156
55157         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
55158         When using lib/poll.c, define poll as rpl_poll.
55159
55160 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
55161
55162         * modules/argp (Depends-on): Remove unlocked-io.
55163
55164 2005-07-14  Derek Price  <derek@ximbiot.com>
55165
55166         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
55167         for glob symlink bug.
55168
55169 2005-07-14  Bruno Haible  <bruno@clisp.org>
55170
55171         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
55172         Instead, test for *_unlocked function declarations directly.
55173
55174 2005-07-11  Simon Josefsson  <jas@extundo.com>
55175
55176         * modules/size_max: New file.
55177
55178         * modules/xsize: Depend on size_max module for size_max.m4.
55179
55180 2005-07-11  Simon Josefsson  <jas@extundo.com>
55181
55182         * lib/size_max.h: New file.
55183
55184 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
55185
55186         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
55187         copyright symbol and the year.
55188         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
55189         (version_etc_va): Use parameterized copyright notice.
55190         Reword to conform to the current GNU coding standards.
55191
55192 2005-07-11  Karl Berry  <karl@gnu.org>
55193
55194         * doc/gnulib.texi (Quoting): new node.
55195         (Initial import): more info, from Patrice.
55196
55197 2005-07-11  Bruno Haible  <bruno@clisp.org>
55198
55199         * gnulib-tool (func_usage): Document option --avoid.
55200         (Command line options): Handle --avoid.
55201         (func_acceptable): New function.
55202         (func_modules_transitive_closure): Use it.
55203
55204 2005-07-11  Bruno Haible  <bruno@clisp.org>
55205
55206         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
55207         Reported by Jim Meyering.
55208
55209 2005-07-10  Bruno Haible  <bruno@clisp.org>
55210
55211         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
55212         Needed when size_t is smaller than 'unsigned int'.
55213         Reported by Paul Eggert.
55214
55215 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
55216
55217         * modules/argp (Depends-on): Add unlocked-io
55218
55219 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
55220
55221         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
55222         block of defines.
55223
55224 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
55225
55226         * config/srclist.txt: Comment out regcomp.c, since we have a porting
55227         fix now.
55228
55229 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
55230         and Paul Eggert  <eggert@cs.ucla.edu>
55231
55232         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
55233         in wint_t, not wchar_t.  Remove now-unnecessary cast.
55234
55235 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
55236
55237         * modules/regex (Files): Add lib/regex_internal.c,
55238         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
55239         (Depends-on): Add extensions.
55240         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
55241
55242 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
55243
55244         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
55245         pathconf.
55246         * m4/same.m4 (gl_SAME): Likewise.
55247         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
55248
55249         * m4/regex.m4: Adjust to new libc regex implementation.
55250         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
55251         all the .c and .h parts of (the new) regex.
55252         Quote the m4 stuff better.
55253         Check for RE_ICASE bug of old gnulib.
55254         Check for REG_STARTEND of recent libc.
55255         Rename local variables from jm_* to gl_*.
55256         Quote operand of "test -f".
55257         Say "recent enough" version of libc, not "version 2".
55258         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
55259         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
55260         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
55261         Remove check for btowc, isascii.
55262         Require AM_LANGINFO_CODESET.
55263
55264 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
55265
55266         * lib/regex.c, regex.h: Sync from libc.
55267         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
55268         * lib/regexec.c:
55269         New files, synced from libc, except that regex_internal.h
55270         currently has a small porting fix.
55271
55272 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
55273
55274         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
55275         regex_internal.c, regexec.c.
55276         Add regex_internal.h too, but as a comment, since the libc version
55277         is currently broken in gnulib mode.
55278
55279 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
55280
55281         Support programs like Emacs that use gnulib but not gettext.
55282         * MODULES.html.sh (Internationalization functions): Add gettext-h.
55283         * modules/gettext-h: New file.
55284         * modules/gettext (Files): Remove lib/gettext.h.
55285         (Depends-on): Add gettext-h.
55286         (Makefile.am): Remove lib_SOURCES.
55287         * modules/argmatch, modules/c-stack, modules/closeout:
55288         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
55289         * modules/execute, modules/file-type, modules/getaddrinfo:
55290         * modules/getopt, modules/human, modules/javacomp:
55291         * modules/javaexec, modules/mkdir-p, modules/obstack:
55292         * modules/openat, modules/pagealign_alloc, modules/pipe:
55293         * modules/quotearg, modules/regex, modules/rpmatch:
55294         * modules/unicodeio, modules/userspec, modules/version-etc:
55295         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
55296         * modules/xsetenv:
55297         Depend on gettext-h, not gettext.
55298
55299 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
55300
55301         * gnulib-tool (func_import): Add support for 'public domain' license.
55302         * modules/alloca, modules/atexit, modules/memmove:
55303         Now public domain, not GPL.
55304         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
55305         * modules/realloc, modules/strerror, modules/strtod:
55306         Now LGPL, not GPL.
55307
55308 2005-07-05  Bruno Haible  <bruno@clisp.org>
55309
55310         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
55311         autoconf CVS. Needed for mingw.
55312
55313 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
55314
55315         Remove the dependency of the strftime module on the tzset module.
55316         * modules/strftime (Depends-on): Remove dependency on tzset.
55317
55318 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
55319
55320         Remove the dependency of the strftime module on the tzset module.
55321         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
55322         gl_FUNC_TZSET_CLOBBER.
55323
55324 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
55325
55326         Remove the dependency of the strftime module on the tzset module.
55327         * lib/strftime.c (my_strftime)
55328         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
55329         Copy the input structure, to work around some of the bug with
55330         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
55331         Solaris releases, you should also use the tzset module, but we won't
55332         require it as a dependency any more since we don't want LGPLed code
55333         to depend on GPLed code.
55334
55335 2005-07-02  Jim Meyering  <jim@meyering.net>
55336
55337         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
55338         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
55339         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
55340         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
55341
55342 2005-07-02  Jim Meyering  <jim@meyering.net>
55343
55344         * lib/backupfile.c (backup_args): Change a `0' to NULL.
55345
55346 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
55347
55348         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
55349         declares only 'struct timespec;' (!).
55350
55351 2005-07-01  Jim Meyering  <jim@meyering.net>
55352
55353         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
55354         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
55355         * lib/save-cwd.c, tempname.c:
55356         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
55357         and don't include <sys/file.h>).
55358
55359 2005-06-29  Jim Meyering  <jim@meyering.net>
55360
55361         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
55362         type name.  Use the variable name instead.
55363         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
55364         Likewise.
55365
55366 2005-06-28  Simon Josefsson  <jas@extundo.com>
55367
55368         * modules/check-version (Files): Add check-version.m4.
55369
55370 2005-06-28  Simon Josefsson  <jas@extundo.com>
55371
55372         * m4/check-version.m4: New file, suggested by Jim Meyering
55373         <jim@meyering.net>.
55374
55375 2005-06-28  Simon Josefsson  <jas@extundo.com>
55376
55377         * lib/check-version.h, lib/check-version.c: New files.
55378
55379 2005-06-28  Simon Josefsson  <jas@extundo.com>
55380
55381         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
55382         collision with global variable.  Better indentation.  Don't
55383         increment buffer pointer beyond buffer end.  Based on comments
55384         from Paul Eggert <eggert@cs.ucla.edu>.
55385
55386         * lib/base64.h: Indent.
55387
55388 2005-06-28  Simon Josefsson  <jas@extundo.com>
55389
55390         * doc/gnulib.texi (Library version handling): New section.
55391
55392 2005-06-28  Jim Meyering  <jim@meyering.net>
55393
55394         * check-module (find_included_lib_files): Hard-code another
55395         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
55396         but modules/fts-lgpl (correctly) does not list those files.
55397
55398         * modules/canonicalize (Files): Add lib/pathmax.h.
55399
55400 2005-06-25  Simon Josefsson  <jas@extundo.com>
55401
55402         * modules/check-version: New file.
55403
55404 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
55405
55406         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
55407         initializer of struct addrinfo, as an indication that we don't
55408         care how many members the structure has.
55409
55410 2005-06-24  Derek Price  <derek@ximbiot.com>
55411         and Bruno Haible  <bruno@clisp.org>
55412
55413         Remove stat module & update lstat.
55414         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
55415         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
55416         * m4/stat.m4: Remove this file.
55417
55418 2005-06-24  Derek Price  <derek@ximbiot.com>
55419         and Bruno Haible  <bruno@clisp.org>
55420
55421         Remove stat module & update lstat.
55422         * lib/stat.c: Remove this file...
55423         (slash_aware_lstat): ...moving this content and its support...
55424         * lib/lstat.c (rpl_lstat): ...into here.
55425         * lib/lstat.h: New file.
55426
55427 2005-06-24  Derek Price  <derek@ximbiot.com>
55428         and Bruno Haible  <bruno@clisp.org>
55429
55430         Remove stat module & update lstat.
55431         * config/srclist.txt (libc sources): Remove stat.
55432
55433 2005-06-24  Derek Price  <derek@ximbiot.com>
55434         and Bruno Haible  <bruno@clisp.org>
55435
55436         Remove stat module & update lstat.
55437         * MODULES.html.sh (stat): Remove.
55438         * MODULES.html: Regenerated.
55439         * modules/lstat (Description): Correct function name.
55440         (Files): Add "lstat.h".
55441         (Depends-on): Remove stat, add xalloc, stat-macros.
55442         * modules/stat: Remove this file.
55443         (Include): Add "lstat.h", remove <sys/stat.h>.
55444
55445 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
55446
55447         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
55448         (ranged_convert): Don't save conversion in a temporary struct.
55449         This causes a warning with GCC 4.0.0, and anyway in the typical
55450         case it's not worth the extra 100 bytes or so of code.
55451         (ranged_convert, __mktime_internal): When calling a function via a
55452         pointer P, use P () rather than (*P) (), as we now assume C89 or
55453         better.
55454
55455 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55456
55457         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
55458         "who -r" failed to give output.  Problem reported by Tim Waugh.
55459
55460         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
55461         (xcalloc): Use it to avoid needless tests.
55462         Problem reported by Jim Meyering.
55463
55464 2005-06-20  Derek Price  <derek@ximbiot.com>
55465
55466         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
55467         unnecessary for Autoconfs > 2.59c.
55468
55469 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
55470
55471         * lib/argp.h (__option_is_short): Check upper limit of
55472         __key. Isprint() requires its argument to have the value
55473         of an unsigned char or EOF.
55474
55475 2005-06-16  Jim Meyering  <jim@meyering.net>
55476
55477         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
55478         when either N or S is zero.
55479
55480 2005-06-16  Derek Price  <derek@ximbiot.com>
55481
55482         * m4/bison.m4: Declare YACC & YFLAGS precious.
55483
55484 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
55485
55486         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
55487         multibyte string or pattern, fall back on unibyte matching.
55488         Problem reported by James Youngman.
55489
55490 2005-06-08  Bruno Haible  <bruno@clisp.org>
55491
55492         * modules/csharpcomp: New file.
55493         * MODULES.html.sh (C#): Add csharpcomp.
55494
55495 2005-06-08  Bruno Haible  <bruno@clisp.org>
55496
55497         * m4/csharpcomp.m4: New file, from GNU gettext.
55498
55499 2005-06-08  Bruno Haible  <bruno@clisp.org>
55500
55501         * lib/csharpcomp.h: New file, from GNU gettext.
55502         * lib/csharpcomp.c: New file, from GNU gettext.
55503         * lib/csharpcomp.sh.in: New file, from GNU gettext.
55504
55505 2005-06-08  Bruno Haible  <bruno@clisp.org>
55506
55507         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
55508         warning on mingw.
55509
55510 2005-06-07  Derek Price  <derek@ximbiot.com>
55511
55512         Sync from CVS.
55513         * lib/glob_.h: Indent nested #ifdef.
55514
55515 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
55516
55517         Sync from coreutils.
55518         Use "file name" when talking about file names, instead of "filename"
55519         or "path", as per the GNU coding standards.
55520         * lib/mkdir-p.c: Renamed from makepath.c.
55521         (make_dir_parents): Renamed from make_path.  All callers changed.
55522         * lib/mkdir-p.h: Likewise.  All includers changed.
55523         * lib/filenamecat.c: Renamed from path-concat.c.
55524         (file_name_concat): Renamed from path_concat.  All callers changed.
55525         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
55526         * lib/filenamecat.h: Likewise.  All includers changed.
55527         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
55528         in comments or local variable names.
55529         * lib/basename.c: Likewise.
55530         * lib/canonicalize.c, canonicalize.h: Likewise.
55531         * lib/dirname.c, dirname.h: Likewise.
55532         * lib/euidaccess.c: Likewise.
55533         * lib/exclude.c: Likewise
55534         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
55535         * lib/fsusage.c, fsuage.h: Likewise.
55536         * lib/fts.c, fts_.h: Likewise.
55537         * lib/getcwd.c: Likewise.
55538         * lib/getloadavg.c: Likewise.
55539         * lib/mkstemp.c: Likewise.
55540         * lib/mountlist.c, mountlist.h: Likewise.
55541         * lib/openat.c, openat.h: Likewise.
55542         * lib/readlink-stub.c: Likewise.
55543         * lib/readutmp.c, readutmp.h: Likewise.
55544         * lib/rename.c: Likewise.
55545         * lib/rmdir.c: Likewise.
55546         * lib/same.c: Likewise.
55547         * lib/savedir.c: Likewise.
55548         * lib/stripslash.c: Likewise.
55549         * lib/tempname.c: Likewise.
55550         * lib/xreadlink.c: Likewise.
55551         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
55552         All uses changed.
55553         * lib/exclude.h: Likewise.
55554
55555         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
55556         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
55557         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
55558         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
55559         * lib/pathmax.h: Include <limits.h> unconditionally, since other
55560         files have been getting away with it for years (MORE/BSD 4.3
55561         is extinct now).
55562         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
55563         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
55564
55565         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
55566         Define to 256, not 255, as per modern POSIX.
55567
55568 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
55569
55570         Sync from coreutils.
55571         Use "file name" when talking about file names, instead of "filename"
55572         or "path", as per the GNU coding standards.
55573         * MODULES.html.sh: mkdir-p renamed from makepath.
55574         filenamecat renamed from path-concat.
55575         * modules/filenamecat: Renamed from modules/path-concat.
55576         (Files): filenamecat.h and filenamecat.c renamed from
55577         path-concat.h and path-concat.c.
55578         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
55579         (Include): filenamecat.h, not path-concat.h.
55580         * modules/mkdir-p: Renamed from modules/makepath.
55581         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
55582         makepath.c.
55583         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
55584         (Include): mkdir-p.h, not makepath.h.
55585
55586 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
55587
55588         Sync from coreutils.
55589         * m4/mkdir-p.m4: Renamed from makepath.m4.
55590         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
55591         Rename files from makepath.c to mkdir-p.c, and from
55592         makepath.h to mkdir-p.h.
55593         * m4/filenamecat.m4: Renamed from path-concat.m4.
55594         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
55595         Rename files from path-concat.c to filenamecat.c,
55596         and from path-concat.h to filenamecat.h.
55597         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
55598         "file name" in local variables or comments.
55599         * m4/rename.m4: Likewise.
55600
55601 2005-06-01  Bruno Haible  <bruno@clisp.org>
55602
55603         * modules/csharpexec: New file.
55604         * MODULES.html.sh (C#): New section.
55605
55606 2005-06-01  Bruno Haible  <bruno@clisp.org>
55607
55608         * m4/csharp.m4: New file, from GNU gettext.
55609         * m4/csharpexec.m4: New file, from GNU gettext.
55610
55611 2005-06-01  Bruno Haible  <bruno@clisp.org>
55612
55613         * lib/csharpexec.h: New file, from GNU gettext.
55614         * lib/csharpexec.c: New file, from GNU gettext.
55615         * lib/csharpexec.sh.in: New file, from GNU gettext.
55616
55617 2005-05-31  Derek Price  <derek@ximbiot.com>
55618             Paul Eggert  <eggert@cs.ucla.edu>
55619
55620         Sync from cvs.
55621         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
55622
55623 2005-05-31  Derek Price  <derek@ximbiot.com>
55624             Paul Eggert  <eggert@cs.ucla.edu>
55625
55626         Sync from cvs.
55627         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
55628
55629 2005-05-29  Derek Price  <derek@ximbiot.com>
55630
55631         * config/srclist.txt (glob_.h, glob.c): Add these files.
55632
55633 2005-05-29  Derek Price  <derek@ximbiot.com>
55634
55635         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
55636         * modules/glob: New file.
55637         * modules/getlogin_r: Add link to POSIX spec in description.
55638
55639 2005-05-29  Derek Price  <derek@ximbiot.com>
55640             Paul Eggert  <eggert@cs.ucla.edu>
55641
55642         * m4/glob.m4: New file.
55643
55644 2005-05-29  Derek Price  <derek@ximbiot.com>
55645             Paul Eggert  <eggert@cs.ucla.edu>
55646
55647         * lib/glob_.h, lib/glob.c: New files.
55648
55649 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
55650
55651         * modules/fts (Files): Remove m4/inttypes-pri.m4.
55652         * modules/fts-lgpl (Depends-on): Remove gettext.
55653
55654 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
55655
55656         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
55657         and don't require gt_INTTYPES_PRI.
55658
55659 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
55660
55661         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
55662
55663         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
55664         the configuration hassle isn't worth it.
55665         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
55666         (LONGEST_MODIFIER, PRIuMAX): Remove.
55667
55668 2005-05-27  Bruno Haible  <bruno@clisp.org>
55669
55670         * lib/getlogin_r.h: Remove second include of <stddef.h>.
55671
55672 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
55673
55674         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
55675         _POSIX_PTHREAD_SEMANTICS for Solaris.
55676
55677 2005-05-25  Derek Price  <derek@ximbiot.com>
55678
55679         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
55680
55681 2005-05-25  Derek Price  <derek@ximbiot.com>
55682             Paul Eggert  <eggert@cs.ucla.edu>
55683
55684         * modules/getlogin_r, m4/getlogin_r.m4: New files.
55685         * lib/getlogin_r.c, getlogin_r.h: New files.
55686
55687 2005-05-25  Bruno Haible  <bruno@clisp.org>
55688             Derek Price  <derek@ximbiot.com>
55689
55690         * lib/getlogin_r.h: Simplify API documentation.
55691
55692 2005-05-23  Derek Price  <derek@ximbiot.com>
55693
55694         * modules/minmax (Files): Add m4/minmax.m4.
55695         (configure.ac): Add gl_MINMAX.
55696
55697 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
55698
55699         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
55700         so that unistd-safer.h (GPL'ed code) need not be included.
55701
55702 2005-05-22  Bruno Haible  <bruno@clisp.org>
55703
55704         * m4/minmax.m4: New file.
55705         Based on a patch by Derek Price <derek@ximbiot.com>.
55706
55707 2005-05-22  Bruno Haible  <bruno@clisp.org>
55708
55709         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
55710         (INT64_MIN): Fix definition.
55711         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
55712
55713         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
55714         NEED_SIGNED_INT_TYPES.
55715
55716         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
55717         HAVE_SYSTEM_INTTYPES.
55718
55719 2005-05-22  Bruno Haible  <bruno@clisp.org>
55720
55721         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
55722         Also include <sys/param.h> if it defines MIN, MAX.
55723         Based on a patch by Derek Price <derek@ximbiot.com>.
55724
55725 2005-05-21  Jim Meyering  <jim@meyering.net>
55726
55727         * modules/fts (Files): Add m4/inttypes-pri.m4.
55728         (Depends-on): Add lstat and remove gettext.  Alphabetize.
55729
55730 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
55731
55732         New fts module.
55733         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
55734         (setup_dir, free_dir): New functions.
55735         (enter_dir, leave_dir): Define trivial
55736         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
55737         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
55738         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
55739         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
55740         Move to fts-cycle.c.
55741         (fts_open): Use setup_dir.
55742         (fts_close): Use free_dir.
55743         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
55744         This adds a label and some gotos, but the alternatives were messier.
55745         Check for memory allocation failure when entering a dir.
55746         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
55747         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
55748         (FTS): New member fts_cycle, that is a union that contains the
55749         old active_dir_ht and cycle_state.  All uses changed to mention
55750         fts_cycle.ht and fts_cycle.state.
55751         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
55752         fts.c, with the following changes:
55753         (setup_dir, free_dir): New functions.
55754         (enter_dir): Now returns bool.  Return true if successful, false
55755         if memory exhausted.  All callers changed.
55756         Do not bother partly cleaning up on
55757         memory allocation failure; that is free_dir's job.
55758         However, free ad if hash_insert fails, to avoid memory leak.
55759         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
55760         fts->fts_options to see which union member to use.
55761
55762 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
55763
55764         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
55765         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
55766
55767 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
55768
55769         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
55770
55771 2005-05-20  Jim Meyering  <jim@meyering.net>
55772
55773         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
55774         Now a macro, to pacify GCC.
55775
55776 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
55777
55778         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
55779         of -1.
55780
55781 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
55782
55783         * lib/chown.c (rpl_chown): Return -1 on failure.
55784
55785 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
55786
55787         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
55788         Don't check for stddef.h.
55789         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
55790         don't use its results.
55791         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
55792         since we include them unconditionally.  Don't require
55793         AM_STDBOOL_H, since stdbool is a prerequisite.
55794         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
55795         since we assume C89 or better.
55796         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
55797         as we don't use their results.
55798         Don't check for fchdir, memmove, memset, strrchr, as we use
55799         them unconditionally.
55800         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
55801         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
55802
55803 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
55804
55805         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
55806         Include <stddef.h> unconditionally, since we assume C89 now.
55807         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
55808         * lib/fts.c: Include fts_.h first, to check interface.
55809         Do not include intprops.h; no longer needed.
55810         Include cycle-check.h and hash.h, since fts_.h no longer does.
55811         Remove unnecessary casts of closedir to void.
55812         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
55813         decide whether to decrement nlinks.
55814         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
55815         (FTS): Use struct hash_table * instead of Hash_table, so that
55816         we no longer need to include hash.h here.
55817
55818 2005-05-18  Jim Meyering  <jim@meyering.net>
55819
55820         * modules/dirfd (License): Change to LGPL.  Most of the code
55821         is already in the public domain.
55822
55823 2005-05-18  Jim Meyering  <jim@meyering.net>
55824
55825         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
55826         Reported by Yoann Vandoorselaere.
55827
55828 2005-05-17  Jim Meyering  <jim@meyering.net>
55829
55830         * m4/fts.m4: New file, from coreutils.
55831
55832 2005-05-17  Jim Meyering  <jim@meyering.net>
55833
55834         * lib/fts.c, lib/fts_.h: New files, from coreutils.
55835
55836 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
55837
55838         Sync from coreutils.
55839         * m4/unlinkdir.m4: New file.
55840
55841 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
55842
55843         Sync from coreutils.
55844         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
55845         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
55846         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
55847         White space changes only.
55848         * lib/makepath.c (make_path): Port to hosts where leading "//" is
55849         special.
55850         * lib/yesno.c: Include getline.h, not ctype.h.
55851         (yesno): Don't remove leading white space; POSIX doesn't allow it.
55852         Use getline to remove arbitrary restriction on response length.
55853
55854 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
55855
55856         * config/srclist-update: Spell out "Street" in FSF postal
55857         mail address; this is the style the FSF seems to prefer.
55858
55859         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
55860         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
55861         this updates FSF postal mail address.
55862
55863         Sync from coreutils.
55864         * modules/unlinkdir: New file.
55865         * modules/yesno (Depends-on): Add getline.
55866         * MODULES.html.sh (File system functions): Add unlinkdir.
55867
55868 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
55869
55870         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
55871         lib/strsep.h:
55872         Change the initial comment to refer to GPL, not LGPL.
55873         gnulib-tool will change it to LGPL as needed.
55874
55875         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
55876         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
55877         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
55878         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
55879         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
55880         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
55881         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
55882         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
55883         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
55884         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
55885         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
55886         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
55887         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
55888         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
55889         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
55890         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
55891         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
55892         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
55893         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
55894         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
55895         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
55896         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
55897         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
55898         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
55899         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
55900         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
55901         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
55902         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
55903         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
55904         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
55905         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
55906         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
55907         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
55908         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
55909         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
55910         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
55911         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
55912         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
55913         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
55914         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
55915         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
55916         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
55917         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
55918         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
55919         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
55920         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
55921         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
55922         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
55923         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
55924         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
55925         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
55926         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
55927         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
55928         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
55929         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
55930         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
55931         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
55932         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
55933         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
55934         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
55935         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
55936         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
55937         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
55938         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
55939         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
55940         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
55941         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
55942         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
55943         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
55944         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
55945         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
55946         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
55947         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
55948         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
55949         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
55950         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
55951         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
55952         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
55953         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
55954         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
55955         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
55956         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
55957         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
55958         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
55959         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
55960         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
55961         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
55962         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
55963         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
55964         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
55965         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
55966         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
55967         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
55968         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
55969         lib/yesno.c, lib/yesno.h:
55970         Update FSF postal mail address.
55971
55972 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
55973
55974         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
55975         tests/test-memmem.c, tests/test-stpncpy.c:
55976         Update FSF postal mail address.
55977
55978 2005-05-13  Bruno Haible  <bruno@clisp.org>
55979
55980         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
55981         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
55982         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
55983         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
55984         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
55985         Add support for 64-bit integers in the MSVC compiler.
55986
55987 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
55988
55989         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
55990
55991 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
55992
55993         * gnulib-tool (func_import): Sort and uniquify recommended includes.
55994
55995 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
55996
55997         * doc/getdate.texi (General date syntax): Don't say that date
55998         date --iso-8601=ns generates acceptable dates; it doesn't yet.
55999         Problem reported by Nic Ferrier.
56000
56001 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56002
56003         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
56004         specified in ai_socktype. Fix invalid ai_protocol
56005         check. ai_protocol is usually set to 0 or depending on
56006         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
56007         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
56008         ai_socktype / ai_protocol in the returned addrinfo structure.
56009
56010 2005-05-10  Simon Josefsson  <jas@extundo.com>
56011
56012         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
56013         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
56014
56015 2005-05-10  Karl Berry  <karl@gnu.org>
56016
56017         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
56018         (from http://www.gnu.org/licenses).
56019         * doc/COPYING.LIB: also rename to COPYING.LESSER.
56020         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
56021         fdl.texi suffices.
56022
56023 2005-05-10  Karl Berry  <karl@gnu.org>
56024
56025         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
56026         (COPYING.DOC): remove.
56027
56028         * config/srclist-update: new FSF address.
56029
56030 2005-05-10  Derek Price  <derek@ximbiot.com>
56031
56032         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
56033         possible.
56034
56035 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56036             Bruno Haible  <bruno@clisp.org>
56037
56038         * modules/inet_ntop: New file.
56039         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56040         inet_ntop.
56041
56042 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56043             Bruno Haible  <bruno@clisp.org>
56044
56045         * m4/inet_ntop.m4: New file.
56046
56047 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56048             Bruno Haible  <bruno@clisp.org>
56049
56050         * lib/inet_ntop.h: New file.
56051         * lib/inet_ntop.c: New file, from glibc with modifications.
56052
56053 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
56054
56055         * modules/time_r (License): Change to LGPL.
56056         * modules/extensions (License): Change to LGPL.  Actually,
56057         the license is more permissive than that, but currently gnulib-tool
56058         doesn't know how to handle more-permissive licenses.
56059
56060         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
56061         Problem reported by Dave Love.
56062
56063 2005-05-08  Jim Meyering  <jim@meyering.net>
56064
56065         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
56066         blank.
56067
56068 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
56069
56070         * modules/argmatch (Depends-on): Add stdbool.
56071         * modules/backupfile (Depends-on): Likewise.
56072         * modules/chdir-long (Depends-on): Likewise.
56073         * modules/closeout (Depends-on): Likewise.
56074         * modules/cycle-check (Depends-on): Likewise.
56075         * modules/dirname (Depends-on): Likewise.
56076         * modules/fnmatch (Depends-on): Likewise.
56077         * modules/fsusage (Depends-on): Likewise.
56078         * modules/fwriteerror (Depends-on): Likewise.
56079         * modules/getcwd (Depends-on): Likewise.
56080         * modules/getloadavg (Depends-on): Likewise.
56081         * modules/hard-locale (Depends-on): Likewise.
56082         * modules/makepath (Depends-on): Likewise.
56083         * modules/mountlist (Depends-on): Likewise.
56084         * modules/nanosleep (Depends-on): Likewise.
56085         * modules/posixtm (Depends-on): Likewise.
56086         * modules/quotearg (Depends-on): Likewise.
56087         * modules/readtokens (Depends-on): Likewise.
56088         * modules/readtokens0 (Depends-on): Likewise.
56089         * modules/readutmp (Depends-on): Likewise.
56090         * modules/save-cwd (Depends-on): Likewise.
56091         * modules/strftime (Depends-on): Likewise.
56092         * modules/userspec (Depends-on): Likewise.
56093         * modules/utimecmp (Depends-on): Likewise.
56094         * modules/xgetcwd (Depends-on): Likewise.
56095         * modules/xnanosleep (Depends-on): Likewise.
56096         * modules/xstrtod (Depends-on): Likewise.
56097         * modules/yesno (Depends-on): Likewise.
56098
56099 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
56100
56101         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
56102         needless checks.
56103
56104 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
56105
56106         Merge from coreutils.  Among other things,
56107         add bulletproofing for cases where stdin, stdout, or stderr are closed.
56108         * lib/fd-safer.c: New file.
56109         * lib/fcntl-safer.h, open-safer.c: Remove.
56110         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
56111         * lib/dup-safer.c: Include unistd-safer.h first.
56112         Don't include errno.h.
56113         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
56114         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
56115         * lib/file-type.c: Rely on file-type.h change.
56116         * lib/getloadavg.c: Include unistd-safer.h.
56117         (getloadavg): Use safer open.
56118         * lib/getusershell.c: Include "stdio-safer.h".
56119         (getusershell): Use safer fopen.
56120         * lib/long-options.c (long_options): Use NULL rather than 0.
56121         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
56122         'free'.
56123         * lib/modechange.c: Likewise.
56124         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
56125         (MODE_DONE): New constant.
56126         (struct mode_change): Remove 'next' member.
56127         (make_node_op_equals): New function; like the old one of the
56128         same name, except it allocates an array.
56129         (mode_compile, mode_create_from_ref): Use it.
56130         (mode_compile): Allocate result as an array, not a linked list.
56131         Parse octal string ourself, so that we catch mistakes like "+0".
56132         (mode_adjust): Arg is an array, not a linked list.
56133         * lib/modechange.c: Include stat-macros.h, xalloc.h.
56134         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
56135         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
56136         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
56137         Remove.  This is now stat-macros.h's job.
56138         (talloc): Remove.  All callers replaced by xalloc, so that
56139         our invokers don't have to worry about reporting memory failures.
56140         (make_node_op_equals): Remove.
56141         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
56142         New constants.
56143         (struct mode_change): Moved here from modechange.h.
56144         (mode_append_entry): Remove.
56145         (mode_compile): Remove MASKED_OPS arg, since it encouraged
56146         apps to have incorrect behavior.  Use simpler algorithm for head
56147         and tail.  Don't futz with umask; that's now the job of mode_adjust.
56148         Detect more invalid usages rather than having somewhat-random behavior.
56149         Don't insert an "a=" action, as that leads to incorrect behavior.
56150         (mode_compile, mode_create_from_ref): Return NULL on error instead
56151         of an enum, since now there's only one way to have an error.  All
56152         callers changed.
56153         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
56154         at the correct time.  Simplify calculation of "+u" and its ilk.
56155         Don't mishandle "+X".
56156         (mode_free): Remove "register" and localize decls.
56157         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
56158         (struct mode_change): Move to modechange.c; callers don't
56159         need to see this stuff.
56160         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
56161         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
56162         (mode_change, mode_adjust): Reflect the new signatures noted above.
56163         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
56164         that might redefine system include files.
56165         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
56166         (my_usleep): Use NULL rather than (void *) 0.
56167         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
56168         Use siginterrupt to specify that system calls should be interrupted.
56169         (rpl_nanosleep): Move initialization of suspended closer to call of
56170         my_usleep.
56171         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
56172         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
56173         (desirable_utmp_entry): New function.
56174         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
56175         using x2nrealloc, to simplify logic.
56176         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
56177         size calculation.  Do not assume utmp file is a regular file.
56178         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
56179         (READ_UTMP_CHECK_PIDS): New constant.
56180         * lib/save-cwd.c: Include unistd-safer.h.
56181         (save_cwd): Use fd_safer.
56182         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
56183         [!_LIBC] Include "stat-macros.h" instead.
56184         * lib/unistd-safer.h (fd_safer): New decl.
56185
56186 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
56187
56188         * modules/getloadavg (Depends-on): Add unistd-safer.
56189         * modules/getusershell (Depends-on): Add stdio-safer.
56190         * modules/lstat (Depends-on): Remove xalloc.
56191         * modules/mkstemp (Depends-on): Add stat-macros.
56192         * modules/modechange (Depends-on): Remove xstrtol.
56193         Add stat-macros, xalloc.
56194         * modules/save-cwd (Depends-on): Add unistd-safer.
56195         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
56196         * modules/unistd-safer (Files): Add lib/fd-safer.c
56197         (Makefile.am): Remove lib_SOURCES.
56198
56199         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
56200         Remove fcntl-safer; unistd-safer supersedes it.
56201
56202 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
56203
56204         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
56205         AC_HEADER_STAT.
56206         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
56207         (gl_PREREQ_CHOWN): Remove.
56208         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
56209         it.  Don't require AC_HEADER_STAT.
56210         (gl_PREREQ_LSTAT): Remove.
56211         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
56212         Don't require AC_HEADER_STAT.
56213         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
56214         (gl_PREREQ_RMDIR): Remove.
56215         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
56216         mention stat-macros.h or AC_HEADER_STAT, since we'll make
56217         the stat-macros module a prerequisite.
56218         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
56219         * m4/filemode.m4 (gl_FILEMODE): Likewise.
56220         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
56221         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
56222         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
56223         variable names.
56224         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
56225         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
56226         variable prefixes.
56227         * m4/fcntl-safer.m4: Remove.
56228         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
56229         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
56230         Invoke gl_PREREQ_FD_SAFER.
56231         (gl_PREREQ_FD_SAFER): New macro.
56232         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
56233         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
56234         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
56235         Remove duplicate call to AC_LIBOBJ(readutmp).
56236         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
56237
56238         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
56239         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
56240
56241 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
56242
56243         * MODULES.html.sh (Misc): Add byteswap.
56244
56245 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
56246
56247         * modules/getcwd (Depends-on): Add extensions.
56248         * modules/openat (Depends-on): Likewise.
56249
56250 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
56251
56252         * modules/byteswap: New file.
56253
56254 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
56255
56256         * m4/byteswap.m4: New file.
56257
56258 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
56259
56260         * lib/byteswap_.h: New file.
56261
56262 2005-04-25  Karl Berry  <karl@gnu.org>
56263
56264         * m4/gettext.m4: Update from GNU gettext 0.14.4.
56265
56266 2005-04-25  Albert Chin  <china@thewrittenword.com>
56267
56268         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
56269         Toolkit C bug.
56270
56271 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
56272
56273         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
56274         (func_ln_if_changed) Remove forcibly for no error message
56275         in case file does not exist.
56276
56277 2005-04-19  Simon Josefsson  <jas@extundo.com>
56278
56279         * gnulib-tool (Options): Make --symlink mean --symbolic.
56280
56281 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
56282
56283         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
56284
56285 2005-04-16  Simon Josefsson  <jas@extundo.com>
56286
56287         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
56288
56289 2005-04-15  Simon Josefsson  <jas@extundo.com>
56290
56291         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
56292
56293 2005-04-15  Simon Josefsson  <jas@extundo.com>
56294
56295         * gnulib-tool: Rename --symlink to --symbolic.
56296
56297 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
56298
56299         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
56300         symbolic links to files instead of copying/moving.  Add --aux-dir,
56301         specifying directory relative --dir where auxiliary build tools
56302         are placed.
56303
56304 2005-04-14  Bruno Haible  <bruno@clisp.org>
56305
56306         * modules/allocsa (License): Change to LGPL.
56307         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
56308
56309 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
56310
56311         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
56312         that "UTC +1 second" continues to work.  Problem reported
56313         by Dmitry V. Levin.
56314         (relunit_snumber): New rule.
56315         (relunit): Use it.
56316
56317 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
56318
56319         * lib/getdate.y (universal_time_zone_table): New constant.
56320         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
56321         universal_time_zone_table.
56322         (lookup_zone): Prefer universal_time_zone_table to
56323         local_time_zone_table, so that "GMT" time stamps are allowed in
56324         London during the summer.  Problem reported by Ian Abbott.
56325
56326 2005-04-12  Jim Meyering  <jim@meyering.net>
56327
56328         * lib/human.c (humblock): Set *options even when returning due to
56329         xstrtoumax conversion failure.  Thanks to a used-uninitialized
56330         warning from gcc-4.
56331
56332 2005-04-09  Jim Meyering  <jim@meyering.net>
56333
56334         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
56335         -Wuninitialized: initialize tm0.tm_year.
56336
56337 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
56338
56339         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
56340         count, since there's no maximum.  All uses changed.
56341         Add member dsts_seen.
56342         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
56343         not being INT_MAX.
56344         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
56345         Use pc_rels_seen to decide whther a date is absolute.
56346
56347         * lib/getdate.y (number): Don't overwrite year.
56348         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
56349         check.
56350
56351 2005-04-02  Simon Josefsson  <jas@extundo.com>
56352
56353         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
56354         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
56355
56356 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
56357
56358         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
56359         where no absolute path name can be longer than PATH_MAX.
56360
56361 2005-03-27  Jim Meyering  <jim@meyering.net>
56362
56363         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
56364
56365 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
56366
56367         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
56368         "one's complement" -> "ones' complement" in comment, as per Knuth.
56369         "value of type" -> "type or expression" in comment.
56370         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
56371
56372 2005-03-26  Jim Meyering  <jim@meyering.net>
56373
56374         Comment nits.
56375         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
56376         Correct typos: s/or/of/.
56377
56378 2005-03-26  Jim Meyering  <jim@meyering.net>
56379
56380         * modules/check-include-files: Move to ../ and rename to...
56381         * check-module: ...this.
56382
56383 2005-03-25  Jim Meyering  <jim@meyering.net>
56384
56385         * modules/xvasprintf (Files): Add xalloc.h.
56386
56387 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
56388
56389         * modules/gettext (Files): config/config.rpath ->
56390         build-aux/config.rpath
56391         * modules/iconv (Files): Likewise.
56392         Problem reported by Oskar Liljeblad.
56393
56394 2005-03-23  Jim Meyering  <jim@meyering.net>
56395
56396         * modules/check-include-files: New script to check for
56397         missing dependencies, multiple includes, etc.
56398
56399         * modules/c-strtold (Depends-on): Add xalloc.
56400         * modules/c-strtod (Depends-on): Add xalloc.
56401         * modules/hash (Depends-on): Add xalloc.
56402         (Files): Remove lib/xalloc.h.
56403
56404         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
56405         * modules/userspec (Files): Add lib/inttostr.h.
56406
56407 2005-03-23  Jim Meyering  <jim@meyering.net>
56408
56409         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
56410
56411 2005-03-22  Jim Meyering  <jim@meyering.net>
56412
56413         * modules/stat-macros: New module.
56414         * modules/canonicalize, modules/euidaccess, modules/file-type,
56415         * modules/filemode, modules/lchown, modules/makepath,
56416         * modules/rmdir, modules/stat: Depend on new stat-macros module
56417         rather than listing lib/stat-macros.h manually.
56418         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
56419
56420 2005-03-22  Jim Meyering  <jim@meyering.net>
56421
56422         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
56423
56424 2005-03-22  Bruno Haible  <bruno@clisp.org>
56425
56426         * config/srclist.txt: Replace target directory 'config' with
56427         'build-aux'.
56428         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
56429         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
56430         ../build-aux/.
56431
56432 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
56433
56434         * modules/chdir-long (Depends-on): Add mempcpy.
56435
56436         * modules/acl, modules/backupfile, modules/c-strtod,
56437         modules/c-strtold, modules/canon-host, modules/canonicalize,
56438         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
56439         modules/exclude, modules/exitfail, modules/file-type,
56440         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
56441         modules/getdate, modules/getline, modules/getpagesize,
56442         modules/getpass, modules/getugroups, modules/group-member,
56443         modules/hard-locale, modules/hash, modules/human, modules/idcache,
56444         modules/inttostr, modules/long-options, modules/makepath,
56445         modules/md5, modules/memcasecmp, modules/memcoll,
56446         modules/modechange, modules/mountlist, modules/path-concat,
56447         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
56448         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
56449         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
56450         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
56451         modules/strftime, modules/strndup, modules/strverscmp,
56452         modules/timespec, modules/unlocked-io, modules/userspec,
56453         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
56454         modules/yesno:
56455         Remove lib_SOURCES line from Makefile.am section, as this is now
56456         done automatically by the corresponding Autoconf macro.
56457
56458 2005-03-21  Jim Meyering  <jim@meyering.net>
56459
56460         Changes imported from coreutils.
56461
56462         * lib/cycle-check.c: Don't include xalloc.h.
56463
56464         * lib/path-concat.c: Don't include assert.h.
56465         (path_concat): Remove assertion that would have triggered
56466         for ABASE starting with more than one slash.
56467         Reported by Andreas Schwab.
56468
56469         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
56470         properly when ABASE is an absolute file name.
56471         Correct the description of this function.
56472         Include <assert.h>.
56473         Add an assertion and a test driver.
56474         This fixes a bug introduced on 2004-07-02.
56475         Andreas Schwab reported the resulting failure of cp --parents:
56476         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
56477
56478 2005-03-21  Jim Meyering  <jim@meyering.net>
56479
56480         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
56481         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
56482
56483 2005-03-21  Jim Meyering  <jim@meyering.net>
56484         and  Paul Eggert  <eggert@cs.ucla.edu>
56485
56486         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
56487         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
56488         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
56489         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
56490         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
56491         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
56492         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
56493         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
56494         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
56495         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
56496         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
56497         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
56498         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
56499         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
56500         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
56501         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
56502         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
56503         for these modules.
56504
56505 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
56506
56507         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
56508         (which shouldn't happen), generate nothing instead of returning 0
56509         immediately, so that nstrftime (NULL, ...) doesn't return 0.
56510
56511 2005-03-16  Bruno Haible  <bruno@clisp.org>
56512
56513         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
56514         HAVE_LONGLONG_64BIT.
56515
56516 2005-03-16  Bruno Haible  <bruno@clisp.org>
56517
56518         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
56519         HAVE_LONGLONG_64BIT.
56520
56521 2005-03-16  Bruno Haible  <bruno@clisp.org>
56522
56523         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
56524         HAVE_LONGLONG_64BIT.
56525
56526 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
56527
56528         * lib/strftime.c (my_strftime): Prepend space to format so that we can
56529         reliably distinguish strftime failure from empty output on POSIX
56530         hosts.
56531
56532 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
56533
56534         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
56535         (iconv_string): Don't guess a size-zero buffer, as that might cause
56536         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
56537         result would be 'too large', where 'too large' is (heuristically)
56538         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
56539         overflow concerns.  This will prevent some unwanted malloc failures
56540         when the inputs are very large.
56541
56542 2005-03-15  Karl Berry  <karl@gnu.org>
56543
56544         * config/srclist.txt (config.rpath): from gettext.
56545         * config/config.rpath: update.
56546
56547 2005-03-15  Bruno Haible  <bruno@clisp.org>
56548
56549         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
56550         to 'negate'.
56551
56552         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
56553         variable.
56554
56555         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
56556         results.
56557
56558 2005-03-14  Simon Josefsson  <jas@extundo.com>
56559
56560         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
56561         <fx@gnu.org>.
56562
56563 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
56564
56565         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
56566         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
56567         intprops.h.
56568         * lib/strtol.c: Likewise.
56569
56570 2005-03-14  Jim Meyering  <jim@meyering.net>
56571
56572         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
56573         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
56574         to be nonzero so that we (and caller) can detect the difference
56575         between a valid zero-length expansion and an error return, even
56576         when the underlying strftime fails before writing anything into
56577         that location.
56578
56579 2005-03-14  Bruno Haible  <bruno@clisp.org>
56580
56581         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
56582         Update from GNU gettext 0.14.3.
56583
56584 2005-03-10  Jim Meyering  <jim@meyering.net>
56585
56586         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
56587
56588 2005-03-10  Jim Meyering  <jim@meyering.net>
56589
56590         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
56591         so that this module works on systems without fchdir.
56592
56593 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
56594
56595         Factor int-properties macros into a single file, except for
56596         glibc-related files.
56597         * lib/intprops.h: New file.
56598         * lib/getloadavg.c: Include it instead of limits.h.
56599         (INT_STRLEN_BOUND): Remove.
56600         * lib/human.c: Include intprops.h.
56601         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
56602         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
56603         302/1000.
56604         * lib/inttostr.h: Include intprops.h instead of limits.h.
56605         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
56606         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
56607         for consistency with intprops.h.
56608         (time_t_is_integer, twos_complement_arithmetic): Use them.
56609         * lib/sig2str.h: Include <signal.h>, intprops.h.
56610         (INT_STRLEN_BOUND): Remove.
56611         * lib/strftime.c (TYPE_SIGNED): Remove.
56612         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
56613         * lib/strtol.c: Adjust comments to match intprops.h.
56614         * lib/userspec.c: Include intprops.h.
56615         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
56616         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
56617         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
56618         instead of rolling our own expressions.
56619         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
56620
56621         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
56622         instead of int.
56623         (my_strftime): Do not mishandle years close to INT_MAX, by doing
56624         the right thing even if adding 1900 would overflow.  Similarly
56625         for tm_mon + 1 and tm_yday + 1.
56626         Make %Y always equivalent to %C%y, and similarly for %G and %g.
56627         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
56628         (DO_SIGNED_NUMBER): New macro.
56629         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
56630
56631 2005-03-07  Bruno Haible  <bruno@clisp.org>
56632
56633         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
56634
56635 2005-03-07  Bruno Haible  <bruno@clisp.org>
56636
56637         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
56638
56639 2005-03-04  Derek R. Price  <derek@ximbiot.com>
56640
56641         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
56642         (func_import): Only replace files via --import when they have actually
56643         changed.
56644
56645 2005-03-03  Derek R. Price  <derek@ximbiot.com>
56646
56647         * m4/mmap-anon.m4: New file.
56648         * m4/pagealign_alloc.m4: New file.
56649
56650 2005-03-03  Derek R. Price  <derek@ximbiot.com>
56651             Bruno Haible  <bruno@clisp.org>
56652
56653         * modules/pagealign_alloc: New file.
56654         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
56655
56656 2005-03-03  Derek R. Price  <derek@ximbiot.com>
56657             Bruno Haible  <bruno@clisp.org>
56658
56659         * lib/pagealign_alloc.h: New file.
56660         * lib/pagealign_alloc.c: New file.
56661
56662 2005-03-03  Bruno Haible  <bruno@clisp.org>
56663
56664         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
56665         Use an all-permissive copyright notice, recommended by RMS.
56666
56667 2005-03-02  Bruno Haible  <bruno@clisp.org>
56668
56669         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
56670         of AIX, the replacement has to be done only after <string.h> is
56671         included, therefore not in config.h. stpncpy.h does the replacement,
56672         and stpncpy.c uses it.
56673
56674 2005-03-02  Bruno Haible  <bruno@clisp.org>
56675
56676         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
56677         stpncpy.c uses it.
56678
56679 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
56680
56681         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
56682         The workaround isn't strictly needed for POSIX conformance, and
56683         it's too much of a pain to configure and maintain.  We'll ask
56684         people to fix their kernels instead.
56685         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
56686         (NANOSLEEP_BUG_WORKAROUND): Remove.
56687         (xnanosleep): Remove the workaround.
56688
56689 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
56690
56691         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
56692         Reported by Derek Price.
56693         (Include): Add "timespec.h".
56694
56695         * modules/xnanosleep (Depends-on): Remove gethrxtime.
56696
56697 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
56698
56699         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
56700         to detect nanosleep bug.
56701
56702 2005-03-01  Bruno Haible  <bruno@clisp.org>
56703
56704         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
56705
56706 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
56707
56708         * modules/gethrxtime: New file.
56709         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
56710         (Depends-on): Add gethrxtime.
56711         (configure.ac): Add gl_XNANOSLEEP.
56712         (Makefile.am): Remove lib_SOURCES line.
56713
56714 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
56715
56716         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
56717         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
56718
56719 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
56720
56721         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
56722         * lib/timespec.h (gettime): Return void, since it always
56723         succeeds now.  All uses changed.
56724         * lib/gettime.c (gettime) Likewise.
56725         [HAVE_NANOTIME]: Prefer nanotime.
56726         Assume gettimeofday succeeds, as POSIX requires.
56727         Assime time () succeeds, since other code already does.
56728         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
56729         (timespec_subtract): Remove.
56730         (NANOSLEEP_BUG_WORKAROUND): New constant.
56731         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
56732         things considerably.  Use it only on GNU/Linux hosts, since the
56733         workaround shouldn't be needed elsewhere.
56734
56735 2005-02-24  Bruno Haible  <bruno@clisp.org>
56736
56737         * modules/gettext (Files): Add m4/glibc2.m4.
56738
56739 2005-02-24  Bruno Haible  <bruno@clisp.org>
56740
56741         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
56742         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
56743         * m4/progtest.m4:
56744         Update from GNU gettext 0.14.2.
56745         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
56746
56747 2005-02-24  Bruno Haible  <bruno@clisp.org>
56748
56749         * lib/localcharset.c: Update from GNU gettext 0.14.2.
56750         * lib/config.charset: Update from GNU gettext 0.14.2.
56751
56752 2005-02-24  Bruno Haible  <bruno@clisp.org>
56753
56754         * lib/gettext.h: Update from GNU gettext 0.14.2.
56755
56756 2005-02-23  Simon Josefsson  <jas@extundo.com>
56757
56758         * m4/iconvme.m4: New file.
56759
56760 2005-02-23  Jim Meyering  <jim@meyering.net>
56761
56762         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
56763         change.
56764         Thanks to Bruno Haible for catching it.
56765
56766 2005-02-22  Simon Josefsson  <jas@extundo.com>
56767
56768         * modules/iconvme: New file.
56769
56770         * MODULES.html.sh: Add iconvme.
56771
56772 2005-02-22  Simon Josefsson  <jas@extundo.com>
56773
56774         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
56775
56776 2005-02-22  Simon Josefsson  <jas@extundo.com>
56777
56778         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
56779
56780 2005-02-22  Jim Meyering  <jim@meyering.net>
56781
56782         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
56783         s/ifndef/ifdef/.
56784
56785 2005-02-20  Neil Conway  <neilc@samurai.com>
56786
56787         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
56788         returned by OSX/Darwin if the specified buffer is not large
56789         enough for the hostname.
56790
56791 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
56792
56793         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
56794         pass it to _help, otherwise the latter coredumps trying to
56795         dereference state.root_argp.
56796
56797 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
56798
56799         * modules/chdir-long (Depends-on): Add memrchr.
56800         * modules/memrchr (Files): Add lib/memrchr.h.
56801         (Include): "memrchr.h".
56802
56803 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
56804
56805         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
56806
56807 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
56808
56809         * lib/memrchr.h: New file.
56810         * lib/chdir-long.c: Include it.
56811         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
56812         Don't bother including stddef.h.
56813
56814 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
56815
56816         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
56817         inclusion.
56818         Include <sys/types.h>, for dev_t.
56819         (ME_DUMMY, ME_REMOTE): Move from here....
56820         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
56821         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
56822         Dmitry V. Levin.
56823         Include mountlist.h first, to test the interface.
56824
56825 2005-01-29  Bruno Haible  <bruno@clisp.org>
56826
56827         * lib/progname.c (program_name): Initialize.
56828         Needed when linking statically on MacOS X.
56829
56830 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
56831
56832         Sync from coreutils.
56833         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
56834         (Depends-on): Add c-strtod.
56835         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
56836
56837 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
56838
56839         Sync from coreutils.
56840         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
56841
56842         Remove files that are specific to coreutils.
56843         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
56844
56845 2005-01-28  Bruno Haible  <bruno@clisp.org>
56846
56847         * modules/javacomp: New file.
56848         * MODULES.html.sh (Java): Add javacomp.
56849
56850 2005-01-28  Bruno Haible  <bruno@clisp.org>
56851
56852         * m4/javacomp.m4: New file, from GNU gettext.
56853
56854 2005-01-28  Bruno Haible  <bruno@clisp.org>
56855
56856         * lib/javacomp.sh.in: New file, from GNU gettext.
56857         * lib/javacomp.h: New file, from GNU gettext.
56858         * lib/javacomp.c: New file, from GNU gettext.
56859
56860 2005-01-26  Simon Josefsson  <jas@extundo.com>
56861
56862         * lib/gai_strerror.c: Use GPL in header.
56863
56864 2005-01-26  Bruno Haible  <bruno@clisp.org>
56865
56866         * modules/javaexec: New file.
56867         * MODULES.html.sh (Java): Add javaexec.
56868
56869 2005-01-26  Bruno Haible  <bruno@clisp.org>
56870
56871         * m4/javaexec.m4: New file, from GNU gettext.
56872
56873 2005-01-26  Bruno Haible  <bruno@clisp.org>
56874
56875         * lib/javaexec.sh.in: New file, from GNU gettext.
56876         * lib/javaexec.h: New file, from GNU gettext.
56877         * lib/javaexec.c: New file, from GNU gettext.
56878
56879 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
56880
56881         * modules/lchown (Depends-on): Remove lchown.h
56882
56883 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
56884
56885         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
56886         must be defined if the header file was not found, in order
56887         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
56888
56889 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
56890
56891         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
56892         initializers for struct pentry_state.
56893         (__argp_error): Check return value of __asprintf
56894         (__argp_failure): Translate error message
56895
56896         * lib/argp-parse.c: Removed braces around the expansion of N_()
56897
56898 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
56899
56900         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
56901         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
56902         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
56903         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
56904         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
56905         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
56906         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
56907         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
56908         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
56909         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
56910         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
56911         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
56912         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
56913         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
56914         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
56915         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
56916         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
56917         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
56918         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
56919         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
56920         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
56921         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
56922         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
56923         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
56924         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
56925         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
56926         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
56927         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
56928         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
56929         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
56930         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
56931         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
56932         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
56933         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
56934         xstrtol.m4, xstrtoumax.m4, yesno.m4:
56935         Use an all-permissive copyright notice, recommended by RMS.
56936
56937 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
56938
56939         * modules/chdir-long (Depends-on): Remove mempcpy.
56940
56941 2005-01-21  Jim Meyering  <jim@meyering.net>
56942
56943         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
56944         same value as for Solaris 9.
56945
56946         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
56947         component length.  This included changing the parameter to be
56948         of type `char *' rather than `char const *'.
56949         * lib/chdir-long.h (chdir_long): Update prototype.
56950
56951         * lib/openat.c (fdopendir, fstatat): New functions.
56952         * lib/openat.h: Include headers required for use of DIR and struct
56953         stat.
56954         [AT_SYMLINK_NOFOLLOW]: Define.
56955         (fdopendir, fstatat): Add prototypes.
56956
56957 2005-01-21  Bruno Haible  <bruno@clisp.org>
56958
56959         * modules/classpath: New file.
56960         * MODULES.html.sh (Java): Add classpath.
56961
56962 2005-01-21  Bruno Haible  <bruno@clisp.org>
56963
56964         * lib/classpath.h: New file, from GNU gettext.
56965         * lib/classpath.c: New file, from GNU gettext.
56966
56967 2005-01-20  Simon Josefsson  <jas@extundo.com>
56968
56969         * modules/version-etc-fsf: New file.
56970
56971 2005-01-20  Simon Josefsson  <jas@extundo.com>
56972
56973         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
56974         * lib/version-etc.c: Remove version_etc_copyright.
56975         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
56976         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
56977
56978 2005-01-20  Simon Josefsson  <jas@extundo.com>
56979
56980         * lib/base64.h (isbase64): Add.
56981
56982         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
56983         using a unsigned prototype, don't inline.
56984         (base64_decode): Use it.
56985
56986 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
56987
56988         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
56989         it.
56990
56991 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
56992
56993         * lib/save-cwd.c (save_cwd): Remove code to support the case
56994         where fchdir is missing or flaky.
56995
56996 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
56997
56998         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
56999
57000 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
57001
57002         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
57003         AC_LIBSOURCES now does this.
57004         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
57005         with new ullong_max module.
57006
57007 2005-01-19  Bruno Haible  <bruno@clisp.org>
57008
57009         * modules/sh-quote: New file.
57010         * MODULES.html.sh (Executing programs): Add sh-quote.
57011
57012 2005-01-19  Bruno Haible  <bruno@clisp.org>
57013
57014         * lib/sh-quote.h: New file, from GNU gettext.
57015         * lib/sh-quote.c: New file, from GNU gettext.
57016
57017 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
57018
57019         Merge from coreutils.
57020         * m4/ullong_max.m4: New file.
57021         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
57022         (gl_MACROS): Assume localeconv exists.
57023
57024 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
57025
57026         Merge changes from coreutils, as described below in several
57027         changelogs dated today.
57028
57029         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
57030         (O_DIRECTORY): Remove; not needed here, since "." must be
57031         a directory.  All uses removed.
57032         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
57033         universal on Suns, and we also need to test for IRIX.
57034         Revamp code to use 'if' rather than '#if'.
57035         Avoid unnecessary comparison of cwd->desc to 0.
57036
57037         * lib/utimens.c (futimens): Robustify the previous patch, by checking
57038         for known valid error numbers rather than observed invalid ones.
57039
57040 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
57041
57042         * modules/ullong_max: New file.
57043
57044         * modules/chdir-long, modules/openat: New files.
57045         * modules/save-cwd (Depends-on): Depend on chdir-long.
57046         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
57047
57048 2005-01-18  Jim Meyering  <jim@meyering.net>
57049
57050         Merge from coreutils.
57051         * m4/chdir-long.m4, m4/openat.m4: New files.
57052         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
57053         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
57054         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
57055         is sane and DOES follow symlinks.  Besides, testing 20 different
57056         systems found no broken chown implementations.
57057         Prompted by a change in rsync's copy of this macro.
57058         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
57059
57060         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
57061
57062         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
57063         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
57064         NULL-means-set-to-current-time semantics.
57065         Remove temporary file immediately, rather than waiting
57066         for configure's at-exit trap code to do it.
57067
57068 2005-01-18  Jim Meyering  <jim@meyering.net>
57069
57070         * lib/version-etc.c (version_etc_copyright): Update copyright date.
57071
57072         * lib/utimens.c (futimens): Account for the fact that futimes
57073         can also fail with errno == ENOSYS or errno == ENOENT.
57074         Patch from Dmitry V. Levin.
57075
57076         Change the name of the robust chdir function from chdir to chdir_long.
57077         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
57078         (restore_cwd): Use chdir_long, not chdir.
57079         * lib/chdir-long.c: Renamed from chdir.c.
57080         * lib/chdir-long.h: Renamed from chdir.h.
57081         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
57082         Hurd.
57083
57084 2005-01-18  Bruno Haible  <bruno@clisp.org>
57085
57086         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
57087         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
57088         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
57089         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
57090         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
57091         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
57092         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
57093         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
57094         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
57095         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
57096         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
57097         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
57098         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
57099         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
57100         Use an all-permissive copyright notice, recommended by RMS.
57101
57102 2005-01-18  Bob Proulx  <bob@proulx.com>
57103
57104         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
57105         simplify offsetof() macro construct to avoid compile failure with
57106         native HP-UX 11.0 ANSI C compiler.
57107
57108 2005-01-17  Bruno Haible  <bruno@clisp.org>
57109
57110         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
57111         redundant because stpncpy.m4 takes care of it.
57112
57113 2005-01-17  Bruno Haible  <bruno@clisp.org>
57114
57115         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
57116
57117 2005-01-17  Bruno Haible  <bruno@clisp.org>
57118
57119         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
57120         used.
57121
57122 2005-01-17  Bruno Haible  <bruno@clisp.org>
57123
57124         * lib/fwriteerror.h (fwriteerror): Change specification to include
57125         fclose.
57126         * lib/fwriteerror.c: Include <stdbool.h>.
57127         (fwriteerror): At the end, close the file stream. Record whether
57128         stdout was already closed.
57129
57130 2005-01-17  Bruno Haible  <bruno@clisp.org>
57131
57132         * lib/execute.c (environ): Declare if needed.
57133         * lib/pipe.c (environ): Likewise.
57134         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
57135
57136 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
57137
57138         * modules/argp: Depend on vsnprintf
57139
57140 2005-01-10  Jim Meyering  <jim@meyering.net>
57141
57142         * modules/closeout (Depends-on): Add atexit.
57143
57144 2005-01-06  Bruno Haible  <bruno@clisp.org>
57145
57146         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
57147
57148 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
57149
57150         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
57151         definitions to be after all include files, to avoid collisions.
57152         Problem reported by Bob Proulx.
57153
57154 2005-01-04  Jim Meyering  <jim@meyering.net>
57155
57156         Changes imported from coreutils.
57157         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
57158         as the mkstemp template, use a temporary directory and an
57159         8.3-friendly template to avoid trouble on systems like DJGPP.
57160         Reported by Juan M. Guerrero via Stepan Kasal.
57161         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
57162         close. Remove the temporary directory right away, rather than waiting
57163         for configure's at-exit trap code to do it.
57164         Suggestion from Stepan Kasal.
57165
57166 2005-01-01  Simon Josefsson  <jas@extundo.com>
57167
57168         * gnulib-tool: Print #include directives when --import'ing.
57169
57170 2004-12-28  Simon Josefsson  <jas@extundo.com>
57171
57172         * tests/test-base64.c: Include required header files.  Remove
57173         unused variables.
57174
57175 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
57176
57177         * modules/error (Depends-on): Remove gettext.
57178
57179 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
57180
57181         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
57182         not needed.  This removes a dependency on the gettext module.
57183         [defined _LIBC]: Do not include <libintl.h>; not needed.
57184
57185 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
57186
57187         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
57188         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
57189
57190 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
57191
57192         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
57193         HAVE_DECL_STRTOLD.
57194
57195 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
57196
57197         * modules/getdate (Depends-on): Remove alloca-opt.
57198
57199 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
57200
57201         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
57202
57203 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
57204
57205         * lib/argp-parse.c: Include <stddef.h>.
57206         (alignof, alignto): New macros.
57207         (parser_init): Don't assume that void * is aligned sufficiently
57208         for struct option.
57209
57210         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
57211         need to extend the stack.
57212         (YYINITDEPTH): New macro, so that the initial stack isn't overly
57213         large.
57214
57215 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
57216
57217         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
57218
57219 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
57220
57221         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
57222         (2004-10-24) change.  Apparently this was a false alarm.
57223
57224         * modules/getdate: Depend on alloca-opt, not alloca.
57225
57226 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
57227
57228         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
57229         Remove now-obsolete comment about AIX.
57230         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
57231         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
57232         (YYMAXDEPTH): New macro.
57233
57234 2004-12-18  Simon Josefsson  <jas@extundo.com>
57235
57236         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
57237
57238 2004-12-18  Bruno Haible  <bruno@clisp.org>
57239
57240         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
57241
57242 2004-12-18  Bruno Haible  <bruno@clisp.org>
57243
57244         * lib/fatal-signal.c (fatal_signals): Make non-const.
57245         (init_fatal_signals): New function.
57246         (uninstall_handlers, install_handlers): Ignore signals that were set to
57247         SIG_IGN.
57248         (at_fatal_signal): Call init_fatal_signals.
57249         (init_fatal_signal_set): Likewise. Ignore signals that were set to
57250         SIG_IGN.
57251         Reported by Paul Eggert.
57252
57253 2004-12-18  Bruno Haible  <bruno@clisp.org>
57254
57255         * doc/alloca.texi: New file.
57256         * doc/alloca-opt.texi: New file.
57257
57258 2004-12-17  Jim Meyering  <jim@meyering.net>
57259
57260         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
57261         Otherwise, install-sh could exit with improper exit status when
57262         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
57263
57264 2004-12-16  Simon Josefsson  <jas@extundo.com>
57265
57266         * tests/test-base64.c: Add license.
57267
57268 2004-12-15  Stepan Kasal  <address@hidden>
57269
57270         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
57271
57272 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
57273
57274         * modules/getcwd (Files): Add m4/d-ino.m4.
57275         Suggested by Mark D. Baushke.
57276
57277 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
57278
57279         * lib/getdate.y (textint): New member "negative".
57280         (time_zone_hhmm): New function.
57281         Expect 14 shift-reduce conflicts, not 13.
57282         (o_colon_minutes): New rule.
57283         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
57284         (yylex): Set the "negative" member of signed numbers.
57285
57286 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
57287
57288         * doc/getdate.texi (Time of day items, Time zone items):
57289         Describe new formats +00:00, UTC+00:00.
57290
57291 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
57292
57293         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
57294         spurious "-l"s.  Problem reported by Stepan Kasal.
57295
57296 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
57297
57298         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
57299         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
57300
57301 2004-12-04  Simon Josefsson  <jas@extundo.com>
57302
57303         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
57304         Vandoorselaere <yoann@prelude-ids.org>.
57305
57306 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
57307
57308         Changes imported from coreutils.
57309         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
57310         exist.
57311         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
57312
57313 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
57314
57315         Changes imported from coreutils.
57316         * lib/hard-locale.c: Assume <locale.h> exists.
57317         Include "strdup.h".
57318         (GLIBC_VERSION): New macro.
57319         (hard_locale): Assume setlocale exists.
57320         Rewrite to avoid #ifdef.
57321         Use strdup rather than malloc + strcpy.
57322         * lib/human.c: Assume <locale.h> exists.
57323         (human_readable): Assume localeconv exists.
57324
57325 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
57326
57327         * modules/hard-locale (Depends-on): Add strdup.
57328
57329 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
57330
57331         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
57332         convert T2, not T.  (Imported from libc.)
57333
57334 2004-11-30  Simon Josefsson  <jas@extundo.com>
57335
57336         * modules/restrict (License): Change to LGPL.
57337
57338 2004-11-30  Simon Josefsson  <jas@extundo.com>
57339
57340         * m4/restrict.m4: Add copyright and copying conditions.
57341
57342 2004-11-30  Simon Josefsson  <jas@extundo.com>
57343
57344         * m4/base64.m4: New file.
57345
57346 2004-11-30  Simon Josefsson  <jas@extundo.com>
57347
57348         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
57349         base64.
57350
57351         * tests/test-base64.c: New file.
57352
57353         * modules/base64: New file.
57354
57355 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
57356
57357         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
57358         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
57359
57360         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
57361
57362 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
57363
57364         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
57365         (__getcwd.c): Don't restore errno; glibc doesn't.
57366         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
57367         first, falling back to our code only if its results look suspicious.
57368         Ensure that the resulting buffer is only as large as necessary.
57369
57370         * lib/readutmp.c: Include readutmp.h first.
57371         Include <errno.h>, since readutmp.h no longer does that.
57372         * lib/readutmp.h: Don't include <errno.h>,
57373         <sys/param.h>, <time.h>; not needed to establish interface.
57374         (errno): Remove decl.
57375         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
57376         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
57377         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
57378
57379 2004-11-28  Simon Josefsson  <jas@extundo.com>
57380
57381         * lib/base64.h, base64.c: New file.
57382
57383 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
57384
57385         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
57386
57387 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
57388
57389         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
57390         (Depends-on): Remove pathmax, same.  Add mempcpy.
57391         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
57392         (Makefile.am): Append getcwd.h to lib_SOURCES.
57393         (Include): Add getcwd.h.
57394         (Maintainer): Change from Jim Meyering to "all, glibc",
57395         since getdate now uses intended-for-glibc code.
57396         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
57397         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
57398
57399 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
57400
57401         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
57402         HP's ANSI C compiler.
57403         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
57404         Declaring int functions causes warnings on some modern systems and
57405         shouldn't be needed to compile on ancient ones.
57406         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
57407         defined.
57408
57409         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
57410         with the following changes.
57411         (__set_errno): Parenthesize properly.
57412         Include <stdbool.h>.
57413         (MIN, MAX, MATCHING_INO): New macros.
57414         (__getcwd): Define with prototype, not K&R form.
57415         Use heuristics to allocate default buffer on stack if possible.
57416         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
57417         behavior, and to avoid the PATH_MAX limit when computing
57418         ../../../../...
57419         Use MATCHING_INO to compare inode number to file.
57420         Check for arithmetic overflow in size calculations.
57421         Fix bug in reallocation of dot array that caused getcwd to fail
57422         on directories nested deeper than 75.
57423         Be more careful about saving errno on error.
57424         Do not use realloc; use only free+malloc, as this is a bit
57425         more flexible and avoids a needless copy operation.
57426         Do not inspect st_dev and st_ino for symbolic links; POSIX
57427         doesn't specify the latter.
57428         Check for closedir errors.
57429         Avoid needless casts.
57430         Use "#ifdef weak_alias" around weak_alias, to be like other
57431         glibc code.
57432         The following changes to getcwd.c have effect only when used in
57433         gnulib; they have no effect inside glibc proper.
57434         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
57435         as alloca isn't used.
57436         (alloca, __alloca): Likewise.
57437         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
57438         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
57439         unconditionally, as gnulib assumes C89 or better.
57440         Do not include <sys/param.h>.
57441         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
57442         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
57443         better.
57444         (NULL) [!defined NULL]: Remove; we assume C89 or better.
57445         Include <dirent.h> in a way that is compatible with modern Autoconf.
57446         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
57447         New macros, if not already defined.
57448         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
57449         Use "_LIBC", not "defined _LIBC", for consistency.
57450         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
57451         a mempcpy module.
57452         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
57453         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
57454         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
57455         credit only to Jim Meyering and adjust the copyright dates.
57456         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
57457         <stdlib.h>, <unistd.h>, "pathmax.h".
57458         Instead, include "xgetcwd.h" (first) and "getcwd.h".
57459         (INITIAL_BUFFER_SIZE): Remove.
57460         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
57461
57462 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
57463
57464         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
57465         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
57466         Use the _ONCE methods, for efficiency.
57467         Check for fcntl.h.  In test program, include <errno.h>
57468         and <fcntl.h> if available.  Remove old K&R cruft from
57469         test program.  Check for common errors in GNU/Linux,
57470         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
57471         don't do AC_LIBOBJ, as that's getcwd.m4's job.
57472         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
57473         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
57474         name accordingly.
57475         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
57476         accommodate new getcwd.c.
57477         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
57478         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
57479         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
57480         that's all we need now.
57481
57482 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
57483
57484         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
57485         argp-parse.c depends on getopt internals, that means we should
57486         always use our getopt, to be on the safe side.
57487         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
57488         order not to spoil the result of an eventual previous invocation
57489         of gl_GETOPT_SUBSTITUTE.
57490
57491 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
57492
57493         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
57494         redefinition warnings. To avoid them, include the defines
57495         in `#if !defined __need_getopt ... #endif'. The only place
57496         where __getopt_argv_const is used is in definitions
57497         of getopt_long and getopt_long_only below, which are as well
57498         protected by `#ifndef __need_getopt'.
57499         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
57500         __need_getopt after including <stdio.h> and <unistd.h> These
57501         headers might have defined it.
57502
57503 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
57504
57505         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
57506
57507 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
57508
57509         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
57510         (futimens): New function, which uses futimes if available.
57511         (futimens, utimens): Support timespec==NULL, with same semantics
57512         as utime and utimens.
57513         * lib/utimens.h (futimens): New decl.
57514
57515 2004-11-23  Jim Meyering  <jim@meyering.net>
57516
57517         * lib/getopt_.h: Remove trailing blanks.
57518
57519 2004-11-23  Jim Meyering  <jim@meyering.net>
57520
57521         * lib/__fpending.c: Add comment.
57522
57523 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
57524
57525         * modules/canonicalize (Depends-on): Add xreadlink.
57526         Problem reported by James Youngman.
57527
57528 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
57529
57530         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
57531         New macros.
57532         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
57533         optopt): Use them instead of invoking ## directly; otherwise, the
57534         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
57535
57536 2004-11-19  Bruno Haible  <bruno@clisp.org>
57537
57538         * lib/strtok_r.c: Move comments from here...
57539         * lib/strtok_r.h: ... to here.
57540
57541 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
57542
57543         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
57544         implementations that mishandle size_t overflow.
57545
57546 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
57547
57548         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
57549         might fail.  Problem reported by Yoann Vandoorselaere.
57550         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
57551         implementations that mishandle size_t overflow.
57552
57553 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
57554
57555         * modules/canon-host (Depends-on): Add strdup.
57556
57557 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
57558
57559         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
57560
57561 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
57562
57563         * lib/canon-host.c: Include "strdup.h".
57564         (canon_host): Use getaddrinfo if available, so that IPv6 works.
57565         Use strdup instead of malloc/strcpy to duplicate strings.
57566
57567         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
57568         (human_space_before_unit): New constant.
57569         * lib/human.c (human_readable): Support it.
57570
57571         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
57572         (xgetcwd): Set errno correctly when failing.
57573         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
57574         the failure is actually due to a PATH_MAX problem.
57575
57576         Further getopt changes to make it more likely that glibc will
57577         buy the changes back.
57578         * lib/getopt.c (POSIXLY_CORRECT): New constant.
57579         (getopt): Use it, so to preserve glibc semantic
57580         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
57581         when compiling for libc.
57582         * lib/getopt_.h (__getopt_argv_const): Bring it back.
57583         (getopt_long, getopt_long_only): Use it.
57584
57585         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
57586         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
57587         (getopt): Argv is now char * const *, as per standard.
57588         (_getopt_internal_r, _getopt_internal): Argv is now char **,
57589         not char *__getopt_argv_const *.
57590         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
57591         _getopt_long_only_r): Likewise.
57592         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
57593         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
57594         _getopt_long_r, _getopt_long_only_r): Likewise.
57595         * lib/getopt_.h (__getopt_argv_const): Remove.
57596         (getopt): Argv is now char * const *, as per standard.
57597
57598         * lib/getdate.y (tORDINAL): New token.
57599         (day, relunit): Allow it for relative times.
57600         (relative_time_table): Use tORDINAL for ordinals.
57601
57602 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
57603
57604         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
57605         Document that "second" isn't allowed as an ordinal number.
57606
57607 2004-11-16  Jim Meyering  <jim@meyering.net>
57608
57609         * modules/closeout (Depends-on): Add fpending.
57610
57611 2004-11-15  Jim Meyering  <jim@meyering.net>
57612
57613         * lib/closeout.c: Include "__fpending.h" once again.
57614         Include <stdbool.h>.
57615         (close_stdout): Don't fail just because stdout was closed initially,
57616         since some programs don't write to stdout in the normal course of
57617         operation (other than --version and --help), and we don't want this
57618         function to make e.g. `touch file >&-' fail.
57619         But do fail if it was closed and someone has tried to write to it.
57620         E.g., `printf foo >&-' must fail.
57621
57622 2004-11-13  Jim Meyering  <jim@meyering.net>
57623
57624         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
57625
57626 2004-11-12  Simon Josefsson  <jas@extundo.com>
57627
57628         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
57629         small doc fix is still pending.
57630
57631 2004-11-11  Simon Josefsson  <jas@extundo.com>
57632
57633         * modules/strtok_r: New file.
57634
57635         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57636         strtok_r.
57637
57638 2004-11-11  Simon Josefsson  <jas@extundo.com>
57639
57640         * m4/strtok_r.m4: New file.
57641
57642         * m4/getopt.m4: Replace opterr.
57643
57644 2004-11-11  Simon Josefsson  <jas@extundo.com>
57645
57646         * lib/strtok_r.h, strtok_r.c: New file.
57647
57648 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
57649
57650         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
57651         of replacing opterr, getopt, etc.  This should handle the
57652         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
57653
57654 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
57655
57656         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
57657         we can stop lying to compilers about the constness of argv when we
57658         are compiled outside glibc.
57659         (getopt, getopt_long, getopt_long_only): Use it.
57660         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
57661         _getopt_internal, getopt): Likewise.
57662         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
57663         _getopt_long_only_r): Likewise.
57664         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
57665         _getopt_long_r, _getopt_long_only_r): Likewise.
57666
57667         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
57668         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
57669         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
57670         the other external symbols.
57671         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
57672         declaration, since the above renaming now works around collisions.
57673
57674 2004-11-11  Jim Meyering  <jim@meyering.net>
57675
57676         * lib/linebreak.c: Remove trailing blanks.
57677         * lib/alloca_.h: Likewise.
57678         * lib/acosl.c: Likewise.
57679         * lib/euidaccess.c: Likewise.
57680         * lib/allocsa.h: Likewise.
57681
57682 2004-11-10  Simon Josefsson  <jas@extundo.com>
57683
57684         * m4/getaddrinfo.m4: New file.
57685
57686 2004-11-10  Simon Josefsson  <jas@extundo.com>
57687
57688         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
57689
57690 2004-11-10  Simon Josefsson  <jas@extundo.com>
57691
57692         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57693         getaddrinfo.
57694
57695         * modules/getaddrinfo: New file.
57696
57697 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
57698
57699         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
57700
57701 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
57702
57703         * lib/mktime.c (SHR): New macro, which is a portable
57704         substitute for >> that should work even on Crays.
57705         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
57706         Problem reported by Mark D. Baushke in
57707         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
57708         * lib/getdate.y (SHR): Likewise.
57709         (tm_diff): Use it.
57710         * lib/strftime.c (SHR): Likewise.
57711         (tm_diff): Use it.
57712         * lib/quotearg.c (struct quoting_options): Use unsigned int for
57713         quote_these_too, so that right shifts are well defined.  All uses
57714         changed.
57715
57716 2004-11-10  Jim Meyering  <jim@meyering.net>
57717
57718         Ensure that no close failure goes unreported.
57719         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
57720         return early when it seems there's nothing to flush.
57721         Don't include __fpending.h.
57722
57723 2004-11-10  Jim Meyering  <jim@meyering.net>
57724
57725         * modules/closeout (Depends-on): Remove fpending.
57726
57727 2004-11-10  Jim Meyering  <jim@meyering.net>
57728
57729         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
57730
57731 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
57732
57733         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
57734         gl_FUNC_STRFTIME.
57735         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
57736         and AC_REQUIRE when possible, to avoid duplicate checks.
57737         Check for <wchar.h>.
57738
57739 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
57740
57741         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
57742
57743 2004-11-09  Bruno Haible  <bruno@clisp.org>
57744
57745         * m4/sockpfaf.m4: New file.
57746
57747 2004-11-05  Bruno Haible  <bruno@clisp.org>
57748
57749         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
57750         Reported by Mark D. Baushke <mdb@cvshome.org>.
57751
57752 2004-11-04  Bruno Haible  <bruno@clisp.org>
57753
57754         2004-09-11  Bruno Haible  <bruno@clisp.org>
57755                 * allocsa.valgrind: New file.
57756         2004-02-06  Bruno Haible  <bruno@clisp.org>
57757                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
57758                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
57759                 Reported by Christopher Seip <chris.seip@hp.com>.
57760
57761 2004-11-04  Bruno Haible  <bruno@clisp.org>
57762
57763         * modules/allocsa (Files): Add lib/allocsa.valgrind.
57764         (Makefile.am): Distribute it.
57765
57766 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
57767
57768         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
57769         with errno == ERANGE if the buffer is too small.
57770         Problem reported by Mark D. Baushke.
57771
57772 2004-11-03  Albert Chin  <china@thewrittenword.com>
57773             Paul Eggert  <eggert@cs.ucla.edu>
57774
57775         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
57776         equivalent, substitute $ac_type for equivalent type rather than
57777         blindly using uint32_t *always* which won't work if uint32_t is not
57778         available.  Define _UINT32_T to work around typedef of uint32_t if
57779         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
57780         2.5.1.
57781
57782 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
57783
57784         * m4/jm-macros.m4: Sync from coreutils.
57785         (gl_MACROS): Check for mbrlen, for pathchk.
57786         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
57787
57788 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
57789
57790         * lib/xreadlink.c (MAXSIZE): New macro.
57791         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
57792         size does not exceed MAXSIZE.  Avoid cast.
57793         As suggested by Mark D. Baushke in
57794         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
57795         if readlink fails with buffer size just under MAXSIZE, try again
57796         with MAXSIZE.
57797
57798 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
57799
57800         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
57801
57802 2004-11-02  Derek R. Price  <derek@ximbiot.com>
57803         and  Paul Eggert  <eggert@cs.ucla.edu>
57804
57805         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
57806         (get_date): Overparenthesize to avoid GCC warning.
57807
57808 2004-11-02  Bruno Haible  <bruno@clisp.org>
57809
57810         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
57811         returns void.
57812
57813 2004-11-02  Bruno Haible  <bruno@clisp.org>
57814
57815         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
57816         function returns void.
57817
57818 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
57819
57820         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
57821         fflush_unlocked, flockfile, funlockfile, funlockfile,
57822         fputs_unlocked, putc_unlocked.
57823
57824 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
57825
57826         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
57827         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
57828         already declared.
57829
57830 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
57831
57832         * modules/getdate (Files): Add doc/getdate.texi.
57833         (Depends-on): Add setenv, xalloc.
57834
57835 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
57836
57837         * lib/getdate.y: Add support for TZ="foo" within a date string.
57838         Fix some bugs near time_t boundaries.  Reject dates with
57839         out-of-range components, e.g., "Sept 31".
57840         Include <stdlib.h>, "setenv.h", "xalloc.h".
57841         (ISDIGIT_LOCALE): Remove; unused.
57842         Note that the TZ and time functions used here are not reentrant.
57843         (mktime_ok, get_tz): New functions.
57844         (TZBUFSIZE): New constant.
57845         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
57846         This requires that we sometimes generate our own TZ="XXX..." setting.
57847
57848 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
57849
57850         * doc/getdate.texi: New file, from coreutils with modifications for
57851         the new TZ parsing.
57852
57853 2004-10-27  Derek R. Price  <derek@ximbiot.com>
57854
57855         * lib/mktime.c (not_equal_tm): Remove redundant check.
57856
57857 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57858
57859         * modules/regex (lib_SOURCES): Add regex.c.
57860         Reported by James Youngman in
57861         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
57862
57863 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57864
57865         * lib/getdate.y: Use Bison 1.875 features, and some minor
57866         code cleanups.  This change does not affect semantics.
57867         Don't include <stdlib.h>; no longer needed.
57868         Don't include unlocked-io.h; only the "#if TEST" code uses
57869         stdio, and performance isn't crucial there.
57870         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
57871         Bison 1.875 features as described below.
57872         All uses of "PC." replaced by "pc->".
57873         (YYSTYPE): Add a forward declaration.
57874         (yylex, yyerror): Use full prototypes in forward decls.
57875         Use "%pure-parser" rather than obsolescent "%pure_parser".
57876         Use %parse-param and %lex-param instead of obsolescent
57877         YYPARSE_PARAM and YYLEX_PARAM.
57878         (meridian_table, month_and_day_table, time_units_table,
57879         relative_time_table, time_zone_table, military_table,
57880         lookup_zone, lookup_word, get_date):
57881         Use NULL instead of 0 where appropriate.
57882         (to_hour): Avoid abort (), to avoid a dependency on
57883         stdlib.h.
57884         (yyerror, yylex): Now accepts parser_control * arg.
57885         (main) [TEST]: Use '\0' rather than 0 for char.
57886
57887 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
57888
57889         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
57890
57891 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
57892
57893         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
57894         It's now the caller's responsibility to handle the case where
57895         !HAVE_GETPAGESIZE && !defined getpagesize.
57896
57897         * lib/mktime.c (leapyear): Arg is long int, not int.
57898
57899 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
57900
57901         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
57902
57903 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
57904
57905         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
57906         missing.  Problem reported by James Youngman.
57907
57908 2004-10-16  Simon Josefsson  <jas@extundo.com>
57909
57910         * gnulib-tool: Fix comments.  Fix parse problem.
57911         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
57912
57913 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
57914
57915         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
57916         implementation of getopt_long.  Problem reported by Alexander Taler in:
57917         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
57918
57919 2004-10-15  Bruno Haible  <bruno@clisp.org>
57920
57921         * gnulib-tool: Untabify. Initialize supplied_libname.
57922         (func_usage): More homogenous output.
57923         (func_modules_transitive_closure, func_modules_to_filelist,
57924         func_emit_lib_Makefile_am): New functions.
57925         (func_import): New function, extracted from big case statement. Use
57926         func_get_license, func_modules_transitive_closure,
57927         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
57928         opt_lgpl. Don't use test -a, as it's not portable.
57929         (func_create_testdir): Use func_modules_transitive_closure,
57930         func_modules_to_filelist, func_emit_lib_Makefile_am.
57931
57932 2004-10-15  Bruno Haible  <bruno@clisp.org>
57933
57934         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
57935
57936 2004-10-15  Bruno Haible  <bruno@clisp.org>
57937
57938         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
57939         the portions belonging to each module.
57940         Suggested by Derek Robert Price <derek@ximbiot.com>.
57941
57942 2004-10-12  Simon Josefsson  <jas@extundo.com>
57943
57944         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
57945         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
57946         to real functions.
57947
57948 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
57949
57950         * modules/vsnprintf: New file.
57951
57952 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
57953
57954         * m4/vsnprintf.m4: New file.
57955
57956 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
57957
57958         * lib/vsnprintf.h: New file.
57959         * lib/vsnprintf.c: New file.
57960
57961 2004-10-11  Bruno Haible  <bruno@clisp.org>
57962
57963         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
57964         vsnprintf.
57965
57966 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
57967
57968         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
57969
57970 2004-10-07  Bruno Haible  <bruno@clisp.org>
57971
57972         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
57973         fits into the provided buffer.
57974
57975 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
57976
57977         * lib/diacrit.c, diacrit.h: Add GPL notice.
57978
57979         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
57980         notice.
57981         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
57982         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
57983         This avoids a potential constant-folding bug.
57984
57985 2004-10-05  Bruno Haible  <bruno@clisp.org>
57986
57987         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
57988         for the declaration of strsep.
57989
57990 2004-10-05  Bruno Haible  <bruno@clisp.org>
57991
57992         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
57993
57994 2004-10-04  Simon Josefsson  <jas@extundo.com>
57995
57996         * modules/memmem: New file.
57997         * tests/test-memmem.c: New file.
57998         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
57999
58000 2004-10-04  Simon Josefsson  <jas@extundo.com>
58001
58002         * m4/memmem.m4: New file.
58003
58004 2004-10-04  Simon Josefsson  <jas@extundo.com>
58005
58006         * lib/memmem.h: New file.
58007         * lib/memmem.c: New file, taken from glibc.
58008
58009 2004-10-04  Simon Josefsson  <jas@extundo.com>
58010
58011         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
58012         '#ifdef USE_UNLOCKED_IO'.
58013
58014 2004-10-04  Simon Josefsson  <jas@extundo.com>
58015
58016         * config/srclist.txt: Add memmem from glibc.
58017
58018 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
58019
58020         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
58021
58022         * modules/argmatch, modules/argp, modules/closeout, modules/error,
58023         modules/exclude, modules/getdate, modules/getline,
58024         modules/getndelim2, modules/getpass, modules/getpass-gnu,
58025         modules/getusershell, modules/linebuffer, modules/md5,
58026         modules/mountlist, modules/posixtm, modules/readtokens,
58027         modules/readutmp, modules/regex, modules/sha1,
58028         modules/version-etc, modules/yesno:
58029         Remove dependency on unlocked-io.
58030
58031 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
58032
58033         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
58034
58035         * m4/unlocked-io.m4: Add copyright notice.
58036         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
58037
58038 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
58039
58040         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
58041         * lib/xmalloc.c (xmemdup): Likewise.
58042         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
58043         XFREE): Remove these long-obsolescent macros.
58044         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
58045         * lib/xstrdup.c: Remove.
58046
58047         * lib/regex.c (re_comp): Cast gettext return value to char *,
58048         Problem reported by Martin Neitzel via Mark D. Baushke.
58049
58050 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
58051
58052         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
58053         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
58054         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
58055         regex.c, sha1.c, version-etc.c, yesno.c:
58056         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
58057         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
58058         the includer's responsibility.
58059
58060         Sync from coreutils.
58061
58062         * lib/modechange.c (mode_compile): Don't decrement a pointer that
58063         points to the start of a string, as the C Standard says the
58064         resulting behavior is undefined.
58065
58066         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
58067         simple -> simple_backups, numbered_existing ->
58068         numbered_existing_backups, numbered -> numbered_backups
58069         to avoid shadowing problems.  All uses changed.
58070         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
58071         * lib/backupfile.c (check_extension, numbered_backup):
58072         Rename locals to avoid shadowing 'basename'.
58073         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
58074         once.
58075
58076         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
58077         * lib/.cvsignore: Add getopt.h.
58078
58079 2004-10-04  Bruno Haible  <bruno@clisp.org>
58080
58081         * modules/README: New file.
58082         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
58083         not a module.
58084
58085 2004-10-02  Jim Meyering  <jim@meyering.net>
58086
58087         * lib/dirfd.h, getpagesize.h: Add copyright notice.
58088
58089 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
58090
58091         * modules/strsep: New file.
58092
58093 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
58094
58095         * m4/strsep.m4: New file.
58096
58097 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
58098
58099         * lib/strsep.h: New file.
58100         * lib/strsep.c: New file.
58101
58102 2004-10-01  Simon Josefsson  <jas@extundo.com>
58103
58104         * lib/snprintf.c (snprintf): Handle size==0.
58105
58106 2004-10-01  Simon Josefsson  <jas@extundo.com>
58107             Bruno Haible  <bruno@clisp.org>
58108
58109         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
58110         (snprintf): Declare 'args'.
58111
58112 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
58113
58114         * lib/snprintf.c: Remove comments as to why each header is needed.
58115
58116 2004-10-01  Bruno Haible  <bruno@clisp.org>
58117
58118         * MODULES.html.sh: Add strsep.
58119
58120 2004-09-30  Simon Josefsson  <jas@extundo.com>
58121
58122         * modules/snprintf: New file.
58123
58124 2004-09-30  Simon Josefsson  <jas@extundo.com>
58125
58126         * m4/snprintf.m4: New file.
58127
58128 2004-09-30  Simon Josefsson  <jas@extundo.com>
58129
58130         * lib/snprintf.h, lib/snprintf.c: New files.
58131
58132 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58133
58134         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
58135         (hol_entry_help): Never translate an empty string.
58136         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
58137         * lib/argp.h (OPTION_NO_TRANS): New option.
58138
58139 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
58140
58141         * modules/argp (Maintainer): Replace Simon Josefsson
58142         by Sergey Poznyakoff.
58143
58144 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
58145
58146         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
58147         changes merged back into glibc.
58148
58149 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
58150
58151         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
58152
58153 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
58154
58155         * lib/xvasprintf.c: Include xalloc.h.
58156         (xvasprintf): Use xalloc_die, not xmalloc_die.
58157
58158 2004-09-29  Bruno Haible  <bruno@clisp.org>
58159
58160         * modules/alloca-opt: New file, derived from modules/alloca.
58161         * modules/allocsa: Depend on alloca-opt instead of alloca.
58162         * modules/setenv: Likewise.
58163         * modules/vasnprintf: Likewise.
58164         * MODULES.html.sh: Add alloca-opt.
58165
58166 2004-09-28  Simon Josefsson  <jas@extundo.com>
58167
58168         * gnulib-tool: New parameter --lgpl, to asseert that modules are
58169         LGPL, and to replace license template from GPL to LGPL.
58170
58171 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
58172
58173         * modules/dummy: Change license to LGPL.
58174
58175 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
58176
58177         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
58178
58179 2004-09-24  Simon Josefsson  <jas@extundo.com>
58180
58181         * modules/minmax (License): Change from GPL to LGPL.
58182
58183 2004-09-23  Simon Josefsson  <jas@extundo.com>
58184
58185         * gnulib-tool (--import): Typo.
58186
58187 2004-09-23  Simon Josefsson  <jas@extundo.com>
58188
58189         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
58190
58191 2004-09-22  Bruno Haible  <bruno@clisp.org>
58192
58193         * modules/*: Add 'License' field.
58194         * gnulib-tool: Accept --extract-license option.
58195         (func_get_license): New function.
58196
58197 2004-09-21  Bruno Haible  <bruno@clisp.org>
58198
58199         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
58200         Reported by Simon Josefsson.
58201
58202 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
58203
58204         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
58205         gl_AC_TYPE_LONG_LONG.
58206
58207 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
58208
58209         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
58210
58211 2004-09-18  Simon Josefsson  <jas@extundo.com>
58212         and  Paul Eggert  <eggert@cs.ucla.edu>
58213
58214         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
58215         calls with autoreconf.  Define GL_LIB.
58216
58217 2004-09-14  Karl Berry  <karl@gnu.org>
58218
58219         * config/srclist.txt: unsync setenv.c, sigh.
58220
58221 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
58222
58223         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
58224         Problem reported by Bruno Haible in:
58225         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
58226
58227 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
58228
58229         * config/srclist.txt: Comment out argp-pvh.c.
58230
58231 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
58232
58233         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
58234         in case some system header has #define'd it.  Problem reported by
58235         Soeren D. Schulze in
58236         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
58237
58238 2004-09-09  Karl Berry  <karl@gnu.org>
58239
58240         * regex.[ch]: delete from the root.  These were supposed to be
58241                 synced with emacs cvs, but this has not happened for about
58242                 a year, and anyway nothing else uses emacs regex.[ch].
58243                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
58244                 lib/regex[.ch] is untouched.
58245
58246 2004-09-09  Bruno Haible  <bruno@clisp.org>
58247
58248         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
58249
58250 2004-09-09  Bruno Haible  <bruno@clisp.org>
58251
58252         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
58253         modifications.
58254         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
58255
58256 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
58257
58258         * modules/xvasprintf: New file.
58259         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
58260
58261 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
58262
58263         * lib/xvasprintf.h: New file.
58264         * lib/xvasprintf.c: New file.
58265         * lib/xasprintf.c: New file.
58266
58267 2004-09-08  Bruno Haible  <bruno@clisp.org>
58268
58269         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
58270
58271 2004-09-08  Bruno Haible  <bruno@clisp.org>
58272
58273         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
58274         length is > INT_MAX.
58275         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
58276         more.
58277
58278 2004-09-08  Bruno Haible  <bruno@clisp.org>
58279
58280         * lib/stdint_.h: New file, taken from GNU clisp.
58281
58282 2004-09-08  Bruno Haible  <bruno@clisp.org>
58283             Oskar Liljeblad  <oskar@osk.mine.nu>
58284
58285         * modules/stdint: New file.
58286         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
58287
58288 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
58289
58290         Import from coreutils.
58291         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
58292         strings on unbounded length.  alloca's performance benefits aren't
58293         that important here.
58294         (V_STRDUP): Remove.
58295         (parse_with_separator): New function, with most of the internals
58296         of the old parse_user_spec.  Allow user to omit both user and group,
58297         for compatibility with FreeBSD.
58298         Clone only the user name, not the entire spec.
58299         Do not set *uid, *gid unless entirely successful.
58300         Avoid memory leak in some failing cases.
58301         Fix regression for USER.GROUP reported by Dmitry V. Levin in
58302         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
58303         (parse_user_spec): Rewrite to use parse_with_separator.
58304
58305 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
58306
58307         * modules/userspec: Don't depend on alloca.
58308
58309 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
58310
58311         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
58312
58313 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
58314
58315         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
58316         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
58317         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
58318
58319 2004-08-16  Simon Josefsson  <jas@extundo.com>
58320
58321         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
58322         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
58323         Add --dry-run for --import.
58324         Let user provided command line parameters override configure.ac
58325         settings.
58326
58327 2004-08-12  Simon Josefsson  <jas@extundo.com>
58328
58329         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
58330         as discussed with Paul Eggert in threads rooted at
58331         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
58332         and
58333         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
58334         Before, the test was empty, and relied on ELIDE_CODE in source
58335         code.)
58336         (gl_PREREQ_GETOPT): New macro.
58337         (gl_GETOPT): Use them.
58338
58339 2004-08-12  Simon Josefsson  <jas@extundo.com>
58340
58341         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
58342         * lib/getopt_.h: Renamed from getopt.h.
58343
58344 2004-08-12  Simon Josefsson  <jas@extundo.com>
58345
58346         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
58347         Change default library name from libfoo to libgnu.
58348         Now, if you have a configure.ac that says:
58349                 gl_SOURCE_BASE(gl)
58350                 gl_M4_BASE(gl/m4)
58351                 gl_MODULES(error getopt etcetera)
58352                 gl_INIT
58353         you can import all you need by running:
58354                 ../gnulib/gnulib-tool --import
58355
58356         * modules/getopt (Files): Rename getopt.h to getopt_.h.
58357         (Makefile.am): Rewrite, use logic from argz.
58358         (Include): Use <getopt.h> instead of "getopt.h".
58359
58360 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
58361
58362         * modules/argp (Files): Add m4/unlocked-io.m4.
58363         (Depends-on): Add extensions.
58364
58365 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
58366
58367         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
58368         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
58369         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
58370         Check for program_invocation_name, program_invocation_short_name,
58371         flockfile, funlockfile, features.h, _getopt_long_only_r.
58372
58373 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
58374
58375         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
58376         its complicated substitute.
58377         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
58378         and program_invocation_name.
58379         (__argp_basename) [!_LIBC]: Remove; the only use was
58380         replaced by its body.
58381         (__argp_short_program_name): Change condition from
58382         !defined __argp_short_program_name to
58383         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
58384         to match argp-namefrob.h.
58385         (__argp_failure): Don't assume strerror_r returns char *.
58386         * lib/argp-parse.c (N_): Define unconditionally.
58387         (argp_default_options): Fill out initializers with 0 to avoid
58388         gcc warnings.
58389
58390 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
58391
58392         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
58393         getopt1.c.
58394
58395 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
58396
58397         Merge from coreutils.
58398
58399         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
58400
58401         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
58402         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
58403
58404 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
58405
58406         Merge from coreutils.
58407
58408         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
58409         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
58410         for Reliant Unix 5.43.
58411
58412         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
58413         (union fooround): Use uintmax_t, not long int.
58414         The rest is a merge from libc:
58415         [defined _LIBC]: Include <shlib-compat.h>.
58416         (_obstack) [defined _LIBC]: Remove after 2.3.4.
58417
58418         * lib/settime.c (settime): Recode to avoid warning with
58419         Sun Forte C 6U2.
58420
58421         * lib/strverscmp.c: Convert to UTF-8.
58422
58423 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
58424
58425         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
58426         m4/uintmax_t.m4.
58427
58428 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
58429
58430         * modules/xalloc-die: New file.
58431         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
58432
58433         * modules/md5 (Files): Add m4/uint32_t.m4.
58434         * modules/sha1: Renamed from modules/sha.
58435         (Files):
58436         Rename lib/sha.h to lib/sha1.h.
58437         Rename lib/sha.c to lib/sha1.c.
58438         Rename m4/sha.m4 to m4/sha1.m4.
58439         (lib_SOURCES): Likewise.
58440         (configure.ac): Rename gl_SHA to gl_SHA1.
58441         (Include): sha.h -> sha1.h.
58442
58443 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
58444
58445         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
58446         * m4/sha1.m4: Renamed from sha.m4.
58447         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
58448
58449 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
58450
58451         * lib/obstack.h (obstack_empty_p):
58452         Don't assume that chunk->contents is suitably aligned.
58453         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
58454         Likewise. Problem reported by Benno in
58455         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
58456
58457         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
58458         readable.  This could be improved further but it'd take some work.
58459
58460 2004-08-08  Simon Josefsson  <jas@extundo.com>
58461
58462         * modules/xgethostname (Depends-on): Remove exit and error (not
58463         used).
58464
58465         * modules/getpass-gnu: Add getpass.h.
58466         (Depends-on): Add stdbool.
58467         * modules/getpass: Add getpass.h.
58468
58469 2004-08-08  Simon Josefsson  <jas@extundo.com>
58470
58471         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
58472         Check getpass declaration.
58473
58474 2004-08-08  Simon Josefsson  <jas@extundo.com>
58475
58476         * lib/xgethostname.c: Don't include error.h (not used).
58477
58478         * lib/getpass.h: Add.
58479         * lib/getpass.c: Include getpass.h first.
58480
58481 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
58482
58483         * lib/xalloc-die.c: New file.
58484         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
58485         All uses removed.
58486         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
58487         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
58488         xalloc-die.c.
58489         (_, N_, xalloc_die): Move to xalloc-die.c.
58490         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
58491         so that we needn't mess with xalloc_msg_memory_exhausted.
58492
58493         * lib/sha1.h: Renamed from sha.h.
58494         (SHA1_H): Renamed from _SHA_H.
58495         (sha1_ctx): Renamed from sha_ctx.
58496         (sha1_init_ctx): Renamed from sha_init_ctx.
58497         (sha1_process_block): Renamed from sha_process_block.
58498         (sha1_process_bytes): Renamed from sha_process_bytes.
58499         (sha1_finish_ctx): Renamed from sha_finish_ctx.
58500         (sha1_read_ctx): Renamed from sha_read_ctx.
58501         (sha1_stream): Renamed from sha_stream.
58502         (sha1_buffer): Renamed from sha_buffer.
58503         * lib/sha1.c: Likewise; renamed from sha.c.
58504         Do not include <sys/types.h>.
58505         Include <stddef.h> rather than <stdlib.h>.
58506
58507 2004-08-08  Bruno Haible  <bruno@clisp.org>
58508
58509         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
58510         FILESYSTEM_PREFIX_LEN.
58511         * lib/progreloc.c: Likewise.
58512         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
58513
58514 2004-08-06  Simon Josefsson  <jas@extundo.com>
58515
58516         * modules/progname (Depends-on): Don't depend on stdbool.
58517
58518 2004-08-06  Simon Josefsson  <jas@extundo.com>
58519
58520         * modules/getsubopt: New file.
58521         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58522         getsubopt.
58523
58524 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
58525
58526         More merge from coreutils.
58527
58528         * m4/utimens.m4, m4/utimecmp.m4: New files.
58529         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
58530         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
58531         prereq.m4, sha.m4: Import changes from coreutils.
58532
58533 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
58534
58535         More merge from coreutils.
58536         * modules/raise, modules/readtokens0, modules/utimens:
58537         * modules/utimecmp, module/xnanosleep: New files.
58538         * modules/strftime: Add lib/strftime.h.
58539         Change include from <time.h> to "strftime.h".
58540         * modules/yesno: Add lib/yesno.h.
58541         * modules/backupfile: Remove lib/addext.c.
58542         * modules/euidaccess: Add stat-macros.h.
58543         * modules/canonicalize, modules/euidaccess,
58544         modules/filemode, modules/lchown, modules/makepath,
58545         modules/rmdir, modules/stat: Likewise.
58546
58547 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
58548
58549         Merge from tar.
58550         * lib/argp-help.c (make_hol, hol_append): Don't assume that
58551         SIZE_MAX is a valid preprocessor constant.
58552         (__argp_basename): Change from "#ifndef _LIBC"
58553         to "#ifndef __argp_short_program_name", so that
58554         we don't compile these functions for tar.
58555
58556         More merges from coreutils.
58557         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
58558         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
58559         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
58560         * lib/addext.c: Remove; no longer needed.
58561         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
58562         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
58563         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
58564         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
58565         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
58566         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
58567         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
58568         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
58569         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
58570         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
58571         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
58572         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
58573         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
58574         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
58575         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
58576         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
58577         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
58578         Import changes from coreutils.
58579
58580 2004-08-05  Simon Josefsson  <jas@extundo.com>
58581
58582         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
58583
58584 2004-08-05  Simon Josefsson  <jas@extundo.com>
58585
58586         * m4/getsubopt.m4: New file.
58587
58588 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
58589
58590         Merge from coreutils.
58591
58592         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
58593         * m4/getcwd-path-max.m4: New files.
58594
58595         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
58596         FILESYSTEM_PREFIX_LEN ->
58597         FILE_SYSTEM_PREFIX_LEN.
58598         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
58599         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
58600         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
58601         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
58602
58603         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
58604         prerequisite modules now handle the DOS stuff.
58605         Don't check for unistd.h.
58606
58607 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
58608
58609         Merge from coreutils.
58610
58611         * lib/.gdb-history: Remove; this doesn't belong here.
58612
58613         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
58614         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
58615         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
58616         * lib/getcwd.c: New files.
58617
58618         * lib/dirname.h: Include <stdbool.h>.
58619         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
58620         for consistency with POSIX terminology.  All uses changed.
58621         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
58622         (strip_trailing_slashes): Use bool for booleans.
58623         * lib/stripslash.c (strip_trailing_slashes): Likewise.
58624
58625         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
58626         sometimes returns a positive errno value even when it succeeds.
58627         (print_errno_message) [!LIBC]: Fall back on strerror if
58628         __strerror_r fails.
58629
58630         * lib/path-concat.c (mempcpy): Don't define if a system header defines
58631         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
58632         (longest_relative_suffix): New function.
58633         (path_concat): Use it.  Assume first argument is not NULL.
58634         Port to DOS.  Omit redundant separators.
58635         Report an error instead of returning NULL.
58636         Use mempcpy instead of memcpy.
58637         (xpath_concat): Remove: not declared or used.
58638
58639         * lib/same.h: Include <stdbool.h>
58640         (same_name): Return bool, not int.
58641         * lib/same.c (same_name): Likewise.
58642         (errno): Don't declare; we assume C89 or better now.
58643
58644         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
58645         if not already defined.
58646
58647         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
58648         * lib/dup-safer.c (errno): Likewise.
58649
58650 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
58651
58652         Merge from coreutils.
58653         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
58654         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
58655         * modules/path-concat: Don't depend on strdup.
58656
58657 2004-08-03  Simon Josefsson  <jas@extundo.com>
58658
58659         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
58660         * lib/progname.h: Don't include stdbool.h.
58661
58662 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
58663
58664         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
58665         * MODULES.html.sh (func_all_modules): Remove fatal.
58666
58667 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
58668
58669         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
58670
58671 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
58672
58673         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
58674         working.
58675
58676 2004-08-02  Simon Josefsson  <jas@extundo.com>
58677
58678         * lib/getsubopt.h: New file, with comments from Bruno Haible.
58679         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
58680         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
58681
58682 2004-08-01  Simon Josefsson  <jas@extundo.com>
58683
58684         * lib/xgetdomainname.c: Include stdlib.h, for free().
58685
58686 2004-07-19  Bruno Haible  <bruno@clisp.org>
58687
58688         * MODULES.html.sh (func_all_modules): Add dummy.
58689
58690 2004-07-16  Simon Josefsson  <jas@extundo.com>
58691
58692         * modules/dummy: New file.
58693
58694 2004-07-16  Simon Josefsson  <jas@extundo.com>
58695
58696         * lib/dummy.c: New file.
58697
58698 2004-07-16  Bruno Haible  <bruno@clisp.org>
58699
58700         * lib/backupfile.h: Add extern "C" for C++.
58701         * lib/closeout.h: Likewise.
58702         * lib/copy-file.h: Likewise.
58703         * lib/findprog.h: Likewise.
58704         * lib/full-write.h: Likewise.
58705         * lib/pathname.h: Likewise.
58706         * lib/progname.h: Likewise.
58707         * lib/stpcpy.h: Likewise.
58708         * lib/stpncpy.h: Likewise.
58709         * lib/strcase.h: Likewise.
58710         * lib/strstr.h: Likewise.
58711         * lib/xalloc.h: Likewise.
58712
58713         * lib/mbswidth.h: Add extern "C" for C++.
58714         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
58715
58716 2004-07-13  Robert Millan  <robertmh@gnu.org>
58717
58718         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
58719
58720 2004-07-09  Simon Josefsson  <jas@extundo.com>
58721
58722         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
58723         failed without this.)
58724
58725 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
58726
58727         * modules/chown (Files): Add lib/fchown-stub.c, since
58728         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
58729
58730 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
58731
58732         * lib/fchown-stub.c: New file.
58733
58734 2004-06-24  Jim Meyering  <jim@meyering.net>
58735
58736         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
58737
58738 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
58739
58740         * modules/argz: Omit "#include".
58741
58742         * MODULES.html.sh (func_all_modules): Add calloc, to match
58743         2004-06-01 addition of calloc module.
58744
58745 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
58746
58747         * m4/argz.m4: New file, which is autoupdated from libtool.
58748
58749 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
58750
58751         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
58752         libtool.
58753
58754 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
58755
58756         * config/srclist-update: Don't insist on "USA." before the
58757         close-comment, as libtool omits the period and puts the */ on a
58758         separate line.
58759         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
58760         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
58761
58762 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
58763
58764         * modules/argz: New file.
58765         * MODULES.html.sh (func_all_modules): Add argz.
58766
58767 2004-06-12  Jim Meyering  <jim@meyering.net>
58768         and  Paul Eggert  <eggert@cs.ucla.edu>
58769
58770         * modules/hash (Files): Add lib/xalloc.h.
58771         * modules/pipe (Depends-on): Add wait-process.
58772         * modules/stat (Depends-on): Add xalloc.
58773         * modules/userspec (Files): Add lib/userspec.h.
58774         * modules/xstrto
58775
58776         Upgrade from gettext-0.13.
58777         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
58778         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
58779         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
58780
58781 2004-06-10  Jim Meyering  <jim@meyering.net>
58782
58783         * lib/calloc.c: New file.
58784
58785 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
58786
58787         * lib/getdate.y (yylex): Allow space between sign and number.
58788         Problem reported by Dan Jacobson.
58789
58790 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
58791
58792         Merge from coreutils CVS.
58793
58794         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
58795         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
58796         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
58797         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
58798         xstrtol.m4: Fix copyright date and/or serial number.
58799
58800         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
58801         See if we need an fchown replacement.
58802         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
58803         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
58804         and use the replacement function if we detect either defect.
58805
58806         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
58807         gl_UTIMECMP.
58808
58809 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
58810         and  Jim Meyering  <jim@meyering.net>
58811
58812         Merge from coreutils CVS.
58813
58814         * lib/stat-macros.h: New file, with contents from file-type.h
58815         and coreutils' system.h.
58816         * lib/file-type.c: Include "stat-macros.h".
58817         * lib/file-type.h (file_type): Move all macro definitions to new file,
58818         stat-macros.h.
58819
58820         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
58821         Wrap old code with this conditional.
58822         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
58823         function that does not dereference symlinks.
58824         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
58825
58826         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
58827         dependency problems.
58828         (xreadlink): Accept new arg SIZE, for efficiency.
58829         All decls and uses changed.
58830         * lib/xreadlink.h: Include <stddef.h>, for size_t.
58831
58832         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
58833         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
58834
58835         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
58836         sysexits.h.
58837
58838 2004-06-01  Jim Meyering  <jim@meyering.net>
58839
58840         * m4/calloc.m4: New file.
58841
58842 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
58843
58844         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
58845         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
58846         Also, fix a typo in a diagnostic.
58847
58848 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
58849
58850         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
58851         or AC_FUNC_REALLOC.
58852
58853 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
58854
58855         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
58856         macros to be defined.
58857         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
58858         the allocator returns NULL because the requested size is zero.
58859
58860 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
58861
58862         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
58863         var.  Add comment explaining why libc still defines it.  This
58864         merges the following patch from glibc:
58865         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
58866
58867 2004-05-20  Andreas Schwab  <schwab@suse.de>
58868
58869         * m4/free.m4: Replace free if it not known to work, not the other
58870         way round.
58871
58872 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
58873
58874         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
58875         present in glibc since revision 1.1 of this file.
58876         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
58877         obstack_alignment_mask, obstack_alloc, obstack_base,
58878         obstack_blank, obstack_blank_fast, obstack_chunk_size,
58879         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
58880         obstack_grow0, obstack_init, obstack_int_grow,
58881         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
58882         obstack_next_free, obstack_object_size, obstack_ptr_grow,
58883         obstack_ptr_grow_fast, obstack_room): Remove declarations of
58884         nonexistent functions.
58885
58886 2004-05-18  Karl Berry  <karl@gnu.org>
58887
58888         * config/srclist.txt: break link for vasnprintf.c.
58889
58890 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
58891
58892         Port obstack to the AS/400, where pointers are 16 bytes wide and
58893         you cannot cast an integer to a valid pointer.  This patch is
58894         currently waiting to be integrated into glibc; see
58895         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
58896
58897         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
58898         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
58899         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
58900         (struct obstack): temp member is now a union of a pointer and
58901         an integer, instead of an integer.  All integer uses changed.
58902         This does not affect the physical layout of struct obstack,
58903         except on hosts (like the AS/400) where the size or alignment of
58904         void * is greater than that of ptrdiff_t.
58905         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
58906         __STDC__)]: Store temporary in pointer member of union, not
58907         integer member.
58908         * lib/obstack.c: Include <stddef.h>, for offsetof.
58909         (struct fooalign): Remove; it doesn't need a name.
58910         (union fooround): Change double to long double, and add void *.
58911         (DEFAULT_ALIGNMENT): Use offsetof to compute.
58912         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
58913         not a macro.  Hence the values are always int; so remove all
58914         casts-to-int in uses.
58915
58916 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
58917
58918         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
58919         we can get this patch merged into glibc.
58920
58921 2004-05-17  Derek R. Price  <derek@ximbiot.com>
58922             Paul Eggert  <eggert@cs.ucla.edu>
58923
58924         * m4/argp: Depend on alloca.
58925
58926 2004-05-17  Derek R. Price  <derek@ximbiot.com>
58927             Paul Eggert  <eggert@cs.ucla.edu>
58928
58929         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
58930         freecoding.
58931
58932 2004-05-17  Bruno Haible  <bruno@clisp.org>
58933
58934         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
58935         precision that consists of a '.' followed by an empty digit string.
58936         Patch by Tor Lillqvist <tml@iki.fi>.
58937
58938 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
58939
58940         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
58941         for backward compatibility with older code.  We need our own
58942         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
58943         it under some other name, and our alloca.h will define it.
58944
58945 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
58946             Derek Price  <derek@ximbiot.com>
58947
58948         * lib/alloca.c: Include <alloca.h>, to get our interface.
58949         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
58950         include <alloca.h> first.  Use C89 prototype for alloca; this
58951         requires including <stddef.h> for size_t.  Use extern "C" if C++.
58952         Use #elif for simplicity, since we can assume C89 now.
58953         Don't try to source the system alloca.h since it will not be found
58954         and to prevent recursively including its replacement.
58955         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
58956         * lib/regex.c: Likewise.
58957
58958 2004-05-16  Derek Price  <derek@ximbiot.com>
58959             Paul Eggert  <eggert@cs.ucla.edu>
58960
58961         getline cleanup.  This changes the getndelim2 API: both order of
58962         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
58963         no delimiter).
58964
58965         * lib/getline.c: Don't include stddef.h or stdio.h, since our
58966         interface does that.
58967         (getline): Always use getdelim, so that we don't have two
58968         copies of this code.
58969         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
58970         if available.
58971         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
58972         (GETNDELIM2_MAXIMUM): New macro.
58973         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
58974         instead of the old practice of delim2==0.  All callers changed.
58975         Return -1 on overflow, instead of returning junk.
58976         Do not set *linesize unless allocation succeeds.
58977         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
58978         that we include sys/types.h.
58979         * lib/getnline.h: Likewise.
58980         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
58981         (getndelim2): Reorder arguments.
58982         * lib/getnline.c (getnline, getndelim):
58983         Don't discard the NMAX argument.
58984         (getnline): Invoke getndelim, to avoid code duplication.
58985         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
58986         of (size_t) -1 by callers of the getnline family.
58987
58988 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
58989
58990         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
58991         Check for gettimeofday.
58992         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
58993         Check for settimeofday, stime.
58994
58995 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
58996
58997         * lib/nanosleep.c (suspended): Change its type from int to
58998         sig_atomic_t volatile.
58999         (first_call): Make it private to rpl_nanosleep, and have it
59000         be zero initially as that's a bit faster.
59001         (my_usleep): Round up fractional times instead of truncating them,
59002         as this is the usual meaning for 'sleep'.
59003
59004         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
59005         doesn't work.
59006         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
59007         (ENOSYS): Define if not defined.
59008         (settime): Fall back on stime if it exists and settimeofday fails.
59009         But don't bother with fallbacks if a method fails with errno == EPERM.
59010
59011 2004-05-11  Jim Meyering  <jim@meyering.net>
59012
59013         Prior to this change, the save_cwd caller required read access to the
59014         current directory on most systems (ones with the fchdir function).
59015
59016         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
59017         fails, try write-only, and finally, resort to using xgetcwd.
59018
59019 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
59020
59021         * lib/obstack.c, obstack.h: Import changes from libc.
59022
59023 2004-04-28  Bruno Haible  <bruno@clisp.org>
59024
59025         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
59026         also implicitly appends .exe to executables.
59027         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
59028         accepts Windows pathnames.
59029         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
59030         Treat Cygwin like Windows, since it now accepts Windows pathnames.
59031         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
59032         Treat Cygwin like Windows, since it now accepts Windows pathnames.
59033         Reported by Derek Robert Price <derek@ximbiot.com>.
59034
59035 2004-04-21  Karl Berry  <karl@gnu.org>
59036
59037         * config/srclist.txt (localcharset.c): break sync.
59038
59039 2004-04-20  Paul Eggert  <eggert@twinsun.com>
59040
59041         * m4/host-os.m4: Add a copyright notice.
59042
59043 2004-04-20  Jim Meyering  <jim@meyering.net>
59044
59045         Change UTILS_ to gl_ in AC_DEFINE'd names.
59046         Change utils_- and jm_-prefixed variables, too.
59047         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
59048         UTILS_FUNC_MKDIR_TRAILING_SLASH.
59049         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
59050
59051         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
59052         Don't emit trailing blanks.
59053         Also rename jm_-prefixed variables to have gl_ prefix.
59054
59055         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
59056         Also rename jm_-prefixed variables to have gl_ prefix.
59057
59058         * m4/jm-macros.m4: Reflect the renamings.
59059         * m4/prereq.m4: Likewise.
59060
59061 2004-04-20  Jim Meyering  <jim@meyering.net>
59062
59063         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
59064         memory.
59065
59066 2004-04-20  Jim Meyering  <jim@meyering.net>
59067             Bruno Haible  <bruno@clisp.org>
59068
59069         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
59070         memory when realloc fails.
59071
59072 2004-04-19  Jim Meyering  <jim@meyering.net>
59073
59074         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
59075         now that readutmp.c may call `free (0)'.
59076
59077 2004-04-19  Bruno Haible  <bruno@clisp.org>
59078
59079         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
59080         * m4/inttypes_h.m4: Likewise.
59081         * m4/stdint_h.m4: Likewise.
59082         * m4/intmax_t.m4: Likewise.
59083         * m4/uintmax_t.m4: Likewise.
59084
59085 2004-04-18  Jim Meyering  <jim@meyering.net>
59086
59087         * m4/prereq.m4: Don't forbid jm_ prefix.
59088
59089         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
59090         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
59091         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
59092         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
59093         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
59094         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
59095         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
59096         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
59097         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
59098         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
59099         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
59100         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
59101         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
59102         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
59103         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
59104         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
59105         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
59106         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
59107         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
59108
59109 2004-04-18  Jim Meyering  <jim@meyering.net>
59110
59111         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
59112         failure, don't leak memory and do call END_UTMP_ENT.
59113
59114 2004-04-16  Jim Meyering  <jim@meyering.net>
59115
59116         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
59117         coreutils' stat program.
59118         (gl_PREREQ): Don't require jm_PREREQ_STAT.
59119
59120 2004-04-11  Paul Eggert  <eggert@twinsun.com>
59121
59122         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
59123         C89.
59124         (CHAR_BIT): Remove, since we assume C89.
59125         Include <stdint.h> if available, as per current Autoconf CVS advice.
59126
59127 2004-03-31  Jim Meyering  <jim@meyering.net>
59128
59129         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
59130         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
59131         * m4/xalloc.m4: Likewise.
59132
59133 2004-03-30  Paul Eggert  <eggert@twinsun.com>
59134
59135         Merge from coreutils.
59136
59137         * m4/inttostr.m4: New file.
59138         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
59139         Require AM_STDBOOL_H and gl_TIMESPEC instead.
59140         Require gl_CLOCK_TIME.
59141         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
59142
59143 2004-03-30  Paul Eggert  <eggert@twinsun.com>
59144
59145         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
59146         not bool, to be more consistent with Unix conventions.
59147         Suggested by Bruno Haible.
59148
59149         Merge from coreutils.
59150
59151         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
59152         * lib/umaxtostr.c: New files.
59153
59154         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
59155         the usual <time.h> dance.
59156         (get_date): Change signature to support fractional time stamps.
59157         All callers changed.
59158         * lib/getdate.y: Include "getdate.h" first, as we can now
59159         assume C89 and don't need to worry about 'const'.
59160         Similarly, include "unlocked-io.h" near start, not in middle.
59161         Include <limits.h>.
59162         (textint.value): Use long int rather than int.
59163         (textint.digits): Use size_t rather than int.
59164         (BILLION, LOG10_BILLION): New constants.
59165         (parser_control): New member rel_ns.  Members day_ordinal,
59166         time_zone, month, day, hour, minutes, rel_year, rel_month,
59167         rel_day, rel_hour, rel_minutes, rel_seconds
59168         are now long int, not int.  Member seconds is now struct timespec,
59169         not int.  New member timespec_seen.  Members dates_seen, days_seen,
59170         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
59171         not int.
59172         (%union.intval): Now long int, not int.
59173         New member timespec.
59174         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
59175         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
59176         (spec): Now is a timespec or an item list.
59177         (timespec, items): New nonterminals.
59178         (time, rel, relunit, number, get_date):
59179         Add support for fractional seconds.
59180         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
59181         (gmtime, localtime, mktime): Remove decls; not needed with C89.
59182         (to_hour): First arg is now long int, not int.
59183         (to_year): Returns long int, not int.
59184         Don't treat year -70 like 70.
59185         (tm_diff): Returns long int, not int.
59186         (lookup_word): Use bool instead of int when appropriate.
59187         (yylex): Use size_t for count, not int.
59188         Detect overflow when parsing large integer constants.
59189         Add support for fractions.
59190         (get_date): Make pointers 'const' if possible.
59191         Use more-portable code to detect integer overflow.
59192         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
59193         Don't use ctime; it's not reliable if the year has >4 digits.
59194
59195         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
59196         This is for compatibility with BSD.
59197
59198         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
59199         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
59200         From coreutils' system.h.
59201
59202         * lib/userspec.c: Don't include "posixver.h".
59203         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
59204         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
59205         compatible extension.  Simplify code by removing a boolean int
59206         that was always nonzero if a string was nonnull.
59207
59208 2004-03-30  Jim Meyering  <jim@meyering.net>
59209
59210         Merge from coreutils.
59211
59212         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
59213         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
59214         on some systems one must include <grp.h> before it.
59215         Reported by Christian Krackowizer.
59216
59217 2004-03-30  Jim Meyering  <jim@meyering.net>
59218
59219         Merge from coreutils.
59220
59221         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
59222
59223         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
59224         an empty input stream.
59225
59226         * lib/readtokens.c: Include <stdbool.h>.
59227         (readtoken): Use `size_t' rather than int/long.
59228         All callers adjusted.
59229         Use `bool' rather than `int' where appropriate.
59230         Use memset rather than an explicit loop.
59231         Use x2nrealloc rather than xrealloc.
59232         Allow the use of `\0' as a delimiter.
59233         (readtokens): Likewise.
59234         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
59235
59236 2004-03-30  Jim Meyering  <jim@meyering.net>
59237
59238         * m4/realloc.m4: Remove file, since now it does no more than
59239         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
59240         the `configure.ac' section of module/realloc.
59241         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
59242
59243 2004-03-30  Bruno Haible  <bruno@clisp.org>
59244
59245         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
59246         nonnull.
59247
59248 2004-03-29  Paul Eggert  <eggert@twinsun.com>
59249
59250         Merge changes to getloadavg.c from coreutils and Emacs.
59251
59252         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
59253         Define to an expression, not to the empty string.
59254         Include cloexec.h and xalloc.h.
59255         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
59256         Use set_cloexec_flag rather than rolling our own.
59257         * lib/cloexec.c, lib/cloexec.h: New files.
59258
59259 2004-03-29  Paul Eggert  <eggert@twinsun.com>
59260
59261         * m4/cloexec.m4: New file.
59262
59263 2004-03-18  Paul Eggert  <eggert@twinsun.com>
59264
59265         * lib/getopt.h: Sync with libc CVS.
59266
59267 2004-03-18  Paul Eggert  <eggert@twinsun.com>
59268             Bruno Haible  <bruno@clisp.org>
59269
59270         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
59271         mbswidth.
59272
59273 2004-03-18  Paul Eggert  <eggert@twinsun.com>
59274             Bruno Haible  <bruno@clisp.org>
59275
59276         * lib/mbswidth.h: Include <wchar.h> only if
59277         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
59278         <wchar.h>.
59279         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
59280
59281 2004-03-09  Paul Eggert  <eggert@twinsun.com>
59282
59283         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
59284         Sync with libc CVS.
59285         * lib/getopt_int.h: New file, also synced from libc.
59286
59287 2004-03-09  Paul Eggert  <eggert@twinsun.com>
59288
59289         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
59290         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
59291         Bring back getopt.c, getopt.h, getopt1.c.
59292
59293 2004-03-07  Paul Eggert  <eggert@twinsun.com>
59294
59295         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
59296         All uses changed.  Check for sa_sigaction member; this fixes
59297         a bug first reported by Jason Andrade in
59298         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
59299
59300 2004-03-07  Paul Eggert  <eggert@twinsun.com>
59301
59302         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
59303         '#if' expressions.  Unlike the code it replaces, it does not
59304         depend on (defined _SC_PAGESIZE).  However, it does depend on
59305         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
59306         first reported by Jason Andrade in
59307         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
59308
59309 2004-02-25  Simon Josefsson  <jas@extundo.com>
59310
59311         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
59312
59313 2004-02-25  Simon Josefsson  <jas@extundo.com>
59314
59315         * lib/strdup.h: New file.
59316         * lib/strdup.c: Include it.
59317         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
59318         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
59319
59320 2004-02-23  Karl Berry  <karl@gnu.org>
59321
59322         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
59323         (from fencepost.gnu.org:/gd/gnuorg).
59324
59325 2004-02-23  Karl Berry  <karl@gnu.org>
59326
59327         * config/srclistvars.sh (GNUORG) [karl]: redefine.
59328         * config/srclist.txt: add maintain/standards documents.
59329
59330 2004-02-18  Bruno Haible  <bruno@clisp.org>
59331
59332         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
59333         Reported by Derek Robert Price <derek@ximbiot.com>.
59334
59335 2004-02-16  Karl Berry  <karl@gnu.org>
59336
59337         * config/mkinstalldirs, install-sh: update from automake.
59338
59339 2004-02-06  Karl Berry  <karl@gnu.org>
59340
59341         * m4/po.m4: update from gettext 0.14.1.
59342
59343 2004-02-06  Karl Berry  <karl@gnu.org>
59344
59345         * lib/config.charset: update from gettext 0.14.1.
59346
59347 2004-02-05  Paul Eggert  <eggert@twinsun.com>
59348
59349         Add comments and code, prompted by suggestions from Bruno Haible
59350         for sh-quote.
59351         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
59352         describing the enum quoting_style values.
59353         * lib/quotearg.c (quotearg_alloc): New function.
59354         (quotearg_buffer_restyled): Treat lone { and } as special.
59355         Treat = as special.  Work around bug with older shells
59356         that "see" a '\' that is really the 2nd byte of a multibyte char.
59357         Quote empty string with shell_quoting_style.
59358
59359 2004-02-03  Bruno Haible  <bruno@clisp.org>
59360
59361         * m4/pipe.m4: New file, from GNU gettext.
59362
59363 2004-02-03  Bruno Haible  <bruno@clisp.org>
59364
59365         * lib/pipe.h: New file, from GNU gettext.
59366         * lib/pipe.c: New file, from GNU gettext.
59367
59368 2004-01-27  Bruno Haible  <bruno@clisp.org>
59369
59370         * m4/execute.m4: New file, from GNU gettext.
59371
59372 2004-01-27  Bruno Haible  <bruno@clisp.org>
59373
59374         * lib/execute.h: New file, from GNU gettext.
59375         * lib/execute.c: New file, from GNU gettext.
59376         * lib/w32spawn.h: New file, from GNU gettext.
59377
59378 2004-01-24  Paul Eggert  <eggert@twinsun.com>
59379
59380         Merge from diffutils.
59381
59382         * lib/file-type.c (file_type): Add typed memory objects.
59383         * lib/file-type.h (S_TYPEISTMO): New macro.
59384
59385         * lib/c-stack.h (c_stack_action): Remove argv argument.
59386         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
59387         (die): Don't calculate message unless segv_action returns.
59388         (get_stack_location, min_address_from_argv, max_address_from_argv,
59389         volatile stack_base, volatile_stack_size): Remove.
59390         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
59391         that every segmentation violation is a stack overflow.  (Ouch!)
59392         See Debian bug 136249 (still outstanding) for more info about why
59393         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
59394
59395 2004-01-24  Paul Eggert  <eggert@twinsun.com>
59396
59397         Exit-status fix from coreutils.
59398
59399         Use exit_failure consistently in place of EXIT_FAILURE,
59400         so that program exit statuses are consistent on failure.
59401
59402         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
59403         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
59404         * lib/argmatch.h: Comment fix to match the above.
59405         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
59406         Now a macro referring to exit_failure, instead of a separate
59407         variable.  Include "exitfail.h" to get it.
59408         * lib/xstrtol.h: Include "exitfail.h".
59409         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
59410
59411         * lib/long-options.c (parse_long_options): Use prototype
59412         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
59413         for clarity.
59414
59415 2004-01-21  Jim Meyering  <jim@meyering.net>
59416
59417         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
59418         so as not to conflict with a different-sized __mktime_internal
59419         function in GNU libc.
59420         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
59421         Problem building statically-linked `ls' reported by Michael Brunnbauer.
59422
59423 2004-01-20  Karl Berry  <karl@gnu.org>
59424
59425         * config/config.guess: update from config.
59426
59427         * config/srclistvars.sh: GNUWWWLICENSES for karl.
59428
59429 2004-01-20  Bruno Haible  <bruno@clisp.org>
59430
59431         Safer stack allocation.
59432         * lib/setenv.c: Include allocsa.h.
59433         (alloca): Remove fallback definition.
59434         (freea): Remove macro.
59435         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
59436         instead of freea.
59437
59438 2004-01-20  Bruno Haible  <bruno@clisp.org>
59439
59440         * m4/eealloc.m4: New file, from GNU gettext.
59441
59442 2004-01-20  Bruno Haible  <bruno@clisp.org>
59443
59444         * m4/allocsa.m4: New file, from GNU gettext.
59445
59446 2004-01-20  Bruno Haible  <bruno@clisp.org>
59447
59448         * lib/xallocsa.h: New file, from GNU gettext.
59449         * lib/xallocsa.c: New file, from GNU gettext.
59450
59451 2004-01-20  Bruno Haible  <bruno@clisp.org>
59452
59453         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
59454
59455 2004-01-20  Bruno Haible  <bruno@clisp.org>
59456
59457         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
59458         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
59459         specially.
59460
59461 2004-01-20  Bruno Haible  <bruno@clisp.org>
59462
59463         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
59464         patch.
59465
59466 2004-01-20  Bruno Haible  <bruno@clisp.org>
59467
59468         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
59469
59470 2004-01-20  Bruno Haible  <bruno@clisp.org>
59471
59472         * lib/eealloc.h: New file.
59473
59474 2004-01-20  Bruno Haible  <bruno@clisp.org>
59475
59476         * lib/binary-io.h: Avoid warnings on Cygwin.
59477
59478 2004-01-20  Bruno Haible  <bruno@clisp.org>
59479
59480         * lib/allocsa.h: New file, from GNU gettext.
59481         * lib/allocsa.c: New file, from GNU gettext.
59482
59483 2004-01-18  Karl Berry  <karl@gnu.org>
59484
59485         * doc/gpl.texi, doc/lgpl.texi: new files.
59486
59487 2004-01-18  Karl Berry  <karl@gnu.org>
59488
59489         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
59490         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
59491
59492 2004-01-15  Paul Eggert  <eggert@twinsun.com>
59493
59494         Merge from coreutils.
59495
59496         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
59497         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
59498         (gl_DEFAULT_POSIX2_VERSION): Move
59499         the documentation from 'configure' into 'config.hin',
59500         so that 'configure --help' isn't burdened by it and
59501         we don't have to worry about its formatting there.
59502         Reword the documentation so that it's more succinct
59503         and can be run together into a single paragraph.
59504         * m4/same.m4 (gl_SAME): Check for pathconf.
59505
59506 2004-01-15  Paul Eggert  <eggert@twinsun.com>
59507
59508         Merge from coreutils.
59509
59510         * lib/posixver.c: Include posixver.h.
59511
59512         * lib/same.c: Include <stdbool.h>, <limits.h>.
59513         (_POSIX_NAME_MAX): Define if not defined.
59514         (MIN): New macro.
59515         (same_name): If file names are silently truncated, report
59516         that the file names are the same if they are the same after
59517         the silent truncation.
59518
59519         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
59520         conversion function.
59521         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
59522         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
59523         longer needed.
59524
59525 2004-01-15  Jim Meyering  <jim@meyering.net>
59526
59527         Merge from coreutils.
59528
59529         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
59530         if no library is required.
59531         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
59532         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
59533         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
59534         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
59535         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
59536         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
59537         value, $ac_cv_search_crypt, if it's "none required".
59538         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
59539         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
59540         not gl_FUNC_GETLOADAVG.
59541         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
59542         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
59543
59544 2004-01-15  Jim Meyering  <jim@meyering.net>
59545
59546         Merge from coreutils.
59547
59548         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
59549         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
59550         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
59551
59552         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
59553         optional configure-time default.
59554
59555         * lib/version-etc.c (version_etc_copyright): Update copyright date.
59556
59557         * lib/xreadlink.c (xreadlink): Correct outdated comment.
59558
59559 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
59560
59561         Merge from coreutils.
59562
59563         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
59564         value, $ac_cv_search_nanosleep, if it's "none required".
59565
59566 2004-01-14  Paul Eggert  <eggert@twinsun.com>
59567
59568         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
59569         with like-named macro in fnmatch.c.
59570         (EXT): Use an internal constant instead.
59571
59572         Merge fnmatch patches from glibc.
59573         * lib/fnmatch.c (mbsinit): Remove define.
59574         Add libc_hidden_ver (__fnmatch, fnmatch).
59575         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
59576         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
59577
59578 2004-01-14  Karl Berry  <karl@gnu.org>
59579
59580         * config/install-sh: update from automake.
59581
59582 2004-01-13  Karl Berry  <karl@gnu.org>
59583
59584         * config/install-sh: update from automake.
59585
59586 2004-01-09  Karl Berry  <karl@gnu.org>
59587
59588         * config/install-sh: update from automake.
59589
59590 2004-01-05  Karl Berry  <karl@gnu.org>
59591
59592         * config/config.{sub,guess}: update from config.
59593
59594 2003-12-31  Karl Berry  <karl@gnu.org>
59595
59596         * config/depcomp: update from automake.
59597
59598 2003-12-14  Karl Berry  <karl@gnu.org>
59599
59600         * lib/config.charset: update from gettext-runtime.
59601
59602 2003-12-03  Paul Eggert  <eggert@twinsun.com>
59603
59604         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
59605         Bug reported by Alfred M. Szmidt.
59606
59607 2003-12-03  Bruno Haible  <bruno@clisp.org>
59608
59609         * m4/gettext.m4: Upgrade from gettext-0.13.
59610         * m4/po.m4: Upgrade from gettext-0.13.
59611         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
59612         * m4/intmax.m4: New file, from gettext-0.13.
59613         * m4/printf-posix.m4: New file, from gettext-0.13.
59614
59615 2003-11-29  Karl Berry  <karl@gnu.org>
59616
59617         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
59618
59619 2003-11-25  Paul Eggert  <eggert@twinsun.com>
59620             Bruno Haible  <bruno@clisp.org>
59621
59622         * lib/printf-parse.h: Don't include sys/types.h.
59623         (ARG_NONE): New macro.
59624         (char_directive): Change type of *arg_index fields to size_t.
59625         * lib/printf-parse.c: Don't include sys/types.h.
59626         (SSIZE_MAX): Remove macro.
59627         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
59628         Remove unnecessary overflow check.
59629         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
59630         fields.
59631
59632 2003-11-25  Bruno Haible  <bruno@clisp.org>
59633
59634         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
59635
59636 2003-11-25  Bruno Haible  <bruno@clisp.org>
59637
59638         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
59639         gt_TYPE_SSIZE_T.
59640
59641 2003-11-24  Paul Eggert  <eggert@twinsun.com>
59642
59643         * modules/alloca: Remove dependency on xalloc.
59644
59645 2003-11-24  Paul Eggert  <eggert@twinsun.com>
59646
59647         * lib/alloca.c: Remove dependency on xalloc module.
59648         (xalloc_die): Remove.
59649         (memory_full) [!defined emacs]: New macro.
59650         [!defined emacs]: Don't include xalloc.h.
59651         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
59652         address arithmetic overflows.  Change datatypes a bit to avoid
59653         unnecessary casts.
59654
59655 2003-11-22  Jim Meyering  <jim@meyering.net>
59656
59657         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
59658         s/size/size_t/.
59659
59660 2003-11-21  Karl Berry  <karl@gnu.org>
59661
59662         * config/config.{sub,guess}: update from config.
59663
59664 2003-11-18  Karl Berry  <karl@gnu.org>
59665
59666         * config/config.{sub,guess}: update from config.
59667
59668         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
59669
59670 2003-11-17  Paul Eggert  <eggert@twinsun.com>
59671
59672         * README: Mention that S+T cannot overflow if S is the size of
59673         an existing object and T is sufficiently small.
59674
59675 2003-11-17  Jim Meyering  <jim@meyering.net>
59676
59677         On systems without utime and without a utimes function capable of
59678         dealing with a NULL struct utimbuf* argument, this utime replacement
59679         could -- in unusual circumstances -- leak a file descriptor.
59680         * lib/utime.c: Include <unistd.h> and <errno.h>.
59681         (utime_null): Be sure to close `fd' and to preserve errno.
59682         Reported by Geoff Collyer via Arnold Robbins.
59683
59684 2003-11-17  Bruno Haible  <bruno@clisp.org>
59685
59686         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
59687         (Depends-on): Add xsize.
59688
59689 2003-11-17  Bruno Haible  <bruno@clisp.org>
59690
59691         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
59692
59693 2003-11-17  Bruno Haible  <bruno@clisp.org>
59694
59695         * lib/vasnprintf.c (alloca): Remove fallback definition.
59696         (freea): Remove definition.
59697         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
59698         Reported by Paul Eggert.
59699
59700 2003-11-16  Paul Eggert  <eggert@twinsun.com>
59701             Bruno Haible  <bruno@clisp.org>
59702
59703         Protect against address arithmetic overflow.
59704         * lib/printf-args.h: Include stddef.h.
59705         (arguments): Change type of field 'count' to size_t.
59706         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
59707         'unsigned int' where appropriate.
59708         * lib/printf-parse.h: Include sys/types.h.
59709         (char_directive): Change type of *arg_index fields to ssize_t.
59710         (char_directives): Change type of fields 'count', max_*_length to
59711         size_t.
59712         * lib/printf-parse.c: Include sys/types.h and xsize.h.
59713         (SSIZE_MAX): Define fallback value.
59714         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
59715         instead of 'int' where appropriate. Check a_allocated, d_allocated
59716         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
59717         * lib/vasnprintf.c: Include xsize.h.
59718         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
59719         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
59720         overflow. Avoid wraparound when converting a width or precision from
59721         decimal to binary.
59722
59723 2003-11-16  Bruno Haible  <bruno@clisp.org>
59724
59725         Update from GNU gettext.
59726         * lib/printf-parse.c: Generalize to it can be compiled for wide
59727         strings.
59728         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
59729         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
59730         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
59731         SNPRINTF): New macros.
59732         Don't include <alloca.h> if the file is used inside libintl.
59733         (local_wcslen): New function, for Solaris 2.5.1.
59734         (VASNPRINTF): Use it instead of wcslen.
59735
59736 2003-11-16  Bruno Haible  <bruno@clisp.org>
59737
59738         * lib/xsize.h (xmax): New function.
59739         (xsum, xsum3, xsum4): Declare as "pure" functions.
59740
59741 2003-11-12  Paul Eggert  <eggert@twinsun.com>
59742
59743         * modules/xalloc (Files): Undo latest change, since xalloc.h
59744         no longer needs SIZE_MAX or PTRDIFF_MAX.
59745
59746 2003-11-12  Paul Eggert  <eggert@twinsun.com>
59747
59748         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
59749         gl_PTRDIFF_MAX.
59750
59751 2003-11-12  Paul Eggert  <eggert@twinsun.com>
59752
59753         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
59754         "return", to pacify some unknown compiler.  Problem reported
59755         by Joerg Schilling.
59756
59757 2003-11-12  Paul Eggert  <eggert@twinsun.com>
59758
59759         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
59760         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
59761         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
59762         heuristic is just as accurate as far as we know, and it removes a
59763         dependency on size_max.m4 and ptrdiff_max.m4.
59764
59765 2003-11-11  Bruno Haible  <bruno@clisp.org>
59766
59767         * modules/xsize (Files): Add m4/size_max.m4.
59768         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
59769
59770 2003-11-11  Bruno Haible  <bruno@clisp.org>
59771
59772         * m4/size_max.m4: New file.
59773         * m4/ptrdiff_max.m4: New file.
59774         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
59775         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
59776         (gl_XALLOC): Invoke it.
59777
59778 2003-11-11  Bruno Haible  <bruno@clisp.org>
59779
59780         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
59781         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
59782         defined.
59783
59784 2003-11-10  Paul Eggert  <eggert@twinsun.com>
59785
59786         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
59787         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
59788         rejected some allocations of exactly SIZE_MAX - 2 bytes.
59789         From Bruno Haible.
59790         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
59791         not (size_t) -1, since it's defined here.
59792
59793 2003-11-09  Karl Berry  <karl@gnu.org>
59794
59795         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
59796
59797 2003-11-06  Paul Eggert  <eggert@twinsun.com>
59798
59799         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
59800         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
59801         Reject sizes of exactly SIZE_MAX bytes.
59802         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
59803         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
59804
59805 2003-11-05  Bruno Haible  <bruno@clisp.org>
59806
59807         * lib/xsize.h: Include limits.h, to avoid a possible collision with
59808         SIZE_MAX defined in <limits.h> on Solaris.
59809
59810 2003-11-04  Jim Meyering  <jim@meyering.net>
59811
59812         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
59813         variable names, rather than @VAR@.
59814         * modules/poll: Likewise.
59815
59816 2003-11-04  Bruno Haible  <bruno@clisp.org>
59817
59818         * modules/xsize: New file.
59819         * modules/linebreak: Depend on xsize.
59820         * MODULES.html.sh (func_all_modules): Add xsize.
59821
59822 2003-11-04  Bruno Haible  <bruno@clisp.org>
59823
59824         * m4/xsize.m4: New file.
59825
59826 2003-11-04  Bruno Haible  <bruno@clisp.org>
59827
59828         * lib/xsize.h: New file.
59829         * lib/linebreak.c: Include xsize.h.
59830         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
59831         argument for overflow.
59832         Suggested by Paul Eggert.
59833
59834 2003-11-03  Karl Berry  <karl@gnu.org>
59835
59836         * config/config.{guess,sub}: update from config.
59837
59838 2003-11-03  Jim Meyering  <jim@meyering.net>
59839
59840         * modules/userspec (lib_SOURCES): Add userspec.h.
59841         (Include): Add "userspec.h".
59842         Improve description.
59843
59844 2003-11-03  Jim Meyering  <jim@meyering.net>
59845
59846         * lib/userspec.c: Include "userspec.h".
59847         * lib/userspec.h: New file.
59848
59849 2003-11-03  Bruno Haible  <bruno@clisp.org>
59850
59851         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
59852
59853 2003-11-03  Bruno Haible  <bruno@clisp.org>
59854
59855         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
59856         available, to avoid (extremely rare) race condition.
59857         Suggested by Paul Eggert.
59858
59859 2003-11-02  Karl Berry  <karl@gnu.org>
59860
59861         * config/srclist.txt (vasprintf.c): sync broken, sigh.
59862
59863 2003-10-31  Paul Eggert  <eggert@twinsun.com>
59864
59865         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
59866         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
59867         (read_filesystem_list): Set and use me_type_malloced.
59868         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
59869         whatever the type happens to be), for brevity and consistency.
59870         Check for size calculation overflow on Alphas running OSF/1.
59871
59872 2003-10-31  Jim Meyering  <jim@meyering.net>
59873
59874         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
59875
59876         * lib/linebuffer.c: Include <string.h> for declaration of memset.
59877
59878 2003-10-30  Paul Eggert  <eggert@twinsun.com>
59879             Bruno Haible  <bruno@clisp.org>
59880
59881         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
59882         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
59883
59884 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
59885
59886         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
59887         netbsd*-gnu*.  Suggested by Robert Millan.
59888
59889 2003-10-29  Paul Eggert  <eggert@twinsun.com>
59890
59891         * modules/group-member: Depend on stdbool.
59892
59893 2003-10-29  Paul Eggert  <eggert@twinsun.com>
59894
59895         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
59896
59897 2003-10-29  Paul Eggert  <eggert@twinsun.com>
59898
59899         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
59900         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
59901         after the 'gnu' in these cases.  This fixes some bugs in the
59902         previous change, and is based on suggestions by Robert Millan.
59903
59904 2003-10-29  Paul Eggert  <eggert@twinsun.com>
59905
59906         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
59907         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
59908         no longer needed.
59909         * lib/quotearg.c (quotearg_n_options): Use it.
59910         * lib/group-member.c: Include <stdbool.h>.
59911         (free_group_info): Arg is now const *; don't free arg.
59912         (get_group_info): Now returns bool and accepts struct group_info *,
59913         rather than returning a malloc'ed struct group_info *.
59914         All uses changed.  Check for overflow in internal size calculation.
59915
59916         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
59917         rather than xmalloc/xrealloc.
59918         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
59919         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
59920         conformance bug: the old code used a pointer after freeing the
59921         storage that it addressed.
59922         * lib/hash.c (hash_initialize): Simplify the code by using
59923         xalloc_oversized rather than doing it by hand.
59924         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
59925         the buffer preserved.  Use free and xmalloc instead.
59926         * lib/quotearg.c (quotearg_n_options): Likewise.
59927         Use a simpler test for size overflow.  Don't use xalloc_oversized
59928         because unsigned int might be wider than size_t (!); this suggests
59929         that we should switch from unsigned int to size_t for slot numbers.
59930
59931 2003-10-28  Paul Eggert  <eggert@twinsun.com>
59932
59933         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
59934         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
59935         NetBSD kernels.  Requested by Richard Stallman.
59936
59937 2003-10-27  Paul Eggert  <eggert@twinsun.com>
59938
59939         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
59940         to allocate the returned structure.  Do not allocate a subarray,
59941         as x2nrealloc will do that.
59942         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
59943         instead of xnrealloc.
59944         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
59945
59946 2003-10-27  Bruno Haible  <bruno@clisp.org>
59947
59948         * lib/stdbool_.h: Better support for BeOS.
59949
59950 2003-10-26  Paul Eggert  <eggert@twinsun.com>
59951
59952         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
59953         now uses inline.
59954
59955 2003-10-26  Paul Eggert  <eggert@twinsun.com>
59956
59957         * lib/xalloc.h (xalloc_oversized): New static inline function, for
59958         callers that want to do their own size-overflow checking.  Include
59959         <stdbool.h>, since xalloc_oversized returns bool.
59960         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
59961         to use xalloc_oversized.
59962
59963         Add two functions x2realloc, x2nrealloc, for programs that grow
59964         arrays dynamically by doubling their sizes.
59965         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
59966         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
59967         New functions.
59968
59969         Port to C99 semantics for 'inline' of external functions.
59970         Bug reported by Bruno Haible.
59971         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
59972         with the old contents of xnmalloc.
59973         (xnmalloc, xmalloc): Use it.
59974         (xnrealloc_inline): New static inline function,
59975         with the old contents of xnrealloc.
59976         (xnrealloc, xrealloc): Use it.
59977
59978         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
59979         that.
59980
59981 2003-10-26  Karl Berry  <karl@gnu.org>
59982
59983         * config/srclist.txt (COPYING.DOC): no longer available from
59984         /gd/gnuorg; don't know where the ultimate source is.
59985
59986 2003-10-25  Paul Eggert  <eggert@twinsun.com>
59987
59988         Fix several address-calculation bugs in the hash modules,
59989         plus some minor code cleanup.
59990
59991         * lib/hash.h: Include <stdbool.h>, for bool.
59992         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
59993         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
59994         hash_get_n_entries, hash_get_max_bucket_length,
59995         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
59996         hash_rehash): Use size_t rather than unsigned.
59997         * lib/hash.c (struct hash_table, hash_get_n_buckets,
59998         hash_get_n_buckets_used, hash_get_n_entries,
59999         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
60000         hash_get_entries, hash_do_for_each, hash_string, is_prime,
60001         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
60002         Likewise.
60003         (SIZE_MAX): Define if not defined.
60004         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
60005         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
60006         hash_print):
60007         Use const * when possible.
60008         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
60009         (check_tuning): Fix bug: if tuning parameters were very close to
60010         0 or 1, rounding errors could have caused subscript violations.
60011         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
60012         (hash_initialize): Add 'fail:' label
60013         to free table and return NULL, and use it to simplify code.
60014         Use calloc rather than clearing the storage ourself.
60015         (hash_initialize, hash_rehash): Check for arithmetic overflow in
60016         buffer size calculations.
60017         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
60018         Include <stddef.h>, for size_t.
60019         * lib/hash-pjw.c (hash_pjw): Likewise.
60020         Switch to method described by Bruno Haible.
60021         Include <limits.h>, for CHAR_BIT.
60022         (SIZE_BITS): New macro.
60023
60024 2003-10-23  Paul Eggert  <eggert@twinsun.com>
60025
60026         * m4/getline.m4 (AM_FUNC_GETLINE):
60027         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
60028         hosts.  Problem reported by Derek Robert Price in
60029         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
60030         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
60031         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
60032
60033 2003-10-21  Paul Eggert  <eggert@twinsun.com>
60034
60035         * lib/getndelim2.c (getndelim2): When size calculation overflows,
60036         ceiling the allocation at NMAX bytes rather than silently
60037         discarding input bytes before NMAX is reached.  This makes
60038         a difference only if NMAX exceeds SIZE_MAX / 2.
60039
60040         * lib/obstack.c: Merge from glibc.
60041         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
60042         Add libc_hidden_def (_obstack_newchunk).
60043         (_obstack_free) [! defined _LIBC]: Remove.
60044         [defined _LIBC]: Make a strong alias from obstack_free, rather than
60045         a clone of the function body.
60046         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
60047         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
60048
60049         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
60050         glibc.
60051         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
60052         arg to memcpy.
60053
60054         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
60055         (obstack_ptr_grow_fast, obstack_int_grow_fast):
60056         Don't use lvalue casts, as GCC plans to remove support for them
60057         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
60058         was also present in the non-GCC version, indicating that this
60059         code had always been buggy and had never been widely used.
60060         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
60061         Use the fast variant of each macro, rather than copying the
60062         definiens of the fast variant; that way, we'll be more likely to
60063         catch future bugs in the fast variants.
60064
60065 2003-10-20  Bruno Haible  <bruno@clisp.org>
60066
60067         * modules/wait-process: New file.
60068         * MODULES.html.sh (func_all_modules): Add wait-process.
60069
60070 2003-10-20  Bruno Haible  <bruno@clisp.org>
60071
60072         * m4/wait-process.m4: New file.
60073
60074 2003-10-20  Bruno Haible  <bruno@clisp.org>
60075
60076         * lib/wait-process.h: New file, from GNU gettext.
60077         * lib/wait-process.c: New file, from GNU gettext.
60078
60079 2003-10-19  Jim Meyering  <jim@meyering.net>
60080
60081         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
60082         HPUX 10.20.
60083
60084 2003-10-18  Karl Berry  <karl@gnu.org>
60085
60086         * config/config.guess: update from config.
60087
60088 2003-10-16  Paul Eggert  <eggert@twinsun.com>
60089
60090         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
60091         (getgroups): First arg is int, not size_t.
60092         Don't let 'free' mangle errno.
60093
60094 2003-10-16  Paul Eggert  <eggert@twinsun.com>
60095
60096         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
60097
60098 2003-10-16  Karl Berry  <karl@gnu.org>
60099
60100         * config/config.{guess,sub}: update from config.
60101
60102 2003-10-16  Jim Meyering  <jim@meyering.net>
60103
60104         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
60105         memcpy.
60106
60107 2003-10-15  Paul Eggert  <eggert@twinsun.com>
60108
60109         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
60110         (SIZE_MAX): Remove.
60111         (new_exclude, add_exclude_file): Initial size no longer needs to
60112         be a power of 2.
60113         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
60114         our own address arithmetic overflow checking.
60115
60116         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
60117         (fnmatch): Do not alloca more than 2000 wide characters;
60118         instead, use malloc for large buffers.
60119         Check for address arithmetic overflow, and return -1
60120         with errno set to ENOMEM in that case.
60121         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
60122         (NEW_PATTERN): Do not alloca more than 8000 bytes;
60123         instead, return -1.  Check for address arithmetic overflow.
60124
60125 2003-10-14  Paul Eggert  <eggert@twinsun.com>
60126
60127         Handle invalid suffixes and overflow independently, so that
60128         callers can treat them independently as needed.  Fix some bugs in
60129         suffix handling, e.g., "100k@" was not diagnosed as an invalid
60130         suffix for a human-readable blocksize.  The major caller-visible
60131         change is the addition of a new
60132         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
60133         that both overflow and suffix chars were found.
60134
60135         * lib/human.c (humblock): Don't check separately for invalid suffix
60136         char; that is xstrtoumax's job (now that its bug is fixed).
60137         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
60138         INTMAX_MAX]: New macros.
60139         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
60140         TYPE_MAXIMUM): New macros.
60141         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
60142         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
60143         if overflow occurs, as it's what __strtol does and it's more useful
60144         in practice.
60145         (__xstrtol): If __strtol reports some error other than ERANGE,
60146         reflect it to the caller as LONGINT_INVALID.  If it reports
60147         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
60148         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
60149         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
60150         value.
60151         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
60152         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
60153         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
60154         [defined UINTMAX_MAX]: New macros.
60155
60156 2003-10-14  Bruno Haible  <bruno@clisp.org>
60157
60158         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
60159
60160 2003-10-14  Bruno Haible  <bruno@clisp.org>
60161
60162         * m4/sig_atomic_t: New file, from GNU gettext.
60163         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
60164
60165 2003-10-14  Bruno Haible  <bruno@clisp.org>
60166
60167         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
60168         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
60169         Also use volatile where needed.
60170
60171 2003-10-12  Paul Eggert  <eggert@twinsun.com>
60172
60173         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
60174         Change maintainer from Bruno Haible to 'all'.
60175
60176 2003-10-12  Paul Eggert  <eggert@twinsun.com>
60177
60178         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
60179
60180 2003-10-12  Paul Eggert  <eggert@twinsun.com>
60181
60182         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
60183         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
60184         and define in terms of the other primitives.
60185         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
60186         (SIZE_MAX): Define if not already defined.
60187         (array_size_overflow): New function.
60188         (xalloc_die): Abort instead of exiting if 'error' returns.
60189         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
60190         (xmalloc, xrealloc): Use them.
60191         (xcalloc): Check for address arithmetic overflow.
60192         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
60193         a bit faster than strcpy.
60194
60195 2003-10-10  Simon Josefsson  <jas@extundo.com>
60196
60197         * modules/argp (Depends-on): Add restrict and strcase.
60198
60199 2003-10-10  Simon Josefsson  <jas@extundo.com>
60200
60201         * m4/argp.m4: Add AC_C_INLINE.
60202
60203 2003-10-08  Paul Eggert  <eggert@twinsun.com>
60204
60205         Merge getpass from libc, plus a few fixes.
60206
60207         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
60208         Include <stdbool.h>.
60209         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
60210         __fsetlocking to empty.
60211         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
60212         do include <bits/libc-lock.h>.
60213         Do not include <fcntl.h>; not needed.
60214         [_LIBC]: Include <wchar.h>.
60215         (NOTCANCEL_MODE): New macro.
60216         (flockfile, funlockfile) [_LIBC]: New macros.
60217         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
60218         [!_LIBC]: New macros.
60219         (call_fclose): New function.
60220         (getpass): Use it.  Save tty stream separately; this simplifies the
60221         code and makes it more reliable if stdin happens to equal stdout.
60222         Invoke __fsetlocking on tty.
60223         Handle thread cancellation if needed.
60224         Namespace cleanup (use __tcgetattr, __getline).
60225         Use bool for Booleans.
60226         [USE_IN_LIBIO]: Handle wide streams.
60227         [!_LIBC]: Unconditionally do the fseek, since we don't know what
60228         stream might go where.
60229
60230         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
60231         doesn't have to include <stdio.h> before us.
60232         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
60233         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
60234         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
60235         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
60236         if not declared, so that we can use getpass.c code from libc without
60237         rewriting it.
60238         (flockfile, ftrylockfile, funlockfile): New macros.
60239
60240 2003-10-08  Paul Eggert  <eggert@twinsun.com>
60241
60242         * modules/getpass: Depend on stdbool.
60243
60244 2003-10-08  Paul Eggert  <eggert@twinsun.com>
60245
60246         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
60247
60248 2003-10-07  Karl Berry  <karl@gnu.org>
60249
60250         * config/config.{guess,sub}: update from config.
60251
60252 2003-10-06  Jim Meyering  <jim@meyering.net>
60253             Bruno Haible  <bruno@clisp.org>
60254
60255         This lets translators provide better translations for the
60256         "Written by ..." part of --version output.
60257         * lib/version-etc.h: Include stdarg.h.
60258         (version_etc_copyright): Declare as readonly.
60259         (version_etc): Make this function variadic with a NULL-terminated list
60260         of author name strings.
60261         (version_etc_va): New declaration.
60262         * lib/version-etc.c: Include stdarg.h, stdlib.h.
60263         (version_etc_copyright): Declare as readonly.
60264         (version_etc_va): New function. Provide a different translatable string
60265         for each possible number of authors < 10. Abbreviate when there are 10
60266         authors or more.
60267         (version_etc): Make this function variadic. Call version_etc_va.
60268         Suggestion from Gary V. Vaughan.
60269
60270         * lib/long-options.h (parse_long_options): Change prototype: the
60271         authors string is moved to the end and becomes variadic.
60272         * lib/long-options.c: Include stdarg.h.
60273         (parse_long_options): Make this function variadic, too.
60274         Call version_etc_va, not version_etc.
60275
60276 2003-10-06  Bruno Haible  <bruno@clisp.org>
60277
60278         * modules/version-etc-2: Remove file.
60279         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
60280
60281 2003-10-06  Bruno Haible  <bruno@clisp.org>
60282
60283         * modules/fatal-signal: New file.
60284         * MODULES.html.sh (func_all_modules): Add fatal-signal.
60285
60286 2003-10-06  Bruno Haible  <bruno@clisp.org>
60287
60288         * m4/fatal-signal.m4: New file.
60289         * m4/signalblocking.m4: New file, from GNU gettext.
60290
60291 2003-10-06  Bruno Haible  <bruno@clisp.org>
60292
60293         * lib/version-etc-2.h: Remove file.
60294         * lib/version-etc-2.c: Remove file.
60295
60296 2003-10-06  Bruno Haible  <bruno@clisp.org>
60297
60298         * lib/fatal-signal.h: New file, from GNU gettext.
60299         * lib/fatal-signal.c: New file, from GNU gettext.
60300
60301 2003-10-05  Paul Eggert  <eggert@twinsun.com>
60302
60303         * README: Rework advice for preventing empty .o files.
60304         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
60305         not <sys/types.h>.
60306
60307 2003-10-04  Karl Berry  <karl@gnu.org>
60308
60309         * lib/argp*: update from libc.
60310
60311 2003-10-04  Karl Berry  <karl@gnu.org>
60312
60313         * config/config.{guess,sub}: update from config.
60314
60315 2003-10-02  Bruno Haible  <bruno@clisp.org>
60316
60317         * modules/lchown (Include): Add lchown.h.
60318         * modules/time_r (Include): Use "..." syntax.
60319         * modules/xgetdomainname (Include): Add xgetdomainname.h.
60320
60321 2003-10-01  Simon Josefsson  <jas@extundo.com>
60322
60323         * MODULES.html.sh (func_all_modules): Move gethostname from section
60324         'based on' to section 'lacking' POSIX:2001.
60325
60326 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
60327
60328         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
60329         to output mode on the same stream.
60330
60331 2003-09-29  Paul Eggert  <eggert@twinsun.com>
60332
60333         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
60334         Fix arg typo in previous patch.
60335
60336 2003-09-28  Jim Meyering  <jim@meyering.net>
60337
60338         * lib/error.c: Correct cpp indentation.
60339
60340 2003-09-27  Paul Eggert  <eggert@twinsun.com>
60341
60342         * modules/free: New file.
60343
60344 2003-09-27  Paul Eggert  <eggert@twinsun.com>
60345
60346         * m4/free.m4: New file.
60347
60348 2003-09-27  Paul Eggert  <eggert@twinsun.com>
60349
60350         * lib/minmax.h (MIN, MAX)
60351         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
60352         Omit the special code that used __typeof__, since we worry that
60353         it could be more trouble than it's worth.  See:
60354         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
60355         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
60356
60357         * lib/free.c: New file.
60358
60359 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
60360
60361         Trivial fixes to Makefile.am parts of module listings.
60362         * modules/strstr: Append strstr.h to lib_SOURCES.
60363         * modules/strcase: Likewise, for strcase.h.
60364
60365 2003-09-27  Karl Berry  <karl@gnu.org>
60366
60367         * config/mkinstalldirs: update from automake.
60368
60369 2003-09-26  Paul Eggert  <eggert@twinsun.com>
60370
60371         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
60372         (error_tail): Do not loop, reallocating temporary buffer, since
60373         the output cannot contain more wide characters than the input
60374         contains bytes, the size must be big enough already.  This avoids
60375         one potential size overflow calculation.  Check for size overflow
60376         when calculating temporary buffer size.  Free temporary buffer
60377         when done, if it was allocated with malloc; this plugs a memory
60378         leak.  Remove casts from void * to pointers, that are no longer
60379         needed now that we're assuming C89 or better.
60380
60381         Merge error changes from glibc.
60382
60383         * lib/error.c, error.h: Update copyright notice header to match glibc.
60384         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
60385         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
60386         Disable cancellation while printing error.
60387         * lib/error.h: Prepend __ to parameter names.
60388
60389 2003-09-26  Jim Meyering  <jim@meyering.net>
60390
60391         * lib/error.c (error_tail): Move some declarations
60392         into inner scope where the local variables are used.
60393
60394 2003-09-26  Bruno Haible  <bruno@clisp.org>
60395
60396         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
60397         stpncpy().
60398         Don't define stpncpy through config.h; it's now done through stpncpy.h.
60399
60400 2003-09-26  Bruno Haible  <bruno@clisp.org>
60401
60402         * lib/stpncpy.h (gnu_stpncpy): New declaration.
60403         (stpncpy): Define as alias for gnu_stpncpy.
60404         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
60405
60406 2003-09-25  Simon Josefsson  <jas@extundo.com>
60407
60408         * lib/xgetdomainname.h: New file.
60409         * lib/xgetdomainname.c: New file.
60410
60411 2003-09-25  Simon Josefsson  <jas@extundo.com>
60412             Bruno Haible  <bruno@clisp.org>
60413
60414         * modules/getdomainname: New file.
60415         * modules/xgetdomainname: New file.
60416         * MODULES.html.sh (func_all_modules): Add getdomainname,
60417         xgetdomainname.
60418
60419 2003-09-25  Simon Josefsson  <jas@extundo.com>
60420             Bruno Haible  <bruno@clisp.org>
60421
60422         * m4/getdomainname.m4: New file.
60423
60424 2003-09-25  Simon Josefsson  <jas@extundo.com>
60425             Bruno Haible  <bruno@clisp.org>
60426
60427         * lib/getdomainname.h: New file.
60428         * lib/getdomainname.c: New file.
60429
60430 2003-09-25  Karl Berry  <karl@gnu.org>
60431
60432         * lib/argp-fmtstream.c, argp-help.c: update from libc.
60433
60434 2003-09-25  Karl Berry  <karl@gnu.org>
60435
60436         * config/install-sh: update from automake.
60437
60438 2003-09-25  Bruno Haible  <bruno@clisp.org>
60439
60440         * modules/version-etc-2: New file, from modules/version-etc with
60441         modifications.
60442         * MODULES.html.sh (func_all_modules): Add version-etc-2.
60443
60444 2003-09-25  Bruno Haible  <bruno@clisp.org>
60445
60446         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
60447         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
60448
60449 2003-09-24  Simon Josefsson  <jas@extundo.com>
60450
60451         * modules/xgethostname: Add xgethostname.h.
60452
60453 2003-09-24  Paul Eggert  <eggert@twinsun.com>
60454
60455         * lib/linebuffer.c (freebuffer): Don't free the argument, just
60456         the buffer associated with the argument.  Bug reported by
60457         Simon Josefsson.
60458
60459 2003-09-24  Paul Eggert  <eggert@twinsun.com>
60460
60461         * README: Document assumptions that 'int' is at least 32 bits
60462         wide, that integer arithmetic is 2's complement without overflow,
60463         that there are no holes in integer values, that adding sizes of
60464         two nonoverlapping objects can't overflow, and that all-bits-zero
60465         yields scalar zero.  Fix spelling and capitalization typos.
60466
60467 2003-09-19  Karl Berry  <karl@gnu.org>
60468
60469         * lib/argp.h: update from libc.
60470
60471 2003-09-17  Paul Eggert  <eggert@twinsun.com>
60472
60473         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
60474         to avoid spurious warnings like "AC_RUN_IFELSE was called before
60475         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
60476
60477 2003-09-17  Paul Eggert  <eggert@twinsun.com>
60478
60479         * gnulib-tool: Use "test -h", not "test -L", for portability
60480         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
60481         (tags_regexp): Remove, since \| doesn't conform to POSIX.
60482         (sed_extract_prog): Issue s commands one-by-one, rather than
60483         using \| in one s command.
60484
60485 2003-09-16  Paul Eggert  <eggert@twinsun.com>
60486
60487         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
60488         input error, instead of returning NULL the next time we are called
60489         (and therefore losing track of errno).
60490
60491 2003-09-16  Bruno Haible  <bruno@clisp.org>
60492
60493         * gnulib-tool (func_create_testdir): Warn about duplicated
60494         dependencies.
60495
60496 2003-09-15  Paul Eggert  <eggert@twinsun.com>
60497
60498         * modules/argmatch, modules/fatal, modules/obstack,
60499         modules/xalloc, modules/xgethostname: Sort dependencies by
60500         importance, not alphabetically.
60501
60502 2003-09-15  Paul Eggert  <eggert@twinsun.com>
60503
60504         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
60505         fails, so that the caller gets the proper errno.
60506
60507         * lib/readutmp.c (read_utmp): Likewise.
60508         Check for fstat error.  Close stream and free storage
60509         when failing.
60510
60511 2003-09-14  Karl Berry  <karl@gnu.org>
60512
60513         * config/srclist.txt (strdup.c): disable for c89 changes.
60514
60515 2003-09-14  Jim Meyering  <jim@meyering.net>
60516
60517         * lib/getloadavg.c: Correct cpp indentation.
60518         * lib/strdup.c: Likewise.
60519         * lib/vasnprintf.c: Likewise.
60520
60521 2003-09-14  Bruno Haible  <bruno@clisp.org>
60522
60523         * modules/fwriteerror: New file.
60524         * MODULES.html.sh (func_all_modules): Add fwriteerror.
60525
60526 2003-09-14  Bruno Haible  <bruno@clisp.org>
60527
60528         * lib/fwriteerror.h: New file.
60529         * lib/fwriteerror.c: New file.
60530
60531 2003-09-12  Paul Eggert  <eggert@twinsun.com>
60532
60533         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
60534         modules/xgethostname, modules/xalloc: Depend on exit.
60535
60536 2003-09-12  Paul Eggert  <eggert@twinsun.com>
60537
60538         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
60539
60540         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
60541         and AC_MINIX, too, so that their extensions are available.
60542
60543         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
60544         This macro has been superseded by gl_BACKUPFILE.
60545
60546         More patches to assume C89 or better.
60547
60548         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
60549
60550         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
60551         unconditionally.
60552         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
60553         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
60554         Include <string.h>, <stdlib.h> unconditionally.
60555         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
60556         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
60557         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
60558         headers or for string.h.
60559         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
60560         or strtoul.
60561
60562         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
60563         headers.
60564         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
60565         * m4/userspec.m4 (gl_USERSPEC): Likewise.
60566         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
60567         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
60568         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
60569         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
60570         memcpy, memset.
60571         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
60572         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
60573         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
60574         strtol.
60575         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
60576         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
60577         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
60578         strtoul.
60579
60580 2003-09-12  Paul Eggert  <eggert@twinsun.com>
60581
60582         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
60583         * lib/obstack.c [!defined _LIBC]: Likewise.
60584         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
60585         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
60586         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
60587
60588         More changes to assume C89 or better.
60589
60590         * lib/error.c (error_tail): Assume vprintf.
60591
60592         * lib/argmatch.c (getenv): Remove decl.
60593         * lib/progreloc.c (get_full_program_name): Define via prototype.
60594         * lib/setenv.c (clearenv): Likewise.
60595         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
60596         needed.
60597         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
60598         (malloc, memcpy): Remove decls.
60599         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
60600         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
60601         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
60602         (memcpy): Remove macro.
60603         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
60604         (__P): Remove.  All uses removed.
60605         (PTR): Remove.  All uses changed to void *.
60606         (CHAR_BIT, NULL): Remove.
60607         (spaces, zeros, memset_space, memset_zero)
60608         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
60609         Remove.
60610         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
60611         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
60612         Define with prototype.
60613         Remove now-unnecessary prototype decl.
60614         (extra_args_spec): Assume ANSI C.  All uses changed.
60615         (extra_args_spec_iso): Remove.
60616         (my_strftime, emacs_strftimeu): Define via prototype.
60617         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
60618         unconditionally.
60619         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
60620         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
60621         (strtoul, strtol): Remove decls.
60622         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
60623         LONG_MAX): Remove.
60624         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
60625         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
60626         (LOCALE_PARAM_PROTO): New macro.
60627         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
60628         (INTERNAL (strtol), strtol): Define with a prototype.
60629         (PARAMS): Remove.  All uses removed.
60630         * lib/tempname.c: Include <string.h> unconditionally.
60631         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
60632         * lib/xgethostname.c (main): Define with a prototype.
60633         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
60634         Include <stdlib.h> unconditionally.
60635         (calloc, malloc, realloc, free): Remove decls.
60636         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
60637         Include <stdlib.h> unconditionally.  Sort include file names.
60638         (strtod): Remove.
60639         (xstrtod): Define with a prototype.
60640         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
60641         (strtol, strtoul): Remove decls.
60642
60643 2003-09-11  Paul Eggert  <eggert@twinsun.com>
60644
60645         More patches to assume C89 or better.
60646         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
60647         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
60648         string.h, memchr, STDC_HEADERS.
60649
60650 2003-09-11  Paul Eggert  <eggert@twinsun.com>
60651
60652         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
60653         Include <stdlib.h>, <string.h> unconditionally.
60654         Remove now-unnecessary cast to char *.
60655         * lib/strnlen.c: Include <string.h> unconditionally.
60656         * lib/yesno.c (yesno): Define with a prototype.
60657
60658 2003-09-11  Bruno Haible  <bruno@clisp.org>
60659
60660         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
60661
60662 2003-09-10  Jim Meyering  <jim@meyering.net>
60663
60664         * lib/error.c: Correct indentation of cpp directives.
60665
60666 2003-09-10  Bruno Haible  <bruno@clisp.org>
60667
60668         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
60669         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
60670         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
60671         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
60672         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
60673         <stdlib.h> and <string.h> checks.
60674         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
60675         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
60676
60677 2003-09-10  Bruno Haible  <bruno@clisp.org>
60678
60679         * lib/strcspn.c: Include <string.h> unconditionally.
60680         * lib/strpbrk.c: Include <string.h> unconditionally.
60681         * lib/strstr.c: Include <string.h> unconditionally.
60682         * lib/unicodeio.c: Include <string.h> unconditionally.
60683         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
60684         * lib/unsetenv.c: Likewise.
60685         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
60686         * lib/yesno.c: Include <stdlib.h> unconditionally.
60687         (rpmatch): Add prototype.
60688
60689 2003-09-09  Paul Eggert  <eggert@twinsun.com>
60690
60691         More patches to assume C89 or better.
60692         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
60693         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
60694         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
60695         or for string.h.
60696         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
60697         stdlib.h.
60698         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
60699         C headers.
60700         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
60701         string.h.
60702         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
60703         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
60704         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
60705         or for string.h.
60706         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
60707         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
60708         C headers.
60709         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
60710         memcpy.
60711         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
60712         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
60713         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
60714         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
60715         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
60716         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
60717         string.h, free.
60718         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
60719         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
60720         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
60721         C headers, or for string.h.
60722         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
60723         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
60724         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
60725         headers, memory.h, stdlib.h, string.h, strings.h.
60726         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
60727         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
60728         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
60729         strchr.
60730         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
60731         headers, memory.h, string.h.
60732         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
60733         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
60734         free.
60735         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
60736         headers.
60737         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
60738         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
60739         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
60740         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
60741         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
60742
60743 2003-09-09  Paul Eggert  <eggert@twinsun.com>
60744
60745         More K&R removal.
60746
60747         * lib/acosl.c (main): Use a prototype.
60748         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
60749         tanl.c: Likewise.
60750
60751         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
60752
60753         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
60754         (getopt, etopt_long, getopt_long_only, _getopt_internal)
60755         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
60756         with a prototype.
60757         * lib/getopt.c (const): Remove macro.
60758         Include <string.h> unconditionally.
60759         (my_index): Remove; all uses changed to strchr.
60760         (strlen): Remove decl.
60761         (exchange): Remove forward decl; no longer needed.
60762         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
60763         Define with prototype.
60764         * lib/getopt1.c (const): Remove macro.
60765         (getopt_long, getopt_long_only, main): Define with prototype.
60766
60767         * lib/getugroups.c: Include <string.h> unconditionally.
60768
60769         * lib/getusershell.c: Include <stdlib.h> unconditionally.
60770         (getusershell, setusershell, endusershell, readname, main):
60771         Define with prototypes.
60772
60773         * lib/group-member.c: Include group-member.h first.
60774         Include <stdlib.h> unconditionally.
60775
60776         * lib/hard-locale.c: Include hard-locale.h first.
60777         Include <stdlib.h>, <string.h> unconditionally.
60778
60779         * lib/hash.c (free, malloc): Remove decls.
60780         Include <stdlib.h> unconditionally.
60781
60782         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
60783         (getenv): Do not declare.
60784
60785         * lib/idcache.c: Include <string.h> unconditionally.
60786
60787         * lib/long-options.c: Include long-options.h first, to test interface.
60788         Include <stdlib.h> unconditionally.
60789
60790         * lib/makepath.c: Include makepath.h first, to test interface.
60791         Include <stdlib.h> and <string.h> unconditionally.
60792
60793         * lib/linebuffer.c: Include <stdlib.h>.
60794         (free): Remove decl.
60795
60796         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
60797         stddef.h. rpl_malloc returns void *, not char *.
60798         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
60799         prototype.
60800
60801         * lib/md5.h: Include <limits.h> unconditionally.
60802         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
60803         (__P): Remove; all uses removed.
60804         * lib/md5.c: Include "md5.h" first.
60805         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
60806         md5_buffer, md5_process_bytes, md5_process_block):
60807         Define with prototypes.
60808         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
60809         * lib/sha.c: Include "sha.h" first.
60810         Include <stdlib.h>, <string.h> unconditionally.
60811
60812         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
60813         * lib/memcmp.c (__ptr_t): Likewise.
60814         * lib/memrchr.c (__ptr_t): Likewise.
60815         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
60816         Include <string.h> unconditionally.
60817         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
60818         * lib/memchr.c: Include <stdlib.h> unconditionally.
60819         * lib/memchr.c (LONG_MAX): Remove.
60820         * lib/memrchr.c (LONG_MAX): Likewise.
60821         * lib/memchr.c (__memchr): Define via a prototype.
60822         * lib/memrchr.c (__memrchr): Likewise.
60823         * lib/memcmp.c (__P): Remove, and remove all uses.
60824         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
60825         Remove forward decls; no longer needed.
60826         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
60827         Use types required by C89 in prototype.
60828
60829         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
60830         * lib/savedir.c: Likewise.
60831         * lib/mkdir.c (free): Remove decl.
60832         * lib/rmdir.c (rmdir): Define with a prototype.
60833         * lib/savedir.c: Include savedir.h first, to test interface.
60834
60835         * lib/mktime.c (STDC_HEADERS): Remove.
60836         Include <stdlib.h>, <string.h> unconditionally.
60837
60838         * lib/modechange.c: Include <stdlib.h> unconditionally.
60839         (malloc): Remove decl.
60840
60841         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
60842         (free): Remove decl.
60843
60844         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
60845         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
60846         (This type really should be intptr_t, but that's a C99ism.)
60847         (_obstack_memcpy): Remove: all uses changed to memcpy.
60848         Include <string.h> unconditionally.
60849         (struct obstack): Assume __STDC__ for types of members
60850         chunkfun, freefun, extra_arg.
60851         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
60852         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
60853         obstack_begin, obstack_specify_allocation,
60854         obstack_specify_allocation_with_arg, obstack_chunkfun,
60855         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
60856         Remove unprototyped decls and the macros that use them.
60857         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
60858         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
60859         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
60860         (defined __STDC__ && __STDC__)]:
60861         Remove nonprototyped code.
60862         Include <stdlib.h> unconditionally.
60863         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
60864         _obstack_allocated_p, _obstack_free, obstack_free,
60865         _obstack_memory_used, print_and_abort):
60866         Define using prototypes.
60867         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
60868         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
60869         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
60870         obstack_next_free, obstack_object_size, obstack_room) [0]:
60871         Remove unused, unprototyped code.
60872
60873         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
60874
60875         * lib/physmem.c (physmem_total, physmem_available, main): Define
60876         with prototypes.
60877
60878         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
60879         (main): Define with a prototype.
60880
60881         * lib/posixver.c (getenv): Remove decl.
60882
60883         * lib/putenv.c (malloc): Returns void *, not char *.
60884         Include <string.h> unconditionally.
60885         (strchr, memcpy, NULL): Do not define.
60886
60887         * lib/readtokens.c: Include readtokens.h first, to test interface.
60888         Include <stdlib.h>, <string.h> unconditionally.
60889         (init_tokenbuffer): Define with a prototype.
60890
60891         * lib/regex.c (PARAMS): Remove.  All uses removed.
60892         All uses of _RE_ARGS removed, too.
60893         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
60894         unconditionally.
60895         (bzero): Assume memset exists.
60896         (memcmp, memcpy, NULL): Remove.
60897         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
60898         char, or assignments to local vars of type signed char.
60899         (init_syntax_once, PREFIX(extract_number_and_incr),
60900         PREFIX(print_partial_compiled_pattern),
60901         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
60902         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
60903         PREFIX(regex_grow_registers), PREFIX(regex_compile),
60904         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
60905         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
60906         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
60907         wcs_compile_range, byte_compile_range, truncate_wchar,
60908         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
60909         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
60910         count_mbs_length, wcs_re_match_2_internal,
60911         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
60912         PREFIX(alt_match_null_string_p),
60913         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
60914         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
60915         regfree, PREFIX(extract_number)): Define with prototype.  Remove
60916         now-unnecessary declaration, if any.
60917         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
60918         regcomp, regexec):
60919         Remove now-unnecessary casts among pointer types.
60920         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
60921
60922         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
60923         (free): Remove decl.
60924
60925         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
60926
60927         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
60928         (free): Remove decl.
60929
60930         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
60931         * lib/xgetcwd.c: Likewise.
60932
60933         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
60934         (free): Remove decl.
60935
60936         * lib/strchrnul.c (strchrnul): Define with a prototype.
60937         Fix bug: c_in was not converted to char before searching.
60938
60939         The following changes are not K&R related:
60940
60941         * lib/group-member.h: Include <sys/types.h>, so that this file is
60942         self-contained.
60943         * lib/makepath.h: Likewise.
60944
60945         * lib/getusershell.c (readname, default_index, line_size, readname):
60946         Use size_t, not int, for sizes.
60947         (readname): If the size overflows, report an error instead of
60948         looping forever.
60949
60950 2003-09-09  Paul Eggert  <eggert@twinsun.com>
60951
60952         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
60953         libc.
60954
60955 2003-09-09  Paul Eggert  <eggert@twinsun.com>
60956
60957         * README: New section: portability guidelines.
60958
60959 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
60960
60961         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
60962         C89 spec.
60963
60964 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
60965
60966         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
60967
60968 2003-09-08  Paul Eggert  <eggert@twinsun.com>
60969
60970         Assume C89 or better; remove K&R cruft.
60971         A few of these changes were first proposed by Derek Robert Price
60972         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
60973
60974         * lib/addext.c: Include <string.h> unconditionally.
60975         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
60976         Don't declare getenv or malloc.
60977
60978         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
60979         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
60980         (NULL): Remove.
60981         (find_stack_direction, alloca): Use prototypes.
60982
60983         * lib/atexit.c (atexit): Define using a prototype.
60984
60985         * lib/basename.c, dirname.c, stripslash.c:
60986         Include <string.h> unconditionally.
60987
60988         * lib/bcopy.c: Include <stddef.h>.
60989         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
60990
60991         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
60992
60993         * lib/error.h (error, error_at_line, error_print_progname)
60994         [! (defined (__STDC__) && __STDC__)]: Remove decls.
60995         * lib/error.c: Include error.h first, to check interface.
60996         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
60997         (VA_START): Remove; all uses changeed to va_start.
60998         (exit, strerror): Remove decls.
60999         (error_print_progname): Prototype uncondionally.
61000         Don't include <errno.h>; no longer needed.
61001         (private_strerror): Remove.
61002         (error_tail): Always define.
61003         (error, error_at_line): Assume C89 or better; always use prototypes.
61004         * lib/fatal.c: Include "fatal.h" first, to test interface.
61005         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
61006         (VA_START): Remove; all uses changed to va_start.
61007         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
61008         this case.
61009         (exit): Remove decl.
61010         (fatal): Prototype unconditionally.  Assume va_start works.
61011         Abort at end, to pacify gcc.
61012
61013         * lib/euidaccess.c (main): Define with a prototype.
61014
61015         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
61016
61017         * lib/exitfail.c: Include <stdlib.h> unconditionally.
61018
61019         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
61020         prototypes.
61021         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
61022         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
61023         (getenv): Remove decl.
61024         (fnmatch): Define using a prototype.
61025         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
61026         (FCT): Define using a prototype.
61027
61028         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
61029
61030         * lib/gethostname.c: Include <stddef.h>.
61031         (gethostname): Define with prototype.  Length is size_t, not int.
61032
61033 2003-09-08  Paul Eggert  <eggert@twinsun.com>
61034
61035         Assume C89 or better; remove K&R cruft.
61036         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
61037         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
61038         string.h, getenv, malloc.
61039         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
61040         headers.
61041         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
61042         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
61043         do not check for strerror.
61044         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
61045         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
61046         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
61047         do not check for doprnt or vprintf.
61048         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
61049         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
61050
61051 2003-09-08  Paul Eggert  <eggert@twinsun.com>
61052
61053         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
61054         getversion.c should have been removed then, but was accidentally
61055         preserved.
61056
61057         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
61058         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
61059
61060 2003-09-08  Karl Berry  <karl@gnu.org>
61061
61062         * config/config.sub, config.guess, srclistvars.sh: update from savannah
61063                 config, forget about prep.
61064
61065         * config/depcomp, missing: update from automake.
61066
61067 2003-09-07  Paul Eggert  <eggert@twinsun.com>
61068
61069         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
61070         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
61071
61072 2003-09-07  Paul Eggert  <eggert@twinsun.com>
61073
61074         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
61075         copy_tm_result.  Bug reported by Simon Josefsson in
61076         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
61077
61078 2003-09-06  Paul Eggert  <eggert@twinsun.com>
61079
61080         * m4/time_r.m4: New file.
61081         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
61082         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
61083         is. Check for timegm declaration.
61084         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
61085         Do not check for gmtime_r.
61086         Replace mktime if __mktime_internal does not exist and if mktime
61087         hasn't been replaced already.
61088
61089 2003-09-06  Paul Eggert  <eggert@twinsun.com>
61090
61091         * lib/time_r.c, lib/time_r.h: New files.
61092
61093         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
61094         __localtime_r.
61095         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
61096         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
61097
61098         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
61099         __gmtime_r.
61100         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
61101         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
61102         Include <time_r.h>.
61103
61104         * lib/timegm.c: Switch to glibc implementation, with the following
61105         changes:
61106         [defined HAVE_CONFIG_H]: Include <config.h>.
61107         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
61108         (__mktime_internal) [!defined _LIBC]: New decl.
61109         (__gmtime_r) [!defined _LIBC]: New macro and function.
61110         (timegm): Use a prototype, since gnulib assumes C89.
61111         Do not bother declaring tmp to be const, as it's not really usefu.
61112         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
61113         (timegm): Declare only if HAVE_DECL_TIMEGM.
61114
61115 2003-09-06  Paul Eggert  <eggert@twinsun.com>
61116
61117         * MODULES.html.sh (func_all_modules): Add time_r.
61118         * modules/time_r: New file.
61119         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
61120         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
61121
61122 2003-09-03  Paul Eggert  <eggert@twinsun.com>
61123
61124         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
61125         Bug reported by Lute Kamstra in
61126         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
61127
61128         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
61129         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
61130         course with correspondingly smaller numbers for tomorrow and
61131         yesterday.  From Tadayoshi Funaba.  Originally installed into
61132         sh-utils on 1999-08-07, but the patch got lost (I guess during the
61133         coreutils merge?).
61134
61135 2003-08-31  Simon Josefsson  <jas@extundo.com>
61136
61137         * modules/timegm: New file.
61138         * MODULES.html.sh (func_all_modules): Add timegm.
61139
61140 2003-08-31  Simon Josefsson  <jas@extundo.com>
61141
61142         * m4/timegm.m4: New file.
61143
61144 2003-08-31  Simon Josefsson  <jas@extundo.com>
61145
61146         * lib/timegm.h: New file.
61147         * lib/timegm.c: New file.  Based on
61148         wget-1.8.2/src/http.c:mktime_from_utc.
61149
61150 2003-08-31  Karl Berry  <karl@gnu.org>
61151
61152         * lib/argp.h: update from libc.
61153
61154 2003-08-28  Bruno Haible  <bruno@clisp.org>
61155
61156         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
61157         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
61158         followed by '#define fnmatch fnmatch_posix' gives an error.
61159
61160 2003-08-28  Bruno Haible  <bruno@clisp.org>
61161
61162         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
61163         warning on QNX, which defines O_BINARY to 000000.
61164
61165 2003-08-27  Jim Meyering  <jim@meyering.net>
61166
61167         * m4/mkstemp.m4: Require that the system mkstemp be able to create
61168         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
61169         would fail after 32.  Reported by Danny Levinson.  Details here:
61170         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
61171
61172 2003-08-24  Bruno Haible  <bruno@clisp.org>
61173
61174         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
61175         MSVC7 <stdio.h> is included later.
61176
61177 2003-08-22  Simon Josefsson  <jas@extundo.com>
61178
61179         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
61180
61181 2003-08-20  Karl Berry  <karl@gnu.org>
61182
61183         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
61184
61185 2003-08-20  Bruno Haible  <bruno@clisp.org>
61186
61187         * modules/progname: New file.
61188         * MODULES.html.sh (func_all_modules): Add progname.
61189
61190 2003-08-20  Bruno Haible  <bruno@clisp.org>
61191
61192         * lib/progname.h: New file, from GNU gettext.
61193         * lib/progname.c: New file, from GNU gettext.
61194         * lib/progreloc.c: New file, from GNU gettext.
61195
61196 2003-08-19  Jim Meyering  <jim@meyering.net>
61197
61198         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
61199         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
61200
61201 2003-08-19  Bruno Haible  <bruno@clisp.org>
61202
61203         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
61204         more.
61205
61206 2003-08-19  Bruno Haible  <bruno@clisp.org>
61207
61208         * lib/xstrdup.c: Assume <string.h> exists.
61209
61210 2003-08-18  Paul Eggert  <eggert@twinsun.com>
61211
61212         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
61213         in makefile rules.
61214
61215 2003-08-18  Jim Meyering  <jim@meyering.net>
61216
61217         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
61218         * m4/lib-ld.m4: Likewise.
61219
61220 2003-08-18  Jim Meyering  <jim@meyering.net>
61221
61222         * lib/setenv.h: Indent nested cpp directive.
61223         * lib/vasnprintf.c: Remove trailing blanks.
61224
61225 2003-08-17  Simon Josefsson  <jas@extundo.com>
61226
61227         * modules/xstrndup: New file.
61228         * MODULES.html.sh (func_all_modules): Add xstrndup.
61229
61230 2003-08-17  Simon Josefsson  <jas@extundo.com>
61231
61232         * modules/argp: Fix autoconf macro name. Add more dependencies.
61233
61234 2003-08-17  Simon Josefsson  <jas@extundo.com>
61235
61236         * m4/xstrndup.m4: New file.
61237
61238 2003-08-17  Simon Josefsson  <jas@extundo.com>
61239
61240         * m4/argp.m4: New file.
61241
61242 2003-08-17  Simon Josefsson  <jas@extundo.com>
61243             Bruno Haible  <bruno@clisp.org>
61244
61245         * lib/xstrndup.h: New file.
61246         * lib/xstrndup.c: New file.
61247
61248 2003-08-17  Bruno Haible  <bruno@clisp.org>
61249
61250         * modules/strndup (Files, Include): Add lib/strndup.h.
61251
61252 2003-08-17  Bruno Haible  <bruno@clisp.org>
61253
61254         * modules/euidaccess (Files): Add lib/euidaccess.h.
61255
61256 2003-08-17  Bruno Haible  <bruno@clisp.org>
61257
61258         * lib/strndup.h: New file.
61259
61260 2003-08-17  Bruno Haible  <bruno@clisp.org>
61261
61262         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
61263         like AC_GNU_SOURCE.
61264         * modules/extensions (configure.ac): Comment out the invocation of
61265         gl_USE_SYSTEM_EXTENSIONS.
61266
61267 2003-08-16  Paul Eggert  <eggert@twinsun.com>
61268
61269         Merges from coreutils, etc.
61270         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
61271         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
61272         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
61273         fixing a typo.
61274         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
61275         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
61276
61277 2003-08-16  Paul Eggert  <eggert@twinsun.com>
61278
61279         Document merge from coreutils.
61280         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
61281         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
61282         * modules/utime: Add m4/utimes-null.m4.
61283
61284 2003-08-16  Paul Eggert  <eggert@twinsun.com>
61285
61286         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
61287         space, undoing this 2003-08-12 change:
61288         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
61289
61290 2003-08-16  Paul Eggert  <eggert@twinsun.com>
61291
61292         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
61293         strtoul.c from libc, undoing this 2003-08-12 change:
61294         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
61295
61296 2003-08-16  Jim Meyering  <jim@meyering.net>
61297
61298         Merges from coreutils.
61299         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
61300         prefix.  Adjust cache variables similarly.  Create 500 rather than
61301         just 300 files, to exercise bug on Darwin6.5, too.
61302         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
61303         $missing_dir.
61304         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
61305         AM_SYS_POSIX_TERMIOS.
61306         Reported by mkc@mathdogs.com.
61307         Also change use of $am_cv_sys_posix_termios
61308         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
61309         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
61310         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
61311         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
61312         in /proc/mounts until it finds one with matching device number.  This
61313         is unnecessary when the FILE argument *is* a mount point.  No stat call
61314         is necessary in that case.  So, disable the statvfs-testing code on
61315         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
61316         as RedHat bug# 84846.
61317         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
61318         to 1MB, so as not to render systems with no stack size limit (e.g.,
61319         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
61320         Include <unistd.h>.  On some systems,
61321         it is required for the definition of _SC_PAGESIZE.
61322
61323 2003-08-16  Jim Meyering  <jim@meyering.net>
61324
61325         Merge from coreutils.
61326         * lib/xstrtoimax.c: #else #if -> #elif.
61327         * lib/xstrtoumax.c: Likewise.
61328
61329 2003-08-16  Jim Meyering  <jim@meyering.net>
61330
61331         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
61332         * m4/utimes.m4: Removed.
61333         * m4/utimes-null.m4: Renamed from utimes.m4.
61334
61335         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
61336         to 1MB, so as not to render systems with no stack size limit (e.g.,
61337         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
61338         Include <unistd.h>.  On some systems,
61339         it is required for the definition of _SC_PAGESIZE.
61340
61341 2003-08-16  Jim Meyering  <jim@meyering.net>
61342         and Paul Eggert  <eggert@cs.ucla.edu>
61343
61344         Merges from coreutils, etc.
61345
61346         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
61347         using the latest version from cvs.  This avoids problems with #line
61348         directives using a vendor (Sun) compiler.
61349         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
61350         Don't set GETGROUPS_LIB here; now it's
61351         done via getgroups.m4's wrapper function.
61352         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
61353         rather than just in sh-util/configure.in, so that the
61354         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
61355         same.
61356         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
61357         AC_FUNC_GETLOADAVG where to find getloadavg.c.
61358         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
61359         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
61360         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
61361         Remove code that is now done by the newly-required macros.
61362         Append $(EXEEXT) to DF_PROG.
61363         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
61364         Do not invoke or require the following here,
61365         since prereq.m4 or some gnulib .m4 now does this for us:
61366         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
61367         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
61368         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
61369         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
61370         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
61371         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
61372         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
61373         AC_FUNC_OBSTACK.
61374         Do not replace the following functions, as this is now the job
61375         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
61376         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
61377         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
61378         atexit getpass, strdup, getpagesize.
61379         Replace 'raise'.
61380         Do not check for the following functions, as this is now the job
61381         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
61382         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
61383         setregid.
61384         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
61385         Check for sys/sysctl.h.
61386         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
61387         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
61388         of checking for ssize_t ourselves.
61389
61390         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
61391         Require every macro that gnulib/modules/* suggests for us.
61392         (jm_PREREQ_ADDEXT): New macro.
61393         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
61394         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
61395
61396         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
61397         (gl_PHYSMEM): Use it.
61398         Also check for `table' function.
61399         Check for new headers and functions.
61400         Add check for sys/sysmp.h.
61401         With suggestions from Kaveh Ghazi.
61402         Ignore headers that are present but cannot be compiled.  This
61403         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
61404         C 5.4.
61405
61406 2003-08-15  Paul Eggert  <eggert@twinsun.com>
61407
61408         Document merge from coreutils.
61409         * modules/userspec: Depend on posixver.
61410         * modules/strftime: Depend on tzset.
61411
61412 2003-08-15  Paul Eggert  <eggert@twinsun.com>
61413
61414         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
61415         rather than tab, after '#' in shell-script copyright notices.
61416         Suggested by Bruno Haible.
61417
61418 2003-08-15  Paul Eggert  <eggert@twinsun.com>
61419
61420         * config/srclist-update: Use three spaces, rather than tab, after '#'
61421         in shell-script copyright notices.  Suggested by Bruno Haible.
61422         Remove unnecessary parenthesization in regular expression.
61423
61424 2003-08-15  Jim Meyering  <jim@meyering.net>
61425
61426         Merge from coreutils.
61427         * lib/xgethostname.c: Include <stdlib.h>.
61428         (xghostname): Don't exit for anything other than memory-related
61429         failure; just return NULL.
61430         * lib/userspec.c: Include "posixver.h".
61431         (parse_user_spec): Accept `.' as a separator only
61432         in pre-POSIX-200112 mode.
61433         * lib/strtoimax.c: Use #elif rather than #else #if.
61434         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
61435         Remove function, now that we can rely on a working tzset function.
61436         [!_LIBC]: Ensure that the required autoconf test has been run.
61437         [!defined _NL_CURRENT && HAVE_STRFTIME]:
61438         Use underlying_strftime for %r.
61439         * lib/sha.c: Merge in some clean-up and optimization changes from
61440         glibc.
61441         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
61442         Ensure that it is a multiple of 64.
61443         Rearrange loop exit tests so as to avoid performing an
61444         additional fread after encountering an error or EOF.
61445         * lib/realloc.c: Update copyright date.
61446
61447 2003-08-15  Jim Meyering  <jim@meyering.net>
61448         and Paul Eggert  <eggert@twinsun.com>
61449
61450         Merge from coreutils.
61451         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
61452         member but strut utmpx does not.  Needed for AIX 4.3.3.
61453         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
61454
61455 2003-08-15  Jim Meyering  <jim@meyering.net>
61456         and Paul Eggert  <eggert@cs.ucla.edu>
61457
61458         Merges from coreutils, etc.
61459         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
61460         Require gl_FUNC_TZSET_CLOBBER.
61461         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
61462         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
61463         members.
61464
61465 2003-08-14  Paul Eggert  <eggert@twinsun.com>
61466
61467         Help the merge from coreutils.
61468         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
61469         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
61470         * m4/tzset.m4: Use it too.
61471
61472 2003-08-14  Paul Eggert  <eggert@twinsun.com>
61473
61474         * modules/tzset: New file.
61475
61476 2003-08-14  Jim Meyering  <jim@meyering.net>
61477
61478         Merges from coreutils.
61479         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
61480         variable names, rather than @FNMATCH_H@.
61481         * modules/alloca: Likewise for $(ALLOCA_H).
61482
61483         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
61484         the three copies of the literal target, `fnmatch.h'.
61485         * modules/alloca (alloca.h): Likewise.
61486
61487 2003-08-14  Jim Meyering  <jim@meyering.net>
61488
61489         Merge from coreutils.
61490         * m4/tzset.m4: New file.
61491         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
61492         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
61493         otherwise, AIX 5.1 systems would end up using the latter.
61494         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
61495         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
61496         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
61497         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
61498
61499 2003-08-14  Jim Meyering  <jim@meyering.net>
61500
61501         Merge from coreutils.
61502         * lib/obstack.h: Whitespace changes.
61503         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
61504         and xcalloc return values.
61505         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
61506         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
61507         hang on OSF/1 5.1 for DIR on both local and remote file systems.
61508         Reported by (and fix confirmed by) Nelson H. F. Beebe.
61509         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
61510         error from mntctl.
61511         Use mntctl's return value to drive the entry-processing loop, since
61512         we can't rely on the value of the vmt_length member in the last
61513         entry.  On some systems doing so could result in exhausting
61514         virtual memory.  Based in part on a patch from Mike Jetzer.
61515
61516 2003-08-14  Jim Meyering  <jim@meyering.net>
61517         and Paul Eggert  <eggert@twinsun.com>
61518
61519         Merges from coreutils, plus other fixes.
61520         * lib/physmem.c: Merge in portability changes from gcc/libiberty
61521         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
61522         for credits and details.  Thanks to Kaveh Ghazi for helping
61523         to keep these files in sync.
61524         (ARRAY_SIZE): Define it.
61525         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
61526         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
61527         (memcasecmp): Don't assume size_t fits in unsigned int.
61528         Remove casts and duplicate code.
61529         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
61530         (memcpy): Remove definition.
61531         Merge in some clean-up and optimization changes from glibc.
61532         [BLOCKSIZE]: Move definition to top of file.
61533         Ensure that it is a multiple of 64.
61534         Rearrange loop exit tests so as to avoid performing an
61535         additional fread after encountering an error or EOF.
61536         * lib/md5.h (md5_uintptr): Define.
61537         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
61538         return to the initial working directory.  Preserve errno
61539         for caller.
61540         * lib/idcache.c: Include "xalloc.h".
61541         (xmalloc, xrealloc): Remove decls.
61542         (getuser): Remove casts no longer required in C89.
61543         * lib/human.c: Include stdio.h, for sprintf.
61544         * lib/group-member.c: Include "xalloc.h".
61545         (xmalloc, xrealloc): Remove decls.
61546         (get_group_info): Remove casts no longer required in C89.
61547         * lib/getusershell.c (readname): Remove casts no longer required in
61548         C89.
61549         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
61550         * lib/getline.c: Whitespace fix, from coreutils.
61551
61552 2003-08-13  Paul Eggert  <eggert@twinsun.com>
61553
61554         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
61555         Check for isascii.
61556
61557         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
61558         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
61559         Undo previous (whitespace-only) change.
61560
61561 2003-08-13  Paul Eggert  <eggert@twinsun.com>
61562
61563         * lib/exclude.c: Include <ctype.h>
61564         (IN_CTYPE_DOMAIN): New macro.
61565         (is_space): New fn.
61566         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
61567         and empty lines.
61568
61569         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
61570         Undo previous (whitespace-only) change.
61571
61572 2003-08-13  Paul Eggert  <eggert@twinsun.com>
61573
61574         * config/srclist-update: Change update back to the old behavior,
61575         leaving whitespace alone.  Use one 'sed' command rather than a
61576         pipeline.
61577         (fixlicense): Now a variable, not a function.
61578         (remove_trailing_blanks): Remove.
61579         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
61580         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
61581         Undo previous (whitespace-only) change.
61582
61583 2003-08-12  Paul Eggert  <eggert@twinsun.com>
61584
61585         Merge from coreutils.
61586         * modules/euidaccess: Add lib_SOURCES, include for new
61587         file euidaccess.h
61588
61589 2003-08-12  Paul Eggert  <eggert@twinsun.com>
61590
61591         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
61592         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
61593         Normalize leading white space and remove trailing white space.
61594
61595         Merge from coreutils
61596         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
61597
61598         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
61599         0.12.1.  These files are now being upgraded automatically by
61600         ../config/srclist-update.
61601
61602 2003-08-12  Paul Eggert  <eggert@twinsun.com>
61603
61604         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
61605         Normalize leading white space and remove trailing white space.
61606         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
61607         notice, as per ../config/srclist-update.
61608
61609         Merge from coreutils.
61610         * lib/euidaccess.h: New file.
61611         * lib/euidaccess.c: Include it.
61612         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
61613         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
61614         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
61615
61616 2003-08-12  Paul Eggert  <eggert@twinsun.com>
61617
61618         * config/srclist-update: Add copyright notice.
61619         (remove_id_lines, remove_trailing_blanks): New constants.
61620         (fixfile): Use them to normalize spacing a bit in copied files.
61621         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
61622         Normalize leading white space and remove trailing white space.
61623
61624         * config/texinfo.tex: Sync with texinfo.
61625
61626         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
61627         strtoul.c from libc, to merge coreutils whitespace changes.
61628
61629         * config/srclist.txt: Get the following m4 files from gettext:
61630         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
61631         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
61632         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
61633         wint_t.m4.
61634
61635 2003-08-12  Karl Berry  <karl@gnu.org>
61636
61637         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
61638         been made.
61639
61640 2003-08-11  Paul Eggert  <eggert@twinsun.com>
61641
61642         * modules/gnu-source, m4/gnu-source.m4:
61643         Remove; we're assuming Autoconf 2.54 or later now.
61644         Suggested by Bruno Haible.
61645         * MODULES.html.sh (func_all_modules): Remove gnu-source.
61646
61647 2003-08-11  Bruno Haible  <bruno@clisp.org>
61648
61649         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
61650
61651 2003-08-11  Bruno Haible  <bruno@clisp.org>
61652
61653         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
61654         (vasnprintf): Use it instead of wcslen.
61655
61656 2003-08-11  Bruno Haible  <bruno@clisp.org>
61657
61658         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
61659         value to ensure that _Bool promotes to int. Use #define for _Bool when
61660         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
61661
61662 2003-08-10  Karl Berry  <karl@gnu.org>
61663
61664         * lib/regex.h: update from libc (whitespace fix).
61665
61666 2003-08-09  Paul Eggert  <eggert@twinsun.com>
61667
61668         Merge some files from coreutils.  These changes were
61669         originally made by Jim Meyering.
61670         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
61671         many older Unixes require this.
61672         * lib/alloca.c (alloca): Remove cast to argument of free;
61673         no longer needed in C89.
61674         * lib/alloca_.h, regex.h: Fix white space to match
61675         what GNU indent does.
61676
61677 2003-08-09  Paul Eggert  <eggert@twinsun.com>
61678
61679         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
61680         apparently Emacs's Unicode mode got confused before my 2003-08-05
61681         checkin.
61682
61683 2003-08-08  Paul Eggert  <eggert@twinsun.com>
61684
61685         * m4/extensions.m4: New file.
61686         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
61687         Require gl_USE_SYSTEM_EXTENSIONS.
61688         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
61689         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
61690
61691 2003-08-08  Paul Eggert  <eggert@twinsun.com>
61692
61693         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
61694         * modules/extensions, modules/gnu-source: New files.
61695         * modules/timespec, modules/unlocked-io: Depend on extensions.
61696
61697 2003-08-07  Paul Eggert  <eggert@twinsun.com>
61698
61699         * modules/restrict: New file.
61700         * MODULES.html.sh (func_all_modules): Add restrict.
61701         * modules/regex: Depend on restrict.
61702
61703 2003-08-07  Paul Eggert  <eggert@twinsun.com>
61704
61705         * m4/restrict.m4: New file.
61706         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
61707
61708 2003-08-07  Bruno Haible  <bruno@clisp.org>
61709
61710         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
61711         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
61712
61713 2003-08-07  Bruno Haible  <bruno@clisp.org>
61714
61715         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
61716         makes the module 'getndelim2' compatible with the module 'getline'.
61717
61718 2003-08-05  Paul Eggert  <eggert@twinsun.com>
61719
61720         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
61721         byte with "\201" to avoid glitches when editing that source file
61722         with multi-gnome-terminal.
61723
61724 2003-08-05  Paul Eggert  <eggert@twinsun.com>
61725
61726         * lib/bumpalloc.h: Remove.
61727
61728 2003-08-05  Paul Eggert  <eggert@twinsun.com>
61729
61730         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
61731         * modules/bumpalloc: Remove.
61732
61733 2003-08-04  Paul Eggert  <eggert@twinsun.com>
61734
61735         * lib/getloadavg.c: Change copyright notice and spacing to conform to
61736         GNU coding style.
61737
61738         Merge from coreutils.
61739         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
61740         1. From glibc.
61741         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
61742         from Karl Berry, implemented by Jim Meyering.
61743         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
61744         from Dmitry V. Levin.
61745         Remove anachronistic cast of xrealloc.
61746         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
61747         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
61748         type. Otherwise, it wouldn't compile with at least /bin/cc on
61749         ymp-cray-unicos9.0.2.X.
61750         Combine two mostly-identical uses of alloca into one.
61751         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
61752
61753 2003-08-04  Dave Love  <d.love@dl.ac.uk>
61754
61755         [From Emacs.]
61756
61757         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
61758         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
61759         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
61760         obsolete NLIST_NAME_UNION.
61761         [__GNU__]: Undef BSD and FSCALE.
61762         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
61763
61764 2003-08-03  Paul Eggert  <eggert@twinsun.com>
61765
61766         * lib/stdbool_.h (_Bool): Make it signed char, instead of
61767         an enum type, so that it's guaranteed to promote to int.  See:
61768         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
61769
61770 2003-08-03  Karl Berry  <karl@gnu.org>
61771
61772         * config/depcomp: update from automake.
61773
61774 2003-07-31  Paul Eggert  <eggert@twinsun.com>
61775
61776         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
61777         (strerror): Don't assume that a printable int fits in 14 bytes.
61778
61779 2003-07-31  Bruno Haible  <bruno@clisp.org>
61780
61781         * modules/getpass-gnu: New file.
61782         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
61783
61784 2003-07-31  Bruno Haible  <bruno@clisp.org>
61785
61786         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
61787
61788 2003-07-24  Karl Berry  <karl@gnu.org>
61789
61790         * config/missing: update from automake.
61791
61792 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
61793             Bruno Haible  <bruno@clisp.org>
61794
61795         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
61796         * lib/getline.c (getline, getdelim): Likewise.
61797         Remove _GNU_SOURCE define; now it's defined in config.h through
61798         m4/getline.m4.
61799
61800 2003-07-23  Karl Berry  <karl@gnu.org>
61801
61802         * config/config.sub: update from prep.
61803
61804 2003-07-22  Paul Eggert  <eggert@twinsun.com>
61805
61806         * modules/xalloc (Depends-on): Add exitfail.
61807         * modules/xmemcoll: Likewise.
61808
61809 2003-07-22  Paul Eggert  <eggert@twinsun.com>
61810
61811         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
61812         over-parenthesization in macros.
61813
61814         Sync with coreutils.
61815
61816         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
61817         required by C99.
61818
61819         Use `exit_failure' for xalloc and xmemcoll instead of their own
61820         private exit-failure variables.
61821         * lib/xalloc.h (xalloc_exit_failure): Remove.
61822         * lib/xmalloc.c: Likewise.  Include exitfail.h.
61823         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
61824         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
61825         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
61826         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
61827
61828 2003-07-20  Jim Meyering  <jim@meyering.net>
61829
61830         * modules/closeout (Depends-on): Add exitfail.
61831         Suggestion from Bruno Haible.
61832
61833 2003-07-19  Karl Berry  <karl@gnu.org>
61834
61835         * config/config.sub: update from prep.
61836
61837 2003-07-18  Paul Eggert  <eggert@twinsun.com>
61838
61839         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
61840         Remove.
61841         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
61842         to test that it can stand by itself.  Include "exitfail.h".
61843         Clients should set exit_failure instead.
61844         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
61845
61846 2003-07-18  Bruno Haible  <bruno@clisp.org>
61847
61848         * modules/getndelim2: New file.
61849         * modules/getline: Share files with module getndelim2.
61850         * modules/getnline: Depend on getndelim2 instead of sharing files with
61851         it. Add getnline.c to lib_SOURCES.
61852         * MODULES.html.sh (func_all_modules): Add getndelim2.
61853
61854 2003-07-18  Bruno Haible  <bruno@clisp.org>
61855
61856         * m4/getndelim2.m4: New file.
61857         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
61858         invoke gl_PREREQ_GETNDELIM2.
61859         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
61860         gl_PREREQ_GETNDELIM2.
61861         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
61862         gl_GETNDELIM2.
61863
61864 2003-07-18  Bruno Haible  <bruno@clisp.org>
61865
61866         * lib/getndelim2.h: New file.
61867         * lib/getndelim2.c: Make into a module of its own. Include config.h,
61868         getndelim2.h.
61869         (getndelim2): Make non-static. Change return type to ssize_t.
61870         * lib/getline.h: Change argument names.
61871         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
61872         * lib/getnline.c: Include getndelim2.h.
61873
61874 2003-07-18  Andreas Schwab  <schwab@suse.de>
61875
61876         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
61877
61878 2003-07-17  Karl Berry  <karl@gnu.org>
61879
61880         * config/config.sub: update from prep.
61881
61882 2003-07-17  Bruno Haible  <bruno@clisp.org>
61883
61884         * modules/getnline: New file.
61885         * modules/getline: Add lib/getndelim2.c to source file list.
61886         * MODULES.html.sh (func_all_modules): Add getnline.
61887
61888 2003-07-17  Bruno Haible  <bruno@clisp.org>
61889
61890         * m4/getnline.m4: New file.
61891
61892 2003-07-17  Bruno Haible  <bruno@clisp.org>
61893
61894         * m4/Makefile.am.in: Remove file.
61895         * m4/Makefile.am: Remove file.
61896         * m4/Makefile.in: Remove file.
61897
61898 2003-07-17  Bruno Haible  <bruno@clisp.org>
61899
61900         * lib/getnline.h: New file.
61901         * lib/getnline.c: New file.
61902         * lib/getndelim2.c: New file, extracted from getline.c.
61903         (getndelim2): Renamed from getdelim2, with added nmax argument.
61904         * lib/getline.c: Include getndelim2.c.
61905         (getdelim2): Moved out to getndelim2.c.
61906         (getline, getdelim): Update.
61907
61908 2003-07-17  Bruno Haible  <bruno@clisp.org>
61909
61910         * lib/Makefile.am: Remove file.
61911         * lib/Makefile.in: Remove file.
61912
61913 2003-07-17  Bruno Haible  <bruno@clisp.org>
61914
61915         * configure.in: Remove file.
61916         * Makefile.in: Remove file.
61917
61918 2003-07-17  Bruno Haible  <bruno@clisp.org>
61919
61920         * MODULES.html.sh: Put the </BODY> right before </HTML>.
61921
61922 2003-07-16  Karl Berry  <karl@gnu.org>
61923
61924         * config/srclist-update: was running fixlicense twice, which caused
61925                 texinfo.tex to be nullified for some reason.  Simplify,
61926                 $gplsrc is no longer needed as far as I can see?
61927
61928 2003-07-16  Jim Meyering  <jim@meyering.net>
61929
61930         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
61931
61932 2003-07-15  Paul Eggert  <eggert@twinsun.com>
61933
61934         * config/srclist.txt: Get the following files from gettext-runtime/intl
61935         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
61936         ref-del.sin.  From Bruno Haible.
61937         * config/srclist-update (fixfile): Change grep pattern again, since the
61938         previous fix didn't work (there was another trailing $).  Use
61939         '[$]' to escape the $s.
61940
61941 2003-07-15  Karl Berry  <karl@gnu.org>
61942
61943         * lib/vasnprintf.c: update from gettext.
61944
61945 2003-07-15  Karl Berry  <karl@gnu.org>
61946
61947         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
61948         gets expanded when surrounded by '$'.
61949
61950 2003-07-15  Jim Meyering  <jim@meyering.net>
61951
61952         * modules/save-cwd: Don't depend on error.  From Derek Price.
61953
61954 2003-07-15  Jim Meyering  <jim@meyering.net>
61955
61956         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
61957
61958 2003-07-14  Simon Josefsson  <jas@extundo.com>
61959
61960         * modules/mempcpy: New file.
61961         * MODULES.html.sh (func_all_modules): Add mempcpy.
61962
61963 2003-07-14  Simon Josefsson  <jas@extundo.com>
61964
61965         * m4/mempcpy.m4: New file.
61966
61967 2003-07-14  Simon Josefsson  <jas@extundo.com>
61968
61969         * lib/mempcpy.h: New file.
61970         * lib/mempcpy.c: New file.
61971
61972 2003-07-14  Paul Eggert  <eggert@twinsun.com>
61973
61974         * modules/getdate, modules/posixtm: Depend on mktime.
61975
61976 2003-07-14  Paul Eggert  <eggert@twinsun.com>
61977
61978         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
61979         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
61980         unicodeio.c, unicodeio.h, unlocked-io.h:
61981         Switch from LGPL to GPL.
61982
61983 2003-07-14  Paul Eggert  <eggert@twinsun.com>
61984
61985         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
61986         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
61987         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
61988         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
61989         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
61990         updated automatically by ../config/srclist-update.  This changes
61991         their license from LPGL to GPL.
61992
61993 2003-07-14  Paul Eggert  <eggert@twinsun.com>
61994
61995         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
61996         assumed to refer to the root of the most recent stable gettext version.
61997         * config/srclistvars.sh: Add defaults for eggert.
61998         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
61999         Match "This program" as well as "The program".  This is needed
62000         for gettext.
62001
62002 2003-07-14  Jim Meyering  <jim@meyering.net>
62003
62004         Don't emit diagnostics.  Let callers do that.
62005         * lib/save-cwd.c: Don't include "error.h".
62006         (save_cwd): Don't call error.  Ensure that errno is valid
62007         when returning nonzero.
62008
62009         * lib/save-cwd.h (restore_cwd): Update prototype.
62010         * lib/save-cwd.c (restore_cwd): Remove two parameters.
62011         Simplify.  Don't call error upon failure.  Let callers do that.
62012         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
62013         when auditing is enabled.  But don't bother updating the #if.
62014
62015 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
62016
62017         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
62018         it breaks C++ compilation.
62019         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
62020
62021 2003-07-10  Simon Josefsson  <jas@extundo.com>
62022
62023         * modules/strchrnul (Makefile.am): Add strchrnul.h.
62024
62025 2003-07-10  Jim Meyering  <jim@meyering.net>
62026
62027         * m4/clock_time.m4: Remove trailing blank.
62028         * m4/intmax_t.m4: Likewise.
62029
62030 2003-07-10  Jim Meyering  <jim@meyering.net>
62031
62032         * lib/vasnprintf.c: Remove trailing blanks.
62033         Make cpp indentation consistent.
62034
62035 2003-07-09  Paul Eggert  <eggert@twinsun.com>
62036
62037         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
62038         posixver.c, strftime.c, strnlen.c, strverscmp.c:
62039         Switch from LGPL to GPL.
62040
62041 2003-07-09  Paul Eggert  <eggert@twinsun.com>
62042
62043         * config/srclist.txt: Sort sublists.  Add
62044         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
62045         that differ from gnulib for one reason or another; we'd like this list
62046         to be smaller but for now let's document what we have.
62047
62048 2003-07-08  Paul Eggert  <eggert@twinsun.com>
62049
62050         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
62051         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
62052         and sweeter "eval x=$x".
62053         * config/srclist.txt: Get lib/argp* from glibc.
62054
62055 2003-07-07  Paul Eggert  <eggert@twinsun.com>
62056
62057         * lib/mktime.c: Fix some boundary cases and remove need for floating
62058         point.
62059
62060         Issue a compile-time diagnostic if time_t is floating point, or if
62061         two's complement arithmetic is not in effect, or if arithmetic
62062         right shift does not propagate the sign.  These assumptions were
62063         all in the original code but they weren't checked.
62064
62065         (TIME_T_MIDPOINT, verify): New macros.
62066         (__isleap): Remove; it has integer overflow problems.
62067         (leapyear): New function, without those problems.
62068         (ydhms_tm_diff): Remove; splitting into two parts.
62069         (ydhms_diff): New function, containing the arithmetic part of
62070         the old ydhms_tm_diff function.  Issue a compile-time
62071         diagnostic if we are not using C99 integer division.
62072         Avoid casts when possible.
62073         (guess_time_tm): New function, containing the checking part of
62074         the old ydhms_tm_diff function.  Return the new value, rather than
62075         the difference between it and the old.  Accept a new argument T
62076         so that *T specifies the old value.  Check for overflow in the result.
62077
62078         (__mktime_internal): Use a time_t offset, not a long int offset.
62079         This undoes the 2003-06-04 change, which is no longer needed now
62080         that we have better overflow checking.
62081         (localtime_offset): Likewise.
62082
62083         (__mktime_internal): Avoid harmful overflow on hosts where time_t
62084         and long are 64-bit but int is only 32-bit.
62085         (ydhms_diff): Use long int to store year1 and yday1.
62086         Issue a compile-time diagnostic if long int is not wide enough.
62087
62088         (__mktime_internal): Use long int to store adjusted year and yday.
62089         Use plain C rather than preprocessor commands, if that doesn't
62090         affect efficiency.
62091         Check for overflow (and try to repair) after each probe
62092         rather than checking only at the very end.  This avoids some bugs
62093         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
62094         does not equal GMT offset at maximum time).
62095         Use integer to check for overflow rather than floating point; this
62096         is more portable to non-IEEE hosts, and is a tad faster.
62097         When we detect that we are oscillating between two values,
62098         don't check whether tm_isdst has the requested value, since
62099         we already know the answer.  When tm_isdst has the wrong value,
62100         use a different heuristic to find the right one, based on the
62101         extreme values actually observed in practice in tz2003a,
62102         rather than the (overly optimistic) "previous 3 calendar quarters".
62103
62104         (not_equal_tm, print_tm, check_result): Use "const T" rather than
62105         "T const" to accommodate glibc style.
62106         (check_result): Use less-confusing report format.  "long" -> "long int.
62107         (main): Likewise.
62108         Don't loop if the iteration overflows time_t.
62109         Allow a negative step in the iteration.
62110
62111 2003-07-06  Karl Berry  <karl@gnu.org>
62112
62113         * config/depcomp: update from automake.
62114         * config/config.sub: update from prep.
62115
62116 2003-07-03  Karl Berry  <karl@gnu.org>
62117
62118         * config/config.guess: update from prep.
62119
62120 2003-07-01  Paul Eggert  <eggert@twinsun.com>
62121
62122         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
62123         xreadlink.c now includes it unconditionally.
62124
62125 2003-07-01  Paul Eggert  <eggert@twinsun.com>
62126
62127         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
62128         having it depend on HAVE_SYS_TYPES_H.
62129
62130 2003-07-01  Bruno Haible  <bruno@clisp.org>
62131
62132         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
62133         <sys/types.h> should be sufficient.
62134         Reported by Paul Eggert.
62135
62136 2003-06-26  Karl Berry  <karl@gnu.org>
62137
62138         * config/depcomp: update from automake.
62139
62140 2003-06-26  Bruno Haible  <bruno@clisp.org>
62141
62142         * modules/human: Depend on module stdbool.
62143
62144 2003-06-25  Bruno Haible  <bruno@clisp.org>
62145
62146         * modules/readlink: New file.
62147         * modules/xreadlink: Depend on it.
62148         * MODULES.html.sh (func_all_modules): Add readlink.
62149
62150 2003-06-25  Bruno Haible  <bruno@clisp.org>
62151
62152         * m4/readlink.m4: New file.
62153
62154 2003-06-25  Bruno Haible  <bruno@clisp.org>
62155
62156         * lib/readlink.c: New file.
62157
62158 2003-06-22  Karl Berry  <karl@gnu.org>
62159
62160         * config/srclist.txt: update mkinstalldirs from automake.
62161         * config/mkinstalldirs: update.
62162
62163 2003-06-22  Bruno Haible  <bruno@clisp.org>
62164
62165         Portability to mingw32.
62166         * m4/ssize_t.m4: New file, from GNU gettext.
62167         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
62168         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
62169
62170 2003-06-22  Bruno Haible  <bruno@clisp.org>
62171
62172         * modules/safe-read: Add m4/ssize_t.m4.
62173         * modules/xreadlink: Add m4/ssize_t.m4.
62174
62175 2003-06-20  Bruno Haible  <bruno@clisp.org>
62176
62177         Assume C89, so PARAMS isn't needed.
62178         * lib/unicodeio.h (PARAMS): Remove.
62179         * lib/unicodeio.c: Don't use PARAMS.
62180
62181 2003-06-18  Karl Berry  <karl@gnu.org>
62182
62183         * config/config.{guess,sub}: update from prep.
62184
62185 2003-06-18  Jim Meyering  <jim@meyering.net>
62186
62187         Merge changes from coreutils.
62188         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
62189         Remove explicit declarations of xmalloc and realloc.
62190         Include xalloc.h.
62191         (read_utmp): Remove anachronistic cast of xmalloc.
62192
62193 2003-06-17  Paul Eggert  <eggert@twinsun.com>
62194
62195         Assume C89, so PARAMS isn't needed.
62196         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
62197         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
62198         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
62199         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
62200         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
62201         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
62202         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
62203         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
62204         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
62205         lib/xstrtod.h, lib/xstrtol.h: Likewise.
62206         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
62207         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
62208         no longer needed. Anyway, config.h should always be included before any
62209         other file.
62210
62211 2003-06-11  Simon Josefsson  <jas@extundo.com>
62212
62213         * modules/sysexits: New file.
62214         * MODULES.html.sh (func_all_modules): Add sysexits.
62215
62216 2003-06-11  Simon Josefsson  <jas@extundo.com>
62217
62218         * lib/sysexit_.h: New file.
62219
62220 2003-06-11  Derek Price  <derek@ximbiot.com>
62221
62222         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
62223         necessary.
62224
62225 2003-06-11  Bruno Haible  <bruno@clisp.org>
62226
62227         * m4/sysexits.m4: New file.
62228
62229 2003-06-10  Simon Josefsson  <jas@extundo.com>
62230
62231         * lib/argp.h: New file, from glibc.
62232         * lib/argp-ba.c: New file, from glibc.
62233         * lib/argp-eexst.c: New file, from glibc.
62234         * lib/argp-fmtstream.c: New file, from glibc.
62235         * lib/argp-fmtstream.h: New file, from glibc.
62236         * lib/argp-fs-xinl.c: New file, from glibc.
62237         * lib/argp-help.c: New file, from glibc.
62238         * lib/argp-namefrob.h: New file, from glibc.
62239         * lib/argp-parse.c: New file, from glibc.
62240         * lib/argp-pv.c: New file, from glibc.
62241         * lib/argp-pvh.c: New file, from glibc.
62242         * lib/argp-xinl.c: New file, from glibc.
62243
62244 2003-06-10  Simon Josefsson  <jas@extundo.com>
62245
62246         * modules/strchrnul: New file.
62247
62248 2003-06-10  Simon Josefsson  <jas@extundo.com>
62249
62250         * modules/argp: New file.
62251
62252 2003-06-10  Simon Josefsson  <jas@extundo.com>
62253
62254         * m4/strchrnul.m4: New file.
62255
62256 2003-06-10  Simon Josefsson  <jas@extundo.com>
62257
62258         * lib/strchrnul.h: New file.
62259         * lib/strchrnul.c: New file.
62260
62261 2003-06-10  Bruno Haible  <bruno@clisp.org>
62262
62263         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
62264
62265 2003-06-07  Karl Berry  <karl@gnu.org>
62266
62267         * config/config.{guess,sub}: update from prep.
62268
62269 2003-06-07  Jim Meyering  <jim@meyering.net>
62270
62271         * modules/strtod: Use $(...) notation, not @...@ for
62272         AC_REPLACE'd variables.
62273         * modules/localcharset: Likewise.
62274
62275 2003-06-07  Jim Meyering  <jim@meyering.net>
62276
62277         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
62278         in place of my name in the copyright comment.
62279         Remove definition and uses of __P.
62280
62281         From coreutils.
62282         * lib/stat.c: Don't declare xmalloc explicitly.
62283         Instead, include "xalloc.h".
62284         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
62285         xrealloc, and xcalloc return values.
62286         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
62287         Improve comment.
62288         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
62289
62290 2003-06-07  Bruno Haible  <bruno@clisp.org>
62291
62292         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
62293         avoid AC_CONFIG_LINKS.
62294         * modules/fnmatch (Makefile.am): Use explicit creation rule for
62295         fnmatch.h, to avoid AC_CONFIG_LINKS.
62296         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
62297
62298 2003-06-07  Bruno Haible  <bruno@clisp.org>
62299
62300         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
62301         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
62302         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
62303         directory.
62304         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
62305         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
62306         directory.
62307
62308 2003-06-06  Jim Meyering  <jim@meyering.net>
62309
62310         Merge from coreutils.
62311         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
62312         Consolidate declarations and initializations of *_base* locals.
62313
62314         Merge from coreutils.
62315         This avoids a core dump on systems without GNU putenv,
62316         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
62317         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
62318         (unsetenv): New static function, from GNU libc.
62319         (rpl_putenv): Use it.
62320
62321         * lib/modechange.c: Remove trailing blanks.
62322
62323         Merge from coreutils.
62324         * lib/fsusage.c: Remove declaration of statfs.
62325         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
62326
62327         * lib/posixtm.c: Include <stdbool.h> unconditionally.
62328
62329 2003-06-06  Jim Meyering  <jim@meyering.net>
62330
62331         * lib/stdbool_.h: Renamed from stdbool.h.in.
62332
62333 2003-06-06  Jim Meyering  <jim@meyering.net>
62334             Bruno Haible  <bruno@clisp.org>
62335
62336         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
62337         Adjust Makefile.am snippet not to redirect directly to target.
62338         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
62339
62340 2003-06-05  Paul Eggert  <eggert@twinsun.com>
62341
62342         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
62343         mismatch, look in future quarters as well as past.  This fixes a
62344         bug when processing fall-backwards gaps immediately after a long
62345         period of daylight-saving time.
62346
62347         * lib/mktime.c: Assume freestanding C89 or better.
62348         (HAVE_LIMITS_H): Remove.  Assume it's 1.
62349         (__P): Remove; not used.
62350         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
62351         (mktime, not_equal_tm, print_tm, check_result,
62352         main): Use prototypes.  Use const * where appropriate.
62353         (main): Fix typo in testing code that uncovered by above changes.
62354         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
62355
62356 2003-06-04  Paul Eggert  <eggert@twinsun.com>
62357
62358         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
62359         locale.h, localeconv.  This merges changes from coreutils.
62360
62361         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
62362         It can be removed after the next Autoconf is released.
62363         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
62364         needed.
62365
62366 2003-06-04  Paul Eggert  <eggert@twinsun.com>
62367
62368         * lib/mktime.c: Fix Debian bug 177940
62369         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
62370         (localtime_offset): Now long int, not time_t, because we want it
62371         to be guaranteed to be signed.  All uses changed.
62372         (__mktime_internal): If overflow would occur when adding offset,
62373         don't add it.
62374
62375         Merge 'human' changes from coreutils.  Rewrite to support
62376         locale-specific notations like thousands separators.
62377         * lib/human.c: Simplify authorship notice.
62378         Include human.h immediately after config.h.
62379         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
62380         <limits.h>: Do not include, since human.h does.
62381         (SIZE_MAX, UINTMAX_MAX): New macros.
62382         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
62383         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
62384         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
62385         (power_letter): Renamed from suffixes.
62386         (generate_suffix_backwards): Remove.
62387         (adjust_value): Now takes int style (because of human.h changes)
62388         and long double value (for greater precision on some platforms).
62389         (group_number): New function.
62390         (human_readable): Use it.  Use integer options, not enum.
62391         Put the options before the sizes in the arg list.
62392         Support all the new options.
62393         The old human_readable function has been removed;
62394         use inttostr.h instead.
62395         (human_readable, default_block_size, humblock):
62396         Use uintmax_t, not int, for block sizes.
62397         (human_readable_inexact, block_size_types): Remove.
62398         (block_size_opts): New constant.
62399         (human_options): Renamed from human_block_size, with new signature
62400         that allows block sizes up to UINTMAX_MAX.  All callers changed.
62401         * lib/human.h: Add copyright and authorship notice.
62402         Include <limits.h> and <stdbool.h> unconditionally.
62403         (PARAMS): Remove.  All uses removed.
62404         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
62405         (enum human_inexact_style): Remove tag; now a nameless enum.
62406         (human_floor, human_ceiling, human_round_to_even): Now have
62407         values 2, 0, 1 rather than -1, 1, 0.
62408         (human_group_digits, human_suppress_point_zero, human_autoscale,
62409         human_base_1024, human_SI, human_B): New constants.
62410         (human_readable_inexact, human_block_size): Remove.
62411         (human_readable): Size args are now uintmax_t, not int.
62412         (human_options): New decl.
62413
62414         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
62415         unnecessary now that we assume C89 or better.  This change
62416         imported from coreutils.
62417
62418         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
62419         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
62420         in the 2003-05-30 sync from glibc.
62421
62422         .h files should stand alone, but we shouldn't include <sys/types.h>
62423         if we can get away with just <stddef.h>.
62424
62425         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
62426         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
62427         rather than <sys/types.h>, as we merely need size_t.
62428         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
62429         to get size_t.
62430         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
62431         Include <stdio.h>, to get FILE.
62432         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
62433         memcasecmp.h has included <stddef.h> and all we need is size_t.
62434         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
62435         our interface, instead of including <sys/types.h>
62436
62437 2003-06-04  Paul Eggert  <eggert@twinsun.com>
62438
62439         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
62440         now, as glibc mktime is buggy on non-glibc systems.
62441
62442 2003-06-03  Karl Berry  <karl@gnu.org>
62443
62444         * config/config.sub: update from prep.
62445
62446 2003-06-02  Paul Eggert  <eggert@twinsun.com>
62447
62448         [from coreutils]
62449         Fix some minor time-related bugs with POSIX time arguments.
62450         Some valid time stamps were being rejected (notably -1, and
62451         time stamps before 1900 on 64-bit hosts).  And some invalid
62452         time stamps were being accepted, e.g. September 31.
62453
62454         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
62455         that we can return (time_t) -1 successfully.
62456         * lib/posixtm.c: Likewise.
62457         [HAVE_STDBOOL_H]: Include <stdbool.h>.
62458         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
62459         (t): Remove static var.
62460         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
62461         of static var.  All uses changed.
62462         (year): Do not reject years before 1900; they can occur with
62463         64-bit time_t.
62464         (posix_time_parse): Do not check for out-of-range components;
62465         that is now the caller's responsibility, since our checks were
62466         only approximations.
62467         (posixtime): Use mktime to check for out-of-range components,
62468         since it knows them exactly.
62469         If mktime returns (time_t) -1, check whether an error actually occurred
62470         by invoking localtime on -1.
62471         (main) [TEST_POSIXTIME]: Check for input data errors, and report
62472         posixtime failures better.
62473         Improve the test data (in comments only).
62474
62475 2003-06-02  Karl Berry  <karl@gnu.org>
62476
62477         * config/mkinstalldirs (version): new variable.
62478         (--version): new option.
62479         (usage): improve message.
62480
62481 2003-05-30  Karl Berry  <karl@gnu.org>
62482
62483         * lib/mktime.c: update from libc.
62484
62485 2003-05-30  Bruno Haible  <bruno@clisp.org>
62486
62487         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
62488         * config/config.rpath: Upgrade to gettext-0.12.1.
62489
62490 2003-05-30  Bruno Haible  <bruno@clisp.org>
62491
62492         * m4/gettext.m4: Upgrade to gettext-0.12.1.
62493         * m4/nls.m4: New file, from gettext-0.12.1.
62494         * m4/po.m4: New file, from gettext-0.12.1.
62495         * m4/progtest.m4: Upgrade to gettext-0.12.1.
62496
62497 2003-05-30  Bruno Haible  <bruno@clisp.org>
62498
62499         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
62500         * lib/localcharset.h: Likewise.
62501         * lib/localcharset.c: Likewise.
62502
62503 2003-05-29  Karl Berry  <karl@gnu.org>
62504
62505         * config/config.rpath: update from gettext.
62506
62507 2003-05-28  Paul Eggert  <eggert@twinsun.com>
62508
62509         Assume the headers required for C89 freestanding compilers.
62510         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
62511         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
62512         * m4/human.m4 (gl_HUMAN): Likewise.
62513         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
62514         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
62515         * m4/userspec.m4 (gl_USERSPEC): Likewise.
62516         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
62517         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
62518         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
62519
62520 2003-05-28  Paul Eggert  <eggert@twinsun.com>
62521
62522         Assume the headers required for C89 freestanding compilers.
62523         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
62524         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
62525         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
62526         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
62527         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
62528         define, since <limits.h> is guaranteed to do that.
62529         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
62530         * lib/exclude.c: Include <stdbool.h> unconditionally.
62531         * lib/tempname.c: Include <stddef.h> unconditionally.
62532         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
62533         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
62534         <stddef.h> does that.
62535         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
62536         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
62537         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
62538         needed.
62539         * lib/xstrtol.c: Likewise.
62540         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
62541         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
62542
62543         * lib/addext.c (addext): Use assignment rather than cast, to avoid
62544         warnings on some platforms.
62545
62546         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
62547         arbitrarily.
62548
62549 2003-05-26  Jim Meyering  <jim@meyering.net>
62550
62551         Merge in a change from coreutils:
62552         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
62553         that is guaranteed to be `no'.  Use `no_such_member' to indicate
62554         that condition, rather than `-1' which is slightly misleading.
62555         Change the name of the cache variable to have the gl_ prefix.
62556         Prompted by a patch from Richard Dawe for DJGPP.
62557
62558 2003-05-24  Karl Berry  <karl@gnu.org>
62559
62560         * config/config.guess: update from prep.
62561
62562 2003-05-22  Karl Berry  <karl@gnu.org>
62563
62564         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
62565
62566 2003-05-20  Karl Berry  <karl@gnu.org>
62567
62568         * config/config.guess: update from prep.
62569
62570 2003-05-18  Karl Berry  <karl@gnu.org>
62571
62572         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
62573         might actually be set by the user.
62574
62575         * config/depcomp, install-sh, mdate-sh: update from automake.
62576
62577 2003-05-17  Bruno Haible  <bruno@clisp.org>
62578
62579         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
62580         invalid expansion for AC_EGREP_CPP.
62581         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
62582         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
62583         Suggested by Akim Demaille <akim@epita.fr> in
62584         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
62585
62586 2003-05-12  Jim Meyering  <jim@meyering.net>
62587
62588         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
62589         the space-padded-by-default conversion specifiers, %e, %k, %l.
62590
62591 2003-05-12  Bruno Haible  <bruno@clisp.org>
62592
62593         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
62594         the string is longer than 4 KB.
62595
62596 2003-05-11  Karl Berry  <karl@gnu.org>
62597
62598         * config/config.{guess,sub}: update from prep.
62599
62600 2003-05-09  Bruno Haible  <bruno@clisp.org>
62601
62602         * modules/error: Add m4/strerror_r.m4 to file list.
62603
62604 2003-05-03  Bruno Haible  <bruno@clisp.org>
62605
62606         Upgrade to Unicode-4.0.
62607         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
62608         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
62609         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
62610         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
62611         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
62612         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
62613         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
62614         Change width of U+E0100..U+E01EF from 1 to 0.
62615
62616 2003-04-25  Jim Meyering  <jim@meyering.net>
62617
62618         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
62619         of type size_t, not int.
62620
62621 2003-04-25  Bruno Haible  <bruno@clisp.org>
62622
62623         * lib/copy-file.c: Include <stddef.h>, for size_t.
62624
62625 2003-04-21  Paul Eggert  <eggert@twinsun.com>
62626
62627         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
62628         code which expansion is under static control.  Patch imported from
62629         Akim Demaille's patch to Bison; see
62630         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
62631
62632 2003-04-14  Bruno Haible  <bruno@clisp.org>
62633
62634         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
62635
62636 2003-04-11  Jim Meyering  <jim@meyering.net>
62637
62638         Merge changes from Coreutils.
62639
62640         2003-03-22  Jim Meyering  <jim@meyering.net>
62641
62642         * lib/strftime.c (widen): Cast alloca return value to proper type.
62643
62644         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
62645
62646         From GNU libc.
62647         * lib/strftime.c (my_strftime): Handle very large width
62648         specifications for numeric values correctly.  Improve checks for
62649         overflow.
62650
62651         2003-01-19  Jim Meyering  <jim@meyering.net>
62652
62653         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
62654         definitions.
62655         (nl_get_alt_digit) [! defined my_strftime]: Define.
62656         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
62657         _nl_get_alt_digit and _nl_get_walt_digit.
62658
62659         * lib/strftime.c (my_strftime): Merge in locale-related changes from
62660         libc. These changes have no effect outside of _LIBC.
62661
62662 2003-04-10  Bruno Haible  <bruno@clisp.org>
62663
62664         * modules/findprog: New file.
62665         * MODULES.html.sh (func_all_modules): Add it.
62666
62667 2003-04-10  Bruno Haible  <bruno@clisp.org>
62668
62669         * m4/findprog.m4: New file.
62670         * m4/eaccess.m4: New file.
62671
62672 2003-04-10  Bruno Haible  <bruno@clisp.org>
62673
62674         * lib/findprog.h: New file, from GNU gettext.
62675         * lib/findprog.c: New file, from GNU gettext.
62676
62677 2003-04-05  Jim Meyering  <jim@meyering.net>
62678
62679         Merge changes from Coreutils.
62680
62681         * lib/exclude.h (PARAMS): Remove definition and uses.
62682         * lib/exclude.c: Remove uses of `PARAMS'.
62683
62684         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
62685         Add test-cases for DOS filenames. Declare program_name.
62686         (main): Set up program_name.  Patch by Rich Dawe.
62687
62688         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
62689         error from mntctl.
62690         Use mntctl's return value to drive the entry-processing loop, since
62691         we can't rely on the value of the vmt_length member in the last
62692         entry.  On some systems doing so could result in exhausting
62693         virtual memory.  Based in part on a patch from Mike Jetzer.
62694
62695 2003-04-04  Bruno Haible  <bruno@clisp.org>
62696
62697         * modules/linebreak: New file.
62698         * MODULES.html.sh (func_all_modules): Add it.
62699
62700 2003-04-04  Bruno Haible  <bruno@clisp.org>
62701
62702         * m4/linebreak.m4: New file.
62703
62704 2003-04-04  Bruno Haible  <bruno@clisp.org>
62705
62706         * lib/linebreak.h: New file, from GNU gettext.
62707         * lib/linebreak.c: New file, from GNU gettext with slight
62708         modifications.
62709         * lib/lbrkprop.h: New file, from GNU gettext.
62710
62711 2003-04-03  Bruno Haible  <bruno@clisp.org>
62712
62713         * modules/utf8-ucs4: New file.
62714         * modules/utf16-ucs4: New file.
62715         * modules/ucs4-utf8: New file.
62716         * modules/ucs4-utf16: New file.
62717         * MODULES.html.sh (func_all_modules): Add them.
62718
62719 2003-04-03  Bruno Haible  <bruno@clisp.org>
62720
62721         * m4/utf-ucs4.m4: New file.
62722         * m4/ucs4-utf.m4: New file.
62723
62724 2003-04-03  Bruno Haible  <bruno@clisp.org>
62725
62726         * lib/utf8-ucs4.h: New file, from GNU gettext.
62727         * lib/utf16-ucs4.h: New file, from GNU gettext.
62728         * lib/ucs4-utf8.h: New file, from GNU gettext.
62729         * lib/ucs4-utf16.h: New file, from GNU gettext.
62730
62731 2003-04-02  Bruno Haible  <bruno@clisp.org>
62732
62733         * modules/binary-io: New file.
62734         * MODULES.html.sh (func_all_modules): Add it.
62735
62736 2003-04-02  Bruno Haible  <bruno@clisp.org>
62737
62738         * lib/binary-io.h: New file, from GNU gettext.
62739
62740 2003-04-01  Bruno Haible  <bruno@clisp.org>
62741
62742         * modules/pathname: New file.
62743         * MODULES.html.sh (func_all_modules): Add it.
62744
62745 2003-04-01  Bruno Haible  <bruno@clisp.org>
62746
62747         * lib/pathname.h: New file, from GNU gettext.
62748         * lib/concatpath.c: New file, from GNU gettext.
62749
62750 2003-03-30  Bruno Haible  <bruno@clisp.org>
62751
62752         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
62753
62754 2003-03-30  Bruno Haible  <bruno@clisp.org>
62755
62756         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
62757         function chown() doesn't exist.
62758
62759 2003-03-28  Bruno Haible  <bruno@clisp.org>
62760
62761         * modules/copy-file: New file.
62762         * MODULES.html.sh (func_all_modules): Add it.
62763
62764 2003-03-28  Bruno Haible  <bruno@clisp.org>
62765
62766         * m4/copy-file.m4: New file.
62767
62768 2003-03-28  Bruno Haible  <bruno@clisp.org>
62769
62770         * lib/copy-file.h: New file, from GNU gettext.
62771         * lib/copy-file.c: New file, from GNU gettext.
62772
62773 2003-03-18  Jim Meyering  <jim@meyering.net>
62774
62775         * lib/quote.c (quote_n): Fix typo in comment.
62776
62777 2003-03-18  Bruno Haible  <bruno@clisp.org>
62778
62779         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
62780         checking.
62781         * m4/onceonly_2_57.m4: Likewise.
62782
62783 2003-03-17  Bruno Haible  <bruno@clisp.org>
62784
62785         * m4/onceonly.m4: Require autoconf 2.54 or newer.
62786         (m4_quote): Remove macro.
62787         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
62788
62789 2003-03-14  Jim Meyering  <jim@meyering.net>
62790
62791         Merge changes from Coreutils.
62792         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
62793         to be const, in order to avoid warnings.
62794         (obstack_room): Likewise.
62795         (obstack_empty_p): Likewise.
62796
62797 2003-03-14  Bruno Haible  <bruno@clisp.org>
62798
62799         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
62800         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
62801
62802 2003-03-13  Paul Eggert  <eggert@twinsun.com>
62803
62804         Merge changes from Bison.
62805         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
62806         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
62807         when compiling Bison 1.875's `bitset bset = obstack_alloc
62808         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
62809         * lib/hash.c: Include <stdbool.h> unconditionally.
62810
62811 2003-03-13  Paul Eggert  <eggert@twinsun.com>
62812
62813         * m4/onceonly.m4 (m4_quote): New macro.
62814         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
62815         Quote AC_FOREACH variable-expansions properly.
62816
62817 2003-03-13  Paul Eggert  <eggert@twinsun.com>
62818
62819         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
62820
62821 2003-03-09  Paul Eggert  <eggert@twinsun.com>
62822
62823         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
62824         Reported by Bruce Becker; see:
62825         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
62826
62827 2003-03-03  Paul Eggert  <eggert@twinsun.com>
62828             Bruno Haible  <bruno@clisp.org>
62829
62830         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
62831         Reported by John Hughes, see
62832         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
62833
62834 2003-02-20  Bruno Haible  <bruno@clisp.org>
62835
62836         * MODULES.html.sh (func_all_modules): Add poll.
62837
62838 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
62839
62840         * modules/poll: New file.
62841
62842 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
62843
62844         * lib/poll_.h: New file.
62845         * lib/poll.c: New file.
62846
62847 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
62848
62849         * m4/poll.m4: New file.
62850
62851 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
62852
62853         * modules/mathl: New file.
62854
62855 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
62856
62857         * lib/mathl.h: New file.
62858         * lib/acosl.c: New file.
62859         * lib/asinl.c: New file.
62860         * lib/atanl.c: New file.
62861         * lib/ceill.c: New file.
62862         * lib/cosl.c: New file.
62863         * lib/expl.c: New file.
62864         * lib/floorl.c: New file.
62865         * lib/frexpl.c: New file.
62866         * lib/ldexpl.c: New file.
62867         * lib/logl.c: New file.
62868         * lib/sincosl.c: New file.
62869         * lib/sinl.c: New file.
62870         * lib/sqrtl.c: New file.
62871         * lib/tanl.c: New file.
62872         * lib/trigl.c: New file.
62873         * lib/trigl.h: New file.
62874
62875 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
62876
62877         * m4/mathl.m4: New file.
62878
62879 2003-02-18  Bruno Haible  <bruno@clisp.org>
62880
62881         * MODULES.html.sh (func_all_modules): Add mathl.
62882
62883 2003-02-17  Bruno Haible  <bruno@clisp.org>
62884
62885         * modules/mkdtemp: New module.
62886         * MODULES.html.sh (func_all_modules): Add it.
62887
62888 2003-02-17  Bruno Haible  <bruno@clisp.org>
62889
62890         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
62891
62892 2003-02-17  Bruno Haible  <bruno@clisp.org>
62893
62894         * lib/mkdtemp.h: New file, from GNU gettext.
62895         * lib/mkdtemp.c: New file, from GNU gettext.
62896
62897 2003-02-02  Jim Meyering  <jim@meyering.net>
62898
62899         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
62900         e.g. glibc-2.2.93.
62901
62902 2003-01-31  Bruno Haible  <bruno@clisp.org>
62903
62904         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
62905         'rpl_rename'.
62906         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
62907         'rpl_strnlen'.
62908         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
62909         'rpl_strtod'.
62910         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
62911         'rpl_utime'.
62912
62913 2003-01-31  Bruno Haible  <bruno@clisp.org>
62914
62915         * lib/rename.c: #undef rename before defining rpl_rename.
62916         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
62917
62918 2003-01-30  Bruno Haible  <bruno@clisp.org>
62919
62920         * modules/vasnprintf, modules/vasprintf: New modules.
62921         * MODULES.html.sh (func_all_modules): Add them.
62922
62923 2003-01-30  Bruno Haible  <bruno@clisp.org>
62924
62925         * m4/signed.m4: New file, from GNU gettext.
62926         * m4/longdouble.m4: New file, from GNU gettext.
62927         * m4/wchar_t.m4: New file, from GNU gettext.
62928         * m4/wint_t.m4: New file, from GNU gettext.
62929         * m4/vasnprintf.m4: New file.
62930         * m4/vasprintf.m4: New file.
62931
62932 2003-01-30  Bruno Haible  <bruno@clisp.org>
62933
62934         * lib/printf-args.h: New file, from GNU gettext.
62935         * lib/printf-args.c: New file, from GNU gettext.
62936         * lib/printf-parse.h: New file, from GNU gettext.
62937         * lib/printf-parse.c: New file, from GNU gettext.
62938         * lib/vasnprintf.h: New file, from GNU gettext.
62939         * lib/vasnprintf.c: New file, from GNU gettext.
62940         * lib/asnprintf.c: New file, from GNU gettext.
62941         * lib/vasprintf.h: New file, from GNU gettext with modifications.
62942         * lib/vasprintf.c: New file, from GNU gettext.
62943         * lib/asprintf.c: New file, from GNU gettext.
62944
62945 2003-01-29  Bruno Haible  <bruno@clisp.org>
62946
62947         * modules/stpncpy: New module.
62948         * MODULES.html.sh (func_all_modules): Add it.
62949
62950 2003-01-29  Bruno Haible  <bruno@clisp.org>
62951
62952         * m4/stpncpy.m4: New file.
62953
62954 2003-01-29  Bruno Haible  <bruno@clisp.org>
62955
62956         * lib/stpncpy.h: New file, from GNU gettext with modifications.
62957         * lib/stpncpy.c: New file, from GNU gettext with modifications.
62958
62959 2003-01-28  Bruno Haible  <bruno@clisp.org>
62960
62961         * modules/c-ctype: New module.
62962         * MODULES.html.sh (func_all_modules): Add it.
62963
62964 2003-01-28  Bruno Haible  <bruno@clisp.org>
62965
62966         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
62967         Paul Eggert.
62968         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
62969         Paul Eggert.
62970
62971 2003-01-27  Bruno Haible  <bruno@clisp.org>
62972
62973         * modules/xsetenv: New module.
62974         * MODULES.html.sh (func_all_modules): Add it.
62975
62976 2003-01-27  Bruno Haible  <bruno@clisp.org>
62977
62978         * lib/xsetenv.h: New file, from GNU gettext.
62979         * lib/xsetenv.c: New file, from GNU gettext.
62980
62981 2003-01-23  Jim Meyering  <jim@meyering.net>
62982
62983         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
62984         from working on systems without dirfd (at least Irix and OSF1/Tru64).
62985
62986 2003-01-23  Bruno Haible  <bruno@clisp.org>
62987
62988         * modules/minmax: New module.
62989         * MODULES.html.sh (func_all_modules): Add it.
62990
62991 2003-01-23  Bruno Haible  <bruno@clisp.org>
62992
62993         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
62994         Eggert.
62995
62996 2003-01-22  Bruno Haible  <bruno@clisp.org>
62997
62998         * modules/exit: New module.
62999         * MODULES.html.sh (func_all_modules): Add it.
63000
63001 2003-01-22  Bruno Haible  <bruno@clisp.org>
63002
63003         * lib/exit.h: New file, from GNU gettext.
63004
63005 2003-01-19  Bruno Haible  <bruno@clisp.org>
63006
63007         * gnulib-tool: Recognize option --extract-maintainer.
63008         (func_get_maintainer): New function.
63009         * modules/*: Add Maintainer entry.
63010
63011 2003-01-16  Jim Meyering  <jim@meyering.net>
63012
63013         * m4/regex.m4: The `regex' struct is both input and output.
63014         Initialize it before each use.  Patch by Tim Waugh.
63015
63016 2003-01-16  Bruno Haible  <bruno@clisp.org>
63017
63018         * MODULES.html.sh: Add a table of contents. Add the module name as
63019         leftmost column. Add hyperlinks.
63020
63021 2003-01-15  Bruno Haible  <bruno@clisp.org>
63022
63023         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
63024
63025 2003-01-15  Bruno Haible  <bruno@clisp.org>
63026
63027         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
63028         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
63029         suffix.
63030
63031 2003-01-15  Bruno Haible  <bruno@clisp.org>
63032
63033         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
63034
63035 2003-01-15  Bruno Haible  <bruno@clisp.org>
63036
63037         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
63038         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
63039
63040 2003-01-14  Jim Meyering  <jim@meyering.net>
63041
63042         * lib/same.c (same_name): Tweak a comment.
63043
63044 2003-01-14  Bruno Haible  <bruno@clisp.org>
63045
63046         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
63047         when a string comparison is sufficient.
63048
63049 2003-01-14  Bruno Haible  <bruno@clisp.org>
63050
63051         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
63052         'unsigned int'.
63053
63054 2003-01-14  Bruno Haible  <bruno@clisp.org>
63055
63056         * lib/hash-pjw.c: Add comment about low quality of this function.
63057
63058 2003-01-13  Bruno Haible  <bruno@clisp.org>
63059
63060         * modules/stpcpy: Distribute lib/stpcpy.h.
63061         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
63062
63063 2003-01-13  Bruno Haible  <bruno@clisp.org>
63064
63065         * modules/*: Add a description.
63066         * modules/strpbrk: Fix Makefile.am snippet.
63067         * modules/strtoimax: Fix dependencies.
63068         * modules/strtoumax: Likewise.
63069
63070 2003-01-13  Bruno Haible  <bruno@clisp.org>
63071
63072         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
63073         * modules/alloca (Makefile.am): All object files depend on alloca.h.
63074         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
63075
63076 2003-01-13  Bruno Haible  <bruno@clisp.org>
63077
63078         * gnulib-tool (func_create_testdir): Store config/* files in the main
63079         directory.
63080         * config.rpath: Move to ...
63081         * config/config.rpath: ... here.
63082         * modules/gettext: Contains config/config.rpath, not config.rpath.
63083         * modules/iconv: Likewise.
63084
63085 2003-01-12  Paul Eggert  <eggert@twinsun.com>
63086
63087         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
63088         to avoid collisions with libcurses and libreadline.
63089
63090         * m4/getstr.m4: Remove.
63091         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
63092
63093 2003-01-12  Paul Eggert  <eggert@twinsun.com>
63094
63095         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
63096         to avoid collisions with libcurses and libreadline.
63097
63098         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
63099         * lib/getstr.h, getstr.c: Remove.
63100         * lib/getline.c: Include "getline.h", to check interface.
63101         Move body of old getstr.c here: this defines MIN_CHUNK and
63102         declares getdelim2, which is renamed from getstr.
63103         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
63104
63105         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
63106         All uses changed.
63107         * lib/linebuffer.h: Likewise.
63108         (readline): Remove backward-compatibility macro.
63109
63110 2003-01-12  Paul Eggert  <eggert@twinsun.com>
63111
63112         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
63113         to avoid collisions with libcurses and libreadline.
63114         * getstr: Remove.
63115         * MODULES.html.sh: Remove getstr.
63116         * modules/getline: Depend on unlocked-io, not getstr.
63117
63118 2003-01-12  Jim Meyering  <jim@meyering.net>
63119
63120         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
63121
63122 2003-01-10  Bruno Haible  <bruno@clisp.org>
63123
63124         * modules/alloca: Change Makefile.am requirements. Simplify Include
63125         requirements. Add lib/alloca_.h to file list.
63126
63127 2003-01-10  Bruno Haible  <bruno@clisp.org>
63128
63129         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
63130
63131 2003-01-10  Bruno Haible  <bruno@clisp.org>
63132
63133         * lib/alloca_.h: New file.
63134         * lib/getdate.y: Unconditionally include alloca.h.
63135         * lib/makepath.c: Likewise.
63136         * lib/setenv.c: Likewise.
63137         * lib/userspec.c: Likewise.
63138
63139 2003-01-09  Karl Berry  <karl@gnu.org>
63140
63141         * MODULES.html.sh: include `dirname $0` in PATH, to find
63142         gnulib-tool.
63143
63144 2003-01-09  Bruno Haible  <bruno@clisp.org>
63145
63146         * modules/stdbool: Change configure.ac, Makefile.am requirements.
63147         Simplify Include requirements. Add lib/stdbool.h.in to file list.
63148
63149 2003-01-09  Bruno Haible  <bruno@clisp.org>
63150
63151         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
63152
63153 2003-01-09  Bruno Haible  <bruno@clisp.org>
63154
63155         * lib/stdbool.h.in: New file.
63156
63157 2003-01-09  Bruno Haible  <bruno@clisp.org>
63158
63159         * gnulib-tool (func_all_modules): Ignore files ending in ~.
63160         * MODULES.html.sh: Likewise.
63161
63162 2003-01-08  Jim Meyering  <jim@meyering.net>
63163
63164         * lib/full-write.c: Undefine and define-away `const' after inclusion
63165         of errno.h, not before.  Suggestion from Bruno Haible.
63166
63167 2003-01-08  Bruno Haible  <bruno@clisp.org>
63168
63169         * modules/full-read: Depend on full-write.
63170
63171 2003-01-08  Bruno Haible  <bruno@clisp.org>
63172
63173         * lib/safe-read.c: Include specification header first, to ensure its
63174         selfcontainedness.
63175         * lib/full-write.c: Likewise.
63176
63177 2003-01-07  Jim Meyering  <jim@meyering.net>
63178
63179         * lib/full-write.c: Rework so that it may serve to define full_read,
63180         too.
63181         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
63182
63183 2003-01-07  Bruno Haible  <bruno@clisp.org>
63184
63185         * lib/strtoimax.c: Include <stdint.h> as an alternative to
63186         <inttypes.h>.
63187         * lib/xstrtol.h: Likewise.
63188         * lib/xstrtoimax.c: Likewise.
63189         * lib/xstrtoumax.c: Likewise.
63190         * lib/human.h: Likewise.
63191
63192         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
63193         on systems that have <inttypes.h> but not <stdint.h>.
63194
63195 2003-01-07  Bruno Haible  <bruno@clisp.org>
63196
63197         * MODULES.html.sh: Add copyright notice.
63198         (missed_files): Omit CVS directory entries.
63199         (func_module): Make it work with sed-3.02.
63200         * MODULES.txt: Remove file.
63201
63202 2003-01-06  Jim Meyering  <jim@meyering.net>
63203
63204         * lib/version-etc.c: Update year in translatable copyright string.
63205
63206 2003-01-03  Karl Berry  <karl@gnu.org>
63207
63208         * config/config.{guess,sub}: update from prep.
63209
63210 2003-01-02  Karl Berry  <karl@gnu.org>
63211
63212         * doc/COPYING.DOC: belatedly updated to 1.2.
63213
63214 2003-01-01  Karl Berry  <karl@gnu.org>
63215
63216         * gnulib-tool (func_verify_module): report module name $module in
63217         error message, not $1.
63218         * gnulib-tool (create-testdir): don't complain if destdir couldn't
63219         be created, only if it doesn't exist.
63220         * gnulib-tool (last_checkin_date): don't expand the $Date here.
63221
63222 2002-12-31  Paul Eggert  <eggert@twinsun.com>
63223
63224         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
63225
63226 2002-12-31  Paul Eggert  <eggert@twinsun.com>
63227
63228         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
63229         memcmp if strcoll doesn't work.
63230
63231 2002-12-31  Bruno Haible  <bruno@clisp.org>
63232
63233         * lib/utime.c (utime_null): No need to call ftruncate if the file was
63234         nonempty.
63235
63236 2002-12-31  Bruno Haible  <bruno@clisp.org>
63237
63238         * lib/memcoll.c (STRCOLL): New macro.
63239         (memcoll): Use it.
63240
63241 2002-12-31  Bruno Haible  <bruno@clisp.org>
63242
63243         * lib/localcharset.h: New file.
63244         * lib/localcharset.c: Include it.
63245         * lib/unicodeio.c: Likewise.
63246
63247 2002-12-31  Bruno Haible  <bruno@clisp.org>
63248
63249         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
63250         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
63251
63252 2002-12-31  Bruno Haible  <bruno@clisp.org>
63253
63254         * lib/getline.h: Include <stddef.h>, for size_t.
63255
63256         * lib/unicodeio.h: Include <stddef.h>, for size_t.
63257         * lib/unicodeio.c: Don't include <stddef.h>.
63258
63259 2002-12-31  Bruno Haible  <bruno@clisp.org>
63260
63261         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
63262         HAVE_TM_ZONE.
63263
63264 2002-12-24  Karl Berry  <karl@gnu.org>
63265
63266         * config/config.guess: update from prep.
63267
63268 2002-12-24  Bruno Haible  <bruno@clisp.org>
63269
63270         General infrasructure.
63271         * m4/README: Rewritten.
63272         * m4/onceonly.m4: New file.
63273         * m4/onceonly_2_57.m4: New file.
63274
63275         Module atexit.
63276         * m4/atexit.m4: New file.
63277
63278         Module strtod.
63279         * m4/strtod.m4: New file.
63280
63281         Module strtol.
63282         * m4/strtol.m4: New file.
63283
63284         Module strtoul.
63285         * m4/strtoul.m4: New file.
63286
63287         Module memchr.
63288         * m4/memchr.m4: New file.
63289
63290         Module memcmp.
63291         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
63292         (jm_FUNC_MEMCMP): Invoke it.
63293
63294         Module memcpy.
63295         * m4/memcpy.m4: New file.
63296
63297         Module memmove.
63298         * m4/memmove.m4: New file.
63299
63300         Module memset.
63301         * m4/memset.m4: New file.
63302
63303         Module strcspn.
63304         * m4/strcspn.m4: New file.
63305
63306         Module strpbrk.
63307         * m4/strpbrk.m4: New file.
63308
63309         Module strstr.
63310         * m4/strstr.m4: New file.
63311
63312         Module strerror.
63313         * m4/strerror.m4: New file.
63314
63315         Module mktime.
63316         * m4/mktime.m4: Renamed from jm-mktime.m4.
63317         (gl_PREREQ_MKTIME): New macro.
63318         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
63319
63320         Module malloc.
63321         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
63322         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
63323         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
63324
63325         Module realloc.
63326         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
63327         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
63328         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
63329
63330         Module strftime.
63331         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
63332         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
63333         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
63334         gl_TM_GMTOFF.
63335         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
63336
63337         Module xalloc.
63338         * m4/xalloc.m4: New file.
63339
63340         Module alloca.
63341         * m4/alloca.m4: New file.
63342
63343         Module putenv.
63344         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
63345         (jm_FUNC_PUTENV): Invoke it.
63346
63347         Module setenv.
63348         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
63349         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
63350         when invoked twice.
63351         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
63352         gt_FUNC_SETENV.
63353
63354         Module memrchr.
63355         * m4/memrchr.m4: New file.
63356
63357         Module stpcpy.
63358         * m4/stpcpy.m4: New file.
63359
63360         Module strcase.
63361         * m4/strcase.m4: New file.
63362
63363         Module strdup.
63364         * m4/strdup.m4: New file.
63365
63366         Module strnlen.
63367         * m4/strnlen.m4: New file.
63368
63369         Module strndup.
63370         * m4/strndup.m4: New file.
63371
63372         Module xstrtod.
63373         * m4/xstrtod.m4: New file.
63374
63375         Module xstrtol.
63376         * m4/xstrtol.m4: New file.
63377
63378         Module getdate.
63379         * m4/getdate.m4: New file.
63380
63381         Module unlocked-io.
63382         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
63383         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
63384         * m4/jm-glibc-io.m4n: Remove file.
63385
63386         Module long-options.
63387         * m4/long-options.m4: New file.
63388
63389         Module md5.
63390         * m4/md5.m4: New file.
63391
63392         Module sha.
63393         * m4/sha.m4: New file.
63394
63395         Module getstr.
63396         * m4/getstr.m4: New file.
63397
63398         Module getline.
63399         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
63400         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
63401         <sys/types.h>, for size_t. Use the function name gnu_getline, not
63402         simply getline. Infoke gl_PREREQ_GETLINE.
63403
63404         Module obstack.
63405         * m4/obstack.m4: New file.
63406
63407         Module hash.
63408         * m4/hash.m4: New file.
63409
63410         Module readtokens.
63411         * m4/readtokens.m4: New file.
63412
63413         Module strverscmp.
63414         * m4/strverscmp.m4: New file.
63415
63416         Module stdbool.
63417         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
63418         OSF/1.
63419
63420         Module strtoll.
63421         * m4/strtoll.m4: New file.
63422
63423         Module strtoull.
63424         * m4/strtoull.m4: New file.
63425
63426         Module strtoimax.
63427         * m4/strtoimax.m4: New file.
63428
63429         Module strtoumax.
63430         * m4/strtoumax.m4: New file.
63431
63432         Module xstrtoimax.
63433         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
63434         jm_AC_PREREQ_XSTRTOIMAX.
63435         Moved the strtol prerequisites to strtol.m4.
63436         Moved the strtoll prerequisites to strtoll.m4.
63437         Moved the strtoimax prerequisites to strtoimax.m4.
63438
63439         Module xstrtoumax.
63440         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
63441         jm_AC_PREREQ_XSTRTOUMAX.
63442         Moved the strtoul prerequisites to strtoul.m4.
63443         Moved the strtoull prerequisites to strtoull.m4.
63444         Moved the strtoumax prerequisites to strtoumax.m4.
63445
63446         Module chown.
63447         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
63448         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
63449
63450         Module dup2.
63451         * m4/dup2.m4: New file.
63452
63453         Module ftruncate.
63454         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
63455         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
63456
63457         Module getgroups.
63458         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
63459         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
63460
63461         Module gettimeofday.
63462         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
63463         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
63464         gl_PREREQ_GETTIMEOFDAY.
63465
63466         Module mkdir.
63467         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
63468         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
63469
63470         Module mkstemp.
63471         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
63472         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
63473         jm_AC_TYPE_UINTMAX_T.
63474         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
63475
63476         Module stat.
63477         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
63478         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
63479
63480         Module lstat.
63481         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
63482         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
63483
63484         Module timespec.
63485         * m4/timespec.m4 (gl_TIMESPEC): New macro.
63486         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
63487         * m4/st_mtim.m4: Indentation.
63488
63489         Module nanosleep.
63490         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
63491         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
63492         gl_PREREQ_NANOSLEEP.
63493
63494         Module regex.
63495         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
63496         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
63497         (gl_REGEX): New macro.
63498
63499         Module rename.
63500         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
63501         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
63502
63503         Module rmdir.
63504         * m4/rmdir.m4: New file.
63505
63506         Module utime.
63507         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
63508         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
63509         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
63510
63511         Module dirname.
63512         * m4/dirname.m4: New file.
63513
63514         Module getopt.
63515         * m4/getopt.m4: New file.
63516
63517         Module unistd-safer.
63518         * m4/unistd-safer.m4: New file.
63519
63520         Module fnmatch.
63521         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
63522         declaration.
63523         (gl_PREREQ_FNMATCH_EXTRA): New macro.
63524         (gl_FUNC_FNMATCH_POSIX): New macro.
63525         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
63526         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
63527         simply fnmatch.
63528
63529         Module exclude.
63530         * m4/exclude.m4: New file.
63531
63532         Module human.
63533         * m4/human.m4: New file.
63534
63535         Module acl.
63536         * m4/acl.m4: Nop.
63537
63538         Module backupfile.
63539         * m4/backupfile.m4: New file.
63540         * m4/d-ino.m4: Indentation.
63541
63542         Module fsusage.
63543         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
63544         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
63545         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
63546
63547         Module dirfd.
63548         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
63549         requirements.
63550
63551         Module euidaccess.
63552         * m4/euidaccess.m4: New file.
63553
63554         Module file-type.
63555         * m4/file-type.m4: New file.
63556
63557         Module fileblocks.
63558         * m4/fileblocks.m4: New file.
63559
63560         Module filemode.
63561         * m4/filemode.m4: New file.
63562
63563         Module isdir.
63564         * m4/isdir.m4: New file.
63565
63566         Module lchown.
63567         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
63568         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
63569
63570         Module makepath.
63571         * m4/makepath.m4: New file.
63572
63573         Module modechange.
63574         * m4/modechange.m4: New file.
63575
63576         Module mountlist.
63577         * m4/mountlist.m4: New file.
63578         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
63579         Indentation.
63580
63581         Module path-concat.
63582         * m4/path-concat.m4: New file.
63583
63584         Module pathmax.
63585         * m4/pathmax.m4: New file.
63586
63587         Module same.
63588         * m4/same.m4: New file.
63589
63590         Module save-cwd.
63591         * m4/save-cwd.m4: New file.
63592
63593         Module savedir.
63594         * m4/savedir.m4: New file.
63595
63596         Module xgetcwd.
63597         * m4/xgetcwd.m4: New file.
63598         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
63599
63600         Module xreadlink.
63601         * m4/xreadlink.m4: New file.
63602
63603         Module safe-read.
63604         * m4/safe-read.m4: New file.
63605
63606         Module safe-write.
63607         * m4/safe-write.m4: New file.
63608
63609         Module closeout.
63610         * m4/closeout.m4: New file.
63611
63612         Module stdio-safer.
63613         * m4/stdio-safer.m4: New file.
63614
63615         Module getpass.
63616         * m4/getpass.m4: New file.
63617
63618         Module getugroups.
63619         * m4/getugroups.m4: New file.
63620
63621         Module group-member.
63622         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
63623         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
63624
63625         Module idcache.
63626         * m4/idcache.m4: New file.
63627
63628         Module userspec.
63629         * m4/userspec.m4: New file.
63630
63631         Module gettime.
63632         * m4/clock_time.m4: New file.
63633         * m4/gettime.m4: New file.
63634
63635         Module settime.
63636         * m4/settime.m4: New file.
63637
63638         Module posixtm.
63639         * m4/posixtm.m4: New file.
63640
63641         Module gethostname.
63642         * m4/gethostname.m4: New file.
63643
63644         Module canon-host.
63645         * m4/canon-host.m4: New file.
63646
63647         Module gettext.
63648         * m4/codeset.m4: New file, from gettext-0.11.5.
63649         * m4/gettext.m4: New file, from gettext-0.11.5.
63650         * m4/glibc21.m4: New file, from gettext-0.11.5.
63651         * m4/iconv.m4: New file, from gettext-0.11.5.
63652         * m4/intdiv0.m4: New file, from gettext-0.11.5.
63653         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
63654         * m4/inttypes.m4: New file, from gettext-0.11.5.
63655         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
63656         * m4/isc-posix.m4: New file, from gettext-0.11.5.
63657         * m4/lcmessage.m4: New file, from gettext-0.11.5.
63658         * m4/lib-ld.m4: New file, from gettext-0.11.5.
63659         * m4/lib-link.m4: New file, from gettext-0.11.5.
63660         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
63661         * m4/progtest.m4: New file, from gettext-0.11.5.
63662         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
63663         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
63664         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
63665
63666         Module localcharset.
63667         * m4/localcharset.m4: New file.
63668
63669         Module hard-locale.
63670         * m4/hard-locale.m4: New file.
63671
63672         Module mbswidth.
63673         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
63674         onceonly macros.
63675         * m4/mbrtowc.m4: Add comment.
63676
63677         Module memcasecmp.
63678         * m4/memcasecmp.m4: New file.
63679
63680         Module memcoll.
63681         * m4/memcoll.m4: New file.
63682
63683         Module unicodeio.
63684         * m4/unicodeio.m4: New file.
63685
63686         Module rpmatch.
63687         * m4/rpmatch.m4: New file.
63688
63689         Module yesno.
63690         * m4/yesno.m4: New file.
63691
63692         Module exitfail.
63693         * m4/exitfail.m4: New file.
63694
63695         Module c-stack.
63696         * m4/c-stack.m4 (gl_C_STACK): New macro.
63697         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
63698
63699         Module error.
63700         * m4/error.m4 (gl_ERROR): New macro.
63701         (jm_PREREQ_ERROR): Use onceonly macros.
63702
63703         Module fatal.
63704         * m4/fatal.m4: New file.
63705
63706         Module getloadavg.
63707         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
63708         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
63709
63710         Module getpagesize.
63711         * m4/getpagesize.m4: New file.
63712
63713         Module getusershell.
63714         * m4/getusershell.m4: New file.
63715
63716         Module physmem.
63717         * m4/physmem.m4: New file.
63718
63719         Module posixver.
63720         * m4/posixver.m4: New file.
63721
63722         Module quotearg.
63723         * m4/quotearg.m4: New file.
63724
63725         Module quote.
63726         * m4/quote.m4: New file.
63727
63728         Module readutmp.
63729         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
63730
63731         Module sig2str.
63732         * m4/sig2str.m4: New file.
63733
63734         Other.
63735         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
63736         ulonglong.m4.
63737         * m4/intmax_t.m4: New file.
63738         * m4/d-type.m4: Indentation.
63739         * m4/jm-macros.m4: Update.
63740         * m4/prereq.m4 (jm_PREREQ): Update.
63741         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
63742         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
63743         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
63744         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
63745         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
63746         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
63747         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
63748         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
63749         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
63750         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
63751         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
63752         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
63753         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
63754         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
63755         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
63756         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
63757         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
63758         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
63759         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
63760
63761 2002-12-24  Bruno Haible  <bruno@clisp.org>
63762
63763         * MODULES.txt: Update according to m4/ changes.
63764
63765         Module gettext.
63766         * config.rpath: New file, from gettext-0.11.5.
63767
63768         * modules/*: New module descriptions.
63769         * gnulib-tool: New file.
63770         * MODULES.html.sh: New file.
63771
63772 2002-12-21  Karl Berry  <karl@gnu.org>
63773
63774         * doc/fdl.texi: update to version 1.2.
63775
63776 2002-12-19  Karl Berry  <karl@gnu.org>
63777
63778         * config/config.guess: update from prep.
63779
63780 2002-12-18  Bruno Haible  <bruno@clisp.org>
63781
63782         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
63783         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
63784
63785 2002-12-17  Bruno Haible  <bruno@clisp.org>
63786
63787         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
63788         stdlib.h, string.h.
63789
63790 2002-12-17  Bruno Haible  <bruno@clisp.org>
63791
63792         * lib/canon-host.c (strdup): Remove unused declaration.
63793
63794         * lib/fsusage.c: Include full_read.h.
63795         (get_fs_usage): Use full_read instead of safe_read.
63796
63797         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
63798
63799 2002-12-12  Karl Berry  <karl@gnu.org>
63800
63801         * config/config.guess: update from prep.
63802
63803 2002-12-11  Bruno Haible  <bruno@clisp.org>
63804
63805         * m4/setenv.m4: New file, from gettext-0.11.5.
63806
63807 2002-12-11  Bruno Haible  <bruno@clisp.org>
63808
63809         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
63810         not unsetenv().
63811         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
63812         modifications:
63813
63814         2002-12-11  Bruno Haible  <bruno@clisp.org>
63815
63816                 * setenv.c (alloca): Fall back to malloc.
63817                 (freea): New macro.
63818                 (setenv): Use freea() to free memory allocated with alloca().
63819
63820         2002-11-13  Bruno Haible  <bruno@clisp.org>
63821
63822                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
63823                 function declarations.
63824                 * unsetenv.c (unsetenv): Likewise.
63825
63826         2002-03-04  Bruno Haible  <bruno@clisp.org>
63827
63828                 Portability to AIX 4.3.3.
63829                 * unsetenv.c: New file, extracted from setenv.c.
63830                 * setenv.c: Move the unsetenv() function to unsetenv.c.
63831
63832         2001-12-20  Bruno Haible  <bruno@clisp.org>
63833
63834                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
63835                 use malloc instead. For SunOS 4.
63836
63837         2001-12-11  Bruno Haible  <bruno@clisp.org>
63838
63839                 * setenv.c: Declare alloca.
63840                 (compar_fn_t): New typedef.
63841                 (KNOWN_VALUE, STORE_VALUE): Use it.
63842
63843         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
63844         setenv.h.
63845
63846 2002-12-10  Paul Eggert  <eggert@twinsun.com>
63847
63848         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
63849         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
63850         Choose values that are less likely to collide with system fnmatch
63851         options.
63852         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
63853         defined (e.g., a pure POSIX system).
63854         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
63855         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
63856
63857 2002-12-06  Paul Eggert  <eggert@twinsun.com>
63858
63859         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
63860         a pain in practice to deal with generated m4 files.  This change
63861         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
63862
63863         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
63864         and jm-glibc-io.m4, as they are no longer a special case.
63865         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
63866         kludge and the auto-generation stuff.  Check only whether the
63867         functions are declared, not whether they exist, since older hosts
63868         that don't declare the functions can't use the optimization anyway.
63869
63870 2002-12-06  Jim Meyering  <jim@meyering.net>
63871
63872         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
63873
63874         Merge in changes from libc's misc/error.c, in preparation
63875         for the merge of gnulib's changes back into libc.
63876
63877         * lib/error.c (_): Define only if not already defined.
63878         Move definition to follow all #include directives.
63879         Include unlocked-io.h only if !_LIBC.
63880         [_LIBC]: Include <libio/libioP.h>.
63881         [USE_IN_LIBIO]: Include <libio/iolibio.h>
63882         (fflush): Tweak definition to use INTUSE.
63883         (putc): Define.
63884
63885 2002-12-05  Paul Eggert  <eggert@twinsun.com>
63886
63887         * lib/alloca.c [defined emacs]: Include "lisp.h".
63888         (xalloc_die) [defined emacs]: New macro.
63889         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
63890         [! defined emacs]: Include <xalloc.h>.
63891         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
63892         (pointer): Typedef to POINTER_TYPE *.
63893         (malloc): Remove decl; we now always use xmalloc.
63894         (alloca): Use old-style definition, since Emacs needs this.
63895         Check for arithmetic overflow when computing combined size.
63896
63897 2002-12-04  Paul Eggert  <eggert@twinsun.com>
63898
63899         Do not generate unlocked-io.h automatically, since it's easier to
63900         maintain it by hand.
63901
63902         * lib/unlocked-io.h: New file, from GNU diffutils,
63903         but with proper copyright notice and attribution.
63904         * lib/gen-uio: Remove.
63905         * lib/Makefile.am: Add copyright notice.
63906         (libfetish_a_SOURCES): Add unlocked-io.h.
63907         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
63908         (DISTCLEANFILES, io_functions): Remove macros.
63909         (EXTRA_DIST): Remove gen_uio.
63910         (unlocked-io.h): Remove rule.
63911
63912 2002-12-04  Jim Meyering  <jim@meyering.net>
63913
63914         Reflect the fact that stat.c and lstat.c are no longer generated.
63915         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
63916         (DISTCLEANFILES): Likewise.
63917         (EXTRA_DIST): Likewise.
63918         (all_local): Don't depend on stat.c or lstat.c.
63919         (stat.c, lstat.c): Remove rules.
63920         (EXTRA_DIST): Remove xstat.in.
63921
63922         * lib/xstat.in: Remove file.  Contents moved into stat.c.
63923         * lib/stat.c: New file.  Contents mostly from xstat.in.
63924         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
63925         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
63926
63927         * lib/safe-read.c: Rework so that it may serve to define safe_write,
63928         too.
63929         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
63930
63931 2002-12-03  Jim Meyering  <jim@meyering.net>
63932
63933         * lib/safe-read.c, safe-write.c: Change variable names and comments,
63934         but not semantics, to minimize the differences between these two files.
63935         (safe_read): Change comment to mention SAFE_READ_ERROR.
63936
63937         * lib/safe-read.c (IS_EINTR): Define.
63938         (safe_read): Use IS_EINTR in place of in-function cpp directives.
63939
63940 2002-12-02  Jim Meyering  <jim@meyering.net>
63941
63942         * lib/safe-read.c (EINTR): Define.
63943         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
63944         (INT_MAX): Provide fallback.
63945         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
63946
63947         * lib/safe-read.h (SAFE_READ_ERROR): Define.
63948
63949 2002-12-02  Bruno Haible  <bruno@clisp.org>
63950
63951         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
63952         Define, taken from safe-read.c.
63953         (INT_MAX): Provide fallback.
63954         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
63955         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
63956
63957         * lib/safe-read.c (EINTR): Remove definition.
63958         (safe_read): Don't use EINTR if it is absent.
63959
63960 2002-12-01  Jim Meyering  <jim@meyering.net>
63961
63962         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
63963         zero.
63964         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
63965
63966 2002-11-27  Paul Eggert  <eggert@twinsun.com>
63967
63968         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
63969         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
63970         with `if (! (value < limit)) abort ();', for readability.
63971
63972 2002-11-26  Karl Berry  <karl@gnu.org>
63973
63974         * lib/strdup.c: copy from libc again, with jim's ok.
63975         * lib/.cppi-disable: re-add strdup.c
63976
63977 2002-11-25  Karl Berry  <karl@gnu.org>
63978
63979         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
63980         instead of "strtol.c".
63981
63982 2002-11-25  Karl Berry  <karl@gnu.org>
63983
63984         * config/install-sh: update from automake for variable quoting, $0 in
63985         error msgs, etc.
63986
63987         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
63988         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
63989         entry.
63990
63991 2002-11-25  Jim Meyering  <jim@meyering.net>
63992
63993         * lib/mktime.c: Sync from libc, now that it has the latest fix.
63994
63995 2002-11-24  Karl Berry  <karl@gnu.org>
63996
63997         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
63998         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
63999
64000 2002-11-24  Jim Meyering  <jim@meyering.net>
64001
64002         Update from coreutils:
64003
64004         * lib/mktime.c: Merge in changes from libc.
64005
64006         Avoid a link-time failure on some Linux systems.
64007         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
64008         (otherwise).
64009         (__mon_yday): Declare with the STATIC attribute.
64010         (__mktime_internal): Likewise.
64011         Based on a report from Greg Schafer.
64012
64013 2002-11-23  Jim Meyering  <jim@meyering.net>
64014
64015         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
64016         Use `unsigned', not `int', as type of index.
64017
64018         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
64019
64020         * lib/fsusage.c: Remove unneeded parentheses around operands of
64021         `defined'.
64022
64023 2002-11-22  Paul Eggert  <eggert@twinsun.com>
64024
64025         * lib/quotearg.h: Allow multiple inclusion by surrounding with
64026         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
64027         so that we can be included first.
64028         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
64029         * lib/quotearg.c: Include quotearg.h immediately after config.h.
64030         No need to include stddef.h or sys/types.h any more.
64031         Surround local include files with "", not "<>".
64032         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
64033         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
64034         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
64035         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
64036         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
64037         (ISPRINT): Remove; no longer needed now that we assume C89.
64038
64039         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
64040         Preserve errno.
64041
64042         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
64043         quotearg_char): Use SIZE_MAX rather than
64044         (size_t) -1 when we are talking about "infinity".
64045
64046         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
64047
64048 2002-11-22  Paul Eggert  <eggert@twinsun.com>
64049
64050         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
64051         hint that one should use `if (! x) abort ();' rather than `assert
64052         (x);', and anyway it's one less thing to worry about configuring.
64053         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
64054         hash_rehash, hash_insert): Use abort rather than assert.
64055
64056 2002-11-22  Bruno Haible  <bruno@clisp.org>
64057
64058         * lib/safe-read.h: Assume C89. Add comments.
64059         (safe_read): Change return type to size_t.
64060         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
64061         byte counts > SSIZE_MAX correctly.
64062         * lib/safe-write.h: New file.
64063         * lib/safe-write.c: New file.
64064         * lib/full-read.h: New file.
64065         * lib/full-read.c: New file.
64066         * lib/full-write.h: Assume C89. Add comments.
64067         * lib/full-write.c: Include safe-write.h.
64068         (full_write): Rewritten to use safe_write.
64069         Suggested by Jim Meyering and Paul Eggert.
64070
64071 2002-11-21  Jim Meyering  <jim@meyering.net>
64072
64073         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
64074
64075         Merge in changes from the coreutils.
64076
64077         2002-09-25  Paul Eggert  <eggert@twinsun.com>
64078         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
64079         <stdint.h>.
64080         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
64081         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
64082         int.  Work more efficiently if X is the same width as uintmax_t.
64083         Do not compare X to -1, to avoid bogus compiler warning.
64084         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
64085         Don't assume that f_frsize and f_bsize are the same type.
64086
64087         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
64088         warning on FreeBSD.
64089
64090         * lib/makepath.c (make_path): Restore umask *before* creating the final
64091         component.
64092         (make_path): Minor reformatting.
64093
64094         * lib/xmalloc.c: Adjust to work with new autoconf macros,
64095         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
64096         HAVE_MALLOC/HAVE_REALLOC.
64097
64098         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
64099         dummy ones.  At least on GNU/Linux systems, `auto' means something
64100         else.
64101         From Michael Stone.
64102
64103 2002-11-21  Bruno Haible  <bruno@clisp.org>
64104
64105         Remove case insensitive option matching.
64106         * lib/argmatch.h (argcasematch): Remove declaration.
64107         (ARGCASEMATCH): Remove macro.
64108         (__xargmatch_internal): Remove case_sensitive argument.
64109         (XARGMATCH): Update.
64110         (XARGCASEMATCH): Remove macro.
64111         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
64112         case_sensitive argument.
64113         (argcasematch): Remove function.
64114         (__xargmatch_internal): Remove case_sensitive argument.
64115         (main): Use XARGMATCH instead of XARGCASEMATCH.
64116
64117         * lib/xmalloc.c: Change compile-time error message. Add comment about
64118         required autoconf version.
64119
64120 2002-11-20  Paul Eggert  <eggert@twinsun.com>
64121
64122         Merge argmatch cleanups from Bison.  Assume C89.
64123
64124         * lib/argmatch.c: Include config.h here, not in argmatch.h.
64125         Include stdlib.h, for EXIT_FAILURE.
64126         Always include <string.h>, since we assume C89.
64127         (EXIT_FAILURE): Remove pre-C89 bug workaround.
64128         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
64129         Include <stddef.h> instead, since it's all we need for size_t.
64130         (PARAMS): Remove.  All uses removed.
64131         (ARRAY_CARDINALITY): Do not bother to #undef.
64132         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
64133         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
64134         Remove unnecessary parentheses.
64135         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
64136         Insert necessary parentheses.
64137         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
64138         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
64139
64140 2002-11-19  Bruno Haible  <bruno@clisp.org>
64141
64142         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
64143         * lib/mbswidth.h: Include <stddef.h>, for size_t.
64144
64145         * lib/mbswidth.h (PARAMS): Remove macro.
64146         (mbswidth, mbsnwidth): Use ANSI C function declarations.
64147         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
64148
64149         * lib/gcd.h (PARAMS): Remove macro.
64150         (gcd): Use ANSI C function declarations.
64151         * lib/gcd.c (gcd): Likewise.
64152
64153 2002-11-15  Bruno Haible  <bruno@clisp.org>
64154
64155         * lib/strcspn.c: Include <stddef.h>.
64156         (strcspn): Use ANSI C function declaration. Change return type to
64157         size_t. Use NULL.
64158         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
64159         (strpbrk): Use NULL.
64160         * lib/strpbrk.h (PARAMS): Remove macro.
64161         (strpbrk): Use ANSI C function declaration.
64162         * lib/strstr.c: Don't include <sys/types.h>.
64163         * lib/strstr.h (PARAMS): Remove macro.
64164         (strstr): Use ANSI C function declarations.
64165
64166 2002-11-14  Karl Berry  <karl@gnu.org>
64167
64168         * config/mkinstalldirs: `do' on separate line, instead of
64169         `for var; do'.
64170
64171 2002-11-06  Bruno Haible  <bruno@clisp.org>
64172
64173         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
64174         * lib/gcd.c (gcd): Likewise.
64175
64176 2002-11-05  Bruno Haible  <bruno@clisp.org>
64177
64178         * lib/gcd.h: New file, from gettext-0.11.5.
64179         * lib/gcd.c: New file, from gettext-0.11.5.
64180
64181 2002-11-05  Bruno Haible  <bruno@clisp.org>
64182
64183         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
64184         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
64185         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
64186         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
64187
64188         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
64189         <libintl.h>.
64190         * lib/makepath.c: Include gettext.h instead of <locale.h> and
64191         <libintl.h>.
64192
64193         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
64194         * lib/human.c: Include gettext.h instead of <libintl.h>.
64195         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
64196         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
64197         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
64198         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
64199         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
64200         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
64201         (textdomain): Remove definition.
64202         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
64203
64204         * lib/long-options.c: Remove include of <libintl.h> and definition of
64205         _.
64206         * lib/same.c: Remove include of <libintl.h> and definition of _.
64207
64208 2002-11-04  Owen Taylor  <otaylor@redhat.com>
64209
64210         * lib/config.charset: A few additions for Solaris.
64211
64212 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
64213
64214         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
64215         * lib/localcharset.c (locale_charset): Declare as extern "C".
64216
64217 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
64218
64219         * lib/config.charset: msdos in uk_UA uses CP1125.
64220
64221 2002-11-04  Bruno Haible  <bruno@clisp.org>
64222
64223         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
64224         * lib/strcase.h: New file, from GNU gettext-0.11.5.
64225         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
64226         * lib/strstr.h: New file, from GNU gettext-0.11.5.
64227         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
64228
64229 2002-11-04  Bruno Haible  <bruno@clisp.org>
64230
64231         * lib/localcharset.c (locale_charset): Don't return an empty string.
64232
64233 2002-11-04  Bruno Haible  <bruno@clisp.org>
64234
64235         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
64236         aliases.
64237
64238 2002-11-04  Bruno Haible  <bruno@clisp.org>
64239
64240         * lib/config.charset: Update for newest glibc. Add canonical names
64241         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
64242
64243 2002-11-04  Bruno Haible  <bruno@clisp.org>
64244
64245         * lib/config.charset: Add support for NetBSD.
64246
64247 2002-11-04  Bruno Haible  <bruno@clisp.org>
64248
64249         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
64250
64251 2002-11-01  Bruno Haible  <bruno@clisp.org>
64252
64253         * configure.in: Add AC_CONFIG_AUX_DIR call.
64254         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
64255         test/Makefile.
64256         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
64257
64258 2002-09-28  Karl Berry  <karl@gnu.org>
64259
64260         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
64261         installed automake until the next release, since changes have been
64262         made.
64263
64264 2002-09-25  Karl Berry  <karl@gnu.org>
64265
64266         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
64267         * lib/getopt*: copy from libc/posix.
64268         * lib/gettext.h: copy from gettext.
64269         * lib/.cppi-disable: add strdup.c, gettext.h.
64270
64271 2002-09-25  Karl Berry  <karl@gnu.org>
64272
64273         * config/srclist.txt: enable gettext.h check.
64274         * config/config.{guess,sub}: update from prep.
64275         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
64276                 from automake 1.6.3.
64277         See srclist*.
64278
64279 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
64280
64281         * regex.c (PATFETCH): Remove the translating fetch.
64282         (PATFETCH_RAW): Rename to PATFETCH.
64283         (set_image_of_range): New fun.
64284         (SET_RANGE_TABLE_WORK_AREA): Use it.
64285         (regex_compile): Don't translate the pattern chars so eagerly.
64286         Only do it when inserting an `exactn' bytecode or when handling
64287         a char-range.
64288         (mutually_exclusive_p): Avoid empty statement.
64289
64290 2002-07-06  Jim Meyering  <meyering@lucent.com>
64291
64292         * m4/README: Don't mention Makefile.am.in.
64293         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
64294
64295 2002-07-01  Jim Meyering  <meyering@lucent.com>
64296
64297         * lib/c-stack.c: Include sys/time.h.
64298         From Volker Borchert.
64299
64300 2002-06-26  Paul Eggert  <eggert@twinsun.com>
64301
64302         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
64303
64304 2002-06-26  Paul Eggert  <eggert@twinsun.com>
64305
64306         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
64307         New macro.  Use it uniformly instead of
64308         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
64309         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
64310         reported by Vin Shelton.
64311
64312 2002-06-22  Paul Eggert  <eggert@twinsun.com>
64313
64314         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
64315         Do not assume SA_SIGINFO behavior.
64316         Bug reported by Jim Meyering on NetBSD 1.5.2.
64317
64318 2002-06-22  Jim Meyering  <meyering@lucent.com>
64319
64320         * m4/c-stack.m4: New file, from diffutils-2.8.2.
64321         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
64322
64323         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
64324         now that configure.ac uses AC_GNU_SOURCE.
64325         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
64326         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
64327
64328         Update to latest tools.  Suggestions from Paul Eggert.
64329         * m4/stdbool.m4: New file, from diffutils-2.8.2.
64330         * m4/gnu-source.m4: Update from diffutils-2.8.2.
64331         * m4/fnmatch.m4: Likewise.
64332         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
64333         to AC_HEADER_STDBOOL
64334
64335 2002-06-22  Jim Meyering  <meyering@lucent.com>
64336
64337         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
64338         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
64339
64340 2002-06-22  Jim Meyering  <meyering@lucent.com>
64341
64342         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
64343
64344         * lib/exitfail.c, exitfail.h: Likewise.
64345         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
64346
64347         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
64348         of fnmatch.h.
64349         (EXTRA_DIST): Add fnmatch_loop.c.
64350         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
64351
64352         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
64353         * lib/fnmatch.c: Update from diffutils-2.8.2.
64354         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
64355         * lib/fnmatch.h: Remove file.
64356
64357 2002-06-21  Jim Meyering  <meyering@lucent.com>
64358
64359         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
64360         * m4/mbrtowc.m4: Likewise.
64361
64362         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
64363         * m4/mbswidth.m4: Reflect name change:
64364         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
64365         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
64366
64367         * m4/lib-link.m4: Update from gettext-0.11.2.
64368         * m4/gettext.m4: Likewise.
64369
64370         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
64371         From Alfred M. Szmidt.
64372
64373 2002-06-18  Paul Eggert  <eggert@twinsun.com>
64374
64375         * lib/file-type.h: Report an error if neither S_ISREG nor
64376         S_IFREG is defined, instead of using a test specific to glibc
64377         2.2.  This should be safe, since POSIX requires S_ISREG and
64378         Unix Version 7 had S_IFREG.  We don't need to check for
64379         <sys/types.h> since we don't use any symbols that it defines.
64380
64381 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
64382
64383         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
64384         $@-t, so that each temporary file name is unique and valid in the first
64385         8 characters, for operation under DOS.
64386
64387 2002-06-15  Paul Eggert  <eggert@twinsun.com>
64388
64389         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
64390
64391 2002-06-15  Jim Meyering  <meyering@lucent.com>
64392
64393         Work even with DJGPP 2.03, which lacks support for symlinks.
64394         From Richard Dawe.
64395         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
64396         is defined.
64397         * lib/lchown.c (S_ISLNK): Likewise.
64398
64399 2002-06-15  Jim Meyering  <meyering@lucent.com>
64400
64401         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
64402         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
64403         have been included before this file.
64404
64405 2002-06-14  Jim Meyering  <meyering@lucent.com>
64406
64407         * lib/file-type.h: Use the version from diffutils-2.8.2.
64408         * lib/file-type.c: Likewise.
64409
64410 2002-06-07  Jim Meyering  <meyering@lucent.com>
64411
64412         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
64413         They're needed at least for NetBSD 1.5.2.
64414         ($statxfs_includes): Include those same headers.
64415         ($statxfs_includes): Include sys/vfs.h if available.
64416         ($statxfs_includes): Likewise for sys/statvfs.h.
64417         Check for the following members in both structs statfs and statvfs:
64418         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
64419
64420 2002-06-01  Jim Meyering  <meyering@lucent.com>
64421
64422         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
64423         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
64424
64425 2002-05-28  Jim Meyering  <meyering@lucent.com>
64426
64427         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
64428         Reported by Volker Borchert.
64429
64430 2002-05-27  Jim Meyering  <meyering@lucent.com>
64431
64432         Fix a problem seen only on nonconforming systems whereby ls.c's
64433         use of localtime, and then of gettimeofday would cause trouble:
64434         the localtime call used to initialize rpl_gettimeofday's save
64435         mechanism would clobber ls's current local time information so
64436         that in any long listing the first file would always be listed
64437         with date 1970-01-01.  Analysis by Volker Borchert.
64438
64439         * lib/gettimeofday.c (localtime): Undefine.
64440         (rpl_localtime): New function.
64441
64442 2002-05-27  Jim Meyering  <meyering@lucent.com>
64443
64444         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
64445         localtime.
64446
64447         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
64448         use the replacement function; it wouldn't resolve at link time.
64449         Reported by Volker Borchert.
64450
64451 2002-05-22  Jim Meyering  <meyering@lucent.com>
64452
64453         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
64454         file-type.h.
64455         * lib/file-type.h: New file.
64456         * lib/file-type.c (file_type): New file/function.  Extracted from
64457         diffutils.
64458
64459 2002-04-30  Jim Meyering  <meyering@lucent.com>
64460
64461         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
64462
64463 2002-04-29  Paul Eggert  <eggert@twinsun.com>
64464
64465         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
64466
64467 2002-04-29  Paul Eggert  <eggert@twinsun.com>
64468
64469         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
64470         Do not check for alloca.h (no longer used) or stdbool.h (was never
64471         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
64472
64473 2002-04-29  Paul Eggert  <eggert@twinsun.com>
64474
64475         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
64476
64477 2002-04-29  Jim Meyering  <meyering@lucent.com>
64478
64479         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
64480         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
64481         Use AC_FUNC_STRNLEN here instead.
64482
64483         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
64484         With autoconf-2.53a, it's part of AC_PROG_CC.
64485
64486 2002-04-28  Paul Eggert  <eggert@twinsun.com>
64487
64488         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
64489         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
64490
64491 2002-04-28  Paul Eggert  <eggert@twinsun.com>
64492
64493         * lib/sig2str.h, lib/sig2str.c: New files.
64494         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
64495
64496 2002-04-28  Paul Eggert  <eggert@twinsun.com>
64497
64498         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
64499         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
64500         of 127, since 64 is the largest conceivable number for ancient
64501         nonstandard hosts.
64502         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
64503
64504 2002-04-28  Jim Meyering  <meyering@lucent.com>
64505
64506         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
64507
64508 2002-04-24  Jim Meyering  <meyering@lucent.com>
64509
64510         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
64511         (jm_PREREQ): Use it.
64512
64513         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
64514         mach/mach.h fcntl.h.
64515         Check for this function: setlocale.
64516
64517 2002-04-24  Jim Meyering  <meyering@lucent.com>
64518
64519         * lib/gettext.h: New file, from Gettext.
64520         * lib/Makefile.am (INCLUDES): Remove -I../intl.
64521         (libfetish_a_SOURCES): Add gettext.h.
64522
64523 2002-04-16  Jim Meyering  <meyering@lucent.com>
64524
64525         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
64526         ut_pid, ut_id, ut_exit.
64527
64528 2002-04-16  Jim Meyering  <meyering@lucent.com>
64529
64530         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
64531         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
64532         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
64533
64534 2002-04-12  Jim Meyering  <meyering@lucent.com>
64535
64536         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
64537         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
64538         existence of the getmntinfo function.  Needed for Darwin 5.3.
64539
64540         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
64541         This is necessary at least on Darwin 5.3.
64542
64543         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
64544         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
64545         strnlen.o in the library, and that makes some versions of ranlib
64546         object.
64547
64548 2002-04-12  Jim Meyering  <meyering@lucent.com>
64549
64550         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
64551
64552 2002-04-09  Jim Meyering  <meyering@lucent.com>
64553
64554         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
64555         to be more precise.  Rather than saying we're checking whether the
64556         function `works', say what we're testing.
64557         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
64558         Reported by Bruno Haible.
64559
64560 2002-03-10  Jim Meyering  <meyering@lucent.com>
64561
64562         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
64563         Suggestion from Santiago Vila.
64564
64565 2002-03-08  Jim Meyering  <meyering@lucent.com>
64566
64567         * lib/rename.c: Mention that this wrapper is needed also on
64568         mips-dec-ultrix4.4 systems.
64569
64570 2002-03-02  Jim Meyering  <meyering@lucent.com>
64571
64572         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
64573         not HAVE_CLOCK_SETTIME.
64574
64575 2002-02-27  Paul Eggert  <eggert@twinsun.com>
64576
64577         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
64578         Check for clock_settime.
64579
64580 2002-02-27  Paul Eggert  <eggert@twinsun.com>
64581
64582         * lib/nanosleep.h: Rename to....
64583         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
64584
64585         * lib/gettime.c: New file.
64586         * lib/settime.c: New file.
64587         * lib/stime.c: Remove.
64588
64589         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
64590         timespec.h.  Remove nanosleep.h.
64591
64592 2002-02-25  Paul Eggert  <eggert@twinsun.com>
64593
64594         * m4/acl.m4: New file.
64595         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
64596         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
64597
64598 2002-02-25  Paul Eggert  <eggert@twinsun.com>
64599
64600         * lib/acl.c, lib/acl.h: New files.
64601         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
64602
64603 2002-02-24  Jim Meyering  <meyering@lucent.com>
64604
64605         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
64606         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
64607         cause trouble.  Reported by Nelson Beebe.
64608
64609 2002-02-23  Paul Eggert  <eggert@twinsun.com>
64610
64611         * lib/path-concat.c (xpath_concat): Reorder code to pacify
64612         compilers that don't know that xalloc_die never returns.
64613
64614 2002-02-20  Jim Meyering  <meyering@lucent.com>
64615
64616         * lib/getdate.c: Regenerate using bison-1.33.
64617
64618 2002-02-17  Jim Meyering  <meyering@lucent.com>
64619
64620         * config/config.guess (main): Don't use `head -1'; it's no longer
64621         portable. Use `sed 1q' instead.
64622
64623 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
64624
64625         * m4/codeset.m4: Upgrade to gettext-0.11.
64626         * m4/gettext.m4: Upgrade to gettext-0.11.
64627         * m4/glibc21.m4: Upgrade to gettext-0.11.
64628         * m4/iconv.m4: Upgrade to gettext-0.11.
64629         * m4/isc-posix.m4: Upgrade to gettext-0.11.
64630         * m4/lcmessage.m4: Upgrade to gettext-0.11.
64631         * m4/lib-ld.m4: New file, from gettext-0.11.
64632         * m4/lib-link.m4: New file, from gettext-0.11.
64633         * m4/lib-prefix.m4: New file, from gettext-0.11.
64634         * m4/progtest.m4: Upgrade to gettext-0.11.
64635
64636 2002-02-15  Paul Eggert  <eggert@twinsun.com>
64637
64638         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
64639         (jm_PREREQ): Use it.
64640
64641 2002-02-15  Paul Eggert  <eggert@twinsun.com>
64642
64643         * lib/posixver.c, lib/posixver.h: New files.
64644         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
64645
64646 2002-02-02  Paul Eggert  <eggert@twinsun.com>
64647             Bruno Haible  <bruno@clisp.org>
64648
64649         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
64650         (fwrite_success_callback): New declaration.
64651         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
64652         print_unicode_char. Call failure callback instead of error.
64653         (fwrite_success_callback): New function.
64654         (exit_failure_callback): New function.
64655         (fallback_failure_callback): New function.
64656         (print_unicode_char): Call unicode_to_mb.
64657
64658 2002-01-26  Jim Meyering  <meyering@lucent.com>
64659
64660         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
64661         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
64662
64663 2002-01-26  Jim Meyering  <meyering@lucent.com>
64664
64665         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
64666
64667 2002-01-22  Paul Eggert  <eggert@twinsun.com>
64668
64669         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
64670
64671 2002-01-22  Jim Meyering  <meyering@lucent.com>
64672
64673         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
64674         Otherwise, some versions of automake would omit the rule that makes
64675         Makefile from Makefile.in.
64676
64677 2002-01-21  Paul Eggert  <eggert@twinsun.com>
64678
64679         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
64680         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
64681         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
64682         (memcoll): Set errno to zero if there is no error.
64683
64684         * lib/quotearg.c (quotearg_buffer_restyled):
64685         Fix bug with quoting buffers containing NUL when backslashing escapes.
64686         This bug was exposed by the other changes in this patch.
64687         (quotearg_n_options): New arg ARGSIZE.
64688         All callers changed.
64689         (quoting_options_from_style): New function.
64690         (quotearg_n_style): Use it.
64691         (quotearg_n_style_mem): New function.
64692
64693         * lib/quotearg.h (quotearg_n_style_mem): New function.
64694
64695 2002-01-19  Jim Meyering  <meyering@lucent.com>
64696
64697         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
64698         Remove useless quotes: DF_PROG="df".
64699         * m4/strnlen.m4: New file.
64700
64701 2002-01-16  Paul Eggert  <eggert@twinsun.com>
64702
64703         * lib/backupfile.c (ISDIGIT): Comment fix.
64704         * lib/getdate.y (ISDIGIT): Likewise.
64705         * lib/posixtm.c (ISDIGIT, year): Likewise.
64706         * lib/strverscmp.c (ISDIGIT): Likewise.
64707         * lib/userspec.c (ISDIGIT): Likewise.
64708
64709 2002-01-16  Jim Meyering  <meyering@lucent.com>
64710
64711         * lib/getdate.y: Add three semicolons, each just before a closing
64712         brace. Bison (as of version 1.31) no longer papers over that mistake.
64713
64714 2002-01-05  Jim Meyering  <meyering@lucent.com>
64715
64716         * lib/version-etc.c (version_etc_copyright): Update copyright year.
64717
64718 2001-12-19  Paul Eggert  <eggert@twinsun.com>
64719
64720         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
64721         not silently exit merely because the output buffer happens to
64722         have nothing pending.
64723
64724 2001-12-18  Paul Eggert  <eggert@twinsun.com>
64725
64726         See the big note in ../ChangeLog.
64727         * lib/human.c (suffixes): Prefer K to k for 1024.
64728         (generate_suffix_backwards): New function.
64729         (human_readable_inexact): Use it.
64730         * lib/xstrtol.c (__xstrtol): If there is no number but there
64731         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
64732         Accept 'K' as well as 'k'.
64733
64734 2001-12-15  Jim Meyering  <meyering@lucent.com>
64735
64736         * lib/regex.h (__restrict_arr): Update from libc.
64737
64738         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
64739         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
64740         (STREQ): Define.
64741
64742 2001-12-14  Jim Meyering  <meyering@lucent.com>
64743
64744         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
64745         Suggestion from Bruno Haible.
64746
64747 2001-12-10  Jim Meyering  <meyering@lucent.com>
64748
64749         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
64750         xrealloc, Instead, include "xalloc.h".
64751         (initbuffer): Don't cast xmalloc return value to char*.
64752         (readline): Reword comment.
64753         Don't cast xrealloc return value to char*
64754         Return NULL, not 0.
64755
64756 2001-12-09  Jim Meyering  <meyering@lucent.com>
64757
64758         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
64759         about `signed and unsigned type in conditional expression'.
64760         * lib/posixtm.c (posix_time_parse): Likewise.
64761
64762         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
64763
64764         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
64765         to avoid a pedantic warning.
64766
64767         * lib/getstr.c: Don't include assert.h.
64768         (getstr): Remove warning-evoking assertions.
64769         Return -1 if offset parameter is out of bounds.
64770         Change the type of a local from int to size_t.
64771
64772         * lib/strftime.c (my_strftime_localtime_r): Include this function
64773         definition in the `#if ! HAVE_TM_GMTOFF' block.
64774
64775         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
64776         Include xalloc.h instead.
64777
64778 2001-12-02  Jim Meyering  <meyering@lucent.com>
64779
64780         * lib/tempname.c: Don't declare getenv, thus reverting the change of
64781         2001-11-18.  It's no longer necessary, now that stdlib.h is always
64782         included.
64783
64784         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
64785         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
64786
64787 2001-11-30  Akim Demaille  <akim@epita.fr>
64788
64789         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
64790         before being defined.
64791
64792 2001-11-27  Paul Eggert  <eggert@twinsun.com>
64793
64794         * lib/quotearg.h (quotearg_n, quotearg_n_style):
64795         First arg is int, not unsigned.
64796         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
64797         (SIZE_MAX, UINT_MAX): New macros.
64798         (quotearg_n_options): Abort if N is negative.
64799         Avoid overflow check on hosts where size_t is 64 bits and int
64800         is 32 bits, as overflow is impossible there.
64801         Fix off-by-one typo that caused unnecessary reallocation.
64802
64803 2001-11-27  Jim Meyering  <meyering@lucent.com>
64804
64805         * lib/tempname.c: Merge with version from libc.
64806         * lib/regex.c: Likewise.
64807
64808         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
64809         systems for which STDC_HEADERS is 0, it was not included, resulting in
64810         a warning about an integer-to-pointer conversion problem with getenv.
64811         Reported by Volker Borchert.
64812
64813 2001-11-26  Jim Meyering  <meyering@lucent.com>
64814
64815         * lib/gtod.h: Remove file.
64816         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
64817         * lib/gettimeofday.c: Don't include gtod.h.
64818         (GTOD_init): Remove function.
64819         (rpl_gettimeofday): Do its job here instead, rather than aborting.
64820         Suggestion from Volker Borchert.
64821
64822 2001-11-23  Jim Meyering  <meyering@lucent.com>
64823
64824         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
64825         it.
64826         * lib/hash.c (struct hash_table): Define it here instead.
64827
64828 2001-11-22  Jim Meyering  <meyering@lucent.com>
64829
64830         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
64831
64832 2001-11-20  Jim Meyering  <meyering@lucent.com>
64833
64834         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
64835         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
64836
64837 2001-11-19  Jim Meyering  <meyering@lucent.com>
64838
64839         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
64840         directory.  Use "conftestXXXXXX" as the template.
64841         Suggestion from Paul Eggert.
64842
64843         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
64844         immediately, so the test doesn't mistakenly hit the max-open-files
64845         limit.
64846
64847 2001-11-18  Paul Eggert  <eggert@twinsun.com>
64848
64849         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
64850         (TEMPORARIES): New macro.
64851         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
64852         removes an artificial limitation (e.g. HP-UX 10.20, where
64853         TMP_MAX is 17576).
64854
64855 2001-11-18  Jim Meyering  <meyering@lucent.com>
64856
64857         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
64858
64859 2001-11-18  Jim Meyering  <meyering@lucent.com>
64860
64861         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
64862         on SunOS 4.
64863
64864         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
64865         files will be created before anything else.
64866
64867 2001-11-17  Paul Eggert  <eggert@twinsun.com>
64868
64869         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
64870         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
64871
64872 2001-11-17  Jim Meyering  <meyering@lucent.com>
64873
64874         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
64875         Prompted by a report from Bob Proulx.
64876
64877         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
64878         Instead, require UTILS_FUNC_MKSTEMP.
64879
64880 2001-11-17  Jim Meyering  <meyering@lucent.com>
64881
64882         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
64883         Now, that's done as part of AC_FUNC_STRTOD.
64884
64885 2001-11-17  Jim Meyering  <meyering@lucent.com>
64886
64887         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
64888         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
64889         rather than group writable.  Patch by Juan F. Codagnone.
64890
64891         * lib/readtokens.c: Remove explicit declarations of xmalloc and
64892         xrealloc, Instead, include "xalloc.h".
64893
64894         * lib/mountlist.c: Include unlocked-io.h after all system headers.
64895         Remove explicit declarations of xmalloc, xrealloc,
64896         and xstrdup.  Instead, include "xalloc.h".
64897
64898         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
64899         unlocked-io.h.
64900         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
64901         Likewise.
64902         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
64903
64904         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
64905         Reported by Padraig Brady.
64906
64907         * lib/mkstemp.c: #undef mkstemp.
64908         Include config.h.
64909         (rpl_mkstemp): Rename from mkstemp.
64910         Protoize.
64911
64912 2001-11-16  Jim Meyering  <meyering@lucent.com>
64913
64914         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
64915         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
64916         determine the amount of total physical memory, use pstat_getstatic.
64917         HPUX-11 doesn't define _SC_PHYS_PAGES.
64918         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
64919         If sysconf couldn't be used to determine the amount of available
64920         physical memory, use both pstat_getstatic and pstat_getdynamic.
64921         Based on a patch from Bob Proulx.
64922
64923 2001-11-10  Jim Meyering  <meyering@lucent.com>
64924
64925         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
64926         (jm_PREREQ): Use it.
64927
64928 2001-11-09  Jim Meyering  <meyering@lucent.com>
64929
64930         * m4/jm-macros.m4: Require autoconf-2.52f.
64931         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
64932         Use these AC_-prefixed names, not the AM_-prefixed ones.
64933
64934         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
64935
64936 2001-11-05  Jim Meyering  <meyering@lucent.com>
64937
64938         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
64939
64940 2001-11-04  Jim Meyering  <meyering@lucent.com>
64941
64942         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
64943         $DEFS.
64944
64945 2001-11-03  Jim Meyering  <meyering@lucent.com>
64946
64947         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
64948         of AC_DEFUN.
64949
64950         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
64951         know the name of the variable in the macro definition.
64952
64953 2001-11-03  Jim Meyering  <meyering@lucent.com>
64954
64955         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
64956         in argmatch_to_argument call.
64957
64958         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
64959         argument.
64960
64961         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
64962         e.g., a fault due to an attempt to free a NULL pointer.
64963
64964 2001-11-01  Jim Meyering  <meyering@lucent.com>
64965
64966         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
64967         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
64968
64969 2001-11-01  Jim Meyering  <meyering@lucent.com>
64970
64971         * lib/dirfd.c, lib/dirfd.h: New files.
64972         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
64973
64974         * lib/hash.c (hash_print) [TESTING]: Clean up.
64975
64976 2001-10-22  Paul Eggert  <eggert@twinsun.com>
64977
64978         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
64979         to avoid a warning if -Wall.
64980
64981 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
64982
64983         * README: New file
64984         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
64985         (per RMS's instructions, this is now the canonical source)
64986         * lgpl/, gpl/: New directories.
64987
64988 2001-10-21  Paul Eggert  <eggert@twinsun.com>
64989
64990         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
64991
64992 2001-10-21  Jim Meyering  <meyering@lucent.com>
64993
64994         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
64995         this code would end up calling gettext even in packages built
64996         with --disable-nls.
64997         * lib/getopt.c (_): Likewise.
64998         * lib/regex.c (_): Likewise.
64999
65000 2001-10-20  Paul Eggert  <eggert@twinsun.com>
65001
65002         * m4/error.m4 (jm_PREREQ_ERROR):
65003         Do not invoke AC_CHECK_FUNCS with strerror_r, as
65004         AC_FUNC_STRERROR_R does that.
65005         Check for strerror declaration.
65006
65007         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
65008         are supposed to have them these days.
65009         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
65010         Merge changes from latest Autoconf CVS.
65011         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
65012         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
65013         POSIX decided to standardize on the int flavor of strerror_r.
65014
65015 2001-10-20  Paul Eggert  <eggert@twinsun.com>
65016
65017         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
65018         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
65019         Use strerror_r that is only a macro, even if it is not a function.
65020         (strerror): Check for HAVE_DECL_STRERROR before declaring.
65021         (private_strerror): Use prototypes, not old-style function definition.
65022         (print_errno_message): New function.
65023         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
65024         char*-flavored one.
65025         (error_tail, error, error_at_line): Use it.
65026
65027 2001-10-11  Jim Meyering  <meyering@lucent.com>
65028
65029         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
65030         and quote_n (1, ... to avoid clobbering a buffer.
65031
65032 2001-10-05  Jim Meyering  <meyering@lucent.com>
65033
65034         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
65035         hash-pjw.h.
65036         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
65037         * lib/hash-pjw.h: New file.
65038
65039 2001-09-30  Jim Meyering  <meyering@lucent.com>
65040
65041         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
65042         `struct fsstat' has the `f_fstypename' member.
65043         Use that to define FS_TYPE, which is now used to make
65044         the getfsstat link test tighter.
65045
65046 2001-09-30  Jim Meyering  <meyering@lucent.com>
65047
65048         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
65049         Include <sys/ucred.h>, for Apple Darwin.
65050         Include sys/mount.h and sys/fs_types.h only if available.
65051         (FS_TYPE): Define.
65052         (read_filesystem_list): Use FS_TYPE.
65053
65054 2001-09-29  Paul Eggert  <eggert@twinsun.com>
65055
65056         * lib/exclude.c (excluded_filename): 0 -> false, since it's
65057         a boolean context.
65058
65059 2001-09-29  Jim Meyering  <meyering@lucent.com>
65060
65061         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
65062         [one-argument getmntent function]): Include stdio.h before mntent.h.
65063         SunOS 4.1.x needs it for the declaration of `FILE'.
65064         Patch by Volker Borchert.
65065
65066         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
65067         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
65068         sys/fs_types.h, and make the link-test for getfsstat guard #include
65069         directives with appropriate #if HAVE_*_H tests so that we can
65070         detect getfsstat on Apple Darwin1.3.7 systems.
65071         Reported by Nelson Beebe.
65072         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
65073
65074 2001-09-28  Paul Eggert  <eggert@twinsun.com>
65075
65076         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
65077         #defines strtoimax.  Also treat the other strto* functions
65078         like strtoimax.
65079
65080         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
65081         Check for strtoul and strtoumax,
65082         as those declarations are made even in the signed case.
65083         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
65084         Likewise, for strtol and strtoimax.
65085
65086 2001-09-28  Paul Eggert  <eggert@twinsun.com>
65087
65088         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
65089         #defines strtoimax.  Also treat the other strto* functions
65090         like strtoimax.
65091
65092         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
65093         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
65094         (strtoimax, strtoumax): Do not declare if already defined as a macro.
65095
65096 2001-09-26  Jim Meyering  <meyering@lucent.com>
65097
65098         Most macros in unlocked-io.h had the wrong number of arguments.
65099         * lib/gen-uio: New script.
65100         (USE_UNLOCKED_IO): Define to 1 if not already defined.
65101         * lib/unlocked-io.hin: Remove file.
65102         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
65103         rather than trying to embed it here.
65104         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
65105         Reported by Padraig Brady.
65106
65107 2001-09-25  Volker Borchert  <bt@teknon.de>
65108
65109         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
65110         `result'.
65111
65112 2001-09-24  Jim Meyering  <meyering@lucent.com>
65113
65114         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
65115
65116 2001-09-23  Jim Meyering  <meyering@lucent.com>
65117
65118         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
65119         instead of the mere test for existence of mntent.h.  The latter
65120         would get a false-positive on AIX 3.4 systems.
65121         In the outer getmntent if-block, don't die if neither of the getmntent
65122         tests succeeds.  Instead, just fall through and continue with the
65123         remaining tests.
65124
65125 2001-09-23  Jim Meyering  <meyering@lucent.com>
65126
65127         * lib/mountlist.c: Remove useless parentheses in #if directives.
65128         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
65129         the deprecated MOUNTED symbol is no longer defined in mntent.h.
65130
65131 2001-09-22  Jim Meyering  <meyering@lucent.com>
65132
65133         * m4/gettext.m4: New file.  From gettext.
65134         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
65135         * m4/progtest.m4: Likewise
65136         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
65137         * m4/glibc21.m4: Likewise.
65138
65139         * m4/libintl.m4: Remove.  No longer used.
65140
65141 2001-09-22  Jim Meyering  <meyering@lucent.com>
65142
65143         * lib/localcharset.c: Update from latest gettext.
65144         * lib/config.charset: Likewise.
65145
65146 2001-09-20  Jim Meyering  <meyering@lucent.com>
65147
65148         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
65149         strtoimax.
65150         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
65151         strtoumax.
65152
65153 2001-09-20  Jim Meyering  <meyering@lucent.com>
65154
65155         * lib/xstrtol.c (strtoimax): Guard declaration with
65156         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
65157         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
65158         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
65159         (strtoumax): Likewise, for completeness (it wasn't necessary).
65160
65161 2001-09-17  Paul Eggert  <eggert@twinsun.com>
65162
65163         * lib/strtoimax.c (HAVE_LONG_LONG):
65164         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
65165         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
65166         to work around bug in IBM C compiler.
65167
65168 2001-09-17  Jim Meyering  <meyering@lucent.com>
65169
65170         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
65171         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
65172         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
65173         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
65174         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
65175         whenever the right hand side need not be expanded by the shell.
65176
65177 2001-09-16  Paul Eggert  <eggert@twinsun.com>
65178
65179         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
65180         library.  It's not correct, as some older glibcs are buggy.
65181         fnmatch wasn't fixed until glibc 2.2.
65182
65183         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
65184         special shell magic here.
65185
65186 2001-09-16  Jim Meyering  <meyering@lucent.com>
65187
65188         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
65189         * m4/jm-macros.m4: Require it.
65190
65191 2001-09-16  Jim Meyering  <meyering@lucent.com>
65192
65193         * lib/mkdir.c: New file.
65194
65195 2001-09-15  Jim Meyering  <meyering@lucent.com>
65196
65197         * m4/jm-macros.m4: Check for help2man.
65198
65199 2001-09-11  Jim Meyering  <meyering@lucent.com>
65200
65201         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
65202         The body, by Paul Eggert, was moved here from configure.in.
65203         * m4/jm-macros.m4: Require UTILS_HOST_OS.
65204
65205 2001-09-04  Paul Eggert  <eggert@twinsun.com>
65206
65207         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
65208         (jm_PREREQ): Use it.
65209
65210 2001-09-04  Paul Eggert  <eggert@twinsun.com>
65211
65212         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
65213         Use ssize_t, not int, to store result of readlink.
65214         Check for ssize_t overflow as well as size_t overflow,
65215         as POSIX says the result of readlink is implementation-defined
65216         when ssize_t overflows.
65217         Remove unnecessary cast to char*.
65218         Use free+malloc instead of realloc, as the storage doesn't need
65219         to be preserved and it's clearer and can be more efficient that way.
65220         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
65221         * lib/xreadlink.h (xreadlink): Update prototype.
65222
65223 2001-09-04  Paul Eggert  <eggert@twinsun.com>
65224
65225         * lib/xgetcwd.c: Revert some of the previous change; intead,
65226         fix the HAVE_GETCWD_NULL code to behave more like the
65227         !HAVE_GETCWD_NULL code used to.
65228
65229         Include "xalloc.h".
65230         (xgetcwd): Do not return NULL when memory is exhausted; instead,
65231         invoke xalloc_die.
65232
65233 2001-09-03  Paul Eggert  <eggert@twinsun.com>
65234
65235         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
65236         sys/param.h, as pathmax.h includes them.
65237
65238 2001-09-03  Paul Eggert  <eggert@twinsun.com>
65239
65240         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
65241         (jm_PREREQ_XGETCWD): New macro.
65242
65243         * m4/getcwd.m4: New file.
65244
65245 2001-09-03  Paul Eggert  <eggert@twinsun.com>
65246
65247         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
65248         like the HAVE_GETCWD_NULL code.
65249         Include pathmax.h if not HAVE_GETCWD.
65250         Do not include xalloc.h.
65251         (INITIAL_BUFFER_SIZE): New symbol.
65252         Do not use xmalloc / xrealloc, since the caller is responsible for
65253         handling errors.  Preserve errno around `free' during failure.
65254         Do not overrun buffer when using getwd.
65255
65256 2001-09-03  Paul Eggert  <eggert@twinsun.com>
65257
65258         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
65259         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
65260         getcwd (NULL, 0).
65261
65262 2001-09-03  Paul Eggert  <eggert@twinsun.com>
65263
65264         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
65265         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
65266         spotted by Jim Meyering.
65267
65268 2001-09-03  Jim Meyering  <meyering@lucent.com>
65269
65270         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
65271         failure.
65272
65273 2001-09-02  Jim Meyering  <meyering@lucent.com>
65274
65275         * lib/error.c: Update from GNU libc.
65276
65277 2001-09-01  Jim Meyering  <meyering@lucent.com>
65278
65279         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
65280         Used by df.
65281
65282 2001-09-01  Jim Meyering  <meyering@lucent.com>
65283
65284         * lib/xreadlink.c: New file.
65285         * lib/xreadlink.h: New file.
65286         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
65287         xreadlink.h.
65288
65289         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
65290         doesn't conflict with sparc Solaris 7's definition in
65291         /usr/include/sys/int_types.h.
65292
65293         * lib/exclude.c: Use `""', not `<>' to #include non-system header
65294         files.
65295         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
65296         and strncasecmp as r-values.  Unixware didn't have declarations.
65297
65298 2001-08-31  Paul Eggert  <eggert@twinsun.com>
65299
65300         * lib/xstrtol.h: Add copyright notice.
65301         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
65302         LONGINT_INVALID_SUFFIX_CHAR.
65303
65304 2001-08-31  Paul Eggert  <eggert@twinsun.com>
65305
65306         * lib/xstrtol.c (strtoimax): New decl.
65307
65308 2001-08-31  Paul Eggert  <eggert@twinsun.com>
65309
65310         * lib/xgetcwd.c: Don't include pathmax.h.
65311         Include stdlib.h and unistd.h if available.
65312         Include xalloc.h.
65313         (xmalloc, xstrdup, free): Remove decls.
65314         (xgetcwd): Don't assume sizes fit in unsigned.
65315         Check for overflow when computing sizes.
65316         Simplify reallocation code.
65317
65318 2001-08-31  Paul Eggert  <eggert@twinsun.com>
65319
65320         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
65321         a directory's st_size can have an arbitrary value, so the old
65322         usage could waste an arbitrary amount of memory.  All uses
65323         changed.
65324         * lib/savedir.h: Update prototype.
65325
65326 2001-08-31  Paul Eggert  <eggert@twinsun.com>
65327
65328         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
65329
65330         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
65331         old strtoimax.c.
65332
65333         Also, make the following further changes to make this file's
65334         configuration more similar to that of strtol.c:
65335         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
65336         (strtoumax, uintmax_t, strtoull, strtol): Remove.
65337         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
65338         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
65339         changed to signed values.
65340
65341         And make the following changes as well:
65342         Fix copyright notice, as 1999 was missing.
65343         (verify): New macro.
65344         (strtoimax): Check sizes at compile-time, not run-time.
65345         Prefer strtol to strtoll if both work.
65346         (main): Remove; it was not that useful and was a pain to maintain.
65347
65348         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
65349
65350 2001-08-31  Jim Meyering  <meyering@lucent.com>
65351
65352         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
65353         Use an initial, malloc'd, buffer of length 128 rather than
65354         a statically allocated one of length 1024.
65355
65356 2001-08-30  Paul Eggert  <eggert@twinsun.com>
65357
65358         Simplify code, partly by assuming autoconf 2.52 semantics.
65359
65360         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
65361
65362         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
65363         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
65364         All uses removed.
65365         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
65366         Move AC_REQUIRE to next-to-top level, to avoid confusion.
65367         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
65368         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
65369         jm_AC_HEADER_INTTYPES_H.
65370         * m4/jm-macros.m4 (jm_MACROS): Likewise.
65371
65372         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
65373
65374         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
65375         Quote first arg of AC_DEFUN.
65376         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
65377         since they are needed to parse the include file even if we need
65378         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
65379         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
65380         but with opposite signedness.
65381
65382 2001-08-30  Paul Eggert  <eggert@twinsun.com>
65383
65384         Merge 'exclude' changes from tar 1.13.22.
65385         This fixes one or two unlikely storage allocation overflow bugs,
65386         but doesn't change user-visible behavior otherwise.
65387
65388 2001-08-30  Paul Eggert  <eggert@twinsun.com>
65389
65390         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
65391         (jm_PREREQ_EXCLUDE): New macro.
65392
65393 2001-08-30  Paul Eggert  <eggert@twinsun.com>
65394
65395         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
65396         tm to be declared.
65397
65398 2001-08-30  Paul Eggert  <eggert@twinsun.com>
65399
65400         * lib/hash.c: Remove '2001' from copyright notice.
65401
65402 2001-08-30  Paul Eggert  <eggert@twinsun.com>
65403
65404         * lib/full-write.h: New file.
65405         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
65406         * lib/full-write.c: Correct credits, as cccp.c no longer
65407         exists and anyway it was so heavily changed from the old cccp
65408         code as to be unrecognizable.  Include full-write.h.
65409         (full_write) Return size_t, with short writes meaning failure.
65410         All callers changed.  This fixes a bug with large buffers
65411         on 64-bit hosts.
65412         * lib/utime.c: Include full-write.h.
65413
65414 2001-08-30  Paul Eggert  <eggert@twinsun.com>
65415
65416         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
65417         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
65418         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
65419         Include if available.
65420         (<xalloc.h>): Include
65421         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
65422         (verify): New macro.  Use it to verify that EXCLUDE macros do not
65423         collide with FNM macros.
65424         (struct patopts): New struct.
65425         (struct exclude): Use it, as exclude patterns now come with options.
65426         (new_exclude): Support above changes.
65427         (new_exclude, add_exclude_file):
65428         Initial size must now be a power of two to simplify overflow checking.
65429         (free_exclude, fnmatch_no_wildcards): New function.
65430         (excluded_filename): No longer requires options arg, as the options
65431         are determined by add_exclude.  Now returns bool, not int.
65432         (excluded_filename, add_exclude):
65433         Add support for the fancy new exclusion options.
65434         (add_exclude, add_exclude_file): Now takes int options arg.
65435         Check for arithmetic overflow when computing sizes.
65436         (add_exclude_file): xrealloc might modify errno, so don't
65437         realloc until after errno might be used.
65438
65439         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
65440         New macros.
65441         (free_exclude): New decl.
65442         (add_exclude, add_exclude_file): Now takes int options arg.
65443         (excluded_filename): No longer requires options arg, as the options
65444         are determined by add_exclude.  Now returns bool, not int.
65445
65446 2001-08-30  Paul Eggert  <eggert@twinsun.com>
65447
65448         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
65449
65450 2001-08-27  Jim Meyering  <meyering@lucent.com>
65451
65452         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
65453
65454         * lib/version-etc.c (N_): Remove definition.
65455         Revert most of last change.
65456         Instead, simply don't mark the `Copyright...' string for translation.
65457         Based on advice from Paul Eggert.
65458
65459         * lib/strtoxmax.c: Tweak comment.
65460
65461 2001-08-26  Jim Meyering  <meyering@lucent.com>
65462
65463         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
65464
65465         * m4/xstrtoimax.m4: New file.
65466         * m4/xstrtoumax.m4: Add comments explaining why we
65467         AC_REPLACE_FUNCS(strtol).
65468
65469 2001-08-26  Jim Meyering  <meyering@lucent.com>
65470
65471         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
65472         of copyright with `%s' so translators don't get an untranslated
65473         message in 2002.
65474         (COPYRIGHT_YEAR): Define.
65475         (version_etc): Use fprintf rather than fputs.
65476         Suggestion from Ulrich Drepper.
65477
65478         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
65479
65480         * lib/strtoll.c: New file, from GNU libc.
65481         * lib/xstrtoimax.c: New file.
65482
65483         * lib/xstrtol.h: Add xstrtoimax.
65484         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
65485         * lib/strtoimax.c: New file.  Likewise, but first define
65486         STRTOUXMAX_SIGNED.
65487
65488         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
65489         ...
65490         * lib/strtoxmax.c: ... then renamed to this.
65491
65492 2001-08-18  Paul Eggert  <eggert@twinsun.com>
65493
65494         * m4/inttypes.m4: Add AC_PREREQ(2.13).
65495         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
65496         (jm_AC_TYPE_INTMAX_T): New macro.
65497         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
65498
65499         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
65500
65501         * m4/longlong.m4: Renamed from ulonglong.m4.
65502         * m4/inttypes.m4: Renamed from inttypes_h.m4.
65503         * m4/uintmax_t.m4: Removed.
65504
65505 2001-08-13  Paul Eggert  <eggert@twinsun.com>
65506
65507         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
65508         Port to Solaris 8, where 'sed' requires a space after the 'r'
65509         command, and where sh dislikes "$/".  Clean up the spacing a bit.
65510         Redirect output to $tmp just once.
65511
65512 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
65513
65514         * lib/addext.c (<errno.h>): Include.
65515         (errno): Declare if not defined.
65516         (addext): Work correctly when pathconf returns -1 and leaves
65517         errno alone because there is no limit.  Also, work even if
65518         pathconf returns a value greater than SIZE_MAX.
65519
65520 2001-08-12  Jim Meyering  <meyering@lucent.com>
65521
65522         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
65523         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
65524         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
65525         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
65526         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
65527         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
65528         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
65529         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
65530         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
65531         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
65532         utime.m4, utimes.m4, xstrtoumax.m4:
65533         Quote the first argument in each use of AC_DEFUN.
65534
65535 2001-08-12  Jim Meyering  <meyering@lucent.com>
65536
65537         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
65538         Simply `return getcwd (NULL, 0);'.
65539         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
65540         Use 1300 as initial value for length, not PATH_MAX.
65541
65542         * lib/pathmax.h: Clean up cpp syntax.
65543
65544 2001-08-12  Jim Meyering  <meyering@lucent.com>
65545
65546         * lib/gettimeofday.c: New file.
65547         * lib/gtod.h: New file.
65548         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
65549
65550 2001-08-05  Jim Meyering  <meyering@lucent.com>
65551
65552         * m4/jm-macros.m4: Require autoconf-2.52.
65553
65554 2001-08-04  Jim Meyering  <meyering@lucent.com>
65555
65556         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
65557         stmt, to get in sync with glibc.
65558
65559 2001-08-03  Paul Eggert  <eggert@twinsun.com>
65560
65561         The following changes are from gettext 0.10.39 as maintained by
65562         Bruno Haible.
65563
65564         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
65565         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
65566         with inverted sense.  All uses changed.
65567
65568         * lib/mbswidth.c: Don't include <limits.h>.
65569         Include <stdlib.h> and <string.h> unconditionally.
65570         (iswcntrl, mbsinit, ISCNTRL): New macros.
65571         (mbsnwidth): Use K&R style function declarations.
65572         Don't bother checking for MB_LEN_MAX == 1, since the compiler
65573         can optimize it when MB_CUR_MAX == 1.
65574         The width of control characters is zero, not 1.
65575
65576 2001-08-03  Paul Eggert  <eggert@twinsun.com>
65577
65578         The following changes are from gettext 0.10.39 as maintained by
65579         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
65580
65581         * m4/codeset.m4: Upgrade to serial AM1.
65582         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
65583         all uses changed.  Quote first arg of AC_DEFUN.
65584         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
65585
65586         * m4/iconv.m4: Upgrade to serial AM2.
65587         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
65588         Add --with-libconv-prefix.
65589         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
65590         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
65591         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
65592         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
65593         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
65594
65595         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
65596         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
65597         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
65598         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
65599         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
65600         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
65601         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
65602         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
65603         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
65604
65605         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
65606         string.h any more.
65607
65608         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
65609         not the default value.
65610
65611         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
65612         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
65613         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
65614         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
65615         Also check for iswcntrl, used for wcwidth fallback.
65616         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
65617         to Autoconf 2.13.
65618
65619 2001-08-03  Jim Meyering  <meyering@lucent.com>
65620
65621         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
65622         as it was in the original.  Reported by Paul Eggert.
65623
65624 2001-07-16  Jim Meyering  <meyering@lucent.com>
65625
65626         * m4/gettimeofday.m4: New file.
65627         Prompted by a report from Bernhard Baehr.
65628
65629 2001-07-15  Jim Meyering  <meyering@lucent.com>
65630
65631         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
65632         stuff. Now it's in ../Makefile.cfg.
65633
65634 2001-07-15  Jim Meyering  <meyering@lucent.com>
65635
65636         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
65637         (BUILT_SOURCES): Add unlocked-io.h.
65638         (io_functions): Define.
65639         (unlocked-io.h): New rule.
65640         (DISTCLEANFILES): Add unlocked-io.h.
65641         (all-local): Depend on unlocked-io.h, to ensure it is created.
65642
65643         * lib/unlocked-io.hin: New file
65644
65645         * lib/regex.c: Update from glibc.
65646
65647 2001-07-05  Jim Meyering  <meyering@lucent.com>
65648
65649         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
65650         recommendation.
65651         (libfetish_a_SOURCES): Put all .h files here instead.
65652         Remove a thus-exposed (better checks in automake) duplicate and
65653         two unnecessary .h files.
65654
65655 2001-07-04  Jim Meyering  <meyering@lucent.com>
65656
65657         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
65658         that generates jm-glibc-io.m4 so that it doesn't trigger any make
65659         distcheck failure.
65660
65661 2001-07-02  Jim Meyering  <meyering@lucent.com>
65662
65663         The following changes were prompted by suggestions from Bruno Haible.
65664
65665         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
65666         is now generated.
65667         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
65668         definition of EXTRA_DIST.
65669         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
65670         ensure that the generated file is created/updated whenever the list
65671         of $(unlocked_functions) is changed.
65672         (jm-glibc-io.m4): New rule.
65673         (unlocked-io.h): New rule -- currently unused.
65674
65675 2001-06-24  Jim Meyering  <meyering@lucent.com>
65676
65677         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
65678         unmatched right bracket, rather than kludging it with an extra,
65679         falsely-matching quote in a comment.  Patch by Akim Demaille.
65680
65681 2001-06-11  Jim Meyering  <meyering@lucent.com>
65682
65683         * lib/regex.c: Update from GNU libc.
65684
65685 2001-05-27  Jim Meyering  <meyering@lucent.com>
65686
65687         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
65688         Check for ut_type in struct utmp.
65689
65690 2001-05-27  Jim Meyering  <meyering@lucent.com>
65691
65692         * lib/readutmp.h (UT_TYPE): Define.
65693
65694 2001-05-24  Jim Meyering  <meyering@lucent.com>
65695
65696         * lib/argmatch.c: Include "quote.h".
65697         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
65698         quote function.  Reported by Göran Uddeborg.
65699
65700 2001-05-22  Jim Meyering  <meyering@lucent.com>
65701
65702         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
65703         now that we use the package-supplied version unconditionally.
65704         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
65705
65706 2001-05-21  Jim Meyering  <meyering@lucent.com>
65707
65708         * m4/regex.m4: Change a couple backticks to single quotes to avoid
65709         shell syntax errors.
65710
65711 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
65712
65713         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
65714
65715 2001-05-20  Paul Eggert  <eggert@twinsun.com>
65716
65717         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
65718         Don't bother to check library strftime, since
65719         we'll be using our own my_strftime function anyway.
65720         Define my_strftime instead of strftime.
65721
65722 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
65723
65724         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
65725         which is not yet declared.
65726
65727 2001-05-15  Jim Meyering  <meyering@lucent.com>
65728
65729         * m4/regex.m4: Use proper quoting so brackets appear in the test
65730         program.
65731         Reported by, and with help from, Bruno Haible.
65732
65733 2001-05-13  Jim Meyering  <meyering@lucent.com>
65734
65735         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
65736         undefined.
65737
65738 2001-05-11  Paul Eggert  <eggert@twinsun.com>
65739
65740         dirname code cleanup.  base_name now behaves more compatibly
65741         with POSIX basename when given file names that have trailing
65742         slashes, and similarly for dir_name.  Add new primitives
65743         base_len and dir_len.  Put the directory-name-related decls
65744         into dirname.h.
65745
65746         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
65747         * lib/backupfile.c (base_name): Likewise.
65748         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
65749         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
65750         * lib/makepath.c (strip_trailing_slashes): Likewise.
65751         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
65752         ISSLASH): Likewise.
65753         * lib/rename.c (strip_trailing_slashes): Likewise.
65754         * lib/same.c (base_name): Likewise.
65755         * lib/stripslash.c (ISSLASH): Likewise.
65756
65757         * lib/addext.c: Include <dirname.h> after size_t is defined.
65758         * lib/backupfile.c: Likewise.
65759
65760         * lib/addext.c (addext): Use base_len to trim redundant
65761         trailing slashes instead of doing it ourselves.
65762         But do not trim the last slash if it is not redundant.
65763
65764         * lib/backupfile.c (find_backup_file_name,
65765         max_backup_version): Use base_len instead of rolling it ourselves.
65766         Handle the case of "" and (on DOS) "C:" correctly.
65767
65768         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
65769         needed. Include <string.h>, <dirname.h>.
65770         (base_name): Allow file names ending in slashes, other than names
65771         that are all slashes.  In this case, return the basename followed
65772         by the slashes.  This is more general, and can be used in places
65773         where the original base_name purposely had an assertion failure.
65774         (base_len): New function.
65775
65776         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
65777         Do not include <assert.h>; no longer needed.
65778         Include xalloc.h.
65779         (memrchr): Remove decl.
65780         (dir_name_r): Remove.
65781         (dir_len): Renamed from dirlen.  All callers changed.
65782         Rewrite in terms of base_name, for simplicity and consistency.
65783         (dir_name): Never return NULL.  All callers changed.
65784         Do not include <stdlib.h> in test program; no longer needed.
65785         return 0; is fine for test program.
65786
65787         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
65788         New macros.
65789         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
65790
65791         * lib/path-concat.c (path_concat): Use base_len to compute
65792         base length, not strlen; this means we cannot rely on memcpy
65793         to null-terminate.
65794
65795         * lib/same.c (STREQ): Remove.
65796         (same_name): Handle the case where the basename ends in trailing '/'.
65797
65798         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
65799         a slash was stripped.  Do not strip the last slash after a
65800         file system prefix.
65801
65802 2001-05-11  Paul Eggert  <eggert@twinsun.com>
65803
65804         * lib/Makefile.am (libfetish_a_SOURCES):
65805         Add strftime.c, since we now compile it on all hosts.
65806
65807         * lib/strftime.c (my_strftime):
65808         Define to nstrftime if emacs, but only if my_strftime is not defined.
65809         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
65810         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
65811         Add one more extra argument: a nanoseconds value.
65812         All uses changed.
65813         (ns): New macro.
65814         (my_strftime function): Add %N format.
65815         (emacs_strftimeu): Renamed from emacs_strftime,
65816         with extra ut argument.
65817
65818 2001-05-09  Paul Eggert  <eggert@twinsun.com>
65819
65820         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
65821
65822 2001-04-21  Jim Meyering  <meyering@lucent.com>
65823
65824         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
65825         doesn't interfere.
65826
65827 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
65828
65829         * m4/ftruncate.m4: Check for chsize.
65830         Link with ftruncate.o unconditionally if ftruncate is missing.
65831         This was required when cross-compiling to i586-mingw32msvc.
65832
65833 2001-04-08  Jim Meyering  <meyering@lucent.com>
65834
65835         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
65836         recomputed; that's necessary when the offset spans a DST transition.
65837         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
65838
65839 2001-04-02  Jim Meyering  <meyering@lucent.com>
65840
65841         * lib/regex.h, regex.c: Update from GNU libc.
65842
65843 2001-03-24  Jim Meyering  <meyering@lucent.com>
65844
65845         * m4/jm-macros.m4: Require autoconf-2.49d.
65846
65847 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
65848
65849         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
65850
65851 2001-03-19  Paul Eggert  <eggert@twinsun.com>
65852
65853         * lib/version-etc.c (version_etc_copyright): Update to 2001.
65854
65855 2001-03-17  Jim Meyering  <meyering@lucent.com>
65856
65857         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
65858         now that the version in autoconf is equivalent.
65859         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
65860
65861         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
65862         Suggestion from Akim Demaille.
65863
65864         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
65865         (jm_PREREQ_TEMPNAME): New function.
65866
65867 2001-03-16  Paul Eggert  <eggert@twinsun.com>
65868
65869         * lib/tempname.c (uint64_t): Define to uintmax_t if
65870         not defined, and if UINT64_MAX is not defined.
65871         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
65872         Reported by John David Anglin.
65873
65874 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
65875
65876         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
65877         resolve alias if codeset is empty.
65878         * lib/config.charset (BeOS): Use wildcard syntax.
65879
65880 2001-03-13  Jim Meyering  <meyering@lucent.com>
65881
65882         * lib/path-concat.c (path_concat)
65883         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
65884         concatenating e.g., `C:' and `foo'.
65885         From Bruno Haible.
65886
65887 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
65888
65889         * lib/localcharset.c (locale_charset): Don't use
65890         setlocale(LC_CTYPE,NULL). Don't return NULL.
65891         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
65892
65893 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
65894
65895         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
65896         support for DOS/DJGPP.
65897
65898 2001-03-01  Paul Eggert  <eggert@twinsun.com>
65899
65900         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
65901         lacks mkstemp.  Compile our own tempname.c if we compile our own
65902         mkstemp.c, as mkstemp relies on tempname.
65903
65904 2001-03-01  Jim Meyering  <meyering@lucent.com>
65905
65906         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
65907         AH_VERBATIM really does output its argument verbatim.
65908
65909 2001-02-28  Paul Eggert  <eggert@twinsun.com>
65910
65911         * lib/Makefile.am (libfetish_a_SOURCES):
65912         Add dup-safer.c, fopen-safer.c.
65913         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
65914
65915         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
65916         * lib/unistd-safer.h: New files.
65917
65918 2001-02-25  Paul Eggert  <eggert@twinsun.com>
65919
65920         The mkstemp replacement is taken from glibc 2.2.2, with some
65921         portability fixes for use outside glibc, as follows:
65922
65923         * lib/tempname.c (struct_stat64): New macro.
65924         (direxists, __gen_tempname): Use it.
65925         This avoids a portability problem with Solaris 8.
65926
65927         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
65928         (<stddef.h>, <stdint.h>, <string.h>):
65929         Include only if STDC_HEADERS || _LIBC.
65930         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
65931         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
65932         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
65933         (__set_errno): Define this macro if <errno.h> doesn't.
65934         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
65935         Define these macros if <stdio.h> doesn't.
65936         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
65937         Define these macros if <sys/stat.h>
65938         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
65939         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
65940         __xstat64): Define if not _LIBC.
65941         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
65942         (__gen_tempname): Invoke gettimeofday only if
65943         HAVE_GETTIMEOFDAY || _LIBC;
65944         otherwise, fall back on plain "time".
65945         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
65946
65947         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
65948
65949         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
65950
65951 2001-02-18  Paul Eggert  <eggert@twinsun.com>
65952
65953         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
65954
65955 2001-02-17  Paul Eggert  <eggert@twinsun.com>
65956
65957         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
65958         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
65959         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
65960         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
65961
65962 2001-02-17  Paul Eggert  <eggert@twinsun.com>
65963
65964         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
65965         Remove workaround macros for hosts that have mbrtowc but not
65966         mbstate_t, as we now insist on proper declarations for both
65967         before using mbrtowc.
65968
65969 2001-02-17  Jim Meyering  <meyering@lucent.com>
65970
65971         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
65972         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
65973         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
65974         UnixWare 7.1.1.
65975
65976         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
65977         rather than AC_CACHE_VAL.
65978
65979 2001-02-17  Jim Meyering  <meyering@lucent.com>
65980
65981         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
65982         around included file name.
65983
65984         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
65985
65986         * lib/strftime.c: Update from GNU libc (the only changes were to
65987         comments).
65988
65989 2001-02-17  Jim Meyering  <meyering@lucent.com>
65990
65991         * lib/regex.c: Update from libc.
65992
65993 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
65994
65995         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
65996         clash.
65997
65998 2001-02-16  Paul Eggert  <eggert@twinsun.com>
65999
66000         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
66001         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
66002         Reported by Mark Hounschell via Paul Eggert.
66003
66004 2001-02-07  Jim Meyering  <meyering@lucent.com>
66005
66006         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
66007
66008 2001-02-05  Jim Meyering  <meyering@lucent.com>
66009
66010         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
66011         it includes the patch required for `large file' support with at least
66012         HP-UX's 10.20 /bin/cc.
66013
66014 2001-02-03  Jim Meyering  <meyering@lucent.com>
66015
66016         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
66017         AS_IF, now that it works once again (mysteriously).
66018         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
66019
66020 2001-01-30  Jim Meyering  <meyering@lucent.com>
66021
66022         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
66023         * m4/chown.m4: Rename conftestchown to conftest.chown.
66024         * m4/rename.m4: s/conftestdir/conftest.d1/ and
66025         s/conftestdir2/conftest.d2/.
66026         * m4/utimes.m4: s/conftestdata/conftest.data/
66027         Inspired by Pavel Roskin's change in autoconf.
66028
66029 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
66030
66031         * lib/config.charset: Update for FreeBSD 4.2.
66032
66033 2001-01-27  Jim Meyering  <meyering@lucent.com>
66034
66035         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
66036         a use of AS_IF.
66037         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
66038
66039 2001-01-26  Jim Meyering  <meyering@lucent.com>
66040
66041         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
66042         quotearg.c includes it.
66043
66044 2001-01-26  Jim Meyering  <meyering@lucent.com>
66045
66046         * lib/quotearg.c: Include stddef.h.
66047         * lib/quote.c: Include stddef.h.
66048         Reported by Axel Kittenberger.
66049
66050         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
66051         line in double quotes so that it evokes a better diagnostic.
66052         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
66053         Reported by Axel Kittenberger.
66054
66055 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
66056
66057         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
66058         as if it was a `charset'.
66059
66060 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
66061
66062         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
66063         has const.
66064
66065 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
66066
66067         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
66068         to avoid a warning.  Add back 'const' to inptr.
66069
66070 2001-01-20  Jim Meyering  <meyering@lucent.com>
66071
66072         Be sure that headers are checked before used in code compiled
66073         for the type checks.
66074         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
66075         In place of that, invoke jm_CHECK_ALL_TYPES.
66076         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
66077         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
66078         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
66079         The check for ssize_t was mistakenly run before the test for unistd.h.
66080
66081         The configure-time check for stdbool.h was missing.
66082         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
66083         (jm_PREREQ_HASH): New function.
66084
66085 2001-01-17  Jim Meyering  <meyering@lucent.com>
66086
66087         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
66088         for autoconf-2.49c.
66089         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
66090
66091 2001-01-16  Jim Meyering  <meyering@lucent.com>
66092
66093         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
66094         From Bruno Haible.
66095
66096 2001-01-14  Jim Meyering  <meyering@lucent.com>
66097
66098         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
66099         foo and bar.  Create conftestdir/ in the script, not in the C code.
66100         Remove directories in the script, not in the C code.
66101         Remove conftestdir{,2} before trying to create the directory.
66102         Make the entire configure script fail if the mkdir fails.
66103
66104 2001-01-14  Jim Meyering  <meyering@lucent.com>
66105
66106         * lib/rename.c: New file.  From Volker Borchert.
66107         Include stdlib.h, string.h or strings.h, and xalloc.h.
66108         Use strip_trailing_slashes rather than open-coding it.
66109
66110 2001-01-03  Paul Eggert  <eggert@twinsun.com>
66111
66112         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
66113
66114 2001-01-03  Jim Meyering  <meyering@lucent.com>
66115
66116         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
66117         of local `inptr' to avoid warning with some system declarations of
66118         iconv.
66119
66120 2001-01-02  Volker Borchert  <bt@teknon.de>
66121
66122         * m4/rename.m4: New file.
66123         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
66124
66125 2001-01-01  Jim Meyering  <meyering@lucent.com>
66126
66127         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
66128         even on systems with utmpx.h.  It's necessary for the declaration of
66129         utmp's ut_user member.  Reported by Andreas Jaeger.
66130
66131         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
66132         available. They are required for the declarations of getgrgid and
66133         getpwuid resp.
66134         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
66135         Reported by Andreas Jaeger.
66136
66137 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
66138
66139         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
66140         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
66141         so `make install' also works in VPATH builds.
66142
66143 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
66144
66145         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
66146         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
66147         can be used in subdirectories.
66148
66149 2000-12-29  Paul Eggert  <eggert@twinsun.com>
66150
66151         * lib/modechange.c: Do not assume that mode_t uses the
66152         traditional octal encoding.  E.g. "chmod 1 FOO" should set
66153         the other-execute bit of FOO even if S_IXOTH != 1.
66154
66155         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
66156         WOTH, XOTH, ALLM): New macros.
66157         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
66158          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
66159         Use them.
66160         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
66161         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
66162         (mode_compile):
66163         No need to use uintmax_t; unsigned long is long enough.
66164         Don't bother to get suffix since we don't use it.
66165
66166 2000-12-26  Jim Meyering  <meyering@lucent.com>
66167
66168         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
66169         better with autoheader.
66170
66171 2000-12-24  Jim Meyering  <meyering@lucent.com>
66172
66173         * lib/hash.c (is_prime): Return explicit boolean values.
66174         (hash_get_first): Return NULL to appease Irix5.6's 89.
66175         Reported by Nelson Beebe.
66176
66177 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
66178
66179         * lib/localcharset.c (locale_charset): Add support for Win32.
66180
66181 2000-12-18  Paul Eggert  <eggert@twinsun.com>
66182
66183         * lib/physmem.h, lib/physmem.c: New files.
66184
66185         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
66186         (noinst_HEADERS): Add physmem.h.
66187
66188         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
66189         't' for compatibility with Solaris 8 sort.
66190
66191 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
66192
66193         * lib/config.charset: Add support for BeOS.
66194
66195 2000-12-17  Jim Meyering  <meyering@lucent.com>
66196
66197         * m4/dos.m4 (jm_AC_DOS): New file and macro.
66198         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
66199
66200 2000-12-16  Jim Meyering  <meyering@lucent.com>
66201
66202         This bug had a serious impact on chown: `chown N:M FILE' (for integer
66203         N and M) would have treated it like `chown N:N FILE'.
66204
66205         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
66206
66207 2000-12-16  Jim Meyering  <meyering@lucent.com>
66208
66209         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
66210         SHELLS_FILE to a file name that's useful on djgpp systems.
66211         Include stdlib.h.
66212         (ADDITIONAL_DEFAULT_SHELLS): Define.
66213         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
66214         Based mostly on a patch from Prashant TR.
66215
66216 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
66217
66218         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
66219         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
66220         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
66221
66222 2000-12-08  Andreas Schwab  <schwab@suse.de>
66223
66224         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
66225         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
66226
66227 2000-12-07  Jim Meyering  <meyering@lucent.com>
66228
66229         * lib/stripslash.c (ISSLASH): Define.
66230         (strip_trailing_slashes): Use ISSLASH rather than comparing against
66231         `/'.
66232         From Prashant TR.
66233
66234         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
66235         (dir_name_r): Declare this function as static.
66236         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
66237         manifest itself on a name containing a mix of slashes and
66238         backslashes.
66239         Make this function work with names starting with a DOS-style
66240         drive letter and colon prefix.
66241         (dir_name): Append `.' if necessary.
66242         Based mostly on patches from Prashant TR and Eli Zaretskii.
66243
66244         * lib/dirname.h (dir_name_r): Remove prototype.
66245
66246 2000-12-06  Paul Eggert  <eggert@twinsun.com>
66247
66248         * m4/off_t-format.m4: Remove this file.
66249         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
66250
66251 2000-12-06  Jim Meyering  <meyering@lucent.com>
66252
66253         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
66254         replacement strtoull, we may well need the replacement strtoul, too.
66255         Check for declarations of strtoul and strtoull.
66256         Check for strtol.  Mainly as a cue to cause automake to include
66257         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
66258         Check for limits.h -- strtol.c needs it.
66259
66260 2000-12-05  Jim Meyering  <meyering@lucent.com>
66261
66262         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
66263
66264 2000-12-04  Jim Meyering  <meyering@lucent.com>
66265
66266         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
66267         Also include memory.h, stdlib.h, unistd.h if appropriate.
66268         Reported by Andreas Jaeger (conflicting declaration of malloc).
66269
66270 2000-12-02  Jim Meyering  <meyering@lucent.com>
66271
66272         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
66273         * m4/jm-macros.m4 (jm_MACROS): require it.
66274
66275 2000-12-02  Jim Meyering  <meyering@lucent.com>
66276
66277         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
66278
66279 2000-12-01  Paul Eggert  <eggert@twinsun.com>
66280
66281         * lib/memrchr.c: Include <config.h> before any system include file.
66282
66283 2000-11-30  Jim Meyering  <meyering@lucent.com>
66284
66285         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
66286
66287 2000-11-30  Jim Meyering  <meyering@lucent.com>
66288
66289         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
66290
66291 2000-11-29  Paul Eggert  <eggert@twinsun.com>
66292
66293         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
66294
66295 2000-11-26  Jim Meyering  <meyering@lucent.com>
66296
66297         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
66298
66299 2000-11-22  Paul Eggert  <eggert@twinsun.com>
66300
66301         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
66302         size of (size_t) -1; it's not portable.
66303
66304 2000-11-17  Jim Meyering  <meyering@lucent.com>
66305
66306         * lib/strstr.c: Update from GNU libc.
66307
66308 2000-11-17  Akim Demaille  <akim@epita.fr>
66309
66310         * lib/obstack.h: Formatting changes.
66311         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
66312         prevent type checking.
66313         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
66314         cast the value to (void *): assigning a `foo *' to a `void *'
66315         variable is valid.
66316         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
66317
66318 2000-11-16  Jim Meyering  <meyering@lucent.com>
66319
66320         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
66321
66322 2000-11-11  Jim Meyering  <meyering@lucent.com>
66323
66324         * lib/error.c: Add a couple #includes, merging from GNU libc version.
66325
66326 2000-11-10  Jim Meyering  <meyering@lucent.com>
66327
66328         * lib/obstack.h: Update from GNU libc.
66329         * lib/obstack.c: Likewise.
66330
66331 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
66332
66333         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
66334
66335 2000-11-06  Paul Eggert  <eggert@twinsun.com>
66336
66337         * lib/getusershell.c (setusershell): Use rewind rather than
66338         fseek/fseeko, to avoid configuration hassles with fseeko.
66339         Don't bother opening SHELLS_FILE if shellstream is NULL;
66340         it's not necessary.
66341
66342 2000-11-05  Jim Meyering  <meyering@lucent.com>
66343
66344         * lib/makepath.h (make_dir): Declare.
66345         * lib/makepath.c (make_dir): Remove `static' attribute.
66346         Tweak a comment.
66347
66348 2000-11-04  Jim Meyering  <meyering@lucent.com>
66349
66350         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
66351
66352 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
66353
66354         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
66355         last one in a bucket, advance to the next bucket.
66356
66357 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
66358
66359         * lib/fnmatch.c: Do not comment out all the code if we are using
66360         the GNU C library, because in some cases we are replacing buggy
66361         code in the GNU C library itself.
66362
66363 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
66364
66365         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
66366         (regex_compile): Catch bogus \(\1\).
66367
66368 2000-10-30  Paul Eggert  <eggert@twinsun.com>
66369
66370         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
66371         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
66372         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
66373
66374 2000-10-30  Paul Eggert  <eggert@twinsun.com>
66375
66376         * lib/error.h, getline.h, modechange.h:
66377         Remove "2000" from Copyright line, as the file hasn't been
66378         changed this year other than in the copyright notice.
66379
66380         * lib/xalloc.h: Add "2000" to Copyright line, as this file
66381         was changed this year.
66382
66383 2000-10-29  Jim Meyering  <meyering@lucent.com>
66384
66385         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
66386         renaming.
66387         * m4/ls-mntd-fs.m4: Likewise
66388
66389 2000-10-29  Jim Meyering  <meyering@lucent.com>
66390
66391         * lib/xstat.in: Fix grammar in comment.
66392
66393 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
66394
66395         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
66396         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
66397         doesn't define __restrict_arr.
66398
66399 2000-10-28  Jim Meyering  <meyering@lucent.com>
66400
66401         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
66402         (jm_PREREQ_MEMCHR): New function.
66403
66404 2000-10-28  Jim Meyering  <meyering@lucent.com>
66405
66406         * lib/memchr.c: Update from libc.
66407         Adjust for portability:
66408         [HAVE_STDLIB_H]: Include stdlib.h.
66409         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
66410         Undef __memchr, too.
66411         [!weak_alias]: Define __memchr to memchr.
66412
66413         * lib/regex.c: Update from libc.
66414         * lib/regex.h: Likewise.
66415         * lib/getopt1.c: Likewise.
66416         * lib/memcmp.c: Likewise.
66417
66418         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
66419         Avoid using fseek, when possible -- it's broken by design.
66420         Patch by Ulrich Drepper.
66421
66422 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
66423
66424         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
66425         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
66426         Giving in to popular pressure to shut up the compiler with casts.
66427
66428 2000-10-26  Jim Meyering  <meyering@lucent.com>
66429
66430         * lib/strftime.c: Update from libc.
66431
66432 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
66433
66434         * regex.c: More `unsigned char' -> `re_char' changes.
66435         Also change several `int' into `re_wchar_t'.
66436         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
66437         (PUSH_FAILURE_POINTER): Don't cast any more.
66438         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
66439         We want GCC to complain, since this piece of code makes
66440         re_match non-reentrant, which *should* be fixed.
66441         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
66442         (EXTEND_BUFFER): Use RETALLOC.
66443         (SET_LIST_BIT): Don't cast.
66444         (re_wchar_t): New type.
66445         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
66446         that those two functions will always properly return.
66447         (IMMEDIATE_QUIT_CHECK): Cast to void.
66448         (analyse_first): Use recursion rather than an explicit stack.
66449         (re_compile_fastmap): Can't fail anymore.
66450         (re_search_2): Don't check re_compile_fastmap for failure.
66451         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
66452         Now also sets the new value (passed in a new argument).
66453         (re_match_2_internal): Use it.
66454         Also, use a new var `reg' of type size_t when looping through regs
66455         rather than reuse the inappropriate `mcnt'.
66456
66457 2000-10-25  Jim Meyering  <meyering@lucent.com>
66458
66459         * lib/obstack.c: Update from libc.
66460
66461 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
66462
66463         * regex.c (regex_compile): Change the way of handling a range from
66464         a char less than 256 to a char not less than 256.
66465
66466 2000-10-24  Andrew Innes  <andrewi@gnu.org>
66467
66468         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
66469         NT-Emacs only.
66470         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
66471         so that re_search functions only quit when callers expect them to.
66472
66473 2000-10-23  Jim Meyering  <meyering@lucent.com>
66474
66475         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
66476         wrong.  That set_locale call must not have any side effects.
66477         From Paul Eggert.
66478
66479 2000-10-22  Jim Meyering  <meyering@lucent.com>
66480
66481         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
66482         [CYCLIC]: Remove now-unused definition.
66483
66484         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
66485         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
66486         Suggestion from Ulrich Drepper.
66487
66488 2000-10-21  Jim Meyering  <meyering@lucent.com>
66489
66490         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
66491         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
66492         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
66493
66494 2000-10-21  Jim Meyering  <meyering@lucent.com>
66495
66496         * lib/dirname.c (memrchr): Declare if necessary.
66497         (dir_name): Remove the restriction that there be no
66498         trailing slashes.  Now, this code skips past them, effectively
66499         ignoring them.
66500         [TEST_DIRNAME] (main): New unit tests.
66501
66502         * lib/memrchr.c: New file from GNU libc.
66503         Undef __memrchr, too.
66504         [!weak_alias]: Define __memrchr to memrchr.
66505         Guard weak_alias use with `#ifdef weak_alias'.
66506
66507 2000-10-21  Jim Meyering  <meyering@lucent.com>
66508
66509         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
66510         (dir_name): Use dir_name_r.
66511         * lib/dirname.h (dir_name_r): Declare it.
66512
66513 2000-10-17  Jim Meyering  <meyering@lucent.com>
66514
66515         * lib/quote.h (PARAMS): Define and use.
66516         Reported by Akim Demaille.
66517
66518         * lib/getopt.c: Update from libc.
66519
66520 2000-10-16  Jim Meyering  <meyering@lucent.com>
66521
66522         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
66523         setlocale.
66524         From Jan Fedak.
66525
66526 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
66527
66528         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
66529
66530 2000-09-25  Jim Meyering  <meyering@lucent.com>
66531
66532         * lib/md5.h (rol): Define (from GnuPG).
66533
66534         * lib/sha.c: Give credit (GnuPG) where due.
66535         (M): Use rol rather than open-coding it.
66536         Add a FIXME comment.
66537
66538 2000-09-21  Jim Meyering  <meyering@lucent.com>
66539
66540         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
66541         Reported by Michael Stone.
66542
66543 2000-09-20  Jim Meyering  <meyering@lucent.com>
66544
66545         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
66546         (noinst_HEADERS): Add sha.h.
66547         Based on code from Scott G. Miller and from GnuPG.
66548
66549 2000-09-18  Jim Meyering  <meyering@lucent.com>
66550
66551         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
66552         LIBS. Otherwise, everyone ends up linking with -lelf for some
66553         configurations.
66554         Reported by Mike Stone.
66555
66556 2000-09-15  Jim Meyering  <meyering@lucent.com>
66557
66558         * lib/regex.c: Update from libc.
66559
66560 2000-09-10  Jim Meyering  <meyering@lucent.com>
66561
66562         * lib/getopt.c (_getopt_internal): Update from glibc.
66563
66564 2000-09-09  Jim Meyering  <meyering@lucent.com>
66565
66566         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
66567         think it should be used as a general replacement for isascii.
66568         * lib/fnmatch.c: Likewise.
66569         * lib/mbswidth.c: Likewise
66570         * lib/regex.c: Likewise.
66571
66572         Don't use atoi.
66573         * lib/userspec.c: Include sys/param.h and limits.h.
66574         Include xstrtol.h.
66575         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
66576         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
66577         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
66578         UID, GID.  Check range.
66579
66580 2000-09-06  Jim Meyering  <meyering@lucent.com>
66581
66582         * lib/getopt.c (_getopt_internal): Update from glibc.
66583
66584 2000-08-30  Jim Meyering  <meyering@lucent.com>
66585
66586         * lib/strftime.c: Merge in changes from GNU libc.
66587
66588 2000-08-26  Jim Meyering  <meyering@lucent.com>
66589
66590         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
66591         * m4/fpending.m4: New file.
66592
66593 2000-08-26  Jim Meyering  <meyering@lucent.com>
66594
66595         * lib/closeout.c: Include "__fpending.h".
66596         (close_stdout_status): Return right away if there's nothing to flush.
66597
66598         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
66599         * lib/__fpending.c: New file.
66600         * lib/__fpending.h: New file.
66601
66602 2000-08-20  Jim Meyering  <meyering@lucent.com>
66603
66604         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
66605         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
66606         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
66607
66608 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
66609
66610         Improve fileutils installation on systems where running
66611         programs (like install) can't be unlinked.
66612         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
66613         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
66614
66615 2000-08-07  Paul Eggert  <eggert@twinsun.com>
66616
66617         Standardize on "memory exhausted" instead of "Memory exhausted"
66618         or "virtual memory exhausted".
66619         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
66620         "virtual memory exhausted".
66621         * lib/same.c (same_name): Invoke xalloc_die instead of printing
66622         our own message.
66623         * lib/userspec.c (parse_user_spec): Likewise.
66624         * lib/bumpalloc.h: comment fix
66625         * lib/same.c, userspec.c: Include xalloc.h.
66626
66627         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
66628         not char *const and pointing to a constant array.
66629         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
66630         (xrealloc): Comment fix.
66631
66632         * lib/userspec.c (parse_user_spec):
66633         Don't translate a message until just before returning,
66634         to avoid unnecessary translation.
66635
66636 2000-08-07  Jim Meyering  <meyering@lucent.com>
66637
66638         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
66639         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
66640         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
66641         getgroups.c, gethostname.c, getopt.h, group-member.c,
66642         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
66643         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
66644         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
66645         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
66646         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
66647         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
66648         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
66649         yesno.c: Back out Copyright date changes for each file with no change
66650         this year.  This eases coordination with other programs using the same
66651         source code modules.  From Paul Eggert.
66652
66653 2000-08-06  Paul Eggert  <eggert@twinsun.com>
66654
66655         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
66656         not char, for compatibility with glibc 2.1.3 strftime.c.
66657
66658 2000-08-03  Greg McGary  <greg@mcgary.org>
66659
66660         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
66661         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
66662         (EXTEND_BUFFER): Use them.
66663
66664 2000-08-01  Jim Meyering  <meyering@lucent.com>
66665
66666         * lib/dirname.c (ISSLASH): Define.
66667         (BACKSLASH_IS_PATH_SEPARATOR): Define.
66668         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
66669         both `\' and `/' may be use as path separators.
66670         Based on a patch from Prashant TR.
66671
66672 2000-07-31  Paul Eggert  <eggert@twinsun.com>
66673
66674         * lib/quotearg.c (quotearg_n_options): Don't make the initial
66675         slot vector a constant, since it might get modified.
66676
66677 2000-07-31  Jim Meyering  <meyering@lucent.com>
66678
66679         * lib/xmalloc.c: Use `virtual memory exhausted', not
66680         `Memory exhausted'.
66681         * lib/obstack.c (print_and_abort): Likewise.
66682
66683 2000-07-30  Paul Eggert  <eggert@twinsun.com>
66684
66685         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
66686         buffer, so that the caller can always quote one small
66687         component of a "memory exhausted" message in slot 0.
66688         From a suggestion by Jim Meyering.
66689
66690 2000-07-30  Jim Meyering  <meyering@lucent.com>
66691
66692         * lib/makepath.c (make_path): Quote the other instance, too.
66693
66694         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
66695         (STATIC_BUF_SIZE): Define.
66696         (quotearg_n_options): Use only statically allocated storage when
66697         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
66698         than STATIC_BUF_SIZE.
66699
66700 2000-07-29  Jim Meyering  <meyering@lucent.com>
66701
66702         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
66703         * lib/dirname.c (dir_name): Likewise.
66704
66705         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
66706         `/'.
66707
66708         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
66709         (dir_name): Assert that there are no trailing slashes.
66710
66711 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
66712
66713         * lib/mbswidth.h (mbswidth): Add a flags argument.
66714         (mbswidth): New declaration.
66715         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
66716         * lib/mbswidth.c (mbswidth): Add a flags argument.
66717         (mbsnwidth): New function.
66718
66719 2000-07-24  Jim Meyering  <meyering@lucent.com>
66720
66721         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
66722
66723 2000-07-23  Paul Eggert  <eggert@twinsun.com>
66724
66725         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
66726
66727 2000-07-23  Paul Eggert  <eggert@twinsun.com>
66728
66729         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
66730         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
66731         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
66732         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
66733         invoke multibyte primitives.
66734
66735 2000-07-23  Paul Eggert  <eggert@twinsun.com>
66736
66737         * lib/quotearg.c:
66738         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
66739         so that mbstate_t is always defined.
66740
66741         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
66742         be 1 in at least one GCC installation, and this configuration
66743         error is likely to be common.  Ignoring MB_LEN_MAX hurts
66744         performance on hosts that have mbrtowc but have only unibyte
66745         locales, but I assume these hosts are rare.
66746
66747 2000-07-23  Paul Eggert  <eggert@twinsun.com>
66748
66749         * lib/mbswidth.c (_XOPEN_SOURCE):
66750         Don't define; this causes problems on Solaris 7.
66751         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
66752
66753 2000-07-23  Jim Meyering  <meyering@lucent.com>
66754
66755         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
66756         too: getgrgid, getpwuid, getuid.
66757
66758 2000-07-23  Jim Meyering  <meyering@lucent.com>
66759
66760         * lib/basename.c (base_name): Add an assertion.
66761
66762 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
66763
66764         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
66765         shadow its mbsinit function.
66766
66767 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
66768
66769         * lib/mbswidth.h: New file.
66770         * lib/mbswidth.c: New file.
66771         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
66772         (noinst_HEADERS): Add mbswidth.h.
66773
66774 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
66775
66776         * lib/config.charset: Add support for FreeBSD. Improve support for
66777         HP-UX and IRIX 6.
66778
66779 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
66780
66781         * m4/mbswidth.m4: New file.
66782         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
66783
66784 2000-07-15  Jim Meyering  <meyering@lucent.com>
66785
66786         * lib/makepath.c: Include quote.h.
66787         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
66788         corresponding argument in a `quote (...)' call.
66789         Give better diagnostics.
66790
66791         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
66792         (noinst_HEADERS): Add quote.h.
66793
66794         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
66795         from tar's src/misc.c.
66796         * lib/quote.h: New file.  Prototypes for same.
66797
66798 2000-07-14  Paul Eggert  <eggert@twinsun.com>
66799
66800         From a suggestion by Bruno Haible.
66801         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
66802         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
66803         to decide whether to define the BeOS workaround macro;
66804         this adjusts to the change to AC_MBSTATE_T.
66805
66806 2000-07-14  Jim Meyering  <meyering@lucent.com>
66807
66808         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
66809         jm_AC_TYPE_UINTMAX_T.
66810
66811 2000-07-13  Paul Eggert  <eggert@twinsun.com>
66812
66813         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
66814
66815         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
66816         quotearg_buffer_restyled): Add support for
66817         clocale_quoting_style.  Undo previous change to
66818         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
66819         and "{RIGHT QUOTATION MARK}" msgids.
66820
66821 2000-07-10  Paul Eggert  <eggert@twinsun.com>
66822
66823         From a suggestion by Bruno Haible.
66824         * m4/mbstate_t.m4 (AC_MBSTATE_T):
66825         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
66826         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
66827         and mbstate_t, to a single-part test that simply defines mbstate_t.
66828         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
66829         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
66830
66831 2000-07-10  Jim Meyering  <meyering@lucent.com>
66832
66833         * m4/strerror_r.m4: Mirror the correction made in autoconf.
66834
66835         * m4/gnu-source.m4: Output to confdefs.h directly.
66836         Suggestion from Akim Demaille.
66837
66838 2000-07-09  Paul Eggert  <eggert@twinsun.com>
66839
66840         The old behavior of quoting `like this' doesn't look good with
66841         newer, ISO-style fonts.  See:
66842         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
66843
66844         Instead, quote "like this" by default.  Let the translator
66845         tailor the locale-specific quoting behavior by providing
66846         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
66847
66848         * lib/quotearg.c (N_): New macro.
66849         (gettext_default): New function.
66850         (quotearg_buffer_restyled): Use
66851         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
66852         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
66853
66854 2000-07-09  Jim Meyering  <meyering@lucent.com>
66855
66856         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
66857         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
66858
66859         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
66860         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
66861
66862 2000-07-09  Jim Meyering  <meyering@lucent.com>
66863
66864         * lib/Most files: Update copyright dates to include 2000.
66865
66866 2000-07-08  Jim Meyering  <meyering@lucent.com>
66867
66868         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
66869         if not defined.
66870         (xgethostname): Remove now-unnecessary #ifdef.
66871         Move declaration of `err' into loop where it's used.
66872
66873 2000-07-05  Paul Eggert  <eggert@twinsun.com>
66874         and Bruno Haible  <haible@clisp.cons.org>
66875
66876         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
66877         only if the test for an object-type mbstate_t fails.  This
66878         prevents us from mistakenly reporting that mbstate_t is a
66879         system object type after we "#define mbstate_t int" to work
66880         around its lack.
66881
66882 2000-07-05  Paul Eggert  <eggert@twinsun.com>
66883         and Bruno Haible  <haible@clisp.cons.org>
66884
66885         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
66886
66887 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
66888
66889         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
66890         to strerror_r.
66891         Include <ctype.h> for use of isalpha.
66892
66893 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
66894
66895         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
66896         by allocating a larger buffer. Test the gethostname return value for
66897         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
66898         returns an error and ENAMETOOLONG isn't defined.
66899
66900 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
66901
66902         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
66903         dimension.
66904
66905 2000-07-04  Jim Meyering  <meyering@lucent.com>
66906
66907         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
66908         of the deprecated AC_CHECKING.
66909
66910 2000-07-04  Jim Meyering  <meyering@lucent.com>
66911
66912         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
66913         Reported by Bruno Haible.
66914
66915 2000-07-04  Jim Meyering  <meyering@lucent.com>
66916
66917         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
66918         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
66919         lacks mbrtowc.
66920
66921 2000-07-03  Paul Eggert  <eggert@twinsun.com>
66922
66923         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
66924         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
66925
66926 2000-07-03  Paul Eggert  <eggert@twinsun.com>
66927         and Bruno Haible  <haible@clisp.cons.org>
66928
66929         * lib/quotearg.c (mbrtowc):
66930         Assign to *pwc, and return 1 only if result is nonzero.
66931         (iswprint): Use ISPRINT when substituting our own mbrtowc.
66932
66933 2000-07-03  Jim Meyering  <meyering@lucent.com>
66934
66935         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
66936
66937 2000-07-03  Jim Meyering  <meyering@lucent.com>
66938
66939         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
66940         This is necessary to get a definition of e.g., UTMP_FILE on
66941         HP-UX 10.20.
66942         From Bob Proulx.
66943
66944 2000-07-02  Jim Meyering  <meyering@lucent.com>
66945
66946         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
66947
66948         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
66949         AC_LIBOBJ(function_name).
66950         * m4/chown.m4: Likewise.
66951         * m4/fnmatch.m4: Likewise.
66952         * m4/ftruncate.m4: Likewise.
66953         * m4/getgroups.m4: Likewise.
66954         * m4/getline.m4: Likewise.
66955         * m4/group-member.m4: Likewise.
66956         * m4/jm-macros.m4: Likewise.
66957         * m4/lstat.m4: Likewise.
66958         * m4/malloc.m4: Likewise.
66959         * m4/memcmp.m4: Likewise.
66960         * m4/nanosleep.m4: Likewise.
66961         * m4/putenv.m4: Likewise.
66962         * m4/realloc.m4: Likewise.
66963         * m4/regex.m4: Likewise.
66964         * m4/stat.m4: Likewise.
66965         * m4/strftime.m4: Likewise.
66966
66967 2000-07-02  Jim Meyering  <meyering@lucent.com>
66968
66969         * lib/quotearg.c (mbstate_t): Don't define here.
66970
66971 2000-07-02  Jim Meyering  <meyering@lucent.com>
66972
66973         * lib/nanosleep.c (SIGCONT): Define if not already defined.
66974
66975 2000-07-01  Jim Meyering  <meyering@lucent.com>
66976
66977         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
66978
66979 2000-07-01  Jim Meyering  <meyering@lucent.com>
66980
66981         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
66982         problem.
66983
66984 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
66985
66986         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
66987         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
66988
66989 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
66990
66991         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
66992         per change in ../m4/ls-mntd-fs.m4.
66993         (read_filesystem_list): Ignore symbolic links.
66994
66995 2000-06-29  Jim Meyering  <meyering@lucent.com>
66996
66997         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
66998         for declaration of strcmp.
66999
67000         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
67001
67002         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
67003         Avoid warning by casting result to `char *' to remove `const'.
67004
67005 2000-06-28  Jim Meyering  <meyering@lucent.com>
67006
67007         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
67008         included by quotearg.c, for which we perform this test.  From
67009         Bruno Haible.
67010
67011 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
67012
67013         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
67014         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
67015         <utmpx.h> exists, put readutmp.o into LIBOBJS.
67016
67017 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
67018
67019         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
67020
67021 2000-06-26  Paul Eggert  <eggert@twinsun.com>
67022
67023         savedir now sets errno on failure and invokes xmalloc to get memory.
67024         Fix a couple of other minor bugs while we're at it.
67025
67026         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
67027         (NAMLEN): Remove macro.
67028         (malloc, realloc): Remove decls.
67029         (stpcpy): Likewise.
67030         ("xalloc.h"): Include.
67031         (NAME_SIZE_DEFAULT): New macro.
67032         (savedir): Use xmalloc / xrealloc to allocate memory.
67033         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
67034         Skip "" directory entries.
67035         Use strlen to calculate directory entry length, since the old method
67036         is rarely used these days and isn't worth supporting.
67037         Don't use a pointer after freeing it.
67038         Check for integer overflow when calculating allocation size.
67039         Use memcpy to copy entries, instead of stpcpy.
67040         Set errno properly when returning NULL.
67041         Check for readdir error.
67042
67043 2000-06-26  Jim Meyering  <meyering@lucent.com>
67044
67045         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
67046
67047 2000-06-25  Jim Meyering  <meyering@lucent.com>
67048
67049         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
67050         Linux header bug when _XOPEN_SOURCE is defined to 500.
67051
67052 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
67053
67054         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
67055         deficiency.
67056
67057 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
67058
67059         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
67060         Include xalloc.h.
67061         Don't include <stdlib.h>.  Don't declare malloc, realloc.
67062
67063 2000-06-24  Jim Meyering  <meyering@lucent.com>
67064
67065         * m4/strerror_r.m4: Revive this file -- to try out an experimental
67066         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
67067         for which strerror does return char*, but which lacks a conveniently
67068         accessible declaration of the function.  If the compile-test says
67069         strerror_r doesn't work, then resort to a `run'-test that works on
67070         BeOS and segfaults on DEC Unix.
67071
67072 2000-06-24  Jim Meyering  <meyering@lucent.com>
67073
67074         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
67075
67076 2000-06-23  Paul Eggert  <eggert@twinsun.com>
67077
67078         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
67079         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
67080
67081 2000-06-23  Paul Eggert  <eggert@twinsun.com>
67082
67083         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
67084         (mbrtowc, mbstate_t): Define substitutes if
67085         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
67086         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
67087         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
67088
67089 2000-06-23  Jim Meyering  <meyering@lucent.com>
67090
67091         * m4/afs.m4: Add missing AC_MSG_RESULT.
67092         Reported by Bruno Haible.
67093
67094         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
67095         Suggestion from Bruno Haible.
67096
67097 2000-06-23  Jim Meyering  <meyering@lucent.com>
67098
67099         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
67100
67101 2000-06-21  Jim Meyering  <meyering@lucent.com>
67102
67103         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
67104
67105 2000-06-21  Jim Meyering  <meyering@lucent.com>
67106
67107         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
67108         (noinst_HEADERS): Add getstr.h.
67109
67110         * lib/getline.c (getstr): Move into a separate file.
67111         * lib/getstr.c (getstr): New file, extracted from getline.c, with
67112         the following changes: new parameter, delim2; both delim[12]
67113         parameters have type `int', not `char'.  The latter would lose
67114         with 8-bit delimiters.
67115         * lib/getstr.h: New file.
67116
67117 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
67118
67119         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
67120         than 1024, return a memory chunk of least possible size, instead
67121         of size PATH_MAX + 2. In the loop, increment the size proportionally.
67122         Use free/xmalloc instead of xrealloc to avoid copying for very long
67123         paths.
67124
67125 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
67126
67127         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
67128         the empty string.
67129
67130 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
67131
67132         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
67133         address, not strdup.  Include <stdlib.h> and don't declare free().
67134
67135 2000-06-19  Jim Meyering  <meyering@lucent.com>
67136
67137         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
67138
67139 2000-06-18  Jim Meyering  <meyering@lucent.com>
67140
67141         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
67142
67143         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
67144         `checking whether...' message to be consistent with that of the
67145         lstat test.
67146
67147 2000-06-18  Jim Meyering  <meyering@lucent.com>
67148
67149         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
67150         Besides, these days every porting target provides a mkdir function.
67151
67152         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
67153         needed. (this snippet comes from src/system.h).
67154
67155 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
67156
67157         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
67158
67159 2000-06-15  Paul Eggert  <eggert@twinsun.com>
67160
67161         * lib/human.c (adjust_value): New function.
67162         (human_readable_inexact): Apply rounding style even when
67163         printing approximate values.
67164
67165 2000-06-14  Paul Eggert  <eggert@twinsun.com>
67166
67167         * lib/human.c (human_readable_inexact): Allow an input block
67168         size that is not a multiple of the output block size, and vice versa.
67169         Reported by Piergiorgio Sartor.
67170
67171 2000-06-14  Paul Eggert  <eggert@twinsun.com>
67172
67173         * lib/getdate.y (get_date): Apply relative times after time
67174         zone indicator, not before.  Reported by Todd A. Jacobs.
67175
67176 2000-06-13  Jim Meyering  <meyering@lucent.com>
67177
67178         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
67179
67180         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
67181
67182 2000-06-12  Paul Eggert  <eggert@twinsun.com>
67183
67184         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
67185
67186 2000-06-12  Jim Meyering  <meyering@lucent.com>
67187
67188         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
67189         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
67190         optional argument.
67191         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
67192         the optional argument, `lib'.
67193
67194 2000-06-08  Jim Meyering  <meyering@lucent.com>
67195
67196         * m4/largefile.m4: Remove file (now that it's part of autoconf).
67197
67198 2000-06-04  Paul Eggert  <eggert@twinsun.com>
67199
67200         Rewrite largefile configuration so that we don't need to run
67201         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
67202         AC_CANONICAL_HOST in configure.in -- jmm]
67203
67204         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
67205         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
67206         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
67207         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
67208         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
67209         All uses changed.
67210         Instead of inspecting the output of getconf, try to compile the
67211         test program without and with the macro definition.
67212         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
67213         for getconf.  Instead, check for the needed flags by compiling
67214         test programs.
67215
67216 2000-06-04  Paul Eggert  <eggert@twinsun.com>
67217
67218         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
67219
67220 2000-06-04  Jim Meyering  <meyering@lucent.com>
67221
67222         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
67223         SunOS 4.1.4 for which gid_t is an unsigned type.
67224
67225 2000-06-03  Jim Meyering  <meyering@lucent.com>
67226
67227         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
67228         now that autoconf requires that.
67229
67230         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
67231         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
67232         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
67233
67234 2000-06-03  Jim Meyering  <meyering@lucent.com>
67235
67236         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
67237
67238 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
67239
67240         * m4/glibc21.m4: New file.
67241         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
67242
67243 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
67244
67245         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
67246         newer, don't install charset.alias.
67247         * lib/config.charset: Change the Linux/glibc rules so they become empty
67248         on glibc-2.1 or newer.
67249
67250 2000-06-02  Jim Meyering  <meyering@lucent.com>
67251
67252         * lib/mountlist.c: Back out last change.  Instead, do this...
67253         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
67254         me_dummy member using the same `ignore'-testing code.
67255         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
67256         fs_type strings.
67257         From Mark D. Roth.
67258
67259 2000-05-29  Jim Meyering  <meyering@lucent.com>
67260
67261         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
67262         mounts with the `ignore' attribute.  Based on a patch from
67263         Mark D. Roth.
67264
67265 2000-05-28  Jim Meyering  <meyering@lucent.com>
67266
67267         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
67268         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
67269         * m4/stat.m4: Likewise.
67270         * m4/lstat.m4: Likewise.
67271         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
67272
67273         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
67274         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
67275
67276 2000-05-26  Jim Meyering  <meyering@lucent.com>
67277
67278         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
67279
67280 2000-05-24  Jim Meyering  <meyering@lucent.com>
67281
67282         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
67283         autoconf requires that.
67284         * m4/lib-check.m4: Likewise.
67285         * m4/jm-macros.m4: Likewise.
67286         * m4/strftime.m4: Likewise.
67287
67288         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
67289         AC_CHECK_DECLS, now that autoconf requires that.
67290
67291 2000-05-22  Jim Meyering  <meyering@lucent.com>
67292
67293         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
67294         * m4/lstat.m4: Likewise.
67295
67296 2000-05-22  Jim Meyering  <meyering@lucent.com>
67297
67298         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
67299
67300 2000-05-20  Jim Meyering  <meyering@lucent.com>
67301
67302         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
67303         (jm_PREREQ): Use it.
67304
67305 2000-05-18  Jim Meyering  <meyering@lucent.com>
67306
67307         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
67308         back, too, since it may have been modified by allocate_entry.
67309         (hash_delete): Rewrite to use neither the assignment operator
67310         nor the comma operator in an if-expression.
67311
67312 2000-05-15  Paul Eggert  <eggert@twinsun.com>
67313
67314         * lib/closeout.c:
67315         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
67316         Remove; no longer needed.
67317         "quotearg.h": Add include.
67318         (file_name): Do not bother to explicitly initialize to NULL; it's less
67319         efficient on some hosts.
67320         (close_stdout_status): Remove test as to whether stdout was already
67321         closed; it breaks for the case "echo x | sort >&-".
67322         Quote file name colons.
67323         Do not assume that _("write error") lacks format strings.
67324
67325 2000-05-15  Jim Meyering  <meyering@lucent.com>
67326
67327         * lib/version-etc.c (version_etc_copyright): Update the copyright
67328         string used in all --version output.
67329
67330 2000-05-14  Jim Meyering  <meyering@lucent.com>
67331
67332         * lib/closeout.c (close_stdout_set_file_name): New function.
67333         (close_stdout_status): Use new file-scoped global.
67334         Return right away if fstat says the stdout file descriptor is invalid.
67335         * lib/closeout.h (close_stdout_set_file_name): Declare.
67336
67337 2000-05-10  Jim Meyering  <meyering@lucent.com>
67338
67339         * lib/closeout.c [default_exit_status]: New file-scoped variable.
67340         (close_stdout_set_status): New function.
67341         * lib/closeout.h (close_stdout_set_status): Declare.
67342
67343 2000-05-09  Jim Meyering  <meyering@lucent.com>
67344
67345         * m4/gettext.m4: Rename this...
67346         * m4/libintl.m4: ...to this.
67347
67348 2000-05-08  Jim Meyering  <meyering@lucent.com>
67349
67350         * lib/long-options.c: Don't include closeout.h.
67351         (parse_long_options): Don't call close_stdout for --version.
67352
67353 2000-05-06  Paul Eggert  <eggert@twinsun.com>
67354
67355         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
67356         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
67357         2.1.3 bug.  This avoids a clash when files like regex.c define
67358         _GNU_SOURCE.
67359
67360 2000-05-06  Jim Meyering  <meyering@lucent.com>
67361
67362         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
67363         (AC_REPLACE_FUNCS): Add strnlen.
67364
67365         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
67366         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
67367
67368         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
67369         AC_SEARCH_LIBS call for nanosleep.
67370         (LIB_NANOSLEEP): Set and AC_SUBST.
67371
67372 2000-05-06  Jim Meyering  <meyering@lucent.com>
67373
67374         * lib/strnlen.c: Undefine __strnlen and strnlen.
67375         [!weak_alias]: Define __strnlen to strnlen.
67376
67377         * lib/atexit.c: New file, from libiberty.
67378
67379 2000-05-06  Jim Meyering  <meyering@lucent.com>
67380
67381         * lib/closeout.c (close_stdout_status): Also check for errors on the
67382         stderr stream.
67383
67384 2000-05-05  Jim Meyering  <meyering@lucent.com>
67385
67386         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
67387         AC_SEARCH_LIBS call for clock_gettime.
67388         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
67389
67390         * m4/search-libs.m4: Update from autoconf.
67391
67392         su doesn't work on Solaris 2.6.
67393         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
67394         <shadow.h>.  Reported by Dragos Harabor.
67395
67396 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
67397
67398         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
67399         memcpy instead of xmalloc, xrealloc, path_concat.
67400         (locale_charset): Treat empty environment variables as absent.
67401         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
67402
67403 2000-05-04  Jim Meyering  <meyering@lucent.com>
67404
67405         * lib/getopt.c: Update from glibc.
67406         * lib/obstack.c: Likewise.
67407         * lib/obstack.h: Likewise.
67408         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
67409         file
67410
67411         * lib/regex.h: Likewise.
67412         * lib/strndup.c: Likewise.
67413         * lib/strnlen.c: New file, from glibc.
67414
67415 2000-05-03  Jim Meyering  <meyering@lucent.com>
67416
67417         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
67418
67419 2000-05-02  Paul Eggert  <eggert@twinsun.com>
67420
67421         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
67422         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
67423         compile-time test, rather than inspecting host and OS, to
67424         decide whether to define _LARGEFILE_SOURCE.
67425
67426 2000-05-01  Jim Meyering  <meyering@lucent.com>
67427
67428         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
67429
67430         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
67431         Based on a patch from Bruno Haible.
67432
67433 2000-05-01  Jim Meyering  <meyering@lucent.com>
67434
67435         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
67436
67437 2000-04-29  Jim Meyering  <meyering@lucent.com>
67438
67439         * lib/path-concat.c: Declare strdup only if it's not defined.
67440         * lib/canon-host.c: Likewise.
67441
67442 2000-04-28  Jim Meyering  <meyering@lucent.com>
67443
67444         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
67445         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
67446         is included first, then limits.h is included by locale.h by libintl.h.
67447         From John David Anglin.
67448
67449 2000-04-25  Jim Meyering  <meyering@lucent.com>
67450
67451         * lib/makepath.c (S_IRWXUGO): Define.
67452         (make_path): Always perform explicit chmod if MODE specifies any
67453         of the `special' permission bits.  Prompted by a bug report against
67454         install from Mate Wierdl and Joost van Baal.
67455
67456 2000-04-18  Jim Meyering  <meyering@lucent.com>
67457
67458         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
67459         (jm_PREREQ): Use it.
67460
67461 2000-04-18  Jim Meyering  <meyering@lucent.com>
67462
67463         * lib/README: New file.
67464
67465         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
67466         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
67467
67468 2000-04-17  Jim Meyering  <meyering@lucent.com>
67469
67470         Get it right :-)
67471         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
67472         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
67473         Suggestion from Akim Demaille.
67474
67475 2000-04-17  Jim Meyering  <meyering@lucent.com>
67476
67477         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
67478         the definition of it to rpl_strftime also defined-away the system's
67479         declaration.
67480
67481 2000-04-15  Jim Meyering  <meyering@lucent.com>
67482
67483         Use `C' to denote so-called `contiguous' files, the same way
67484         that tar does.
67485         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
67486         (ftypelet): Use S_ISCTG.
67487         From Michael Deutschmann.
67488
67489 2000-04-14  Jim Meyering  <meyering@lucent.com>
67490
67491         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
67492         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
67493         clobbered.
67494
67495 2000-04-14  Jim Meyering  <meyering@lucent.com>
67496
67497         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
67498
67499 2000-04-13  Jim Meyering  <meyering@lucent.com>
67500
67501         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
67502         AH_VERBATIM to insert required #ifndef into config.h.in.
67503         Suggestion from Akim Demaille.
67504
67505 2000-04-12  Jim Meyering  <meyering@lucent.com>
67506
67507         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
67508         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
67509         Christian Krackowizer.
67510
67511         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
67512         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
67513         (AC_SYS_LARGEFILE): Require.
67514         (AM_C_PROTOTYPES): Require.
67515
67516 2000-04-08  Jim Meyering  <meyering@lucent.com>
67517
67518         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
67519         names don't conflict.  Reported by Eli Zaretskii.
67520
67521 2000-04-07  Jim Meyering  <meyering@lucent.com>
67522
67523         * lib/putenv.c: Move inclusion of errno.h so it follows that of
67524         sys/types.h, to work around system header problems on AIX 3.2.5.
67525         From Bruno Haible.
67526
67527 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
67528
67529         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
67530         bug.  Deal with the different error behavior of Irix iconv.
67531
67532 2000-04-05  Paul Eggert  <eggert@twinsun.com>
67533
67534         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
67535         IRIX if the installer said otherwise.
67536
67537 2000-04-05  Jim Meyering  <meyering@lucent.com>
67538
67539         Portability tweaks required for ultrix4.3.
67540         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
67541         (jm_CHECK_DECLS): Add getutent to the list of functions.
67542         (_jm_DECL_HEADERS): Add utmpx.h.
67543         From John David Anglin.
67544
67545         * m4/strftime.m4: Back out the 2000-04-02 change.
67546         Instead of that change, simply undefine putenv in the test program.
67547
67548 2000-04-05  Jim Meyering  <meyering@lucent.com>
67549
67550         Portability tweaks required for ultrix4.3.
67551         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
67552         getutent.
67553         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
67554         * lib/canon-host.c: Declare strdup.
67555         * lib/path-concat.c: Likewise.
67556         From John David Anglin.
67557
67558 2000-04-04  Jim Meyering  <meyering@lucent.com>
67559
67560         Be more DOS 8.3-friendly.
67561         * lib/ref-add.sin: Renamed from ref-add.sed.in.
67562         * lib/ref-del.sin: Renamed from ref-del.sed.in.
67563         * lib/Makefile.am: Reflect renaming.
67564         Reported by Eli Zaretskii.
67565
67566         Use a temporary file name that won't clash with `charset.alias'
67567         in the DOS 8.3 name space.
67568         * lib/Makefile.am (charset_tmp): Define.
67569         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
67570         (uninstall-local): Likewise.
67571         Reported by Eli Zaretskii.
67572
67573 2000-04-03  Jim Meyering  <meyering@lucent.com>
67574
67575         * m4/gettext.m4: Fix typo in comment.
67576
67577         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
67578         textutils/configure.in).  Suggestion from Paul Eggert.
67579         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
67580
67581 2000-04-02  Paul Eggert  <eggert@twinsun.com>
67582
67583         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
67584         variable in the shell rather than using putenv, which isn't
67585         portable.  This avoids the configure-time inter-test dependency
67586         on the potentially-renamed putenv function.
67587
67588 2000-03-30  Paul Eggert  <eggert@twinsun.com>
67589
67590         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
67591         before checking struct stat.st_blksize, so that
67592         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
67593
67594 2000-03-29  Paul Eggert  <eggert@twinsun.com>
67595
67596         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
67597         since strftime.c uses HAVE_STRFTIME to decide whether to use
67598         the underlying strftime.
67599
67600 2000-03-29  Paul Eggert  <eggert@twinsun.com>
67601
67602         * lib/time/strftime.c (my_strftime): Make sure we call the system
67603         strftime, not ourselves, when invoking the underlying strftime.
67604
67605 2000-03-24  Jim Meyering  <meyering@lucent.com>
67606
67607         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
67608         (charset_alias): Define.
67609         (install-exec-local): Factor out common code.
67610         (uninstall-local): Split lines longer than 80.
67611         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
67612         (SUFFIXES): Define.
67613         (.sed.in.sed): New rule.  Don't redirect directly to $@.
67614         (CLEANFILES): Add ref-add.sed and ref-del.sed.
67615
67616 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
67617
67618         * lib/config.charset: Output a line containing "Packages using this
67619         file".
67620         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
67621         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
67622         ref-del.sed): New rules.
67623
67624 2000-03-17  Jim Meyering  <meyering@lucent.com>
67625
67626         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
67627         Otherwise, include <strings.h>
67628
67629 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
67630
67631         * lib/unicodeio.c (utf8_wctomb): New function.
67632         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
67633         format instead of in UCS-4 with platform dependent endianness.
67634
67635 2000-03-10  Jim Meyering  <meyering@lucent.com>
67636
67637         * m4/lib-check.m4: Look for getspnam in -lgen, too.
67638         From Marco Franzen.
67639
67640 2000-03-07  Paul Eggert  <eggert@twinsun.com>
67641
67642         * lib/savedir.c (savedir): Work even if directory size is
67643         negative; this can happen with some screwy NFS configurations.
67644
67645 2000-03-06  Jim Meyering  <meyering@lucent.com>
67646
67647         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
67648         if it's NULL (because we ran out of memory).  From Bruno Haible.
67649
67650 2000-03-05  Jim Meyering  <meyering@lucent.com>
67651
67652         * lib/localcharset.c ("path-concat.h"): Include.
67653         (get_charset_aliases): Use path_concat instead of ANSI string
67654         concatenation.
67655
67656         * lib/unicodeio.h (PARAMS): Define.
67657         Use it to guard prototype.
67658
67659 2000-03-04  Jim Meyering  <meyering@lucent.com>
67660
67661         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
67662         for lib/localcharset.c.
67663
67664 2000-03-04  Jim Meyering  <meyering@lucent.com>
67665
67666         * lib/Makefile.am (install-exec-local): Create $(libdir) before
67667         installing into it.
67668         (uninstall-local): Uncomment this rule so `make distcheck' works
67669         once again.
67670
67671         * lib/unicodeio.c (<errno.h>): Include it.
67672         (errno): Declare if not defined.
67673
67674         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
67675
67676         * lib/config.charset: New version, incorporating remarks from a linux
67677         i18n mailing list.  From Bruno Haible.
67678
67679 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
67680
67681         * m4/codeset.m4: New file.
67682         * m4/iconv.m4: New file.
67683         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
67684
67685 2000-03-03  Jim Meyering  <meyering@lucent.com>
67686
67687         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
67688
67689 2000-03-02  Jim Meyering  <meyering@lucent.com>
67690
67691         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
67692         the messages come out on separate lines.
67693
67694         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
67695         rather than jm_CHECK_DECLARATIONS.
67696         * m4/decl.m4: Remove now-unused file.
67697
67698         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
67699         geteuid.
67700
67701 2000-03-02  Jim Meyering  <meyering@lucent.com>
67702
67703         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
67704
67705 2000-03-01  Jim Meyering  <meyering@lucent.com>
67706
67707         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
67708         * lib/unicodeio.c: Likewise.
67709
67710 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
67711
67712         * lib/config.charset: New file.
67713         * lib/localcharset.c: New file.
67714         * lib/unicodeio.h, lib/unicodeio.c: New files.
67715         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
67716         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
67717         (noinst_HEADERS): Add unicodeio.h.
67718         (all-local, install-exec-local, charset.alias): New targets.
67719
67720 2000-02-28  Paul Eggert  <eggert@twinsun.com>
67721
67722         * lib/quotearg.c (ALERT_CHAR): New macro.
67723         (quotearg_buffer_restyled): Use it.
67724
67725 2000-02-27  Jim Meyering  <meyering@lucent.com>
67726
67727         * m4/check-decl.m4: Add getenv to the list.
67728
67729 2000-02-27  Jim Meyering  <meyering@lucent.com>
67730
67731         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
67732         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
67733
67734         * lib/backupfile.c: Guard inclusion of stdlib.h with
67735         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
67736         Declare malloc if needed.
67737
67738         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
67739         `#ifndef HAVE_DECL..'
67740         now that autoconf always defines the HAVE_DECL_ symbols.
67741         * lib/human.c: Likewise.
67742         * lib/same.c: Likewise.
67743         * lib/strtoumax.c: Likewise.
67744
67745         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
67746         declaration check was not run.
67747         * lib/hash.c: Likewise.
67748         * lib/human.c: Likewise.
67749         * lib/same.c: Likewise.
67750         * lib/strtoumax.c: Likewise.
67751
67752         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
67753         `.', then first look up the entire `.'-containing string as a login
67754         name.
67755
67756 2000-02-23  Jim Meyering  <meyering@lucent.com>
67757
67758         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
67759         in place of my hack.
67760
67761 2000-02-18  Paul Eggert  <eggert@twinsun.com>
67762
67763         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
67764         (textint): New typedef.
67765         (parser_control): Member year changed from int to textint.
67766         All uses changed.
67767         (YYSTYPE): Removed; replaced by %union with int and textint members.
67768         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
67769         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
67770         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
67771         (tSNUMBER, tUNUMBER): Now of type <textintval>.
67772         (date, number, to_year): Use width of number in digits, not its value,
67773         to determine whether it's a 2-digit year, or a 2-digit time.
67774         (yylex): Store number of digits of numeric tokens.
67775         Reported by John Kendall.
67776
67777         (parser_control): Changed from struct parser_control to typedef (for
67778         consistency).  All uses changed.
67779
67780         (tID): Removed; not used.
67781         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
67782
67783 2000-02-14  Paul Eggert  <eggert@twinsun.com>
67784
67785         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
67786         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
67787
67788 2000-02-12  Jim Meyering  <meyering@lucent.com>
67789
67790         * lib/userspec.c (ISDIGIT): Define it.
67791         (isdigit): Remove definition.
67792         (is_number): Use ISDIGIT, not isdigit.
67793         <libintl.h>: Include.
67794         (_ and N_): Define.
67795         (parse_user_spec): Mark translatable strings.
67796
67797 2000-02-10  Jim Meyering  <meyering@lucent.com>
67798
67799         With these changes, nanosleep.[ch] are finally enough like the other
67800         lib/* replacement files to compile on a few more losing systems.
67801
67802         * lib/nanosleep.h: Don't include config.h.
67803         Remove prototype from declaration of nanosleep.
67804         (PARAMS): Remove now-unneeded definition.
67805         * lib/nanosleep.c: #undef nanosleep.
67806         (rpl_nanosleep): Rename from nanosleep.
67807
67808 2000-02-10  Jim Meyering  <meyering@lucent.com>
67809
67810         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
67811         gnu_nanosleep to rpl_nanosleep.
67812
67813 2000-02-09  Jim Meyering  <meyering@lucent.com>
67814
67815         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
67816         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
67817
67818 2000-02-08  Akim Demaille  <akim@epita.fr>
67819
67820         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
67821         `[' and `]' and remove uses of `changequote'.
67822         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
67823         (AC_SYS_LARGEFILE): Likewise.
67824         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
67825         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
67826         of changequote.
67827         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
67828         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
67829         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
67830         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
67831
67832 2000-02-05  Jim Meyering  <meyering@lucent.com>
67833
67834         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
67835         Remove explicit use of AC_HEADER_TIME.  It is required by
67836         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
67837         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
67838         in autoconf whereby the expansion of the latter ended up preceding
67839         the expansion of its prerequisite, AC_HEADER_TIME.
67840         Reported by Volker Borchert.
67841
67842 2000-02-03  Jim Meyering  <meyering@lucent.com>
67843
67844         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
67845
67846 2000-02-03  Jim Meyering  <meyering@lucent.com>
67847
67848         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
67849         rather than with `#if HAVE_UTMPNAME'.
67850
67851 2000-02-02  Jim Meyering  <meyering@lucent.com>
67852
67853         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
67854         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
67855         Reported by Eli Zaretskii.
67856
67857 2000-02-01  Jim Meyering  <meyering@lucent.com>
67858
67859         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
67860
67861 2000-01-31  Jim Meyering  <meyering@lucent.com>
67862
67863         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
67864         functions.  Add the time.h and sys/time.h headers along with the
67865         AC_REQUIRE'ment of AC_HEADER_TIME.
67866
67867 2000-01-31  Jim Meyering  <meyering@lucent.com>
67868
67869         * lib/nanosleep.h (nanosleep): Guard declaration with
67870         `#if ! HAVE_DECL_NANOSLEEP'.
67871         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
67872         the declaration in that vendor's sys/timers.h.
67873         Reported by Christian Krackowizer.
67874
67875         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
67876         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
67877         (ISPRINT): Likewise.
67878         Reported by Tom Tromey.
67879
67880 2000-01-30  Jim Meyering  <meyering@lucent.com>
67881
67882         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
67883
67884         * m4/prereq.m4 (utmp_includes): Define.
67885         Check for ut_user and ut_name members in both struct utmpx
67886         and struct utmp.
67887
67888 2000-01-30  Jim Meyering  <meyering@lucent.com>
67889
67890         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
67891         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
67892         header files where only utmpx.ut_user is declared.
67893
67894         * lib/readutmp.h (UT_USER): Define.
67895
67896 2000-01-29  Jim Meyering  <meyering@lucent.com>
67897
67898         * m4/lib-check.m4: New file containing library-related checks from
67899         fileutils and sh-utils (textutils had none).
67900
67901 2000-01-28  Jim Meyering  <meyering@lucent.com>
67902
67903         * m4/perl.m4: Change format of warning message to look more like that
67904         from the missing script.  Suggestion from François Pinard.
67905
67906 2000-01-25  Jim Meyering  <meyering@lucent.com>
67907
67908         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
67909         well as time.h in the compile check.
67910         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
67911         Fix typo in cross-compiling case: s/yes/no/.
67912
67913 2000-01-23  Jim Meyering  <meyering@lucent.com>
67914
67915         * m4/jm-macros.m4: Move df-related tests here from
67916         fileutils/configure.in
67917
67918         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
67919         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
67920
67921         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
67922         s/space/ac_fsusage_space/.
67923         (jm_FILE_SYSTEM_USAGE): Take two parameters.
67924
67925         * m4/ftruncate.m4: New file (derived from part of
67926         fileutils/configure.in).
67927         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
67928         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
67929
67930         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
67931         AC_SUBST these here, rather than just in sh-util/configure.in, so
67932         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
67933         all the same.
67934         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
67935         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
67936         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
67937         (AC_SUBST(POW_LIBM)): Likewise.
67938         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
67939
67940 2000-01-23  Jim Meyering  <meyering@lucent.com>
67941
67942         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
67943         obstack.c.
67944
67945 2000-01-22  Jim Meyering  <meyering@lucent.com>
67946
67947         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
67948
67949         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
67950
67951         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
67952         configure.in
67953         (AC_CHECK_HEADERS): Likewise for sh-utils.
67954         (AC_CHECK_HEADERS): Likewise for textutils.
67955         Merge the three lists of headers.
67956
67957         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
67958         from fileutils' configure.in.
67959
67960         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
67961         code. Moved tests into their own function (_jm_DECL_HEADERS) in
67962         check-decl.m4.
67963
67964         * m4/check-decl.m4: Use #if rather than #ifdef.
67965         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
67966         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
67967         (_jm_DECL_HEADERS): Define new function.
67968         (jm_CHECK_DECLARATIONS): Require it.
67969
67970 2000-01-22  Jim Meyering  <meyering@lucent.com>
67971
67972         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
67973         [! HAVE_DECL_STRTOULL]: Declare strtoull.
67974         Required for some AIX systems.  Reported by Christian Krackowizer.
67975         [TESTING] (main): New function.
67976
67977         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
67978         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
67979         letters.
67980
67981         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
67982         iswprint.
67983
67984         * lib/strverscmp.c (ISDIGIT): Define.
67985         (strverscmp): Use ISDIGIT, not isdigit.
67986
67987 2000-01-19  Jim Meyering  <meyering@lucent.com>
67988
67989         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
67990         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
67991         defines `struct timespec' in <sys/time.h>
67992
67993         * m4/c-bs-a.m4: Remove uses of changequote altogether.
67994         Thanks to Akim for explaining.
67995
67996 2000-01-17  Paul Eggert  <eggert@twinsun.com>
67997
67998         * lib/nanosleep.c (nanosleep):
67999         Don't use SA_INTERRUPT to decide whether to call sigaction, as
68000         POSIX.1 doesn't require SA_INTERRUPT and some systems
68001         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
68002         it's been part of POSIX.1 since day 1 (in 1988).
68003
68004 2000-01-17  Jim Meyering  <meyering@lucent.com>
68005
68006         * lib/interlock: Remove unused file.  Reported by François Pinard.
68007
68008 2000-01-16  Paul Eggert  <eggert@twinsun.com>
68009
68010         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
68011         alert, backslash, formfeed, and vertical tab unnecessarily in
68012         shell quoting style.
68013
68014 2000-01-16  Jim Meyering  <meyering@lucent.com>
68015
68016         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
68017         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
68018         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
68019         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
68020
68021 2000-01-16  Jim Meyering  <meyering@lucent.com>
68022
68023         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
68024         because the latter didn't work.
68025
68026 2000-01-15  Jim Meyering  <meyering@lucent.com>
68027
68028         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
68029         (AC_REPLACE_FUNCS): Add memcpy and memset.
68030         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
68031         Add strpbrk.
68032         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
68033
68034 2000-01-12  Jim Meyering  <meyering@lucent.com>
68035
68036         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
68037         (jm_PREREQ): Use it.
68038         (jm_PREREQ_READUTMP): New macro.
68039         (jm_PREREQ): Use it.
68040
68041 2000-01-11  Paul Eggert  <eggert@twinsun.com>
68042
68043         Quote multibyte characters correctly.
68044         * m4/c-bs-a.m4: New file.
68045         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
68046         (jm_PREREQ): Use it.
68047
68048 2000-01-11  Paul Eggert  <eggert@twinsun.com>
68049
68050         * m4/uintmax_t.m4: Port to autoconf 2.13.
68051
68052 2000-01-08  Jim Meyering  <meyering@ascend.com>
68053
68054         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
68055         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
68056
68057 2000-01-04  Jim Meyering  <meyering@ascend.com>
68058
68059         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
68060         jm_STRUCT_DIRENT_D_TYPE.
68061         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
68062         jm_STRUCT_DIRENT_D_INO.
68063         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
68064         jm_STRUCT_UTIMBUF.
68065         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
68066         renamings.
68067         * m4/utime.m4: Likewise.
68068
68069         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
68070         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
68071
68072 2000-01-03  Paul Eggert  <eggert@twinsun.com>
68073
68074         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
68075         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
68076
68077 2000-01-02  Jim Meyering  <meyering@ascend.com>
68078
68079         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
68080         remember if this is necessary.
68081
68082 1999-12-26  Jim Meyering  <meyering@ascend.com>
68083
68084         * m4/jm-macros.m4: Use it here.
68085         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
68086
68087 1999-12-23  Jim Meyering  <meyering@ascend.com>
68088
68089         * m4/jm-macros.m4: Check for clock_gettime (moved from
68090         fileutils/configure.in)
68091         Check for gettimeofday.
68092
68093 1999-12-20  Jim Meyering  <meyering@ascend.com>
68094
68095         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
68096         autoconf-2.14a-1999-12-20.
68097
68098 1999-12-19  Jim Meyering  <meyering@ascend.com>
68099
68100         * m4/lstat-slash.m4: New file.
68101         * m4/jm-macros.m4: Use the new macro:
68102         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
68103
68104 1999-12-07  Jim Meyering  <meyering@ascend.com>
68105
68106         * m4/perl.m4: Require that File::Compare be available, too.
68107         Too many systems seem to lack it.
68108
68109         * m4/strftime.m4: Add checks for most of the cpp macros tested in
68110         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
68111
68112 1999-11-18  Paul Eggert  <eggert@twinsun.com>
68113
68114         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
68115         problem with the QNX 4.25 shell, which doesn't propagate exit
68116         status of failed commands inside shell assignments.
68117
68118 1999-11-17  Jim Meyering  <meyering@ascend.com>
68119
68120         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
68121
68122 1999-11-07  Jim Meyering  <meyering@ascend.com>
68123
68124         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
68125
68126 1999-11-06  Jim Meyering  <meyering@ascend.com>
68127
68128         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
68129         * m4/jm-macros.m4 (jm_MACROS): Use it here.
68130
68131 1999-11-05  Jim Meyering  <meyering@ascend.com>
68132
68133         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
68134         configure.in of textutils, fileutils, and sh-utils into this one
68135         (shared between those packages) file.
68136         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
68137         AC_STRUCT_ST_BLKSIZE.
68138
68139 1999-11-03  Jim Meyering  <meyering@ascend.com>
68140
68141         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
68142         of AC_CHECK_TYPE checks includes unistd.h.
68143         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
68144         Suggestion from Akim Demaille.
68145
68146 1999-10-30  Jim Meyering  <meyering@ascend.com>
68147
68148         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
68149         m4-quoted string.
68150         * m4/ls-mntd-fs.m4: Likewise.
68151         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
68152         * m4/jm-winsz1.m4: Likewise.
68153
68154         * m4/const.m4: Remove file, since the fix made it into the experimental
68155         version of autoconf.
68156         * m4/mktime.m4: Likewise.
68157
68158         * m4/check-type.m4: Remove file, now that the latest version of
68159         AC_CHECK_TYPE takes a third arg to specify additional #includes.
68160
68161         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
68162         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
68163         AC_CHECK_TYPE.
68164
68165 1999-10-04  Jim Meyering  <meyering@ascend.com>
68166
68167         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
68168
68169 1999-09-22  Paul Eggert  <eggert@twinsun.com>
68170
68171         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
68172         2.95.1 bug with HP-UX 10.20.
68173
68174 1999-09-17  Jim Meyering  <meyering@ascend.com>
68175
68176         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
68177         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
68178         due to missing strdup (against sh-utils-2.0).
68179
68180 1999-08-29  Jim Meyering  <meyering@ascend.com>
68181
68182         * m4/jm-macros.m4: Require jm_BISON.
68183         * m4/bison.m4: New file.
68184
68185 1999-08-17  Paul Eggert  <eggert@twinsun.com>
68186
68187         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
68188         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
68189
68190 1999-08-05  Jim Meyering  <meyering@ascend.com>
68191
68192         * m4/getline.m4: Rename test file from conftestdata to conftest.data
68193         to avoid conflicts with `conftest' on 8+3 filesystems.
68194         Suggestion from Eli Zaretskii.
68195
68196 1999-08-04  Jim Meyering  <meyering@ascend.com>
68197
68198         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
68199         fileutils and sh-utils (textutils's getline test was inadequate).
68200         (AM_FUNC_GETLINE): Run this test.
68201         (AC_CHECK_FUNCS): Check for getdelim.
68202         Reported by Bob Proulx.
68203
68204 1999-08-02  Jim Meyering  <meyering@ascend.com>
68205
68206         * m4/jm-macros.m4: Add a comment.
68207
68208 1999-08-01  Paul Eggert  <eggert@twinsun.com>
68209
68210         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
68211         <inttypes.h> defines strtoumax as a macro (and not as a
68212         function).
68213
68214 1999-08-01  Paul Eggert  <eggert@twinsun.com>
68215
68216         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
68217         that we can shift, multiply and divide unsigned long long
68218         values; Ultrix cc can't do it.
68219
68220 1999-08-01  Paul Eggert  <eggert@twinsun.com>
68221
68222         * m4/mktime.m4: New file, which is a preview of what should appear
68223         in the next public autoconf release.
68224
68225 1999-08-01  Paul Eggert  <eggert@twinsun.com>
68226
68227         * m4/lfs.m4: Remove this file.
68228         * m4/largefile.m4: New file.  It contains the old contents of
68229         lfs.m4, except that all names with prefix AC_LFS have been
68230         changed to use the prefix AC_SYS_LARGEFILE instead, to be
68231         compatible with future autoconf versions.  Also, some minor m4
68232         quoting problems have been fixed.
68233
68234 1999-08-01  Paul Eggert  <eggert@twinsun.com>
68235
68236         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
68237         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
68238         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
68239         and simplify the shell code.
68240
68241 1999-08-01  Jim Meyering  <meyering@ascend.com>
68242
68243         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
68244         m4.
68245
68246 1999-07-20  Jim Meyering  <meyering@ascend.com>
68247
68248         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
68249
68250 1999-07-15  Jim Meyering  <meyering@ascend.com>
68251
68252         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
68253
68254 1999-05-22  Jim Meyering  <meyering@ascend.com>
68255
68256         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
68257
68258 1999-05-20  Jim Meyering  <meyering@ascend.com>
68259
68260         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
68261         Add a colon after each `then' in case $4 is empty.
68262
68263 1999-05-16  Jim Meyering  <meyering@ascend.com>
68264
68265         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
68266
68267 1999-05-10  Jim Meyering  <meyering@ascend.com>
68268
68269         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
68270
68271         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
68272         AC_FUNC_MKTIME.
68273
68274 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
68275
68276         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
68277
68278 1999-05-04  Paul Eggert  <eggert@twinsun.com>
68279
68280         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
68281         not CPPFLAGS, so that linking works correctly in IRIX.
68282
68283 1999-04-30  Paul Eggert  <eggert@twinsun.com>
68284
68285         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
68286
68287 1999-04-20  Paul Eggert  <eggert@twinsun.com>
68288
68289         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
68290         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
68291         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
68292         jm_AC_TYPE_UNSIGNED_LONG_LONG.
68293         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
68294
68295         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
68296
68297 1999-04-20  Jim Meyering  <meyering@ascend.com>
68298
68299         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
68300         AC_REPLACE xstroull if necessary.  From Paul Eggert.
68301         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
68302
68303 1999-04-18  Jim Meyering  <meyering@ascend.com>
68304
68305         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
68306         * m4/jm-macros.m4: Use it.
68307
68308 1999-04-06  Jim Meyering  <meyering@ascend.com>
68309
68310         * m4/strftime.m4: Remove test for %f.
68311
68312 1999-03-29  Jim Meyering  <meyering@ascend.com>
68313
68314         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
68315         superset of the AC_TYPE_* checks in the textutils, fileutils,
68316         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
68317         AC_TYPE_PID_T.
68318
68319 1999-03-28  Jim Meyering  <meyering@ascend.com>
68320
68321         * m4/jm-macros.m4: Define GNU_PACKAGE here.
68322         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
68323         replaced e.g., in the *.sh files of the sh-utils.
68324
68325 1999-03-20  Jim Meyering  <meyering@ascend.com>
68326
68327         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
68328         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
68329         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
68330
68331 1999-03-19  Jim Meyering  <meyering@ascend.com>
68332
68333         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
68334
68335 1999-03-12  Jim Meyering  <meyering@ascend.com>
68336
68337         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
68338
68339 1999-03-07  Jim Meyering  <meyering@ascend.com>
68340
68341         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
68342         declared.
68343
68344 1999-02-17  Jim Meyering  <meyering@ascend.com>
68345
68346         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
68347         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
68348
68349 1999-02-07  Jim Meyering  <meyering@ascend.com>
68350
68351         * m4/group-member.m4: New file -- extracted from sh-utils'
68352         configure.in.
68353
68354         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
68355         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
68356
68357 1999-02-06  Jim Meyering  <meyering@ascend.com>
68358
68359         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
68360         * m4/fnmatch.m4: Likewise.
68361         * m4/getgroups.m4: Likewise.
68362         * m4/lstat.m4: Likewise.
68363         * m4/malloc.m4: Likewise.
68364         * m4/putenv.m4: Likewise.
68365         * m4/realloc.m4: Likewise.
68366         * m4/regex.m4: Likewise.
68367         * m4/stat.m4: Likewise.
68368         * m4/strftime.m4: Likewise.
68369         Suggestion from Alain Magloire.
68370
68371         * m4/chown.m4: Use `.$ac_objext', not `.o'.
68372         * m4/fnmatch.m4: Likewise.
68373         * m4/getgroups.m4: Likewise.
68374         * m4/getline.m4: Likewise.
68375         * m4/lstat.m4: Likewise.
68376         * m4/malloc.m4: Likewise.
68377         * m4/memcmp.m4: Likewise.
68378         * m4/putenv.m4: Likewise.
68379         * m4/realloc.m4: Likewise.
68380         * m4/regex.m4: Likewise.
68381         * m4/stat.m4: Likewise.
68382         * m4/strftime.m4: Likewise.
68383         Suggestion from Alain Magloire.
68384
68385         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
68386         an argument.
68387
68388         * m4/regex.m4: Add a run-time Test for proper operation of
68389         re_compile_pattern.
68390
68391 1999-01-31  Jim Meyering  <meyering@ascend.com>
68392
68393         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
68394
68395 1999-01-30  Jim Meyering  <meyering@ascend.com>
68396
68397         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
68398
68399         * m4/jm-mktime.m4: Make this a wrapper around the official
68400         AM_FUNC_MKTIME rather than my private copy, now that the official one
68401         is up to date.
68402         * m4/mktime.m4: Remove file.
68403
68404         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
68405         * m4/uptime.m4: Likewise.
68406         * m4/uintmax_t.m4: Likewise.
68407
68408 1999-01-28  Jim Meyering  <meyering@ascend.com>
68409
68410         * m4/jm-macros.m4: Use jm_AFS.
68411         * m4/afs.m4: New file (from fileutils' configure.in).
68412
68413         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
68414         * m4/chown.m4: Likewise.
68415         * m4/d-ino.m4: Likewise.
68416         * m4/d-type.m4: Likewise.
68417         * m4/fnmatch.m4: Likewise.
68418         * m4/getgroups.m4: Likewise.
68419         * m4/gettext.m4: Likewise.
68420         * m4/jm-mktime.m4: Likewise.
68421         * m4/jm-winsz2.m4: Likewise.
68422         * m4/lcmessage.m4: Likewise.
68423         * m4/ls-mntd-fs.m4: Likewise.
68424         * m4/malloc.m4: Likewise.
68425         * m4/memcmp.m4: Likewise.
68426         * m4/putenv.m4: Likewise.
68427         * m4/realloc.m4: Likewise.
68428         * m4/st_mtim.m4: Likewise.
68429         * m4/strftime.m4: Likewise.
68430
68431 1999-01-16  Jim Meyering  <meyering@ascend.com>
68432
68433         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
68434         (ARGMATCH_DIE_DECL): Define.
68435
68436 1999-01-12  Jim Meyering  <meyering@ascend.com>
68437
68438         * m4/Makefile.am.in: Rewrite to avoid using fmt.
68439         Reported by Lars Hecking.
68440
68441 1999-01-10  Jim Meyering  <meyering@ascend.com>
68442
68443         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
68444         gross kludge.
68445         * m4/inttypes_h.m4: Likewise.
68446         * m4/lstat.m4: Likewise.
68447         * m4/malloc.m4: Likewise.
68448         * m4/readdir.m4: Likewise.
68449         * m4/realloc.m4: Likewise.
68450         * m4/st_dm_mode.m4: Likewise.
68451         * m4/stat.m4: Likewise.
68452         * m4/utimbuf.m4: Likewise.
68453         * m4/utimes.m4: Likewise.
68454
68455         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
68456         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
68457         comments in config.h.in are meaningful.
68458
68459         * m4/jm-macros.m4: Require autoconf-2.13 here.
68460
68461         * m4/regex.m4: By default, don't use the included regex.c on systems
68462         with glibc 2.  Suggestion from Uli Drepper.
68463
68464 1999-01-02  Jim Meyering  <meyering@ascend.com>
68465
68466         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
68467
68468 1998-12-18  Jim Meyering  <meyering@ascend.com>
68469
68470         * m4/Makefile.am.in (Makefile.am): Simplify rule.
68471         Based on a suggestion from Lars Hecking.
68472
68473 1998-11-16  Paul Eggert  <eggert@twinsun.com>
68474
68475         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
68476
68477 1998-11-16  Jim Meyering  <meyering@ascend.com>
68478
68479         * m4/lfs.m4: Double-quote the `uname...` expression.
68480
68481 1998-11-14  Jim Meyering  <meyering@ascend.com>
68482
68483         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
68484         * m4/stat.m4: Likewise.
68485
68486 1998-11-03  Jim Meyering  <meyering@ascend.com>
68487
68488         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
68489         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
68490
68491 1998-10-18  Jim Meyering  <meyering@ascend.com>
68492
68493         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
68494
68495 1998-10-17  Jim Meyering  <meyering@ascend.com>
68496
68497         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
68498         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
68499         calls for those previously hard-coded headers.  Instead, take a new
68500         parameter.
68501         (jm_CHECK_DECLARATIONS): Reflect interface change.
68502         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
68503         (jm_CHECK_DECL_LOCALTIME_R): New macro.
68504
68505         * m4/mktime.m4: Test for spring-forward gap before long-running test.
68506
68507 1998-10-14  Jim Meyering  <meyering@ascend.com>
68508
68509         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
68510         instead of "TZ=America/Vancouver".  From Paul Eggert.
68511
68512 1998-10-11  Jim Meyering  <meyering@ascend.com>
68513
68514         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
68515         This adds a test for a recently added compatibility fix for mktime.c.
68516         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
68517
68518 1998-09-27  Jim Meyering  <meyering@ascend.com>
68519
68520         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
68521
68522         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
68523         ../configure.in, including a change from Gordon Matzigkeit to allow
68524         cross-compiling for the Hurd.
68525
68526         * m4/glibc.m4: New file/macro to test for the GNU C Library
68527         versions 1 and 2.  From Gordon Matzigkeit.
68528         Indent.
68529
68530 1998-09-21  Jim Meyering  <meyering@ascend.com>
68531
68532         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
68533
68534 1998-08-18  Paul Eggert  <eggert@twinsun.com>
68535
68536         Port nanosecond-resolution times to UnixWare 2.1.2 and
68537         pedantic Solaris 2.6.
68538
68539         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
68540         AC_STRUCT_ST_MTIM.
68541         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
68542         Generate name of ns member, instead of just 1 or undef.
68543         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
68544
68545 1998-08-15  Jim Meyering  <meyering@ascend.com>
68546
68547         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
68548         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
68549         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
68550         instead of jm_TYPE_SSIZE_T.
68551
68552 1998-08-12  Jim Meyering  <meyering@ascend.com>
68553
68554         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
68555
68556 1998-08-02  Jim Meyering  <meyering@ascend.com>
68557
68558         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
68559         in acconfig.h manually.
68560
68561 1998-07-31  Paul Eggert  <eggert@twinsun.com>
68562
68563         * m4/st_mtim.m4: New file.
68564
68565 1998-07-28  Jim Meyering  <meyering@ascend.com>
68566
68567         * m4/utimes.m4: Undef stat.
68568
68569 1998-07-25  Jim Meyering  <meyering@ascend.com>
68570
68571         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
68572         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
68573
68574 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
68575
68576         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
68577         uid and gid actually remain unchanged.
68578
68579 1998-07-07  Jim Meyering  <meyering@ascend.com>
68580
68581         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
68582
68583 1998-07-04  Jim Meyering  <meyering@ascend.com>
68584
68585         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
68586         to prove that this macro can be used in packages without regex.c.
68587
68588 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
68589
68590         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
68591         is to be used.
68592
68593 1998-07-03  Jim Meyering  <meyering@ascend.com>
68594
68595         * m4/gettext.m4: Add -lintl if it's found to be necessary.
68596
68597         * m4/gettext.m4: New file -- from gettext-0.10.35.
68598         * m4/lcmessage.m4: Likewise.
68599         * m4/progtest.m4: Likewise.
68600
68601         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
68602         * m4/jm-macros.m4: Require the new macro.
68603
68604 1998-06-29  Jim Meyering  <meyering@ascend.com>
68605
68606         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
68607         for the definition of NGROUPS (used in a system header included
68608         by sys/mount.h).
68609
68610 1998-06-28  Jim Meyering  <meyering@ascend.com>
68611
68612         * m4/ls-mntd-fs.m4: New file.
68613         * m4/fstypename.m4: New file.
68614
68615         * m4/jm-macros.m4: Require the new macro.
68616         * m4/jm-glibc-io.m4: New file.
68617
68618 1998-05-19  Jim Meyering  <meyering@ascend.com>
68619
68620         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
68621         * m4/lchown.m4: New file.
68622
68623         * m4/Makefile.am.in: New file.
68624         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
68625
68626 1998-05-14  Jim Meyering  <meyering@ascend.com>
68627
68628         * m4/Makefile.am (EXTRA_DIST): Add them.
68629         * m4/jm-macros.m4: New file.
68630         * m4/utimbuf.m4: New file.
68631
68632 1998-05-12  Jim Meyering  <meyering@ascend.com>
68633
68634         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
68635
68636 1998-05-11  Jim Meyering  <meyering@ascend.com>
68637
68638         * m4/isc-posix.m4: New file.
68639
68640 1998-05-10  Jim Meyering  <meyering@ascend.com>
68641
68642         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
68643
68644 1998-05-09  Jim Meyering  <meyering@ascend.com>
68645
68646         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
68647         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
68648         with automake.
68649
68650         * m4/ssize_t.m4: New file.
68651         * m4/mktime.m4: Remove file -- the new automake has this now.
68652
68653 1998-04-26  Jim Meyering  <meyering@ascend.com>
68654
68655         * m4/assert.m4: New file.
68656         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
68657
68658 1998-04-05  Jim Meyering  <meyering@ascend.com>
68659
68660         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
68661         (jm_PREREQ): Use it here.
68662
68663 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
68664
68665         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
68666         in acconfig.h.
68667
68668 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
68669
68670         * m4/prereq.m4: New file.
68671         * m4/error.m4: New file.
68672         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
68673
68674 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
68675
68676         * m4/getline.m4: Don't set am_cv_func_working_getline before the
68677         cache-check for the same variable -- that defeated the purpose of
68678         the test; the test program was never run.  This was a problem only
68679         on systems with losing getline functions -- HP-UX 10.20 is one.
68680         Reported by Bjorn Helgaas.
68681
68682 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
68683
68684         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
68685
68686 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
68687
68688         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
68689
68690         * m4/const.m4: New file.  Use an initializer in this declaration
68691         typedef int charset[2]; const charset x;
68692         Reported by Bob Glickstein.
68693
68694 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
68695
68696         * m4/chown.m4: Fix reversed types on -1 args to chown.
68697         From Kaveh Ghazi.
68698
68699 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
68700
68701         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
68702         Add lseek and memchr.
68703
68704         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
68705         T.E.Dickey <dickey@clark.net> said that some older preprocessors
68706         have a 20-character limit on names.
68707
68708 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
68709
68710         * m4/inttypes_h.m4: New file.
68711         * m4/uintmax_t.m4: New file.
68712         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
68713
68714
68715         -----
68716
68717         Local Variables:
68718         coding: utf-8
68719         End:
68720
68721         Copyright (C) 1997-2010 Free Software Foundation, Inc.
68722
68723         Copying and distribution of this file, with or without
68724         modification, are permitted provided the copyright notice
68725         and this notice are preserved.