8c83dff08de5e275cfc6005bb34416fc10b894a0
[gnulib.git] / ChangeLog
1 2010-07-31  Bruno Haible  <bruno@clisp.org>
2
3         unistr/u8-strchr: Fix several bugs.
4         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
5         the string. When not found, return NULL, not a pointer near the end.
6
7         More tests for unistr/u8-strchr.
8         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
9         that the function does not read past the first occurrence of the byte
10         being searched.
11         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
12         * tests/unistr/test-u16-strchr.c (main): New function.
13         * tests/unistr/test-u32-strchr.c (main): New function.
14
15 2010-07-31  Bruno Haible  <bruno@clisp.org>
16
17         posix-modules: Ignore backup files of documentation files.
18         * posix-modules: grep only through files named *.texi.
19
20 2010-07-31  Bruno Haible  <bruno@clisp.org>
21
22         symlinkat: Fix documentation.
23         * doc/posix-functions/readlinkat.texi: Fix module name.
24
25 2010-07-31  Bruno Haible  <bruno@clisp.org>
26
27         fchownat: Replace also when chown has the trailing slash bug.
28         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
29         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
30         introduced on 2010-04-10.
31         Reported by Rainer Tammer.
32
33 2010-07-31  Bruno Haible  <bruno@clisp.org>
34
35         linkat: Work around AIX 7.1 bug.
36         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
37         whether linkat handles trailing slash correctly. If not, replace linkat
38         and define LINKAT_TRAILING_SLASH_BUG.
39         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
40         check whether (fd1,file1) points to a directory if file1 or file2 ends
41         in a slash. Code taken from lib/link.c.
42         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
43         Reported by Rainer Tammer.
44
45 2010-07-31  Bruno Haible  <bruno@clisp.org>
46
47         Correctly determine whether pow is available in libc on AIX 7 with xlc.
48         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
49         This disables an xlc optimization that was causing wrong test results.
50         Reported by Rainer Tammer.
51
52 2010-07-31  Bruno Haible  <bruno@clisp.org>
53
54         iconv: Work around AIX 6.1..7.1 bug.
55         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
56         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
57         cross-compiling, guess no on all versions of AIX.
58         Reported by Rainer Tammer.
59
60 2010-07-31  Bruno Haible  <bruno@clisp.org>
61
62         readlink: Relax test a bit.
63         * tests/test-readlink.h (test_readlink): Allow different errno value
64         when readlink is called with a file name that ends in / and refers to
65         a file.
66         Suggested by Eric Blake.
67         Reported by Rainer Tammer.
68
69 2010-07-31  Bruno Haible  <bruno@clisp.org>
70
71         copysign: Does not require -lm on glibc systems.
72         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
73         gl_COMMON_DOUBLE_MATHFUNC.
74         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
75
76 2010-07-31  Bruno Haible  <bruno@clisp.org>
77
78         duplocale: Work around AIX 7.1 bug.
79         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
80         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
81         * lib/duplocale.c (rpl_duplocale): Update comment.
82         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
83         Reported by Rainer Tammer.
84
85 2010-07-30  Bruno Haible  <bruno@clisp.org>
86
87         dirfd: Avoid link error on AIX 7.1.
88         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
89         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
90         exist, set REPLACE_DIRFD.
91         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
92         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
93         * doc/posix-functions/dirfd.texi: Update.
94         Reported by Rainer Tammer.
95
96 2010-07-30  Eric Blake  <eblake@redhat.com>
97
98         strtod: next round of AIX fixes
99         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
100         exponent.
101         * tests/test-strtod.c (main): Enhance tests.
102         * doc/posix-functions/strtod.texi (strtod): Document next bug.
103         Reported by Rainer Tammer.
104
105         futimens: fix configure check
106         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
107         Reported by Bruno Haible.
108
109 2010-07-30  Bruno Haible  <bruno@clisp.org>
110
111         getline: Update regarding AIX.
112         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
113         Reported by Rainer Tammer.
114
115 2010-07-30  Bruno Haible  <bruno@clisp.org>
116
117         wcwidth: Drop replacement on AIX 7.
118         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
119         AIX 7.
120         Reported by Rainer Tammer.
121
122 2010-07-30  Bruno Haible  <bruno@clisp.org>
123
124         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
125         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
126         a 'char *'.
127         Reported by Rainer Tammer.
128
129 2010-07-30  Bruno Haible  <bruno@clisp.org>
130
131         unlink: Update regarding AIX.
132         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
133         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
134         Reported by Rainer Tammer.
135
136 2010-07-30  Bruno Haible  <bruno@clisp.org>
137
138         symlink: Update regarding AIX.
139         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
140         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
141         Reported by Rainer Tammer.
142
143 2010-07-30  Bruno Haible  <bruno@clisp.org>
144
145         strndup: Update regarding AIX.
146         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
147         AIX 7.
148         Reported by Rainer Tammer.
149
150 2010-07-30  Bruno Haible  <bruno@clisp.org>
151
152         stat: Update regarding AIX.
153         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
154         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
155         Reported by Rainer Tammer.
156
157 2010-07-30  Bruno Haible  <bruno@clisp.org>
158
159         truncl: Fix autoconf test.
160         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
161         whether truncl works.
162         Reported by Rainer Tammer.
163
164 2010-07-30  Bruno Haible  <bruno@clisp.org>
165
166         round: Update regarding AIX.
167         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
168         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
169         Reported by Rainer Tammer.
170
171 2010-07-30  Bruno Haible  <bruno@clisp.org>
172
173         rename: Update regarding AIX.
174         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
175         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
176         Reported by Rainer Tammer.
177
178 2010-07-30  Bruno Haible  <bruno@clisp.org>
179
180         printf.m4: Update regarding AIX.
181         * m4/printf.m4: Update comments regarding AIX.
182         Reported by Rainer Tammer.
183
184 2010-07-30  Bruno Haible  <bruno@clisp.org>
185
186         iconv: Update regarding AIX.
187         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
188         AIX 7.
189         Reported by Rainer Tammer.
190
191 2010-07-30  Bruno Haible  <bruno@clisp.org>
192
193         getopt: Update regarding AIX.
194         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
195         no on AIX.
196         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
197         Reported by Rainer Tammer.
198
199 2010-07-30  Bruno Haible  <bruno@clisp.org>
200
201         ldexpl; Update regarding AIX.
202         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
203         on AIX 7.
204         Reported by Rainer Tammer.
205
206 2010-07-30  Bruno Haible  <bruno@clisp.org>
207
208         frexpl: Update regarding AIX.
209         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
210         on AIX 7.
211         Reported by Rainer Tammer.
212
213 2010-07-30  Bruno Haible  <bruno@clisp.org>
214
215         open, fopen: Update regarding AIX.
216         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
217         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
218         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
219         * doc/posix-functions/fopen.texi: Likewise.
220         Reported by Rainer Tammer.
221
222 2010-07-30  Bruno Haible  <bruno@clisp.org>
223
224         chown: Update doc regarding AIX.
225         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
226         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
227         Reported by Rainer Tammer.
228
229 2010-07-30  Eric Blake  <eblake@redhat.com>
230
231         strtod: fix bug in replacement function on AIX
232         * lib/strtod.c (strtod): Special case broken "0x" parse in
233         underlying strtod.
234         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
235         * doc/posix-functions/strtod.texi (strtod): Likewise.
236         Reported by Rainer Tammer.
237
238 2010-07-30  Bruno Haible  <bruno@clisp.org>
239
240         mbrlen: Fix cross-compilation guess for AIX.
241         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
242         guess. Leftover from 2008-12-22.
243
244 2010-07-30  Bruno Haible  <bruno@clisp.org>
245
246         mbrtowc: Fix cross-compilation guess for AIX.
247         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
248         guess. Leftover from 2008-12-21.
249
250 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
251
252         init.sh: work around trap limitation of some shells
253         * tests/init.sh (setup_): Move exit trap outside of shell function.
254
255 2010-07-29  Eric Blake  <eblake@redhat.com>
256
257         strtod: aid debugging
258         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
259         understanding why strtod is rejected.
260
261 2010-07-28  Bruno Haible  <bruno@clisp.org>
262
263         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
264         * lib/unistr/u8-chr.c: Include <string.h>.
265         * tests/unistr/test-u8-chr.c: Likewise.
266         * tests/unistr/test-u16-chr.c: Likewise.
267         * tests/unistr/test-u32-chr.c: Likewise.
268         * tests/unistr/test-u8-strchr.c: Likewise.
269         * tests/unistr/test-u16-strchr.c: Likewise.
270         * tests/unistr/test-u32-strchr.c: Likewise.
271         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
272         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
273         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
274         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
275
276 2010-07-28  Bruno Haible  <bruno@clisp.org>
277
278         Use spaces for indentation, not tabs.
279         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
280
281 2010-07-27  Bruno Haible  <bruno@clisp.org>
282
283         mbspcasecmp: Fix function specification.
284         * lib/string.in.h (mbspcasecmp): Fix specification comment.
285         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
286         Reported by Eric Blake <eblake@redhat.com>.
287
288 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
289
290         timespec: use cast and not conditional, as truncation isn't possible
291         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
292         instead of a conditional.  Comment about the situation in more detail.
293         This undoes most of the 2009-10-29 patch.
294
295 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
296
297         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
298         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
299         * lib/unistr/u8-strchr.c: Likewise.
300         * modules/unistr/u8-chr: Depend on memchr.
301
302         unistr/u*-strchr: add tests
303         * modules/unistr/u8-strchr-tests: New file.
304         * modules/unistr/u16-strchr-tests: New file.
305         * modules/unistr/u32-strchr-tests: New file.
306         * tests/unistr/test-strchr.h: New file.
307         * tests/unistr/test-u8-strchr.c: New file.
308         * tests/unistr/test-u16-strchr.c: New file.
309         * tests/unistr/test-u32-strchr.c: New file.
310
311         unistr/u*-chr: test multibyte sequences more
312         * tests/unistr/test-chr.h: Do complete testing of the characters in the
313         test vector.
314         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
315         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
316         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
317
318         unistr/u*-chr: test multibyte sequences
319         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
320
321         unistr/u*-chr: prepare for multibyte tests
322         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
323         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
324         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
325         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
326         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
327         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
328
329 2010-07-18  Bruno Haible  <bruno@clisp.org>
330
331         unistr/u8-strchr: Optimize non-ASCII argument case.
332         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
333         because the first byte often matches anyway.
334         Reported by Pádraig Brady <P@draigbrady.com>.
335
336 2010-07-15  Karl Berry  <karl@gnu.org>
337
338         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
339
340 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
341
342         getcwd: on Solaris, work better if ancestors are inaccessible
343         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
344         buffer and size, try again with a large buffer.  This works better
345         on Solaris, since its getcwd succeeds even if the path to the root
346         is inaccessible, and this is helpful in common cases such as .zfs
347         hidden directories.  Problem reported by J Chapman Flack in
348         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
349         Use system getcwd if it's declared, not merely if it's partly
350         working; use the partly-working test only to avoid needless effort
351         if the system getcwd fails.
352         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
353         comment that was already obsolete and is now even more obsolete.
354         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
355         now might call strdup.
356
357 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
358
359         pthread: Add enough so that coreutils/src/sort.c compiles.
360         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
361         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
362         gnulib. Include <sched.h> and <time.h>, as per POSIX.
363         Include <sys/types.h>, in case it defines pthread_t.
364         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
365         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
366         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
367         (pthread_rwlockattr_t, pthread_spinlock_t):
368         New typedefs, if HAVE_PTHREAD_T is not defined.
369         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
370         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
371         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
372         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
373         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
374         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
375         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
376         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
377         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
378         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
379         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
380         New macros.
381         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
382         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
383         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
384         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
385         (pthread_spin_unlock): New dummy functions.
386         (pthread_create): Return EAGAIN; don't set errno.
387         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
388         require AC_C_INLINE.
389         * modules/pthread (Depends-on): Add sched, time.
390         (pthread.h): Use AM_V_GEN.
391
392 2010-07-13  Bruno Haible  <bruno@clisp.org>
393
394         striconveh: Don't malloc memory if the result buffer is sufficient.
395         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
396         buffer if its size is sufficient.
397         Reported by Ludovic Courtès <ludo@gnu.org>.
398
399 2010-07-13  Bruno Haible  <bruno@clisp.org>
400
401         strtod: Add safety check.
402         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
403
404 2010-07-12  Bruno Haible  <bruno@clisp.org>
405
406         Unify tests that set gl_cv_func_ldexpl_no_libm.
407         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
408         gl_FUNC_LDEXPL.
409         (gl_FUNC_LDEXPL): Invoke it.
410         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
411
412 2010-07-12  Bruno Haible  <bruno@clisp.org>
413
414         Unify tests that set gl_cv_func_ldexp_no_libm.
415         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
416         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
417         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
418         (configure.ac): Simply invoke gl_FUNC_LDEXP.
419         * modules/strtod (Files): Add m4/ldexp.m4.
420
421 2010-07-12  Bruno Haible  <bruno@clisp.org>
422
423         Unify tests that set gl_cv_func_frexpl_no_libm.
424         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
425         gl_FUNC_FREXPL_NO_LIBM.
426         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
427         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
428
429 2010-07-12  Bruno Haible  <bruno@clisp.org>
430
431         Unify tests that set gl_cv_func_frexp_no_libm.
432         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
433         gl_FUNC_FREXP_NO_LIBM.
434         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
435         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
436
437 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
438
439         memcoll: clarify sizes versus lengths, document better, and tweak perf
440         * lib/memcoll.c (strcoll_loop, memcoll0):
441         Improve quality of descriptive comments.  Name variables
442         consistently as to whether they are lengths (which do not include
443         terminating null) versus sizes (which do).
444         * lib/xmemcoll.c (xmemcoll0): Likewise.
445         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
446         returned when s1size == 0; this is easier to compile and saves
447         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
448
449 2010-07-12  Bruno Haible  <bruno@clisp.org>
450
451         Tests for module '_Exit'.
452         * modules/_Exit-tests: New file.
453         * tests/test-_Exit.sh: New file.
454         * tests/test-_Exit.c: New file.
455
456         New module '_Exit'.
457         * lib/stdlib.in.h (__attribute__): New macro.
458         (_Exit): New declaration.
459         * lib/_Exit.c: New file.
460         * m4/_Exit.m4: New file.
461         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
462         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
463         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
464         * modules/_Exit: New file.
465         * tests/test-stdlib-c++.cc (_Exit): Check signature.
466         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
467
468 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
469
470         strtod: make it more-accurate typically, and don't require libm
471         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
472         Include limits.h.  Don't include string.h.
473         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
474         (locale_isspace): New function, so that no casts are needed to
475         check whether *s is a space.
476         (ldexp): Provide an unused dummy if not available.
477         (scale_radix_exp, parse_number, underlying_strtod): New functions.
478         (strtod): Use them.  This implementation prefers to use the
479         underlying strtod if available, falling back on our own code
480         only to fix known bugs.  This is more likely to produce an
481         accurate result.  Also, it avoids the use of libm functions.
482         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
483         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
484         was absent, but it caused a test failure with coreutils.
485         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
486         with libm.
487         * modules/strtod (Makefile.am, Link): libm is no longer needed.
488         * modules/strtod-tests (Makefile.am): Likewise.
489
490 2010-07-11  Pádraig Brady  <P@draigBrady.com>
491             Bruno Haible  <bruno@clisp.org>
492
493         unistr/u8-strchr: Optimize ASCII argument case.
494         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
495
496 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
497
498         (x)memcoll: minor tweaks
499         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
500         is after the type that it qualifies.
501         (memcoll0): Likewise.
502         * lib/memcoll.h (memcoll0): Likewise.
503         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
504         * lib/xmemcoll.h (xmemcoll0): Likewise.
505         * lib/memcoll.c (memcoll0): Correct the comment.  This function
506         differs from memcoll in that the NUL byte is part of the argument.
507         Omit the abort-checks, as performance is a real issue here.  Plus,
508         the checks were wrong anyway (an off-by-one error).  Omit local
509         variable 'diff', as it's a bit clearer that way.
510         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
511         no longer needed.
512
513 2010-07-08  Chen Guo <chenguo4@yahoo.com>
514
515         (x)memcoll: speedup when input is known to be NUL delimited
516         * lib/memcoll.c: Include stdlib.
517         (memcoll0) New function.
518         (strcoll_loop) New function, refactored for use in both memcoll
519         and memcoll0.
520         * lib/memcoll.h: Add prototype for memcoll0.
521         * lib/xmemcoll.c: (xmemcoll0) New function.
522         (collate_error) New function, refactored for use in both xmemcoll
523         and xmemcoll0.
524         * lib/xmemcoll.h: Add prototype for xmemcoll0.
525         * m4/memcoll.m4: add inline invocation.
526
527 2010-07-06  Pádraig Brady  <P@draigBrady.com>
528
529         * build-aux/bootstrap: Remove any local translations
530         from the translation project synchronization directory,
531         so that local only translations are not distributed.
532
533 2010-07-04  Bruno Haible  <bruno@clisp.org>
534
535         fsusage: Clarify which code applies to which platforms.
536         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
537         platform.
538         * lib/fsusage.c (get_fs_usage): Likewise.
539
540 2010-07-04  Bruno Haible  <bruno@clisp.org>
541
542         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
543         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
544         Reported by Martin Lambers <marlam@marlam.de>.
545
546 2010-07-04  Jim Meyering  <meyering@redhat.com>
547
548         hash: once again explicitly disallow insertion of NULL
549         * lib/hash.c (hash_insert0): Reinstate just-removed test:
550         inserting a NULL pointer cannot work with these functions.
551         Add a comment with details.
552         This reverts part of the 2010-07-01 commit, 5bef1a35
553         "hash: extend module to deal with non-pointer keys".
554
555 2010-07-01  Bruno Haible  <bruno@clisp.org>
556
557         stdbool: Update doc.
558         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
559         Info from Christian Weisgerber <naddy@mips.inka.de>.
560
561 2010-07-01  Jim Meyering  <meyering@redhat.com>
562
563         hash: extend module to deal with non-pointer keys
564         * lib/hash.c (hash_insert0): New interface, much like hash_insert
565         but that allows insertion of non-pointer entries.
566         Do not disallow an ENTRY value of NULL.
567         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
568         * lib/hash.h (hash_insert0): Declare.
569
570 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
571
572         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
573         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
574         not present (i.e. with autoconf 2.59 and when using gettextize, not
575         gnulib), require AC_GNU_SOURCE instead.
576
577 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
578
579         idpriv-drop: Fix tests.
580         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
581         not to the test-idpriv-droptemp program.
582
583 2010-06-29  Bruno Haible  <bruno@clisp.org>
584
585         string: Fix syntax error with g++ 2.96.
586         * lib/string.in.h (__pure__): Remove definition.
587         (_GL_ATTRIBUTE_PURE): New macro.
588         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
589         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
590         Reported by Christian Weisgerber <naddy@mips.inka.de>.
591
592 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
593
594         unitypes: Fix bug introduced on 2010-05-18.
595         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
596
597 2010-06-22  Eric Blake  <eblake@redhat.com>
598
599         memmem: slight optimization
600         * lib/str-two-way.h (critical_factorization): Update comments.
601         Reduce work during factorization phase.
602         Reported by Carlos Bueno <carlos@bueno.org>.
603
604 2010-06-21  Bruno Haible  <bruno@clisp.org>
605
606         Fix HAVE_CALLOC_POSIX misnomer.
607         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
608         !HAVE_CALLOC_POSIX.
609         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
610         HAVE_CALLOC_POSIX.
611         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
612         instead of HAVE_CALLOC_POSIX.
613         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
614         HAVE_CALLOC_POSIX.
615
616         Use modern idiom for calloc() replacement.
617         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
618         AC_FUNC_CALLOC.
619         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
620         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
621         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
622         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
623         (gl_REPLACE_CALLOC): New macro.
624
625 2010-06-21  Bruno Haible  <bruno@clisp.org>
626
627         Fix HAVE_REALLOC_POSIX misnomer.
628         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
629         !HAVE_REALLOC_POSIX.
630         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
631         HAVE_REALLOC_POSIX.
632         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
633         instead of HAVE_REALLOC_POSIX.
634         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
635         HAVE_REALLOC_POSIX.
636
637         Use modern idiom for realloc() replacement.
638         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
639         AC_FUNC_REALLOC.
640         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
641         Autoconf's AC_FUNC_REALLOC.
642         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
643         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
644         (gl_REPLACE_REALLOC): New macro.
645         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
646
647 2010-06-21  Bruno Haible  <bruno@clisp.org>
648
649         Fix HAVE_MALLOC_POSIX misnomer.
650         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
651         !HAVE_MALLOC_POSIX.
652         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
653         HAVE_MALLOC_POSIX.
654         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
655         instead of HAVE_MALLOC_POSIX.
656         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
657         HAVE_MALLOC_POSIX.
658
659         Use modern idiom for malloc() replacement.
660         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
661         AC_FUNC_MALLOC.
662         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
663         Autoconf's AC_FUNC_MALLOC.
664         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
665         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
666         (gl_REPLACE_MALLOC): New macro.
667         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
668
669 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
670
671         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
672         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
673         This macro takes 3 arguments, not 4.
674
675 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
676
677         ipv6: fix detection under mingw
678         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
679         in6_addr.
680
681 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
682
683         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
684         that strtod() works when cross-compiling to a glibc version known
685         to work.
686
687 2010-06-15  Bruno Haible  <bruno@clisp.org>
688
689         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
690
691 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
692
693         select: Correct timeout.
694         * lib/select.c (rpl_select): Compute wait_timeout correctly.
695
696 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
697
698         git-version-gen: init shell var to avoid env var influence
699         * build-aux/git-version-gen (v): Init shell var to empty.
700
701 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
702
703         priv-set: Don't assume that priv.h exists merely because getppriv does.
704         See Jan Andersen's bug report about AIX 5L in
705         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
706         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
707         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
708         * lib/priv-set.h: Likewise.
709         * tests/test-priv-set.c: Likewise.
710
711 2010-06-13  Bruno Haible  <bruno@clisp.org>
712
713         relocatable: Make it easier to test whether to install wrappers.
714         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
715         RELOCATABLE_VIA_WRAPPER.
716
717 2010-06-13  Bruno Haible  <bruno@clisp.org>
718
719         gnulib-tool: Display specified modules and dependencies differently.
720         * gnulib-tool (func_show_module_list): New function.
721         (func_import, func_create_testdir): Invoke it.
722         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
723
724 2010-06-13  Bruno Haible  <bruno@clisp.org>
725
726         gnulib-tool: Align code of func_import and func_create_testdir.
727         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
728         specified_modules.
729
730 2010-06-12  Jim Meyering  <meyering@redhat.com>
731
732         test-inttostr: avoid spurious failure on Solaris 9
733         * tests/test-inttostr.c (main): Skip the test when snprintf fails
734         to accept "%ju".  Reported by Bruno Haible.
735
736 2010-06-11  Jim Meyering  <meyering@redhat.com>
737
738         test-sys_socket: mark variables as used more readably
739         * tests/test-sys_socket.c (main): Mark otherwise unused variables
740         as "used" explicitly via (void) statement casts.  This is more
741         readable than using them in an artificial return expression.
742         Suggestion from Bruno Haible.
743
744 2010-06-11  Bruno Haible  <bruno@clisp.org>
745
746         Avoid some more warnings from "gcc -Wwrite-strings".
747         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
748         to 'const char *'.
749         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
750         * tests/test-c-strcasestr.c (main): Likewise.
751         * tests/test-mbscasestr1.c (main): Likewise.
752         * tests/test-mbscasestr2.c (main): Likewise.
753         * tests/test-memmem.c (main): Likewise.
754         * tests/test-strstr.c (main): Likewise.
755         * tests/test-strcasestr.c (main): Likewise.
756
757 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
758
759         init.sh: change framework_failure_ to fail with status 99, not 1
760         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
761         automake's parallel-tests rule that this is an unexpected failure,
762         even if the test is listed in XFAIL_TESTS.
763
764 2010-06-11  Jim Meyering  <meyering@redhat.com>
765
766         test-inttostr: avoid warnings about 4-6KB literal strings
767         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
768         Include "macros.h", for its definition of ASSERT.
769         (CK): s/assert/ASSERT/
770         * modules/inttostr-tests (Files): Add macros.h.
771
772         init.sh: don't use $ME_ or skip_ before they are defined
773         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
774         their first uses.  Also hoist their companions: warn_, fail_,
775         framework_failure_, $stderr_fileno.  Prompted by a patch from
776         Stefano Lattarini.
777
778         test-sys_socket: avoid set-but-not-used warnings from gcc
779         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
780         avoid warning about set-but-not-used variables.
781
782         test-xvasprintf: avoid 'const' discard warnings
783         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
784         "const" when assigning from literal strings.
785         (test_xasprintf): Add "void" in function argument list to placate
786         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
787
788         tests: avoid compilation warnings in argmatch and exclude tests...
789         in packages that define ARGMATCH_DIE_DECL, like coreutils.
790         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
791         Since it always exits, declare with the "noreturn" attribute.
792         * tests/test-argmatch.c: Likewise.
793
794         tests: avoid 'const' discard warnings in mbsstr tests
795         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
796         * tests/test-mbsstr2.c (main): Likewise.
797
798         test-verify: avoid warning from gcc's -Wmissing-declarations
799         * tests/test-verify.c (function): Declare to be static.
800
801         test-inttostr.c: include <string.h> for use of strcmp
802         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
803
804         test-linkat: avoid failed assertion on "other" architectures
805         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
806         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
807         sparc: https://bugs.launchpad.net/bugs/591968
808
809 2010-06-11  Jim Meyering  <meyering@redhat.com>
810
811         printf.m4: avoid autoconf's "Expanded Before Required" warning
812         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
813         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
814         autoconf warning.
815
816 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
817
818         Replacement header templates are now named with ".in", not "_".
819         * doc/gnulib-intro.texi: Correct.
820
821 2010-06-10  Jim Meyering  <meyering@redhat.com>
822
823         inttostr-tests: depend on snprintf, not snprintf-posix
824         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
825         snprintf-posix, to avoid this aclocal failure:
826           missing file gnulib-tests/vasnprintf.c
827           configure.ac:45: error: expected source file, required through \
828           AC_LIBSOURCES, not found
829
830 2010-06-10  Jim Meyering  <meyering@redhat.com>
831
832         inttostr: add a new function, inttostr, and tests
833         The namesake function was not available.  The existence of the
834         template file, inttostr.c makes its addition nontrivial.
835         * lib/anytostr.c: Rename from inttostr.c.
836         (anytostr): Rename from inttostr.
837         * lib/inttostr.c: New file.
838         * modules/inttostr (Files): Add anytostr.c.
839         (Makefile.am): Set lib_SOURCES instead of ...
840         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
841         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
842         * lib/offtostr.c: Likewise.
843         * lib/uinttostr.c: Likewise.
844         * lib/umaxtostr.c: Likewise.
845         * modules/inttostr-tests: New file.
846         * tests/test-inttostr.c: New file.  Test these functions.
847
848 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
849             Bruno Haible  <bruno@clisp.org>
850
851         Add "Extending Gnulib" chapter to manual.
852         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
853         chapter.
854         (Extending Gnulib): New chapter.
855         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
856         chapter.
857
858 2010-06-09  Bruno Haible  <bruno@clisp.org>
859
860         Avoid relocwrapper link errors due to gnulib replacement functions.
861         * lib/areadlink.c: Use the system's malloc, realloc functions.
862         (areadlink): Set errno to ENOMEM explicitly.
863         * modules/areadlink (Depends-on): Remove malloc-posix.
864         Reported by Ben Pfaff <blp@cs.stanford.edu>.
865
866 2010-06-09  Bruno Haible  <bruno@clisp.org>
867
868         Avoid relocwrapper link errors due to gnulib replacement functions.
869         * lib/canonicalize-lgpl.c: Use the system's malloc function.
870         * lib/malloca.c: Likewise.
871         * lib/relocatable.c: Likewise.
872         * lib/progreloc.c: Use the system's malloc, sprintf functions.
873         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
874         * lib/setenv.c: Use the system's malloc, realloc functions.
875         * lib/strerror.c: Use the system's sprintf function.
876         Reported by Ben Pfaff <blp@cs.stanford.edu>.
877
878 2010-06-04  Bruno Haible  <bruno@clisp.org>
879
880         Prefer documented low-level autoconf macro names.
881         * m4/lib-link.m4: Use m4_translit instead of translit.
882         * m4/environ.m4: Likewise.
883         * m4/mathfunc.m4: Likewise.
884         * m4/onceonly.m4: Likewise.
885         * m4/stdint.m4: Likewise.
886         Suggested by Eric Blake.
887
888 2010-06-04  Martin Lambers  <marlam@marlam.de>
889             Bruno Haible  <bruno@clisp.org>
890
891         havelib: Allow library names with '+' characters.
892         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
893         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
894
895 2010-06-09  Bruno Haible  <bruno@clisp.org>
896
897         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
898         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
899         realloc failed.
900
901 2010-06-08  Peter Simons  <simons@cryp.to>
902
903         maint.mk: make the news-check rule more configurable
904         * top/maint.mk (news-check-lines-spec) New variable.
905         (news-check): Use "sed -n 1,10p" in place of "head".
906
907 2010-06-07  Jim Meyering  <meyering@redhat.com>
908
909         do-release-commit-and-tag: fix typo in --help
910         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
911
912         regex: avoid new dead-code warning with gcc-4.6.0
913         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
914         if-block containing a while-loop.  It's been unused for at least
915         5 years.
916
917 2010-06-05  Bruno Haible  <bruno@clisp.org>
918
919         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
920         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
921
922 2010-06-04  Bruno Haible  <bruno@clisp.org>
923
924         Update to GNU gettext 0.18.1.
925         * modules/gettext (configure.ac): Require gettext infrastructure from
926         version 0.18.1.
927
928 2010-06-03  Bruno Haible  <bruno@clisp.org>
929
930         Don't use AC_LIBOBJ with file names in subdirectories.
931         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
932         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
933         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
934         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
935         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
936         gl_LIBUNISTRING_LIBSOURCE.
937         (Makefile.am): Augment lib_SOURCES here, conditionally.
938         * NEWS: Drop requirement for Automake option 'subdir-objects'.
939
940 2010-06-03  Bruno Haible  <bruno@clisp.org>
941
942         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
943         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
944         expansion does not end with a newline.
945         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
946         unnecessary newline.
947
948 2010-06-03  Bruno Haible  <bruno@clisp.org>
949
950         Reduce dependencies.
951         * tests/test-quotearg.h: New file, extracted from
952         tests/test-quotearg.c.
953         * tests/test-quotearg-simple.c: New file, extracted from
954         tests/test-quotearg.c.
955         * tests/test-quotearg.c: Don't include <ctype.h>.
956         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
957         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
958         use_quote_double_quotes, use_quotearg_colon): Moved to
959         tests/test-quotearg.h.
960         (results_g, flag_results, custom_quotes, custom_results): Moved
961         to tests/test-quotearg-simple.c.
962         (main): Moved the part that does not depend on gettext to
963         tests/test-quotearg-simple.c. Return 77 if the test cannot be
964         performed.
965         * modules/quotearg-simple: New file.
966         * modules/quotearg-simple-tests: New file.
967         * modules/quotearg (Depends-on): Add quotearg-simple.
968         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
969         (Files): Add tests/test-quotearg.h.
970         Reported by Paolo Bonzini.
971
972 2010-06-03  Bruno Haible  <bruno@clisp.org>
973
974         Reduce dependencies.
975         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
976
977 2010-06-03  Bruno Haible  <bruno@clisp.org>
978
979         time: Undefine more broken macros.
980         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
981         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
982         Reported by Eric Blake.
983
984 2010-06-03  Bruno Haible  <bruno@clisp.org>
985
986         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
987         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
988         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
989         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
990         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
991         Reported by Ludovic Courtès <ludo@gnu.org>.
992
993 2010-06-02  Eric Blake  <eblake@redhat.com>
994
995         time: work with mingw + pthreads-win32 library
996         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
997         if timespec is defined only in pthread.h.
998         * modules/time (Makefile.am): Substitute it.
999         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
1000         <pthread.h>, when needed.
1001         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
1002         from the library.
1003
1004 2010-05-31  Bruno Haible  <bruno@clisp.org>
1005
1006         Avoid expanding two macros in the wrong order.
1007         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
1008         gl_LIBUNISTRING if it is defined.
1009         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
1010         autoconf >= 2.64.
1011         Reported by Ludovic Courtès <ludo@gnu.org>.
1012
1013 2010-05-27  Jim Meyering  <meyering@redhat.com>
1014
1015         maint.mk: also prohibit "#undef" of always-defined symbols
1016         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
1017         Allow more than one space before the symbol name.
1018         (sc_prohibit_always-defined_macros): Use grep's -E, now that
1019         the regexp uses alternation.
1020
1021 2010-05-26  Eric Blake  <eblake@redhat.com>
1022
1023         maint.mk: avoid echo -e
1024         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
1025         Convert all uses of echo -* to printf.
1026         Reported by Matthias Bolte.
1027
1028 2010-05-25  Bruno Haible  <bruno@clisp.org>
1029
1030         Update to GNU gettext 0.18, part 2.
1031         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
1032         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
1033
1034 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1035
1036         Add missing include in test-pwrite.c.
1037         * tests/test-pwrite.c: Include string.h, for strcmp.
1038
1039 2010-05-24  Bruno Haible  <bruno@clisp.org>
1040
1041         * NEWS: Mention requirement for Automake option 'subdir-objects'.
1042
1043 2010-05-24  Bruno Haible  <bruno@clisp.org>
1044
1045         Don't use conversion with transliteration in u{8,16,32}_strcoll.
1046         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
1047         iconveh_error argument.
1048         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
1049         U_STRCONV_TO_LOCALE.
1050         * lib/unistr/u16-strcoll.c: Likewise.
1051         * lib/unistr/u32-strcoll.c: Likewise.
1052         * modules/unistr/u8-strcoll (Depends-on): Add
1053         uniconv/u8-strconv-to-enc, localcharset. Remove
1054         uniconv/u8-strconv-to-locale.
1055         (configure.ac): Bump version number.
1056         * modules/unistr/u16-strcoll (Depends-on): Add
1057         uniconv/u16-strconv-to-enc, localcharset. Remove
1058         uniconv/u16-strconv-to-locale.
1059         (configure.ac): Bump version number.
1060         * modules/unistr/u32-strcoll (Depends-on): Add
1061         uniconv/u32-strconv-to-enc, localcharset. Remove
1062         uniconv/u32-strconv-to-locale.
1063         (configure.ac): Bump version number.
1064
1065 2010-05-24  Bruno Haible  <bruno@clisp.org>
1066
1067         Avoid a test failure on NetBSD 5.0.
1068         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
1069         an iconv() bug.
1070
1071 2010-05-24  Bruno Haible  <bruno@clisp.org>
1072
1073         Adjust #include directive style.
1074         * modules/regex (Includes): Recommend to write <regex.h>.
1075
1076 2010-05-24  Bruno Haible  <bruno@clisp.org>
1077
1078         regex: Don't require alloca.
1079         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
1080         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
1081         only inside if (0).
1082
1083 2010-05-23  Jim Meyering  <meyering@redhat.com>
1084
1085         test-renameat.c: include <sys/stat.h>
1086         * tests/test-renameat.c: Include <sys/stat.h>; required for
1087         definition of S_IS* macros.
1088
1089 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
1090
1091         Update maintainer documentation for 'relocatable-prog' module.
1092         * doc/relocatable-maint.texi: Update.
1093         Comments by Bruno Haible.
1094
1095 2010-05-23  Bruno Haible  <bruno@clisp.org>
1096
1097         git-merge-changelog: Enable --split-merged-entry by default.
1098         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
1099         (usage): Don't mention this option any more.
1100         Reported by Ralf Wildenhues.
1101
1102 2010-05-23  Jim Meyering  <meyering@redhat.com>
1103
1104         test-pwrite: do not leave behind a test file named "out"
1105         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
1106         The trivial-looking use of init.sh is really necessary.
1107         It ensures that the temporary file, "out", is created in
1108         a temporary directory, and removed upon termination.
1109         * tests/test-pwrite.sh: Re-add file.
1110         * modules/pwrite-tests: Reference it.
1111
1112 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1113
1114         Fix output redirection buglet in init.sh.
1115         * tests/init.sh: Fix redirection of stderr.
1116
1117 2010-05-20  Simon Josefsson  <simon@josefsson.org>
1118
1119         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
1120
1121 2010-05-17  Simon Josefsson  <simon@josefsson.org>
1122
1123         * modules/valgrind-tests: New file.
1124         * m4/valgrind-tests.m4: New file.
1125         * doc/valgrind-tests.texi: New file.
1126         * doc/gnulib.texi (Running self-tests under valgrind): New
1127         section.
1128
1129 2010-05-19  Bruno Haible  <bruno@clisp.org>
1130
1131         Clean up dead code in recent commit.
1132         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
1133         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
1134         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
1135         Suggested by Paolo Bonzini.
1136
1137 2010-05-19  Bruno Haible  <bruno@clisp.org>
1138
1139         Avoid valgrind error reports from libunistring.
1140         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
1141         * modules/libunistring (Files): Add it.
1142         * modules/libunistring-optional (Files): Likewise.
1143
1144 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
1145             Bruno Haible  <bruno@clisp.org>
1146
1147         New module 'libunistring-optional'.
1148         * modules/libunistring-optional: New file.
1149         * m4/libunistring-base.m4: New file.
1150         * m4/libunistring-optional.m4: New file.
1151         * lib/unicase.in.h: Renamed from lib/unicase.h.
1152         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
1153         * lib/unictype.in.h: Renamed from lib/unictype.h.
1154         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
1155         * lib/uniname.in.h: Renamed from lib/uniname.h.
1156         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
1157         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
1158         * lib/unistr.in.h: Renamed from lib/unistr.h.
1159         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
1160         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
1161         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
1162         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
1163         gl_LIBUNISTRING. If the library was found, determine the installed
1164         version and set LIBUNISTRING_VERSION.
1165         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
1166         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
1167         handle a configuration option --with-included-libunistring.
1168         * modules/libunistring (Files): Add m4/absolute-header.m4.
1169         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
1170         Add m4/libunistring-base.m4.
1171         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1172         (Makefile.am): Build unicase.h from unicase.in.h.
1173         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
1174         Add m4/libunistring-base.m4.
1175         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1176         (Makefile.am): Build uniconv.h from uniconv.in.h.
1177         * modules/unictype/base (Files): Use unictype.in.h instead of
1178         unictype.h. Add m4/libunistring-base.m4.
1179         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1180         (Makefile.am): Build unictype.h from unictype.in.h.
1181         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
1182         Add m4/libunistring-base.m4.
1183         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1184         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
1185         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
1186         Add m4/libunistring-base.m4.
1187         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1188         (Makefile.am): Build uniname.h from uniname.in.h.
1189         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
1190         Add m4/libunistring-base.m4.
1191         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1192         (Makefile.am): Build uninorm.h from uninorm.in.h.
1193         * modules/unistdio/base (Files): Use unistdio.in.h instead of
1194         unistdio.h. Add m4/libunistring-base.m4.
1195         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1196         (Makefile.am): Build unistdio.h from unistdio.in.h.
1197         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
1198         Add m4/libunistring-base.m4.
1199         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1200         (Makefile.am): Build unistr.h from unistr.in.h.
1201         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
1202         Add m4/libunistring-base.m4.
1203         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1204         (Makefile.am): Build unitypes.h from unitypes.in.h.
1205         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
1206         Add m4/libunistring-base.m4.
1207         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1208         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
1209         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
1210         uniwidth.h. Add m4/libunistring-base.m4.
1211         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1212         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
1213         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
1214         instead of augmenting lib_SOURCES.
1215         * modules/unicase/empty-suffix-context: Likewise.
1216         * modules/unicase/locale-language: Likewise.
1217         * modules/unicase/tolower: Likewise.
1218         * modules/unicase/totitle: Likewise.
1219         * modules/unicase/toupper: Likewise.
1220         * modules/unicase/u8-casecmp: Likewise.
1221         * modules/unicase/u8-casecoll: Likewise.
1222         * modules/unicase/u8-casefold: Likewise.
1223         * modules/unicase/u8-casexfrm: Likewise.
1224         * modules/unicase/u8-ct-casefold: Likewise.
1225         * modules/unicase/u8-ct-tolower: Likewise.
1226         * modules/unicase/u8-ct-totitle: Likewise.
1227         * modules/unicase/u8-ct-toupper: Likewise.
1228         * modules/unicase/u8-is-cased: Likewise.
1229         * modules/unicase/u8-is-casefolded: Likewise.
1230         * modules/unicase/u8-is-lowercase: Likewise.
1231         * modules/unicase/u8-is-titlecase: Likewise.
1232         * modules/unicase/u8-is-uppercase: Likewise.
1233         * modules/unicase/u8-prefix-context: Likewise.
1234         * modules/unicase/u8-suffix-context: Likewise.
1235         * modules/unicase/u8-tolower: Likewise.
1236         * modules/unicase/u8-totitle: Likewise.
1237         * modules/unicase/u8-toupper: Likewise.
1238         * modules/unicase/u16-casecmp: Likewise.
1239         * modules/unicase/u16-casecoll: Likewise.
1240         * modules/unicase/u16-casefold: Likewise.
1241         * modules/unicase/u16-casexfrm: Likewise.
1242         * modules/unicase/u16-ct-casefold: Likewise.
1243         * modules/unicase/u16-ct-tolower: Likewise.
1244         * modules/unicase/u16-ct-totitle: Likewise.
1245         * modules/unicase/u16-ct-toupper: Likewise.
1246         * modules/unicase/u16-is-cased: Likewise.
1247         * modules/unicase/u16-is-casefolded: Likewise.
1248         * modules/unicase/u16-is-lowercase: Likewise.
1249         * modules/unicase/u16-is-titlecase: Likewise.
1250         * modules/unicase/u16-is-uppercase: Likewise.
1251         * modules/unicase/u16-prefix-context: Likewise.
1252         * modules/unicase/u16-suffix-context: Likewise.
1253         * modules/unicase/u16-tolower: Likewise.
1254         * modules/unicase/u16-totitle: Likewise.
1255         * modules/unicase/u16-toupper: Likewise.
1256         * modules/unicase/u32-casecmp: Likewise.
1257         * modules/unicase/u32-casecoll: Likewise.
1258         * modules/unicase/u32-casefold: Likewise.
1259         * modules/unicase/u32-casexfrm: Likewise.
1260         * modules/unicase/u32-ct-casefold: Likewise.
1261         * modules/unicase/u32-ct-tolower: Likewise.
1262         * modules/unicase/u32-ct-totitle: Likewise.
1263         * modules/unicase/u32-ct-toupper: Likewise.
1264         * modules/unicase/u32-is-cased: Likewise.
1265         * modules/unicase/u32-is-casefolded: Likewise.
1266         * modules/unicase/u32-is-lowercase: Likewise.
1267         * modules/unicase/u32-is-titlecase: Likewise.
1268         * modules/unicase/u32-is-uppercase: Likewise.
1269         * modules/unicase/u32-prefix-context: Likewise.
1270         * modules/unicase/u32-suffix-context: Likewise.
1271         * modules/unicase/u32-tolower: Likewise.
1272         * modules/unicase/u32-totitle: Likewise.
1273         * modules/unicase/u32-toupper: Likewise.
1274         * modules/unicase/ulc-casecmp: Likewise.
1275         * modules/unicase/ulc-casecoll: Likewise.
1276         * modules/unicase/ulc-casexfrm: Likewise.
1277         * modules/uniconv/u8-conv-from-enc: Likewise.
1278         * modules/uniconv/u8-conv-to-enc: Likewise.
1279         * modules/uniconv/u8-strconv-from-enc: Likewise.
1280         * modules/uniconv/u8-strconv-from-locale: Likewise.
1281         * modules/uniconv/u8-strconv-to-enc: Likewise.
1282         * modules/uniconv/u8-strconv-to-locale: Likewise.
1283         * modules/uniconv/u16-conv-from-enc: Likewise.
1284         * modules/uniconv/u16-conv-to-enc: Likewise.
1285         * modules/uniconv/u16-strconv-from-enc: Likewise.
1286         * modules/uniconv/u16-strconv-from-locale: Likewise.
1287         * modules/uniconv/u16-strconv-to-enc: Likewise.
1288         * modules/uniconv/u16-strconv-to-locale: Likewise.
1289         * modules/uniconv/u32-conv-from-enc: Likewise.
1290         * modules/uniconv/u32-conv-to-enc: Likewise.
1291         * modules/uniconv/u32-strconv-from-enc: Likewise.
1292         * modules/uniconv/u32-strconv-from-locale: Likewise.
1293         * modules/uniconv/u32-strconv-to-enc: Likewise.
1294         * modules/uniconv/u32-strconv-to-locale: Likewise.
1295         * modules/unictype/bidicategory-byname: Likewise.
1296         * modules/unictype/bidicategory-name: Likewise.
1297         * modules/unictype/bidicategory-of: Likewise.
1298         * modules/unictype/bidicategory-test: Likewise.
1299         * modules/unictype/block-list: Likewise.
1300         * modules/unictype/block-test: Likewise.
1301         * modules/unictype/category-C: Likewise.
1302         * modules/unictype/category-Cc: Likewise.
1303         * modules/unictype/category-Cf: Likewise.
1304         * modules/unictype/category-Cn: Likewise.
1305         * modules/unictype/category-Co: Likewise.
1306         * modules/unictype/category-Cs: Likewise.
1307         * modules/unictype/category-L: Likewise.
1308         * modules/unictype/category-Ll: Likewise.
1309         * modules/unictype/category-Lm: Likewise.
1310         * modules/unictype/category-Lo: Likewise.
1311         * modules/unictype/category-Lt: Likewise.
1312         * modules/unictype/category-Lu: Likewise.
1313         * modules/unictype/category-M: Likewise.
1314         * modules/unictype/category-Mc: Likewise.
1315         * modules/unictype/category-Me: Likewise.
1316         * modules/unictype/category-Mn: Likewise.
1317         * modules/unictype/category-N: Likewise.
1318         * modules/unictype/category-Nd: Likewise.
1319         * modules/unictype/category-Nl: Likewise.
1320         * modules/unictype/category-No: Likewise.
1321         * modules/unictype/category-P: Likewise.
1322         * modules/unictype/category-Pc: Likewise.
1323         * modules/unictype/category-Pd: Likewise.
1324         * modules/unictype/category-Pe: Likewise.
1325         * modules/unictype/category-Pf: Likewise.
1326         * modules/unictype/category-Pi: Likewise.
1327         * modules/unictype/category-Po: Likewise.
1328         * modules/unictype/category-Ps: Likewise.
1329         * modules/unictype/category-S: Likewise.
1330         * modules/unictype/category-Sc: Likewise.
1331         * modules/unictype/category-Sk: Likewise.
1332         * modules/unictype/category-Sm: Likewise.
1333         * modules/unictype/category-So: Likewise.
1334         * modules/unictype/category-Z: Likewise.
1335         * modules/unictype/category-Zl: Likewise.
1336         * modules/unictype/category-Zp: Likewise.
1337         * modules/unictype/category-Zs: Likewise.
1338         * modules/unictype/category-and: Likewise.
1339         * modules/unictype/category-and-not: Likewise.
1340         * modules/unictype/category-byname: Likewise.
1341         * modules/unictype/category-name: Likewise.
1342         * modules/unictype/category-none: Likewise.
1343         * modules/unictype/category-of: Likewise.
1344         * modules/unictype/category-or: Likewise.
1345         * modules/unictype/category-test: Likewise.
1346         * modules/unictype/combining-class: Likewise.
1347         * modules/unictype/ctype-alnum: Likewise.
1348         * modules/unictype/ctype-alpha: Likewise.
1349         * modules/unictype/ctype-blank: Likewise.
1350         * modules/unictype/ctype-cntrl: Likewise.
1351         * modules/unictype/ctype-digit: Likewise.
1352         * modules/unictype/ctype-graph: Likewise.
1353         * modules/unictype/ctype-lower: Likewise.
1354         * modules/unictype/ctype-print: Likewise.
1355         * modules/unictype/ctype-punct: Likewise.
1356         * modules/unictype/ctype-space: Likewise.
1357         * modules/unictype/ctype-upper: Likewise.
1358         * modules/unictype/ctype-xdigit: Likewise.
1359         * modules/unictype/decimal-digit: Likewise.
1360         * modules/unictype/digit: Likewise.
1361         * modules/unictype/mirror: Likewise.
1362         * modules/unictype/numeric: Likewise.
1363         * modules/unictype/property-alphabetic: Likewise.
1364         * modules/unictype/property-ascii-hex-digit: Likewise.
1365         * modules/unictype/property-bidi-arabic-digit: Likewise.
1366         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
1367         * modules/unictype/property-bidi-block-separator: Likewise.
1368         * modules/unictype/property-bidi-boundary-neutral: Likewise.
1369         * modules/unictype/property-bidi-common-separator: Likewise.
1370         * modules/unictype/property-bidi-control: Likewise.
1371         * modules/unictype/property-bidi-embedding-or-override: Likewise.
1372         * modules/unictype/property-bidi-eur-num-separator: Likewise.
1373         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
1374         * modules/unictype/property-bidi-european-digit: Likewise.
1375         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
1376         * modules/unictype/property-bidi-left-to-right: Likewise.
1377         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
1378         * modules/unictype/property-bidi-other-neutral: Likewise.
1379         * modules/unictype/property-bidi-pdf: Likewise.
1380         * modules/unictype/property-bidi-segment-separator: Likewise.
1381         * modules/unictype/property-bidi-whitespace: Likewise.
1382         * modules/unictype/property-byname: Likewise.
1383         * modules/unictype/property-combining: Likewise.
1384         * modules/unictype/property-composite: Likewise.
1385         * modules/unictype/property-currency-symbol: Likewise.
1386         * modules/unictype/property-dash: Likewise.
1387         * modules/unictype/property-decimal-digit: Likewise.
1388         * modules/unictype/property-default-ignorable-code-point: Likewise.
1389         * modules/unictype/property-deprecated: Likewise.
1390         * modules/unictype/property-diacritic: Likewise.
1391         * modules/unictype/property-extender: Likewise.
1392         * modules/unictype/property-format-control: Likewise.
1393         * modules/unictype/property-grapheme-base: Likewise.
1394         * modules/unictype/property-grapheme-extend: Likewise.
1395         * modules/unictype/property-grapheme-link: Likewise.
1396         * modules/unictype/property-hex-digit: Likewise.
1397         * modules/unictype/property-hyphen: Likewise.
1398         * modules/unictype/property-id-continue: Likewise.
1399         * modules/unictype/property-id-start: Likewise.
1400         * modules/unictype/property-ideographic: Likewise.
1401         * modules/unictype/property-ids-binary-operator: Likewise.
1402         * modules/unictype/property-ids-trinary-operator: Likewise.
1403         * modules/unictype/property-ignorable-control: Likewise.
1404         * modules/unictype/property-iso-control: Likewise.
1405         * modules/unictype/property-join-control: Likewise.
1406         * modules/unictype/property-left-of-pair: Likewise.
1407         * modules/unictype/property-line-separator: Likewise.
1408         * modules/unictype/property-logical-order-exception: Likewise.
1409         * modules/unictype/property-lowercase: Likewise.
1410         * modules/unictype/property-math: Likewise.
1411         * modules/unictype/property-non-break: Likewise.
1412         * modules/unictype/property-not-a-character: Likewise.
1413         * modules/unictype/property-numeric: Likewise.
1414         * modules/unictype/property-other-alphabetic: Likewise.
1415         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
1416         * modules/unictype/property-other-grapheme-extend: Likewise.
1417         * modules/unictype/property-other-id-continue: Likewise.
1418         * modules/unictype/property-other-id-start: Likewise.
1419         * modules/unictype/property-other-lowercase: Likewise.
1420         * modules/unictype/property-other-math: Likewise.
1421         * modules/unictype/property-other-uppercase: Likewise.
1422         * modules/unictype/property-paired-punctuation: Likewise.
1423         * modules/unictype/property-paragraph-separator: Likewise.
1424         * modules/unictype/property-pattern-syntax: Likewise.
1425         * modules/unictype/property-pattern-white-space: Likewise.
1426         * modules/unictype/property-private-use: Likewise.
1427         * modules/unictype/property-punctuation: Likewise.
1428         * modules/unictype/property-quotation-mark: Likewise.
1429         * modules/unictype/property-radical: Likewise.
1430         * modules/unictype/property-sentence-terminal: Likewise.
1431         * modules/unictype/property-soft-dotted: Likewise.
1432         * modules/unictype/property-space: Likewise.
1433         * modules/unictype/property-terminal-punctuation: Likewise.
1434         * modules/unictype/property-test: Likewise.
1435         * modules/unictype/property-titlecase: Likewise.
1436         * modules/unictype/property-unassigned-code-value: Likewise.
1437         * modules/unictype/property-unified-ideograph: Likewise.
1438         * modules/unictype/property-uppercase: Likewise.
1439         * modules/unictype/property-variation-selector: Likewise.
1440         * modules/unictype/property-white-space: Likewise.
1441         * modules/unictype/property-xid-continue: Likewise.
1442         * modules/unictype/property-xid-start: Likewise.
1443         * modules/unictype/property-zero-width: Likewise.
1444         * modules/unictype/scripts: Likewise.
1445         * modules/unictype/syntax-c-ident: Likewise.
1446         * modules/unictype/syntax-c-whitespace: Likewise.
1447         * modules/unictype/syntax-java-ident: Likewise.
1448         * modules/unictype/syntax-java-whitespace: Likewise.
1449         * modules/unilbrk/u8-possible-linebreaks: Likewise.
1450         * modules/unilbrk/u8-width-linebreaks: Likewise.
1451         * modules/unilbrk/u16-possible-linebreaks: Likewise.
1452         * modules/unilbrk/u16-width-linebreaks: Likewise.
1453         * modules/unilbrk/u32-possible-linebreaks: Likewise.
1454         * modules/unilbrk/u32-width-linebreaks: Likewise.
1455         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
1456         * modules/unilbrk/ulc-width-linebreaks: Likewise.
1457         * modules/uniname/uniname: Likewise.
1458         * modules/uninorm/canonical-decomposition: Likewise.
1459         * modules/uninorm/composition: Likewise.
1460         * modules/uninorm/decomposing-form: Likewise.
1461         * modules/uninorm/decomposition: Likewise.
1462         * modules/uninorm/filter: Likewise.
1463         * modules/uninorm/nfc: Likewise.
1464         * modules/uninorm/nfd: Likewise.
1465         * modules/uninorm/nfkc: Likewise.
1466         * modules/uninorm/nfkd: Likewise.
1467         * modules/uninorm/u8-normalize: Likewise.
1468         * modules/uninorm/u8-normcmp: Likewise.
1469         * modules/uninorm/u8-normcoll: Likewise.
1470         * modules/uninorm/u8-normxfrm: Likewise.
1471         * modules/uninorm/u16-normalize: Likewise.
1472         * modules/uninorm/u16-normcmp: Likewise.
1473         * modules/uninorm/u16-normcoll: Likewise.
1474         * modules/uninorm/u16-normxfrm: Likewise.
1475         * modules/uninorm/u32-normalize: Likewise.
1476         * modules/uninorm/u32-normcmp: Likewise.
1477         * modules/uninorm/u32-normcoll: Likewise.
1478         * modules/uninorm/u32-normxfrm: Likewise.
1479         * modules/unistdio/u8-asnprintf: Likewise.
1480         * modules/unistdio/u8-asprintf: Likewise.
1481         * modules/unistdio/u8-snprintf: Likewise.
1482         * modules/unistdio/u8-sprintf: Likewise.
1483         * modules/unistdio/u8-u8-asnprintf: Likewise.
1484         * modules/unistdio/u8-u8-asprintf: Likewise.
1485         * modules/unistdio/u8-u8-snprintf: Likewise.
1486         * modules/unistdio/u8-u8-sprintf: Likewise.
1487         * modules/unistdio/u8-u8-vasnprintf: Likewise.
1488         * modules/unistdio/u8-u8-vasprintf: Likewise.
1489         * modules/unistdio/u8-u8-vsnprintf: Likewise.
1490         * modules/unistdio/u8-u8-vsprintf: Likewise.
1491         * modules/unistdio/u8-vasnprintf: Likewise.
1492         * modules/unistdio/u8-vasprintf: Likewise.
1493         * modules/unistdio/u8-vsnprintf: Likewise.
1494         * modules/unistdio/u8-vsprintf: Likewise.
1495         * modules/unistdio/u16-asnprintf: Likewise.
1496         * modules/unistdio/u16-asprintf: Likewise.
1497         * modules/unistdio/u16-snprintf: Likewise.
1498         * modules/unistdio/u16-sprintf: Likewise.
1499         * modules/unistdio/u16-u16-asnprintf: Likewise.
1500         * modules/unistdio/u16-u16-asprintf: Likewise.
1501         * modules/unistdio/u16-u16-snprintf: Likewise.
1502         * modules/unistdio/u16-u16-sprintf: Likewise.
1503         * modules/unistdio/u16-u16-vasnprintf: Likewise.
1504         * modules/unistdio/u16-u16-vasprintf: Likewise.
1505         * modules/unistdio/u16-u16-vsnprintf: Likewise.
1506         * modules/unistdio/u16-u16-vsprintf: Likewise.
1507         * modules/unistdio/u16-vasnprintf: Likewise.
1508         * modules/unistdio/u16-vasprintf: Likewise.
1509         * modules/unistdio/u16-vsnprintf: Likewise.
1510         * modules/unistdio/u16-vsprintf: Likewise.
1511         * modules/unistdio/u32-asnprintf: Likewise.
1512         * modules/unistdio/u32-asprintf: Likewise.
1513         * modules/unistdio/u32-snprintf: Likewise.
1514         * modules/unistdio/u32-sprintf: Likewise.
1515         * modules/unistdio/u32-u32-asnprintf: Likewise.
1516         * modules/unistdio/u32-u32-asprintf: Likewise.
1517         * modules/unistdio/u32-u32-snprintf: Likewise.
1518         * modules/unistdio/u32-u32-sprintf: Likewise.
1519         * modules/unistdio/u32-u32-vasnprintf: Likewise.
1520         * modules/unistdio/u32-u32-vasprintf: Likewise.
1521         * modules/unistdio/u32-u32-vsnprintf: Likewise.
1522         * modules/unistdio/u32-u32-vsprintf: Likewise.
1523         * modules/unistdio/u32-vasnprintf: Likewise.
1524         * modules/unistdio/u32-vasprintf: Likewise.
1525         * modules/unistdio/u32-vsnprintf: Likewise.
1526         * modules/unistdio/u32-vsprintf: Likewise.
1527         * modules/unistdio/ulc-asnprintf: Likewise.
1528         * modules/unistdio/ulc-asprintf: Likewise.
1529         * modules/unistdio/ulc-fprintf: Likewise.
1530         * modules/unistdio/ulc-snprintf: Likewise.
1531         * modules/unistdio/ulc-sprintf: Likewise.
1532         * modules/unistdio/ulc-vasnprintf: Likewise.
1533         * modules/unistdio/ulc-vasprintf: Likewise.
1534         * modules/unistdio/ulc-vfprintf: Likewise.
1535         * modules/unistdio/ulc-vsnprintf: Likewise.
1536         * modules/unistdio/ulc-vsprintf: Likewise.
1537         * modules/unistr/u8-check: Likewise.
1538         * modules/unistr/u8-chr: Likewise.
1539         * modules/unistr/u8-cmp: Likewise.
1540         * modules/unistr/u8-cmp2: Likewise.
1541         * modules/unistr/u8-cpy: Likewise.
1542         * modules/unistr/u8-cpy-alloc: Likewise.
1543         * modules/unistr/u8-endswith: Likewise.
1544         * modules/unistr/u8-mblen: Likewise.
1545         * modules/unistr/u8-mbsnlen: Likewise.
1546         * modules/unistr/u8-mbtouc: Likewise.
1547         * modules/unistr/u8-mbtouc-unsafe: Likewise.
1548         * modules/unistr/u8-mbtoucr: Likewise.
1549         * modules/unistr/u8-move: Likewise.
1550         * modules/unistr/u8-next: Likewise.
1551         * modules/unistr/u8-prev: Likewise.
1552         * modules/unistr/u8-set: Likewise.
1553         * modules/unistr/u8-startswith: Likewise.
1554         * modules/unistr/u8-stpcpy: Likewise.
1555         * modules/unistr/u8-stpncpy: Likewise.
1556         * modules/unistr/u8-strcat: Likewise.
1557         * modules/unistr/u8-strchr: Likewise.
1558         * modules/unistr/u8-strcmp: Likewise.
1559         * modules/unistr/u8-strcoll: Likewise.
1560         * modules/unistr/u8-strcpy: Likewise.
1561         * modules/unistr/u8-strcspn: Likewise.
1562         * modules/unistr/u8-strdup: Likewise.
1563         * modules/unistr/u8-strlen: Likewise.
1564         * modules/unistr/u8-strmblen: Likewise.
1565         * modules/unistr/u8-strmbtouc: Likewise.
1566         * modules/unistr/u8-strncat: Likewise.
1567         * modules/unistr/u8-strncmp: Likewise.
1568         * modules/unistr/u8-strncpy: Likewise.
1569         * modules/unistr/u8-strnlen: Likewise.
1570         * modules/unistr/u8-strpbrk: Likewise.
1571         * modules/unistr/u8-strrchr: Likewise.
1572         * modules/unistr/u8-strspn: Likewise.
1573         * modules/unistr/u8-strstr: Likewise.
1574         * modules/unistr/u8-strtok: Likewise.
1575         * modules/unistr/u8-to-u16: Likewise.
1576         * modules/unistr/u8-to-u32: Likewise.
1577         * modules/unistr/u8-uctomb: Likewise.
1578         * modules/unistr/u16-check: Likewise.
1579         * modules/unistr/u16-chr: Likewise.
1580         * modules/unistr/u16-cmp: Likewise.
1581         * modules/unistr/u16-cmp2: Likewise.
1582         * modules/unistr/u16-cpy: Likewise.
1583         * modules/unistr/u16-cpy-alloc: Likewise.
1584         * modules/unistr/u16-endswith: Likewise.
1585         * modules/unistr/u16-mblen: Likewise.
1586         * modules/unistr/u16-mbsnlen: Likewise.
1587         * modules/unistr/u16-mbtouc: Likewise.
1588         * modules/unistr/u16-mbtouc-unsafe: Likewise.
1589         * modules/unistr/u16-mbtoucr: Likewise.
1590         * modules/unistr/u16-move: Likewise.
1591         * modules/unistr/u16-next: Likewise.
1592         * modules/unistr/u16-prev: Likewise.
1593         * modules/unistr/u16-set: Likewise.
1594         * modules/unistr/u16-startswith: Likewise.
1595         * modules/unistr/u16-stpcpy: Likewise.
1596         * modules/unistr/u16-stpncpy: Likewise.
1597         * modules/unistr/u16-strcat: Likewise.
1598         * modules/unistr/u16-strchr: Likewise.
1599         * modules/unistr/u16-strcmp: Likewise.
1600         * modules/unistr/u16-strcoll: Likewise.
1601         * modules/unistr/u16-strcpy: Likewise.
1602         * modules/unistr/u16-strcspn: Likewise.
1603         * modules/unistr/u16-strdup: Likewise.
1604         * modules/unistr/u16-strlen: Likewise.
1605         * modules/unistr/u16-strmblen: Likewise.
1606         * modules/unistr/u16-strmbtouc: Likewise.
1607         * modules/unistr/u16-strncat: Likewise.
1608         * modules/unistr/u16-strncmp: Likewise.
1609         * modules/unistr/u16-strncpy: Likewise.
1610         * modules/unistr/u16-strnlen: Likewise.
1611         * modules/unistr/u16-strpbrk: Likewise.
1612         * modules/unistr/u16-strrchr: Likewise.
1613         * modules/unistr/u16-strspn: Likewise.
1614         * modules/unistr/u16-strstr: Likewise.
1615         * modules/unistr/u16-strtok: Likewise.
1616         * modules/unistr/u16-to-u32: Likewise.
1617         * modules/unistr/u16-to-u8: Likewise.
1618         * modules/unistr/u16-uctomb: Likewise.
1619         * modules/unistr/u32-check: Likewise.
1620         * modules/unistr/u32-chr: Likewise.
1621         * modules/unistr/u32-cmp: Likewise.
1622         * modules/unistr/u32-cmp2: Likewise.
1623         * modules/unistr/u32-cpy: Likewise.
1624         * modules/unistr/u32-cpy-alloc: Likewise.
1625         * modules/unistr/u32-endswith: Likewise.
1626         * modules/unistr/u32-mblen: Likewise.
1627         * modules/unistr/u32-mbsnlen: Likewise.
1628         * modules/unistr/u32-mbtouc: Likewise.
1629         * modules/unistr/u32-mbtouc-unsafe: Likewise.
1630         * modules/unistr/u32-mbtoucr: Likewise.
1631         * modules/unistr/u32-move: Likewise.
1632         * modules/unistr/u32-next: Likewise.
1633         * modules/unistr/u32-prev: Likewise.
1634         * modules/unistr/u32-set: Likewise.
1635         * modules/unistr/u32-startswith: Likewise.
1636         * modules/unistr/u32-stpcpy: Likewise.
1637         * modules/unistr/u32-stpncpy: Likewise.
1638         * modules/unistr/u32-strcat: Likewise.
1639         * modules/unistr/u32-strchr: Likewise.
1640         * modules/unistr/u32-strcmp: Likewise.
1641         * modules/unistr/u32-strcoll: Likewise.
1642         * modules/unistr/u32-strcpy: Likewise.
1643         * modules/unistr/u32-strcspn: Likewise.
1644         * modules/unistr/u32-strdup: Likewise.
1645         * modules/unistr/u32-strlen: Likewise.
1646         * modules/unistr/u32-strmblen: Likewise.
1647         * modules/unistr/u32-strmbtouc: Likewise.
1648         * modules/unistr/u32-strncat: Likewise.
1649         * modules/unistr/u32-strncmp: Likewise.
1650         * modules/unistr/u32-strncpy: Likewise.
1651         * modules/unistr/u32-strnlen: Likewise.
1652         * modules/unistr/u32-strpbrk: Likewise.
1653         * modules/unistr/u32-strrchr: Likewise.
1654         * modules/unistr/u32-strspn: Likewise.
1655         * modules/unistr/u32-strstr: Likewise.
1656         * modules/unistr/u32-strtok: Likewise.
1657         * modules/unistr/u32-to-u16: Likewise.
1658         * modules/unistr/u32-to-u8: Likewise.
1659         * modules/unistr/u32-uctomb: Likewise.
1660         * modules/uniwbrk/u8-wordbreaks: Likewise.
1661         * modules/uniwbrk/u16-wordbreaks: Likewise.
1662         * modules/uniwbrk/u32-wordbreaks: Likewise.
1663         * modules/uniwbrk/ulc-wordbreaks: Likewise.
1664         * modules/uniwbrk/wordbreak-property: Likewise.
1665         * modules/uniwidth/u8-strwidth: Likewise.
1666         * modules/uniwidth/u8-width: Likewise.
1667         * modules/uniwidth/u16-strwidth: Likewise.
1668         * modules/uniwidth/u16-width: Likewise.
1669         * modules/uniwidth/u32-strwidth: Likewise.
1670         * modules/uniwidth/u32-width: Likewise.
1671         * modules/uniwidth/width: Likewise.
1672         * modules/unicase/cased-tests (Makefile.am): Link all test programs
1673         with $(LIBUNISTRING).
1674         * modules/unicase/ignorable-tests: Likewise.
1675         * modules/unicase/locale-language-tests: Likewise.
1676         * modules/unicase/tolower-tests: Likewise.
1677         * modules/unicase/totitle-tests: Likewise.
1678         * modules/unicase/toupper-tests: Likewise.
1679         * modules/unicase/u8-casecmp-tests: Likewise.
1680         * modules/unicase/u8-casecoll-tests: Likewise.
1681         * modules/unicase/u8-casefold-tests: Likewise.
1682         * modules/unicase/u8-is-cased-tests: Likewise.
1683         * modules/unicase/u8-is-casefolded-tests: Likewise.
1684         * modules/unicase/u8-is-lowercase-tests: Likewise.
1685         * modules/unicase/u8-is-titlecase-tests: Likewise.
1686         * modules/unicase/u8-is-uppercase-tests: Likewise.
1687         * modules/unicase/u8-tolower-tests: Likewise.
1688         * modules/unicase/u8-totitle-tests: Likewise.
1689         * modules/unicase/u8-toupper-tests: Likewise.
1690         * modules/unicase/u16-casecmp-tests: Likewise.
1691         * modules/unicase/u16-casecoll-tests: Likewise.
1692         * modules/unicase/u16-casefold-tests: Likewise.
1693         * modules/unicase/u16-is-cased-tests: Likewise.
1694         * modules/unicase/u16-is-casefolded-tests: Likewise.
1695         * modules/unicase/u16-is-lowercase-tests: Likewise.
1696         * modules/unicase/u16-is-titlecase-tests: Likewise.
1697         * modules/unicase/u16-is-uppercase-tests: Likewise.
1698         * modules/unicase/u16-tolower-tests: Likewise.
1699         * modules/unicase/u16-totitle-tests: Likewise.
1700         * modules/unicase/u16-toupper-tests: Likewise.
1701         * modules/unicase/u32-casecmp-tests: Likewise.
1702         * modules/unicase/u32-casecoll-tests: Likewise.
1703         * modules/unicase/u32-casefold-tests: Likewise.
1704         * modules/unicase/u32-is-cased-tests: Likewise.
1705         * modules/unicase/u32-is-casefolded-tests: Likewise.
1706         * modules/unicase/u32-is-lowercase-tests: Likewise.
1707         * modules/unicase/u32-is-titlecase-tests: Likewise.
1708         * modules/unicase/u32-is-uppercase-tests: Likewise.
1709         * modules/unicase/u32-tolower-tests: Likewise.
1710         * modules/unicase/u32-totitle-tests: Likewise.
1711         * modules/unicase/u32-toupper-tests: Likewise.
1712         * modules/unicase/ulc-casecmp-tests: Likewise.
1713         * modules/unicase/ulc-casecoll-tests: Likewise.
1714         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
1715         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
1716         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
1717         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
1718         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
1719         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
1720         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
1721         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
1722         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
1723         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
1724         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
1725         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
1726         * modules/unictype/bidicategory-byname-tests: Likewise.
1727         * modules/unictype/bidicategory-name-tests: Likewise.
1728         * modules/unictype/bidicategory-of-tests: Likewise.
1729         * modules/unictype/bidicategory-test-tests: Likewise.
1730         * modules/unictype/block-list-tests: Likewise.
1731         * modules/unictype/block-of-tests: Likewise.
1732         * modules/unictype/block-test-tests: Likewise.
1733         * modules/unictype/category-C-tests: Likewise.
1734         * modules/unictype/category-Cc-tests: Likewise.
1735         * modules/unictype/category-Cf-tests: Likewise.
1736         * modules/unictype/category-Cn-tests: Likewise.
1737         * modules/unictype/category-Co-tests: Likewise.
1738         * modules/unictype/category-Cs-tests: Likewise.
1739         * modules/unictype/category-L-tests: Likewise.
1740         * modules/unictype/category-Ll-tests: Likewise.
1741         * modules/unictype/category-Lm-tests: Likewise.
1742         * modules/unictype/category-Lo-tests: Likewise.
1743         * modules/unictype/category-Lt-tests: Likewise.
1744         * modules/unictype/category-Lu-tests: Likewise.
1745         * modules/unictype/category-M-tests: Likewise.
1746         * modules/unictype/category-Mc-tests: Likewise.
1747         * modules/unictype/category-Me-tests: Likewise.
1748         * modules/unictype/category-Mn-tests: Likewise.
1749         * modules/unictype/category-N-tests: Likewise.
1750         * modules/unictype/category-Nd-tests: Likewise.
1751         * modules/unictype/category-Nl-tests: Likewise.
1752         * modules/unictype/category-No-tests: Likewise.
1753         * modules/unictype/category-P-tests: Likewise.
1754         * modules/unictype/category-Pc-tests: Likewise.
1755         * modules/unictype/category-Pd-tests: Likewise.
1756         * modules/unictype/category-Pe-tests: Likewise.
1757         * modules/unictype/category-Pf-tests: Likewise.
1758         * modules/unictype/category-Pi-tests: Likewise.
1759         * modules/unictype/category-Po-tests: Likewise.
1760         * modules/unictype/category-Ps-tests: Likewise.
1761         * modules/unictype/category-S-tests: Likewise.
1762         * modules/unictype/category-Sc-tests: Likewise.
1763         * modules/unictype/category-Sk-tests: Likewise.
1764         * modules/unictype/category-Sm-tests: Likewise.
1765         * modules/unictype/category-So-tests: Likewise.
1766         * modules/unictype/category-Z-tests: Likewise.
1767         * modules/unictype/category-Zl-tests: Likewise.
1768         * modules/unictype/category-Zp-tests: Likewise.
1769         * modules/unictype/category-Zs-tests: Likewise.
1770         * modules/unictype/category-and-not-tests: Likewise.
1771         * modules/unictype/category-and-tests: Likewise.
1772         * modules/unictype/category-byname-tests: Likewise.
1773         * modules/unictype/category-name-tests: Likewise.
1774         * modules/unictype/category-none-tests: Likewise.
1775         * modules/unictype/category-of-tests: Likewise.
1776         * modules/unictype/category-or-tests: Likewise.
1777         * modules/unictype/category-test-withtable-tests: Likewise.
1778         * modules/unictype/combining-class-tests: Likewise.
1779         * modules/unictype/ctype-alnum-tests: Likewise.
1780         * modules/unictype/ctype-alpha-tests: Likewise.
1781         * modules/unictype/ctype-blank-tests: Likewise.
1782         * modules/unictype/ctype-cntrl-tests: Likewise.
1783         * modules/unictype/ctype-digit-tests: Likewise.
1784         * modules/unictype/ctype-graph-tests: Likewise.
1785         * modules/unictype/ctype-lower-tests: Likewise.
1786         * modules/unictype/ctype-print-tests: Likewise.
1787         * modules/unictype/ctype-punct-tests: Likewise.
1788         * modules/unictype/ctype-space-tests: Likewise.
1789         * modules/unictype/ctype-upper-tests: Likewise.
1790         * modules/unictype/ctype-xdigit-tests: Likewise.
1791         * modules/unictype/decimal-digit-tests: Likewise.
1792         * modules/unictype/digit-tests: Likewise.
1793         * modules/unictype/mirror-tests: Likewise.
1794         * modules/unictype/numeric-tests: Likewise.
1795         * modules/unictype/property-alphabetic-tests: Likewise.
1796         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
1797         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
1798         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
1799         * modules/unictype/property-bidi-block-separator-tests: Likewise.
1800         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
1801         * modules/unictype/property-bidi-common-separator-tests: Likewise.
1802         * modules/unictype/property-bidi-control-tests: Likewise.
1803         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
1804         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
1805         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
1806         * modules/unictype/property-bidi-european-digit-tests: Likewise.
1807         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
1808         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
1809         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
1810         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
1811         * modules/unictype/property-bidi-pdf-tests: Likewise.
1812         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
1813         * modules/unictype/property-bidi-whitespace-tests: Likewise.
1814         * modules/unictype/property-byname-tests: Likewise.
1815         * modules/unictype/property-combining-tests: Likewise.
1816         * modules/unictype/property-composite-tests: Likewise.
1817         * modules/unictype/property-currency-symbol-tests: Likewise.
1818         * modules/unictype/property-dash-tests: Likewise.
1819         * modules/unictype/property-decimal-digit-tests: Likewise.
1820         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
1821         * modules/unictype/property-deprecated-tests: Likewise.
1822         * modules/unictype/property-diacritic-tests: Likewise.
1823         * modules/unictype/property-extender-tests: Likewise.
1824         * modules/unictype/property-format-control-tests: Likewise.
1825         * modules/unictype/property-grapheme-base-tests: Likewise.
1826         * modules/unictype/property-grapheme-extend-tests: Likewise.
1827         * modules/unictype/property-grapheme-link-tests: Likewise.
1828         * modules/unictype/property-hex-digit-tests: Likewise.
1829         * modules/unictype/property-hyphen-tests: Likewise.
1830         * modules/unictype/property-id-continue-tests: Likewise.
1831         * modules/unictype/property-id-start-tests: Likewise.
1832         * modules/unictype/property-ideographic-tests: Likewise.
1833         * modules/unictype/property-ids-binary-operator-tests: Likewise.
1834         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
1835         * modules/unictype/property-ignorable-control-tests: Likewise.
1836         * modules/unictype/property-iso-control-tests: Likewise.
1837         * modules/unictype/property-join-control-tests: Likewise.
1838         * modules/unictype/property-left-of-pair-tests: Likewise.
1839         * modules/unictype/property-line-separator-tests: Likewise.
1840         * modules/unictype/property-logical-order-exception-tests: Likewise.
1841         * modules/unictype/property-lowercase-tests: Likewise.
1842         * modules/unictype/property-math-tests: Likewise.
1843         * modules/unictype/property-non-break-tests: Likewise.
1844         * modules/unictype/property-not-a-character-tests: Likewise.
1845         * modules/unictype/property-numeric-tests: Likewise.
1846         * modules/unictype/property-other-alphabetic-tests: Likewise.
1847         * modules/unictype/property-other-default-ignorable-code-point-tests:
1848         Likewise.
1849         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
1850         * modules/unictype/property-other-id-continue-tests: Likewise.
1851         * modules/unictype/property-other-id-start-tests: Likewise.
1852         * modules/unictype/property-other-lowercase-tests: Likewise.
1853         * modules/unictype/property-other-math-tests: Likewise.
1854         * modules/unictype/property-other-uppercase-tests: Likewise.
1855         * modules/unictype/property-paired-punctuation-tests: Likewise.
1856         * modules/unictype/property-paragraph-separator-tests: Likewise.
1857         * modules/unictype/property-pattern-syntax-tests: Likewise.
1858         * modules/unictype/property-pattern-white-space-tests: Likewise.
1859         * modules/unictype/property-private-use-tests: Likewise.
1860         * modules/unictype/property-punctuation-tests: Likewise.
1861         * modules/unictype/property-quotation-mark-tests: Likewise.
1862         * modules/unictype/property-radical-tests: Likewise.
1863         * modules/unictype/property-sentence-terminal-tests: Likewise.
1864         * modules/unictype/property-soft-dotted-tests: Likewise.
1865         * modules/unictype/property-space-tests: Likewise.
1866         * modules/unictype/property-terminal-punctuation-tests: Likewise.
1867         * modules/unictype/property-test-tests: Likewise.
1868         * modules/unictype/property-titlecase-tests: Likewise.
1869         * modules/unictype/property-unassigned-code-value-tests: Likewise.
1870         * modules/unictype/property-unified-ideograph-tests: Likewise.
1871         * modules/unictype/property-uppercase-tests: Likewise.
1872         * modules/unictype/property-variation-selector-tests: Likewise.
1873         * modules/unictype/property-white-space-tests: Likewise.
1874         * modules/unictype/property-xid-continue-tests: Likewise.
1875         * modules/unictype/property-xid-start-tests: Likewise.
1876         * modules/unictype/property-zero-width-tests: Likewise.
1877         * modules/unictype/scripts-tests: Likewise.
1878         * modules/unictype/syntax-c-ident-tests: Likewise.
1879         * modules/unictype/syntax-c-whitespace-tests: Likewise.
1880         * modules/unictype/syntax-java-ident-tests: Likewise.
1881         * modules/unictype/syntax-java-whitespace-tests: Likewise.
1882         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
1883         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
1884         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
1885         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
1886         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
1887         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
1888         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
1889         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
1890         * modules/uniname/uniname-tests: Likewise.
1891         * modules/uninorm/canonical-decomposition-tests: Likewise.
1892         * modules/uninorm/compat-decomposition-tests: Likewise.
1893         * modules/uninorm/composition-tests: Likewise.
1894         * modules/uninorm/decomposing-form-tests: Likewise.
1895         * modules/uninorm/decomposition-tests: Likewise.
1896         * modules/uninorm/filter-tests: Likewise.
1897         * modules/uninorm/nfc-tests: Likewise.
1898         * modules/uninorm/nfd-tests: Likewise.
1899         * modules/uninorm/nfkc-tests: Likewise.
1900         * modules/uninorm/nfkd-tests: Likewise.
1901         * modules/uninorm/u8-normcmp-tests: Likewise.
1902         * modules/uninorm/u8-normcoll-tests: Likewise.
1903         * modules/uninorm/u16-normcmp-tests: Likewise.
1904         * modules/uninorm/u16-normcoll-tests: Likewise.
1905         * modules/uninorm/u32-normcmp-tests: Likewise.
1906         * modules/uninorm/u32-normcoll-tests: Likewise.
1907         * modules/unistdio/u8-asnprintf-tests: Likewise.
1908         * modules/unistdio/u8-vasnprintf-tests: Likewise.
1909         * modules/unistdio/u8-vasprintf-tests: Likewise.
1910         * modules/unistdio/u8-vsnprintf-tests: Likewise.
1911         * modules/unistdio/u8-vsprintf-tests: Likewise.
1912         * modules/unistdio/u16-asnprintf-tests: Likewise.
1913         * modules/unistdio/u16-vasnprintf-tests: Likewise.
1914         * modules/unistdio/u16-vasprintf-tests: Likewise.
1915         * modules/unistdio/u16-vsnprintf-tests: Likewise.
1916         * modules/unistdio/u16-vsprintf-tests: Likewise.
1917         * modules/unistdio/u32-asnprintf-tests: Likewise.
1918         * modules/unistdio/u32-vasnprintf-tests: Likewise.
1919         * modules/unistdio/u32-vasprintf-tests: Likewise.
1920         * modules/unistdio/u32-vsnprintf-tests: Likewise.
1921         * modules/unistdio/u32-vsprintf-tests: Likewise.
1922         * modules/unistdio/ulc-asnprintf-tests: Likewise.
1923         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
1924         * modules/unistdio/ulc-vasprintf-tests: Likewise.
1925         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
1926         * modules/unistdio/ulc-vsprintf-tests: Likewise.
1927         * modules/unistr/u8-check-tests: Likewise.
1928         * modules/unistr/u8-chr-tests: Likewise.
1929         * modules/unistr/u8-cmp-tests: Likewise.
1930         * modules/unistr/u8-cmp2-tests: Likewise.
1931         * modules/unistr/u8-cpy-alloc-tests: Likewise.
1932         * modules/unistr/u8-cpy-tests: Likewise.
1933         * modules/unistr/u8-mblen-tests: Likewise.
1934         * modules/unistr/u8-mbsnlen-tests: Likewise.
1935         * modules/unistr/u8-mbtouc-tests: Likewise.
1936         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
1937         * modules/unistr/u8-mbtoucr-tests: Likewise.
1938         * modules/unistr/u8-move-tests: Likewise.
1939         * modules/unistr/u8-next-tests: Likewise.
1940         * modules/unistr/u8-prev-tests: Likewise.
1941         * modules/unistr/u8-set-tests: Likewise.
1942         * modules/unistr/u8-stpcpy-tests: Likewise.
1943         * modules/unistr/u8-stpncpy-tests: Likewise.
1944         * modules/unistr/u8-strcat-tests: Likewise.
1945         * modules/unistr/u8-strcmp-tests: Likewise.
1946         * modules/unistr/u8-strcoll-tests: Likewise.
1947         * modules/unistr/u8-strcpy-tests: Likewise.
1948         * modules/unistr/u8-strdup-tests: Likewise.
1949         * modules/unistr/u8-strlen-tests: Likewise.
1950         * modules/unistr/u8-strmblen-tests: Likewise.
1951         * modules/unistr/u8-strmbtouc-tests: Likewise.
1952         * modules/unistr/u8-strncat-tests: Likewise.
1953         * modules/unistr/u8-strncmp-tests: Likewise.
1954         * modules/unistr/u8-strncpy-tests: Likewise.
1955         * modules/unistr/u8-strnlen-tests: Likewise.
1956         * modules/unistr/u8-to-u16-tests: Likewise.
1957         * modules/unistr/u8-to-u32-tests: Likewise.
1958         * modules/unistr/u8-uctomb-tests: Likewise.
1959         * modules/unistr/u16-check-tests: Likewise.
1960         * modules/unistr/u16-chr-tests: Likewise.
1961         * modules/unistr/u16-cmp-tests: Likewise.
1962         * modules/unistr/u16-cmp2-tests: Likewise.
1963         * modules/unistr/u16-cpy-alloc-tests: Likewise.
1964         * modules/unistr/u16-cpy-tests: Likewise.
1965         * modules/unistr/u16-mblen-tests: Likewise.
1966         * modules/unistr/u16-mbsnlen-tests: Likewise.
1967         * modules/unistr/u16-mbtouc-tests: Likewise.
1968         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
1969         * modules/unistr/u16-mbtoucr-tests: Likewise.
1970         * modules/unistr/u16-move-tests: Likewise.
1971         * modules/unistr/u16-next-tests: Likewise.
1972         * modules/unistr/u16-prev-tests: Likewise.
1973         * modules/unistr/u16-set-tests: Likewise.
1974         * modules/unistr/u16-stpcpy-tests: Likewise.
1975         * modules/unistr/u16-stpncpy-tests: Likewise.
1976         * modules/unistr/u16-strcat-tests: Likewise.
1977         * modules/unistr/u16-strcmp-tests: Likewise.
1978         * modules/unistr/u16-strcoll-tests: Likewise.
1979         * modules/unistr/u16-strcpy-tests: Likewise.
1980         * modules/unistr/u16-strdup-tests: Likewise.
1981         * modules/unistr/u16-strlen-tests: Likewise.
1982         * modules/unistr/u16-strmblen-tests: Likewise.
1983         * modules/unistr/u16-strmbtouc-tests: Likewise.
1984         * modules/unistr/u16-strncat-tests: Likewise.
1985         * modules/unistr/u16-strncmp-tests: Likewise.
1986         * modules/unistr/u16-strncpy-tests: Likewise.
1987         * modules/unistr/u16-strnlen-tests: Likewise.
1988         * modules/unistr/u16-to-u32-tests: Likewise.
1989         * modules/unistr/u16-to-u8-tests: Likewise.
1990         * modules/unistr/u16-uctomb-tests: Likewise.
1991         * modules/unistr/u32-check-tests: Likewise.
1992         * modules/unistr/u32-chr-tests: Likewise.
1993         * modules/unistr/u32-cmp-tests: Likewise.
1994         * modules/unistr/u32-cmp2-tests: Likewise.
1995         * modules/unistr/u32-cpy-alloc-tests: Likewise.
1996         * modules/unistr/u32-cpy-tests: Likewise.
1997         * modules/unistr/u32-mblen-tests: Likewise.
1998         * modules/unistr/u32-mbsnlen-tests: Likewise.
1999         * modules/unistr/u32-mbtouc-tests: Likewise.
2000         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
2001         * modules/unistr/u32-mbtoucr-tests: Likewise.
2002         * modules/unistr/u32-move-tests: Likewise.
2003         * modules/unistr/u32-next-tests: Likewise.
2004         * modules/unistr/u32-prev-tests: Likewise.
2005         * modules/unistr/u32-set-tests: Likewise.
2006         * modules/unistr/u32-stpcpy-tests: Likewise.
2007         * modules/unistr/u32-stpncpy-tests: Likewise.
2008         * modules/unistr/u32-strcat-tests: Likewise.
2009         * modules/unistr/u32-strcmp-tests: Likewise.
2010         * modules/unistr/u32-strcoll-tests: Likewise.
2011         * modules/unistr/u32-strcpy-tests: Likewise.
2012         * modules/unistr/u32-strdup-tests: Likewise.
2013         * modules/unistr/u32-strlen-tests: Likewise.
2014         * modules/unistr/u32-strmblen-tests: Likewise.
2015         * modules/unistr/u32-strmbtouc-tests: Likewise.
2016         * modules/unistr/u32-strncat-tests: Likewise.
2017         * modules/unistr/u32-strncmp-tests: Likewise.
2018         * modules/unistr/u32-strncpy-tests: Likewise.
2019         * modules/unistr/u32-strnlen-tests: Likewise.
2020         * modules/unistr/u32-to-u16-tests: Likewise.
2021         * modules/unistr/u32-to-u8-tests: Likewise.
2022         * modules/unistr/u32-uctomb-tests: Likewise.
2023         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
2024         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
2025         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
2026         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
2027         * modules/uniwidth/u8-strwidth-tests: Likewise.
2028         * modules/uniwidth/u8-width-tests: Likewise.
2029         * modules/uniwidth/u16-strwidth-tests: Likewise.
2030         * modules/uniwidth/u16-width-tests: Likewise.
2031         * modules/uniwidth/u32-strwidth-tests: Likewise.
2032         * modules/uniwidth/u32-width-tests: Likewise.
2033         * modules/uniwidth/width-tests: Likewise.
2034
2035 2010-05-18  Richard Jones  <rjones@redhat.com>
2036
2037         doc: users.txt: list hivex
2038         * users.txt: Add hivex.
2039
2040 2010-05-18  Richard Jones  <rjones@redhat.com>
2041
2042         doc: users.txt: list febootstrap
2043         * users.txt: Add febootstrap.
2044
2045 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
2046
2047         bootstrap: fix an error when gnulib is not used as a git submodule
2048         * build-aux/bootstrap (gnulib_path): If its length is zero then
2049         assign "gnulib" to it.
2050         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
2051
2052 2010-05-16  Bruno Haible  <bruno@clisp.org>
2053
2054         Avoid autoconf warnings about AM_ICONV.
2055         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
2056         2.64.
2057
2058 2010-05-16  Bruno Haible  <bruno@clisp.org>
2059
2060         absolute-header: Make the macro usable in more situations.
2061         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
2062         from gl_ABSOLUTE_HEADER.
2063         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
2064
2065 2010-05-16  James Youngman  <jay@gnu.org>
2066
2067         doc: update users.txt
2068         * users.txt: Add CSSC.
2069
2070 2010-05-16  Jim Meyering  <meyering@redhat.com>
2071
2072         init.sh: fix an error in the previous change; add more comments
2073         * tests/init.sh: Compare exit code in loop against 9, not 2.
2074         Patch by Bruno Haible.
2075         Make the two tests more similar by adding an empty "then" clause.
2076         Add comments.
2077
2078         init.sh: avoid unnecessary shell re-exec
2079         * tests/init.sh: Improve the re-exec-required check to first test the
2080         current shell.  If it passes the test, do not search for a shell that
2081         does pass, and do not re-exec.  This test is particularly contorted to
2082         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
2083         of $(...) evokes a syntax error and causes immediate shell exit with
2084         status 2.  Bruno Haible reported that the re-exec made it impossible
2085         to single-step through any init.sh-using script.
2086
2087 2010-05-16  Bruno Haible  <bruno@clisp.org>
2088
2089         Fix collision between gnulib's and libintl's printf replacements.
2090         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
2091         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
2092         (printf): When using GNU C, map the __printf__ function to rpl_printf
2093         via __asm__. When not using GNU C, define rpl_printf instead of
2094         __printf__.
2095         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
2096         commit.
2097         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
2098         commit.
2099         * m4/asm-underscore.m4: New file.
2100         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
2101         * modules/stdio (Files): Add m4/asm-underscore.m4.
2102         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
2103         Reported by Ben Pfaff.
2104
2105 2010-05-16  Bruno Haible  <bruno@clisp.org>
2106
2107         verify: Avoid skipping the test on openSUSE 11.0.
2108         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
2109
2110 2010-05-13  Bruno Haible  <bruno@clisp.org>
2111
2112         Avoid useless warnings from G++.
2113         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
2114         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
2115         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
2116
2117 2010-05-11  Jim Meyering  <meyering@redhat.com>
2118
2119         maint.mk: tweak preceding change
2120         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
2121         regexps tighter by anchoring at EOL, and make the new group "shy"
2122         for slightly decreased overhead.
2123
2124 2010-05-11  Eric Blake  <eblake@redhat.com>
2125
2126         maint.mk: gnulib doesn't guarantee NSIG
2127         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
2128
2129 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
2130
2131         test-pwrite.c: Remove unused variable declaration.
2132         * tests/test-pwrite.c (main): Remove read_buf declaration.
2133
2134         Remove useless test-pwrite.sh file.
2135         * tests/test-pwrite.sh: Delete file.
2136         * modules/pwrite-tests: Remove references.
2137         Reported by Bruno Haible.
2138
2139 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
2140
2141         init.sh: fix a typo
2142         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
2143
2144 2010-05-10  Jim Meyering  <meyering@redhat.com>
2145
2146         maint.mk: avoid using a temporary file in the always-defined-macros check
2147         * top/maint.mk (.re-defmac): Remove rule.
2148         (gl_trap_): Remove definition.
2149         (sc_prohibit_always-defined_macros): Rewrite not to create and
2150         depend on a temporary file.  Instead, depend on GNU grep's ability
2151         to read a list of regular expressions from stdin when given "-f -".
2152
2153 2010-05-09  Bruno Haible  <bruno@clisp.org>
2154
2155         Update to GNU gettext 0.18, part 1.
2156         * m4/gettext.m4: Update to GNU gettext 0.18.
2157         * m4/intl.m4: Likewise.
2158         * m4/po.m4: Likewise.
2159         * modules/gettext (Files): Add m4/fcntl-o.m4.
2160         (configure.ac): Require gettext infrastructure from version 0.18.
2161
2162 2010-05-09  Jim Meyering  <meyering@redhat.com>
2163
2164         init.sh: enable MALLOC_PERTURB_
2165         * tests/init.sh: Enable glibc's malloc-perturbing option.
2166
2167         maint.mk: improve sc_cross_check_PATH_usage_in_tests
2168         With my recent change in init.sh from the two-line form:
2169             -#   : ${srcdir=.}
2170             -#   . "$srcdir/init.sh"; path_prepend_ .
2171             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
2172         I noticed that using the one-line form would cause this test
2173         to fail with a false-positive, or to stop working altogether,
2174         depending on whether help-version changed or all the tests did.
2175         * top/maint.mk (_hv_regex): Remove this definition.
2176         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
2177         (_hv_regex_strong): Use a stronger regex to check for conformance.
2178         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
2179         Give a separate diagnostic for lack of conforming use.
2180
2181         maint.mk: prohibit definition of symbols defined by gnulib
2182         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
2183         definition of symbols defined by gnulib.
2184
2185 2010-05-09  Bruno Haible  <bruno@clisp.org>
2186
2187         acl: Avoid test failure on Cygwin-hosted mingw.
2188         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
2189
2190 2010-05-09  Bruno Haible  <bruno@clisp.org>
2191
2192         error: Use system's fcntl function.
2193         * lib/error.c (fcntl): Undefine.
2194
2195 2010-05-09  Jim Meyering  <meyering@redhat.com>
2196
2197         verify: adjust formatting to be more consistent
2198         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
2199         argument-list '('s, and after one comma.
2200
2201 2010-05-09  Bruno Haible  <bruno@clisp.org>
2202
2203         error: More reliable output on mingw.
2204         * lib/error.c: Include <windows.h>.
2205         (is_open): New function.
2206         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
2207         defined.
2208
2209 2010-05-09  Bruno Haible  <bruno@clisp.org>
2210
2211         vasnprintf: Fix syntax errors in libintl build on mingw.
2212         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
2213         pad_ourselves and prec_ourselves after use.
2214
2215 2010-05-08  Bruno Haible  <bruno@clisp.org>
2216
2217         * lib/config.charset: Update comments for Cygwin 1.7.
2218         * lib/localcharset.c: Likewise.
2219
2220 2010-05-07  Jim Meyering  <meyering@redhat.com>
2221
2222         init.sh: improve comments
2223         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
2224         . "${srcdir=.}/init.sh"; path_prepend_ .
2225         Add a note about path_prepend_ and the alternative of using
2226         TESTS_ENVIRONMENT.
2227
2228 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
2229
2230         exclude: Unescape hashed patterns in wildcard mode.
2231         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
2232         to the hash list.
2233         * tests/test-exclude8.sh: New test case.
2234         * modules/exclude-tests: Add new test.
2235
2236 2010-05-05  Eric Blake  <eblake@redhat.com>
2237
2238         verify: automate tests
2239         * modules/verify-tests: New module.
2240         * tests/test-verify.sh: New file.
2241         * tests/test-verify.c: Guard each negative test with a unique id.
2242         Also avoid warning about unused left hand of comma expressions.
2243
2244 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
2245
2246         Further improvements to verify.h, suggested by Eric Blake.
2247         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
2248         the GL_* versions, to avoid collision with OpenGL.
2249         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
2250         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
2251         than testing merely whether it's defined.
2252
2253         Modify verify.h to pacify gcc -Wredundant_decls.
2254         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
2255         These use the prefix "GL_" since they're likely to be useful elsewhere.
2256         We may need to break them out into a different .h file.
2257         (__COUNTER__): Define to 0 if the compiler doesn't support it.
2258         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
2259         of verify_function__.
2260
2261 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
2262
2263         Tests for module pwrite.
2264         * modules/pwrite-tests: New file.
2265         * tests/test-pwrite.sh: New file.
2266         * tests/test-pwrite.c: New file.
2267
2268         New module pwrite.
2269         * lib/unistd.in.h (pwrite): New declaration.
2270         * lib/pwrite.c: New file, from glibc with modifications.
2271         * m4/pwrite.m4: New file.
2272         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
2273         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
2274         REPLACE_PWRITE.
2275         * modules/pwrite: New file.
2276         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
2277         REPLACE_PWRITE.
2278         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
2279         * doc/posix-functions/pwrite.texi: Mention the new module.
2280
2281 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
2282
2283         pread: Update documentation.
2284         * doc/posix-functions/pread.texi: Mention the 'pread' module.
2285
2286 2010-05-04  Eric Blake  <eblake@redhat.com>
2287
2288         docs: update cygwin progress
2289         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
2290         this bug.
2291         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
2292         Added in cygwin 1.7.2.
2293         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
2294         Likewise.
2295         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
2296         Likewise.
2297         * doc/glibc-functions/dup3.texi (dup3): Likewise.
2298         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
2299         * doc/glibc-functions/accept4.texi (accept4): Likewise.
2300         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
2301         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
2302         Mention nproc module.
2303         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
2304         bug in cygwin 1.7.5 addition.
2305         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
2306         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
2307         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
2308         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
2309         1.7.5.
2310         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
2311         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
2312         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
2313         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
2314         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
2315         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
2316         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
2317         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
2318         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
2319         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
2320         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
2321         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
2322         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
2323         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
2324         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
2325         Likewise.
2326         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
2327         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
2328         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
2329         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
2330         Likewise.
2331         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
2332         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
2333         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
2334         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
2335         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
2336         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
2337         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
2338         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
2339         Likewise.
2340         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
2341         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
2342         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
2343         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
2344         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
2345         Likewise.
2346         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
2347         Likewise.
2348         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
2349         Likewise.
2350         * doc/glibc-functions/xdrrec_endofrecord.texi
2351         (xdrrec_endofrecord): Likewise.
2352         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
2353         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
2354         Likewise.
2355         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
2356         Likewise.
2357
2358 2010-05-04  Jim Meyering  <meyering@redhat.com>
2359
2360         gendocs.sh: make its "-s FILE" option more useful
2361         * build-aux/gendocs.sh: When honoring the -s FILE option, update
2362         $PACKAGE to reflect the probably-different basename of "FILE".
2363
2364 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
2365
2366         bootstrap: don't ignore download_po_files failure
2367         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
2368         failure.
2369
2370 2010-05-03  Jim Meyering  <meyering@redhat.com>
2371
2372         maint.mk: allow to pass options to gendocs.sh
2373         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
2374         (gendocs_options_): New overridable variable.
2375
2376         gnu-web-doc-update: don't ignore configure or build failure
2377         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
2378
2379         announce-gen: backslash-escape '@'s in --help output
2380         * build-aux/announce-gen: Fix syntax errors.
2381
2382         maint.mk, announce-gen: allow project-specific announcement mail headers
2383         * top/maint.mk (translation_project_): Define default.
2384         (announcement_Cc_, announcement_mail_headers_): Likewise.
2385         (announcement): Invoke announce-gen with new --mail-headers option.
2386         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
2387
2388         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
2389         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
2390         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
2391         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
2392         line in the "err2" output file when running "make check" in verbose
2393         mode (i.e., with set -x enabled).
2394
2395 2010-05-03  Bruno Haible  <bruno@clisp.org>
2396
2397         wctob: Fix for weird platforms.
2398         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
2399         argument value.
2400
2401 2010-05-03  Jim Meyering  <meyering@redhat.com>
2402
2403         maint.mk: prohibit unwarranted use of <strings.h>
2404         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
2405         strings.h in a file that does not also use strcasecmp, strncasecmp,
2406         ffs or ffsll.
2407
2408         maint.mk: remove obsolete comments
2409         * top/maint.mk: Remove stale, commented-out rules.
2410
2411 2010-05-02  Bruno Haible  <bruno@clisp.org>
2412
2413         wcwidth: Declare also when it's aliased.
2414         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
2415         macro.
2416
2417 2010-05-02  Bruno Haible  <bruno@clisp.org>
2418
2419         Fix regression from 2010-04-25.
2420         * gnulib-tool (func_modules_transitive_closure): Check the status of
2421         all modules, not only of the tests that are of the form foo-tests where
2422         foo is a module.
2423
2424 2010-05-02  Bruno Haible  <bruno@clisp.org>
2425
2426         wctob: Work around nasty Cygwin 1.7.2 bug.
2427         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
2428         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
2429
2430 2010-05-01  Bruno Haible  <bruno@clisp.org>
2431
2432         fpurge: Sharper test.
2433         * tests/test-fpurge.c (main): Add one more ftell check.
2434         * modules/fpurge-tests (Depends-on): Add ftell.
2435         Suggested by Eric Blake.
2436
2437 2010-05-01  Bruno Haible  <bruno@clisp.org>
2438
2439         ftello: Another test.
2440         * tests/test-ftello3.c: New file.
2441         * modules/ftello-tests (Files): Add it.
2442         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
2443         MOSTLYCLEANFILES.
2444
2445         ftell: Another test.
2446         * tests/test-ftell3.c: New file.
2447         * modules/ftell-tests (Files): Add it.
2448         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
2449         MOSTLYCLEANFILES.
2450
2451 2010-05-01  Bruno Haible  <bruno@clisp.org>
2452
2453         ftell, ftello: Work around Solaris bug.
2454         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
2455         * lib/ftello.c: Include stdio-impl.h.
2456         (ftello): On Solaris, when _IOWRT is set, compute the result without
2457         looking at _IOREAD.
2458         * modules/ftello (Files): Add lib/stdio-impl.h.
2459         * doc/posix-functions/ftell.texi: Mention Solaris bug.
2460         * doc/posix-functions/ftello.texi: Likewise.
2461         Reported by Eric Blake.
2462
2463 2010-05-01  Bruno Haible  <bruno@clisp.org>
2464
2465         freading: Adapt to special meaning of _IOREAD flag on Solaris.
2466         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
2467         the _IOWRT flag is also set.
2468
2469 2010-05-01  Bruno Haible  <bruno@clisp.org>
2470
2471         Fix doc about a HP-UX stdio bug.
2472         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
2473         * doc/posix-functions/ftello.texi: Likewise.
2474
2475 2010-05-01  Bruno Haible  <bruno@clisp.org>
2476
2477         lseek test: Fix failure on Solaris.
2478         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
2479         output.
2480
2481 2010-04-30  Jim Meyering  <meyering@redhat.com>
2482
2483         bootstrap: don't ignore failure to generate po*/Makevars
2484         * build-aux/bootstrap (with_gettext): Don't ignore failure
2485         to create po/Makevars or runtime-po/Makevars.
2486
2487 2010-04-29  Eric Blake  <eblake@redhat.com>
2488
2489         headers: relax license to LGPLv2+
2490         * modules/fcntl-h (License): Relax license.
2491         * modules/getopt-posix (License): Likewise.
2492         * modules/locale (License): Likewise.
2493         * modules/math (License): Likewise.
2494         * modules/pty (License): Likewise.
2495         * modules/sched (License): Likewise.
2496         * modules/search (License): Likewise.
2497         * modules/spawn (License): Likewise.
2498         * modules/stdarg (License): Likewise.
2499         * modules/sysexits (License): Likewise.
2500
2501 2010-04-29  Jim Meyering  <meyering@redhat.com>
2502
2503         inttypes: relax license to LGPLv2+
2504         * modules/inttypes (License): Relax license.
2505
2506 2010-04-29  Simon Josefsson  <simon@josefsson.org>
2507
2508         * top/maint.mk (indent): Run twice to produce idempotent results.
2509
2510 2010-04-28  Bruno Haible  <bruno@clisp.org>
2511
2512         getdate: Generate getdate.c in the source directory.
2513         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
2514         MOSTLYCLEANFILES.
2515         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
2516
2517 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
2518
2519         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
2520         is not declared as a const *; avoid warnings in that case.
2521
2522 2010-04-28  Eric Blake  <eblake@redhat.com>
2523
2524         canonicalize-lgpl: avoid compiler warning
2525         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
2526         declaration' / 'extraneous semicolon' warning with some compilers.
2527         Reported by Andreas Gruenbacher.
2528
2529 2010-04-28  Jim Meyering  <meyering@redhat.com>
2530
2531         init.sh: ensure a more reliable exit status when exiting via trap
2532         * tests/init.sh (setup_): Don't rely on $? in signal handler.
2533         Inspired by patches from Dmitry V. Levin.
2534         Also trap on signal 3 (SIGQUIT).
2535
2536 2010-04-27  Bruno Haible  <bruno@clisp.org>
2537
2538         Update doc about utimes().
2539         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
2540         'utimens' module.
2541         Reported by Andreas Gruenbacher <agruen@suse.de>.
2542
2543 2010-04-27  Eric Blake  <eblake@redhat.com>
2544
2545         full-read, full-write: relax license
2546         * modules/full-read (License): Drop to LGPLv2+.
2547         * modules/full-write (License): Likewise.
2548         * modules/safe-read (License): Likewise.
2549         * modules/safe-write (License): Likewise.
2550
2551         pthread: mention library for linking
2552         * modules/pthread (Link): Mention $(LIB_PTHREAD).
2553
2554 2010-04-27  Jim Meyering  <meyering@redhat.com>
2555
2556         maint.mk: fix a bug introduced in last change
2557         * top/maint.mk (gl_assured_headers_): Now that all names are on
2558         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
2559         is not anchored to end of word, it should be adequate.
2560
2561         maint.mk: avoid side-effect in latest syntax-check
2562         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
2563         to run commands via $(shell...), and hence to incur cost only when
2564         the new rule is actually run.
2565
2566         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
2567         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
2568         and use that to create a regexp used to detect all #if HAVE_..._H uses.
2569         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
2570         (gl_assured_headers_, az_, AZ_): Define.
2571         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
2572
2573 2010-04-26  Jim Meyering  <jim@meyering.net>
2574             Bruno Haible  <bruno@clisp.org>
2575
2576         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
2577         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
2578         Prompted by an exchange with Gilles Espinasse.
2579
2580 2010-04-26  Jim Meyering  <meyering@redhat.com>
2581
2582         git-version-gen: aesthetic tweak
2583         * build-aux/git-version-gen: Use "$nl" rather than a literal,
2584         so that the command remains on a single line.
2585
2586 2010-04-26  Eric Blake  <eblake@redhat.com>
2587
2588         git-version-gen: allow use on EBCDIC hosts
2589         * build-aux/git-version-gen (dirty): Use literal rather than tying
2590         ourselves to ascii.
2591         Reported by Steve Goetze.
2592
2593 2010-04-25  Bruno Haible  <bruno@clisp.org>
2594
2595         netdb: Add support for GNULIB_POSIXCHECK.
2596         * lib/netdb.in.h: Include warn-on-use.h.
2597         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
2598         functions are used when GNULIB_POSIXCHECK is defined and the
2599         getaddrinfo module is not in use.
2600         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
2601         freeaddrinfo, gai_strerror, getnameinfo are declared.
2602         * modules/netdb (Depends-on): Add warn-on-use.
2603         (Makefile.am): Include warn-on-use.h in netdb.h.
2604
2605 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
2606
2607         build: avoid "make check" failure without .git/ directory
2608         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
2609         there is no .git/ directory.
2610
2611 2010-04-25  Bruno Haible  <bruno@clisp.org>
2612
2613         ptsname: Fix misuse of ttyname_r.
2614         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
2615         of errno.
2616
2617 2010-04-25  Bruno Haible  <bruno@clisp.org>
2618
2619         ttyname_r: Make it work on Solaris 10.
2620         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
2621         if the system function has the POSIX declaration. Test whether the
2622         function fails if the buffer is less than 128 bytes large.
2623         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
2624         system's ttyname_r function. Provide a reasonably large buffer.
2625         * modules/ttyname_r (Depends-on): Add extensions.
2626         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
2627
2628 2010-04-25  Bruno Haible  <bruno@clisp.org>
2629
2630         Use the 'extensions' module for some more functions on Solaris.
2631         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
2632         module.
2633         * doc/posix-functions/ctime_r.texi: Likewise.
2634         * doc/posix-functions/getgrgid_r.texi: Likewise.
2635         * doc/posix-functions/getgrnam_r.texi: Likewise.
2636         * doc/posix-functions/getpwnam_r.texi: Likewise.
2637         * doc/posix-functions/getpwuid_r.texi: Likewise.
2638         * doc/posix-functions/readdir_r.texi: Likewise.
2639         * doc/posix-functions/sigwait.texi: Likewise.
2640         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
2641         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
2642
2643 2010-04-25  Bruno Haible  <bruno@clisp.org>
2644
2645         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
2646         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
2647         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
2648         * lib/ttyname_r.c: Include <limits.h>.
2649         (ttyname_r): Define using the system's ttyname_r function, if it exists
2650         and not on Solaris.
2651         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
2652         set.
2653         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
2654         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
2655         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
2656         Reported by Simon Josefsson.
2657
2658 2010-04-25  Bruno Haible  <bruno@clisp.org>
2659
2660         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
2661         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
2662         * doc/posix-functions/ctime_r.texi: Likewise.
2663         * doc/posix-functions/getgrgid_r.texi: Likewise.
2664         * doc/posix-functions/getgrnam_r.texi: Likewise.
2665         * doc/posix-functions/getlogin_r.texi: Likewise.
2666         * doc/posix-functions/getpwnam_r.texi: Likewise.
2667         * doc/posix-functions/getpwuid_r.texi: Likewise.
2668         * doc/posix-functions/readdir_r.texi: Likewise.
2669         * doc/posix-functions/sigwait.texi: Likewise.
2670         * doc/posix-functions/ttyname_r.texi: Likewise.
2671         Reported by Simon Josefsson.
2672
2673 2010-04-25  Bruno Haible  <bruno@clisp.org>
2674
2675         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
2676         * gnulib-tool (func_usage): Document that --with-*-tests options apply
2677         also to --create-testdir.
2678         (func_acceptable): Don't consider the status of *-tests modules here.
2679         (func_modules_transitive_closure): Consider it here, before including a
2680         test module.
2681         (func_import, func_create_testdir): Set inc_all_direct_tests,
2682         inc_all_indirect_tests.
2683         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
2684         --create-testdir and --create-megatestdir.
2685
2686 2010-04-25  Bruno Haible  <bruno@clisp.org>
2687
2688         gnulib-tool: Add --without-*-tests options.
2689         * gnulib-tool (func_usage): Document the --without-*-tests options.
2690         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
2691         excl_unportable_tests): New variables.
2692         Fail if they are specified with --import or --update.
2693         (func_acceptable): Respect the excl_*_tests variables.
2694         (func_import): Set the excl_*_tests variables to empty.
2695
2696 2010-04-25  Simon Josefsson  <simon@josefsson.org>
2697             Bruno Haible  <bruno@clisp.org>
2698
2699         Work around a MacOS X 10.4 bug with openpty.
2700         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
2701         * tests/test-openpty.c (main): Close the master side explicitly.
2702
2703 2010-04-25  Bruno Haible  <bruno@clisp.org>
2704
2705         strnlen: Fix a C++ test error on MacOS X and Solaris.
2706         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
2707         the function is not declared.
2708         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
2709         Simon Josefsson.
2710
2711 2010-04-24  Bruno Haible  <bruno@clisp.org>
2712
2713         Avoid a gcc warning.
2714         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
2715         of correct type for %08lx directive.
2716         Reported by Eric Blake.
2717
2718 2010-04-24  Bruno Haible  <bruno@clisp.org>
2719
2720         vasnprintf: Correct errno value in case of out-of-memory.
2721         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
2722         or sprintf. Use the errno value from SNPRINTF or sprintf.
2723         Reported by Ian Beckwith <ianb@erislabs.net>.
2724
2725 2010-04-24  Bruno Haible  <bruno@clisp.org>
2726
2727         ansi-c++-opt: Find correct compiler when cross-compiling.
2728         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
2729         AC_CHECK_PROGS.
2730         Reported by Simon Josefsson.
2731
2732 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
2733
2734         vc-list-files: Add support for subversion
2735         * build-aux/vc-list-files: Use "svn list" to generate the list of
2736         files controlled by subversion.
2737
2738 2010-04-23  Jim Meyering  <meyering@redhat.com>
2739
2740         vc-list-files tests: convert to use init.sh
2741         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
2742         path_prepend_.
2743         Use Exit, not exit.
2744         Use skip_ rather than open coding it.
2745         Remove trap set-up and compare definitions.
2746         * tests/test-vc-list-files-git.sh: Likewise.
2747         * modules/vc-list-files-tests (Files): Add tests/init.sh.
2748
2749 2010-04-22  Simon Josefsson  <simon@josefsson.org>
2750
2751         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
2752         backup files.
2753
2754 2010-04-21  Simon Josefsson  <simon@josefsson.org>
2755
2756         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
2757
2758 2010-04-20  Eric Blake  <eblake@redhat.com>
2759
2760         tests: be robust to ignored SIGPIPE
2761         * tests/test-select-in.sh: Consume all output.
2762         * tests/test-lseek.sh: Check correct exit status, while avoiding
2763         EPIPE.
2764
2765 2010-04-20  Simon Josefsson  <simon@josefsson.org>
2766             Bruno Haible  <bruno@clisp.org>
2767
2768         visibility: Don't use -fvisibility if it leads to a warning.
2769         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
2770         yes, don't pretend that visibility works if it leads to a warning.
2771         Reported by Mike Gran <spk121@yahoo.com>.
2772
2773 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
2774
2775         * build-aux/bootstrap: Use "git -h" for testing for supported options
2776         instead of "git --help".  The short-form option only shows a summary,
2777         and doesn't layout the full man page.  Grep for the full option name
2778         in the summary, too.
2779
2780 2010-04-19  Bruno Haible  <bruno@clisp.org>
2781
2782         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
2783         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
2784         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
2785         mention of RELOCATABLE_STRIP.
2786         Reported by Sylvain Beucler <beuc@beuc.net>.
2787
2788 2010-04-19  Bruno Haible  <bruno@clisp.org>
2789
2790         * lib/diffseq.h: Fix typo in comment.
2791         Reported by Eric Blake.
2792
2793 2010-04-19  Bruno Haible  <bruno@clisp.org>
2794
2795         ioctl: Move autoconf macro to a .m4 file.
2796         * m4/ioctl.m4: New file, extracted from modules/ioctl.
2797         * modules/ioctl (Files): Add it.
2798         (configure.ac): Simply invoke gl_FUNC_IOCTL.
2799         Reported by Ian Beckwith <ianb@erislabs.net>.
2800
2801 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
2802             Bruno Haible  <bruno@clisp.org>
2803
2804         diffseq: Accommodate use-case with abstract arrays.
2805         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
2806         is not defined.
2807         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
2808         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
2809
2810 2010-04-18  Bruno Haible  <bruno@clisp.org>
2811
2812         * doc/posix-headers/stdbool.texi: More precise wording.
2813
2814 2010-04-17  Jim Meyering  <meyering@redhat.com>
2815
2816         maint.mk: use gnu-style indentation in an embedded perl script
2817         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
2818         Rename variable: s/two/last_two_bytes/
2819
2820 2010-04-16  Eric Blake  <eblake@redhat.com>
2821
2822         test-stdbool: skip test that fails with Solaris CC
2823         * tests/test-stdbool.c (f): Skip test that causes compilation
2824         error under buggy C++ compiler.
2825         * lib/stdbool.in.h: Document the limitation.
2826         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
2827
2828         setenv: allow compilation with C++
2829         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
2830         register keyword.
2831
2832         stdint: allow test to pass with C++
2833         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
2834
2835         getopt: allow compilation with C++
2836         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
2837         struct.
2838         * lib/getopt.c (_getopt_internal_r): Use correct type.
2839         Reported by Dagobert Michelson, via Joel E. Denny.
2840
2841 2010-04-16  Bruno Haible  <bruno@clisp.org>
2842
2843         Override netdb.h always.
2844         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
2845         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
2846         Reported by Ludovic Courtès <ludo@gnu.org>.
2847
2848 2010-04-15  Bruno Haible  <bruno@clisp.org>
2849
2850         openpty: Fix mistake from 2010-03-21.
2851         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
2852         Reported by Simon Josefsson.
2853
2854 2010-04-15  Eric Blake  <eblake@redhat.com>
2855
2856         test-forkpty: fix expected signature
2857         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
2858         Reported by Simon Josefsson.
2859
2860 2010-04-15  Jim Meyering  <meyering@redhat.com>
2861
2862         maint.mk: texinfo_suffix_re_: correct the default regexp
2863         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
2864
2865         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
2866         make it configurable via texinfo_suffix_re_.
2867
2868 2010-04-14  Eric Blake  <eblake@redhat.com>
2869
2870         strtok_r: relax license to LGPLv2+
2871         * modules/strtok_r (License): Relax license.
2872         Reported by Matthias Bolte.
2873
2874 2010-04-14  Simon Josefsson  <simon@josefsson.org>
2875
2876         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
2877         version 1.4.4 by default instead of requiring the libgcrypt
2878         version used during build.  This makes it possible to use the
2879         application with older but still binary compatible libgcrypt
2880         versions.
2881
2882 2010-04-13  Eric Blake  <eblake@redhat.com>
2883
2884         getopt-gnu: match recent glibc fixes and posix ruling
2885         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
2886         '+' handling, when requesting extensions.
2887         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
2888         'W;' handling.
2889         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
2890         * doc/posix-functions/getopt.texi (getopt): Document this.
2891         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
2892         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
2893         Likewise.
2894
2895         getopt: merge bug fixes from glibc
2896         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
2897         diagnostics.  Honor '+:' correctly.  Reject ';'.
2898
2899         getopt-posix: detect MacOS bug
2900         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
2901         optind when missing a required argument.
2902         * doc/posix-functions/getopt.texi (getopt): Document the bug.
2903         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
2904         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
2905         Likewise.
2906
2907         getopt-posix: avoid spurious failure on Solaris
2908         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
2909         an indicator that setting optind=1 is sufficient for reset.
2910
2911         getopt-posix: avoid spurious failure on FreeBSD
2912         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
2913         in POSIX mode, since the m4 test uses it.
2914
2915         gnulib-tool: silence warning on BSD sh
2916         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
2917
2918 2010-04-13  Jim Meyering  <meyering@redhat.com>
2919
2920         doc: users.txt: GNU patch now uses gnulib
2921         * users.txt: Add patch.
2922
2923 2010-04-12  Jim Meyering  <meyering@redhat.com>
2924
2925         maint.mk: generate more concise timing data for syntax-check rules
2926         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
2927         " done" from each line that reports a syntax-check test duration.
2928
2929 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
2930
2931         git-version-gen: use "git update-index..." rather than "git status"
2932         * build-aux/git-version-gen: Use git update-index --refresh, not
2933         "git status".  With some versions of git, "git status" would fail
2934         to update the index and result in an unwarranted "-dirty" suffix.
2935
2936 2010-04-11  Jim Meyering  <meyering@redhat.com>
2937
2938         openat: correct formatting (no semantic change)
2939         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
2940         Suggested by Bruno Haible.
2941
2942 2010-04-11  Bruno Haible  <bruno@clisp.org>
2943
2944         Stricter declaration checking in testdirs.
2945         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
2946         If for_tests is true, augment AM_CPPFLAGS to define
2947         GNULIB_STRICT_CHECKING.
2948         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
2949         GNULIB_STRICT_CHECKING is defined, verify that the function is
2950         declared.
2951
2952 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
2953             Bruno Haible  <bruno@clisp.org>
2954
2955         libunistring: Improve configure output.
2956         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
2957         Don't say "consider installing GNU libunistring" when checking again
2958         with libiconv.
2959
2960 2010-04-11  Bruno Haible  <bruno@clisp.org>
2961
2962         libunistring: Correct value of $LTLIBUNISTRING.
2963         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
2964         correct the value of $LTLIBUNISTRING.
2965
2966 2010-04-11  Bruno Haible  <bruno@clisp.org>
2967
2968         havelib: Add static libraries to LIBS in the right order.
2969         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
2970         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
2971
2972 2010-04-11  Bruno Haible  <bruno@clisp.org>
2973
2974         libunistring: Detect libunistring also when it depends on libiconv.
2975         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
2976         the second AC_LIB_HAVE_LINKFLAGS invocation.
2977
2978 2010-04-11  James Youngman  <jay@gnu.org>
2979
2980         close-stream: declare local scalars to be "const"
2981         * lib/close-stream.c (close_stream): Make boolean variables const
2982         to document the fact that we set but do not change them.
2983
2984 2010-04-11  Bruno Haible  <bruno@clisp.org>
2985
2986         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
2987
2988 2010-04-11  Jim Meyering  <meyering@redhat.com>
2989
2990         maint.mk: don't include dist-check.mk
2991         * top/maint.mk: Remove bogus include directive.
2992
2993         maint.mk: improve empty-line-at-EOF check
2994         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
2995         solution, rather than tail+Perl-based one.  The latter would read
2996         a few kilobytes from the end of each file, and did not handle empty
2997         files properly.
2998
2999         maint.mk: print the elapsed time for each syntax-check rule
3000         * top/maint.mk (sc_m_rules_): Save start time in a file.
3001         (sc_z_rules_): New rules: remove temp file and print elapsed time.
3002         (local-check): Interpose the .z rules
3003
3004 2010-04-11  Jim Meyering  <meyering@redhat.com>
3005
3006         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
3007         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
3008         empty file with one that ends in an empty line.
3009
3010 2010-04-10  Bruno Haible  <bruno@clisp.org>
3011
3012         mkdir: Make it work on mingw64.
3013         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
3014         * lib/mkdir.c: Update comment.
3015         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
3016
3017 2010-04-10  Bruno Haible  <bruno@clisp.org>
3018
3019         Don't override improved macro from newer autoconf.
3020         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
3021         autoconf >= 2.62.
3022         Reported by Joel E. Denny <jdenny@clemson.edu>.
3023
3024 2010-04-10  Jim Meyering  <meyering@redhat.com>
3025
3026         maint.mk: new syntax-check rule: prohibit empty lines at end of file
3027         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
3028
3029         maint.mk: correct a diagnostic
3030         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
3031         in diagnostic; now use $prohibit.
3032
3033 2010-04-10  Bruno Haible  <address@hidden>
3034
3035         fchownat: Fix a C++ test error on Solaris 8.
3036         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
3037         the function does not exist.
3038
3039 2010-04-10  Bruno Haible  <bruno@clisp.org>
3040
3041         vasnprintf: Add more tests.
3042         * tests/test-vasnprintf-posix.c: Include <errno.h>.
3043         (test_function): Test converting an invalid wide string.
3044
3045         vasnprintf: Correct handling of unconvertible wide string arguments.
3046         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
3047         VASNPRINTF.
3048         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
3049         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
3050         smaller than the expected maximum need for the directive. Set errno to
3051         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
3052         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
3053         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
3054         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
3055         * modules/vasnprintf (Files): Add m4/printf.m4.
3056         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
3057
3058 2010-04-10  Bruno Haible  <bruno@clisp.org>
3059
3060         vasnprintf: Fix crash in %ls directive.
3061         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
3062         string is passed as argument to %ls, with no precision and no width.
3063         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
3064
3065 2010-04-10  Bruno Haible  <bruno@clisp.org>
3066
3067         vasnprintf: Fix multiple test failures on mingw.
3068         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
3069         _snprintf, or snwprintf, not _snwprintf.
3070
3071 2010-04-10  Bruno Haible  <bruno@clisp.org>
3072
3073         write: Fix a C++ test error on mingw.
3074         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
3075
3076 2010-04-10  Bruno Haible  <bruno@clisp.org>
3077
3078         vasnprintf test: Reduce code duplication.
3079         * tests/test-vasnprintf.c (test_function): New function, extracted from
3080         test_vasnprintf.
3081         (test_vasnprintf, test_asnprintf): Invoke it.
3082
3083 2010-04-10  Bruno Haible  <bruno@clisp.org>
3084
3085         strnlen: Fix warning in C++ mode on MacOS X.
3086         * lib/string.in.h (strnlen): Use the modern idiom.
3087         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
3088         defining strnlen as a macro already in <config.h>.
3089         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
3090         REPLACE_STRNLEN.
3091         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
3092         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
3093
3094 2010-04-08  James Youngman  <jay@gnu.org>
3095
3096         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
3097         the example.
3098
3099 2010-04-09  Jim Meyering  <meyering@redhat.com>
3100
3101         maint.mk: print better diagnostic when there is no $(_hv_file)
3102         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
3103         announce that when $(_hv_file) (aka help-version) does not exist.
3104
3105         init.sh: run tr in the "C" locale to avoid multibyte interpretation
3106         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
3107         not try to interpret its random input bytes.  Jarno Rajahalme reported
3108         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
3109         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
3110         (mktempd_): Likewise, just in case.
3111
3112         ftruncate: add two years to projected module removal date: 2012
3113         * m4/ftruncate.m4: Adjust comments.
3114
3115         ftruncate: mark module as obsolete; even MinGW provides it, now
3116         * modules/ftruncate (Status): Obsolete.
3117         (Notice): Say that.
3118         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
3119         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
3120
3121 2010-04-08  Bruno Haible  <bruno@clisp.org>
3122
3123         Fix side effects from tests-related modules.
3124         * modules/dprintf-posix (Comment): New section.
3125         * modules/fprintf-posix (Comment): Likewise.
3126         * modules/obstack-printf-posix (Comment): Likewise.
3127         * modules/printf-posix (Comment): Likewise.
3128         * modules/snprintf-posix (Comment): Likewise.
3129         * modules/sprintf-posix (Comment): Likewise.
3130         * modules/vasnprintf-posix (Comment): Likewise.
3131         * modules/vasprintf-posix (Comment): Likewise.
3132         * modules/vdprintf-posix (Comment): Likewise.
3133         * modules/vfprintf-posix (Comment): Likewise.
3134         * modules/vprintf-posix (Comment): Likewise.
3135         * modules/vsnprintf-posix (Comment): Likewise.
3136         * modules/vsprintf-posix (Comment): Likewise.
3137         * modules/xprintf-posix (Comment): Likewise.
3138         * modules/xvasprintf-posix (Comment): Likewise.
3139         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
3140         * modules/floorf-tests (Depends-on): Likewise.
3141         * modules/round-tests (Depends-on): Likewise.
3142         * modules/roundf-tests (Depends-on): Likewise.
3143         * modules/trunc-tests (Depends-on): Likewise.
3144         * modules/truncf-tests (Depends-on): Likewise.
3145         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
3146         'fprintf-posix' module is not present.
3147         * tests/test-floorf2.c (check): Likewise.
3148         * tests/test-trunc2.c (check): Likewise.
3149         * tests/test-truncf2.c (check): Likewise.
3150         * tests/test-round2.c (equal): Likewise.
3151         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
3152
3153 2010-04-07  Karl Berry  <karl@gnu.org>
3154
3155         * config/srclist.txt,
3156         * config/srclistvars.sh,
3157         * config/srclist-update: doc fixes.
3158
3159 2010-04-07  Jim Meyering  <meyering@redhat.com>
3160
3161         maint.mk: add a PATH crosschecking syntax-check rule
3162         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
3163         Useful if you use a test like the one in help-version (coreutils,
3164         diffutils, grep, gzip) that ensures $(VERSION) matches what is
3165         printed by prog --version.
3166
3167 2010-04-06  Bruno Haible  <bruno@clisp.org>
3168
3169         Fix link error on mingw.
3170         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
3171         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
3172
3173 2010-04-06  Bruno Haible  <bruno@clisp.org>
3174
3175         Assume rmdir exists.
3176         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
3177
3178 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
3179
3180         doc: update users.txt
3181         * users.txt: Add gcal.
3182
3183 2010-04-06  Jim Meyering  <meyering@redhat.com>
3184
3185         init.sh: simply unset TMPDIR rather than risking env -i
3186         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
3187         although it probably works fine on all Unix-based systems, some
3188         systems (Cygwin?) cannot tolerate a totally cleared environment.
3189         Suggestion from Eric Blake.
3190
3191 2010-04-06  Jim Meyering  <meyering@redhat.com>
3192
3193         init.sh: portability fix: use env's POSIX-specified -i option not -u
3194         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
3195         than unportable env -u.  Solaris 5.11's env lacks support for -u.
3196
3197 2010-04-05  Bruno Haible  <bruno@clisp.org>
3198
3199         btowc: Work around Cygwin 1.7.2 bug.
3200         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
3201         does not map NUL to 0.
3202         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
3203
3204 2010-04-05  Bruno Haible  <bruno@clisp.org>
3205
3206         Make the multithread modules work on Cygwin 1.7.2.
3207         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
3208         imported symbols can be declared weak, so that it returns "no" on
3209         Cygwin 1.7.2.
3210
3211 2010-04-05  Bruno Haible  <bruno@clisp.org>
3212
3213         Use the module 'strncat'.
3214         * modules/unistr/u8-strncat (Depends-on): Add strncat.
3215
3216         Tests for module 'strncat'.
3217         * modules/strncat-tests: New file.
3218         * tests/test-strncat.c: New file.
3219
3220         New module 'strncat'.
3221         * lib/string.in.h (strncat): New declaration.
3222         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
3223         * m4/strncat.m4: New file, based on m4/memchr.m4.
3224         * modules/strncat: New file.
3225         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
3226         is declared.
3227         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
3228         REPLACE_STRNCAT.
3229         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
3230         REPLACE_STRNCAT.
3231         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
3232         module.
3233         * tests/test-string-c++.cc: Check signature of strncat.
3234
3235 2010-04-05  Jim Meyering  <meyering@redhat.com>
3236
3237         xstrtoumax-tests: convert to use init.sh
3238         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
3239         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
3240         Use Exit, not exit.
3241         Remove uses of $EXEEXT and "./" to run a program in the current dir.
3242
3243         xstrtoimax-tests: convert to use init.sh
3244         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
3245         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
3246         Use Exit, not exit.
3247         Remove uses of $EXEEXT and "./" to run a program in the current dir.
3248
3249 2010-04-05  Bruno Haible  <bruno@clisp.org>
3250
3251         sys_socket: Avoid #define replacements in C++ mode.
3252         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
3253         warning to the function if possible, rather than #defining the symbol
3254         to a dysfunctional alias.
3255
3256 2010-04-05  Bruno Haible  <bruno@clisp.org>
3257
3258         fseeko: Fix C++ test error on mingw.
3259         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
3260         gl_FUNC_FSEEKO.
3261         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
3262         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
3263         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
3264         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
3265
3266 2010-04-05  Bruno Haible  <bruno@clisp.org>
3267
3268         duplocale: Improve test output.
3269         * tests/test-duplocale.c (main): Print reason for skipped test.
3270
3271 2010-04-05  Bruno Haible  <bruno@clisp.org>
3272
3273         Assume rmdir exists.
3274         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
3275         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
3276
3277 2010-04-05  Bruno Haible  <bruno@clisp.org>
3278
3279         Fix link error on Solaris 8 with cc.
3280         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
3281
3282 2010-04-05  Bruno Haible  <bruno@clisp.org>
3283
3284         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
3285         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
3286
3287 2010-04-05  Bruno Haible  <bruno@clisp.org>
3288
3289         vasprintf: Update documentation.
3290         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
3291
3292 2010-04-05  Bruno Haible  <bruno@clisp.org>
3293
3294         ptsname: Improve test.
3295         * tests/test-ptsname.c (main): Also try the various master names of BSD
3296         systems.
3297
3298 2010-04-05  Bruno Haible  <bruno@clisp.org>
3299
3300         memchr: Avoid a possible C++ test error.
3301         * lib/string.in.h (memchr): Provide declaration if function is missing.
3302         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
3303         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
3304         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
3305         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
3306
3307 2010-04-05  Bruno Haible  <bruno@clisp.org>
3308
3309         strtok_r: Improve idiom.
3310         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
3311         AC_LIBOBJ is used.
3312
3313 2010-04-05  Bruno Haible  <bruno@clisp.org>
3314
3315         strdup: Improve idiom.
3316         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
3317         AC_LIBOBJ is used.
3318         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
3319         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
3320         when AC_LIBOBJ is used.
3321
3322 2010-04-05  Bruno Haible  <bruno@clisp.org>
3323
3324         mbsinit, mbrtowc, wcrtomb: Improve idioms.
3325         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
3326         don't set REPLACE_MBSINIT to 1.
3327         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
3328         don't set REPLACE_MBRTOWC to 1.
3329         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
3330         exist, don't set REPLACE_MBSRTOWCS to 1.
3331         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
3332         exist, don't set REPLACE_MBSNRTOWCS to 1.
3333         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
3334         don't set REPLACE_WCRTOMB to 1.
3335         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
3336         exist, don't set REPLACE_WCSRTOMBS to 1.
3337         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
3338         exist, don't set REPLACE_WCSNRTOMBS to 1.
3339
3340 2010-04-05  Bruno Haible  <bruno@clisp.org>
3341
3342         ldexpl: Improve idiom.
3343         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
3344         make sure to set HAVE_DECL_LDEXPL to 0.
3345
3346 2010-04-05  Jim Meyering  <meyering@redhat.com>
3347
3348         xstrtol-tests: convert to use init.sh
3349         * modules/xstrtol-tests (Files): Add tests/init.sh.
3350         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
3351         Use Exit, not exit.
3352         Remove uses of $EXEEXT and "./" to run a program in the current dir.
3353
3354         atexit-tests: convert to use init.sh
3355         * modules/atexit-tests (Files): Add tests/init.sh.
3356         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
3357         Use Exit, not exit.
3358         Remove uses of $EXEEXT and "./" to run a program in the current dir.
3359
3360         init.sh: fix typo
3361         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
3362
3363         init.sh: make it easier for a test script to write to the tty, ...
3364         when using automake's parallel-tests mode.
3365         * tests/init.sh (stderr_fileno_): Define overridable variable.
3366         (warn_): New function, to use it.
3367         (fail_, skip_, framework_failure_): Use warn_.
3368
3369 2010-04-04  Bruno Haible  <bruno@clisp.org>
3370
3371         btowc: Avoid warning.
3372         * lib/btowc.c: Include <stdlib.h>.
3373         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
3374
3375 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
3376             Bruno Haible  <bruno@clisp.org>
3377
3378         wchar: Port to NetBSD 1.5.
3379         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
3380         * lib/wctype.in.h (WEOF): Likewise.
3381
3382 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
3383             Bruno Haible  <bruno@clisp.org>
3384
3385         Port extended stdio to NetBSD 1.5.
3386         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
3387         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
3388         older.
3389
3390 2010-04-04  Bruno Haible  <bruno@clisp.org>
3391
3392         string: Remove unused substitution.
3393         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
3394         HAVE_DECL_STRERROR.
3395         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
3396
3397 2010-04-04  Bruno Haible  <bruno@clisp.org>
3398
3399         strtod: Avoid a possible C++ test error.
3400         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
3401         set REPLACE_STRTOD.
3402
3403 2010-04-04  Bruno Haible  <bruno@clisp.org>
3404
3405         strerror: Update documentation.
3406         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
3407
3408 2010-04-04  Bruno Haible  <bruno@clisp.org>
3409
3410         stdio: Fix some C++ test errors on Solaris 8 with GCC.
3411         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
3412         _GL_CXXALIAS_SYS_CAST.
3413
3414 2010-04-04  Bruno Haible  <bruno@clisp.org>
3415
3416         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
3417         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
3418         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
3419         REPLACE_FREXPL to 1.
3420         * doc/posix-functions/frexpl.texi: Update documentation.
3421
3422 2010-04-04  Bruno Haible  <bruno@clisp.org>
3423
3424         math: Fix some C++ test errors on Solaris 8 and Cygwin.
3425         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
3426
3427 2010-04-04  Bruno Haible  <bruno@clisp.org>
3428
3429         Implement nanosleep for native Windows.
3430         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
3431
3432 2010-04-04  Bruno Haible  <bruno@clisp.org>
3433
3434         math: Fix some C++ test errors on Solaris 8.
3435         * lib/math.in.h (truncf, trunc): Use simpler idiom.
3436
3437 2010-04-04  Bruno Haible  <bruno@clisp.org>
3438
3439         math: Fix some C++ test errors on Cygwin.
3440         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
3441         truncl): Provide declaration if the system does not have it.
3442         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
3443         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
3444         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
3445         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
3446         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
3447         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
3448         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
3449         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
3450         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
3451         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
3452         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
3453         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
3454         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
3455         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
3456         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
3457         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
3458         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
3459         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
3460         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
3461         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
3462         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
3463         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
3464
3465 2010-04-04  Bruno Haible  <bruno@clisp.org>
3466
3467         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
3468         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
3469         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
3470         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
3471         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
3472         * m4/isinf.m4 (gl_ISINF): Likewise.
3473         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
3474
3475 2010-04-04  Bruno Haible  <bruno@clisp.org>
3476
3477         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
3478         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
3479
3480 2010-04-04  Bruno Haible  <bruno@clisp.org>
3481
3482         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
3483         * modules/tmpfile (configure.ac): Update.
3484
3485         tmpfile: Fix C++ test error on mingw.
3486         * lib/stdio.in.h (tmpfile): New declaration.
3487         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
3488         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
3489         * modules/tmpfile (Depends-on): Add stdio.
3490         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
3491         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
3492         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
3493         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
3494         REPLACE_TMPFILE.
3495         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
3496
3497 2010-04-04  Bruno Haible  <bruno@clisp.org>
3498
3499         ioctl: Fix C++ test error on mingw.
3500         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
3501         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
3502         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
3503
3504 2010-04-03  Bruno Haible  <bruno@clisp.org>
3505
3506         wcwidth: Fix C++ test error on mingw.
3507         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
3508         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
3509         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
3510
3511 2010-04-03  Bruno Haible  <bruno@clisp.org>
3512
3513         nanosleep: Fix C++ test error on mingw.
3514         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
3515         * lib/time.in.h (nanosleep): Use modern idiom.
3516         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
3517         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
3518         REPLACE_NANOSLEEP to 1.
3519         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
3520         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
3521
3522 2010-04-03  Bruno Haible  <bruno@clisp.org>
3523
3524         strptime: Fix C++ test error on mingw.
3525         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
3526         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
3527         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
3528         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
3529         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
3530         not REPLACE_STRPTIME.
3531         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
3532         REPLACE_STRPTIME.
3533
3534 2010-04-03  Bruno Haible  <bruno@clisp.org>
3535
3536         timegm: Fix C++ test error on mingw.
3537         * lib/time.in.h (timegm): Use modern idiom.
3538         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
3539         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
3540         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
3541         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
3542
3543 2010-04-03  Bruno Haible  <bruno@clisp.org>
3544
3545         timegm: Assume declaration if function exists.
3546         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
3547         if it exists. Don't clobber ac_cv_func_timegm.
3548
3549 2010-04-03  Bruno Haible  <bruno@clisp.org>
3550
3551         time_r: Fix C++ test error on mingw.
3552         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
3553         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
3554         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
3555         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
3556         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
3557
3558 2010-04-03  Bruno Haible  <bruno@clisp.org>
3559
3560         time_r: Minor updates.
3561         * modules/time_r (Description): Mention the provided functions.
3562         * lib/time_r.c: Don't include <string.h>.
3563         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
3564         * doc/posix-functions/localtime_r.texi: Likewise.
3565
3566 2010-04-03  Bruno Haible  <bruno@clisp.org>
3567
3568         time: Fix regression introduced on 2010-03-08.
3569         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
3570         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
3571
3572 2010-04-03  Jim Meyering  <meyering@redhat.com>
3573
3574         maint.mk: don't silently disable project-specific syntax-check rules
3575         * top/maint.mk (_prohibit_regexp): Define, to help people realize
3576         that they need to convert their project-specific syntax-check rules
3577         to use the new _sc_search_regexp.
3578
3579 2010-04-03  Bruno Haible  <bruno@clisp.org>
3580
3581         fchdir: Fix regression introduced on 2010-03-08.
3582         * lib/unistd.in.h (fchdir): Fix declaration.
3583         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
3584         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
3585         REPLACE_FCHDIR.
3586         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
3587         REPLACE_FCHDIR.
3588
3589 2010-04-03  Bruno Haible  <bruno@clisp.org>
3590
3591         getpagesize: Fix C++ test error on mingw.
3592         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
3593         system does not declare the function.
3594         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
3595         declared.
3596         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
3597         HAVE_DECL_GETPAGESIZE.
3598         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
3599
3600 2010-04-03  Bruno Haible  <bruno@clisp.org>
3601
3602         stdio: Make C++ tests work on mingw.
3603         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
3604         does not declare the function.
3605
3606 2010-04-03  Bruno Haible  <bruno@clisp.org>
3607
3608         ftello: Fix C++ test error on mingw.
3609         * lib/stdio.in.h (ftello): Use modern idiom.
3610         * lib/ftello.c (ftello): Renamed from rpl_ftello.
3611         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
3612         is missing and that it needs to be replaced.
3613         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
3614         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
3615         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
3616
3617 2010-04-03  Bruno Haible  <bruno@clisp.org>
3618
3619         fseeko: Fix C++ test error on mingw.
3620         * lib/stdio.in.h (fseeko): Use modern idiom.
3621         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
3622         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
3623         is missing and that it needs to be replaced.
3624         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
3625         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
3626         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
3627
3628 2010-04-03  Bruno Haible  <bruno@clisp.org>
3629
3630         mkstemp: Fix C++ test error on mingw.
3631         * lib/stdlib.in.h (mkstemp): Use modern idiom.
3632         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
3633         function is missing and that it needs to be replaced.
3634         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
3635         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
3636
3637 2010-04-03  Bruno Haible  <bruno@clisp.org>
3638
3639         stpncpy: Fix C++ test error on mingw.
3640         * lib/string.in.h (stpncpy): Use modern idiom.
3641         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
3642         function is missing and that it needs to be replaced.
3643         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
3644         REPLACE_STPNCPY.
3645         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
3646
3647 2010-04-03  Bruno Haible  <bruno@clisp.org>
3648
3649         sys_stat: Fix C++ test error on mingw.
3650         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
3651         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
3652
3653 2010-04-03  Bruno Haible  <bruno@clisp.org>
3654
3655         pty: Update doc.
3656         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
3657
3658 2010-04-03  Bruno Haible  <bruno@clisp.org>
3659
3660         unistd: Fix C++ test error on mingw.
3661         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
3662
3663 2010-04-03  Bruno Haible  <bruno@clisp.org>
3664
3665         Update doc regarding mingw.
3666         * doc/glibc-functions/openpty.texi: Update regarding mingw.
3667         * doc/glibc-functions/login_tty.texi: Likewise.
3668         * doc/glibc-functions/forkpty.texi: Likewise.
3669
3670 2010-04-03  Bruno Haible  <bruno@clisp.org>
3671
3672         stdlib: Avoid compilation failure of c-strtold on mingw.
3673         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
3674
3675 2010-04-03  Bruno Haible  <bruno@clisp.org>
3676
3677         locale: Make C++ tests work on Cygwin and mingw.
3678         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
3679         cannot provide the function.
3680         Reported by Simon Josefsson.
3681
3682 2010-04-03  Bruno Haible  <bruno@clisp.org>
3683
3684         localename: Port to MacOS X 10.6.
3685         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
3686         memory layout of the locales in MacOS X 10.6 as well.
3687         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
3688
3689 2010-04-02  Bruno Haible  <bruno@clisp.org>
3690
3691         gnulib-tool: Ensure that long-running tests are executed last.
3692         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
3693         running tests after the one for the other tests.
3694
3695 2010-04-02  Bruno Haible  <bruno@clisp.org>
3696
3697         gnulib-tool: Ensure the tests in the main directory are executed first.
3698         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
3699         start with the current directory.
3700
3701 2010-04-02  Bruno Haible  <bruno@clisp.org>
3702
3703         Tests for module 'havelib', moved here from GNU gettext.
3704         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
3705         modifications.
3706         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
3707         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
3708         with modifications.
3709         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
3710         modifications.
3711         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
3712         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
3713         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
3714         with modifications.
3715         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
3716         with modifications.
3717         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
3718         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
3719         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
3720         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
3721         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
3722         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
3723         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
3724         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
3725         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
3726         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
3727         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
3728         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
3729         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
3730         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
3731         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
3732         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
3733         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
3734         with modifications.
3735         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
3736         with modifications.
3737         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
3738         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
3739         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
3740         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
3741         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
3742         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
3743         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
3744         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
3745         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
3746         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
3747         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
3748         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
3749         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
3750         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
3751         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
3752         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
3753         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
3754         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
3755         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
3756         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
3757         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
3758         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
3759         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
3760         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
3761         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
3762         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
3763         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
3764         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
3765         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
3766         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
3767         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
3768         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
3769         * tests/havelib/rpathx/rpathx.c: New file, from
3770         gettext/autoconf-lib-link.
3771         * tests/havelib/rpathx/Makefile.am: New file, from
3772         gettext/autoconf-lib-link.
3773         * tests/havelib/rpathx/configure.ac: New file, from
3774         gettext/autoconf-lib-link with modifications.
3775         * tests/havelib/rpathy/rpathy.c: New file, from
3776         gettext/autoconf-lib-link.
3777         * tests/havelib/rpathy/Makefile.am: New file, from
3778         gettext/autoconf-lib-link.
3779         * tests/havelib/rpathy/configure.ac: New file, from
3780         gettext/autoconf-lib-link with modifications.
3781         * tests/havelib/rpathz/rpathz.c: New file, from
3782         gettext/autoconf-lib-link.
3783         * tests/havelib/rpathz/Makefile.am: New file, from
3784         gettext/autoconf-lib-link.
3785         * tests/havelib/rpathz/configure.ac: New file, from
3786         gettext/autoconf-lib-link with modifications.
3787         * tests/havelib/rpathlx/usex.c: New file, from
3788         gettext/autoconf-lib-link.
3789         * tests/havelib/rpathlx/Makefile.am: New file, from
3790         gettext/autoconf-lib-link.
3791         * tests/havelib/rpathlx/configure.ac: New file, from
3792         gettext/autoconf-lib-link with modifications.
3793         * tests/havelib/rpathly/usey.c: New file, from
3794         gettext/autoconf-lib-link.
3795         * tests/havelib/rpathly/Makefile.am: New file, from
3796         gettext/autoconf-lib-link.
3797         * tests/havelib/rpathly/configure.ac: New file, from
3798         gettext/autoconf-lib-link with modifications.
3799         * tests/havelib/rpathlz/usez.c: New file, from
3800         gettext/autoconf-lib-link.
3801         * tests/havelib/rpathlz/Makefile.am: New file, from
3802         gettext/autoconf-lib-link.
3803         * tests/havelib/rpathlz/configure.ac: New file, from
3804         gettext/autoconf-lib-link with modifications.
3805         * tests/havelib/rpathlyx/usey.c: New file, from
3806         gettext/autoconf-lib-link.
3807         * tests/havelib/rpathlyx/Makefile.am: New file, from
3808         gettext/autoconf-lib-link.
3809         * tests/havelib/rpathlyx/configure.ac: New file, from
3810         gettext/autoconf-lib-link with modifications.
3811         * tests/havelib/rpathlzyx/usez.c: New file, from
3812         gettext/autoconf-lib-link.
3813         * tests/havelib/rpathlzyx/Makefile.am: New file, from
3814         gettext/autoconf-lib-link.
3815         * tests/havelib/rpathlzyx/configure.ac: New file, from
3816         gettext/autoconf-lib-link with modifications.
3817         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
3818         with modifications.
3819
3820 2010-04-02  Bruno Haible  <bruno@clisp.org>
3821
3822         gnulib-tool: Create distributed built sources also for the tests.
3823         * gnulib-tool (func_create_testdir): Also generate distributed built
3824         sources in the tests directory.
3825
3826 2010-04-02  Bruno Haible  <bruno@clisp.org>
3827
3828         gnulib-tool: Obey user's environment variables.
3829         * gnulib-tool (func_create_testdir): When creating built sources,
3830         respect the environment variables for autoconf, automake, etc. given by
3831         the user.
3832
3833 2010-04-02  Bruno Haible  <bruno@clisp.org>
3834
3835         gnulib-tool: Provide the value of --m4-base to modules.
3836         * gnulib-tool (func_import, func_create_testdir): Emit a definition
3837         of gl_m4_base.
3838
3839 2010-04-02  Eric Blake  <eblake@redhat.com>
3840
3841         maint.mk: fix some fallout
3842         * NEWS: Document the incompatible change, and its effect on cfg.mk.
3843         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
3844
3845 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
3846
3847         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
3848         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
3849         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
3850         (sc_cast_of_x_alloc_return_value): Likewise.
3851         (sc_cast_of_alloca_return_value): Likewise.
3852         (sc_space_tab): Likewise.
3853         (sc_prohibit_atoi_atof): Likewise.
3854         (sc_prohibit_magic_number_exit): Likewise.
3855         (sc_error_exit_success): Likewise.
3856         (sc_file_system): Likewise.
3857         (sc_prohibit_have_config_h): Likewise.
3858         (sc_require_config_h): Likewise.
3859         (sc_prohibit_HAVE_MBRTOWC): Likewise.
3860         (sc_obsolete_symbols): Likewise.
3861         (sc_changelog): Likewise.
3862         (sc_program_name): Likewise.
3863         (sc_the_the): Likewise.
3864         (sc_trailing_blank): Likewise.
3865         (sc_two_space_separator_in_usage): Likewise.
3866         (sc_useless_cpp_parens): Likewise.
3867         (sc_GPL_version): Likewise.
3868         (sc_GFDL_version): Likewise.
3869         (sc_texinfo_acronym): Likewise.
3870         (sc_prohibit_cvs_keyword): Likewise.
3871         (sc_prohibit_stat_st_blocks): Likewise.
3872         (sc_prohibit_S_IS_definition): Likewise.
3873         (sc_redundant_const): Likewise.
3874         (sc_makefile_TAB_only_indentation): Likewise.
3875         (sc_m4_quote_check): Likewise.
3876         (sc_makefile_path_separator_check): Likewise.
3877         (sc_copyright_check): Likewise.
3878         (sc_Wundef_boolean): Likewise.
3879         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
3880
3881         maint.mk: match 0 or more whitespace-before-function-call '('
3882         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
3883         that have zero or two-and-more spaces between the function name
3884         and the open parenthesis.
3885         (sc_error_message_warn_fatal): Likewise.
3886         (sc_error_message_uppercase): Likewise.
3887         (sc_error_message_period): Likewise.
3888
3889 2010-03-31  Eric Blake  <eblake@redhat.com>
3890
3891         maint.mk: check for [ as well as test
3892         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
3893         Based on a libvirt report by Matthias Bolte.
3894
3895         gnumakefile: don't squelch _version output
3896         * top/GNUmakefile (_version): Create one-shot dependency rather
3897         than using $(shell) when version must be regenerated.
3898         (_autoreconf): Run verbosely, by default.
3899
3900         sys_time: avoid compiler warnings
3901         * lib/sys_time.in.h (includes): Ensure gcc pragma is
3902         unconditional, fixing regression from 2010-03-29.
3903         Reported by Simon Josefsson.
3904
3905 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
3906
3907         maint.mk: s/_header_without_use/_sc_header_without_use/
3908         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
3909         (sc_prohibit_assert_without_use): Use the new name.
3910         (sc_prohibit_close_stream_without_use): Likewise.
3911         (sc_prohibit_getopt_without_use): Likewise.
3912         (sc_prohibit_quotearg_without_use): Likewise.
3913         (sc_prohibit_quote_without_use): Likewise.
3914         (sc_prohibit_long_options_without_use): Likewise.
3915         (sc_prohibit_inttostr_without_use): Likewise.
3916         (sc_prohibit_ignore_value_without_use): Likewise.
3917         (sc_prohibit_error_without_use): Likewise.
3918         (sc_prohibit_xalloc_without_use): Likewise.
3919         (sc_prohibit_hash_without_use): Likewise.
3920         (sc_prohibit_hash_pjw_without_use): Likewise.
3921         (sc_prohibit_safe_read_without_use): Likewise.
3922         (sc_prohibit_argmatch_without_use): Likewise.
3923         (sc_prohibit_canonicalize_without_use): Likewise.
3924         (sc_prohibit_root_dev_ino_without_use): Likewise.
3925         (sc_prohibit_openat_without_use): Likewise.
3926         (sc_prohibit_c_ctype_without_use): Likewise.
3927         (sc_prohibit_signal_without_use): Likewise.
3928         (sc_prohibit_intprops_without_use): Likewise.
3929
3930 2010-03-30  Eric Blake  <eblake@redhat.com>
3931
3932         maint: improve module indicators
3933         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
3934         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
3935         columns, and avoid extra macro expansion.
3936
3937         fdopendir: work around FreeBSD bug
3938         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
3939         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
3940         * modules/dirent (Makefile.am): Substitute it.
3941         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
3942         declaration.
3943         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
3944         fix.
3945         Reported by Christian Weisgerber <naddy@mips.inka.de>.
3946
3947 2010-03-29  Bruno Haible  <bruno@clisp.org>
3948
3949         Emit #pragma system_header after the inclusion guard, not before.
3950         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
3951         guard that spans the entire file, not before. This enables an
3952         optimization in GCC's preprocessor.
3953         * lib/ctype.in.h: Likewise.
3954         * lib/dirent.in.h: Likewise.
3955         * lib/errno.in.h: Likewise.
3956         * lib/float.in.h: Likewise.
3957         * lib/getopt.in.h: Likewise.
3958         * lib/iconv.in.h: Likewise.
3959         * lib/langinfo.in.h: Likewise.
3960         * lib/locale.in.h: Likewise.
3961         * lib/math.in.h: Likewise.
3962         * lib/netdb.in.h: Likewise.
3963         * lib/netinet_in.in.h: Likewise.
3964         * lib/pty.in.h: Likewise.
3965         * lib/sched.in.h: Likewise.
3966         * lib/se-selinux.in.h: Likewise.
3967         * lib/search.in.h: Likewise.
3968         * lib/spawn.in.h: Likewise.
3969         * lib/stdarg.in.h: Likewise.
3970         * lib/stdint.in.h: Likewise.
3971         * lib/string.in.h: Likewise.
3972         * lib/strings.in.h: Likewise.
3973         * lib/sys_file.in.h: Likewise.
3974         * lib/sys_ioctl.in.h: Likewise.
3975         * lib/sys_time.in.h: Likewise.
3976         * lib/sys_times.in.h: Likewise.
3977         * lib/sys_utsname.in.h: Likewise.
3978         * lib/sys_wait.in.h: Likewise.
3979         * lib/sysexits.in.h: Likewise.
3980         * lib/wctype.in.h: Likewise.
3981
3982 2010-03-28  James Youngman  <jay@gnu.org>
3983
3984         save-cwd: don't leak a file descriptor when the caller execs.
3985         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
3986         saved file descriptor.
3987         * modules/save-cwd (Depends-on): Depend on cloexec.
3988
3989 2010-03-29  Bruno Haible  <bruno@clisp.org>
3990
3991         Remove vestiges of fts-lgpl module.
3992         * lib/fts_.h: Assume GNULIB_FTS is 1.
3993         * lib/fts.c: Likewise.
3994         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
3995
3996 2010-03-28  Bruno Haible  <bruno@clisp.org>
3997
3998         Fix definition of tests witness macro.
3999         * gnulib-tool (func_import): Fix definition of witness macro.
4000
4001 2010-03-28  Bruno Haible  <bruno@clisp.org>
4002
4003         Fix ioctl's protoype on glibc systems.
4004         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
4005         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
4006         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
4007         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
4008         signature. If not, arrange to replace the ioctl function.
4009         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
4010         REPLACE_IOCTL.
4011         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
4012         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
4013         Reported by Ludovic Courtès <ludo@gnu.org>.
4014
4015 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
4016
4017         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
4018         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
4019         made it so grep -r --include=GLOB* ... did not work.
4020
4021 2010-03-26  Jim Meyering  <meyering@redhat.com>
4022             Eric Blake  <eblake@redhat.com>
4023
4024         maint.mk: prohibit use of test's -o and -a operators
4025         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
4026
4027 2010-03-28  Bruno Haible  <bruno@clisp.org>
4028
4029         Remove unused GNULIB_XYZ macro definitions.
4030         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
4031         invocation.
4032
4033 2010-03-28  Bruno Haible  <bruno@clisp.org>
4034
4035         Mark privileged tests modules.
4036         * modules/idpriv-drop-tests (Status): New section.
4037         * modules/idpriv-droptemp-tests (Status): New section.
4038
4039 2010-03-28  Bruno Haible  <bruno@clisp.org>
4040
4041         Split C++ tests into separate tests modules.
4042         * modules/dirent-c++-tests: New file, extracted from
4043         modules/dirent-tests.
4044         * modules/dirent-tests: Depend on it.
4045         * modules/fcntl-h-c++-tests: New file, extracted from
4046         modules/fcntl-h-tests.
4047         * modules/fcntl-h-tests: Depend on it.
4048         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
4049         * modules/glob-tests: Depend on it.
4050         * modules/iconv-h-c++-tests: New file, extracted from
4051         modules/iconv-h-tests.
4052         * modules/iconv-h-tests: Depend on it.
4053         * modules/langinfo-c++-tests: New file, extracted from
4054         modules/langinfo-tests.
4055         * modules/langinfo-tests: Depend on it.
4056         * modules/locale-c++-tests: New file, extracted from
4057         modules/locale-tests.
4058         * modules/locale-tests: Depend on it.
4059         * modules/math-c++-tests: New file, extracted from modules/math-tests.
4060         * modules/math-tests: Depend on it.
4061         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
4062         * modules/pty-tests: Depend on it.
4063         * modules/search-c++-tests: New file, extracted from
4064         modules/search-tests.
4065         * modules/search-tests: Depend on it.
4066         * modules/signal-c++-tests: New file, extracted from
4067         modules/signal-tests.
4068         * modules/signal-tests: Depend on it.
4069         * modules/spawn-c++-tests: New file, extracted from
4070         modules/spawn-tests.
4071         * modules/spawn-tests: Depend on it.
4072         * modules/stdio-c++-tests: New file, extracted from
4073         modules/stdio-tests.
4074         * modules/stdio-tests: Depend on it.
4075         * modules/stdlib-c++-tests: New file, extracted from
4076         modules/stdlib-tests.
4077         * modules/stdlib-tests: Depend on it.
4078         * modules/string-c++-tests: New file, extracted from
4079         modules/string-tests.
4080         * modules/string-tests: Depend on it.
4081         * modules/sys_ioctl-c++-tests: New file, extracted from
4082         modules/sys_ioctl-tests.
4083         * modules/sys_ioctl-tests: Depend on it.
4084         * modules/sys_select-c++-tests: New file, extracted from
4085         modules/sys_select-tests.
4086         * modules/sys_select-tests: Depend on it.
4087         * modules/sys_socket-c++-tests: New file, extracted from
4088         modules/sys_socket-tests.
4089         * modules/sys_socket-tests: Depend on it.
4090         * modules/sys_stat-c++-tests: New file, extracted from
4091         modules/sys_stat-tests.
4092         * modules/sys_stat-tests: Depend on it.
4093         * modules/sys_time-c++-tests: New file, extracted from
4094         modules/sys_time-tests.
4095         * modules/sys_time-tests: Depend on it.
4096         * modules/time-c++-tests: New file, extracted from modules/time-tests.
4097         * modules/time-tests: Depend on it.
4098         * modules/unistd-c++-tests: New file, extracted from
4099         modules/unistd-tests.
4100         * modules/unistd-tests: Depend on it.
4101         * modules/wchar-c++-tests: New file, extracted from
4102         modules/wchar-tests.
4103         * modules/wchar-tests: Depend on it.
4104         * modules/wctype-c++-tests: New file, extracted from
4105         modules/wctype-tests.
4106         * modules/wctype-tests: Depend on it.
4107         Reported by Simon Josefsson.
4108
4109 2010-03-28  Bruno Haible  <bruno@clisp.org>
4110
4111         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
4112         * gnulib-tool (func_exists_module): New function, extracted from
4113         func_verify_module.
4114         (func_verify_module): Use it.
4115         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
4116         'foo' only if 'foo' exists.
4117         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
4118         module.
4119
4120 2010-03-28  Bruno Haible  <bruno@clisp.org>
4121
4122         gnulib-tool: Add support for special categories of tests.
4123         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
4124         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
4125         (func_usage): Document them.
4126         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
4127         inc_unportable_tests, inc_all_tests): New variables.
4128         (func_acceptable): Consider these variables.
4129         (func_modules_transitive_closure): Make it work when the 'Status' field
4130         consists of multiple words.
4131         (func_import): Store and restore the values of inc_cxx_tests,
4132         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
4133         inc_all_tests in gnulib-comp.m4.
4134         (func_create_testdir): Set inc_all_tests to true.
4135         * doc/gnulib.texi (Extra tests modules): New section.
4136         Suggested by Jim Meyering.
4137
4138 2010-03-28  Bruno Haible  <bruno@clisp.org>
4139
4140         ansi-c++-opt: Allow turning off the C++ build by default.
4141         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
4142         gl_CXX_CHOICE_DEFAULT_NO is defined.
4143         Requested by Eric Blake.
4144
4145 2010-03-28  Bruno Haible  <bruno@clisp.org>
4146
4147         unistd: Avoid #define replacements in C++ mode.
4148         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
4149         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
4150         setsockopt, shutdown, select): In C++, attach a warning to the function
4151         if possible, rather than #defining the symbol to a dysfunctional alias.
4152         Reported by John W. Eaton <jwe@gnu.org>.
4153
4154 2010-03-28  Bruno Haible  <bruno@clisp.org>
4155
4156         Fix link errors on mingw.
4157         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
4158         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
4159         $(LIBSOCKET).
4160         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
4161         $(LIBSOCKET).
4162
4163 2010-03-28  Bruno Haible  <bruno@clisp.org>
4164             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4165
4166         lib-ignore: Determine different options for different compilers.
4167         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
4168         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
4169         Add comments.
4170         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
4171         * NEWS: Mention the change.
4172
4173 2010-03-27  Bruno Haible  <bruno@clisp.org>
4174
4175         Remove unused GNULIB_XYZ macro definitions.
4176         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
4177         * modules/fseek (configure.ac): Likewise.
4178         * modules/ioctl (configure.ac): Likewise.
4179         * modules/open (configure.ac): Likewise.
4180         * modules/stdlib-safer (configure.ac): Likewise.
4181
4182 2010-03-27  Bruno Haible  <bruno@clisp.org>
4183
4184         Add a remark about certain modules.
4185         * modules/malloc (Comment): New section.
4186         * modules/realloc (Comment): Likewise.
4187         * modules/sigpipe (Comment): Likewise.
4188
4189 2010-03-27  Bruno Haible  <bruno@clisp.org>
4190
4191         Resolve conflict between the two kinds of module indicators.
4192         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
4193         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
4194         * modules/canonicalize (configure.ac): Invoke
4195         gl_MODULE_INDICATOR_FOR_TESTS.
4196         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
4197         GNULIB_XYZ.
4198         * tests/test-dirent-c++.cc: Likewise.
4199         * tests/test-dirent-safer.c: Likewise.
4200         * tests/test-dup2.c: Likewise.
4201         * tests/test-fchdir.c: Likewise.
4202         * tests/test-fcntl-h-c++.cc: Likewise.
4203         * tests/test-getopt.c: Likewise.
4204         * tests/test-getopt.h: Likewise.
4205         * tests/test-langinfo-c++.cc: Likewise.
4206         * tests/test-locale-c++.cc: Likewise.
4207         * tests/test-math-c++.cc: Likewise.
4208         * tests/test-pty-c++.cc: Likewise.
4209         * tests/test-search-c++.cc: Likewise.
4210         * tests/test-signal-c++.cc: Likewise.
4211         * tests/test-spawn-c++.cc: Likewise.
4212         * tests/test-stdio-c++.cc: Likewise.
4213         * tests/test-stdlib-c++.cc: Likewise.
4214         * tests/test-string-c++.cc: Likewise.
4215         * tests/test-sys_ioctl-c++.cc: Likewise.
4216         * tests/test-sys_select-c++.cc: Likewise.
4217         * tests/test-sys_socket-c++.cc: Likewise.
4218         * tests/test-sys_stat-c++.cc: Likewise.
4219         * tests/test-sys_time-c++.cc: Likewise.
4220         * tests/test-time-c++.cc: Likewise.
4221         * tests/test-unistd-c++.cc: Likewise.
4222         * tests/test-wchar-c++.cc: Likewise.
4223         * tests/uninorm/test-u8-nfc.c: Likewise.
4224         * tests/uninorm/test-u8-nfd.c: Likewise.
4225         * tests/uninorm/test-u8-nfkc.c: Likewise.
4226         * tests/uninorm/test-u8-nfkd.c: Likewise.
4227         * tests/uninorm/test-u16-nfc.c: Likewise.
4228         * tests/uninorm/test-u16-nfd.c: Likewise.
4229         * tests/uninorm/test-u16-nfkc.c: Likewise.
4230         * tests/uninorm/test-u16-nfkd.c: Likewise.
4231         * tests/uninorm/test-u32-nfc.c: Likewise.
4232         * tests/uninorm/test-u32-nfc-big.c: Likewise.
4233         * tests/uninorm/test-u32-nfd.c: Likewise.
4234         * tests/uninorm/test-u32-nfd-big.c: Likewise.
4235         * tests/uninorm/test-u32-nfkc.c: Likewise.
4236         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
4237         * tests/uninorm/test-u32-nfkd.c: Likewise.
4238         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
4239         * tests/uninorm/test-u32-normalize-big.c: Likewise.
4240
4241 2010-03-27  Bruno Haible  <bruno@clisp.org>
4242
4243         Distinguish two kinds of module indicators.
4244         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
4245         gl_MODULE_INDICATOR.
4246         (gl_MODULE_INDICATOR): New macro.
4247         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
4248         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
4249         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
4250         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
4251         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
4252         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
4253         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
4254         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
4255         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
4256         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
4257         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
4258         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
4259         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
4260         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
4261         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
4262         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
4263         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
4264         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
4265         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
4266         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
4267         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
4268         * modules/cloexec (configure.ac): Likewise.
4269         * modules/getopt-gnu (configure.ac): Likewise.
4270         * modules/uninorm/u8-normalize (configure.ac): Likewise.
4271         * modules/uninorm/u16-normalize (configure.ac): Likewise.
4272         * modules/uninorm/u32-normalize (configure.ac): Likewise.
4273         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
4274
4275 2010-03-27  Bruno Haible  <bruno@clisp.org>
4276
4277         New module description field 'Comment'.
4278         * gnulib-tool: New option --extract-comment.
4279         (func_usage): Document it.
4280         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
4281         (func_get_comment): New function.
4282         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
4283
4284 2010-03-27  Bruno Haible  <bruno@clisp.org>
4285
4286         Addendum to 2010-02-07 commit.
4287         * gnulib-tool (func_usage): Document --extract-applicability option.
4288
4289 2010-03-27  Bruno Haible  <bruno@clisp.org>
4290
4291         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
4292         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
4293         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
4294         rather than link errors.
4295
4296 2010-03-27  Bruno Haible  <bruno@clisp.org>
4297
4298         Avoid side effects from tests-related modules on the compilation of lib.
4299         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
4300         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
4301         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
4302         parameter. Emit into AM_CPPFLAGS a definition of the designated C
4303         macro.
4304         (func_import): Define a witness macro. Assign it a value that depends
4305         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
4306         tests-related modules.
4307         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
4308         Reported by Jim Meyering.
4309
4310 2010-03-27  Bruno Haible  <bruno@clisp.org>
4311
4312         Factorize common .m4 code.
4313         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
4314         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
4315         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
4316         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
4317         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
4318         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
4319         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
4320         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
4321         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
4322         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
4323         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
4324         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
4325         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
4326         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
4327         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
4328         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
4329         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
4330         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
4331         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
4332         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
4333         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
4334         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
4335         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
4336         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
4337         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
4338         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
4339         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
4340         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
4341         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
4342         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
4343         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
4344         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
4345
4346 2010-03-27  Bruno Haible  <bruno@clisp.org>
4347
4348         Fix a compilation error on Cygwin with g++ >= 4.3.
4349         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
4350         if it is undefined or if we alias it to chmod.
4351         (lstat): Don't warn about the use of this function if it is undefined
4352         or if we alias it to stat.
4353         Reported by Simon Josefsson.
4354
4355 2010-03-27  Bruno Haible  <bruno@clisp.org>
4356
4357         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
4358         * modules/getlogin (configure.ac): Update.
4359
4360         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
4361         * modules/getlogin_r (configure.ac): Update.
4362
4363         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
4364         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
4365         * modules/inet_ntop (configure.ac): Update.
4366
4367         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
4368         * modules/inet_pton (configure.ac): Update.
4369
4370         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
4371         * modules/mbslen (configure.ac): Update.
4372
4373         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
4374         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
4375         * modules/forkpty (configure.ac): Update.
4376         * modules/openpty (configure.ac): Update.
4377
4378 2010-03-26  Simon Josefsson  <simon@josefsson.org>
4379
4380         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
4381         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
4382
4383 2010-03-25  Eric Blake  <eblake@redhat.com>
4384
4385         maint: use pragma consistently across replacement headers
4386         * lib/ctype.in.h (system_header): Hoist for consistent placement.
4387         * lib/dirent.in.h (system_header): Likewise.
4388         * lib/errno.in.h (system_header): Likewise.
4389         * lib/float.in.h (system_header): Likewise.
4390         * lib/getopt.in.h (system_header): Likewise.
4391         * lib/iconv.in.h (system_header): Likewise.
4392         * lib/inttypes.in.h (system_header): Likewise.
4393         * lib/langinfo.in.h (system_header): Likewise.
4394         * lib/locale.in.h (system_header): Likewise.
4395         * lib/math.in.h (system_header): Likewise.
4396         * lib/netdb.in.h (system_header): Likewise.
4397         * lib/netinet_in.in.h (system_header): Likewise.
4398         * lib/pty.in.h (system_header): Likewise.
4399         * lib/sched.in.h (system_header): Likewise.
4400         * lib/se-selinux.in.h (system_header): Likewise.
4401         * lib/search.in.h (system_header): Likewise.
4402         * lib/spawn.in.h (system_header): Likewise.
4403         * lib/stdarg.in.h (system_header): Likewise.
4404         * lib/stdint.in.h (system_header): Likewise.
4405         * lib/string.in.h (system_header): Likewise.
4406         * lib/strings.in.h (system_header): Likewise.
4407         * lib/sys_file.in.h (system_header): Likewise.
4408         * lib/sys_ioctl.in.h (system_header): Likewise.
4409         * lib/sys_socket.in.h (system_header): Likewise.
4410         * lib/sys_times.in.h (system_header): Likewise.
4411         * lib/sys_utsname.in.h (system_header): Likewise.
4412         * lib/sys_wait.in.h (system_header): Likewise.
4413         * lib/sysexits.in.h (system_header): Likewise.
4414         * lib/unistd.in.h (system_header): Likewise.
4415         * lib/wctype.in.h (system_header): Likewise.
4416
4417         arpa/inet: fix mingw compilation warning
4418         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
4419         Reported by Matthew Bolte.
4420
4421 2010-03-25  Bruno Haible  <bruno@clisp.org>
4422
4423         Avoid collision between gnulib wrapper and libintl wrapper.
4424         * lib/printf.c (printf): Don't define if a printf wrapper is already
4425         defined in intl/printf.c.
4426         Reported by Michel Boaventura <michel@michelboaventura.com>.
4427
4428 2010-03-25  Bruno Haible  <bruno@clisp.org>
4429
4430         Use ANSI C.
4431         * lib/readutmp.h (getutent): Provide ANSI C prototype.
4432
4433 2010-03-25  Bruno Haible  <bruno@clisp.org>
4434
4435         Minor formatting changes.
4436         * lib/acosl.c: Insert space before function argument list.
4437         * lib/argz.c: Likewise.
4438         * lib/asinl.c: Likewise.
4439         * lib/expl.c: Likewise.
4440         * lib/gen-uni-tables.c: Likewise.
4441         * lib/gettext.h: Likewise.
4442         * lib/glthread/lock.h: Likewise.
4443         * lib/tanl.c: Likewise.
4444         * lib/uniname/uniname.c: Likewise.
4445         * tests/test-idpriv-drop.c: Likewise.
4446         * tests/test-idpriv-droptemp.c: Likewise.
4447         * tests/test-lock.c: Likewise.
4448         * tests/test-tls.c: Likewise.
4449         * lib/argp-help.c: Insert space before function-like macro argument
4450         list.
4451         * lib/memcmp.c: Likewise.
4452         * tests/test-base64.c: Likewise.
4453         * lib/localename.c: Insert space before sizeof's argument list.
4454         * lib/safe-alloc.h: Likewise.
4455         * lib/file-set.h: Insert space before macro argument list.
4456         * tests/test-argp.c: Likewise.
4457         * lib/argp-namefrob.h: Insert space before function parameter list.
4458         * lib/getaddrinfo.c: Likewise.
4459         * lib/netdb.in.h: Likewise.
4460         * lib/parse-duration.h: Likewise.
4461         * lib/parse-duration.c: Likewise.
4462         * lib/poll.c: Likewise.
4463         * lib/select.c: Likewise.
4464         * lib/trim.h: Likewise.
4465         * tests/test-usleep.c: Likewise.
4466         * lib/ldexpl.c: Insert space before function parameter list and before
4467         function argument list.
4468         * lib/logl.c: Likewise.
4469         * lib/sqrtl.c: Likewise.
4470         * lib/trim.c: Likewise.
4471         * lib/cosl.c: Use GNU style indentation. Insert space before function
4472         argument list.
4473         * lib/sinl.c: Likewise.
4474         * lib/tsearch.c: Insert space after 'for'.
4475         Reported by Jim Meyering.
4476
4477 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
4478
4479         * maint.mk (sc_Wundef_boolean): Check for the presence of the
4480         config header before grepping, as it's not present before
4481         autoreconf/configure are run.  Reported by Simon Josefsson.
4482
4483 2010-03-23  Bruno Haible  <bruno@clisp.org>
4484
4485         pt_chown: Make it work with automake < 1.11.
4486         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
4487         Reported by Simon Josefsson.
4488
4489 2010-03-23  Bruno Haible  <bruno@clisp.org>
4490
4491         pt_chown: Don't depend on GPLed modules.
4492         * lib/pt_chown.c: Don't include idpriv.h.
4493         (main): Don't drop privileges.
4494         * modules/pt_chown (Depends-on): Remove idpriv-drop.
4495         Reported by Simon Josefsson.
4496
4497 2010-03-24  Simon Josefsson  <simon@josefsson.org>
4498
4499         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
4500         suggestions from karl@freefriends.org (Karl Berry).
4501
4502 2010-03-22  Eric Blake  <eblake@redhat.com>
4503
4504         gethostname: further tweaks
4505         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
4506         are overriding gethostname.
4507         Suggested by Bruno Haible.
4508
4509 2010-03-21  Bruno Haible  <bruno@clisp.org>
4510
4511         Fix comments.
4512         * lib/forkpty.c (rpl_forkpty): Fix comment.
4513         * lib/openpty.c (rpl_openpty): Likewise.
4514         Reported by Eric Blake.
4515
4516 2010-03-22  Eric Blake  <eblake@redhat.com>
4517
4518         gethostname: fix build on mingw
4519         * lib/unistd.in.h (includes): Work around fact that mingw
4520         <winsock2.h> re-includes <unistd.h>, by avoiding any
4521         redeclarations if we are being included by <winsock2.h>.
4522         Reported by Matthias Bolte.
4523
4524 2010-03-21  Bruno Haible  <bruno@clisp.org>
4525
4526         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
4527         * lib/forkpty.c (forkpty): New replacement function, from glibc with
4528         modifications.
4529         * lib/pty.in.h (forkpty): Update declaration. Add comments.
4530         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
4531         provide the replacement.
4532         * modules/forkpty (Depends-on): Add openpty, login_tty.
4533         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
4534         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
4535         * doc/glibc-functions/forkpty.texi: More supported platforms.
4536         * config/srclist.txt: Add forkpty.c (commented).
4537
4538 2010-03-21  Bruno Haible  <bruno@clisp.org>
4539
4540         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
4541         (Makefile.am): Verify that PTY_LIB is defined.
4542
4543         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
4544
4545 2010-03-21  Bruno Haible  <bruno@clisp.org>
4546
4547         Tests for module 'login_tty'.
4548         * modules/login_tty-tests: New file.
4549         * tests/test-login_tty.c: New file.
4550
4551         New module 'login_tty'.
4552         * lib/login_tty.c: New file.
4553         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
4554         * modules/login_tty: New file.
4555         * doc/glibc-functions/login_tty.texi: Mention the new module.
4556
4557 2010-03-21  Bruno Haible  <bruno@clisp.org>
4558
4559         login_tty: Documentation.
4560         * doc/glibc-functions/login_tty.texi: New file.
4561         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
4562
4563 2010-03-21  Bruno Haible  <bruno@clisp.org>
4564
4565         pty: Consistent macro naming.
4566         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
4567         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
4568         * modules/pty (configure.ac): Update.
4569
4570 2010-03-21  Bruno Haible  <bruno@clisp.org>
4571
4572         Tests for openpty: Make stricter.
4573         * tests/test-openpty.c (main): Add test of canonical processing and
4574         erase.
4575         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
4576
4577         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
4578         * lib/openpty.c (openpty): New replacement function.
4579         * lib/pty.in.h: Include <termios.h>.
4580         (openpty): Update declaration. Add comments.
4581         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
4582         is not declared, arrange to provide the replacement. Check for _getpty
4583         and posix_openpt.
4584         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
4585         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
4586         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
4587         * modules/pty-tests (test_pty_c___LDADD): New variable.
4588         * doc/glibc-functions/openpty.texi: More supported platforms.
4589
4590 2010-03-21  Bruno Haible  <bruno@clisp.org>
4591
4592         setenv: Tweaks.
4593         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
4594         the test program.
4595         * doc/posix-functions/setenv.texi: Update platforms list.
4596
4597 2010-03-21  Bruno Haible  <bruno@clisp.org>
4598
4599         New module 'unlockpt'.
4600         * lib/unlockpt.c: New file, from glibc with modifications.
4601         * m4/unlockpt.m4: New file.
4602         * modules/unlockpt: New file.
4603         * lib/stdlib.in.h (unlockpt): New declaration.
4604         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
4605         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
4606         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
4607         HAVE_UNLOCKPT.
4608         * doc/posix-functions/unlockpt.texi: Mention the new module.
4609         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
4610         * config/srclist.txt: Add unlockpt.c (commented).
4611
4612 2010-03-21  Jim Meyering  <meyering@redhat.com>
4613
4614         maint.mk: prohibit inclusion of "intprops.h" without use
4615         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
4616
4617 2010-03-21  Bruno Haible  <bruno@clisp.org>
4618
4619         New module 'grantpt'.
4620         * lib/grantpt.c: New file, from glibc with modifications.
4621         * m4/grantpt.m4: New file.
4622         * modules/grantpt: New file.
4623         * lib/stdlib.in.h (grantpt): New declaration.
4624         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
4625         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
4626         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
4627         HAVE_GRANTPT.
4628         * doc/posix-functions/grantpt.texi: Mention the new module.
4629         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
4630         * config/srclist.txt: Add grantpt.c (commented).
4631
4632 2010-03-21  Bruno Haible  <bruno@clisp.org>
4633
4634         New module 'pt_chown'.
4635         * lib/pt_chown.c: New file, from glibc with modifications.
4636         * lib/pty-private.h: New file, from glibc with modifications.
4637         * modules/pt_chown: New file.
4638         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
4639
4640 2010-03-21  Bruno Haible  <bruno@clisp.org>
4641
4642         Tests for module 'ptsname'.
4643         * modules/ptsname-tests: New file.
4644         * tests/test-ptsname.c: New file.
4645
4646         New module 'ptsname'.
4647         * lib/ptsname.c: New file, from glibc with modifications.
4648         * m4/ptsname.m4: New file.
4649         * modules/ptsname: New file.
4650         * lib/stdlib.in.h (ptsname): New declaration.
4651         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
4652         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
4653         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
4654         HAVE_PTSNAME.
4655         * doc/posix-functions/ptsname.texi: Mention the new module.
4656         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
4657         * config/srclist.txt: Add ptsname.c (commented).
4658
4659 2010-03-21  Bruno Haible  <bruno@clisp.org>
4660
4661         Tests for module 'ttyname_r'.
4662         * modules/ttyname_r-tests: New file.
4663         * tests/test-ttyname_r.c: New file.
4664
4665         New module 'ttyname_r'.
4666         * lib/ttyname_r.c: New file.
4667         * m4/ttyname_r.m4: New file.
4668         * modules/ttyname_r: New file.
4669         * lib/unistd.in.h (ttyname_r): New declaration.
4670         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
4671         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
4672         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
4673         HAVE_TTYNAME_R.
4674         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
4675         * doc/posix-functions/ttyname_r.texi: Mention the new module.
4676
4677 2010-03-20  Bruno Haible  <bruno@clisp.org>
4678
4679         signal: Undefine macro definitions in C++ mode.
4680         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
4681         sigfillset): Undefine macro definitions from the system header in C++
4682         mode.
4683         Reported by John W. Eaton <jwe@gnu.org>.
4684
4685 2010-03-20  Bruno Haible  <bruno@clisp.org>
4686
4687         Ensure no #include statements inside extern "C" { ... }.
4688         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
4689         contain #include statements.
4690         * lib/time.in.h: Likewise.
4691
4692 2010-03-20  Bruno Haible  <bruno@clisp.org>
4693
4694         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
4695         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
4696         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
4697         Reported by John W. Eaton <jwe@gnu.org>.
4698
4699 2010-03-20  Bruno Haible  <bruno@clisp.org>
4700
4701         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
4702         Reported by Jim Meyering.
4703
4704 2010-03-20  Bruno Haible  <bruno@clisp.org>
4705
4706         pipe: Set errno upon failure.
4707         * lib/pipe.h: Specify that when -1 is returned, errno is set.
4708         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
4709         errno value in error message.
4710
4711 2010-03-20  Bruno Haible  <bruno@clisp.org>
4712             Jim Meyering  <meyering@redhat.com>
4713
4714         lchown: Avoid "unused variable" warning.
4715         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
4716
4717 2010-03-20  Bruno Haible  <bruno@clisp.org>
4718
4719         Work around unlink() bug on MacOS X 10.5.6.
4720         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
4721         attempting to unlink a parent directory.
4722         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
4723         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
4724         activate for the replacement function.
4725         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
4726
4727 2010-03-20  Bruno Haible  <bruno@clisp.org>
4728
4729         Fix link errors on Solaris 8.
4730         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
4731         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
4732
4733 2010-03-19  Jim Meyering  <meyering@redhat.com>
4734
4735         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
4736         The _LIBC implementation of build_range_exp correctly honors the
4737         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
4738         However, the non-_LIBC implementation would ignore that syntax-bit
4739         flag and return REG_ERANGE unconditionally.
4740         This change makes it honor that flag.
4741         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
4742         Make two pointer parameters "const".
4743         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
4744         (parse_bracket_exp): Update caller.
4745
4746         regex.m4: correct the reversed range endpoint ([b-a]) test
4747         * m4/regex.m4: When requiring that [b-a] evoke failure,
4748         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
4749         test pass once again for x86-based systems.
4750
4751 2010-03-19  Bruno Haible  <bruno@clisp.org>
4752
4753         scandir: Fix link error on Solaris 8.
4754         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
4755         macros.
4756
4757 2010-03-19  Bruno Haible  <bruno@clisp.org>
4758
4759         getusershell: Fix documentation.
4760         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
4761         module.
4762         * doc/glibc-functions/setusershell.texi: Likewise.
4763
4764         getusershell: Provide declaration, missing on Solaris 9.
4765         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
4766         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
4767         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
4768         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
4769         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
4770         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
4771         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
4772         HAVE_GETUSERSHELL.
4773         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
4774
4775 2010-03-19  Bruno Haible  <bruno@clisp.org>
4776
4777         wctype: Provide iswblank function.
4778         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
4779         exists and is fine.
4780         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
4781         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
4782         * tests/test-wctype.c (main): Re-enable the iswblank tests.
4783         * doc/posix-functions/iswblank.texi: Update.
4784
4785 2010-03-19  Bruno Haible  <bruno@clisp.org>
4786
4787         Tests of module 'pty' in C++ mode.
4788         * modules/pty-tests: New file.
4789         * tests/test-pty-c++.cc: New file.
4790         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
4791
4792 2010-03-19  Eric Blake  <eblake@redhat.com>
4793
4794         logb: fix documentation
4795         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
4796         1.5 declaration bug.
4797
4798         forkpty, openpty: prefer glibc's const-safe prototype
4799         * lib/forkpty.c (rpl_forkpty): New file.
4800         * lib/openpty.c (rpl_openpty): Likewise.
4801         * modules/forkpty (Files): Distribute it.
4802         * modules/openpty (Files): Likewise.
4803         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
4804         check...
4805         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
4806         replacement for for non-const BSD signature.
4807         * modules/pty (Makefile.am): Substitute witnesses.
4808         * lib/pty.in.h (forkpty, openpty): Declare replacements.
4809         * tests/test-forkpty.c: Update signature check.
4810         * tests/test-openpty.c: Likewise.
4811         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
4812         * doc/glibc-functions/openpty.texi (openpty): Likewise.
4813
4814         forkpty, openpty: split functions into new modules
4815         * modules/pty (Makefile.am): Substitute new witnesses.
4816         (Libraries): Move library detection...
4817         * modules/forkpty: ...into new module.
4818         * modules/openpty: Another new module.
4819         * modules/pty-tests: Rename and split...
4820         * modules/forkpty-tests: ...to this...
4821         * modules/openpty-tests: ...and this.
4822         * tests/test-pty.c: Rename and split...
4823         * tests/test-forkpty.c: ...to this...
4824         * tests/test-openpty.c: ...and this.
4825         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
4826         (gl_PTY): Split library searching...
4827         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
4828         (gl_FORKPTY, gl_OPENPTY): New macros.
4829         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
4830         * NEWS: Mention the split.
4831         * MODULES.html.sh (Misc): Document the modules.
4832         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
4833         * doc/glibc-functions/openpty.texi (openpty): Likewise.
4834
4835         pty: improve replacement header
4836         * lib/pty.in.h: New file.
4837         * modules/pty (Files): Ship it.
4838         (Makefile.am): Always build replacement.
4839         * m4/pty.m4: Rename...
4840         * m4/pty_h.m4: ...to this.
4841         (gl_PTY): Modernize setting of witness macros; update check of
4842         forkpty to take proper advantage of cache.
4843         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
4844
4845         getopt: avoid compiler warning
4846         * lib/getopt.c (attribute_hidden): Remove unused macro.
4847
4848 2010-03-18  Bruno Haible  <bruno@clisp.org>
4849
4850         Fix link errors on Solaris 8.
4851         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
4852         * modules/search-tests (test_search_c___LDADD): Likewise.
4853         * modules/signal-tests (test_signal_c___LDADD): Likewise.
4854         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
4855         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
4856         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
4857         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
4858         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
4859         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
4860
4861 2010-03-18  Bruno Haible  <bruno@clisp.org>
4862
4863         Fix bug introduced on 2010-03-14.
4864         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
4865         (gl_SPAWN_H): Require it.
4866         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
4867         Reported by Simon Josefsson.
4868
4869 2010-03-18  Bruno Haible  <bruno@clisp.org>
4870
4871         Fix typo introduced on 2009-12-31.
4872         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
4873         posix_spawn_file_actions_adddup2.
4874
4875 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
4876         and Eric Blake  <eblake@redhat.com>
4877
4878         test-vc-list-files-git: make more robust
4879         * tests/test-vc-list-files-git.sh: Unset problematic environment
4880         variables.  Chain commands together.
4881
4882 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
4883
4884         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
4885         `AC_CHECK_DECL' invocation.
4886
4887 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
4888
4889         * lib/inttostr.c (inttostr): Make sure the invocation of verify
4890         appears before executable statements. Suggested by Petr Sumbera
4891         <Petr.Sumbera@Sun.COM>.
4892
4893 2010-03-14  Bruno Haible  <bruno@clisp.org>
4894
4895         * tests/test-flock.c (test_exclusive): Comment out a test that causes
4896         portability problems. Instead use a simpler test.
4897         (main): Check that invalid arguments are rejected only on Linux.
4898
4899 2010-03-14  Bruno Haible  <bruno@clisp.org>
4900
4901         Fix bug introduced on 2009-12-31.
4902         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
4903         gl_PREREQ_SYS_H_WINSOCK2 always.
4904         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
4905         SYS_SOCKET_H variable.
4906         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
4907         Update comments.
4908         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
4909         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
4910         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
4911         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
4912         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
4913
4914 2010-03-14  Bruno Haible  <bruno@clisp.org>
4915
4916         Fix values returned by sinl, cosl.
4917         * lib/trigl.h: Add specification comments.
4918         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
4919         that combines the values from the precomputed table with the values of
4920         the Chebyshev polynomials.
4921
4922 2010-03-14  Bruno Haible  <bruno@clisp.org>
4923
4924         Fix compilation error when modules 'posix_spawn[p]' are not used.
4925         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
4926         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
4927
4928 2010-03-14  Bruno Haible  <bruno@clisp.org>
4929
4930         Fix compilation error on mingw when module 'time_r' is not used.
4931         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
4932         is 1.
4933         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
4934         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
4935         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
4936         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
4937
4938 2010-03-14  Bruno Haible  <bruno@clisp.org>
4939
4940         Fix compilation error with Sun C.
4941         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
4942         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
4943         instead of GCC specific ULONG_LONG_MAX.
4944         * lib/xstrtoll.c: Likewise.
4945         * lib/xstrtoull.c: Likewise.
4946
4947 2010-03-13  Bruno Haible  <bruno@clisp.org>
4948
4949         Allow the user to disable C++ code and tests.
4950         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
4951         (gl_PROG_ANSI_CXX): Require it.
4952
4953 2010-03-13  Bruno Haible  <bruno@clisp.org>
4954
4955         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
4956         cases.
4957
4958 2010-03-13  Bruno Haible  <bruno@clisp.org>
4959
4960         Test that gnulib does not break the standard C++ headers.
4961         * tests/test-locale-c++2.cc: New file.
4962         * modules/locale-tests (Files): Add it.
4963         (Makefile.am): Compile it for test-locale-c++.
4964         * tests/test-math-c++2.cc: New file.
4965         * modules/math-tests (Files): Add it.
4966         (Makefile.am): Compile it for test-math-c++.
4967         * tests/test-signal-c++2.cc: New file.
4968         * modules/signal-tests (Files): Add it.
4969         (Makefile.am): Compile it for test-signal-c++.
4970         * tests/test-stdio-c++2.cc: New file.
4971         * modules/stdio-tests (Files): Add it.
4972         (Makefile.am): Compile it for test-stdio-c++.
4973         * tests/test-stdlib-c++2.cc: New file.
4974         * modules/stdlib-tests (Files): Add it.
4975         (Makefile.am): Compile it for test-stdlib-c++.
4976         * tests/test-string-c++2.cc: New file.
4977         * modules/string-tests (Files): Add it.
4978         (Makefile.am): Compile it for test-string-c++.
4979         * tests/test-time-c++2.cc: New file.
4980         * modules/time-tests (Files): Add it.
4981         (Makefile.am): Compile it for test-time-c++.
4982         Reported by John W. Eaton <jwe@gnu.org>.
4983
4984 2010-03-13  Bruno Haible  <bruno@clisp.org>
4985
4986         * gnulib-tool (func_usage): Clarify which options are available for
4987         --create-testdir and --create-megatestdir.
4988
4989 2010-03-13  Bruno Haible  <bruno@clisp.org>
4990
4991         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
4992         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
4993         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
4994         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
4995         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
4996         when appropriate.
4997         Reported by Jim Meyering.
4998
4999 2010-03-12  Simon Josefsson  <simon@josefsson.org>
5000
5001         * gnulib-tool (func_import): Explain origin of code.
5002
5003 2010-03-12  Bruno Haible  <bruno@clisp.org>
5004
5005         Fix problem with automake's definition of CXXLINK.
5006         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
5007         Reported by Simon Josefsson and Ludovic Courtès.
5008
5009 2010-03-12  Bruno Haible  <bruno@clisp.org>
5010
5011         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
5012         stable releases.
5013
5014 2010-03-11  Bruno Haible  <bruno@clisp.org>
5015
5016         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
5017         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
5018         whether the system provides one variant or multiple variants of the
5019         function.
5020         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
5021         C++ compilers.
5022         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
5023         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
5024         Reported by Jim Meyering.
5025
5026 2010-03-09  Simon Josefsson  <simon@josefsson.org>
5027
5028         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
5029
5030 2010-03-08  Bruno Haible  <bruno@clisp.org>
5031
5032         gnulib-tool: Add support for --libtool in --create-testdir.
5033         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
5034         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
5035
5036 2010-03-08  Eric Blake  <eblake@redhat.com>
5037
5038         gnulib-tool.texi: mention possibility of git submodule
5039         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
5040         submodules.
5041         * doc/.gitignore: Ignore another generated file.
5042
5043 2010-03-08  Karl Berry  <karl@gnu.org>
5044
5045         * doc/gnulib-tool.texi (VCS Issues): Mention third option
5046         of committing gnulib files while skipping others.
5047
5048 2010-03-07  Bruno Haible  <bruno@clisp.org>
5049
5050         Tests of module 'wctype' in C++ mode.
5051         * tests/test-wctype-c++.cc: New file.
5052         * modules/wctype-tests (Files): Add it and tests/signature.h.
5053         (Depends-on): Add ansi-c++-opt.
5054         (Makefile.am): Arrange to compile and run test-wctype-c++.
5055
5056         Tests of module 'wchar' in C++ mode.
5057         * tests/test-wchar-c++.cc: New file.
5058         * modules/wchar-tests (Files): Add it and tests/signature.h.
5059         (Depends-on): Add ansi-c++-opt.
5060         (Makefile.am): Arrange to compile and run test-wchar-c++.
5061         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
5062         gl_MODULE_INDICATOR.
5063
5064         Tests of module 'unistd' in C++ mode.
5065         * tests/test-unistd-c++.cc: New file.
5066         * modules/unistd-tests (Files): Add it and tests/signature.h.
5067         (Depends-on): Add ansi-c++-opt.
5068         (Makefile.am): Arrange to compile and run test-unistd-c++.
5069         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
5070         gl_MODULE_INDICATOR.
5071
5072         Tests of module 'time' in C++ mode.
5073         * tests/test-time-c++.cc: New file.
5074         * modules/time-tests (Files): Add it and tests/signature.h.
5075         (Depends-on): Add ansi-c++-opt.
5076         (Makefile.am): Arrange to compile and run test-time-c++.
5077         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
5078
5079         Tests of module 'sys_time' in C++ mode.
5080         * tests/test-sys_time-c++.cc: New file.
5081         * modules/sys_time-tests (Files): Add it and tests/signature.h.
5082         (Depends-on): Add ansi-c++-opt.
5083         (Makefile.am): Arrange to compile and run test-sys_time-c++.
5084         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
5085         gl_MODULE_INDICATOR.
5086
5087         Tests of module 'sys_stat' in C++ mode.
5088         * tests/test-sys_stat-c++.cc: New file.
5089         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
5090         (Depends-on): Add ansi-c++-opt.
5091         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
5092         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
5093         gl_MODULE_INDICATOR.
5094
5095         Tests of module 'sys_socket' in C++ mode.
5096         * tests/test-sys_socket-c++.cc: New file.
5097         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
5098         (Depends-on): Add ansi-c++-opt.
5099         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
5100         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
5101         gl_MODULE_INDICATOR.
5102
5103         Tests of module 'sys_select' in C++ mode.
5104         * tests/test-sys_select-c++.cc: New file.
5105         * modules/sys_select-tests (Files): Add it and tests/signature.h.
5106         (Depends-on): Add ansi-c++-opt.
5107         (Makefile.am): Arrange to compile and run test-sys_select-c++.
5108         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
5109         gl_MODULE_INDICATOR.
5110
5111         Tests of module 'sys_ioctl' in C++ mode.
5112         * tests/test-sys_ioctl-c++.cc: New file.
5113         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
5114         (Depends-on): Add ansi-c++-opt.
5115         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
5116         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
5117         gl_MODULE_INDICATOR.
5118
5119         Tests of module 'string' in C++ mode.
5120         * tests/test-string-c++.cc: New file.
5121         * modules/string-tests (Files): Add it and tests/signature.h.
5122         (Depends-on): Add ansi-c++-opt.
5123         (Makefile.am): Arrange to compile and run test-string-c++.
5124         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
5125         gl_MODULE_INDICATOR.
5126
5127         Tests of module 'stdlib' in C++ mode.
5128         * tests/test-stdlib-c++.cc: New file.
5129         * modules/stdlib-tests (Files): Add it and tests/signature.h.
5130         (Depends-on): Add ansi-c++-opt.
5131         (Makefile.am): Arrange to compile and run test-stdlib-c++.
5132         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
5133         gl_MODULE_INDICATOR.
5134
5135         Tests of module 'stdio' in C++ mode.
5136         * tests/test-stdio-c++.cc: New file.
5137         * modules/stdio-tests (Files): Add it and tests/signature.h.
5138         (Depends-on): Add ansi-c++-opt.
5139         (Makefile.am): Arrange to compile and run test-stdio-c++.
5140         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
5141         gl_MODULE_INDICATOR.
5142
5143         Tests of module 'spawn' in C++ mode.
5144         * tests/test-spawn-c++.cc: New file.
5145         * modules/spawn-tests (Files): Add it and tests/signature.h.
5146         (Depends-on): Add ansi-c++-opt.
5147         (Makefile.am): Arrange to compile and run test-spawn-c++.
5148         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
5149         gl_MODULE_INDICATOR.
5150
5151         Tests of module 'signal' in C++ mode.
5152         * tests/test-signal-c++.cc: New file.
5153         * modules/signal-tests (Files): Add it and tests/signature.h.
5154         (Depends-on): Add ansi-c++-opt.
5155         (Makefile.am): Arrange to compile and run test-signal-c++.
5156         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
5157         gl_MODULE_INDICATOR.
5158
5159         Tests of module 'search' in C++ mode.
5160         * tests/test-search-c++.cc: New file.
5161         * modules/search-tests (Files): Add it and tests/signature.h.
5162         (Depends-on): Add ansi-c++-opt.
5163         (Makefile.am): Arrange to compile and run test-search-c++.
5164         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
5165         gl_MODULE_INDICATOR.
5166
5167         Tests of module 'math' in C++ mode.
5168         * tests/test-math-c++.cc: New file.
5169         * modules/math-tests (Files): Add it and tests/signature.h.
5170         (Depends-on): Add ansi-c++-opt.
5171         (Makefile.am): Arrange to compile and run test-math-c++.
5172         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
5173
5174         Tests of module 'locale' in C++ mode.
5175         * tests/test-locale-c++.cc: New file.
5176         * modules/locale-tests (Files): Add it and tests/signature.h.
5177         (Depends-on): Add ansi-c++-opt.
5178         (Makefile.am): Arrange to compile and run test-locale-c++.
5179         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
5180         gl_MODULE_INDICATOR.
5181
5182         Tests of module 'langinfo' in C++ mode.
5183         * tests/test-langinfo-c++.cc: New file.
5184         * modules/langinfo-tests (Files): Add it and tests/signature.h.
5185         (Depends-on): Add ansi-c++-opt.
5186         (Makefile.am): Arrange to compile and run test-langinfo-c++.
5187         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
5188         gl_MODULE_INDICATOR.
5189
5190         Tests of module 'iconv-h' in C++ mode.
5191         * tests/test-iconv-h-c++.cc: New file.
5192         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
5193         (Depends-on): Add ansi-c++-opt.
5194         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
5195
5196         Tests of module 'glob' in C++ mode.
5197         * tests/test-glob-c++.cc: New file.
5198         * modules/glob-tests (Files): Add it.
5199         (Depends-on): Add ansi-c++-opt.
5200         (Makefile.am): Arrange to compile and run test-glob-c++.
5201
5202         Tests of module 'fcntl-h' in C++ mode.
5203         * tests/test-fcntl-h-c++.cc: New file.
5204         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
5205         (Depends-on): Add ansi-c++-opt.
5206         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
5207         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
5208         gl_MODULE_INDICATOR.
5209
5210         Tests of module 'dirent' in C++ mode.
5211         * tests/test-dirent-c++.cc: New file.
5212         * modules/dirent-tests (Files): Add it and tests/signature.h.
5213         (Depends-on): Add ansi-c++-opt.
5214         (Makefile.am): Arrange to compile and run test-dirent-c++.
5215         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
5216         gl_MODULE_INDICATOR.
5217
5218         New module 'ansi-c++-opt'.
5219         * modules/ansi-c++-opt: New file.
5220         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
5221
5222         Document C++ namespace mode.
5223         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
5224
5225         wctype: Avoid #define replacements in C++ mode.
5226         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
5227         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
5228         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
5229         In C++, define a namespaced alias symbol.
5230         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
5231         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
5232         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
5233         rule.
5234
5235         wchar: Avoid #define replacements in C++ mode.
5236         * lib/wchar.in.h: Include c++defs.h.
5237         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
5238         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
5239         symbol.
5240         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
5241         * modules/wchar (Depends-on): Add c++defs.
5242         (Makefile.am): Update wchar.h rule.
5243
5244         unistd: Avoid #define replacements in C++ mode.
5245         * lib/unistd.in.h: Include c++defs.h.
5246         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
5247         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
5248         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
5249         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
5250         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
5251         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
5252         symbol.
5253         (environ): Update.
5254         * modules/unistd (Depends-on): Add c++defs.
5255         (Makefile.am): Update unistd.h rule.
5256
5257         time: Avoid #define replacements in C++ mode.
5258         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
5259         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
5260         define a namespaced alias symbol.
5261         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
5262         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
5263         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
5264         * modules/time (Depends-on): Add c++defs, warn-on-use.
5265         (Makefile.am): Update time.h rule.
5266         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
5267         * modules/nanosleep (configure.ac): Likewise.
5268         * modules/strptime (configure.ac): Likewise.
5269         * modules/timegm (configure.ac): Likewise.
5270
5271         sys_time: Avoid #define replacements in C++ mode.
5272         * lib/sys_time.in.h: Include c++defs.h.
5273         (gettimeofday): In C++, define a namespaced alias symbol.
5274         * modules/sys_time (Depends-on): Add c++defs.
5275         (Makefile.am): Update sys/time.h rule.
5276
5277         sys_stat: Avoid #define replacements in C++ mode.
5278         * lib/sys_stat.in.h: Include c++defs.h.
5279         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
5280         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
5281         namespaced alias symbol.
5282         In C++, define a namespaced alias symbol.
5283         * modules/sys_stat (Depends-on): Add c++defs.
5284         (Makefile.am): Update sys/stat.h rule.
5285
5286         sys_socket: Avoid #define replacements in C++ mode.
5287         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
5288         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
5289         definitions also when the system has a <sys/socket.h>.
5290         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
5291         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
5292         In C++, define a namespaced alias symbol.
5293         * modules/sys_socket (Depends-on): Add c++defs.
5294         (Makefile.am): Update sys/socket.h rule.
5295
5296         sys_select: Avoid #define replacements in C++ mode.
5297         * lib/sys_select.in.h: Include c++defs.h. Enable the function
5298         definitions also when the system has a <sys/select.h>.
5299         (select): In C++, define a namespaced alias symbol.
5300         * modules/sys_select (Depends-on): Add c++defs.
5301         (Makefile.am): Update sys/select.h rule.
5302
5303         sys_ioctl: Avoid #define replacements in C++ mode.
5304         * lib/sys_ioctl.in.h: Include c++defs.h.
5305         (ioctl): In C++, define a namespaced alias symbol.
5306         * modules/sys_ioctl (Depends-on): Add c++defs.
5307         (Makefile.am): Update sys/ioctl.h rule.
5308
5309         string: Avoid #define replacements in C++ mode.
5310         * lib/string.in.h: Include c++defs.h.
5311         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
5312         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
5313         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
5314         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
5315         strsignal, strverscmp): In C++, define a namespaced alias symbol.
5316         * modules/string (Depends-on): Add c++defs.
5317         (Makefile.am): Update string.h rule.
5318
5319         stdlib: Avoid #define replacements in C++ mode.
5320         * lib/stdlib.in.h: Include c++defs.h.
5321         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
5322         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
5323         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
5324         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
5325         symbol.
5326         * modules/stdlib (Depends-on): Add c++defs.
5327         (Makefile.am): Update stdlib.h rule.
5328
5329         stdio: Avoid #define replacements in C++ mode.
5330         * lib/stdio.in.h: Include c++defs.h.
5331         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
5332         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
5333         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
5334         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
5335         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
5336         namespaced alias symbol.
5337         * modules/stdio (Depends-on): Add c++defs.
5338         (Makefile.am): Update stdio.h rule.
5339
5340         spawn: Avoid #define replacements in C++ mode.
5341         * lib/spawn.in.h: Include c++defs.h.
5342         (posix_spawn, posix_spawnp, posix_spawnattr_init,
5343         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
5344         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
5345         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
5346         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
5347         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
5348         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
5349         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
5350         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
5351         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
5352         In C++, define a namespaced alias symbol.
5353         * modules/spawn (Depends-on): Add c++defs.
5354         (Makefile.am): Update spawn.h rule.
5355
5356         signal: Avoid #define replacements in C++ mode.
5357         * lib/signal.in.h: Include c++defs.h.
5358         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
5359         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
5360         namespaced alias symbol.
5361         * modules/signal (Depends-on): Add c++defs.
5362         (Makefile.am): Update signal.h rule.
5363
5364         search: Avoid #define replacements in C++ mode.
5365         * lib/search.in.h: Include c++defs.h.
5366         (_gl_search_compar_fn, _gl_search_action_fn): New types.
5367         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
5368         symbol.
5369         * modules/search (Depends-on): Add c++defs.
5370         (Makefile.am): Update search.h rule.
5371
5372         math: Avoid #define replacements in C++ mode.
5373         * lib/math.in.h: Include c++defs.h.
5374         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
5375         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
5376         trunc, truncl): In C++, define a namespaced alias symbol.
5377         * modules/math (Depends-on): Add c++defs.
5378         (Makefile.am): Update math.h rule.
5379
5380         locale: Avoid #define replacements in C++ mode.
5381         * lib/locale.in.h: Include c++defs.h.
5382         (duplocale): In C++, define a namespaced alias symbol.
5383         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
5384         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
5385         * modules/locale (Depends-on): Add c++defs.
5386         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
5387
5388         langinfo: Avoid #define replacements in C++ mode.
5389         * lib/langinfo.in.h: Include c++defs.h.
5390         (nl_langinfo): In C++, define a namespaced alias symbol.
5391         * modules/langinfo (Depends-on): Add c++defs.
5392         (Makefile.am): Update langinfo.h rule.
5393
5394         iconv-h: Avoid #define replacements in C++ mode.
5395         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
5396         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
5397         symbol.
5398         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
5399         whenever iconv is present.
5400         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
5401         (Makefile.am): Update iconv.h rule.
5402
5403         glob: Avoid #define replacements in C++ mode.
5404         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
5405         (_gl_glob_errfunc_fn): New type.
5406         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
5407         symbol.
5408         * modules/glob (Depends-on): Add c++defs, warn-on-use.
5409         (Makefile.am): Update glob.h rule.
5410
5411         fcntl-h: Avoid #define replacements in C++ mode.
5412         * lib/fcntl.in.h: Include c++defs.h.
5413         (fcntl, open, openat): In C++, define a namespaced alias symbol.
5414         * modules/fcntl-h (Depends-on): Add c++defs.
5415         (Makefile.am): Update fcntl.h rule.
5416
5417         dirent: Avoid #define replacements in C++ mode.
5418         * lib/dirent.in.h: Include c++defs.h.
5419         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
5420         namespaced alias symbol.
5421         (dirfd): Update declaration.
5422         * modules/dirent (Depends-on): Add c++defs.
5423         (Makefile.am): Update dirent.h rule.
5424
5425         ctype: Make it usable in C++ code.
5426         * lib/ctype.in.h: Include c++defs.h.
5427         (isblank): Declare as extern "C".
5428         * modules/ctype (Depends-on): Add c++defs.
5429         (Makefile.am): Update ctype.h rule.
5430
5431         New module 'c++defs'.
5432         * modules/c++defs: New file.
5433         * build-aux/c++defs.h: New file.
5434         Reported by John W. Eaton <jwe@gnu.org>.
5435
5436 2010-03-07  Bruno Haible  <bruno@clisp.org>
5437
5438         logb: Provide missing declaration for Cygwin.
5439         * lib/math.in.h (logb): New declaration.
5440         * m4/logb.m4: New file.
5441         * modules/logb (Files): Add m4/logb.m4.
5442         (Depends-on): Add math.
5443         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
5444         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
5445         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
5446         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
5447         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
5448
5449 2010-03-07  Bruno Haible  <bruno@clisp.org>
5450
5451         Fix test-cond link error.
5452         * tests/test-cond.c: Include <stdio.h>.
5453
5454 2010-03-07  Bruno Haible  <bruno@clisp.org>
5455
5456         Fix test-dirent-safer link error.
5457         * modules/dirent-safer-tests (Makefile.am): Define
5458         test_dirent_safer_LDADD.
5459
5460 2010-03-07  Bruno Haible  <bruno@clisp.org>
5461
5462         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
5463         among default module list.
5464
5465 2010-03-07  Bruno Haible  <bruno@clisp.org>
5466
5467         Fix link error on platforms with GNU libiconv.
5468         * modules/unistr/u8-strcoll-tests (Makefile): Define
5469         test_u8_strcoll_LDADD.
5470         * modules/unistr/u16-strcoll-tests (Makefile): Define
5471         test_u16_strcoll_LDADD.
5472         * modules/unistr/u32-strcoll-tests (Makefile): Define
5473         test_u32_strcoll_LDADD.
5474
5475 2010-03-07  Bruno Haible  <bruno@clisp.org>
5476
5477         Use POSIX declarations for socket functions.
5478         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
5479         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
5480         rpl_sendto): Change declaration to match POSIX.
5481         * lib/connect.c (rpl_connect): Likewise.
5482         * lib/accept.c (rpl_accept): Likewise.
5483         * lib/bind.c (rpl_bind): Likewise.
5484         * lib/getpeername.c (rpl_getpeername): Likewise.
5485         * lib/getsockname.c (rpl_getsockname): Likewise.
5486         * lib/recv.c (rpl_recv): Likewise.
5487         * lib/send.c (rpl_send): Likewise.
5488         * lib/recvfrom.c (rpl_recvfrom): Likewise.
5489         * lib/sendto.c (rpl_sendto): Likewise.
5490
5491 2010-03-06  Bruno Haible  <bruno@clisp.org>
5492
5493         Clarify access, euidaccess, faccessat.
5494         * doc/posix-functions/faccessat.texi: Mention security problem under
5495         "Other problems", not "Portability problems".
5496         * doc/posix-functions/access.texi: Likewise. Mention a related security
5497         problem.
5498         * doc/glibc-functions/euidaccess.texi: Mention security problems.
5499         * lib/euidaccess.c: Add comments about platforms.
5500         * lib/unistd.in.h (access, euidaccess): Add warnings.
5501
5502 2010-03-07  Bruno Haible  <bruno@clisp.org>
5503
5504         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
5505         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
5506         (POSIX_SPAWN_SETSCHEDULER): Likewise.
5507         (POSIX_SPAWN_USEVFORK): Define in a way that works when
5508         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
5509         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
5510         declare when POSIX_SPAWN_SETSCHEDULER is zero.
5511         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
5512         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
5513         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
5514         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
5515         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
5516         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
5517         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
5518         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
5519         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
5520         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
5521         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
5522         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
5523         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
5524         Likewise.
5525         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
5526         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
5527         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
5528         Likewise.
5529         * tests/test-spawn.c (main): Make it work when
5530         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
5531
5532 2010-03-07  Bruno Haible  <bruno@clisp.org>
5533
5534         Fix incorrect Makefile.am generation in German locale.
5535         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
5536         Execute sed command with character range in C locale.
5537
5538 2010-03-06  Bruno Haible  <bruno@clisp.org>
5539
5540         Tests for module 'iconv-h'.
5541         * modules/iconv-h-tests: New file.
5542         * tests/test-iconv-h.c: New file.
5543
5544         New module 'iconv-h'.
5545         * modules/iconv-h: New file.
5546         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
5547         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
5548         (configure.ac): Remove gl_ICONV_H.
5549         (Makefile.am): Remove rule for iconv.h.
5550
5551 2010-03-06  Bruno Haible  <bruno@clisp.org>
5552
5553         More consistent naming of *.m4 files.
5554         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
5555         * modules/wctype (Files): Update.
5556
5557         More consistent naming of *.m4 files.
5558         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
5559         * modules/wchar (Files): Update.
5560
5561 2010-03-06  Jim Meyering  <meyering@redhat.com>
5562
5563         euidaccess: relax license to LGPLv2+
5564         * modules/euidaccess (License): Relax to LGPLv2+.
5565
5566 2010-03-06  Bruno Haible  <bruno@clisp.org>
5567
5568         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
5569         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
5570         (Makefile.am): Augment lib_SOURCES instead.
5571
5572 2010-03-04  Jim Meyering  <meyering@redhat.com>
5573
5574         utime: remove obsolete module
5575         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
5576         unnecessary for years, and has been marked as obsolete for 10 months.
5577         * modules/utime: Remove file.
5578         * lib/utime.c: Remove file.
5579         * m4/utime.m4: Remove file.
5580         * m4/utimes-null.m4: Remove file.
5581         * doc/posix-functions/utime.texi (utime): Remove reference to
5582         the module.  Move the sole "fixed by gnulib" item into the
5583         "problems not fixed by Gnulib" list.
5584         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
5585
5586 2010-03-05  Simon Josefsson  <simon@josefsson.org>
5587
5588         * modules/exit (License): Relax license to LGPLv2+.
5589         (Status): Mark as obsolete.
5590         * NEWS: Mention deprecated 'exit' module.
5591         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
5592         of now obsolete 'exit'.
5593
5594 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5595
5596         fts-lgpl: remove unused module
5597         * modules/fts-lgpl: Remove.
5598         * MODULES.html.sh (func_all_modules): Adjust.
5599         * check-module (find_included_lib_files): Adjust.
5600         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
5601
5602 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
5603
5604         copy-acl: enhance Solaris ACL error handling
5605         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
5606         * lib/set-mode-acl.c (qset_acl): Likewise.
5607
5608 2010-03-02  Bruno Haible  <bruno@clisp.org>
5609
5610         spawn: Don't override the system defined values on FreeBSD 8.
5611         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
5612         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
5613         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
5614         if HAVE_POSIX_SPAWN is 1.
5615         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
5616
5617 2010-03-01  Bruno Haible  <bruno@clisp.org>
5618
5619         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
5620         regarding Automake.
5621
5622 2010-02-25  Bruno Haible  <bruno@clisp.org>
5623
5624         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
5625         * gnulib-tool: Define 'echo' as a function only before the ksh alias
5626         setting, not afterwards.
5627         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
5628
5629 2010-02-24  Eric Blake  <eblake@redhat.com>
5630
5631         bootstrap, git-version-gen: use timestamp
5632         * build-aux/git-version-gen (scriptversion): Force UTC.
5633         * build-aux/bootstrap (scriptversion): New variable.
5634
5635         bootstrap: allow older git
5636         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
5637         older than 1.6.4.  Requested by the libvirt project.
5638
5639 2010-02-23  Eric Blake  <eblake@redhat.com>
5640
5641         warn-on-use: work with old autoconf
5642         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
5643         AS_VAR semantics of autoconf 2.60.
5644         Reported by Bruno Haible.
5645
5646         bootstrap: improve some comments
5647         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
5648         clarification comments.
5649
5650         gettimeofday: provide correct function
5651         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
5652         when replacement is declared, otherwise provide gettimeofday.
5653         Reported by Michael Goffioul.
5654
5655 2010-02-23  Jim Meyering  <meyering@redhat.com>
5656
5657         lib-ignore: relax license to "unlimited", not LGPLv2+
5658         * modules/lib-ignore (License): Relax to "unlimited".
5659
5660 2010-02-23  Jim Meyering  <meyering@redhat.com>
5661
5662         lib-ignore: relax license to LGPLv2+
5663         * modules/lib-ignore (License): Relax to LGPLv2+.
5664
5665 2010-02-22  Eric Blake  <eblake@redhat.com>
5666
5667         lseek: avoid bash 3.2 broken pipe bug
5668         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
5669         warning from bash 3.2.
5670         Reported by Ben Pfaff, with analysis from Bruno Haible.
5671
5672         bootstrap: support non-FSF copyright holder
5673         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
5674         bootstrap.conf override of COPYRIGHT_HOLDER.
5675         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
5676
5677         bootstrap: interoperate with gettext 0.14.1
5678         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
5679
5680         bootstrap: allow for alternate submodule location
5681         * build-aux/bootstrap (gnulib_path): New variable; use instead of
5682         hardcoding submodule location.
5683         (gnulib_mk): Allow direct use of Makefile.am.
5684
5685         bootstrap: use GNULIB_SRCDIR to reduce disk usage
5686         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
5687         rather than reconfiguring where the submodule points.
5688
5689         gettimeofday: restore support for platforms that lack function
5690         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
5691         replacement if function is missing.
5692         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
5693         * modules/sys_time (Makefile.am): Substitute it.
5694         * lib/sys_time.in.h (gettimeofday): Check it.
5695         Reported by Michael Goffioul.
5696
5697 2010-02-21  Bruno Haible  <bruno@clisp.org>
5698
5699         * lib/stdio.in.h (obstack_printf): Fix typo.
5700
5701 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
5702
5703         vc-list-files: use bzr ls's -R option
5704         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
5705         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
5706
5707 2010-02-21  Jim Meyering  <meyering@redhat.com>
5708
5709         init.sh: fix EXEEXT shims to work also for names like test-prog
5710         * tests/init.sh: Re-exec a better shell, when needed.
5711         If the current shell lacks support for posix $(...), an init.sh-using
5712         test will now try to find a shell that supports that.  If EXEEXT is
5713         nonempty, we also require support for hyphen-in-alias-name and shell
5714         substitutions like ${var#glob}.  Failure to find such a shell results
5715         in a skipped test.
5716
5717 2010-02-21  Bruno Haible  <bruno@clisp.org>
5718
5719         Really work around around "broken pipe" error message from bash 3.2.
5720         * gnulib-tool (func_reset_sigpipe): Remove function.
5721         (echo): In bash 3.2, define to a function that uses printf.
5722         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
5723
5724 2010-02-20  Bruno Haible  <bruno@clisp.org>
5725
5726         Restore support for automake 1.9.6 with autoconf 2.61.
5727         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
5728         Reported by James Youngman <jay@gnu.org>.
5729
5730 2010-02-20  Bruno Haible  <bruno@clisp.org>
5731
5732         Improve *printf warning condition.
5733         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
5734         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
5735         and the function is overridden due to SIGPIPE emulation.
5736
5737 2010-02-20  Bruno Haible  <bruno@clisp.org>
5738
5739         * lib/stdio.in.h: Tweak comments.
5740
5741 2010-02-19  Bruno Haible  <bruno@clisp.org>
5742
5743         Make it easier to find modules. New gnulib-tool option '--find'.
5744         * gnulib-tool: New option --find.
5745         (func_usage): Document it.
5746         (func_sanitize_modulelist): New function, extracted from
5747         func_all_modules.
5748         (func_all_modules): Invoke it.
5749         * doc/gnulib-tool.texi (Which modules?): New node.
5750
5751 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
5752
5753         * lib/sys_select.in.h: Provide select replacement even if
5754         sys/select.h exists on a system, for Interix.
5755
5756 2010-02-18  Jim Meyering  <meyering@redhat.com>
5757
5758         init.sh: don't use $(...) just yet
5759         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
5760         to accommodate e.g., Solaris' /bin/sh.
5761
5762 2010-02-17  Bruno Haible  <bruno@clisp.org>
5763
5764         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
5765         Reported by Ludovic Courtès <ludo@gnu.org>.
5766
5767 2010-02-16  Simon Josefsson  <simon@josefsson.org>
5768
5769         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
5770         linking with -lintl.
5771
5772 2010-02-17  Simon Josefsson  <simon@josefsson.org>
5773
5774         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
5775         if not provided by the system's netdb.h.  Reported by
5776         ludo@gnu.org (Ludovic Courtès).
5777
5778 2010-02-15  Jim Meyering  <meyering@redhat.com>
5779
5780         init.sh: improve portability and efficiency
5781         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
5782         "dummy" in a for loop.
5783         Use '!', not '^' to select the complement of a character set used
5784         in a "case" statement.
5785         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
5786         Suggestions from Eric Blake.
5787
5788         init.sh: automatically accommodate programs with the .exe suffix
5789         Automatically arrange for an invocation of "prog" to execute the
5790         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
5791         may use the simpler "prog", yet still work when built on a system
5792         that requires specifying the added suffix.
5793         Do this by constructing a function named "prog" that invokes
5794         "prog.exe" for each .exe file in selected directories.
5795         * tests/init.sh (find_exe_basenames_): New function.
5796         (create_exe_shim_functions_): New function.
5797         (path_prepend_): Use it.
5798
5799         maint.mk: mark syntax-check sc_*.m rules as .PHONY
5800         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
5801         "make -t syntax-check" doesn't create a ton of sc_*.m files.
5802
5803 2010-02-14  Jim Meyering  <meyering@redhat.com>
5804
5805         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
5806         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
5807         (sc_prohibit_hash_pjw_without_use): New rule.
5808
5809         maint.mk: allow the default upload destination dir to be overridden
5810         * top/maint.mk (upload_dest_dir_): Define with a default that
5811         preserves the status quo.
5812         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
5813         Reported by Peter Simons.
5814
5815         maint.mk: prohibit inclusion of "hash.h" without_use
5816         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
5817
5818 2010-02-10  Jim Meyering  <meyering@redhat.com>
5819
5820         maint.mk: prohibit inclusion of "ignore-value.h" without_use
5821         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
5822
5823 2010-02-09  Eric Blake  <ebb9@byu.net>
5824         and Bruno Haible  <bruno@clisp.org>
5825
5826         obstack-printf-posix: ensure declaration
5827         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
5828         extracted from gl_FUNC_OBSTACK_PRINTF.
5829         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
5830         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
5831         Likewise.
5832         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
5833         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
5834         0.
5835
5836 2010-02-08  Bruno Haible  <bruno@clisp.org>
5837
5838         gnulib-tool: Fix typo in 2010-02-07 commit.
5839         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
5840         Reported by Eric Blake.
5841
5842 2010-02-07  Bruno Haible  <bruno@clisp.org>
5843
5844         gnulib-tool: Fix up caching patches.
5845         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
5846         option --no-cache. Use associative arrays when supported by the shell.
5847         (sed_comments): New variable.
5848         (modcache): Renamed from do_cache.
5849         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
5850         abbreviate unnecessarily.
5851         (have_associative): New variable.
5852         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
5853         way also for ksh and zsh.
5854         (func_init_sed_convert_to_cache_statements): New function, extracted
5855         from func_cache_lookup_module. Add support for associative arrays.
5856         Don't set the c_MODULE_cached variable here. Ignore all lines before
5857         the first field header. Remove only the final newline, not all trailing
5858         newlines. Support empty fields correctly. Limit the use of 'eval' to
5859         assignments.
5860         (func_get_description, func_get_status, func_get_notice,
5861         func_get_applicability, func_get_filelist, func_get_dependencies,
5862         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
5863         func_get_automake_snippet, func_get_include_directive,
5864         func_get_link_directive, func_get_license, func_get_maintainer):
5865         Update documentation. List the unoptimized code first. Add support for
5866         associative arrays. Limit the use of 'eval' to assignments.
5867         (func_get_applicability): Undo stylistic pessimisations.
5868         (func_get_automake_snippet, func_get_include_directive): Reduce code
5869         duplication.
5870         (func_modules_transitive_closure, func_modules_add_dummy,
5871         func_modules_notice, func_modules_to_filelist, func_add_file,
5872         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
5873         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
5874         func_create_testdir, func_create_megatestdir): Update documentation.
5875
5876 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5877
5878         * gnulib-tool (func_cache_lookup_module): Store the module name
5879         belonging to the cache variable; error out if two different
5880         module names map to the same cache variable name.
5881
5882 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5883
5884         gnulib-tool: Make caching optional.
5885         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
5886         Update matching short versions of --no-changelog.
5887         (func_usage): Update.
5888         (sed_extract_cache_prog): Renamed from ...
5889         (sed_extract_prog): ... this; revert to old extraction script.
5890         (func_get_description, func_get_status)
5891         (func_get_notice, func_get_applicability, func_get_filelist)
5892         (func_get_dependencies, func_get_autoconf_early_snippet)
5893         (func_get_autoconf_snippet, func_get_automake_snippet)
5894         (func_get_include_directive, func_get_link_directive)
5895         (func_get_license, func_get_maintainer): If $do_cache is false,
5896         use old, non-caching extraction scripts.
5897         Suggestion by Bruno Haible.
5898
5899 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5900
5901         gnulib-tool: cache module metainformation.
5902         * gnulib-tool (sed_extract_prog): Match newline before each
5903         header, and rewrite header to a shell variable suffix.
5904         (func_cache_var, func_cache_lookup_module): New functions,
5905         to turn a module name into a cache variable prefix, and to
5906         look up and cache module metainformation.
5907         (func_get_description, func_get_status)
5908         (func_get_notice, func_get_applicability, func_get_filelist)
5909         (func_get_dependencies, func_get_autoconf_early_snippet)
5910         (func_get_autoconf_snippet, func_get_automake_snippet)
5911         (func_get_include_directive, func_get_link_directive)
5912         (func_get_license, func_get_maintainer): Use
5913         func_cache_lookup_module.
5914
5915 2010-02-07  Bruno Haible  <bruno@clisp.org>
5916
5917         fnctl: Fix missing dependency.
5918         * modules/fcntl (Depends-on): Add getdtablesize.
5919         Reported by John W. Eaton <jwe@gnu.org>.
5920
5921 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
5922
5923         Argp: fix recognition of short alias options.
5924
5925         * lib/argp-parse.c (convert_options): Fix improper use of
5926         `|' between character values.
5927         * tests/test-argp.c (group1_option): New alias option
5928         --read (-r).
5929         (group1_parser): Special handling for 'r'.
5930         (test15): New test case.
5931         (test_fun): Add test15.
5932         * tests/test-argp-2.sh: Update expected --help and --usage
5933         outputs.
5934
5935 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
5936
5937         * tests/test-argp.c: Fix indentation.
5938
5939 2010-02-04  Eric Blake  <ebb9@byu.net>
5940
5941         gettimeofday: expose type of second argument
5942         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
5943         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
5944         * tests/test-gettimeofday.c: Use it to silence warning.
5945         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
5946         the issue.
5947
5948 2010-02-03  Jim Meyering  <meyering@redhat.com>
5949
5950         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
5951         * lib/regcomp.c (TYPE_SIGNED): Define.
5952         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
5953
5954         regcomp.c: avoid a new -Wshadow warning
5955         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
5956
5957 2010-02-01  Jim Meyering  <meyering@redhat.com>
5958
5959         removing useless parentheses in cpp #define directives
5960         For motivation, see commit c0221df4, "define STREQ(a,b)
5961         consistently, removing useless parentheses"
5962         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
5963         * lib/mountlist.c (MNT_IGNORE): Likewise.
5964         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
5965
5966 2010-02-01  Eric Blake  <ebb9@byu.net>
5967
5968         sys_time: use link-warning
5969         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
5970         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
5971         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
5972         * modules/sys_time (Depends-on): Add warn-on-use.
5973         (Makefile.am): Always build replacement.
5974         (configure.ac): Update substitutions.
5975         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
5976         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
5977         bother with SYS_TIME_H.
5978         * modules/gettimeofday (configure.ac): Declare indicator.
5979         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
5980         in use.
5981
5982         closein-tests: silence compiler warning
5983         * tests/test-closein.c (main): Ignore fread result.
5984         * modules/closein-tests (Depends-on): Add ignore-value.
5985
5986         tests: silence warning about system return
5987         * tests/test-areadlink-with-size.c (main): Ignore system result.
5988         * tests/test-areadlink.c (main): Likewise.
5989         * tests/test-areadlinkat-with-size.c (main): Likewise.
5990         * tests/test-areadlinkat.c (main): Likewise.
5991         * tests/test-canonicalize-lgpl.c (main): Likewise.
5992         * tests/test-canonicalize.c (main): Likewise.
5993         * tests/test-chown.c (main): Likewise.
5994         * tests/test-fchownat.c (main): Likewise.
5995         * tests/test-fdutimensat.c (main): Likewise.
5996         * tests/test-fstatat.c (main): Likewise.
5997         * tests/test-futimens.c (main): Likewise.
5998         * tests/test-lchown.c (main): Likewise.
5999         * tests/test-link.c (main): Likewise.
6000         * tests/test-linkat.c (main): Likewise.
6001         * tests/test-lstat.c (main): Likewise.
6002         * tests/test-mkdir.c (main): Likewise.
6003         * tests/test-mkdirat.c (main): Likewise.
6004         * tests/test-mkfifo.c (main): Likewise.
6005         * tests/test-mkfifoat.c (main): Likewise.
6006         * tests/test-mknod.c (main): Likewise.
6007         * tests/test-readlink.c (main): Likewise.
6008         * tests/test-remove.c (main): Likewise.
6009         * tests/test-rename.c (main): Likewise.
6010         * tests/test-renameat.c (main): Likewise.
6011         * tests/test-rmdir.c (main): Likewise.
6012         * tests/test-symlink.c (main): Likewise.
6013         * tests/test-symlinkat.c (main): Likewise.
6014         * tests/test-unlink.c (main): Likewise.
6015         * tests/test-unlinkat.c (main): Likewise.
6016         * tests/test-utimens.c (main): Likewise.
6017         * tests/test-utimensat.c (main): Likewise.
6018         * modules/areadlink-tests (Depends-on): Add ignore-value.
6019         * modules/areadlink-with-size-tests (Depends-on): Likewise.
6020         * modules/areadlinkat-tests (Depends-on): Likewise.
6021         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
6022         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
6023         * modules/canonicalize-tests (Depends-on): Likewise.
6024         * modules/chown-tests (Depends-on): Likewise.
6025         * modules/fdutimensat-tests (Depends-on): Likewise.
6026         * modules/futimens-tests (Depends-on): Likewise.
6027         * modules/lchown-tests (Depends-on): Likewise.
6028         * modules/link-tests (Depends-on): Likewise.
6029         * modules/linkat-tests (Depends-on): Likewise.
6030         * modules/lstat-tests (Depends-on): Likewise.
6031         * modules/mkdir-tests (Depends-on): Likewise.
6032         * modules/mkfifo-tests (Depends-on): Likewise.
6033         * modules/mkfifoat-tests (Depends-on): Likewise.
6034         * modules/mknod-tests (Depends-on): Likewise.
6035         * modules/openat-tests (Depends-on): Likewise.
6036         * modules/readlink-tests (Depends-on): Likewise.
6037         * modules/remove-tests (Depends-on): Likewise.
6038         * modules/rename-tests (Depends-on): Likewise.
6039         * modules/renameat-tests (Depends-on): Likewise.
6040         * modules/rmdir-tests (Depends-on): Likewise.
6041         * modules/symlink-tests (Depends-on): Likewise.
6042         * modules/symlinkat-tests (Depends-on): Likewise.
6043         * modules/unlink-tests (Depends-on): Likewise.
6044         * modules/utimens-tests (Depends-on): Likewise.
6045         * modules/utimensat-tests (Depends-on): Likewise.
6046
6047 2010-01-31  Bruno Haible  <bruno@clisp.org>
6048
6049         Perform the same test for many <math.h> functions.
6050         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
6051         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
6052         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
6053         of gl_MATHFUNC.
6054         * modules/acos (configure.ac): Likewise.
6055         * modules/asin (configure.ac): Likewise.
6056         * modules/atan (configure.ac): Likewise.
6057         * modules/atan2 (configure.ac): Likewise.
6058         * modules/cbrt (configure.ac): Likewise.
6059         * modules/copysign (configure.ac): Likewise.
6060         * modules/cos (configure.ac): Likewise.
6061         * modules/cosh (configure.ac): Likewise.
6062         * modules/erf (configure.ac): Likewise.
6063         * modules/erfc (configure.ac): Likewise.
6064         * modules/exp (configure.ac): Likewise.
6065         * modules/fmod (configure.ac): Likewise.
6066         * modules/hypot (configure.ac): Likewise.
6067         * modules/j0 (configure.ac): Likewise.
6068         * modules/j1 (configure.ac): Likewise.
6069         * modules/jn (configure.ac): Likewise.
6070         * modules/lgamma (configure.ac): Likewise.
6071         * modules/log (configure.ac): Likewise.
6072         * modules/log10 (configure.ac): Likewise.
6073         * modules/log1p (configure.ac): Likewise.
6074         * modules/pow (configure.ac): Likewise.
6075         * modules/remainder (configure.ac): Likewise.
6076         * modules/sin (configure.ac): Likewise.
6077         * modules/sinh (configure.ac): Likewise.
6078         * modules/tan (configure.ac): Likewise.
6079         * modules/tanh (configure.ac): Likewise.
6080         * modules/y0 (configure.ac): Likewise.
6081         * modules/y1 (configure.ac): Likewise.
6082         * modules/yn (configure.ac): Likewise.
6083         Suggested by Paolo Bonzini.
6084
6085 2010-01-31  Bruno Haible  <bruno@clisp.org>
6086
6087         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
6088
6089 2010-01-31  Bruno Haible  <bruno@clisp.org>
6090
6091         Work around getdelim() bug on FreeBSD 8.0.
6092         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
6093         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
6094         not work.
6095         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
6096         is 1.
6097         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
6098         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
6099         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
6100         a non-zero size.
6101         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
6102
6103 2010-01-31  Bruno Haible  <bruno@clisp.org>
6104
6105         Work around getline() bug on FreeBSD 8.0.
6106         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
6107         and a non-zero size.
6108         * tests/test-getline.c (main): Likewise.
6109         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
6110         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
6111
6112 2010-01-28  Eric Blake  <ebb9@byu.net>
6113
6114         regex: fix build failure
6115         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
6116         platforms.
6117
6118 2010-01-28  Jim Meyering  <meyering@redhat.com>
6119
6120         regex: do not ignore memory allocation failure
6121         * lib/regex_internal.c (create_cd_newstate): Detect
6122         re_node_set_init_copy failure.   Extracted from glibc commit
6123         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
6124
6125         regex: sync more white-space changes from libc
6126         * lib/regex_internal.c: White-space only changes.
6127         * lib/regexec.c: Likewise.
6128
6129         regex: add many uses of __attribute_warn_unused_result__
6130         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
6131         * lib/regexec.c: Likewise.
6132         Extracted from a messy glibc commit.
6133
6134         regcomp.c: spelling and merge-artifact from glibc
6135         * lib/regcomp.c: Merge remainder of glibc's
6136         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
6137
6138         regcomp.c: sync white-space changes from glibc
6139         * lib/regcomp.c: Merge to accommodate white space
6140         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
6141
6142         regcomp.c: do not ignore internal return values
6143         * lib/regcomp.c: Do not ignore internal return values.
6144         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
6145         but without its white-space changes and spelling fixes.
6146
6147         regex_internal.h: define __attribute_warn_unused_result__
6148         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
6149
6150         maint: add a syntax-check rule to check for vulnerable Makefile.in
6151         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
6152
6153 2010-01-27  Jim Meyering  <meyering@redhat.com>
6154
6155         ncftpput-ftp: clean up spaces
6156         * build-aux/ncftpput-ftp: Make Copyright line consistent.
6157         Remove trailing blanks.
6158
6159 2010-01-27  Simon Josefsson  <simon@josefsson.org>
6160
6161         * build-aux/git-version-gen: Fix copyright statement.
6162         * build-aux/gnupload: Likewise.
6163         * tests/test-arcfour.c: Likewise.
6164         * tests/test-arctwo.c: Likewise.
6165         * tests/test-count-one-bits.c: Likewise.
6166         * tests/test-crc.c: Likewise.
6167         * tests/test-des.c: Likewise.
6168         * tests/test-gc-arcfour.c: Likewise.
6169         * tests/test-gc-arctwo.c: Likewise.
6170         * tests/test-gc-des.c: Likewise.
6171         * tests/test-gc-hmac-md5.c: Likewise.
6172         * tests/test-gc-hmac-sha1.c: Likewise.
6173         * tests/test-gc-md2.c: Likewise.
6174         * tests/test-gc-md4.c: Likewise.
6175         * tests/test-gc-md5.c: Likewise.
6176         * tests/test-gc-pbkdf2-sha1.c: Likewise.
6177         * tests/test-gc-rijndael.c: Likewise.
6178         * tests/test-gc-sha1.c: Likewise.
6179         * tests/test-gc.c: Likewise.
6180         * tests/test-gethostname.c: Likewise.
6181         * tests/test-gettimeofday.c: Likewise.
6182         * tests/test-hash.c: Likewise.
6183         * tests/test-hmac-md5.c: Likewise.
6184         * tests/test-hmac-sha1.c: Likewise.
6185         * tests/test-md2.c: Likewise.
6186         * tests/test-md4.c: Likewise.
6187         * tests/test-md5.c: Likewise.
6188         * tests/test-memchr.c: Likewise.
6189         * tests/test-memchr2.c: Likewise.
6190         * tests/test-memcmp.c: Likewise.
6191         * tests/test-memmem.c: Likewise.
6192         * tests/test-memrchr.c: Likewise.
6193         * tests/test-rawmemchr.c: Likewise.
6194         * tests/test-read-file.c: Likewise.
6195         * tests/test-rijndael.c: Likewise.
6196         * tests/test-sockets.c: Likewise.
6197         * tests/test-strchrnul.c: Likewise.
6198         * tests/test-strstr.c: Likewise.
6199         * tests/test-strtod.c: Likewise.
6200         * build-aux/ncftpput-ftp: Likewise.
6201
6202 2010-01-26  Eric Blake  <ebb9@byu.net>
6203
6204         ignore-value: update recommended header name
6205         * modules/ignore-value (Include): Only use <> for headers that
6206         exist in glibc.
6207
6208 2010-01-26  Jim Meyering  <meyering@redhat.com>
6209
6210         test-userspec.c: avoid compiler warnings
6211         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
6212         and "initialization discards qualifiers..." warnings.
6213         Put the first "uid" in its own scope, and make char* members "const".
6214
6215 2010-01-25  Bruno Haible  <bruno@clisp.org>
6216
6217         gnulib-tool: Make warning diagnostics consistent.
6218         * gnulib-tool (func_warning): New function.
6219         Use it everywhere where gnulib-tool produces output to stderr and it is
6220         not a fatal error.
6221
6222 2010-01-25  Bruno Haible  <bruno@clisp.org>
6223
6224         Fix test dependencies.
6225         * modules/xstrtol-tests (Depends-on): Add inttypes.
6226         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
6227
6228 2010-01-25 Pádraig Brady <P@draigBrady.com>
6229
6230         syntax-check: detect incorrect boolean macro values in config.h
6231         * modules/maintainer-makefile (configure.ac): Parameterize the location
6232         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
6233         The logic is from Eric Blake and the location indicated by Jim Meyering.
6234         Note the more natural CONFIG_HEADER name is prohibited by automake
6235         for backwards compatibility reasons.
6236         * top/maint.mk (sc_Wundef_boolean): New rule.
6237
6238 2010-01-25  Jim Meyering  <meyering@redhat.com>
6239
6240         bootstrap: detect MacOS 10.6's shasum, too
6241         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
6242         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
6243
6244 2010-01-23  Jim Meyering  <meyering@redhat.com>
6245
6246         xstrtoll: new module
6247         * modules/xstrtoll: New file.
6248         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
6249         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
6250         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
6251         ./configure fails if you use this module and lack "long long".
6252         * modules/xstrtoll-tests: New module.
6253         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
6254         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
6255         new init.sh-based test framework.
6256
6257 2010-01-24  Bruno Haible  <bruno@clisp.org>
6258
6259         Tests for module 'yn'.
6260         * modules/yn-tests: New file.
6261         * tests/test-yn.c: New file.
6262
6263         Tests for module 'y1'.
6264         * modules/y1-tests: New file.
6265         * tests/test-y1.c: New file.
6266
6267         Tests for module 'y0'.
6268         * modules/y0-tests: New file.
6269         * tests/test-y0.c: New file.
6270
6271         Tests for module 'tanh'.
6272         * modules/tanh-tests: New file.
6273         * tests/test-tanh.c: New file.
6274
6275         Tests for module 'tan'.
6276         * modules/tan-tests: New file.
6277         * tests/test-tan.c: New file.
6278
6279         Tests for module 'sqrt'.
6280         * modules/sqrt-tests: New file.
6281         * tests/test-sqrt.c: New file.
6282
6283         Tests for module 'sinh'.
6284         * modules/sinh-tests: New file.
6285         * tests/test-sinh.c: New file.
6286
6287         Tests for module 'sin'.
6288         * modules/sin-tests: New file.
6289         * tests/test-sin.c: New file.
6290
6291         Tests for module 'rint'.
6292         * modules/rint-tests: New file.
6293         * tests/test-rint.c: New file.
6294
6295         Tests for module 'remainder'.
6296         * modules/remainder-tests: New file.
6297         * tests/test-remainder.c: New file.
6298
6299         Tests for module 'pow'.
6300         * modules/pow-tests: New file.
6301         * tests/test-pow.c: New file.
6302
6303         Tests for module 'nextafter'.
6304         * modules/nextafter-tests: New file.
6305         * tests/test-nextafter.c: New file.
6306
6307         Tests for module 'modf'.
6308         * modules/modf-tests: New file.
6309         * tests/test-modf.c: New file.
6310
6311         Tests for module 'logb'.
6312         * modules/logb-tests: New file.
6313         * tests/test-logb.c: New file.
6314
6315         Tests for module 'log1p'.
6316         * modules/log1p-tests: New file.
6317         * tests/test-log1p.c: New file.
6318
6319         Tests for module 'log10'.
6320         * modules/log10-tests: New file.
6321         * tests/test-log10.c: New file.
6322
6323         Tests for module 'log'.
6324         * modules/log-tests: New file.
6325         * tests/test-log.c: New file.
6326
6327         Tests for module 'lgamma'.
6328         * modules/lgamma-tests: New file.
6329         * tests/test-lgamma.c: New file.
6330
6331         Tests for module 'ldexp'.
6332         * modules/ldexp-tests: New file.
6333         * tests/test-ldexp.c: New file.
6334
6335         Tests for module 'jn'.
6336         * modules/jn-tests: New file.
6337         * tests/test-jn.c: New file.
6338
6339         Tests for module 'j1'.
6340         * modules/j1-tests: New file.
6341         * tests/test-j1.c: New file.
6342
6343         Tests for module 'j0'.
6344         * modules/j0-tests: New file.
6345         * tests/test-j0.c: New file.
6346
6347         Tests for module 'hypot'.
6348         * modules/hypot-tests: New file.
6349         * tests/test-hypot.c: New file.
6350
6351         Tests for module 'fmod'.
6352         * modules/fmod-tests: New file.
6353         * tests/test-fmod.c: New file.
6354
6355         Tests for module 'fabs'.
6356         * modules/fabs-tests: New file.
6357         * tests/test-fabs.c: New file.
6358
6359         Tests for module 'exp'.
6360         * modules/exp-tests: New file.
6361         * tests/test-exp.c: New file.
6362
6363         Tests for module 'erfc'.
6364         * modules/erfc-tests: New file.
6365         * tests/test-erfc.c: New file.
6366
6367         Tests for module 'erf'.
6368         * modules/erf-tests: New file.
6369         * tests/test-erf.c: New file.
6370
6371         Tests for module 'cosh'.
6372         * modules/cosh-tests: New file.
6373         * tests/test-cosh.c: New file.
6374
6375         Tests for module 'cos'.
6376         * modules/cos-tests: New file.
6377         * tests/test-cos.c: New file.
6378
6379         Tests for module 'copysign'.
6380         * modules/copysign-tests: New file.
6381         * tests/test-copysign.c: New file.
6382
6383         Tests for module 'cbrt'.
6384         * modules/cbrt-tests: New file.
6385         * tests/test-cbrt.c: New file.
6386
6387         Tests for module 'atan2'.
6388         * modules/atan2-tests: New file.
6389         * tests/test-atan2.c: New file.
6390
6391         Tests for module 'atan'.
6392         * modules/atan-tests: New file.
6393         * tests/test-atan.c: New file.
6394
6395         Tests for module 'asin'.
6396         * modules/asin-tests: New file.
6397         * tests/test-asin.c: New file.
6398
6399         Tests for module 'acos'.
6400         * modules/acos-tests: New file.
6401         * tests/test-acos.c: New file.
6402
6403 2010-01-24  Bruno Haible  <bruno@clisp.org>
6404
6405         Fix tests for common <math.h> functions.
6406         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
6407         code snippet that references the function pointer, rather than merely
6408         calling the function. Substitute the FUNC_LIBM variable.
6409         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
6410         * modules/acos (configure.ac): Likewise.
6411         * modules/asin (configure.ac): Likewise.
6412         * modules/atan (configure.ac): Likewise.
6413         * modules/atan2 (configure.ac): Likewise.
6414         * modules/cbrt (configure.ac): Likewise.
6415         * modules/copysign (configure.ac): Likewise.
6416         * modules/cos (configure.ac): Likewise.
6417         * modules/cosh (configure.ac): Likewise.
6418         * modules/erf (configure.ac): Likewise.
6419         * modules/erfc (configure.ac): Likewise.
6420         * modules/exp (configure.ac): Likewise.
6421         * modules/fabs (configure.ac): Likewise.
6422         * modules/fmod (configure.ac): Likewise.
6423         * modules/hypot (configure.ac): Likewise.
6424         * modules/j0 (configure.ac): Likewise.
6425         * modules/j1 (configure.ac): Likewise.
6426         * modules/jn (configure.ac): Likewise.
6427         * modules/ldexp (configure.ac): Likewise.
6428         * modules/lgamma (configure.ac): Likewise.
6429         * modules/log (configure.ac): Likewise.
6430         * modules/log10 (configure.ac): Likewise.
6431         * modules/log1p (configure.ac): Likewise.
6432         * modules/logb (configure.ac): Likewise.
6433         * modules/modf (configure.ac): Likewise.
6434         * modules/nextafter (configure.ac): Likewise.
6435         * modules/pow (configure.ac): Likewise.
6436         * modules/remainder (configure.ac): Likewise.
6437         * modules/rint (configure.ac): Likewise.
6438         * modules/sin (configure.ac): Likewise.
6439         * modules/sinh (configure.ac): Likewise.
6440         * modules/tan (configure.ac): Likewise.
6441         * modules/tanh (configure.ac): Likewise.
6442         * modules/y0 (configure.ac): Likewise.
6443         * modules/y1 (configure.ac): Likewise.
6444         * modules/yn (configure.ac): Likewise.
6445
6446 2010-01-24  Bruno Haible  <bruno@clisp.org>
6447
6448         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
6449         * tests/test-acosl.c (x): New variable.
6450         (main): Store argument in x and fetch it from x.
6451         * tests/test-asinl.c (x): New variable.
6452         (main): Store argument in x and fetch it from x.
6453         * tests/test-atanl.c (x): New variable.
6454         (main): Store argument in x and fetch it from x.
6455         * tests/test-cosl.c (x): New variable.
6456         (main): Store argument in x and fetch it from x.
6457         * tests/test-expl.c (x): New variable.
6458         (main): Store argument in x and fetch it from x.
6459         * tests/test-logl.c (x): New variable.
6460         (main): Store argument in x and fetch it from x.
6461         * tests/test-sinl.c (x): New variable.
6462         (main): Store argument in x and fetch it from x.
6463         * tests/test-sqrtl.c (x): New variable.
6464         (main): Store argument in x and fetch it from x.
6465         * tests/test-tanl.c (x): New variable.
6466         (main): Store argument in x and fetch it from x.
6467
6468 2010-01-24  Bruno Haible  <bruno@clisp.org>
6469
6470         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
6471         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
6472         assignments to the initial TESTS_ENVIRONMENT.
6473         * doc/gnulib.texi (Unit test modules): Document it.
6474         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
6475         TESTS_ENVIRONMENT.
6476         * modules/btowc-tests (Makefile.am): Likewise.
6477         * modules/c-stack-tests (Makefile.am): Likewise.
6478         * modules/c-strcase-tests (Makefile.am): Likewise.
6479         * modules/copy-file-tests (Makefile.am): Likewise.
6480         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
6481         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
6482         * modules/mbrtowc-tests (Makefile.am): Likewise.
6483         * modules/mbscasecmp-tests (Makefile.am): Likewise.
6484         * modules/mbscasestr-tests (Makefile.am): Likewise.
6485         * modules/mbschr-tests (Makefile.am): Likewise.
6486         * modules/mbscspn-tests (Makefile.am): Likewise.
6487         * modules/mbsinit-tests (Makefile.am): Likewise.
6488         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
6489         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
6490         * modules/mbspbrk-tests (Makefile.am): Likewise.
6491         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
6492         * modules/mbsrchr-tests (Makefile.am): Likewise.
6493         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
6494         * modules/mbsspn-tests (Makefile.am): Likewise.
6495         * modules/mbsstr-tests (Makefile.am): Likewise.
6496         * modules/nl_langinfo-tests (Makefile.am): Likewise.
6497         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
6498         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
6499         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
6500         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
6501         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
6502         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
6503         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
6504         * modules/wcrtomb-tests (Makefile.am): Likewise.
6505         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
6506         * modules/wcsrtombs-tests (Makefile.am): Likewise.
6507         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
6508         assignments from TESTS_ENVIRONMENT.
6509         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
6510         augmentation.
6511         * modules/argp-version-etc-tests (Makefile.am): Likewise.
6512         * modules/atexit-tests (Makefile.am): Likewise.
6513         * modules/binary-io-tests (Makefile.am): Likewise.
6514         * modules/closein-tests (Makefile.am): Likewise.
6515         * modules/dprintf-posix-tests (Makefile.am): Likewise.
6516         * modules/exclude-tests (Makefile.am): Likewise.
6517         * modules/fflush-tests (Makefile.am): Likewise.
6518         * modules/fpending-tests (Makefile.am): Likewise.
6519         * modules/fprintf-posix-tests (Makefile.am): Likewise.
6520         * modules/freadahead-tests (Makefile.am): Likewise.
6521         * modules/freadptr-tests (Makefile.am): Likewise.
6522         * modules/freadseek-tests (Makefile.am): Likewise.
6523         * modules/fseek-tests (Makefile.am): Likewise.
6524         * modules/fseeko-tests (Makefile.am): Likewise.
6525         * modules/ftell-tests (Makefile.am): Likewise.
6526         * modules/ftello-tests (Makefile.am): Likewise.
6527         * modules/idpriv-drop-tests (Makefile.am): Likewise.
6528         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
6529         * modules/lseek-tests (Makefile.am): Likewise.
6530         * modules/parse-duration-tests (Makefile.am): Likewise.
6531         * modules/perror-tests (Makefile.am): Likewise.
6532         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
6533         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
6534         * modules/pipe-tests (Makefile.am): Likewise.
6535         * modules/pread-tests (Makefile.am): Likewise.
6536         * modules/printf-posix-tests (Makefile.am): Likewise.
6537         * modules/select-tests (Makefile.am): Likewise.
6538         * modules/sigpipe-tests (Makefile.am): Likewise.
6539         * modules/tsearch-tests (Makefile.am): Likewise.
6540         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
6541         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
6542         * modules/uniname/uniname-tests (Makefile.am): Likewise.
6543         * modules/uniwidth/width-tests (Makefile.am): Likewise.
6544         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
6545         * modules/version-etc-tests (Makefile.am): Likewise.
6546         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
6547         * modules/vprintf-posix-tests (Makefile.am): Likewise.
6548         * modules/xalloc-die-tests (Makefile.am): Likewise.
6549         * modules/xprintf-posix-tests (Makefile.am): Likewise.
6550         * modules/xstrtoimax-tests (Makefile.am): Likewise.
6551         * modules/xstrtol-tests (Makefile.am): Likewise.
6552         * modules/xstrtoumax-tests (Makefile.am): Likewise.
6553         * modules/yesno-tests (Makefile.am): Likewise.
6554         Suggested by Jim Meyering.
6555
6556 2010-01-24  Bruno Haible  <bruno@clisp.org>
6557
6558         More documentation.
6559         * doc/gnulib.texi (Writing modules): New chapter.
6560         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
6561         the new chapter.
6562
6563 2010-01-24  Jim Meyering  <meyering@redhat.com>
6564
6565         maint.mk: do not prepend "./" after filtering
6566         * top/maint.mk (_prepend_srcdir_prefix): New variable
6567         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
6568         "./" when $(srcdir) is ".".
6569
6570         define STREQ(a,b) consistently, removing useless parentheses
6571         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
6572         since the only risk is that "a" or "b" contains an unparenthesized
6573         comma, but if either did that, STREQ would have 3 or more arguments.
6574         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
6575         * lib/fts.c (STREQ): Remove unnecessary parentheses.
6576         * lib/hash-triple.c (STREQ): Likewise.
6577         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
6578         * lib/getugroups.c (STREQ): Likewise.
6579
6580 2010-01-23  Jim Meyering  <meyering@redhat.com>
6581
6582         maint.mk: fix syntax-check in a non-srcdir build directory
6583         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
6584         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
6585
6586 2010-01-22  Jim Meyering  <meyering@redhat.com>
6587
6588         userspec: add unit tests
6589         * tests/test-userspec.c: New file.
6590         * modules/userspec-tests: Likewise.
6591
6592 2010-01-21  Jim Meyering  <meyering@redhat.com>
6593
6594         maint.mk: handle source file names containing "." robustly
6595         * top/maint.mk (_dot_escaped_srcdir): Define.
6596         (VC_LIST): Use it in LHS of sed substitution.
6597
6598 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
6599
6600         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
6601         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
6602         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
6603         from a non-srcdir build.
6604
6605 2010-01-20  Eric Blake  <ebb9@byu.net>
6606
6607         warn-on-use: use instead of link-warning
6608         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
6609         * modules/unistd (Depends-on, Makefile.am): Likewise.
6610         * modules/arpa_inet (Depends-on): Replace link-warning with
6611         warn-on-use.
6612         (Makefile.am): Update rules accordingly.
6613         * modules/ctype (Depends-on, Makefile.am): Likewise.
6614         * modules/dirent (Depends-on, Makefile.am): Likewise.
6615         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
6616         * modules/inttypes (Depends-on, Makefile.am): Likewise.
6617         * modules/langinfo (Depends-on, Makefile.am): Likewise.
6618         * modules/locale (Depends-on, Makefile.am): Likewise.
6619         * modules/math (Depends-on, Makefile.am): Likewise.
6620         * modules/search (Depends-on, Makefile.am): Likewise.
6621         * modules/signal (Depends-on, Makefile.am): Likewise.
6622         * modules/spawn (Depends-on, Makefile.am): Likewise.
6623         * modules/stdlib (Depends-on, Makefile.am): Likewise.
6624         * modules/string (Depends-on, Makefile.am): Likewise.
6625         * modules/strings (Depends-on, Makefile.am): Likewise.
6626         * modules/sys_file (Depends-on, Makefile.am): Likewise.
6627         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
6628         * modules/sys_select (Depends-on, Makefile.am): Likewise.
6629         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
6630         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
6631         * modules/sys_times (Depends-on, Makefile.am): Likewise.
6632         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
6633         * modules/wchar (Depends-on, Makefile.am): Likewise.
6634         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
6635         should be poisoned.
6636         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
6637         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
6638         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
6639         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
6640         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
6641         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
6642         * m4/math_h.m4 (gl_MATH_H): Likewise.
6643         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
6644         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
6645         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
6646         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
6647         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
6648         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
6649         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
6650         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
6651         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
6652         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
6653         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
6654         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
6655         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
6656         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
6657         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
6658         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
6659         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
6660         GL_LINK_WARNING.
6661         * lib/ctype.in.h: Likewise.
6662         * lib/dirent.in.h: Likewise.
6663         * lib/fcntl.in.h: Likewise.
6664         * lib/inttypes.in.h: Likewise.
6665         * lib/langinfo.in.h: Likewise.
6666         * lib/locale.in.h: Likewise.
6667         * lib/math.in.h: Likewise.
6668         * lib/search.in.h: Likewise.
6669         * lib/signal.in.h: Likewise.
6670         * lib/spawn.in.h: Likewise.
6671         * lib/stdio.in.h: Likewise.
6672         * lib/stdlib.in.h: Likewise.
6673         * lib/string.in.h: Likewise.
6674         * lib/strings.in.h: Likewise.
6675         * lib/sys_file.in.h: Likewise.
6676         * lib/sys_ioctl.in.h: Likewise.
6677         * lib/sys_select.in.h: Likewise.
6678         * lib/sys_socket.in.h: Likewise.
6679         * lib/sys_stat.in.h: Likewise.
6680         * lib/sys_times.in.h: Likewise.
6681         * lib/sys_utsname.in.h: Likewise.
6682         * lib/unistd.in.h: Likewise.
6683         * lib/wchar.in.h: Likewise.
6684
6685 2010-01-20  Bruno Haible  <bruno@clisp.org>
6686
6687         Avoid duplicate -lm.
6688         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
6689         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
6690         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
6691         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
6692         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
6693         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
6694         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
6695         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
6696         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
6697         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
6698         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
6699         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
6700         Reported by Paolo Bonzini.
6701
6702 2010-01-19  Bruno Haible  <bruno@clisp.org>
6703
6704         langinfo, nl_langinfo: Relicense under LGPLv2+.
6705         * modules/langinfo (License): Change to LGPLv2+.
6706         * modules/nl_langinfo (License): Likewise.
6707         Patch by David Lutterkort <lutter@redhat.com>.
6708
6709 2010-01-19  Bruno Haible  <bruno@clisp.org>
6710
6711         Avoid compilation error with cc on OSF/1 5.1.
6712         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
6713         statement, not before.
6714         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6715
6716 2010-01-18  Bruno Haible  <bruno@clisp.org>
6717
6718         Avoid a link error due to the __printf__ symbol.
6719         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
6720         and 2.6.x.
6721         (__format__, __printf__): Remove definitions.
6722         * lib/argp-fmtstream.h: Likewise.
6723         * lib/argp.h: Likewise.
6724         * lib/error.h: Likewise.
6725         * lib/vasnprintf.h: Likewise.
6726         * lib/xprintf.h: Likewise.
6727         * lib/xvasprintf.h: Likewise.
6728         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6729
6730 2010-01-18  Bruno Haible  <bruno@clisp.org>
6731
6732         Tests for module 'tanl'.
6733         * modules/tanl-tests: New file.
6734         * tests/test-tanl.c: New file.
6735
6736         Tests for module 'sqrtl'.
6737         * modules/sqrtl-tests: New file.
6738         * tests/test-sqrtl.c: New file.
6739
6740         Tests for module 'sinl'.
6741         * modules/sinl-tests: New file.
6742         * tests/test-sinl.c: New file.
6743
6744         Tests for module 'logl'.
6745         * modules/logl-tests: New file.
6746         * tests/test-logl.c: New file.
6747
6748         Tests for module 'expl'.
6749         * modules/expl-tests: New file.
6750         * tests/test-expl.c: New file.
6751
6752         Tests for module 'cosl'.
6753         * modules/cosl-tests: New file.
6754         * tests/test-cosl.c: New file.
6755
6756         Tests for module 'atanl'.
6757         * modules/atanl-tests: New file.
6758         * tests/test-atanl.c: New file.
6759
6760         Tests for module 'asinl'.
6761         * modules/asinl-tests: New file.
6762         * tests/test-asinl.c: New file.
6763
6764         Tests for module 'acosl'.
6765         * modules/acosl-tests: New file.
6766         * tests/test-acosl.c: New file.
6767
6768         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
6769         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
6770         tanl): Use the standard gnulib idiom.
6771         * lib/cosl.c: Don't include trigl.c and sincosl.c.
6772         * lib/sinl.c: Likewise.
6773         * lib/tanl.c: Don't include trigl.c.
6774         (kernel_tanl): Make static.
6775         * lib/sincosl.c: Include trigl.h first.
6776         * lib/trigl.c: Likewise.
6777         * m4/acosl.m4: New file.
6778         * m4/asinl.m4: New file.
6779         * m4/atanl.m4: New file.
6780         * m4/cosl.m4: New file.
6781         * m4/expl.m4: New file.
6782         * m4/logl.m4: New file.
6783         * m4/sinl.m4: New file.
6784         * m4/sqrtl.m4: New file.
6785         * m4/tanl.m4: New file.
6786         * m4/mathl.m4: Remove file.
6787         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
6788         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
6789         Don't initialize GNULIB_MATHL.
6790         * modules/acosl: New file.
6791         * modules/asinl: New file.
6792         * modules/atanl: New file.
6793         * modules/cosl: New file.
6794         * modules/expl: New file.
6795         * modules/logl: New file.
6796         * modules/sinl: New file.
6797         * modules/sqrtl: New file.
6798         * modules/tanl: New file.
6799         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
6800         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
6801         substitute GNULIB_MATHL.
6802         * modules/mathl: Rewritten.
6803         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
6804         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
6805         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
6806         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
6807         * doc/posix-functions/expl.texi: Mention the 'expl' module.
6808         * doc/posix-functions/logl.texi: Mention the 'logl' module.
6809         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
6810         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
6811         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
6812
6813 2010-01-18  Bruno Haible  <bruno@clisp.org>
6814
6815         sqrt: Make gl_FUNC_SQRT requirable.
6816         * m4/sqrt.m4: New file.
6817         * modules/sqrt (Files): Add it.
6818         (configure.ac): Invoke gl_FUNC_SQRT.
6819
6820 2010-01-18  Bruno Haible  <bruno@clisp.org>
6821
6822         New modules for common <math.h> functions.
6823         * m4/mathfunc.m4: New file.
6824         * modules/acos: New file.
6825         * modules/asin: New file.
6826         * modules/atan: New file.
6827         * modules/atan2: New file.
6828         * modules/cbrt: New file.
6829         * modules/copysign: New file.
6830         * modules/cos: New file.
6831         * modules/cosh: New file.
6832         * modules/erf: New file.
6833         * modules/erfc: New file.
6834         * modules/exp: New file.
6835         * modules/fabs: New file.
6836         * modules/fmod: New file.
6837         * modules/hypot: New file.
6838         * modules/j0: New file.
6839         * modules/j1: New file.
6840         * modules/jn: New file.
6841         * modules/ldexp: New file.
6842         * modules/lgamma: New file.
6843         * modules/log: New file.
6844         * modules/log10: New file.
6845         * modules/log1p: New file.
6846         * modules/logb: New file.
6847         * modules/modf: New file.
6848         * modules/nextafter: New file.
6849         * modules/pow: New file.
6850         * modules/remainder: New file.
6851         * modules/rint: New file.
6852         * modules/sin: New file.
6853         * modules/sinh: New file.
6854         * modules/sqrt: New file.
6855         * modules/tan: New file.
6856         * modules/tanh: New file.
6857         * modules/y0: New file.
6858         * modules/y1: New file.
6859         * modules/yn: New file.
6860         * doc/posix-functions/acos.texi: Mention the 'acos' module.
6861         * doc/posix-functions/asin.texi: Mention the 'asin' module.
6862         * doc/posix-functions/atan.texi: Mention the 'atan' module.
6863         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
6864         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
6865         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
6866         * doc/posix-functions/cos.texi: Mention the 'cos' module.
6867         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
6868         * doc/posix-functions/erf.texi: Mention the 'erf' module.
6869         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
6870         * doc/posix-functions/exp.texi: Mention the 'exp' module.
6871         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
6872         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
6873         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
6874         * doc/posix-functions/j0.texi: Mention the 'j0' module.
6875         * doc/posix-functions/j1.texi: Mention the 'j1' module.
6876         * doc/posix-functions/jn.texi: Mention the 'jn' module.
6877         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
6878         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
6879         * doc/posix-functions/log.texi: Mention the 'log' module.
6880         * doc/posix-functions/log10.texi: Mention the 'log10' module.
6881         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
6882         * doc/posix-functions/logb.texi: Mention the 'logb' module.
6883         * doc/posix-functions/modf.texi: Mention the 'modf' module.
6884         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
6885         * doc/posix-functions/pow.texi: Mention the 'pow' module.
6886         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
6887         * doc/posix-functions/rint.texi: Mention the 'rint' module.
6888         * doc/posix-functions/sin.texi: Mention the 'sin' module.
6889         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
6890         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
6891         * doc/posix-functions/tan.texi: Mention the 'tan' module.
6892         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
6893         * doc/posix-functions/y0.texi: Mention the 'y0' module.
6894         * doc/posix-functions/y1.texi: Mention the 'y1' module.
6895         * doc/posix-functions/yn.texi: Mention the 'yn' module.
6896
6897 2010-01-18  Jim Meyering  <meyering@redhat.com>
6898
6899         ignore-value: relax license to LGPLv2+
6900         * modules/ignore-value (License): Relax to LGPLv2+.
6901
6902         getdate: don't leak when TZ contains two or more '"'s
6903         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
6904         double quote in TZ after the first one.
6905
6906         readtokens: do not leak internal token_lengths buffer
6907         * lib/readtokens.c (readtokens): Free the local, lengths,
6908         when the supplied "token_lengths" parameter is NULL.
6909
6910 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6911
6912         Fix a couple of missing LIBTHREAD link failures on AIX.
6913         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
6914         $(LIBTHREAD).
6915         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
6916
6917         Link test-poll against INET_PTON_LIB.
6918         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
6919         for inet_pton on Solaris 10.
6920
6921 2010-01-17  Bruno Haible  <bruno@clisp.org>
6922
6923         unistdio/*-sprintf: Fix typo in module description.
6924         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
6925         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
6926         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
6927         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
6928         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
6929         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
6930         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
6931         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6932
6933 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6934
6935         gnulib-tool: fix filelist for AIX, HP-UX ksh.
6936         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
6937         variables in shell case patterns, for AIX and HP-UX ksh.
6938
6939         Split large sed scripts, for HP-UX sed.
6940         * modules/stdio: Split sed scripts around 50 sed commands,
6941         to avoid HP-UX limit of 99 commands, in the near future.
6942         * modules/string: Likewise.
6943         * modules/unistd: Likewise.
6944
6945         gnulib-tool: avoid writing in the current directory.
6946         * gnulib-tool (func_emit_lib_Makefile_am)
6947         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
6948         not in the current directory, so concurrent gnulib-tool
6949         instances do not interfere.
6950
6951 2010-01-16  Jim Meyering  <meyering@redhat.com>
6952
6953         doc: update users.txt
6954         * users.txt: Add grep.
6955         (diffutils, gzip): Update URLs.
6956
6957 2010-01-12  Bruno Haible  <bruno@clisp.org>
6958
6959         posix_spawn: Avoid test failure on Cygwin.
6960         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
6961         characters.
6962         Reported by Simon Josefsson.
6963
6964 2010-01-12  Bruno Haible  <bruno@clisp.org>
6965
6966         * tests/test-cond.c (main): When skipping the test, show the reason.
6967
6968 2010-01-12  Simon Josefsson  <simon@josefsson.org>
6969
6970         * lib/striconv.c (str_cd_iconv): Avoid if before free.
6971
6972 2010-01-12  Simon Josefsson  <simon@josefsson.org>
6973
6974         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
6975         VC_LIST_ALWAYS_EXCLUDE_REGEX.
6976
6977 2010-01-12  Eric Blake  <ebb9@byu.net>
6978
6979         build: guarantee AS_VAR_IF
6980         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
6981         (gl_AS_VAR_IF): Move...
6982         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
6983         Reported by Simon Josefsson.
6984
6985 2010-01-12  Simon Josefsson  <simon@josefsson.org>
6986
6987         * lib/stdio.in.h: Fix typo.
6988
6989 2010-01-12  Simon Josefsson  <simon@josefsson.org>
6990
6991         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
6992         libgpg-error.
6993
6994 2010-01-12  Simon Josefsson  <simon@josefsson.org>
6995
6996         * tests/test-xalloc-die.sh: Use $EXEEXT.
6997
6998 2010-01-12  Simon Josefsson  <simon@josefsson.org>
6999             Bruno Haible  <bruno@clisp.org>
7000
7001         getlogin, getlogin_r: Avoid test failure.
7002         * tests/test-getlogin.c: Include <stdio.h>.
7003         (main): Skip the test when the function fails because stdin is not a
7004         tty.
7005         * tests/test-getlogin_r.c: Include <stdio.h>.
7006         (main): Skip the test when the function fails because stdin is not a
7007         tty.
7008
7009 2010-01-11  Eric Blake  <ebb9@byu.net>
7010
7011         tests: avoid more large file warnings
7012         * tests/test-fflush.c: Avoid warning about ftell use.
7013         * tests/test-fseek.c: Avoid warning about fseek use.
7014
7015 2010-01-10  Bruno Haible  <bruno@clisp.org>
7016
7017         nproc: Work better on Linux when /proc and /sys are not mounted.
7018         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
7019         as lower bound when, on glibc/Linux systems,
7020         sysconf (_SC_NPROCESSORS_CONF) returns 1.
7021         Suggested by Pádraig Brady <P@draigbrady.com>.
7022         Reported by Dmitry V. Levin <ldv@altlinux.org>.
7023
7024         nproc: Refactor.
7025         * lib/nproc.c (num_processors_via_affinity_mask): New function,
7026         extracted from num_processors.
7027         (num_processors): Call it.
7028
7029 2010-01-11  Jim Meyering  <meyering@redhat.com>
7030
7031         utimecmp: avoid new warning from upcoming gcc-4.5.0
7032         * lib/utimecmp.c (BILLION): Define using #define rather than an
7033         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
7034
7035 2010-01-11  Eric Blake  <ebb9@byu.net>
7036
7037         math: add portability warnings for classification macros
7038         * modules/math (Depends-on): Add warn-on-use.
7039         (Makefile.am): Provide new substitutions.
7040         * m4/math_h.m4 (gl_MATH_H): Require inline.
7041         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
7042         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
7043         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
7044         implement warnings.
7045
7046         unistd: warn on use of environ without module
7047         * modules/unistd (Depends-on): Add warn-on-use.
7048         (Makefile.am): Provide new substitutions.
7049         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
7050         * lib/unistd.in.h (environ): Wrap with a warning helper function.
7051
7052         stdio: warn on suspicious uses
7053         * modules/stdio (Depends-on): Add warn-on-use.
7054         (Makefile.am): Provide new substitutions.
7055         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
7056         fseeko.
7057         * lib/stdio.in.h (gets): Always warn on use.
7058         (fseek, ftell): Adjust when warnings are issued, and honor
7059         _GL_NO_LARGE_FILES as a way to silence the warning.
7060         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
7061         any warning about large file offsets.
7062         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
7063         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
7064         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
7065         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
7066         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
7067         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
7068         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
7069         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
7070
7071         warn-on-use: new module
7072         * modules/warn-on-use: New file.
7073         * build-aux/warn-on-use.h: Likewise.
7074         * m4/warn-on-use.m4: Likewise.
7075         * MODULES.html.sh (Support for building): Mention it.
7076
7077 2010-01-10  Bruno Haible  <bruno@clisp.org>
7078
7079         Tests for module 'unistr/u32-strdup'.
7080         * modules/unistr/u32-strdup-tests: New file.
7081         * tests/unistr/test-u32-strdup.c: New file.
7082
7083         Tests for module 'unistr/u16-strdup'.
7084         * modules/unistr/u16-strdup-tests: New file.
7085         * tests/unistr/test-u16-strdup.c: New file.
7086
7087         Tests for module 'unistr/u8-strdup'.
7088         * modules/unistr/u8-strdup-tests: New file.
7089         * tests/unistr/test-u8-strdup.c: New file.
7090         * tests/unistr/test-strdup.h: New file.
7091
7092         Tests for module 'unistr/u32-strncmp'.
7093         * modules/unistr/u32-strncmp-tests: New file.
7094         * tests/unistr/test-u32-strncmp.c: New file.
7095
7096         Tests for module 'unistr/u16-strncmp'.
7097         * modules/unistr/u16-strncmp-tests: New file.
7098         * tests/unistr/test-u16-strncmp.c: New file.
7099
7100         Tests for module 'unistr/u8-strncmp'.
7101         * modules/unistr/u8-strncmp-tests: New file.
7102         * tests/unistr/test-u8-strncmp.c: New file.
7103         * tests/unistr/test-strncmp.h: New file.
7104
7105         Tests for module 'unistr/u32-strcoll'.
7106         * modules/unistr/u32-strcoll-tests: New file.
7107         * tests/unistr/test-u32-strcoll.c: New file.
7108
7109         Tests for module 'unistr/u16-strcoll'.
7110         * modules/unistr/u16-strcoll-tests: New file.
7111         * tests/unistr/test-u16-strcoll.c: New file.
7112
7113         Tests for module 'unistr/u8-strcoll'.
7114         * modules/unistr/u8-strcoll-tests: New file.
7115         * tests/unistr/test-u8-strcoll.c: New file.
7116
7117         Tests for module 'unistr/u32-strcmp'.
7118         * modules/unistr/u32-strcmp-tests: New file.
7119         * tests/unistr/test-u32-strcmp.c: New file.
7120         * tests/unistr/test-u32-strcmp.h: New file.
7121
7122         Tests for module 'unistr/u16-strcmp'.
7123         * modules/unistr/u16-strcmp-tests: New file.
7124         * tests/unistr/test-u16-strcmp.c: New file.
7125         * tests/unistr/test-u16-strcmp.h: New file.
7126
7127         Tests for module 'unistr/u8-strcmp'.
7128         * modules/unistr/u8-strcmp-tests: New file.
7129         * tests/unistr/test-u8-strcmp.c: New file.
7130         * tests/unistr/test-u8-strcmp.h: New file.
7131         * tests/unistr/test-strcmp.h: New file.
7132
7133         Tests for module 'unistr/u32-strncat'.
7134         * modules/unistr/u32-strncat-tests: New file.
7135         * tests/unistr/test-u32-strncat.c: New file.
7136
7137         Tests for module 'unistr/u16-strncat'.
7138         * modules/unistr/u16-strncat-tests: New file.
7139         * tests/unistr/test-u16-strncat.c: New file.
7140
7141         Tests for module 'unistr/u8-strncat'.
7142         * modules/unistr/u8-strncat-tests: New file.
7143         * tests/unistr/test-u8-strncat.c: New file.
7144         * tests/unistr/test-strncat.h: New file.
7145
7146         Tests for module 'unistr/u32-strcat'.
7147         * modules/unistr/u32-strcat-tests: New file.
7148         * tests/unistr/test-u32-strcat.c: New file.
7149
7150         Tests for module 'unistr/u16-strcat'.
7151         * modules/unistr/u16-strcat-tests: New file.
7152         * tests/unistr/test-u16-strcat.c: New file.
7153
7154         Tests for module 'unistr/u8-strcat'.
7155         * modules/unistr/u8-strcat-tests: New file.
7156         * tests/unistr/test-u8-strcat.c: New file.
7157         * tests/unistr/test-strcat.h: New file.
7158
7159         Tests for module 'unistr/u32-stpncpy'.
7160         * modules/unistr/u32-stpncpy-tests: New file.
7161         * tests/unistr/test-u32-stpncpy.c: New file.
7162
7163         Tests for module 'unistr/u16-stpncpy'.
7164         * modules/unistr/u16-stpncpy-tests: New file.
7165         * tests/unistr/test-u16-stpncpy.c: New file.
7166
7167         Tests for module 'unistr/u8-stpncpy'.
7168         * modules/unistr/u8-stpncpy-tests: New file.
7169         * tests/unistr/test-u8-stpncpy.c: New file.
7170         * tests/unistr/test-stpncpy.h: New file.
7171
7172         Tests for module 'unistr/u32-strncpy'.
7173         * modules/unistr/u32-strncpy-tests: New file.
7174         * tests/unistr/test-u32-strncpy.c: New file.
7175
7176         Tests for module 'unistr/u16-strncpy'.
7177         * modules/unistr/u16-strncpy-tests: New file.
7178         * tests/unistr/test-u16-strncpy.c: New file.
7179
7180         Tests for module 'unistr/u8-strncpy'.
7181         * modules/unistr/u8-strncpy-tests: New file.
7182         * tests/unistr/test-u8-strncpy.c: New file.
7183         * tests/unistr/test-strncpy.h: New file.
7184
7185         Tests for module 'unistr/u32-stpcpy'.
7186         * modules/unistr/u32-stpcpy-tests: New file.
7187         * tests/unistr/test-u32-stpcpy.c: New file.
7188
7189         Tests for module 'unistr/u16-stpcpy'.
7190         * modules/unistr/u16-stpcpy-tests: New file.
7191         * tests/unistr/test-u16-stpcpy.c: New file.
7192
7193         Tests for module 'unistr/u8-stpcpy'.
7194         * modules/unistr/u8-stpcpy-tests: New file.
7195         * tests/unistr/test-u8-stpcpy.c: New file.
7196         * tests/unistr/test-stpcpy.h: New file.
7197
7198         Tests for module 'unistr/u32-strcpy'.
7199         * modules/unistr/u32-strcpy-tests: New file.
7200         * tests/unistr/test-u32-strcpy.c: New file.
7201
7202         Tests for module 'unistr/u16-strcpy'.
7203         * modules/unistr/u16-strcpy-tests: New file.
7204         * tests/unistr/test-u16-strcpy.c: New file.
7205
7206         Tests for module 'unistr/u8-strcpy'.
7207         * modules/unistr/u8-strcpy-tests: New file.
7208         * tests/unistr/test-u8-strcpy.c: New file.
7209         * tests/unistr/test-strcpy.h: New file.
7210
7211         Tests for module 'unistr/u32-strnlen'.
7212         * modules/unistr/u32-strnlen-tests: New file.
7213         * tests/unistr/test-u32-strnlen.c: New file.
7214
7215         Tests for module 'unistr/u16-strnlen'.
7216         * modules/unistr/u16-strnlen-tests: New file.
7217         * tests/unistr/test-u16-strnlen.c: New file.
7218
7219         Tests for module 'unistr/u8-strnlen'.
7220         * modules/unistr/u8-strnlen-tests: New file.
7221         * tests/unistr/test-u8-strnlen.c: New file.
7222         * tests/unistr/test-strnlen.h: New file.
7223
7224         Tests for module 'unistr/u32-strlen'.
7225         * modules/unistr/u32-strlen-tests: New file.
7226         * tests/unistr/test-u32-strlen.c: New file.
7227
7228         Tests for module 'unistr/u16-strlen'.
7229         * modules/unistr/u16-strlen-tests: New file.
7230         * tests/unistr/test-u16-strlen.c: New file.
7231
7232         Tests for module 'unistr/u8-strlen'.
7233         * modules/unistr/u8-strlen-tests: New file.
7234         * tests/unistr/test-u8-strlen.c: New file.
7235
7236         Tests for module 'unistr/u32-prev'.
7237         * modules/unistr/u32-prev-tests: New file.
7238         * tests/unistr/test-u32-prev.c: New file.
7239
7240         Tests for module 'unistr/u16-prev'.
7241         * modules/unistr/u16-prev-tests: New file.
7242         * tests/unistr/test-u16-prev.c: New file.
7243
7244         Tests for module 'unistr/u8-prev'.
7245         * modules/unistr/u8-prev-tests: New file.
7246         * tests/unistr/test-u8-prev.c: New file.
7247
7248         Tests for module 'unistr/u32-next'.
7249         * modules/unistr/u32-next-tests: New file.
7250         * tests/unistr/test-u32-next.c: New file.
7251
7252         Tests for module 'unistr/u16-next'.
7253         * modules/unistr/u16-next-tests: New file.
7254         * tests/unistr/test-u16-next.c: New file.
7255
7256         Tests for module 'unistr/u8-next'.
7257         * modules/unistr/u8-next-tests: New file.
7258         * tests/unistr/test-u8-next.c: New file.
7259
7260         Tests for module 'unistr/u32-strmbtouc'.
7261         * modules/unistr/u32-strmbtouc-tests: New file.
7262         * tests/unistr/test-u32-strmbtouc.c: New file.
7263
7264         Tests for module 'unistr/u16-strmbtouc'.
7265         * modules/unistr/u16-strmbtouc-tests: New file.
7266         * tests/unistr/test-u16-strmbtouc.c: New file.
7267
7268         Tests for module 'unistr/u8-strmbtouc'.
7269         * modules/unistr/u8-strmbtouc-tests: New file.
7270         * tests/unistr/test-u8-strmbtouc.c: New file.
7271
7272         Tests for module 'unistr/u32-strmblen'.
7273         * modules/unistr/u32-strmblen-tests: New file.
7274         * tests/unistr/test-u32-strmblen.c: New file.
7275
7276         Tests for module 'unistr/u16-strmblen'.
7277         * modules/unistr/u16-strmblen-tests: New file.
7278         * tests/unistr/test-u16-strmblen.c: New file.
7279
7280         Tests for module 'unistr/u8-strmblen'.
7281         * modules/unistr/u8-strmblen-tests: New file.
7282         * tests/unistr/test-u8-strmblen.c: New file.
7283
7284         Tests for module 'unistr/u32-cpy-alloc'.
7285         * modules/unistr/u32-cpy-alloc-tests: New file.
7286         * tests/unistr/test-u32-cpy-alloc.c: New file.
7287
7288         Tests for module 'unistr/u16-cpy-alloc'.
7289         * modules/unistr/u16-cpy-alloc-tests: New file.
7290         * tests/unistr/test-u16-cpy-alloc.c: New file.
7291
7292         Tests for module 'unistr/u8-cpy-alloc'.
7293         * modules/unistr/u8-cpy-alloc-tests: New file.
7294         * tests/unistr/test-u8-cpy-alloc.c: New file.
7295         * tests/unistr/test-cpy-alloc.h: New file.
7296
7297         Tests for module 'unistr/u32-mbsnlen'.
7298         * modules/unistr/u32-mbsnlen-tests: New file.
7299         * tests/unistr/test-u32-mbsnlen.c: New file.
7300
7301         Tests for module 'unistr/u16-mbsnlen'.
7302         * modules/unistr/u16-mbsnlen-tests: New file.
7303         * tests/unistr/test-u16-mbsnlen.c: New file.
7304
7305         Tests for module 'unistr/u8-mbsnlen'.
7306         * modules/unistr/u8-mbsnlen-tests: New file.
7307         * tests/unistr/test-u8-mbsnlen.c: New file.
7308
7309         Tests for module 'unistr/u32-chr'.
7310         * modules/unistr/u32-chr-tests: New file.
7311         * tests/unistr/test-u32-chr.c: New file.
7312
7313         Tests for module 'unistr/u16-chr'.
7314         * modules/unistr/u16-chr-tests: New file.
7315         * tests/unistr/test-u16-chr.c: New file.
7316
7317         Tests for module 'unistr/u8-chr'.
7318         * modules/unistr/u8-chr-tests: New file.
7319         * tests/unistr/test-u8-chr.c: New file.
7320         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
7321
7322         Tests for module 'unistr/u32-cmp2'.
7323         * modules/unistr/u32-cmp2-tests: New file.
7324         * tests/unistr/test-u32-cmp2.c: New file.
7325
7326         Tests for module 'unistr/u16-cmp2'.
7327         * modules/unistr/u16-cmp2-tests: New file.
7328         * tests/unistr/test-u16-cmp2.c: New file.
7329
7330         Tests for module 'unistr/u8-cmp2'.
7331         * modules/unistr/u8-cmp2-tests: New file.
7332         * tests/unistr/test-u8-cmp2.c: New file.
7333         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
7334
7335         Tests for module 'unistr/u32-cmp'.
7336         * modules/unistr/u32-cmp-tests: New file.
7337         * tests/unistr/test-u32-cmp.c: New file.
7338
7339         Tests for module 'unistr/u16-cmp'.
7340         * modules/unistr/u16-cmp-tests: New file.
7341         * tests/unistr/test-u16-cmp.c: New file.
7342
7343         Tests for module 'unistr/u8-cmp'.
7344         * modules/unistr/u8-cmp-tests: New file.
7345         * tests/unistr/test-u8-cmp.c: New file.
7346         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
7347
7348         Tests for module 'unistr/u32-set'.
7349         * modules/unistr/u32-set-tests: New file.
7350         * tests/unistr/test-u32-set.c: New file.
7351
7352         Tests for module 'unistr/u16-set'.
7353         * modules/unistr/u16-set-tests: New file.
7354         * tests/unistr/test-u16-set.c: New file.
7355
7356         Tests for module 'unistr/u8-set'.
7357         * modules/unistr/u8-set-tests: New file.
7358         * tests/unistr/test-u8-set.c: New file.
7359         * tests/unistr/test-set.h: New file.
7360
7361         Tests for module 'unistr/u32-move'.
7362         * modules/unistr/u32-move-tests: New file.
7363         * tests/unistr/test-u32-move.c: New file.
7364
7365         Tests for module 'unistr/u16-move'.
7366         * modules/unistr/u16-move-tests: New file.
7367         * tests/unistr/test-u16-move.c: New file.
7368
7369         Tests for module 'unistr/u8-move'.
7370         * modules/unistr/u8-move-tests: New file.
7371         * tests/unistr/test-u8-move.c: New file.
7372         * tests/unistr/test-move.h: New file.
7373
7374         Tests for module 'unistr/u32-cpy'.
7375         * modules/unistr/u32-cpy-tests: New file.
7376         * tests/unistr/test-u32-cpy.c: New file.
7377
7378         Tests for module 'unistr/u16-cpy'.
7379         * modules/unistr/u16-cpy-tests: New file.
7380         * tests/unistr/test-u16-cpy.c: New file.
7381
7382         Tests for module 'unistr/u8-cpy'.
7383         * modules/unistr/u8-cpy-tests: New file.
7384         * tests/unistr/test-u8-cpy.c: New file.
7385         * tests/unistr/test-cpy.h: New file.
7386
7387 2010-01-09  Bruno Haible  <bruno@clisp.org>
7388
7389         Tests for module 'unistr/u32-uctomb'.
7390         * modules/unistr/u32-uctomb-tests: New file.
7391         * tests/unistr/test-u32-uctomb.c: New file.
7392
7393         Tests for module 'unistr/u16-uctomb'.
7394         * modules/unistr/u16-uctomb-tests: New file.
7395         * tests/unistr/test-u16-uctomb.c: New file.
7396
7397         Tests for module 'unistr/u8-uctomb'.
7398         * modules/unistr/u8-uctomb-tests: New file.
7399         * tests/unistr/test-u8-uctomb.c: New file.
7400
7401         Tests for module 'unistr/u32-mbtoucr'.
7402         * modules/unistr/u32-mbtoucr-tests: New file.
7403         * tests/unistr/test-u32-mbtoucr.c: New file.
7404
7405         Tests for module 'unistr/u16-mbtoucr'.
7406         * modules/unistr/u16-mbtoucr-tests: New file.
7407         * tests/unistr/test-u16-mbtoucr.c: New file.
7408
7409         Tests for module 'unistr/u8-mbtoucr'.
7410         * modules/unistr/u8-mbtoucr-tests: New file.
7411         * tests/unistr/test-u8-mbtoucr.c: New file.
7412
7413         Tests for module 'unistr/u32-mbtouc'.
7414         * modules/unistr/u32-mbtouc-tests: New file.
7415         * tests/unistr/test-u32-mbtouc.c: New file.
7416
7417         Tests for module 'unistr/u16-mbtouc'.
7418         * modules/unistr/u16-mbtouc-tests: New file.
7419         * tests/unistr/test-u16-mbtouc.c: New file.
7420
7421         Tests for module 'unistr/u8-mbtouc'.
7422         * modules/unistr/u8-mbtouc-tests: New file.
7423         * tests/unistr/test-u8-mbtouc.c: New file.
7424
7425         Tests for module 'unistr/u32-mbtouc-unsafe'.
7426         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
7427         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
7428         * tests/unistr/test-u32-mbtouc.h: New file.
7429
7430         Tests for module 'unistr/u16-mbtouc-unsafe'.
7431         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
7432         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
7433         * tests/unistr/test-u16-mbtouc.h: New file.
7434
7435         Tests for module 'unistr/u8-mbtouc-unsafe'.
7436         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
7437         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
7438         * tests/unistr/test-u8-mbtouc.h: New file.
7439
7440         Tests for module 'unistr/u32-mblen'.
7441         * modules/unistr/u32-mblen-tests: New file.
7442         * tests/unistr/test-u32-mblen.c: New file.
7443
7444         Tests for module 'unistr/u16-mblen'.
7445         * modules/unistr/u16-mblen-tests: New file.
7446         * tests/unistr/test-u16-mblen.c: New file.
7447
7448         Tests for module 'unistr/u8-mblen'.
7449         * modules/unistr/u8-mblen-tests: New file.
7450         * tests/unistr/test-u8-mblen.c: New file.
7451
7452         Tests for module 'unistr/u32-to-u16'.
7453         * modules/unistr/u32-to-u16-tests: New file.
7454         * tests/unistr/test-u32-to-u16.c: New file.
7455
7456         Tests for module 'unistr/u32-to-u8'.
7457         * modules/unistr/u32-to-u8-tests: New file.
7458         * tests/unistr/test-u32-to-u8.c: New file.
7459
7460         Tests for module 'unistr/u16-to-u32'.
7461         * modules/unistr/u16-to-u32-tests: New file.
7462         * tests/unistr/test-u16-to-u32.c: New file.
7463
7464         Tests for module 'unistr/u16-to-u8'.
7465         * modules/unistr/u16-to-u8-tests: New file.
7466         * tests/unistr/test-u16-to-u8.c: New file.
7467
7468         Tests for module 'unistr/u8-to-u32'.
7469         * modules/unistr/u8-to-u32-tests: New file.
7470         * tests/unistr/test-u8-to-u32.c: New file.
7471
7472         Tests for module 'unistr/u8-to-u16'.
7473         * modules/unistr/u8-to-u16-tests: New file.
7474         * tests/unistr/test-u8-to-u16.c: New file.
7475
7476         Tests for module 'unistr/u32-check'.
7477         * modules/unistr/u32-check-tests: New file.
7478         * tests/unistr/test-u32-check.c: New file.
7479
7480         Tests for module 'unistr/u16-check'.
7481         * modules/unistr/u16-check-tests: New file.
7482         * tests/unistr/test-u16-check.c: New file.
7483
7484         Tests for module 'unistr/u8-check'.
7485         * modules/unistr/u8-check-tests: New file.
7486         * tests/unistr/test-u8-check.c: New file.
7487
7488         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
7489         (category_equals): New function.
7490         (main): Add more tests.
7491         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
7492
7493         * tests/unictype/test-bidi_byname.c (main): Add more tests.
7494
7495 2010-01-10  Bruno Haible  <bruno@clisp.org>
7496
7497         unistr/u*-strcoll: Try harder to distinguish different strings.
7498         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
7499         compare s1 and s2 to see if they are different.
7500
7501 2010-01-10  Bruno Haible  <bruno@clisp.org>
7502
7503         unistr/u*-stpncpy: Fix the return value.
7504         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
7505         description of the return value consistent with stpncpy in glibc.
7506         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
7507         written non-NUL unit.
7508
7509 2010-01-10  Bruno Haible  <bruno@clisp.org>
7510
7511         unistr/u*-next: Add missing dependencies.
7512         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
7513         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
7514         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
7515
7516 2010-01-10  Bruno Haible  <bruno@clisp.org>
7517
7518         unistr/u8-mbsnlen: Fix return value for incomplete character.
7519         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
7520         u8_mblen.
7521         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
7522         Remove unistr/u8-mblen.
7523         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
7524         u16_mblen.
7525         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
7526         Remove unistr/u16-mblen.
7527
7528 2010-01-10  Bruno Haible  <bruno@clisp.org>
7529
7530         wchar: Fix compilation error when <wchar.h> is used from coreutils.
7531         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
7532         Reported by Brian Gough <bjg@gnu.org> and
7533         Chris Clayton <chris2553@googlemail.com> via
7534         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
7535
7536 2010-01-09  Bruno Haible  <bruno@clisp.org>
7537
7538         unistr/u16-to-u32: Reject invalid input.
7539         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
7540         u16_mbtouc.
7541         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
7542         Remove unistr/u16-mbtouc.
7543
7544         unistr/u16-to-u8: Reject invalid input.
7545         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
7546         u16_mbtouc.
7547         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
7548         Remove unistr/u16-mbtouc.
7549
7550         unistr/u8-to-u32: Reject invalid input.
7551         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
7552         u8_mbtouc.
7553         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
7554         Remove unistr/u8-mbtouc.
7555
7556         unistr/u8-to-u16: Reject invalid input.
7557         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
7558         u8_mbtouc.
7559         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
7560         Remove unistr/u8-mbtouc.
7561
7562 2010-01-09  Bruno Haible  <bruno@clisp.org>
7563
7564         Tests for module 'getlogin'.
7565         * modules/getlogin-tests: New file.
7566         * tests/test-getlogin.c: New file.
7567
7568         New module 'getlogin'.
7569         * lib/unistd.in.h (getlogin): New declaration.
7570         * lib/getlogin.c: New file.
7571         * m4/getlogin.m4: New file.
7572         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
7573         HAVE_GETLOGIN.
7574         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
7575         HAVE_GETLOGIN.
7576         * modules/getlogin: New file.
7577         * doc/posix-functions/getlogin.texi: Mention the new module.
7578         Reported by John W. Eaton <jwe@gnu.org>.
7579
7580 2010-01-09  Bruno Haible  <bruno@clisp.org>
7581
7582         getlogin_r: Support for native Windows.
7583         * lib/getlogin_r.c: Include <windows.h>
7584         (getlogin_r): Implement for native Windows.
7585         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
7586         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
7587         via John W. Eaton <jwe@gnu.org>.
7588
7589 2010-01-09  Bruno Haible  <bruno@clisp.org>
7590
7591         getlogin_r: Small fixes.
7592         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
7593         succeeds.
7594         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
7595         before testing whether getlogin_r is declared. No need to set
7596         HAVE_DECL_GETLOGIN_R to 1.
7597         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
7598
7599 2010-01-09  Bruno Haible  <bruno@clisp.org>
7600
7601         * lib/unistd.in.h (getlogin_r): Add comment.
7602
7603 2010-01-09  Bruno Haible  <bruno@clisp.org>
7604
7605         Tests for module 'getlogin_r'.
7606         * modules/getlogin_r-tests: New file.
7607         * tests/test-getlogin_r.c: New file.
7608
7609 2010-01-09  Jim Meyering  <meyering@redhat.com>
7610
7611         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
7612         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
7613         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
7614
7615 2010-01-08  Simon Josefsson  <simon@josefsson.org>
7616
7617         * lib/dup2.c (rpl_dup2): Improve comment.
7618
7619 2010-01-08  Eric Blake  <ebb9@byu.net>
7620
7621         maint.mk: allow packages to add makefile @@ exceptions
7622         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
7623         (sc_makefile_check): Rename...
7624         (sc_makefile_at_at_check): ...to this, and use hook.
7625
7626         dup2: work around mingw bug
7627         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
7628         Reported by Simon Josefsson.
7629
7630 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
7631
7632         glob: Fix C++ compilation.
7633         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
7634         C++.
7635
7636 2010-01-07  Bruno Haible  <bruno@clisp.org>
7637
7638         Fix indentation of wctype.in.h, broken since 2007-01-06.
7639         * lib/wctype.in.h: Fix indentation of preprocessor directives.
7640
7641 2010-01-07  Bruno Haible  <bruno@clisp.org>
7642
7643         mbslen: Avoid collision with system function.
7644         * lib/string.in.h [MirBSD]: Include <wchar.h>.
7645         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
7646         * m4/mbslen.m4: New file.
7647         * modules/mbslen (Files): Add it.
7648         (configure.ac): Invoke gl_MBSLEN.
7649         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
7650         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
7651         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
7652         via Ian Beckwith <ianb@erislabs.net>.
7653
7654 2010-01-07  Bruno Haible  <bruno@clisp.org>
7655
7656         dirent: Document the last fix.
7657         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
7658
7659 2010-01-07  Bruno Haible  <bruno@clisp.org>
7660
7661         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
7662         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
7663         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
7664         va_list are defined.
7665         * doc/posix-headers/stdio.texi: Document the bug of missing types.
7666         Reported by Eric Blake.
7667
7668 2010-01-07  Bruno Haible  <bruno@clisp.org>
7669
7670         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
7671         * modules/xlist (Depends-on): Add 'list',
7672         * modules/xoset (Depends-on): Add 'oset'.
7673         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7674
7675 2010-01-07  Bruno Haible  <bruno@clisp.org>
7676
7677         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
7678         * doc/posix-functions/strncasecmp.texi: Likewise.
7679
7680 2010-01-07  Bruno Haible  <bruno@clisp.org>
7681
7682         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
7683
7684 2010-01-07  John W. Eaton  <jwe@octave.org>
7685
7686         wctype: allow C++ use
7687         * lib/wctype.in.h: Add extern "C" block for C++.
7688
7689 2010-01-06  Eric Blake  <ebb9@byu.net>
7690
7691         maint.mk: detect incorrect GFDL usage
7692         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
7693
7694 2010-01-06  Jim Meyering  <meyering@redhat.com>
7695         and Eric Blake  <ebb9@byu.net>
7696
7697         maint.mk: ignore multi-line copyright in NEWS
7698         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
7699
7700 2010-01-06  Eric Blake  <ebb9@byu.net>
7701
7702         select: add missing dependency
7703         * modules/select-tests (Depends-on): Move sockets dependency...
7704         * modules/select (Depends-on): ...here.
7705         Reported by Ian Beckwith.
7706
7707         doc: regenerate INSTALL
7708         * doc/INSTALL: Reflect recent autoconf update.
7709         * doc/INSTALL.ISO: Likewise.
7710         * doc/INSTALL.UTF-8: Likewise.
7711
7712         pread: fix compilation on glibc
7713         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
7714         Reported by Ralf Wildenhues.
7715
7716         dirent: fix test failure
7717         * lib/dirent.in.h (includes): Guarantee ino_t.
7718         Reported by Ralf Wildenhues.
7719
7720 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
7721
7722         linkat, renameat: avoid bad free
7723         * lib/at-func2.c (at_func2): Fix typo.
7724         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
7725
7726 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7727
7728         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
7729         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
7730         to avoid failure of symlink test later.
7731
7732 2010-01-06  Eric Blake  <ebb9@byu.net>
7733
7734         stdio, unistd: guarantee ssize_t
7735         * lib/unistd.in.h (includes): Ensure that types required by POSIX
7736         2008 are exposed when needed.
7737         * lib/stdio.in.h (includes): Likewise.
7738         Reported by Ralf Wildenhues.
7739
7740 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
7741
7742         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
7743         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
7744         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
7745
7746 2010-01-06  Jim Meyering  <meyering@redhat.com>
7747
7748         readtokens: this module *does* require xalloc.h
7749         It uses only functions that were omitted by the old syntax-check rule.
7750         * lib/readtokens.c: Include "xalloc.h" once again.
7751         * modules/readtokens (Depends-on): Add xalloc.
7752         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
7753
7754 2010-01-05  Eric Blake  <ebb9@byu.net>
7755
7756         maint: support 'make announcement' from a VPATH build
7757         * top/maint.mk (announcement): Look for correct NEWS file.
7758
7759 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
7760
7761         utimens (fdutimens): ignore a negative FD, per contract
7762         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
7763         when we have a valid file descriptor.  Otherwise, using a brand
7764         new glibc (with just-patched futimens that now fails with EBADF)
7765         would cause this function to fail with ENOSYS.
7766         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
7767         See also http://bugzilla.redhat.com/552320.
7768
7769 2010-01-05  Eric Blake  <ebb9@byu.net>
7770
7771         strcase: document what it provides
7772         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
7773         gnulib module.
7774         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
7775         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
7776
7777 2010-01-05  Jim Meyering  <meyering@redhat.com>
7778
7779         maint: remove useless inclusions of "xalloc.h"
7780         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
7781         * lib/readtokens.c: Likewise.
7782         * lib/same.c: Likewise.
7783         * modules/getloadavg (Depends-on): Remove xalloc.
7784         * modules/readtokens: Likewise.
7785         * modules/same: Likewise.
7786
7787         maint.mk: include 4 more function names in alloca.h-checking regexp
7788         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
7789         regexp.  Before, we would give a false-positive (saying alloca.h
7790         is included unnecessarily) when the only uses involved omitted symbols.
7791
7792         xalloc.h: use consistent formatting
7793         * lib/xalloc.h: Move declarations to start in the first column.
7794
7795 2010-01-05  Eric Blake  <ebb9@byu.net>
7796
7797         mkdir: avoid xalloc
7798         * lib/mkdir.c (includes): Drop unused header.
7799         Reported by John W. Eaton.
7800
7801 2010-01-04  Jim Meyering  <meyering@redhat.com>
7802
7803         nl_langinfo: avoid configure-time syntax error
7804         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
7805         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
7806         the empty string.  Don't let that provoke a shell syntax error.
7807
7808         regcomp, regexec, fnmatch: avoid array bounds read error
7809         * lib/regcomp.c (build_equiv_class): From glibc:
7810         Use only the low 24 bits of a findidx return value as an index
7811         into the weights array.  Patch by Ulrich Drepper:
7812         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
7813         * lib/regexec.c (check_node_accept_bytes): Likewise.
7814         * lib/fnmatch_loop.c (FCT): Likewise.
7815
7816         regcomp: skip collseq lookup when there are no rules
7817         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
7818         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
7819
7820         regcomp: recognize ill-formed { } expressions
7821         * lib/regcomp.c (parse_dup_op): From glibc:
7822         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
7823
7824         regcomp: fix typo in comment
7825         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
7826         s/satisfy/satisfies/.
7827
7828         regcomp: sync from glibc: remove dead store
7829         * lib/regcomp.c (duplicate_node_closure): Remove useless
7830         search_duplicated_node call and dead store.
7831
7832         regcomp: sync from glibc; always use nl_langinfo
7833         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
7834         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
7835         * modules/regex (Depends-on): Add nl_langinfo.
7836
7837 2010-01-04  Eric Blake  <ebb9@byu.net>
7838
7839         fdopendir: fix configure test
7840         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
7841
7842 2010-01-01  Bruno Haible  <bruno@clisp.org>
7843
7844         wchar: Remove unused configure check.
7845         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
7846
7847 2010-01-01  Eric Blake  <ebb9@byu.net>
7848
7849         headers: make check of system header explicit
7850         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
7851         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
7852         ourselves.
7853         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
7854         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
7855         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
7856         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
7857         internals.
7858         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
7859         missing.
7860         Suggested by Bruno Haible.
7861
7862 2010-01-01  Jim Meyering  <meyering@redhat.com>
7863
7864         ChangeLog: tweak to eliminate unnecessary copyright line
7865         * ChangeLog: Remove a copyright line that was mistakenly updated
7866         by today's update-copyright run.  Reported by Eric Blake.
7867
7868         test-update-copyright: don't let envvar setting cause test failure
7869         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
7870
7871 2010-01-01  Bruno Haible  <bruno@clisp.org>
7872
7873         localename: Avoid gcc warning.
7874         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
7875         function if it is not used.
7876
7877 2010-01-01  Jim Meyering  <meyering@redhat.com>
7878
7879         update nearly all FSF copyright year lists to include 2010
7880         Use the same procedure as for 2009, outlined in
7881         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
7882
7883         version-etc: set COPYRIGHT_YEAR to 2010
7884         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
7885
7886 2009-12-31  Eric Blake  <ebb9@byu.net>
7887
7888         doc: correct availability of cygwin 1.5.x getopt
7889         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
7890         variables.
7891         * doc/posix-functions/opterr.texi (opterr): Likewise.
7892         * doc/posix-functions/optind.texi (optind): Likewise.
7893         * doc/posix-functions/optopt.texi (optopt): Likewise.
7894         * doc/posix-functions/tzname.texi (tzname): Likewise.
7895
7896         openat: update maintainer
7897         * modules/openat (Maintainer): Add myself.
7898
7899         utimens: avoid shadowing warning
7900         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
7901         buffers into one, to avoid shadowing, as well as avoiding a
7902         redundant stat.
7903         Reported by Jim Meyering.
7904
7905         test-dup2: avoid compiler warning
7906         * tests/test-dup2.c (is_inheritable): Only define if used.
7907
7908 2010-01-01  Bruno Haible  <bruno@clisp.org>
7909
7910         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
7911         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
7912         defined, use wctomb instead of wcrtomb.
7913
7914 2010-01-01  Bruno Haible  <bruno@clisp.org>
7915
7916         iconv: Reject native Solaris iconv.
7917         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
7918         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
7919
7920 2009-12-31  Bruno Haible  <bruno@clisp.org>
7921
7922         * tests/test-signal.c (main): Remove test of 'SIG'.
7923
7924 2009-12-31  Bruno Haible  <bruno@clisp.org>
7925
7926         spawn: Fix incomplete fix.
7927         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
7928         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
7929         warnings for GNULIB_POSIXCHECK again.
7930         Reported by Eric Blake.
7931
7932 2009-12-31  Bruno Haible  <bruno@clisp.org>
7933
7934         Avoid namespace pollution on glibc systems.
7935         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
7936         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
7937         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
7938         glibc systems.
7939
7940 2009-12-31  Bruno Haible  <bruno@clisp.org>
7941
7942         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
7943         (gl_REPLACE_WCHAR_H): Turn into a no-op.
7944         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
7945         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
7946         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
7947         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
7948         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
7949
7950 2009-12-31  Bruno Haible  <bruno@clisp.org>
7951
7952         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
7953         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
7954         afterwards.
7955
7956 2009-12-31  Bruno Haible  <bruno@clisp.org>
7957
7958         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
7959         SYS_UTSNAME_H.
7960
7961 2009-12-31  Bruno Haible  <bruno@clisp.org>
7962
7963         spawn: Fix misapplied patch.
7964         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
7965         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
7966         warnings for GNULIB_POSIXCHECK.
7967
7968 2009-12-31  Bruno Haible  <bruno@clisp.org>
7969
7970         times: Update after sys_times changed.
7971         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
7972         * modules/times (Files): Add it.
7973         (configure.ac): Invoke gl_FUNC_TIMES.
7974
7975 2009-12-31  Bruno Haible  <bruno@clisp.org>
7976
7977         Use AC_C_INLINE where necessary.
7978         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
7979         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
7980         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
7981         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
7982         * m4/mbfile.m4 (gl_MBFILE): Likewise.
7983         * m4/mbiter.m4 (gl_MBITER): Likewise.
7984         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
7985         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
7986         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
7987         * modules/u64 (configure.ac): Likewise.
7988
7989 2009-12-31  Bruno Haible  <bruno@clisp.org>
7990
7991         Use AC_C_INLINE instead of module 'inline' where possible.
7992         * modules/inline (Description): Clarify purpose.
7993         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
7994         * modules/count-one-bits (Depends-on): Remove inline.
7995         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
7996         * modules/openat (Depends-on): Remove inline.
7997         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
7998         instead of depending on module 'inline'.
7999         * modules/filevercmp (Depends-on, configure.ac): Likewise.
8000         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
8001         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
8002         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
8003         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
8004         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
8005         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
8006         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
8007         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
8008         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
8009         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
8010         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
8011         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
8012         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
8013         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
8014         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
8015         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
8016         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
8017         Likewise.
8018         * modules/unictype/property-ascii-hex-digit (Depends-on,
8019         configure.ac): Likewise.
8020         * modules/unictype/property-bidi-arabic-digit (Depends-on,
8021         configure.ac): Likewise.
8022         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
8023         configure.ac): Likewise.
8024         * modules/unictype/property-bidi-block-separator (Depends-on,
8025         configure.ac): Likewise.
8026         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
8027         configure.ac): Likewise.
8028         * modules/unictype/property-bidi-common-separator (Depends-on,
8029         configure.ac): Likewise.
8030         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
8031         Likewise.
8032         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
8033         configure.ac): Likewise.
8034         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
8035         configure.ac): Likewise.
8036         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
8037         configure.ac): Likewise.
8038         * modules/unictype/property-bidi-european-digit (Depends-on,
8039         configure.ac): Likewise.
8040         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
8041         configure.ac): Likewise.
8042         * modules/unictype/property-bidi-left-to-right (Depends-on,
8043         configure.ac): Likewise.
8044         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
8045         configure.ac): Likewise.
8046         * modules/unictype/property-bidi-other-neutral (Depends-on,
8047         configure.ac): Likewise.
8048         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
8049         Likewise.
8050         * modules/unictype/property-bidi-segment-separator (Depends-on,
8051         configure.ac): Likewise.
8052         * modules/unictype/property-bidi-whitespace (Depends-on,
8053         configure.ac): Likewise.
8054         * modules/unictype/property-combining (Depends-on, configure.ac):
8055         Likewise.
8056         * modules/unictype/property-composite (Depends-on, configure.ac):
8057         Likewise.
8058         * modules/unictype/property-currency-symbol (Depends-on,
8059         configure.ac): Likewise.
8060         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
8061         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
8062         Likewise.
8063         * modules/unictype/property-default-ignorable-code-point (Depends-on,
8064         configure.ac): Likewise.
8065         * modules/unictype/property-deprecated (Depends-on, configure.ac):
8066         Likewise.
8067         * modules/unictype/property-diacritic (Depends-on, configure.ac):
8068         Likewise.
8069         * modules/unictype/property-extender (Depends-on, configure.ac):
8070         Likewise.
8071         * modules/unictype/property-format-control (Depends-on, configure.ac):
8072         Likewise.
8073         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
8074         Likewise.
8075         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
8076         Likewise.
8077         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
8078         Likewise.
8079         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
8080         Likewise.
8081         * modules/unictype/property-hyphen (Depends-on, configure.ac):
8082         Likewise.
8083         * modules/unictype/property-id-continue (Depends-on, configure.ac):
8084         Likewise.
8085         * modules/unictype/property-id-start (Depends-on, configure.ac):
8086         Likewise.
8087         * modules/unictype/property-ideographic (Depends-on, configure.ac):
8088         Likewise.
8089         * modules/unictype/property-ids-binary-operator (Depends-on,
8090         configure.ac): Likewise.
8091         * modules/unictype/property-ids-trinary-operator (Depends-on,
8092         configure.ac): Likewise.
8093         * modules/unictype/property-ignorable-control (Depends-on,
8094         configure.ac): Likewise.
8095         * modules/unictype/property-iso-control (Depends-on, configure.ac):
8096         Likewise.
8097         * modules/unictype/property-join-control (Depends-on, configure.ac):
8098         Likewise.
8099         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
8100         Likewise.
8101         * modules/unictype/property-line-separator (Depends-on, configure.ac):
8102         Likewise.
8103         * modules/unictype/property-logical-order-exception (Depends-on,
8104         configure.ac): Likewise.
8105         * modules/unictype/property-lowercase (Depends-on, configure.ac):
8106         Likewise.
8107         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
8108         * modules/unictype/property-non-break (Depends-on, configure.ac):
8109         Likewise.
8110         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
8111         Likewise.
8112         * modules/unictype/property-numeric (Depends-on, configure.ac):
8113         Likewise.
8114         * modules/unictype/property-other-alphabetic (Depends-on,
8115         configure.ac): Likewise.
8116         * modules/unictype/property-other-default-ignorable-code-point
8117         (Depends-on, configure.ac): Likewise.
8118         * modules/unictype/property-other-grapheme-extend (Depends-on,
8119         configure.ac): Likewise.
8120         * modules/unictype/property-other-id-continue (Depends-on,
8121         configure.ac): Likewise.
8122         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
8123         Likewise.
8124         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
8125         Likewise.
8126         * modules/unictype/property-other-math (Depends-on, configure.ac):
8127         Likewise.
8128         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
8129         Likewise.
8130         * modules/unictype/property-paired-punctuation (Depends-on,
8131         configure.ac): Likewise.
8132         * modules/unictype/property-paragraph-separator (Depends-on,
8133         configure.ac): Likewise.
8134         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
8135         Likewise.
8136         * modules/unictype/property-pattern-white-space (Depends-on,
8137         configure.ac): Likewise.
8138         * modules/unictype/property-private-use (Depends-on, configure.ac):
8139         Likewise.
8140         * modules/unictype/property-punctuation (Depends-on, configure.ac):
8141         Likewise.
8142         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
8143         Likewise.
8144         * modules/unictype/property-radical (Depends-on, configure.ac):
8145         Likewise.
8146         * modules/unictype/property-sentence-terminal (Depends-on,
8147         configure.ac): Likewise.
8148         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
8149         Likewise.
8150         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
8151         * modules/unictype/property-terminal-punctuation (Depends-on,
8152         configure.ac): Likewise.
8153         * modules/unictype/property-titlecase (Depends-on, configure.ac):
8154         Likewise.
8155         * modules/unictype/property-unassigned-code-value (Depends-on,
8156         configure.ac): Likewise.
8157         * modules/unictype/property-unified-ideograph (Depends-on,
8158         configure.ac): Likewise.
8159         * modules/unictype/property-uppercase (Depends-on, configure.ac):
8160         Likewise.
8161         * modules/unictype/property-variation-selector (Depends-on,
8162         configure.ac): Likewise.
8163         * modules/unictype/property-white-space (Depends-on, configure.ac):
8164         Likewise.
8165         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
8166         Likewise.
8167         * modules/unictype/property-xid-start (Depends-on, configure.ac):
8168         Likewise.
8169         * modules/unictype/property-zero-width (Depends-on, configure.ac):
8170         Likewise.
8171         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
8172         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
8173         Likewise.
8174
8175 2009-12-31  Bruno Haible  <bruno@clisp.org>
8176
8177         Remove unnecessary AC_C_INLINE invocation.
8178         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
8179         since 2009-08-21.
8180
8181 2009-12-31  Jim Meyering  <meyering@redhat.com>
8182
8183         maint.mk: don't require explicit gpg_key_ID in cfg.mk
8184         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
8185         With this change, we can all remove the gpg_key_ID = ... definition
8186         from our respective cfg.mk files.
8187
8188         maint.mk: create announcement template in ~/, not in /tmp
8189         * top/maint.mk (emit_upload_commands): Adjust.
8190         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
8191         Remove temporary file, .ci-msg.
8192
8193 2009-12-31  Eric Blake  <ebb9@byu.net>
8194
8195         link-warning: always build headers with link warnings
8196         * modules/arpa_inet (Makefile.am): Always build replacement
8197         header.
8198         * modules/ctype (Makefile.am): Likewise.
8199         * modules/dirent (Makefile.am): Likewise.
8200         * modules/inttypes (Makefile.am): Likewise.
8201         * modules/langinfo (Makefile.am): Likewise.
8202         * modules/locale (Makefile.am): Likewise.
8203         * modules/spawn (Makefile.am): Likewise.
8204         * modules/sys_file (Makefile.am): Likewise.
8205         * modules/sys_ioctl (Makefile.am): Likewise.
8206         * modules/sys_select (Makefile.am): Likewise.
8207         * modules/sys_socket (Makefile.am): Likewise.
8208         * modules/sys_times (Makefile.am): Likewise.
8209         * modules/sys_utsname (Makefile.am): Likewise.
8210         * modules/sys_wait (Makefile.am): Likewise.
8211         * modules/wchar (Makefile.am): Likewise.
8212         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
8213         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
8214         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
8215         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
8216         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
8217         Likewise.
8218         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
8219         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
8220         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
8221         Likewise.
8222         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
8223         Likewise.
8224         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
8225         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
8226         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
8227         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
8228         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
8229         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
8230         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
8231         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
8232         (gl_WCHAR_H_DEFAULTS): Likewise.
8233
8234 2009-12-31  Eric Blake  <ebb9@byu.net>
8235
8236         signal, spawn: use link warnings
8237         * lib/signal.in.h (sigset_t): Make unconditional.
8238         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
8239         (sigpending, sigprocmask, sigaction): Add link warnings.
8240         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
8241         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
8242         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
8243         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
8244         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
8245         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
8246         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
8247         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
8248         (posix_spawn_file_actions_destroy)
8249         (posix_spawn_file_actions_addopen)
8250         (posix_spawn_file_actions_addclose)
8251         (posix_spawn_file_actions_adddup2): Likewise.
8252         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
8253         * tests/test-signal.c (main): Enhance test.
8254
8255         spawn: improve wrapper support
8256         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
8257         (gl_SPAWN_H_DEFAULTS): New defaults.
8258         * modules/spawn (Makefile.am): Substitute them.
8259         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
8260         Only declare if missing or broken.
8261
8262         sys_times, sys_utsname: use include_next
8263         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
8264         header.
8265         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
8266         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
8267         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
8268         * modules/sys_times (Depends-on): Add include_next.
8269         (Makefile.am): Substitute additional values.
8270         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
8271         * lib/sys_times.in.h (includes): Include native header, if
8272         available.
8273         * lib/sys_utsname.in.h (includes): Likewise.
8274         * tests/test-sys_times.c (main): Enhance test.
8275
8276         fdutimensat: revert prior patch
8277         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
8278         utimens.h.
8279         Reported by Bruno Haible.
8280
8281 2009-12-30  Eric Blake  <ebb9@byu.net>
8282
8283         sys_wait: drop link-warning dependency
8284         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
8285         link-warning efforts.
8286         * lib/sys_wait.in.h: Likewise.
8287
8288         fdutimensat: remove bogus dependency
8289         * modules/fdutimensat (Depends-on): Drop inline.
8290
8291         unistd: fix typo
8292         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
8293
8294 2009-12-30  Bruno Haible  <bruno@clisp.org>
8295
8296         Fix compilation error with Solaris cc.
8297         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
8298         * lib/unicase/u16-is-invariant.c: Likewise.
8299         * lib/unicase/u32-is-invariant.c: Likewise.
8300         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
8301
8302 2009-12-30  Bruno Haible  <bruno@clisp.org>
8303
8304         Fix test crash.
8305         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
8306         locales.
8307         Reported by Simon Josefsson <simon@josefsson.org>.
8308
8309 2009-12-30  Bruno Haible  <bruno@clisp.org>
8310
8311         Fix compilation error on most platforms.
8312         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
8313         Reported by Simon Josefsson <simon@josefsson.org>
8314         and Nelson H. F. Beebe <beebe@math.utah.edu>.
8315
8316 2009-12-30  Eric Blake  <ebb9@byu.net>
8317
8318         futimens, utimensat: work around ntfs-3g bug
8319         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
8320         a ctime bug is present, and expand workaround to cover ntfs-3g.
8321         * lib/utimens.c (fdutimens, lutimens): Likewise.
8322         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
8323         (validate_timespec): Adjust return value.
8324         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
8325         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
8326         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
8327
8328 2009-12-29  Eric Blake  <ebb9@byu.net>
8329
8330         link-warning: make usage consistent
8331         * modules/ctype (Depends-on): Add link-warning.
8332         (Makefile.am): Update rules accordingly.
8333         * modules/langinfo (Depends-on, Makefile.am): Likewise.
8334         * modules/locale (Depends-on, Makefile.am): Likewise.
8335         * modules/sys_file (Makefile.am): Likewise.
8336         * modules/getopt-posix (Makefile.am): Delete unused link warning
8337         efforts.
8338         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
8339         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
8340         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
8341         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
8342
8343         stdio: remove unused variables
8344         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
8345         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
8346         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
8347
8348         tests: test more substitute headers
8349         * modules/ctype-tests: New file.
8350         * modules/dirent-tests: Likewise.
8351         * modules/spawn-tests: Likewise.
8352         * modules/sys_file-tests: Likewise.
8353         * modules/sys_ioctl-tests: Likewise.
8354         * modules/sys_wait-tests: Likewise.
8355         * tests/test-ctype.c: Likewise.
8356         * tests/test-dirent.c: Likewise.
8357         * tests/test-spawn.c: Likewise.
8358         * tests/test-sys_file.c: Likewise.
8359         * tests/test-sys_ioctl.c: Likewise.
8360         * tests/test-sys_wait.c: Likewise.
8361         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
8362         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
8363         whether or not flock is in use.
8364
8365         tests: remove License section from module
8366         * modules/arpa_inet-tests: Remove unneeded section.
8367         * modules/byteswap-tests: Likewise.
8368         * modules/ceilf-tests: Likewise.
8369         * modules/ceill-tests: Likewise.
8370         * modules/crypto/des-tests: Likewise.
8371         * modules/crypto/gc-arcfour-tests: Likewise.
8372         * modules/crypto/gc-arctwo-tests: Likewise.
8373         * modules/crypto/gc-des-tests: Likewise.
8374         * modules/crypto/gc-hmac-md5-tests: Likewise.
8375         * modules/crypto/gc-hmac-sha1-tests: Likewise.
8376         * modules/crypto/gc-md2-tests: Likewise.
8377         * modules/crypto/gc-md4-tests: Likewise.
8378         * modules/crypto/gc-md5-tests: Likewise.
8379         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
8380         * modules/crypto/gc-rijndael-tests: Likewise.
8381         * modules/crypto/gc-sha1-tests: Likewise.
8382         * modules/crypto/gc-tests: Likewise.
8383         * modules/crypto/md2-tests: Likewise.
8384         * modules/crypto/md4-tests: Likewise.
8385         * modules/fcntl-h-tests: Likewise.
8386         * modules/floorf-tests: Likewise.
8387         * modules/floorl-tests: Likewise.
8388         * modules/frexp-nolibm-tests: Likewise.
8389         * modules/frexp-tests: Likewise.
8390         * modules/frexpl-nolibm-tests: Likewise.
8391         * modules/frexpl-tests: Likewise.
8392         * modules/getaddrinfo-tests: Likewise.
8393         * modules/inttypes-tests: Likewise.
8394         * modules/isfinite-tests: Likewise.
8395         * modules/isinf-tests: Likewise.
8396         * modules/ldexpl-tests: Likewise.
8397         * modules/locale-tests: Likewise.
8398         * modules/math-tests: Likewise.
8399         * modules/netdb-tests: Likewise.
8400         * modules/netinet_in-tests: Likewise.
8401         * modules/printf-frexp-tests: Likewise.
8402         * modules/printf-frexpl-tests: Likewise.
8403         * modules/priv-set-tests: Likewise.
8404         * modules/random_r-tests: Likewise.
8405         * modules/round-tests: Likewise.
8406         * modules/roundf-tests: Likewise.
8407         * modules/roundl-tests: Likewise.
8408         * modules/search-tests: Likewise.
8409         * modules/select-tests: Likewise.
8410         * modules/signal-tests: Likewise.
8411         * modules/stdbool-tests: Likewise.
8412         * modules/stddef-tests: Likewise.
8413         * modules/stdint-tests: Likewise.
8414         * modules/stdio-tests: Likewise.
8415         * modules/stdlib-tests: Likewise.
8416         * modules/string-tests: Likewise.
8417         * modules/strings-tests: Likewise.
8418         * modules/sys_select-tests: Likewise.
8419         * modules/sys_socket-tests: Likewise.
8420         * modules/sys_stat-tests: Likewise.
8421         * modules/sys_time-tests: Likewise.
8422         * modules/sys_utsname-tests: Likewise.
8423         * modules/sysexits-tests: Likewise.
8424         * modules/time-tests: Likewise.
8425         * modules/trunc-tests: Likewise.
8426         * modules/truncf-tests: Likewise.
8427         * modules/truncl-tests: Likewise.
8428         * modules/tsearch-tests: Likewise.
8429         * modules/unistd-tests: Likewise.
8430         * modules/wchar-tests: Likewise.
8431         * modules/wctype-tests: Likewise.
8432
8433         tests: fix license on several tests
8434         * tests/test-des.c: Update to GPLv3+.
8435         * tests/test-flock.c: Likewise.
8436         * tests/test-fsync.c: Likewise.
8437         * tests/test-futimens.h: Likewise.
8438         * tests/test-gc-arcfour.c: Likewise.
8439         * tests/test-gc-arctwo.c: Likewise.
8440         * tests/test-gc-des.c: Likewise.
8441         * tests/test-gc-hmac-md5.c: Likewise.
8442         * tests/test-gc-hmac-sha1.c: Likewise.
8443         * tests/test-gc-md2.c: Likewise.
8444         * tests/test-gc-md4.c: Likewise.
8445         * tests/test-gc-md5.c: Likewise.
8446         * tests/test-gc-pbkdf2-sha1.c: Likewise.
8447         * tests/test-gc-rijndael.c: Likewise.
8448         * tests/test-gc-sha1.c: Likewise.
8449         * tests/test-gc.c: Likewise.
8450         * tests/test-getcwd.c: Likewise.
8451         * tests/test-link.c: Likewise.
8452         * tests/test-link.h: Likewise.
8453         * tests/test-lutimens.h: Likewise.
8454         * tests/test-md2.c: Likewise.
8455         * tests/test-md4.c: Likewise.
8456         * tests/test-mkdir.h: Likewise.
8457         * tests/test-rename.c: Likewise.
8458         * tests/test-rename.h: Likewise.
8459         * tests/test-safe-alloc.c: Likewise.
8460         * tests/test-utimens-common.h: Likewise.
8461         * tests/test-utimens.h: Likewise.
8462
8463         maint: sync license texts
8464         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
8465         * doc/gpl-3.0.texi: Revert copyright year update.
8466         * doc/lgpl-3.0.texi: Likewise.
8467
8468 2009-12-29  Jim Meyering  <meyering@redhat.com>
8469
8470         update nearly all FSF copyright year lists to include 2009
8471         The files named by the following are exempted:
8472             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
8473               test -f "$dst" && { echo "$dst"; continue; }
8474               test -d "$dst" || continue
8475               echo "$dst"/$(basename "$src")
8476             done > exempt
8477             git ls-files tests/unictype >> exempt
8478         In the remaining files, convert to all-interval notation if
8479         - there is already at least one year interval like 2000-2003
8480         - the file is maintained by me
8481         - the file is in lib/uni*/, where that style already prevails
8482         Otherwise, use update-copyright's default.
8483
8484 2009-12-29  Simon Josefsson  <simon@josefsson.org>
8485         and Eric Blake  <ebb9@byu.net>
8486
8487         tests: don't require debug system() to pass
8488         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
8489         * tests/test-rmdir.h (test_rmdir_func): Likewise.
8490         * tests/test-unlink.h (test_unlink_func): Likewise.
8491         * tests/test-fstatat.c (main): ...into callers.
8492         * tests/test-lstat.c (main): Likewise.
8493         * tests/test-rmdir.c (main): Likewise.
8494         * tests/test-unlink.c (main): Likewise.
8495         * tests/test-unlinkat.c (main): Likewise.
8496         * tests/test-areadlink-with-size.c (main): Don't require a
8497         debug-only system call to pass, aiding cross-testing to mingw.
8498         * tests/test-areadlink.c (main): Likewise.
8499         * tests/test-areadlinkat-with-size.c (main): Likewise.
8500         * tests/test-areadlinkat.c (main): Likewise.
8501         * tests/test-canonicalize-lgpl.c (main): Likewise.
8502         * tests/test-canonicalize.c (main): Likewise.
8503         * tests/test-chown.c (main): Likewise.
8504         * tests/test-fchownat.c (main): Likewise.
8505         * tests/test-lchown.c (main): Likewise.
8506         * tests/test-fdutimensat.c (main): Likewise.
8507         * tests/test-futimens.c (main): Likewise.
8508         * tests/test-link.c (main): Likewise.
8509         * tests/test-linkat.c (main): Likewise.
8510         * tests/test-mkdir.c (main): Likewise.
8511         * tests/test-mkdirat.c (main): Likewise.
8512         * tests/test-mkfifo.c (main): Likewise.
8513         * tests/test-mkfifoat.c (main): Likewise.
8514         * tests/test-mknod.c (main): Likewise.
8515         * tests/test-readlink.c (main): Likewise.
8516         * tests/test-remove.c (main): Likewise.
8517         * tests/test-rename.c (main): Likewise.
8518         * tests/test-renameat.c (main): Likewise.
8519         * tests/test-symlink.c (main): Likewise.
8520         * tests/test-symlinkat.c (main): Likewise.
8521         * tests/test-utimens.c (main): Likewise.
8522         * tests/test-utimensat.c (main): Likewise.
8523
8524 2009-12-29  Simon Josefsson  <simon@josefsson.org>
8525
8526         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
8527         on $(UNUSED_PARAMETER_H) to avoid build failure.
8528
8529 2009-12-28  Jim Meyering  <meyering@redhat.com>
8530
8531         update-copyright: you may specify a max. line length other than 72
8532         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
8533
8534         maint: use consistent FSF copyright line syntax
8535         * lib/posixtm.c: Add missing comma in FSF copyright line.
8536         * lib/posixtm.h: Likewise.
8537         * lib/getugroups.c: Add missing ", Inc.".
8538
8539         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
8540         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
8541         FSF copyright line.  Remove trailing blanks.
8542
8543 2009-12-28  Eric Blake  <ebb9@byu.net>
8544
8545         test-dup2: reduce dependencies
8546         * modules/cloexec (Configure.ac): Set witness.
8547         * modules/dup2-tests (Depends-on): Drop cloexec.
8548         * tests/test-dup2.c (main): Skip portion of test if cloexec module
8549         not present.
8550         Suggested by Bruno Haible.
8551
8552 2009-12-26  Bruno Haible  <bruno@clisp.org>
8553
8554         Remove an unneeded dependency.
8555         * modules/fseterr (Depends-on): Remove dup2.
8556
8557 2009-12-26  Eric Blake  <ebb9@byu.net>
8558
8559         tests: use macros.h in more places
8560         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
8561         (ASSERT_STREAM): Provide default of stderr.
8562         * tests/test-dirent-safer.c: Include macros.h, using alternate
8563         stream for assertions.
8564         * tests/test-dup-safer.c: Likewise.
8565         * tests/test-freopen-safer.c: Likewise.
8566         * tests/test-getopt.c: Likewise.
8567         * tests/test-openat-safer.c: Likewise.
8568         * tests/test-pipe.c: Likewise.
8569         * tests/test-popen-safer.c: Likewise.
8570         * modules/dirent-safer-tests (Files): Include macros.h.
8571         * modules/unistd-safer-tests (Files): Likewise.
8572         * modules/freopen-safer-tests (Files): Likewise.
8573         * modules/getopt-posix-tests (Files): Likewise.
8574         * modules/openat-safer-tests (Files): Likewise.
8575         * modules/pipe-tests (Files): Likewise.
8576
8577 2009-12-26  Bruno Haible  <bruno@clisp.org>
8578
8579         javacomp: Portability fix.
8580         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
8581         that it also works on Solaris.
8582
8583 2009-12-26  Bruno Haible  <bruno@clisp.org>
8584
8585         localename: Fix storage allocation of gl_locale_name_thread's result.
8586         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
8587         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
8588         all platforms that have 'uselocale'.
8589         (gl_locale_name_thread_unsafe): New function, extracted from
8590         gl_locale_name_thread.
8591         (gl_locale_name_thread): Call struniq on all platforms that have
8592         'uselocale'.
8593         * tests/test-localename.c (test_locale_name_thread): Check that the
8594         resulting strings are permanently allocated.
8595         * modules/localename-tests (Depends-on): Add strdup.
8596
8597 2009-12-26  Bruno Haible  <bruno@clisp.org>
8598
8599         * tests/test-localename.c (categories): Fill in the strings.
8600
8601 2009-12-26  Jim Meyering  <meyering@redhat.com>
8602
8603         isdir: complete the removal of m4/isdir.m4
8604         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
8605
8606         isdir: clean up, since at least grep still uses it
8607         * lib/isdir.c: Include "isdir.h".
8608         (S_ISDIR): Remove now-unneeded definition.
8609         * modules/isdir (Files): Add lib/isdir.h.
8610         * lib/isdir.h: New file, with declaration.
8611         * m4/isdir.m4: Remove file -- unneeded.
8612
8613 2009-12-25  Bruno Haible  <bruno@clisp.org>
8614
8615         selinux-h: Make generated .h files standalone.
8616         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
8617         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
8618         * lib/se-selinux.in.h: Likewise.
8619         * modules/selinux-h (Depends-on): Add unused-parameter.
8620         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
8621         selinux/selinux.h and selinux/context.h.
8622         Suggested by Eric Blake.
8623
8624 2009-12-25  Bruno Haible  <bruno@clisp.org>
8625
8626         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
8627         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
8628         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
8629         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
8630         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
8631
8632 2009-12-24  Bruno Haible  <bruno@clisp.org>
8633
8634         openat: Fix warning.
8635         * lib/openat-proc.c: Include <unistd.h>.
8636
8637 2009-12-24  Bruno Haible  <bruno@clisp.org>
8638
8639         New module 'unused-parameter'.
8640         * build-aux/unused-parameter.h: New file, extracted from earlier
8641         gnulib-common.m4.
8642         * modules/unused-parameter: New file.
8643         * lib/unistr.h: Include unused-parameter.h.
8644         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
8645         _GL_UNUSED.
8646         * modules/unistr/base (Depends-on): Add unused-parameter.
8647
8648 2009-12-24  Bruno Haible  <bruno@clisp.org>
8649
8650         Add missing dependencies to 'extensions' module.
8651         * m4/extensions.m4: Add comment.
8652         * modules/accept4 (Depends-on): Add extensions.
8653         * modules/dup3 (Depends-on): Likewise.
8654         * modules/fcntl (Depends-on): Likewise.
8655         * modules/futimens (Depends-on): Likewise.
8656         * modules/mknod (Depends-on): Likewise.
8657         * modules/pipe2 (Depends-on): Likewise.
8658         * modules/stat-time (Depends-on): Likewise.
8659         * modules/strcasestr-simple (Depends-on): Likewise.
8660         * modules/strsignal (Depends-on): Likewise.
8661         * modules/utimensat (Depends-on): Likewise.
8662         * modules/localcharset (Depends-on): Likewise. Needed because of
8663         gl_FCNTL_O_FLAGS.
8664         * modules/wcrtomb (Depends-on): Likewise. Needed because of
8665         AC_TYPE_MBSTATE_T.
8666         * modules/wcsnrtombs (Depends-on): Likewise.
8667         * modules/wcsrtombs (Depends-on): Likewise.
8668
8669 2009-12-24  Bruno Haible  <bruno@clisp.org>
8670
8671         binary-io: Avoid gcc warning due to SET_BINARY.
8672         * lib/binary-io.h (SET_BINARY): Cast the result to void.
8673         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
8674
8675 2009-12-24  Bruno Haible  <bruno@clisp.org>
8676
8677         Avoid future namespace pollution on glibc systems.
8678         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
8679         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
8680         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
8681         glibc systems.
8682
8683 2009-12-24  Bruno Haible  <bruno@clisp.org>
8684
8685         Refactor common macros used in tests.
8686         * tests/macros.h: New file.
8687         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
8688         and/or <stdlib.h>, if appropriate.
8689         (ASSERT, SIZEOF): Remove macros.
8690         * tests/test-areadlink-with-size.c: Likewise.
8691         * tests/test-areadlinkat.c: Likewise.
8692         * tests/test-areadlinkat-with-size.c: Likewise.
8693         * tests/test-argmatch.c: Likewise.
8694         * tests/test-argv-iter.c: Likewise.
8695         * tests/test-array-mergesort.c: Likewise.
8696         * tests/test-array_list.c: Likewise.
8697         * tests/test-array_oset.c: Likewise.
8698         * tests/test-avltree_list.c: Likewise.
8699         * tests/test-avltree_oset.c: Likewise.
8700         * tests/test-avltreehash_list.c: Likewise.
8701         * tests/test-base64.c: Likewise.
8702         * tests/test-binary-io.c: Likewise.
8703         * tests/test-bitrotate.c: Likewise.
8704         * tests/test-btowc.c: Likewise.
8705         * tests/test-byteswap.c: Likewise.
8706         * tests/test-c-ctype.c: Likewise.
8707         * tests/test-c-stack.c: Likewise.
8708         * tests/test-c-strcasecmp.c: Likewise.
8709         * tests/test-c-strcasestr.c: Likewise.
8710         * tests/test-c-strncasecmp.c: Likewise.
8711         * tests/test-c-strstr.c: Likewise.
8712         * tests/test-canonicalize-lgpl.c: Likewise.
8713         * tests/test-canonicalize.c: Likewise.
8714         * tests/test-carray_list.c: Likewise.
8715         * tests/test-ceilf1.c: Likewise.
8716         * tests/test-ceilf2.c: Likewise.
8717         * tests/test-ceill.c: Likewise.
8718         * tests/test-chown.c: Likewise.
8719         * tests/test-cloexec.c: Likewise.
8720         * tests/test-copy-acl.c: Likewise.
8721         * tests/test-copy-file.c: Likewise.
8722         * tests/test-count-one-bits.c: Likewise.
8723         * tests/test-dprintf-posix.c: Likewise.
8724         * tests/test-dup2.c: Likewise.
8725         * tests/test-dup3.c: Likewise.
8726         * tests/test-duplocale.c: Likewise.
8727         * tests/test-fbufmode.c: Likewise.
8728         * tests/test-fchdir.c: Likewise.
8729         * tests/test-fchownat.c: Likewise.
8730         * tests/test-fcntl-safer.c: Likewise.
8731         * tests/test-fcntl.c: Likewise.
8732         * tests/test-fdopendir.c: Likewise.
8733         * tests/test-fdutimensat.c: Likewise.
8734         * tests/test-fflush2.c: Likewise.
8735         * tests/test-file-has-acl.c: Likewise.
8736         * tests/test-filevercmp.c: Likewise.
8737         * tests/test-flock.c: Likewise.
8738         * tests/test-floorf1.c: Likewise.
8739         * tests/test-floorf2.c: Likewise.
8740         * tests/test-floorl.c: Likewise.
8741         * tests/test-fnmatch.c: Likewise.
8742         * tests/test-fopen.h: Likewise.
8743         * tests/test-fpending.c: Likewise.
8744         * tests/test-fprintf-posix.c: Likewise.
8745         * tests/test-fpurge.c: Likewise.
8746         * tests/test-freadable.c: Likewise.
8747         * tests/test-freadahead.c: Likewise.
8748         * tests/test-freading.c: Likewise.
8749         * tests/test-freadptr.c: Likewise.
8750         * tests/test-freadptr2.c: Likewise.
8751         * tests/test-freadseek.c: Likewise.
8752         * tests/test-freopen.c: Likewise.
8753         * tests/test-frexp.c: Likewise.
8754         * tests/test-frexpl.c: Likewise.
8755         * tests/test-fseek.c: Likewise.
8756         * tests/test-fseeko.c: Likewise.
8757         * tests/test-fstatat.c: Likewise.
8758         * tests/test-fstrcmp.c: Likewise.
8759         * tests/test-fsync.c: Likewise.
8760         * tests/test-ftell.c: Likewise.
8761         * tests/test-ftello.c: Likewise.
8762         * tests/test-func.c: Likewise.
8763         * tests/test-futimens.c: Likewise.
8764         * tests/test-fwritable.c: Likewise.
8765         * tests/test-fwriting.c: Likewise.
8766         * tests/test-getcwd.c: Likewise.
8767         * tests/test-getdate.c: Likewise.
8768         * tests/test-getdelim.c: Likewise.
8769         * tests/test-getdtablesize.c: Likewise.
8770         * tests/test-getgroups.c: Likewise.
8771         * tests/test-getline.c: Likewise.
8772         * tests/test-getndelim2.c: Likewise.
8773         * tests/test-glob.c: Likewise.
8774         * tests/test-hash.c: Likewise.
8775         * tests/test-i-ring.c: Likewise.
8776         * tests/test-iconv-utf.c: Likewise.
8777         * tests/test-iconv.c: Likewise.
8778         * tests/test-idpriv-drop.c: Likewise.
8779         * tests/test-idpriv-droptemp.c: Likewise.
8780         * tests/test-inet_ntop.c: Likewise.
8781         * tests/test-inet_pton.c: Likewise.
8782         * tests/test-isblank.c: Likewise.
8783         * tests/test-isfinite.c: Likewise.
8784         * tests/test-isinf.c: Likewise.
8785         * tests/test-isnan.c: Likewise.
8786         * tests/test-isnand.h: Likewise.
8787         * tests/test-isnanf.h: Likewise.
8788         * tests/test-isnanl.h: Likewise.
8789         * tests/test-lchown.c: Likewise.
8790         * tests/test-ldexpl.c: Likewise.
8791         * tests/test-link.c: Likewise.
8792         * tests/test-linkat.c: Likewise.
8793         * tests/test-linked_list.c: Likewise.
8794         * tests/test-linkedhash_list.c: Likewise.
8795         * tests/test-localename.c: Likewise.
8796         * tests/test-lseek.c: Likewise.
8797         * tests/test-lstat.c: Likewise.
8798         * tests/test-mbmemcasecmp.c: Likewise.
8799         * tests/test-mbmemcasecoll.c: Likewise.
8800         * tests/test-mbrtowc.c: Likewise.
8801         * tests/test-mbscasecmp.c: Likewise.
8802         * tests/test-mbscasestr1.c: Likewise.
8803         * tests/test-mbscasestr2.c: Likewise.
8804         * tests/test-mbscasestr3.c: Likewise.
8805         * tests/test-mbscasestr4.c: Likewise.
8806         * tests/test-mbschr.c: Likewise.
8807         * tests/test-mbscspn.c: Likewise.
8808         * tests/test-mbsinit.c: Likewise.
8809         * tests/test-mbsncasecmp.c: Likewise.
8810         * tests/test-mbsnrtowcs.c: Likewise.
8811         * tests/test-mbspbrk.c: Likewise.
8812         * tests/test-mbspcasecmp.c: Likewise.
8813         * tests/test-mbsrchr.c: Likewise.
8814         * tests/test-mbsrtowcs.c: Likewise.
8815         * tests/test-mbsspn.c: Likewise.
8816         * tests/test-mbsstr1.c: Likewise.
8817         * tests/test-mbsstr2.c: Likewise.
8818         * tests/test-mbsstr3.c: Likewise.
8819         * tests/test-memchr.c: Likewise.
8820         * tests/test-memchr2.c: Likewise.
8821         * tests/test-memcmp.c: Likewise.
8822         * tests/test-memmem.c: Likewise.
8823         * tests/test-memrchr.c: Likewise.
8824         * tests/test-mkdir.c: Likewise.
8825         * tests/test-mkdirat.c: Likewise.
8826         * tests/test-mkfifo.c: Likewise.
8827         * tests/test-mkfifoat.c: Likewise.
8828         * tests/test-mknod.c: Likewise.
8829         * tests/test-nanosleep.c: Likewise.
8830         * tests/test-nl_langinfo.c: Likewise.
8831         * tests/test-obstack-printf.c: Likewise.
8832         * tests/test-open.c: Likewise.
8833         * tests/test-openat.c: Likewise.
8834         * tests/test-pipe-filter-gi1.c: Likewise.
8835         * tests/test-pipe-filter-gi2-main.c: Likewise.
8836         * tests/test-pipe-filter-ii1.c: Likewise.
8837         * tests/test-pipe-filter-ii2-main.c: Likewise.
8838         * tests/test-pipe2.c: Likewise.
8839         * tests/test-popen.h: Likewise.
8840         * tests/test-posixtm.c: Likewise.
8841         * tests/test-pread.c: Likewise.
8842         * tests/test-printf-frexp.c: Likewise.
8843         * tests/test-printf-frexpl.c: Likewise.
8844         * tests/test-printf-posix.c: Likewise.
8845         * tests/test-priv-set.c: Likewise.
8846         * tests/test-quotearg.c: Likewise.
8847         * tests/test-random_r.c: Likewise.
8848         * tests/test-rawmemchr.c: Likewise.
8849         * tests/test-rbtree_list.c: Likewise.
8850         * tests/test-rbtree_oset.c: Likewise.
8851         * tests/test-rbtreehash_list.c: Likewise.
8852         * tests/test-readlink.c: Likewise.
8853         * tests/test-remove.c: Likewise.
8854         * tests/test-rename.c: Likewise.
8855         * tests/test-renameat.c: Likewise.
8856         * tests/test-rmdir.c: Likewise.
8857         * tests/test-round1.c: Likewise.
8858         * tests/test-roundf1.c: Likewise.
8859         * tests/test-roundl.c: Likewise.
8860         * tests/test-safe-alloc.c: Likewise.
8861         * tests/test-sameacls.c: Likewise.
8862         * tests/test-set-mode-acl.c: Likewise.
8863         * tests/test-setenv.c: Likewise.
8864         * tests/test-sigaction.c: Likewise.
8865         * tests/test-signbit.c: Likewise.
8866         * tests/test-sleep.c: Likewise.
8867         * tests/test-snprintf-posix.c: Likewise.
8868         * tests/test-snprintf.c: Likewise.
8869         * tests/test-sprintf-posix.c: Likewise.
8870         * tests/test-stat-time.c: Likewise.
8871         * tests/test-stat.c: Likewise.
8872         * tests/test-strcasestr.c: Likewise.
8873         * tests/test-strchrnul.c: Likewise.
8874         * tests/test-strerror.c: Likewise.
8875         * tests/test-striconv.c: Likewise.
8876         * tests/test-striconveh.c: Likewise.
8877         * tests/test-striconveha.c: Likewise.
8878         * tests/test-strsignal.c: Likewise.
8879         * tests/test-strstr.c: Likewise.
8880         * tests/test-strtod.c: Likewise.
8881         * tests/test-strverscmp.c: Likewise.
8882         * tests/test-symlink.c: Likewise.
8883         * tests/test-symlinkat.c: Likewise.
8884         * tests/test-trunc1.c: Likewise.
8885         * tests/test-trunc2.c: Likewise.
8886         * tests/test-truncf1.c: Likewise.
8887         * tests/test-truncf2.c: Likewise.
8888         * tests/test-truncl.c: Likewise.
8889         * tests/test-uname.c: Likewise.
8890         * tests/test-unlink.c: Likewise.
8891         * tests/test-unlinkat.c: Likewise.
8892         * tests/test-unsetenv.c: Likewise.
8893         * tests/test-usleep.c: Likewise.
8894         * tests/test-utimens.c: Likewise.
8895         * tests/test-utimensat.c: Likewise.
8896         * tests/test-vasnprintf-posix.c: Likewise.
8897         * tests/test-vasnprintf-posix2.c: Likewise.
8898         * tests/test-vasnprintf.c: Likewise.
8899         * tests/test-vasprintf-posix.c: Likewise.
8900         * tests/test-vasprintf.c: Likewise.
8901         * tests/test-vdprintf-posix.c: Likewise.
8902         * tests/test-vfprintf-posix.c: Likewise.
8903         * tests/test-vprintf-posix.c: Likewise.
8904         * tests/test-vsnprintf-posix.c: Likewise.
8905         * tests/test-vsnprintf.c: Likewise.
8906         * tests/test-vsprintf-posix.c: Likewise.
8907         * tests/test-wcrtomb.c: Likewise.
8908         * tests/test-wcsnrtombs.c: Likewise.
8909         * tests/test-wcsrtombs.c: Likewise.
8910         * tests/test-wctype.c: Likewise.
8911         * tests/test-wcwidth.c: Likewise.
8912         * tests/test-xfprintf-posix.c: Likewise.
8913         * tests/test-xmemdup0.c: Likewise.
8914         * tests/test-xprintf-posix.c: Likewise.
8915         * tests/test-xvasprintf.c: Likewise.
8916         * tests/unicase/test-locale-language.c: Likewise.
8917         * tests/unicase/test-mapping-part1.h: Likewise.
8918         * tests/unicase/test-predicate-part1.h: Likewise.
8919         * tests/unicase/test-u8-casecmp.c: Likewise.
8920         * tests/unicase/test-u8-casecoll.c: Likewise.
8921         * tests/unicase/test-u8-casefold.c: Likewise.
8922         * tests/unicase/test-u8-is-cased.c: Likewise.
8923         * tests/unicase/test-u8-is-casefolded.c: Likewise.
8924         * tests/unicase/test-u8-is-lowercase.c: Likewise.
8925         * tests/unicase/test-u8-is-titlecase.c: Likewise.
8926         * tests/unicase/test-u8-is-uppercase.c: Likewise.
8927         * tests/unicase/test-u8-tolower.c: Likewise.
8928         * tests/unicase/test-u8-totitle.c: Likewise.
8929         * tests/unicase/test-u8-toupper.c: Likewise.
8930         * tests/unicase/test-u16-casecmp.c: Likewise.
8931         * tests/unicase/test-u16-casecoll.c: Likewise.
8932         * tests/unicase/test-u16-casefold.c: Likewise.
8933         * tests/unicase/test-u16-is-cased.c: Likewise.
8934         * tests/unicase/test-u16-is-casefolded.c: Likewise.
8935         * tests/unicase/test-u16-is-lowercase.c: Likewise.
8936         * tests/unicase/test-u16-is-titlecase.c: Likewise.
8937         * tests/unicase/test-u16-is-uppercase.c: Likewise.
8938         * tests/unicase/test-u16-tolower.c: Likewise.
8939         * tests/unicase/test-u16-totitle.c: Likewise.
8940         * tests/unicase/test-u16-toupper.c: Likewise.
8941         * tests/unicase/test-u32-casecmp.c: Likewise.
8942         * tests/unicase/test-u32-casecoll.c: Likewise.
8943         * tests/unicase/test-u32-casefold.c: Likewise.
8944         * tests/unicase/test-u32-is-cased.c: Likewise.
8945         * tests/unicase/test-u32-is-casefolded.c: Likewise.
8946         * tests/unicase/test-u32-is-lowercase.c: Likewise.
8947         * tests/unicase/test-u32-is-titlecase.c: Likewise.
8948         * tests/unicase/test-u32-is-uppercase.c: Likewise.
8949         * tests/unicase/test-u32-tolower.c: Likewise.
8950         * tests/unicase/test-u32-totitle.c: Likewise.
8951         * tests/unicase/test-u32-toupper.c: Likewise.
8952         * tests/unicase/test-ulc-casecmp.c: Likewise.
8953         * tests/unicase/test-ulc-casecoll.c: Likewise.
8954         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
8955         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
8956         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
8957         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
8958         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
8959         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
8960         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
8961         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
8962         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
8963         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
8964         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
8965         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
8966         * tests/unictype/test-bidi_byname.c: Likewise.
8967         * tests/unictype/test-bidi_name.c: Likewise.
8968         * tests/unictype/test-bidi_of.c: Likewise.
8969         * tests/unictype/test-bidi_test.c: Likewise.
8970         * tests/unictype/test-block_list.c: Likewise.
8971         * tests/unictype/test-block_of.c: Likewise.
8972         * tests/unictype/test-block_test.c: Likewise.
8973         * tests/unictype/test-categ_and.c: Likewise.
8974         * tests/unictype/test-categ_and_not.c: Likewise.
8975         * tests/unictype/test-categ_byname.c: Likewise.
8976         * tests/unictype/test-categ_name.c: Likewise.
8977         * tests/unictype/test-categ_none.c: Likewise.
8978         * tests/unictype/test-categ_of.c: Likewise.
8979         * tests/unictype/test-categ_or.c: Likewise.
8980         * tests/unictype/test-categ_test_withtable.c: Likewise.
8981         * tests/unictype/test-combining.c: Likewise.
8982         * tests/unictype/test-decdigit.c: Likewise.
8983         * tests/unictype/test-digit.c: Likewise.
8984         * tests/unictype/test-mirror.c: Likewise.
8985         * tests/unictype/test-numeric.c: Likewise.
8986         * tests/unictype/test-pr_byname.c: Likewise.
8987         * tests/unictype/test-pr_test.c: Likewise.
8988         * tests/unictype/test-predicate-part1.h: Likewise.
8989         * tests/unictype/test-scripts.c: Likewise.
8990         * tests/unictype/test-sy_c_ident.c: Likewise.
8991         * tests/unictype/test-sy_java_ident.c: Likewise.
8992         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
8993         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
8994         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
8995         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
8996         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
8997         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
8998         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
8999         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
9000         * tests/uninorm/test-canonical-decomposition.c: Likewise.
9001         * tests/uninorm/test-compat-decomposition.c: Likewise.
9002         * tests/uninorm/test-composition.c: Likewise.
9003         * tests/uninorm/test-decomposing-form.c: Likewise.
9004         * tests/uninorm/test-decomposition.c: Likewise.
9005         * tests/uninorm/test-u8-nfc.c: Likewise.
9006         * tests/uninorm/test-u8-nfd.c: Likewise.
9007         * tests/uninorm/test-u8-nfkc.c: Likewise.
9008         * tests/uninorm/test-u8-nfkd.c: Likewise.
9009         * tests/uninorm/test-u8-normcmp.c: Likewise.
9010         * tests/uninorm/test-u8-normcoll.c: Likewise.
9011         * tests/uninorm/test-u16-nfc.c: Likewise.
9012         * tests/uninorm/test-u16-nfd.c: Likewise.
9013         * tests/uninorm/test-u16-nfkc.c: Likewise.
9014         * tests/uninorm/test-u16-nfkd.c: Likewise.
9015         * tests/uninorm/test-u16-normcmp.c: Likewise.
9016         * tests/uninorm/test-u16-normcoll.c: Likewise.
9017         * tests/uninorm/test-u32-nfc.c: Likewise.
9018         * tests/uninorm/test-u32-nfd.c: Likewise.
9019         * tests/uninorm/test-u32-nfkc.c: Likewise.
9020         * tests/uninorm/test-u32-nfkd.c: Likewise.
9021         * tests/uninorm/test-u32-normalize-big.c: Likewise.
9022         * tests/uninorm/test-u32-normcmp.c: Likewise.
9023         * tests/uninorm/test-u32-normcoll.c: Likewise.
9024         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
9025         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
9026         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
9027         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
9028         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
9029         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
9030         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
9031         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
9032         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
9033         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
9034         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
9035         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
9036         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
9037         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
9038         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
9039         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
9040         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
9041         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
9042         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
9043         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
9044         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
9045         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
9046         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
9047         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
9048         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
9049         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
9050         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
9051         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
9052         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
9053         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
9054         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
9055         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
9056         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
9057         * tests/uniwidth/test-u8-strwidth.c: Likewise.
9058         * tests/uniwidth/test-u8-width.c: Likewise.
9059         * tests/uniwidth/test-u16-strwidth.c: Likewise.
9060         * tests/uniwidth/test-u16-width.c: Likewise.
9061         * tests/uniwidth/test-u32-strwidth.c: Likewise.
9062         * tests/uniwidth/test-u32-width.c: Likewise.
9063         * tests/uniwidth/test-uc_width.c: Likewise.
9064         * tests/uniwidth/test-uc_width2.c: Likewise.
9065         * modules/acl-tests (Files): Add tests/macros.h.
9066         * modules/areadlink-tests (Files): Likewise.
9067         * modules/areadlink-with-size-tests (Files): Likewise.
9068         * modules/areadlinkat-tests (Files): Likewise.
9069         * modules/areadlinkat-with-size-tests (Files): Likewise.
9070         * modules/argmatch-tests (Files): Likewise.
9071         * modules/argv-iter-tests (Files): Likewise.
9072         * modules/array-list-tests (Files): Likewise.
9073         * modules/array-mergesort-tests (Files): Likewise.
9074         * modules/array-oset-tests (Files): Likewise.
9075         * modules/avltree-list-tests (Files): Likewise.
9076         * modules/avltree-oset-tests (Files): Likewise.
9077         * modules/avltreehash-list-tests (Files): Likewise.
9078         * modules/base64-tests (Files): Likewise.
9079         * modules/binary-io-tests (Files): Likewise.
9080         * modules/bitrotate-tests (Files): Likewise.
9081         * modules/btowc-tests (Files): Likewise.
9082         * modules/byteswap-tests (Files): Likewise.
9083         * modules/c-ctype-tests (Files): Likewise.
9084         * modules/c-stack-tests (Files): Likewise.
9085         * modules/c-strcase-tests (Files): Likewise.
9086         * modules/c-strcasestr-tests (Files): Likewise.
9087         * modules/c-strstr-tests (Files): Likewise.
9088         * modules/canonicalize-lgpl-tests (Files): Likewise.
9089         * modules/canonicalize-tests (Files): Likewise.
9090         * modules/carray-list-tests (Files): Likewise.
9091         * modules/ceilf-tests (Files): Likewise.
9092         * modules/ceill-tests (Files): Likewise.
9093         * modules/chown-tests (Files): Likewise.
9094         * modules/cloexec-tests (Files): Likewise.
9095         * modules/copy-file-tests (Files): Likewise.
9096         * modules/count-one-bits-tests (Files): Likewise.
9097         * modules/dprintf-posix-tests (Files): Likewise.
9098         * modules/dup2-tests (Files): Likewise.
9099         * modules/dup3-tests (Files): Likewise.
9100         * modules/duplocale-tests (Files): Likewise.
9101         * modules/fbufmode-tests (Files): Likewise.
9102         * modules/fchdir-tests (Files): Likewise.
9103         * modules/fcntl-safer-tests (Files): Likewise.
9104         * modules/fcntl-tests (Files): Likewise.
9105         * modules/fdopendir-tests (Files): Likewise.
9106         * modules/fdutimensat-tests (Files): Likewise.
9107         * modules/fflush-tests (Files): Likewise.
9108         * modules/filevercmp-tests (Files): Likewise.
9109         * modules/flock-tests (Files): Likewise.
9110         * modules/floorf-tests (Files): Likewise.
9111         * modules/floorl-tests (Files): Likewise.
9112         * modules/fnmatch-tests (Files): Likewise.
9113         * modules/fopen-safer-tests (Files): Likewise.
9114         * modules/fopen-tests (Files): Likewise.
9115         * modules/fpending-tests (Files): Likewise.
9116         * modules/fprintf-posix-tests (Files): Likewise.
9117         * modules/fpurge-tests (Files): Likewise.
9118         * modules/freadable-tests (Files): Likewise.
9119         * modules/freadahead-tests (Files): Likewise.
9120         * modules/freading-tests (Files): Likewise.
9121         * modules/freadptr-tests (Files): Likewise.
9122         * modules/freadseek-tests (Files): Likewise.
9123         * modules/freopen-tests (Files): Likewise.
9124         * modules/frexp-nolibm-tests (Files): Likewise.
9125         * modules/frexp-tests (Files): Likewise.
9126         * modules/frexpl-nolibm-tests (Files): Likewise.
9127         * modules/frexpl-tests (Files): Likewise.
9128         * modules/fseek-tests (Files): Likewise.
9129         * modules/fseeko-tests (Files): Likewise.
9130         * modules/fstrcmp-tests (Files): Likewise.
9131         * modules/fsync-tests (Files): Likewise.
9132         * modules/ftell-tests (Files): Likewise.
9133         * modules/ftello-tests (Files): Likewise.
9134         * modules/func-tests (Files): Likewise.
9135         * modules/futimens-tests (Files): Likewise.
9136         * modules/fwritable-tests (Files): Likewise.
9137         * modules/fwriting-tests (Files): Likewise.
9138         * modules/getcwd-tests (Files): Likewise.
9139         * modules/getdate-tests (Files): Likewise.
9140         * modules/getdelim-tests (Files): Likewise.
9141         * modules/getdtablesize-tests (Files): Likewise.
9142         * modules/getgroups-tests (Files): Likewise.
9143         * modules/getline-tests (Files): Likewise.
9144         * modules/getndelim2-tests (Files): Likewise.
9145         * modules/glob-tests (Files): Likewise.
9146         * modules/hash-tests (Files): Likewise.
9147         * modules/i-ring-tests (Files): Likewise.
9148         * modules/iconv-tests (Files): Likewise.
9149         * modules/iconv_open-utf-tests (Files): Likewise.
9150         * modules/idpriv-drop-tests (Files): Likewise.
9151         * modules/idpriv-droptemp-tests (Files): Likewise.
9152         * modules/inet_ntop-tests (Files): Likewise.
9153         * modules/inet_pton-tests (Files): Likewise.
9154         * modules/isblank-tests (Files): Likewise.
9155         * modules/isfinite-tests (Files): Likewise.
9156         * modules/isinf-tests (Files): Likewise.
9157         * modules/isnan-tests (Files): Likewise.
9158         * modules/isnand-nolibm-tests (Files): Likewise.
9159         * modules/isnand-tests (Files): Likewise.
9160         * modules/isnanf-nolibm-tests (Files): Likewise.
9161         * modules/isnanf-tests (Files): Likewise.
9162         * modules/isnanl-nolibm-tests (Files): Likewise.
9163         * modules/isnanl-tests (Files): Likewise.
9164         * modules/lchown-tests (Files): Likewise.
9165         * modules/ldexpl-tests (Files): Likewise.
9166         * modules/link-tests (Files): Likewise.
9167         * modules/linkat-tests (Files): Likewise.
9168         * modules/linked-list-tests (Files): Likewise.
9169         * modules/linkedhash-list-tests (Files): Likewise.
9170         * modules/localename-tests (Files): Likewise.
9171         * modules/lseek-tests (Files): Likewise.
9172         * modules/lstat-tests (Files): Likewise.
9173         * modules/mbmemcasecmp-tests (Files): Likewise.
9174         * modules/mbmemcasecoll-tests (Files): Likewise.
9175         * modules/mbrtowc-tests (Files): Likewise.
9176         * modules/mbscasecmp-tests (Files): Likewise.
9177         * modules/mbscasestr-tests (Files): Likewise.
9178         * modules/mbschr-tests (Files): Likewise.
9179         * modules/mbscspn-tests (Files): Likewise.
9180         * modules/mbsinit-tests (Files): Likewise.
9181         * modules/mbsncasecmp-tests (Files): Likewise.
9182         * modules/mbsnrtowcs-tests (Files): Likewise.
9183         * modules/mbspbrk-tests (Files): Likewise.
9184         * modules/mbspcasecmp-tests (Files): Likewise.
9185         * modules/mbsrchr-tests (Files): Likewise.
9186         * modules/mbsrtowcs-tests (Files): Likewise.
9187         * modules/mbsspn-tests (Files): Likewise.
9188         * modules/mbsstr-tests (Files): Likewise.
9189         * modules/memchr-tests (Files): Likewise.
9190         * modules/memchr2-tests (Files): Likewise.
9191         * modules/memcmp-tests (Files): Likewise.
9192         * modules/memmem-tests (Files): Likewise.
9193         * modules/memrchr-tests (Files): Likewise.
9194         * modules/mkdir-tests (Files): Likewise.
9195         * modules/mkfifo-tests (Files): Likewise.
9196         * modules/mkfifoat-tests (Files): Likewise.
9197         * modules/mknod-tests (Files): Likewise.
9198         * modules/nanosleep-tests (Files): Likewise.
9199         * modules/nl_langinfo-tests (Files): Likewise.
9200         * modules/obstack-printf-tests (Files): Likewise.
9201         * modules/open-tests (Files): Likewise.
9202         * modules/openat-tests (Files): Likewise.
9203         * modules/pipe-filter-gi-tests (Files): Likewise.
9204         * modules/pipe-filter-ii-tests (Files): Likewise.
9205         * modules/pipe2-tests (Files): Likewise.
9206         * modules/popen-safer-tests (Files): Likewise.
9207         * modules/popen-tests (Files): Likewise.
9208         * modules/posixtm-tests (Files): Likewise.
9209         * modules/pread-tests (Files): Likewise.
9210         * modules/printf-frexp-tests (Files): Likewise.
9211         * modules/printf-frexpl-tests (Files): Likewise.
9212         * modules/printf-posix-tests (Files): Likewise.
9213         * modules/priv-set-tests (Files): Likewise.
9214         * modules/quotearg-tests (Files): Likewise.
9215         * modules/random_r-tests (Files): Likewise.
9216         * modules/rawmemchr-tests (Files): Likewise.
9217         * modules/rbtree-list-tests (Files): Likewise.
9218         * modules/rbtree-oset-tests (Files): Likewise.
9219         * modules/rbtreehash-list-tests (Files): Likewise.
9220         * modules/readlink-tests (Files): Likewise.
9221         * modules/remove-tests (Files): Likewise.
9222         * modules/rename-tests (Files): Likewise.
9223         * modules/renameat-tests (Files): Likewise.
9224         * modules/rmdir-tests (Files): Likewise.
9225         * modules/round-tests (Files): Likewise.
9226         * modules/roundf-tests (Files): Likewise.
9227         * modules/roundl-tests (Files): Likewise.
9228         * modules/safe-alloc-tests (Files): Likewise.
9229         * modules/setenv-tests (Files): Likewise.
9230         * modules/sigaction-tests (Files): Likewise.
9231         * modules/signbit-tests (Files): Likewise.
9232         * modules/sleep-tests (Files): Likewise.
9233         * modules/snprintf-posix-tests (Files): Likewise.
9234         * modules/snprintf-tests (Files): Likewise.
9235         * modules/sprintf-posix-tests (Files): Likewise.
9236         * modules/stat-tests (Files): Likewise.
9237         * modules/stat-time-tests (Files): Likewise.
9238         * modules/strcasestr-tests (Files): Likewise.
9239         * modules/strchrnul-tests (Files): Likewise.
9240         * modules/strerror-tests (Files): Likewise.
9241         * modules/striconv-tests (Files): Likewise.
9242         * modules/striconveh-tests (Files): Likewise.
9243         * modules/striconveha-tests (Files): Likewise.
9244         * modules/strsignal-tests (Files): Likewise.
9245         * modules/strstr-tests (Files): Likewise.
9246         * modules/strtod-tests (Files): Likewise.
9247         * modules/strverscmp-tests (Files): Likewise.
9248         * modules/symlink-tests (Files): Likewise.
9249         * modules/symlinkat-tests (Files): Likewise.
9250         * modules/trunc-tests (Files): Likewise.
9251         * modules/truncf-tests (Files): Likewise.
9252         * modules/truncl-tests (Files): Likewise.
9253         * modules/uname-tests (Files): Likewise.
9254         * modules/unicase/cased-tests (Files): Likewise.
9255         * modules/unicase/ignorable-tests (Files): Likewise.
9256         * modules/unicase/locale-language-tests (Files): Likewise.
9257         * modules/unicase/tolower-tests (Files): Likewise.
9258         * modules/unicase/totitle-tests (Files): Likewise.
9259         * modules/unicase/toupper-tests (Files): Likewise.
9260         * modules/unicase/u8-casecmp-tests (Files): Likewise.
9261         * modules/unicase/u8-casecoll-tests (Files): Likewise.
9262         * modules/unicase/u8-casefold-tests (Files): Likewise.
9263         * modules/unicase/u8-is-cased-tests (Files): Likewise.
9264         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
9265         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
9266         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
9267         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
9268         * modules/unicase/u8-tolower-tests (Files): Likewise.
9269         * modules/unicase/u8-totitle-tests (Files): Likewise.
9270         * modules/unicase/u8-toupper-tests (Files): Likewise.
9271         * modules/unicase/u16-casecmp-tests (Files): Likewise.
9272         * modules/unicase/u16-casecoll-tests (Files): Likewise.
9273         * modules/unicase/u16-casefold-tests (Files): Likewise.
9274         * modules/unicase/u16-is-cased-tests (Files): Likewise.
9275         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
9276         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
9277         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
9278         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
9279         * modules/unicase/u16-tolower-tests (Files): Likewise.
9280         * modules/unicase/u16-totitle-tests (Files): Likewise.
9281         * modules/unicase/u16-toupper-tests (Files): Likewise.
9282         * modules/unicase/u32-casecmp-tests (Files): Likewise.
9283         * modules/unicase/u32-casecoll-tests (Files): Likewise.
9284         * modules/unicase/u32-casefold-tests (Files): Likewise.
9285         * modules/unicase/u32-is-cased-tests (Files): Likewise.
9286         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
9287         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
9288         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
9289         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
9290         * modules/unicase/u32-tolower-tests (Files): Likewise.
9291         * modules/unicase/u32-totitle-tests (Files): Likewise.
9292         * modules/unicase/u32-toupper-tests (Files): Likewise.
9293         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
9294         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
9295         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
9296         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
9297         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
9298         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
9299         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
9300         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
9301         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
9302         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
9303         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
9304         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
9305         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
9306         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
9307         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
9308         * modules/unictype/bidicategory-name-tests (Files): Likewise.
9309         * modules/unictype/bidicategory-of-tests (Files): Likewise.
9310         * modules/unictype/bidicategory-test-tests (Files): Likewise.
9311         * modules/unictype/block-list-tests (Files): Likewise.
9312         * modules/unictype/block-of-tests (Files): Likewise.
9313         * modules/unictype/block-test-tests (Files): Likewise.
9314         * modules/unictype/category-C-tests (Files): Likewise.
9315         * modules/unictype/category-Cc-tests (Files): Likewise.
9316         * modules/unictype/category-Cf-tests (Files): Likewise.
9317         * modules/unictype/category-Cn-tests (Files): Likewise.
9318         * modules/unictype/category-Co-tests (Files): Likewise.
9319         * modules/unictype/category-Cs-tests (Files): Likewise.
9320         * modules/unictype/category-L-tests (Files): Likewise.
9321         * modules/unictype/category-Ll-tests (Files): Likewise.
9322         * modules/unictype/category-Lm-tests (Files): Likewise.
9323         * modules/unictype/category-Lo-tests (Files): Likewise.
9324         * modules/unictype/category-Lt-tests (Files): Likewise.
9325         * modules/unictype/category-Lu-tests (Files): Likewise.
9326         * modules/unictype/category-M-tests (Files): Likewise.
9327         * modules/unictype/category-Mc-tests (Files): Likewise.
9328         * modules/unictype/category-Me-tests (Files): Likewise.
9329         * modules/unictype/category-Mn-tests (Files): Likewise.
9330         * modules/unictype/category-N-tests (Files): Likewise.
9331         * modules/unictype/category-Nd-tests (Files): Likewise.
9332         * modules/unictype/category-Nl-tests (Files): Likewise.
9333         * modules/unictype/category-No-tests (Files): Likewise.
9334         * modules/unictype/category-P-tests (Files): Likewise.
9335         * modules/unictype/category-Pc-tests (Files): Likewise.
9336         * modules/unictype/category-Pd-tests (Files): Likewise.
9337         * modules/unictype/category-Pe-tests (Files): Likewise.
9338         * modules/unictype/category-Pf-tests (Files): Likewise.
9339         * modules/unictype/category-Pi-tests (Files): Likewise.
9340         * modules/unictype/category-Po-tests (Files): Likewise.
9341         * modules/unictype/category-Ps-tests (Files): Likewise.
9342         * modules/unictype/category-S-tests (Files): Likewise.
9343         * modules/unictype/category-Sc-tests (Files): Likewise.
9344         * modules/unictype/category-Sk-tests (Files): Likewise.
9345         * modules/unictype/category-Sm-tests (Files): Likewise.
9346         * modules/unictype/category-So-tests (Files): Likewise.
9347         * modules/unictype/category-Z-tests (Files): Likewise.
9348         * modules/unictype/category-Zl-tests (Files): Likewise.
9349         * modules/unictype/category-Zp-tests (Files): Likewise.
9350         * modules/unictype/category-Zs-tests (Files): Likewise.
9351         * modules/unictype/category-and-not-tests (Files): Likewise.
9352         * modules/unictype/category-and-tests (Files): Likewise.
9353         * modules/unictype/category-byname-tests (Files): Likewise.
9354         * modules/unictype/category-name-tests (Files): Likewise.
9355         * modules/unictype/category-none-tests (Files): Likewise.
9356         * modules/unictype/category-of-tests (Files): Likewise.
9357         * modules/unictype/category-or-tests (Files): Likewise.
9358         * modules/unictype/category-test-withtable-tests (Files): Likewise.
9359         * modules/unictype/combining-class-tests (Files): Likewise.
9360         * modules/unictype/ctype-alnum-tests (Files): Likewise.
9361         * modules/unictype/ctype-alpha-tests (Files): Likewise.
9362         * modules/unictype/ctype-blank-tests (Files): Likewise.
9363         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
9364         * modules/unictype/ctype-digit-tests (Files): Likewise.
9365         * modules/unictype/ctype-graph-tests (Files): Likewise.
9366         * modules/unictype/ctype-lower-tests (Files): Likewise.
9367         * modules/unictype/ctype-print-tests (Files): Likewise.
9368         * modules/unictype/ctype-punct-tests (Files): Likewise.
9369         * modules/unictype/ctype-space-tests (Files): Likewise.
9370         * modules/unictype/ctype-upper-tests (Files): Likewise.
9371         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
9372         * modules/unictype/decimal-digit-tests (Files): Likewise.
9373         * modules/unictype/digit-tests (Files): Likewise.
9374         * modules/unictype/mirror-tests (Files): Likewise.
9375         * modules/unictype/numeric-tests (Files): Likewise.
9376         * modules/unictype/property-alphabetic-tests (Files): Likewise.
9377         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
9378         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
9379         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
9380         Likewise.
9381         * modules/unictype/property-bidi-block-separator-tests (Files):
9382         Likewise.
9383         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
9384         Likewise.
9385         * modules/unictype/property-bidi-common-separator-tests (Files):
9386         Likewise.
9387         * modules/unictype/property-bidi-control-tests (Files): Likewise.
9388         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
9389         Likewise.
9390         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
9391         Likewise.
9392         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
9393         Likewise.
9394         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
9395         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
9396         Likewise.
9397         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
9398         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
9399         Likewise.
9400         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
9401         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
9402         * modules/unictype/property-bidi-segment-separator-tests (Files):
9403         Likewise.
9404         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
9405         * modules/unictype/property-byname-tests (Files): Likewise.
9406         * modules/unictype/property-combining-tests (Files): Likewise.
9407         * modules/unictype/property-composite-tests (Files): Likewise.
9408         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
9409         * modules/unictype/property-dash-tests (Files): Likewise.
9410         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
9411         * modules/unictype/property-default-ignorable-code-point-tests (Files):
9412         Likewise.
9413         * modules/unictype/property-deprecated-tests (Files): Likewise.
9414         * modules/unictype/property-diacritic-tests (Files): Likewise.
9415         * modules/unictype/property-extender-tests (Files): Likewise.
9416         * modules/unictype/property-format-control-tests (Files): Likewise.
9417         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
9418         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
9419         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
9420         * modules/unictype/property-hex-digit-tests (Files): Likewise.
9421         * modules/unictype/property-hyphen-tests (Files): Likewise.
9422         * modules/unictype/property-id-continue-tests (Files): Likewise.
9423         * modules/unictype/property-id-start-tests (Files): Likewise.
9424         * modules/unictype/property-ideographic-tests (Files): Likewise.
9425         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
9426         * modules/unictype/property-ids-trinary-operator-tests (Files):
9427         Likewise.
9428         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
9429         * modules/unictype/property-iso-control-tests (Files): Likewise.
9430         * modules/unictype/property-join-control-tests (Files): Likewise.
9431         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
9432         * modules/unictype/property-line-separator-tests (Files): Likewise.
9433         * modules/unictype/property-logical-order-exception-tests (Files):
9434         Likewise.
9435         * modules/unictype/property-lowercase-tests (Files): Likewise.
9436         * modules/unictype/property-math-tests (Files): Likewise.
9437         * modules/unictype/property-non-break-tests (Files): Likewise.
9438         * modules/unictype/property-not-a-character-tests (Files): Likewise.
9439         * modules/unictype/property-numeric-tests (Files): Likewise.
9440         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
9441         * modules/unictype/property-other-default-ignorable-code-point-tests
9442         (Files): Likewise.
9443         * modules/unictype/property-other-grapheme-extend-tests (Files):
9444         Likewise.
9445         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
9446         * modules/unictype/property-other-id-start-tests (Files): Likewise.
9447         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
9448         * modules/unictype/property-other-math-tests (Files): Likewise.
9449         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
9450         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
9451         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
9452         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
9453         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
9454         * modules/unictype/property-private-use-tests (Files): Likewise.
9455         * modules/unictype/property-punctuation-tests (Files): Likewise.
9456         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
9457         * modules/unictype/property-radical-tests (Files): Likewise.
9458         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
9459         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
9460         * modules/unictype/property-space-tests (Files): Likewise.
9461         * modules/unictype/property-terminal-punctuation-tests (Files):
9462         Likewise.
9463         * modules/unictype/property-test-tests (Files): Likewise.
9464         * modules/unictype/property-titlecase-tests (Files): Likewise.
9465         * modules/unictype/property-unassigned-code-value-tests (Files):
9466         Likewise.
9467         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
9468         * modules/unictype/property-uppercase-tests (Files): Likewise.
9469         * modules/unictype/property-variation-selector-tests (Files): Likewise.
9470         * modules/unictype/property-white-space-tests (Files): Likewise.
9471         * modules/unictype/property-xid-continue-tests (Files): Likewise.
9472         * modules/unictype/property-xid-start-tests (Files): Likewise.
9473         * modules/unictype/property-zero-width-tests (Files): Likewise.
9474         * modules/unictype/scripts-tests (Files): Likewise.
9475         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
9476         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
9477         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
9478         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
9479         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
9480         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
9481         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
9482         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
9483         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
9484         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
9485         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
9486         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
9487         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
9488         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
9489         * modules/uninorm/composition-tests (Files): Likewise.
9490         * modules/uninorm/decomposing-form-tests (Files): Likewise.
9491         * modules/uninorm/decomposition-tests (Files): Likewise.
9492         * modules/uninorm/filter-tests (Files): Likewise.
9493         * modules/uninorm/nfc-tests (Files): Likewise.
9494         * modules/uninorm/nfd-tests (Files): Likewise.
9495         * modules/uninorm/nfkc-tests (Files): Likewise.
9496         * modules/uninorm/nfkd-tests (Files): Likewise.
9497         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
9498         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
9499         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
9500         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
9501         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
9502         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
9503         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
9504         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
9505         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
9506         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
9507         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
9508         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
9509         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
9510         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
9511         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
9512         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
9513         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
9514         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
9515         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
9516         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
9517         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
9518         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
9519         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
9520         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
9521         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
9522         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
9523         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
9524         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
9525         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
9526         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
9527         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
9528         * modules/uniwidth/u8-width-tests (Files): Likewise.
9529         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
9530         * modules/uniwidth/u16-width-tests (Files): Likewise.
9531         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
9532         * modules/uniwidth/u32-width-tests (Files): Likewise.
9533         * modules/uniwidth/width-tests (Files): Likewise.
9534         * modules/unlink-tests (Files): Likewise.
9535         * modules/unsetenv-tests (Files): Likewise.
9536         * modules/usleep-tests (Files): Likewise.
9537         * modules/utimens-tests (Files): Likewise.
9538         * modules/utimensat-tests (Files): Likewise.
9539         * modules/vasnprintf-posix-tests (Files): Likewise.
9540         * modules/vasnprintf-tests (Files): Likewise.
9541         * modules/vasprintf-posix-tests (Files): Likewise.
9542         * modules/vasprintf-tests (Files): Likewise.
9543         * modules/vdprintf-posix-tests (Files): Likewise.
9544         * modules/vfprintf-posix-tests (Files): Likewise.
9545         * modules/vprintf-posix-tests (Files): Likewise.
9546         * modules/vsnprintf-posix-tests (Files): Likewise.
9547         * modules/vsnprintf-tests (Files): Likewise.
9548         * modules/vsprintf-posix-tests (Files): Likewise.
9549         * modules/wcrtomb-tests (Files): Likewise.
9550         * modules/wcsnrtombs-tests (Files): Likewise.
9551         * modules/wcsrtombs-tests (Files): Likewise.
9552         * modules/wctype-tests (Files): Likewise.
9553         * modules/wcwidth-tests (Files): Likewise.
9554         * modules/xmemdup0-tests (Files): Likewise.
9555         * modules/xprintf-posix-tests (Files): Likewise.
9556         * modules/xvasprintf-tests (Files): Likewise.
9557
9558 2009-12-24  Eric Blake  <ebb9@byu.net>
9559
9560         test-nanosleep: fix typo
9561         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
9562         patch.
9563         Reported by Bruno Haible.
9564
9565 2009-12-24  Bruno Haible  <bruno@clisp.org>
9566
9567         Reduce namespace pollution on glibc systems.
9568         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
9569         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
9570         systems.
9571         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
9572         <getopt.h> on glibc systems.
9573         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
9574         systems.
9575         * lib/fcntl.c: Include <unistd.h> here instead.
9576
9577 2009-12-24  Bruno Haible  <bruno@clisp.org>
9578
9579         * lib/stdlib.in.h (includes): Fix typo in today's commit.
9580
9581 2009-12-24  Eric Blake  <ebb9@byu.net>
9582
9583         tests: add signature checks
9584         * tests/signature.h (SIGNATURE_CHECK): New file.
9585         * modules/atexit-tests (Files): Use it.
9586         * modules/btowc-tests (Files): Likewise.
9587         * modules/canonicalize-lgpl-tests (Files): Likewise.
9588         * modules/ceilf-tests (Files): Likewise.
9589         * modules/ceill-tests (Files): Likewise.
9590         * modules/chown-tests (Files): Likewise.
9591         * modules/dprintf-posix-tests (Files): Likewise.
9592         * modules/dup2-tests (Files): Likewise.
9593         * modules/dup3-tests (Files): Likewise.
9594         * modules/duplocale-tests (Files): Likewise.
9595         * modules/fchdir-tests (Files): Likewise.
9596         * modules/fcntl-tests (Files): Likewise.
9597         * modules/fdopendir-tests (Files): Likewise.
9598         * modules/fflush-tests (Files): Likewise.
9599         * modules/flock-tests (Files): Likewise.
9600         * modules/floorf-tests (Files): Likewise.
9601         * modules/floorl-tests (Files): Likewise.
9602         * modules/fnmatch-tests (Files): Likewise.
9603         * modules/fopen-tests (Files): Likewise.
9604         * modules/fprintf-posix-tests (Files): Likewise.
9605         * modules/freopen-tests (Files): Likewise.
9606         * modules/frexp-nolibm-tests (Files): Likewise.
9607         * modules/frexp-tests (Files): Likewise.
9608         * modules/frexpl-nolibm-tests (Files): Likewise.
9609         * modules/frexpl-tests (Files): Likewise.
9610         * modules/fseek-tests (Files): Likewise.
9611         * modules/fseeko-tests (Files): Likewise.
9612         * modules/fsync-tests (Files): Likewise.
9613         * modules/ftell-tests (Files): Likewise.
9614         * modules/ftello-tests (Files): Likewise.
9615         * modules/futimens-tests (Files): Likewise.
9616         * modules/getaddrinfo-tests (Files): Likewise.
9617         * modules/getcwd-tests (Files): Likewise.
9618         * modules/getdelim-tests (Files): Likewise.
9619         * modules/getdtablesize-tests (Files): Likewise.
9620         * modules/getgroups-tests (Files): Likewise.
9621         * modules/gethostname-tests (Files): Likewise.
9622         * modules/getline-tests (Files): Likewise.
9623         * modules/getopt-posix-tests (Files): Likewise.
9624         * modules/gettimeofday-tests (Files): Likewise.
9625         * modules/glob-tests (Files): Likewise.
9626         * modules/iconv-tests (Files): Likewise.
9627         * modules/inet_ntop-tests (Files): Likewise.
9628         * modules/inet_pton-tests (Files): Likewise.
9629         * modules/isblank-tests (Files): Likewise.
9630         * modules/lchown-tests (Files): Likewise.
9631         * modules/ldexpl-tests (Files): Likewise.
9632         * modules/link-tests (Files): Likewise.
9633         * modules/linkat-tests (Files): Likewise.
9634         * modules/lseek-tests (Files): Likewise.
9635         * modules/lstat-tests (Files): Likewise.
9636         * modules/mbrtowc-tests (Files): Likewise.
9637         * modules/mbsinit-tests (Files): Likewise.
9638         * modules/mbsnrtowcs-tests (Files): Likewise.
9639         * modules/mbsrtowcs-tests (Files): Likewise.
9640         * modules/memchr-tests (Files): Likewise.
9641         * modules/memcmp-tests (Files): Likewise.
9642         * modules/memmem-tests (Files): Likewise.
9643         * modules/memrchr-tests (Files): Likewise.
9644         * modules/mkdir-tests (Files): Likewise.
9645         * modules/mkfifo-tests (Files): Likewise.
9646         * modules/mkfifoat-tests (Files): Likewise.
9647         * modules/mknod-tests (Files): Likewise.
9648         * modules/nanosleep-tests (Files): Likewise.
9649         * modules/nl_langinfo-tests (Files): Likewise.
9650         * modules/obstack-printf-tests (Files): Likewise.
9651         * modules/open-tests (Files): Likewise.
9652         * modules/openat-tests (Files): Likewise.
9653         * modules/perror-tests (Files): Likewise.
9654         * modules/pipe2-tests (Files): Likewise.
9655         * modules/poll-tests (Files): Likewise.
9656         * modules/popen-tests (Files): Likewise.
9657         * modules/posix_spawn-tests (Files): Likewise.
9658         * modules/posix_spawnp-tests (Files): Likewise.
9659         * modules/pread-tests (Files): Likewise.
9660         * modules/printf-posix-tests (Files): Likewise.
9661         * modules/pty-tests (Files): Likewise.
9662         * modules/random_r-tests (Files): Likewise.
9663         * modules/rawmemchr-tests (Files): Likewise.
9664         * modules/readlink-tests (Files): Likewise.
9665         * modules/remove-tests (Files): Likewise.
9666         * modules/rename-tests (Files): Likewise.
9667         * modules/renameat-tests (Files): Likewise.
9668         * modules/rmdir-tests (Files): Likewise.
9669         * modules/round-tests (Files): Likewise.
9670         * modules/roundf-tests (Files): Likewise.
9671         * modules/roundl-tests (Files): Likewise.
9672         * modules/select-tests (Files): Likewise.
9673         * modules/setenv-tests (Files): Likewise.
9674         * modules/sigaction-tests (Files): Likewise.
9675         * modules/sleep-tests (Files): Likewise.
9676         * modules/snprintf-posix-tests (Files): Likewise.
9677         * modules/snprintf-tests (Files): Likewise.
9678         * modules/sprintf-posix-tests (Files): Likewise.
9679         * modules/stat-tests (Files): Likewise.
9680         * modules/strcasestr-tests (Files): Likewise.
9681         * modules/strchrnul-tests (Files): Likewise.
9682         * modules/strerror-tests (Files): Likewise.
9683         * modules/strsignal-tests (Files): Likewise.
9684         * modules/strstr-tests (Files): Likewise.
9685         * modules/strtod-tests (Files): Likewise.
9686         * modules/strverscmp-tests (Files): Likewise.
9687         * modules/symlink-tests (Files): Likewise.
9688         * modules/symlinkat-tests (Files): Likewise.
9689         * modules/times-tests (Files): Likewise.
9690         * modules/trunc-tests (Files): Likewise.
9691         * modules/truncf-tests (Files): Likewise.
9692         * modules/truncl-tests (Files): Likewise.
9693         * modules/tsearch-tests (Files): Likewise.
9694         * modules/uname-tests (Files): Likewise.
9695         * modules/unlink-tests (Files): Likewise.
9696         * modules/unsetenv-tests (Files): Likewise.
9697         * modules/usleep-tests (Files): Likewise.
9698         * modules/utimensat-tests (Files): Likewise.
9699         * modules/vasprintf-tests (Files): Likewise.
9700         * modules/vdprintf-posix-tests (Files): Likewise.
9701         * modules/vfprintf-posix-tests (Files): Likewise.
9702         * modules/vprintf-posix-tests (Files): Likewise.
9703         * modules/vsnprintf-posix-tests (Files): Likewise.
9704         * modules/vsnprintf-tests (Files): Likewise.
9705         * modules/vsprintf-posix-tests (Files): Likewise.
9706         * modules/wcrtomb-tests (Files): Likewise.
9707         * modules/wcsnrtombs-tests (Files): Likewise.
9708         * modules/wcsrtombs-tests (Files): Likewise.
9709         * modules/wcwidth-tests (Files): Likewise.
9710         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
9711         * tests/test-isinf.c (isinf): Likewise.
9712         * tests/test-isnan.c (isnan): Likewise.
9713         * tests/test-signbit.c (signbit): Likewise.
9714         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
9715         declaration, either as macro or with correct signature.
9716         (select): Ensure function under test is declared with correct
9717         signature in correct header.
9718         * tests/test-atexit.c (atexit): Likewise.
9719         * tests/test-btowc.c (btowc): Likewise.
9720         * tests/test-canonicalize-lgpl.c (realpath)
9721         (canonicalize_file_name): Likewise.
9722         * tests/test-ceilf1.c (ceilf): Likewise.
9723         * tests/test-ceill.c (ceill): Likewise.
9724         * tests/test-chown.c (chown): Likewise.
9725         * tests/test-dprintf-posix.c (dprintf): Likewise.
9726         * tests/test-dup2.c (dup2): Likewise.
9727         * tests/test-dup3.c (dup3): Likewise.
9728         * tests/test-duplocale.c (duplocale): Likewise.
9729         * tests/test-fchdir.c (fchdir): Likewise.
9730         * tests/test-fchownat.c (fchownat): Likewise.
9731         * tests/test-fcntl.c (fcntl): Likewise.
9732         * tests/test-fdopendir.c (fdopendir): Likewise.
9733         * tests/test-fflush.c (fflush): Likewise.
9734         * tests/test-flock.c (flock): Likewise.
9735         * tests/test-floorf1.c (floorf): Likewise.
9736         * tests/test-floorl.c (floorl): Likewise.
9737         * tests/test-fnmatch.c (fnmatch): Likewise.
9738         * tests/test-fopen.c (fopen): Likewise.
9739         * tests/test-fprintf-posix.c (fprintf): Likewise.
9740         * tests/test-freopen.c (freopen): Likewise.
9741         * tests/test-frexp.c (frexp): Likewise.
9742         * tests/test-frexpl.c (frexpl): Likewise.
9743         * tests/test-fseek.c (fseek): Likewise.
9744         * tests/test-fseeko.c (fseeko): Likewise.
9745         * tests/test-fstatat.c (fstatat): Likewise.
9746         * tests/test-fsync.c (fsync): Likewise.
9747         * tests/test-ftell.c (ftell): Likewise.
9748         * tests/test-ftello.c (ftello): Likewise.
9749         * tests/test-futimens.c (futimens): Likewise.
9750         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
9751         (gai_strerror): Likewise.
9752         * tests/test-getcwd.c (getcwd): Likewise.
9753         * tests/test-getdelim.c (getdelim): Likewise.
9754         * tests/test-getdtablesize.c (getdtablesize): Likewise.
9755         * tests/test-getgroups.c (getgroups): Likewise.
9756         * tests/test-gethostname.c (gethostname): Likewise.
9757         * tests/test-getline.c (getline): Likewise.
9758         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
9759         Likewise.
9760         * tests/test-gettimeofday.c (gettimeofday): Likewise.
9761         * tests/test-glob.c (glob, globfree): Likewise.
9762         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
9763         * tests/test-inet_ntop.c (inet_ntop): Likewise.
9764         * tests/test-inet_pton.c (inet_pton): Likewise.
9765         * tests/test-isblank.c (isblank): Likewise.
9766         * tests/test-lchown.c (lchown): Likewise.
9767         * tests/test-ldexpl.c (ldexpl): Likewise.
9768         * tests/test-link.c (link): Likewise.
9769         * tests/test-linkat.c (linkat): Likewise.
9770         * tests/test-lseek.c (lseek): Likewise.
9771         * tests/test-lstat.c (lstat): Likewise.
9772         * tests/test-mbrtowc.c (mbrtowc): Likewise.
9773         * tests/test-mbsinit.c (mbsinit): Likewise.
9774         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
9775         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
9776         * tests/test-memchr.c (memchr): Likewise.
9777         * tests/test-memcmp.c (memcmp): Likewise.
9778         * tests/test-memmem.c (memmem): Likewise.
9779         * tests/test-memrchr.c (memrchr): Likewise.
9780         * tests/test-mkdir.c (mkdir): Likewise.
9781         * tests/test-mkdirat.c (mkdirat): Likewise.
9782         * tests/test-mkfifo.c (mkfifo): Likewise.
9783         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
9784         * tests/test-mknod.c (mknod): Likewise.
9785         * tests/test-nanosleep.c (nanosleep): Likewise.
9786         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
9787         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
9788         Likewise.
9789         * tests/test-open.c (open): Likewise.
9790         * tests/test-openat.c (openat): Likewise.
9791         * tests/test-perror.c (perror): Likewise.
9792         * tests/test-pipe2.c (pipe2): Likewise.
9793         * tests/test-poll.c (poll): Likewise.
9794         * tests/test-popen.c (popen, pclose): Likewise.
9795         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
9796         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
9797         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
9798         (posix_spawn_file_actions_destroy)
9799         (posix_spawn_file_actions_addclose)
9800         (posix_spawn_file_actions_addopen)
9801         (posix_spawn_file_actions_adddup2): Likewise.
9802         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
9803         * tests/test-pread.c (pread): Likewise.
9804         * tests/test-printf-posix.c (printf): Likewise.
9805         * tests/test-pty.c (openpty, forkpty): Likewise.
9806         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
9807         (random_r): Likewise.
9808         * tests/test-rawmemchr.c (rawmemchr): Likewise.
9809         * tests/test-readlink.c (readlink): Likewise.
9810         * tests/test-remove.c (remove): Likewise.
9811         * tests/test-rename.c (rename): Likewise.
9812         * tests/test-renameat.c (renameat): Likewise.
9813         * tests/test-rmdir.c (rmdir): Likewise.
9814         * tests/test-round1.c (round): Likewise.
9815         * tests/test-roundf1.c (roundf): Likewise.
9816         * tests/test-roundl.c (roundl): Likewise.
9817         * tests/test-setenv.c (setenv): Likewise.
9818         * tests/test-sigaction.c (sigaction): Likewise.
9819         * tests/test-sleep.c (sleep): Likewise.
9820         * tests/test-snprintf.c (snprintf): Likewise.
9821         * tests/test-sprintf-posix.c (sprintf): Likewise.
9822         * tests/test-stat.c (stat): Likewise.
9823         * tests/test-stpncpy.c (stpncpy): Likewise.
9824         * tests/test-strcasestr.c (strcasestr): Likewise.
9825         * tests/test-strchrnul.c (strchrnul): Likewise.
9826         * tests/test-strerror.c (strerror): Likewise.
9827         * tests/test-strsignal.c (strsignal): Likewise.
9828         * tests/test-strstr.c (strstr): Likewise.
9829         * tests/test-strtod.c (strtod): Likewise.
9830         * tests/test-strverscmp.c (strverscmp): Likewise.
9831         * tests/test-symlink.c (symlink): Likewise.
9832         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
9833         * tests/test-times.c (times): Likewise.
9834         * tests/test-trunc1.c (trunc): Likewise.
9835         * tests/test-truncf1.c (truncf): Likewise.
9836         * tests/test-truncl.c (truncl): Likewise.
9837         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
9838         Likewise.
9839         * tests/test-uname.c (uname): Likewise.
9840         * tests/test-unlink.c (unlink): Likewise.
9841         * tests/test-unlinkat.c (unlinkat): Likewise.
9842         * tests/test-unsetenv.c (unsetenv): Likewise.
9843         * tests/test-usleep.c (usleep): Likewise.
9844         * tests/test-utimensat.c (utimensat): Likewise.
9845         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
9846         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
9847         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
9848         * tests/test-vprintf-posix.c (vprintf): Likewise.
9849         * tests/test-vsnprintf.c (vsnprintf): Likewise.
9850         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
9851         * tests/test-wcrtomb.c (wcrtomb): Likewise.
9852         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
9853         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
9854         * tests/test-wcwidth.c (wcwidth): Likewise.
9855
9856         build: pull in conditional headers during GNULIB_POSIXCHECK
9857         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
9858         definitions from any conditionally-included headers.
9859         * lib/stdlib.in.h (includes): Likewise.
9860         * lib/unistd.in.h (includes): Likewise.
9861
9862 2009-12-24  Bruno Haible  <bruno@clisp.org>
9863
9864         * tests/test-argv-iter.c: Include header file being tested immediately
9865         after config.h.
9866         * tests/test-base64.c: Likewise.
9867         * tests/test-flock.c: Likewise.
9868         * tests/test-fsync.c: Likewise.
9869         * tests/test-getdate.c: Likewise.
9870         * tests/test-getndelim2.c: Likewise.
9871         * tests/test-isfinite.c: Likewise.
9872         * tests/test-isinf.c: Likewise.
9873         * tests/test-strerror.c: Likewise.
9874         * tests/test-strsignal.c: Likewise.
9875
9876 2009-12-23  Eric Blake  <ebb9@byu.net>
9877
9878         unistd: work around cygwin bug
9879         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
9880         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
9881         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
9882
9883 2009-12-23  Bruno Haible  <bruno@clisp.org>
9884
9885         localename: More tests.
9886         * tests/test-localename.c (SIZEOF): New macro.
9887         (categories): New variable.
9888         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
9889         test_locale_name_default): Add test w.r.t. thread locale.
9890         (test_locale_name_thread): New function.
9891         (main): Invoke it.
9892
9893         localename: Make aware of thread locale.
9894         * lib/localename.h (gl_locale_name_thread): New declaration.
9895         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
9896         behaviour with respect to thread locale.
9897         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
9898         <langinfo.h>, glthread/lock.h.
9899         (SIZE_BITS): New macro.
9900         (string_hash): New function.
9901         (struct hash_node): New type.
9902         (HASH_TABLE_SIZE): New macro.
9903         (struniq_hash_table, struniq_lock): New variables.
9904         (struniq): New function.
9905         (gl_locale_name_thread): New function.
9906         (gl_locale_name): Invoke it.
9907         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
9908         * modules/localename (Depends-on): Add lock.
9909         Reported by Mike Gran <spk121@yahoo.com>.
9910
9911 2009-12-23  Eric Blake  <ebb9@byu.net>
9912
9913         va-args: new module
9914         * modules/va-args: New file.
9915         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
9916         * MODULES.html.sh (Core language properties): Mention it.
9917
9918         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
9919         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
9920         named alias for __attribute__((__unused__)).
9921         * lib/chown.c: Update client.
9922         * lib/fchmodat.c: Likewise.
9923         * lib/fts.c: Likewise.
9924         * lib/getdate.y: Likewise.
9925         * lib/getgroups.c: Likewise.
9926         * lib/getopt.c: Likewise.
9927         * lib/getugroups.c: Likewise.
9928         * lib/mkdir.c: Likewise.
9929         * lib/mkfifo.c: Likewise.
9930         * lib/mkfifoat.c: Likewise.
9931         * lib/mknod.c: Likewise.
9932         * lib/mknodat.c: Likewise.
9933         * lib/readlink.c: Likewise.
9934         * lib/se-context.in.h: Likewise.
9935         * lib/se-selinux.in.h: Likewise.
9936         * lib/sockets.c: Likewise.
9937         * lib/symlink.c: Likewise.
9938         * lib/symlinkat.c: Likewise.
9939         * lib/unicodeio.c: Likewise.
9940         * lib/unistr.h: Likewise.
9941         * tests/test-areadlink.c: Likewise.
9942         * tests/test-areadlinkat.c: Likewise.
9943         * tests/test-filenamecat.c: Likewise.
9944         * tests/test-fseeko.c: Likewise.
9945         * tests/test-ftello.c: Likewise.
9946         * tests/test-getdate.c: Likewise.
9947         * tests/test-getgroups.c: Likewise.
9948         * tests/test-gethostname.c: Likewise.
9949         * tests/test-quotearg.c: Likewise.
9950         * tests/test-version-etc.c: Likewise.
9951         * tests/test-xalloc-die.c: Likewise.
9952         * tests/test-xfprintf-posix.c: Likewise.
9953         * tests/test-xprintf-posix.c: Likewise.
9954         * tests/test-xvasprintf.c: Likewise.
9955
9956         tests: avoid compiler warnings
9957         * tests/test-fcntl.c (main): Delete unused parameters.
9958         * tests/test-freopen-safer.c (main): Likewise.
9959         * tests/test-xalloc-die.c (main): Mark unused parameters.
9960         * tests/test-fseeko.c (main): Likewise.
9961         * tests/test-ftello.c (main): Likewise.
9962         * tests/test-nanosleep.c (main): Avoid declaration warning.
9963         * tests/test-sleep.c (main): Likewise.
9964         * tests/test-unsetenv.c (main): Silence warning about string
9965         literal.
9966         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
9967
9968 2009-12-23  Bruno Haible  <bruno@clisp.org>
9969
9970         * tests/test-localename.c (test_locale_name): New function, extracted
9971         from main. Also test mixed situations.
9972         (test_locale_name_posix, test_locale_name_environ,
9973         test_locale_name_default): New functions.
9974         (main): Invoke them all.
9975         * modules/localename-tests (configure.ac): Test for newlocale.
9976
9977 2009-12-23  Bruno Haible  <bruno@clisp.org>
9978
9979         unistd: Ensure getcwd gets declared before being overridden.
9980         * lib/unistd.in.h: Conditionally include <io.h>.
9981
9982 2009-12-22  Bruno Haible  <bruno@clisp.org>
9983
9984         wchar: Diagnose broken combination of glibc and gcc versions and flags.
9985         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
9986         (gl_WCHAR_H): Invoke it.
9987         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
9988         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
9989         Reported by Karl Berry <karl@freefriends.org>.
9990
9991 2009-12-22  Eric Blake  <ebb9@byu.net>
9992
9993         math, unistd: avoid redundant includes
9994         * lib/math.in.h (isnan): No need to re-include <math.h>.
9995         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
9996
9997         getsubopt: work around cygwin bug
9998         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
9999         avoid conflicting with system getsubopt.
10000         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
10001         bug.
10002
10003         getopt: synchronize from glibc
10004         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
10005         parameter order.  Adjust all callers.
10006         (_getopt_internal_r, main): Adjust quoting in error messages.
10007         Drop considerations for outdated POSIX 1003.2 error message.
10008         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
10009         callers.
10010         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
10011
10012         test-getopt: test stderr behavior
10013         * modules/getopt-posix-tests (Depends-on): Add dup2.
10014         * tests/test-getopt.c (ASSERT): Avoid stderr.
10015         (main): Move stderr to a temporary file.
10016         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
10017         Instead, add parameter to inform caller if output occurred.
10018         (test_getopt): Adjust all existing tests to expect silence, and
10019         add new tests of leading ":".
10020         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
10021         glibc shortcomings with leading "-:" or "+:" in optstring.
10022         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
10023         Likewise.
10024         * doc/posix-functions/getopt.texi (getopt): Likewise.
10025
10026         test-getopt: enhance test
10027         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
10028         supports optind=0.
10029         * tests/test-getopt.c (OPTIND_MIN): Move...
10030         * tests/test-getopt.h (OPTIND_MIN): ...here.
10031         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
10032         Require that optind=0 works, since modern BSD supports it in
10033         addition to optreset, and since coreutils expects it.
10034         (test_getopt_long_only): New test.
10035         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
10036         glibc shortcomings with 'W;', and enforcement of optind=0.
10037         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
10038         Likewise.
10039
10040 2009-12-21  Bruno Haible  <bruno@clisp.org>
10041
10042         localename: Improvements for MacOS X and Cygwin.
10043         * lib/localename.h (gl_locale_name_environ): New declaration.
10044         * lib/localename.c (gl_locale_name_environ): New function, extracted from
10045         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
10046         (gl_locale_name_posix): Invoke it.
10047         (gl_locale_name_default): Add comments. Use Windows native API also on
10048         Cygwin.
10049
10050 2009-12-21  Bruno Haible  <bruno@clisp.org>
10051
10052         Update list of Win32 locale ids.
10053         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
10054         (LANG_SAMI): Renamed from LANG_SAAMI.
10055         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
10056         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
10057         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
10058         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
10059         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
10060         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
10061         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
10062         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
10063         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
10064         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
10065         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
10066         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
10067         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
10068         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
10069         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
10070         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
10071         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
10072         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
10073         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
10074         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
10075         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
10076         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
10077         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
10078         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
10079         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
10080         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
10081         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
10082         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
10083         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
10084         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
10085         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
10086         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
10087         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
10088         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
10089         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
10090         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
10091         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
10092         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
10093         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
10094         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
10095         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
10096         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
10097         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
10098         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
10099         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
10100         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
10101         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
10102         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
10103         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
10104         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
10105         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
10106         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
10107         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
10108         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
10109         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
10110         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
10111         Add more languages and countries for Sami, Sorbian. Add more countries
10112         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
10113         for Pashto. Change country for Syriac, Tswana.
10114
10115 2009-12-21  Eric Blake  <ebb9@byu.net>
10116
10117         test-utimens: avoid spurious failure
10118         * tests/test-chown.h (nap): Factor...
10119         * tests/nap.h: ...into new file.
10120         * tests/test-lchown.h (nap): Avoid duplication.
10121         * tests/test-utimens-common.h (nap): Use shared implementation,
10122         necessary on file systems with 1-second resolution.
10123         * modules/chown-tests (Files): Include new file.
10124         * modules/fdutimensat-tests (Files): Likewise.
10125         * modules/futimens-tests (Files): Likewise.
10126         * modules/lchown-tests (Files): Likewise.
10127         * modules/openat-tests (Files): Likewise.
10128         * modules/utimens-tests (Files): Likewise.
10129         * modules/utimensat-tests (Files): Likewise.
10130
10131 2009-12-19  Eric Blake  <ebb9@byu.net>
10132
10133         futimens, utimensat: work around Linux bug
10134         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
10135         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
10136         * lib/utimensat.c (rpl_utimensat): Work around it.
10137         * lib/futimens.c (rpl_futimens): Adjust comment.
10138
10139         utimens: work around Linux ctime bug
10140         * lib/utimens.c (detect_ctime_bug): New helper function.
10141         (update_timespec): Differentiate between workaround needed for
10142         this bug vs. what is needed for systems that lack utimensat.
10143         (fdutimens, lutimens): Work around bug.
10144
10145         utimens: check for ctime update
10146         * tests/test-utimens-common.h (check_ctime): Define.
10147         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
10148         * tests/test-futimens.h (test_futimens): Likewise.
10149         * tests/test-lutimens.h (test_lutimens): Likewise.
10150         * doc/posix-functions/futimens.texi (futimens): Document the bug.
10151         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
10152
10153 2009-12-19  Bruno Haible  <bruno@clisp.org>
10154
10155         dprintf-posix: Check against memory leak fixed on 2009-12-15.
10156         * tests/test-dprintf-posix2.sh: New file.
10157         * tests/test-dprintf-posix2.c: New file.
10158         * modules/dprintf-posix-tests (Files): Add them.
10159         (configure.ac): Check for getrlimit and setrlimit.
10160         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
10161
10162 2009-12-19  Bruno Haible  <bruno@clisp.org>
10163
10164         fprintf-posix: Check against memory leak fixed on 2009-12-15.
10165         * tests/test-fprintf-posix3.sh: New file.
10166         * tests/test-fprintf-posix3.c: New file.
10167         * modules/fprintf-posix-tests (Files): Add them.
10168         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
10169
10170 2009-12-19  Eric Blake  <ebb9@byu.net>
10171
10172         dirfd: fix prototype
10173         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
10174         * lib/dirfd.c (dirfd): Likewise.
10175
10176         canonicalize: reduce memory usage
10177         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
10178         allocation to size.
10179         Reported by Solar Designer <solar@openwall.com>.
10180
10181 2009-12-19  Bruno Haible  <bruno@clisp.org>
10182
10183         New module attribute 'Applicability'.
10184         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
10185         * gnulib-tool: New option --extract-applicability.
10186         (func_usage): Document it.
10187         (sed_extract_prog): Recognize it.
10188         (func_get_applicability): New function.
10189         (func_import): Generalize handling of 'link-warning' module.
10190         * modules/link-warning (Applicability): New section.
10191         * modules/arg-nonnull (Applicability): New section.
10192         Repoted by Simon Josefsson <simon@josefsson.org>.
10193
10194 2009-12-19  Bruno Haible  <bruno@clisp.org>
10195
10196         fflush: tweak
10197         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
10198         * lib/fseeko.c (rpl_fseeko): Likewise.
10199
10200 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
10201
10202         * lib/gl_list.h: Fix typo in comment.
10203
10204 2009-12-16  Eric Blake  <ebb9@byu.net>
10205
10206         fcntl: use to simplify other modules
10207         * modules/cloexec (Depends-on): Add fcntl.
10208         * modules/fchdir (Depends-on): Likewise.
10209         * modules/fd-safer-flag (Depends-on): Likewise.
10210         * modules/unistd-safer (Depends-on): Likewise.
10211         * modules/dup3 (configure.ac): Set module indicator.
10212         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
10213         missing.
10214         * lib/fchdir.c (_gl_register_dup): Fix comment.
10215         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
10216         * lib/dup-safer.c (dup_safer): Likewise.
10217         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
10218         * lib/dup3.c (dup3): Likewise.
10219         * tests/test-fchdir.c (main): Enhance test.
10220         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
10221
10222         fcntl: port portions of fcntl to mingw
10223         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
10224         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
10225         replacement for mingw.
10226         * modules/fcntl (Description): Update.
10227         (Depends-on): Add dup2.
10228         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
10229         * modules/fcntl-h (Makefile.am): Substitute it.
10230         * lib/fcntl.in.h (fcntl): Update declaration.
10231         (F_DUPFD, F_GETFD): New macros, when needed.
10232         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
10233         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
10234         * tests/test-fcntl.c (check_flags, main): Enhance test for items
10235         we now guarantee.
10236
10237         fcntl: work around cygwin bug in F_DUPFD
10238         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
10239         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
10240         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
10241         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
10242         * doc/posix-functions/fcntl.texi (fcntl): Document it.
10243
10244         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
10245         * modules/fcntl (Files): List new files.
10246         (configure.ac): Run a test.
10247         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
10248         * lib/fcntl.c (rpl_fcntl): Likewise.
10249         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
10250         (gl_FCNTL_H): Always replace fcntl.h.
10251         * modules/fcntl-h (Makefile.am): Substitute witnesses.
10252         * lib/fcntl.in.h (fcntl): Declare replacement.
10253         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
10254         needed, plus a witness.
10255         * doc/posix-functions/fcntl.texi (fcntl): Document this.
10256         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
10257         * tests/test-fcntl.c: New file.
10258         * modules/fcntl-tests: Likewise.
10259
10260         binary-io: avoid potential compilation warning
10261         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
10262         directives.
10263
10264         fflush: avoid compilation error on NetBSD
10265         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
10266         between off_t and fpos_t, since the latter is sometimes a struct.
10267         * lib/fseeko.c (rpl_fseeko): Likewise.
10268         Reported by Alexander Nasonov <alnsn@yandex.ru>.
10269
10270 2009-12-15  Eric Blake  <ebb9@byu.net>
10271
10272         fcntl-h, stdio, sys_ioctl: fix declarations
10273         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
10274         function must not take arguments.
10275         * lib/sys_ioctl.in.h (ioctl): Likewise.
10276         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
10277         (open): Add a link warning.
10278
10279 2009-12-15  Jim Meyering  <meyering@redhat.com>
10280
10281         areadlink, areadlink-with-size: relax license to LGPLv2+
10282         * modules/areadlink (License): Relax to LGPLv2+.
10283         * modules/areadlink-with-size (License): Likewise.
10284
10285 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
10286             Bruno Haible  <bruno@clisp.org>
10287
10288         *printf: Fix memory leak.
10289         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
10290         * lib/vfprintf.c (vfprintf): Likewise.
10291         * lib/dprintf.c (dprintf): Likewise.
10292         * lib/vdprintf.c (vdprintf): Likewise.
10293
10294 2009-12-14  Eric Blake  <ebb9@byu.net>
10295
10296         accept4: adjust module dependencies
10297         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
10298
10299         utimens: one more try at avoiding compiler warning
10300         * lib/utimens.c (lutimens): Lower scope of result.
10301
10302 2009-12-13  Bruno Haible  <bruno@clisp.org>
10303
10304         Move the malloc checking from module 'list' to new module 'xlist'.
10305         * modules/xlist: New file.
10306         * lib/gl_xlist.h: New file.
10307         * lib/gl_xlist.c: New file.
10308         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
10309         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
10310         gl_list_add_last, gl_list_add_before, gl_list_add_after,
10311         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
10312         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
10313         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
10314         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
10315         gl_sortedlist_nx_add): New declarations.
10316         (struct gl_list_implementation): Rename and change methods accordingly.
10317         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
10318         (gl_list_nx_create): Renamed from gl_list_create.
10319         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
10320         (gl_list_nx_set_at): Renamed from gl_list_set_at.
10321         (gl_list_nx_add_first): Renamed from gl_list_add_first.
10322         (gl_list_nx_add_last): Renamed from gl_list_add_last.
10323         (gl_list_nx_add_before): Renamed from gl_list_add_before.
10324         (gl_list_nx_add_after): Renamed from gl_list_add_after.
10325         (gl_list_nx_add_at): Renamed from gl_list_add_at.
10326         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
10327         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
10328         gl_list_create_empty.
10329         (gl_list_nx_create): Renamed from gl_list_create.
10330         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
10331         (gl_list_nx_set_at): Renamed from gl_list_set_at.
10332         (gl_list_nx_add_first): Renamed from gl_list_add_first.
10333         (gl_list_nx_add_last): Renamed from gl_list_add_last.
10334         (gl_list_nx_add_before): Renamed from gl_list_add_before.
10335         (gl_list_nx_add_after): Renamed from gl_list_add_after.
10336         (gl_list_nx_add_at): Renamed from gl_list_add_at.
10337         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
10338         * lib/gl_array_list.c: Don't include xalloc.h.
10339         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
10340         NULL upon out-of-memory.
10341         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
10342         out-of-memory.
10343         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
10344         Change return type to 'int'.
10345         (gl_array_nx_set_at): Renamed from gl_array_set_at.
10346         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
10347         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
10348         upon out-of-memory.
10349         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
10350         upon out-of-memory.
10351         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
10352         upon out-of-memory.
10353         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
10354         upon out-of-memory.
10355         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
10356         out-of-memory.
10357         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
10358         Update.
10359         (gl_array_list_implementation): Update.
10360         * lib/gl_carray_list.c: Don't include xalloc.h.
10361         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
10362         Return NULL upon out-of-memory.
10363         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
10364         out-of-memory.
10365         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
10366         Change return type to 'int'.
10367         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
10368         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
10369         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
10370         upon out-of-memory.
10371         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
10372         upon out-of-memory.
10373         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
10374         out-of-memory.
10375         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
10376         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
10377         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
10378         Update.
10379         (gl_carray_list_implementation): Update.
10380         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
10381         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
10382         gl_linked_create_empty. Return NULL upon out-of-memory.
10383         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
10384         out-of-memory.
10385         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
10386         Change return type to 'int'. Return -1 upon out-of-memory.
10387         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
10388         out-of-memory.
10389         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
10390         upon out-of-memory.
10391         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
10392         upon out-of-memory.
10393         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
10394         NULL upon out-of-memory.
10395         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
10396         upon out-of-memory.
10397         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
10398         out-of-memory.
10399         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
10400         Update.
10401         * lib/gl_linked_list.c: Don't include xalloc.h.
10402         (gl_linked_list_implementation): Update.
10403         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
10404         (add_to_bucket): Change return type to 'int'.
10405         (gl_linkedhash_list_implementation): Update.
10406         * lib/gl_anytree_list1.h (free_subtree): New function.
10407         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
10408         gl_tree_create_empty. Return NULL upon out-of-memory.
10409         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
10410         Change return type to 'int'. Return -1 upon out-of-memory.
10411         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
10412         out-of-memory.
10413         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
10414         (gl_tree_remove_node): New function, moved here from
10415         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
10416         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
10417         Update.
10418         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
10419         malloc, not xmalloc. Return NULL upon out-of-memory.
10420         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
10421         out-of-memory.
10422         (gl_tree_remove_node_from_tree): New function, extracted from
10423         gl_tree_remove_node.
10424         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
10425         upon out-of-memory.
10426         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
10427         out-of-memory.
10428         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
10429         upon out-of-memory.
10430         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
10431         upon out-of-memory.
10432         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
10433         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
10434         not xmalloc. Return NULL upon out-of-memory.
10435         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
10436         out-of-memory.
10437         (gl_tree_remove_node_from_tree): New function, extracted from
10438         gl_tree_remove_node.
10439         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
10440         upon out-of-memory.
10441         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
10442         out-of-memory.
10443         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
10444         upon out-of-memory.
10445         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
10446         upon out-of-memory.
10447         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
10448         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
10449         gl_anytree_list1.h before gl_anyavltree_list2.h.
10450         (gl_avltree_list_implementation): Update.
10451         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
10452         gl_anytree_list1.h before gl_anyavltree_list2.h.
10453         (gl_rbtree_list_implementation): Update.
10454         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
10455         Change return type to 'int'. Return -1 upon out-of-memory. Use
10456         __builtin_expect.
10457         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
10458         (gl_avltreehash_list_implementation): Update.
10459         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
10460         (gl_rbtreehash_list_implementation): Update.
10461         * modules/array-list (Depends-on): Remove xalloc.
10462         * modules/carray-list (Depends-on): Likewise.
10463         * modules/linked-list (Depends-on): Likewise.
10464         * modules/linkedhash-list (Depends-on): Likewise.
10465         * modules/avltree-list (Depends-on): Likewise.
10466         * modules/rbtree-list (Depends-on): Likewise.
10467         * modules/avltreehash-list (Depends-on): Likewise.
10468         * modules/rbtreehash-list (Depends-on): Likewise.
10469
10470         * modules/xsublist: New file.
10471         * lib/gl_xsublist.h: New file.
10472         * lib/gl_xsublist.c: New file.
10473         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
10474         (gl_sublist_nx_create): New declaration.
10475         * lib/gl_sublist.c: Don't include xalloc.h.
10476         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
10477         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
10478         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
10479         Change return type to 'int'. Return -1 upon out-of-memory.
10480         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
10481         upon out-of-memory.
10482         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
10483         NULL upon out-of-memory.
10484         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
10485         upon out-of-memory.
10486         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
10487         NULL upon out-of-memory.
10488         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
10489         NULL upon out-of-memory.
10490         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
10491         upon out-of-memory.
10492         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
10493         (gl_sublist_list_implementation): Update.
10494         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
10495         upon out-of-memory.
10496         * modules/sublist (Depends-on): Remove xalloc.
10497
10498         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
10499         * tests/test-carray_list.c: Likewise.
10500         * tests/test-linked_list.c: Likewise.
10501         * tests/test-linkedhash_list.c: Likewise.
10502         * tests/test-avltree_list.c: Likewise.
10503         * tests/test-rbtree_list.c: Likewise.
10504         * tests/test-avltreehash_list.c: Likewise.
10505         * tests/test-rbtreehash_list.c: Likewise.
10506         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
10507         * modules/carray-list-tests (Makefile.am): Likewise.
10508         * modules/linked-list-tests (Makefile.am): Likewise.
10509         * modules/linkedhash-list-tests (Makefile.am): Likewise.
10510         * modules/avltree-list-tests (Makefile.am): Likewise.
10511         * modules/rbtree-list-tests (Makefile.am): Likewise.
10512         * modules/avltreehash-list-tests (Makefile.am): Likewise.
10513         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
10514
10515         * NEWS: Mention the changes.
10516
10517         * lib/clean-temp.c: Include gl_xlist.h.
10518         * modules/clean-temp (Depends-on): Add xlist.
10519
10520         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
10521         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
10522
10523         * tests/test-array_oset.c: Include gl_xlist.h.
10524         * modules/array-oset-tests (Depends-on): Add xlist.
10525
10526         Reported by José E. Marchesi <jemarch@gnu.org>.
10527
10528 2009-12-13  Bruno Haible  <bruno@clisp.org>
10529
10530         Move the malloc checking from module 'oset' to new module 'xoset'.
10531         * modules/xoset: New file.
10532         * lib/gl_xoset.h: New file.
10533         * lib/gl_xoset.c: New file.
10534         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
10535         declarations.
10536         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
10537         (struct gl_oset_implementation): Rename and change methods accordingly.
10538         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
10539         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
10540         'int'. Mark as __warn_unused_result__.
10541         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
10542         gl_oset_create_empty.
10543         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
10544         'int'.
10545         * lib/gl_array_oset.c: Don't include xalloc.h.
10546         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
10547         malloc, not xmalloc.
10548         (grow): Change return type to 'int'. Don't call xalloc_die.
10549         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
10550         to 'int'.
10551         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
10552         'int'.
10553         (gl_array_oset_implementation): Update.
10554         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
10555         gl_tree_create_empty.
10556         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
10557         'int'.
10558         * lib/gl_avltree_oset.c: Don't include xalloc.h.
10559         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
10560         xmalloc.
10561         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
10562         not xmalloc.
10563         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
10564         xmalloc.
10565         (gl_avltree_oset_implementation): Update.
10566         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
10567         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
10568         xmalloc.
10569         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
10570         not xmalloc.
10571         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
10572         xmalloc.
10573         (gl_rbtree_oset_implementation): Update.
10574         * modules/array-oset (Depends-on): Remove xalloc.
10575         * modules/avltree-oset (Depends-on): Likewise.
10576         * modules/rbtree-oset (Depends-on): Likewise.
10577         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
10578         * tests/test-avltree_oset.c: Likewise.
10579         * tests/test-rbtree_oset.c: Likewise.
10580         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
10581         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
10582         * modules/rbtree-oset-tests (Makefile.am): Likewise.
10583         * NEWS: Mention the change.
10584
10585 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
10586
10587         maint.mk: allow a project to override release-prep commands
10588         * top/maint.mk (alpha, beta, stable): Move release-preparatory
10589         commands into a new rule.
10590         (release-prep): New rule.
10591         (release-prep-hook): New overridable variable.
10592
10593 2009-12-13  Bruno Haible  <bruno@clisp.org>
10594
10595         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
10596
10597 2009-12-13  Jim Meyering  <meyering@redhat.com>
10598
10599         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
10600         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
10601
10602 2009-12-12  Bruno Haible  <bruno@clisp.org>
10603
10604         duplocale: Tweak.
10605         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
10606
10607 2009-12-12  Karl Berry  <karl@gnu.org>
10608
10609         * config/srclist.txt (strtoll.c): tab changes, no more sync.
10610
10611 2009-12-12  Bruno Haible  <bruno@clisp.org>
10612
10613         * m4/po.m4: Undo incorrect untabification.
10614
10615 2009-12-12  Bruno Haible  <bruno@clisp.org>
10616
10617         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
10618         * modules/c-strtod (Depends-on): Add locale.
10619         * modules/c-strtold (Depends-on): Likewise.
10620
10621 2009-12-12  Bruno Haible  <bruno@clisp.org>
10622
10623         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
10624
10625 2009-12-11  Eric Blake  <ebb9@byu.net>
10626
10627         setenv: relax requirement in light of POSIX ruling
10628         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
10629         not NULL.
10630         * tests/test-setenv.c (main): Relax test.
10631         * tests/test-unsetenv.c (main): Likewise.
10632         * doc/posix-functions/setenv.texi (setenv): Document this.
10633         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
10634
10635 2009-12-11  Bruno Haible  <bruno@clisp.org>
10636
10637         New module 'fd-safer-flag'.
10638         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
10639         * lib/dup-safer.c (dup_safer_flag): Remove function.
10640         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
10641         * lib/fd-safer.c (fd_safer_flag): Remove function.
10642         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
10643         * modules/cloexec (configure.ac): Drop indicator macro.
10644         * modules/fd-safer-flag: New file.
10645         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
10646         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
10647         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
10648
10649 2009-12-11  Bruno Haible  <bruno@clisp.org>
10650
10651         Tests for module 'nl_langinfo'.
10652         * modules/nl_langinfo-tests: New file.
10653         * tests/test-nl_langinfo.sh: New file.
10654         * tests/test-nl_langinfo.c: New file.
10655
10656         New module 'nl_langinfo'.
10657         * lib/nl_langinfo.c: New file.
10658         * m4/nl_langinfo.m4: New file.
10659         * modules/nl_langinfo: New file.
10660         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
10661
10662 2009-12-11  Bruno Haible  <bruno@clisp.org>
10663
10664         Tests for module 'langinfo'.
10665         * modules/langinfo-tests: New file.
10666         * tests/test-langinfo.c: New file.
10667
10668         New module 'langinfo'.
10669         * lib/langinfo.in.h: New file.
10670         * m4/langinfo_h.m4: New file.
10671         * modules/langinfo: New file.
10672         * doc/posix-headers/langinfo.texi: Mention the new module.
10673
10674 2009-12-11  Bruno Haible  <bruno@clisp.org>
10675
10676         * lib/config.charset: Untabify.
10677
10678 2009-12-11  Bruno Haible  <bruno@clisp.org>
10679
10680         * modules/unistd-safer (configure.ac): Drop indicator macro.
10681
10682 2009-12-11  Bruno Haible  <bruno@clisp.org>
10683
10684         Move pipe2-safer code to its own file.
10685         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
10686         * lib/pipe-safer.c (pipe2_safer): Remove function.
10687         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
10688         (Makefile.am): Add it to lib_SOURCES.
10689
10690 2009-12-10  Bruno Haible  <bruno@clisp.org>
10691
10692         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
10693
10694 2009-12-10  Bruno Haible  <bruno@clisp.org>
10695
10696         Declare which arguments expect non-NULL values, for GCC and clang.
10697         * build-aux/arg-nonnull.h: New file.
10698         * modules/arg-nonnull: New file.
10699         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
10700         (inet_ntop, inet_pton): Use it.
10701         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
10702         (closedir, dirfd, opendir, scandir, alphasort): Use it.
10703         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
10704         (open, openat): Use it.
10705         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
10706         (fnmatch): Use it.
10707         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
10708         (getopt, getopt_long, getopt_long_only): Use it.
10709         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
10710         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
10711         Use it.
10712         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
10713         (iconv_open): Use it.
10714         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
10715         (strtoimax, strtoumax): Use it.
10716         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
10717         (duplocale): Use it.
10718         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
10719         (frexp, frexpl): Use it.
10720         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
10721         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
10722         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
10723         (tsearch, tfind, tdelete, twalk): Use it.
10724         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
10725         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
10726         sigpending): Use it.
10727         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
10728         (posix_spawn, posix_spawnp, posix_spawnattr_init,
10729         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
10730         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
10731         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
10732         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
10733         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
10734         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
10735         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
10736         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
10737         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
10738         Use it.
10739         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
10740         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
10741         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
10742         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
10743         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
10744         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
10745         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
10746         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
10747         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
10748         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
10749         strtoull, unsetenv): Use it.
10750         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
10751         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
10752         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
10753         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
10754         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
10755         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
10756         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
10757         (strcasecmp, strncasecmp): Use it.
10758         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
10759         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
10760         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
10761         rpl_setsockopt): Use it.
10762         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
10763         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
10764         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
10765         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
10766         (gettimeofday): Use it.
10767         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
10768         (times): Use it.
10769         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
10770         (uname): Use it.
10771         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
10772         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
10773         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
10774         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
10775         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
10776         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
10777         unlinkat, write): Use it.
10778         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
10779         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
10780         * lib/argv-iter.h: Include arg-nonnull.h.
10781         (_ATTRIBUTE_NONNULL_): Remove macro.
10782         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
10783         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
10784         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
10785         optimization.
10786         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
10787         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
10788         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
10789         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
10790         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
10791         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
10792         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
10793         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
10794         * modules/arpa_inet (Depends-on): Add arg-nonnull.
10795         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
10796         * modules/dirent (Depends-on): Add arg-nonnull.
10797         (Makefile.am): Insert arg-nonnull.h into dirent.h.
10798         * modules/fcntl-h (Depends-on): Add arg-nonnull.
10799         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
10800         * modules/fnmatch (Depends-on): Add arg-nonnull.
10801         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
10802         * modules/getopt-posix (Depends-on): Add arg-nonnull.
10803         (Makefile.am): Insert arg-nonnull.h into getopt.h.
10804         * modules/glob (Depends-on): Add arg-nonnull.
10805         (Makefile.am): Insert arg-nonnull.h into glob.h.
10806         * modules/iconv_open (Depends-on): Add arg-nonnull.
10807         (Makefile.am): Insert arg-nonnull.h into iconv.h.
10808         * modules/inttypes (Depends-on): Add arg-nonnull.
10809         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
10810         * modules/locale (Depends-on): Add arg-nonnull.
10811         (Makefile.am): Insert arg-nonnull.h into locale.h.
10812         * modules/math (Depends-on): Add arg-nonnull.
10813         (Makefile.am): Insert arg-nonnull.h into math.h.
10814         * modules/netdb (Depends-on): Add arg-nonnull.
10815         (Makefile.am): Insert arg-nonnull.h into netdb.h.
10816         * modules/search (Depends-on): Add arg-nonnull.
10817         (Makefile.am): Insert arg-nonnull.h into search.h.
10818         * modules/signal (Depends-on): Add arg-nonnull.
10819         (Makefile.am): Insert arg-nonnull.h into signal.h.
10820         * modules/spawn (Depends-on): Add arg-nonnull.
10821         (Makefile.am): Insert arg-nonnull.h into spawn.h.
10822         * modules/stdio (Depends-on): Add arg-nonnull.
10823         (Makefile.am): Insert arg-nonnull.h into stdio.h.
10824         * modules/stdlib (Depends-on): Add arg-nonnull.
10825         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
10826         * modules/string (Depends-on): Add arg-nonnull.
10827         (Makefile.am): Insert arg-nonnull.h into string.h.
10828         * modules/strings (Depends-on): Add arg-nonnull.
10829         (Makefile.am): Insert arg-nonnull.h into strings.h.
10830         * modules/sys_socket (Depends-on): Add arg-nonnull.
10831         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
10832         * modules/sys_stat (Depends-on): Add arg-nonnull.
10833         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
10834         * modules/sys_time (Depends-on): Add arg-nonnull.
10835         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
10836         * modules/sys_times (Depends-on): Add arg-nonnull.
10837         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
10838         * modules/sys_utsname (Depends-on): Add arg-nonnull.
10839         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
10840         * modules/time (Depends-on): Add arg-nonnull.
10841         (Makefile.am): Insert arg-nonnull.h into time.h.
10842         * modules/unistd (Depends-on): Add arg-nonnull.
10843         (Makefile.am): Insert arg-nonnull.h into unistd.h.
10844         * modules/wchar (Depends-on): Add arg-nonnull.
10845         (Makefile.am): Insert arg-nonnull.h into wchar.h.
10846         * modules/argv-iter (Depends-on): Add arg-nonnull.
10847         * tests/test-canonicalize.c (null_ptr): New function.
10848         (main): Use it.
10849         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
10850         (main): Use it.
10851         * tests/test-memmem.c (null_ptr): New function.
10852         (main): Use it.
10853         Reported by Jim Meyering.
10854
10855 2009-12-10  Bruno Haible  <bruno@clisp.org>
10856
10857         Use spaces for indentation, not tabs.
10858         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
10859         * m4/*.m4: Untabify.
10860         * build-aux/*.h: Untabify.
10861         * tests/**/*.[hc]: Untabify.
10862         * README: New section "Indent with spaces, not TABs", based on
10863         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
10864         * NEWS: Mention the change.
10865
10866 2009-12-10  Bruno Haible  <bruno@clisp.org>
10867
10868         pty test: Fix link error.
10869         * modules/pty-tests (Makefile.am): Add the default LDADD value to
10870         test_pty_LDADD.
10871
10872 2009-12-07  Simon Josefsson  <simon@josefsson.org>
10873
10874         * modules/pty: New file.
10875         * modules/pty-tests: New file.
10876         * m4/pty.m4: New file.
10877         * tests/test-pty.c: New file.
10878         * doc/glibc-headers/pty.texi: Modified.
10879         * doc/glibc-functions/forkpty.texi: Modified.
10880         * doc/glibc-functions/openpty.texi: Modified.
10881
10882 2009-12-10  Bruno Haible  <bruno@clisp.org>
10883
10884         Avoid syntax error in C++ mode.
10885         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
10886
10887 2009-12-10  Bruno Haible  <bruno@clisp.org>
10888
10889         Use sed with option -e.
10890         * gnulib-tool (func_version, func_emit_copyright_notice,
10891         func_emit_initmacro_end, func_import, func_create_testdir): Pass
10892         option -e to sed.
10893         * modules/link-warning (Makefile.am): Likewise.
10894
10895 2009-12-10  Jim Meyering  <meyering@redhat.com>
10896
10897         mgetgroups: do not write bytes beyond end of malloc'd buffer
10898         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
10899         username, we call getgroups with a one-element-shorter buffer,
10900         but still told it the length was original, max_n_groups.
10901
10902 2009-12-09  Eric Blake  <ebb9@byu.net>
10903
10904         cloexec: relax license
10905         * modules/cloexec (Maintainer): Add myself.
10906         (License): Use LGPL, not GPL.
10907
10908         link-warning: optimize generation
10909         * modules/link-warning (Makefile.am): Reduce process usage.
10910
10911 2009-12-09  Bruno Haible  <bruno@clisp.org>
10912
10913         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
10914         workaround was added on 2009-11-17.
10915
10916 2009-12-09  Jim Meyering  <meyering@redhat.com>
10917             Bruno Haible  <bruno@clisp.org>
10918
10919         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
10920         * modules/link-warning (Makefile.am): Make the comment-removing sed
10921         command more robust in the face of bootstrap-prepended comment lines.
10922
10923 2009-12-09  Bruno Haible  <bruno@clisp.org>
10924
10925         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
10926         most one group.
10927
10928 2009-12-09  Simon Josefsson <simon@josefsson.org>
10929             Bruno Haible  <bruno@clisp.org>
10930
10931         * build-aux/link-warning.h: Add copyright notice.
10932         * modules/link-warning (Makefile.am): Generate link-warning.h from
10933         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
10934         * NEWS: Mention change in link-warning module.
10935         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
10936         * modules/dirent (Makefile.am): Add dependency to dirent.h.
10937         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
10938         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
10939         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
10940         * modules/math (Makefile.am): Add dependency to math.h.
10941         * modules/search (Makefile.am): Add dependency to search.h.
10942         * modules/signal (Makefile.am): Add dependency to signal.h.
10943         * modules/spawn (Makefile.am): Add dependency to spawn.h.
10944         * modules/stdio (Makefile.am): Add dependency to stdio.h.
10945         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
10946         * modules/string (Makefile.am): Add dependency to string.h.
10947         * modules/strings (Makefile.am): Add dependency to strings.h.
10948         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
10949         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
10950         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
10951         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
10952         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
10953         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
10954         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
10955         * modules/unistd (Makefile.am): Add dependency to unistd.h.
10956         * modules/wchar (Makefile.am): Add dependency to wchar.h.
10957
10958 2009-12-09  Bruno Haible  <bruno@clisp.org>
10959
10960         fchdir: Optimize away rpl_fstat when possible.
10961         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
10962         REPLACE_OPEN_DIRECTORY.
10963         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
10964
10965 2009-12-09  Bruno Haible  <bruno@clisp.org>
10966
10967         * lib/fchdir.c: Update comment.
10968
10969 2009-12-09  Bruno Haible  <bruno@clisp.org>
10970
10971         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
10972
10973 2009-12-08  Eric Blake  <ebb9@byu.net>
10974
10975         fchdir: avoid memory leak on re-registration.
10976         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
10977
10978 2009-12-08  Jim Meyering  <meyering@redhat.com>
10979
10980         init.sh: avoid Solaris 10 /bin/sh portability problem
10981         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
10982         sourced script:
10983           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
10984           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
10985           bar
10986         tests/init.sh relied on that, accepting a --set-path=DIR argument,
10987         and two tests used that idiom.
10988         * tests/init.sh: Update suggested usage comments.
10989         (path_prepend_): New function, to be used in place
10990         of the --src-path=DIR option.
10991         (setup_): Move PATH-prepending code into path_prepend_.
10992         * tests/test-pread.sh: Adapt to new usage.
10993         * tests/test-xalloc-die.sh: Likewise.
10994
10995 2009-12-08  Simon Josefsson  <simon@josefsson.org>
10996
10997         * doc/gnulib.texi (Glibc pty.h): Add.
10998         * doc/glibc-functions/forkpty.texi: Add.
10999         * doc/glibc-functions/openpty.texi: Add.
11000         Suggested by Bruno Haible.
11001
11002 2009-12-08  Eric Blake  <ebb9@byu.net>
11003
11004         fchdir: fix logic bugs
11005         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
11006         * tests/test-fchdir.c (main): Enhance test.
11007         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
11008         is in use.
11009
11010         dup2: fix logic bugs
11011         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
11012         REPLACE_DUP2 to decide when rpl_dup2 is needed.
11013         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
11014         exists.
11015         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
11016
11017 2009-12-07  Eric Blake  <ebb9@byu.net>
11018
11019         unlink: fix m4 detection
11020         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
11021
11022         unistd-safer: add unit test
11023         * modules/unistd-safer-tests: New file.
11024         * tests/test-dup-safer.c: Likewise.
11025         * tests/test-cloexec.c (setmode): Avoid compiler warning.
11026         * tests/test-dup2.c (setmode): Likewise.
11027         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
11028
11029         cloexec: preserve text vs. binary across dup_cloexec
11030         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
11031         mode.
11032         * modules/dup2-tests (Depends-on): Add binary-io.
11033         * modules/cloexec-tests (Depends-on): Likewise.
11034         * tests/test-dup2.c (setmode, is_mode): New helpers.
11035         (main): Add tests that translation mode is preserved.
11036         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
11037         Reported by Bruno Haible.
11038
11039         mgetgroups: reduce duplicate listings
11040         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
11041         resulting array.
11042         * tests/test-chown.h (test_chown): Simplify client.
11043         * tests/test-lchown.h (test_lchown): Likewise.
11044
11045 2009-12-06  Bruno Haible  <bruno@clisp.org>
11046
11047         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
11048         value.
11049
11050 2009-12-06  Bruno Haible  <bruno@clisp.org>
11051
11052         * lib/progname.c: Include stdio.h, stdlib.h.
11053         (set_program_name): Reject a NULL argument.
11054
11055 2009-12-05  Eric Blake  <ebb9@byu.net>
11056
11057         pipe2-safer: new module
11058         * modules/pipe2-safer: New file.
11059         * lib/unistd-safer.h (pipe2_safer): New prototype.
11060         * lib/unistd--.h (pipe2): New wrapper.
11061         * lib/pipe-safer.c (pipe2_safer): New function.
11062         * modules/pipe (Depends-on): Add pipe2-safer.
11063         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
11064
11065         stdlib-safer: preserve cloexec flag for mkostemp[s]
11066         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
11067         fd_safer_flag.
11068
11069         unistd-safer: allow preservation of cloexec status via flag
11070         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
11071         prototypes.
11072         * lib/dup-safer.c (dup_safer_flag): New function.
11073         * lib/fd-safer.c (fd_safer_flag): Likewise.
11074         * modules/cloexec (configure.ac): Set witness.
11075
11076         test-dup2: enhance test
11077         * modules/dup2-tests (Depends-on): Add cloexec.
11078         * tests/test-dup2.c (main): Enhance test.
11079
11080         cloexec: add dup_cloexec
11081         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
11082         header and comments.
11083         * lib/cloexec.c (set_cloexec_flag): Add comments.
11084         (dup_cloexec): New function, with mingw implementation borrowed
11085         from...
11086         * lib/w32spawn.h (dup_noinherit): ...here.
11087         * modules/execute (Depends-on): Add cloexec.
11088         * modules/pipe (Depends-on): Likewise.
11089         * modules/cloexec (Depends-on): Add dup2.
11090         * modules/cloexec-tests (Files): New file.
11091         * tests/test-cloexec.c: Likewise.
11092
11093         test-xalloc-die: fix test for mingw
11094         * modules/xalloc-die-tests (Files): Add tests/init.sh.
11095         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
11096         directory and .exe suffix off argv[0] output.
11097
11098         test-fseeko: fix test for mingw
11099         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
11100         than undefining fseek, so test will pass on mingw.
11101
11102 2009-12-05  Bruno Haible  <bruno@clisp.org>
11103
11104         * lib/progname.h (set_program_name): Clarify specification.
11105         * lib/progname.c (set_program_name): Likewise.
11106         Reported by Jim Meyering.
11107
11108 2009-12-05  Jim Meyering  <meyering@redhat.com>
11109
11110         maint.mk: backslash-escape parens in default regexp
11111         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
11112         backslash-escape the literal parentheses.
11113
11114         maint.mk: news-date-check: use grep -E
11115         * top/maint.mk (today): Define a Make variable, not a...
11116         (news-date-check): ...shell variable.
11117         (news-date-regexp): Use the Make variable.
11118         Use grep's -E option.  Change the failing diagnostic to mention
11119         the variable, $(news-date-regexp).
11120
11121 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
11122
11123         maintainer-makefile: allow customization of NEWS entry format
11124         * top/maint.mk (news-date-regexp): New overridable variable.
11125         (news-date-check): Use it.
11126
11127 2009-12-04  Eric Blake  <ebb9@byu.net>
11128
11129         mgetgroups: add xgetgroups, and avoid ENOSYS failures
11130         * lib/mgetgroups.h (xgetgroups): New prototype.
11131         * lib/mgetgroups.c (xgetgroups): New wrapper.
11132         (mgetgroups): Handle ENOSYS.
11133         * modules/mgetgroups (Depends-on): Add realloc.
11134         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
11135
11136         mgetgroups: avoid argument promotion issues with -1
11137         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
11138         for invalid gid_t.
11139         * tests/test-chown.h (getegid, test_chown): Likewise.
11140         * tests/test-lchown.h (getegid, test_lchown): Likewise.
11141
11142 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
11143
11144         exclude: Fix header file problems.
11145         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
11146
11147 2009-12-01  Jim Meyering  <meyering@redhat.com>
11148
11149         fts: fts_open: do not let an empty string cause immediate failure
11150         This is required in support of GNU rm, for which the command
11151         "rm A '' B" must process and remove both A and B, in spite of
11152         the empty string argument.
11153         * lib/fts.c (fts_open): Do not let the presence of an empty string
11154         cause fts_open to fail immediately.  Most fts-using tools must be
11155         able to process all arguments, in order, and can be expected to
11156         diagnose such arguments themselves.
11157
11158 2009-11-30  Eric Blake  <ebb9@byu.net>
11159
11160         utimens: fix compilation error
11161         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
11162         Declare variable at right scope.
11163
11164 2009-11-29  Jim Meyering  <meyering@redhat.com>
11165
11166         bootstrap: handle perl-5.11's changed --version output
11167         * build-aux/bootstrap (get_version): Handle perl separately,
11168         since perl-5.11's --version output is different.
11169
11170 2009-11-28  Jim Meyering  <meyering@redhat.com>
11171
11172         userspec: depend on the inttostr module, too
11173         * modules/userspec (Depends-on): Add inttostr.
11174
11175         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
11176         * lib/userspec.c (parse_with_separator): Do not accept a user ID
11177         number of MAXUID when it evaluates to (uid_t) -1.
11178         Likewise for group ID.  Reported by Matt McCutchen in
11179         <http://savannah.gnu.org/bugs/?28113>
11180
11181         userspec: reformat to use spaces, not TABs
11182         * lib/userspec.c: Expand TABs to spaces.
11183         Add Emacs' "indent-tabs-mode: nil" hint.
11184
11185 2009-11-27  Eric Blake  <ebb9@byu.net>
11186
11187         getopt-gnu: flush out another BSD bug
11188         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
11189         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
11190         flush out BSD bug.
11191         * tests/test-getopt.h (test_getopt): End lists with NULL.
11192         * tests/test-getopt_long.h (test_getopt_long): Likewise.
11193         (test_getopt_long_posix): Enhance test.
11194         * modules/getopt-posix-tests (Depends-on): Add stdbool.
11195         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
11196         getopt-gnu.
11197         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11198         Likewise.
11199
11200 2009-11-27  Simon Josefsson  <simon@josefsson.org>
11201
11202         * modules/idpriv-droptemp-tests (Notice): Fix text.
11203
11204 2009-11-27  Jim Meyering  <meyering@redhat.com>
11205
11206         test-xalloc-die: avoid spurious failure due to libtool argv difference
11207         In a libtool-enabled project, this test would fail due to a difference
11208         in the emitted program name, e.g.,
11209         -test-xalloc-die: memory exhausted
11210         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
11211         Use program to avoid that.
11212         * modules/xalloc-die-tests (Depends-on): Add progname.
11213         * tests/test-xalloc-die.c: Include progname.h".
11214         (program_name): Remove decl.
11215         (main): Call set_program_name.
11216         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
11217
11218 2009-11-26  Richard Jones  <rjones@redhat.com>
11219
11220         w32sock: leave win32 error in place.
11221         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
11222
11223 2009-11-26  Eric Blake  <ebb9@byu.net>
11224
11225         init.sh: suggest to use skip_ and fail_ functions in comments
11226         * tests/init.sh: Add a sentence.
11227
11228 2009-11-25  Bruno Haible  <bruno@clisp.org>
11229
11230         init.sh: add documentation in comments
11231         * tests/init.sh: Add some developer and user documentation.
11232
11233 2009-11-26  Jim Meyering  <meyering@redhat.com>
11234
11235         init.sh: accommodate even those who specify bogus srcdir manually
11236         * tests/init.sh: Normally, srcdir is guaranteed by automake and
11237         configure-time tests to be sanitized, so that there is no need to
11238         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
11239         (with no double quotes) suffices.  However, since tests may be
11240         invoked manually, and since you may explicitly set srcdir to the
11241         name of a directory containing spaces, do quote its uses here.
11242         * tests/test-pread.sh: Likewise.
11243         Suggested by Bruno Haible.
11244
11245         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
11246         * tests/test-pread.sh: Write no data into the pipe, because
11247         test-pread actually reads none.  This avoids a diagnostic,
11248         "bash: echo: write error: Broken pipe", that arises in the unusual
11249         event something is ignoring SIGPIPE, and might be interpreted
11250         as some sort of failure.  Reported by Bruno Haible.
11251
11252 2009-11-25  Jim Meyering  <meyering@redhat.com>
11253
11254         test-pread: cover failure with ESPIPE and EINVAL
11255         * tests/test-pread.c (main): Test for failure, too.
11256         * tests/test-pread.sh: Invoke with stdin on a pipe.
11257         Suggested by Eric Blake.
11258
11259         pread: improvement and fix
11260         * modules/pread (Depends-on): Depend on lseek, for portability to
11261         e.g., mingw.  Suggested by Eric Blake.
11262         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
11263
11264         unistd.in.h: correct declaration of pread
11265         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
11266         Reported by Richard W.M. Jones.
11267
11268         test-pread.sh: distribute the test script
11269         * modules/pread-tests (Files): Include test-pread.sh.
11270
11271         test-pread.sh: clean up
11272         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
11273         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
11274         That is unnecessary, since it's always ".".
11275         Suggestion from Eric Blake.
11276
11277         test-pread.sh: make executable
11278         * tests/test-pread.sh: Set executable bit.
11279         Reported by Eric Blake.
11280
11281         correct typo in test-pread.sh
11282         * tests/test-pread.sh: Add #! line.
11283
11284         test pread
11285         * tests/test-pread.c: New file.
11286         * tests/test-pread.sh: Likewise.
11287         * modules/pread-tests: Likewise.
11288
11289         pread: new module
11290         * modules/pread: New file.
11291         * lib/unistd.in.h (pread): Define/declare.
11292         * lib/pread.c (pread): New file.
11293         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
11294         * modules/unistd (Makefile.am): Substitute witnesses.
11295         * doc/posix-functions/pread.texi (pread): Update.
11296         * MODULES.html.sh: Add pread.
11297
11298 2009-11-25  Jim Meyering  <meyering@redhat.com>
11299
11300         tests/init.sh: new file to be used via most *.sh tests
11301         * tests/init.sh: New file.
11302
11303 2009-11-25  Eric Blake  <ebb9@byu.net>
11304
11305         utimens: work around older Linux failure with symlinks
11306         * lib/utimens.c (lutimensat_works_really): New variable.
11307         (fdutimens, lutimens): Use it to manage kernels that support
11308         nanosecond times on files, but not on symlinks.
11309         Reported by OndÅ™ej Vašík.
11310
11311         utimes: fix configure grammar
11312         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
11313
11314 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
11315
11316         regex: Fix fastmap for multibyte character ranges.
11317         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
11318         characters when a multibyte character range is included.
11319
11320 2009-11-22  Andy Wingo  <wingo@pobox.com>
11321
11322         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
11323         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
11324
11325 2009-11-24  Bruno Haible  <bruno@clisp.org>
11326
11327         doc: Most *_l functions exist in MacOS X 10.5.
11328         * doc/posix-functions/duplocale.texi: Update platforms list.
11329         * doc/posix-functions/freelocale.texi: Likewise.
11330         * doc/posix-functions/newlocale.texi: Likewise.
11331         * doc/posix-functions/uselocale.texi: Likewise.
11332         * doc/posix-functions/isalnum_l.texi: Likewise.
11333         * doc/posix-functions/isalpha_l.texi: Likewise.
11334         * doc/posix-functions/isblank_l.texi: Likewise.
11335         * doc/posix-functions/iscntrl_l.texi: Likewise.
11336         * doc/posix-functions/isdigit_l.texi: Likewise.
11337         * doc/posix-functions/isgraph_l.texi: Likewise.
11338         * doc/posix-functions/islower_l.texi: Likewise.
11339         * doc/posix-functions/isprint_l.texi: Likewise.
11340         * doc/posix-functions/ispunct_l.texi: Likewise.
11341         * doc/posix-functions/isspace_l.texi: Likewise.
11342         * doc/posix-functions/isupper_l.texi: Likewise.
11343         * doc/posix-functions/iswalnum_l.texi: Likewise.
11344         * doc/posix-functions/iswalpha_l.texi: Likewise.
11345         * doc/posix-functions/iswblank_l.texi: Likewise.
11346         * doc/posix-functions/iswcntrl_l.texi: Likewise.
11347         * doc/posix-functions/iswctype_l.texi: Likewise.
11348         * doc/posix-functions/iswdigit_l.texi: Likewise.
11349         * doc/posix-functions/iswgraph_l.texi: Likewise.
11350         * doc/posix-functions/iswlower_l.texi: Likewise.
11351         * doc/posix-functions/iswprint_l.texi: Likewise.
11352         * doc/posix-functions/iswpunct_l.texi: Likewise.
11353         * doc/posix-functions/iswspace_l.texi: Likewise.
11354         * doc/posix-functions/iswupper_l.texi: Likewise.
11355         * doc/posix-functions/iswxdigit_l.texi: Likewise.
11356         * doc/posix-functions/isxdigit_l.texi: Likewise.
11357         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
11358         * doc/posix-functions/strcasecmp_l.texi: Likewise.
11359         * doc/posix-functions/strcoll_l.texi: Likewise.
11360         * doc/posix-functions/strfmon_l.texi: Likewise.
11361         * doc/posix-functions/strftime_l.texi: Likewise.
11362         * doc/posix-functions/strncasecmp_l.texi: Likewise.
11363         * doc/posix-functions/strxfrm_l.texi: Likewise.
11364         * doc/posix-functions/tolower_l.texi: Likewise.
11365         * doc/posix-functions/toupper_l.texi: Likewise.
11366         * doc/posix-functions/towctrans_l.texi: Likewise.
11367         * doc/posix-functions/towlower_l.texi: Likewise.
11368         * doc/posix-functions/towupper_l.texi: Likewise.
11369         * doc/posix-functions/wcscoll_l.texi: Likewise.
11370         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
11371         * doc/posix-functions/wctrans_l.texi: Likewise.
11372         * doc/posix-functions/wctype_l.texi: Likewise.
11373         * doc/glibc-functions/strptime_l.texi: Likewise.
11374         * doc/glibc-functions/strtod_l.texi: Likewise.
11375         * doc/glibc-functions/strtof_l.texi: Likewise.
11376         * doc/glibc-functions/strtol_l.texi: Likewise.
11377         * doc/glibc-functions/strtold_l.texi: Likewise.
11378         * doc/glibc-functions/strtoll_l.texi: Likewise.
11379         * doc/glibc-functions/strtoul_l.texi: Likewise.
11380         * doc/glibc-functions/strtoull_l.texi: Likewise.
11381         * doc/glibc-functions/wcsftime_l.texi: Likewise.
11382         * doc/glibc-functions/wcstod_l.texi: Likewise.
11383         * doc/glibc-functions/wcstof_l.texi: Likewise.
11384         * doc/glibc-functions/wcstol_l.texi: Likewise.
11385         * doc/glibc-functions/wcstold_l.texi: Likewise.
11386         * doc/glibc-functions/wcstoll_l.texi: Likewise.
11387         * doc/glibc-functions/wcstoul_l.texi: Likewise.
11388         * doc/glibc-functions/wcstoull_l.texi: Likewise.
11389
11390 2009-11-24  Bruno Haible  <bruno@clisp.org>
11391
11392         duplocale: Fix logic bug.
11393         * lib/duplocale.c: Don't include <langinfo.h>.
11394         (_NL_LOCALE_NAME): Remove macro.
11395         (rpl_duplocale): Use setlocale instead of nl_langinfo.
11396         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
11397
11398 2009-11-23  Jim Meyering  <meyering@redhat.com>
11399
11400         test-update-copyright: don't hard-code /usr/bin/perl
11401         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
11402         perl to print the current year.  Gilles Espinasse reported that
11403         the replaced use of perl was hard-coded as /usr/bin/perl.
11404
11405 2009-11-23  Bruno Haible  <bruno@clisp.org>
11406
11407         duplocale: Add support for glibc 2.3.x.
11408         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
11409
11410 2009-11-22  Bruno Haible  <bruno@clisp.org>
11411
11412         vasnprintf: Tiny optimization.
11413         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
11414         MacOS X.
11415
11416 2009-11-22  Bruno Haible  <bruno@clisp.org>
11417
11418         Tests for module 'duplocale'.
11419         * modules/duplocale-tests: New file.
11420         * tests/test-duplocale.c: New file.
11421
11422         New module 'duplocale'.
11423         * m4/duplocale.m4: New file.
11424         * lib/locale.in.h (duplocale): New declaration.
11425         * lib/duplocale.c: New file.
11426         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
11427         gl_LOCALE_H_DEFAULTS): New macros.
11428         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
11429         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
11430         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
11431         REPLACE_DUPLOCALE.
11432         * modules/duplocale: New file.
11433         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
11434
11435 2009-11-22  Bruno Haible  <bruno@clisp.org>
11436
11437         * modules/locale-tests (configure.ac): Test for newlocale function.
11438         * tests/test-locale.c: When the system has extended locale functions,
11439         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
11440
11441         locale: Make locale_t available when possible.
11442         * lib/locale.in.h: Include <xlocale.h> when it exists.
11443         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
11444         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
11445         * modules/locale (Depends-on): Add extensions.
11446         (Makefile.am): Also substitute HAVE_XLOCALE_H.
11447         * doc/posix-headers/locale.texi: Document the problem with locale_t.
11448
11449 2009-11-22  Bruno Haible  <bruno@clisp.org>
11450
11451         Add comments.
11452         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
11453         invocation.
11454         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
11455         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
11456         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
11457
11458 2009-11-22  Bruno Haible  <bruno@clisp.org>
11459
11460         error: account for the possibility of freopen (stdout).
11461         * lib/error.c: Include <unistd.h>.
11462         (flush_stdout): New function, extracted from error and error_at_line.
11463         Determine stdout's fd dynamically.
11464         (error, error_at_line): Invoke flush_stdout.
11465         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
11466         * modules/error (Depends-on): Add unistd.
11467
11468 2009-11-22  Bruno Haible  <bruno@clisp.org>
11469
11470         diffseq: Add comment.
11471         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
11472
11473 2009-11-22  Jim Meyering  <meyering@redhat.com>
11474
11475         c-stack: avoid defining an unused static function
11476         * lib/c-stack.c (find_stack_direction): Do not define this function
11477         when it will not be used.
11478
11479         diffseq: avoid spurious gcc warnings
11480         * lib/diffseq.h (IF_LINT2): Define.
11481         (compareseq): Use it to initialize two members of "part".
11482         This avoids two used-uninitialized warnings.
11483
11484 2009-11-21  Jim Meyering  <meyering@redhat.com>
11485
11486         c-stack: avoid "ignoring return value of `write'" warning
11487         * lib/c-stack.c: Include "ignore-value.h".
11488         (die): Explicitly ignore each write return value.
11489         * modules/c-stack (Depends-on): Add ignore-value.
11490
11491 2009-11-21  Bruno Haible  <bruno@clisp.org>
11492
11493         diffseq: reduce scope of variable 'best'.
11494         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
11495         variable, earlier used for two different purposes.
11496
11497 2009-11-21  Jim Meyering  <meyering@redhat.com>
11498
11499         diffseq: remove useless assignment to "best"
11500         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
11501         assignment.  At that point "best" is already guaranteed to be zero.
11502
11503 2009-11-20  Eric Blake  <ebb9@byu.net>
11504
11505         build: mention ftp redirector in release announcements
11506         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
11507         values that used to come from cfg.mk; mention FTP redirect URL.
11508         * build-aux/announce-gen: Mention the mirror list.
11509         Suggested by Karl Berry.
11510
11511         nanosleep: improve port to mingw
11512         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
11513         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
11514         LIB_NANOSLEEP, but only when needed.
11515         * modules/select (Link): Document LIBSOCKET.
11516         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
11517         enough.
11518
11519         nanosleep: work around cygwin bug
11520         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
11521         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
11522         bug.
11523         (getnow): Delete, not needed.
11524         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
11525         LIB_CLOCK_GETTIME.
11526         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
11527         clock-time, gettime.
11528         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
11529         bug.
11530         * modules/nanosleep-tests: New test.
11531         * tests/test-nanosleep.c: New file.
11532
11533         sleep: work around cygwin bug
11534         * lib/sleep.c (rpl_sleep): Work around the bug.
11535         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
11536         (gl_PREREQ_SLEEP): Delete unused macro.
11537         * modules/sleep (Depends-on): Add verify.
11538         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
11539         * modules/unistd (Makefile.am): Substitute witness.
11540         * lib/unistd.in.h (sleep): Update prototype.
11541         * doc/posix-functions/sleep.texi (sleep): Document the bug.
11542         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
11543         * modules/sleep-tests (Depends-on): Check for alarm.
11544
11545 2009-11-20  Jim Meyering  <meyering@redhat.com>
11546
11547         maint.mk: improve sc_prohibit_magic_number_exit
11548         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
11549         so it does not match uses like System.exit(1).
11550         Add comments showing how to correct all offenders.
11551
11552 2009-11-19  Eric Blake  <ebb9@byu.net>
11553
11554         xalloc-die-tests: add missing library
11555         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
11556
11557         test-xvasprintf: silence compiler warnings
11558         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
11559         empty string from gcc.
11560
11561 2009-11-19  Jim Meyering  <meyering@redhat.com>
11562
11563         xfreopen: new module, from coreutils
11564         * modules/xfreopen: New module.
11565         * lib/xfreopen.c: New file.
11566         * lib/xfreopen.h: New file.
11567         * MODULES.html.sh (File stream based Input/Output"): Add it.
11568
11569 2009-11-19  Eric Blake  <ebb9@byu.net>
11570
11571         manywarnings: depend on warnings
11572         * modules/manywarnings (Depends-on): Add warnings.
11573
11574         build: avoid compiler warnings
11575         * lib/select.c (rpl_select): Delete unused variable.
11576         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
11577
11578 2009-11-18  Eric Blake  <ebb9@byu.net>
11579
11580         tests: avoid false negative with --with-packager
11581         * tests/test-version-etc.sh: Discard packager information.
11582         * tests/test-argp-version-etc-1.sh: Likewise.
11583         Reported by Mike Frysinger.
11584
11585         utimens: fix regression on Solaris
11586         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
11587         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
11588         can only change fd timestamps via futimesat.  Instead, use an
11589         additional witness macro to avoid BSD bug.
11590         Reported by Jim Meyering.
11591
11592 2009-11-17  Eric Blake  <ebb9@byu.net>
11593
11594         usleep: use it to simplify tests
11595         * modules/stat-time-tests (Depends-on): Add usleep.
11596         (configure.ac): Drop usleep check.
11597         * modules/chown-tests (Depends-on, configure.ac): Likewise.
11598         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
11599         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
11600         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
11601         * modules/openat-tests (Depends-on, configure.ac): Likewise.
11602         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
11603         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
11604         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
11605         Likewise.
11606         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
11607         * tests/test-lchown.h (nap): Likewise.
11608         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
11609         * tests/test-stat-time.c (nap): Likewise.
11610         * tests/test-utimens-common.h (nap): Update comments.
11611
11612         usleep: new module
11613         * modules/usleep: New file.
11614         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
11615         * lib/usleep.c (usleep): Likewise.
11616         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
11617         * modules/unistd (Makefile.am): Substitute witnesses.
11618         * lib/unistd.in.h (usleep): Add declaration.
11619         * doc/pastposix-functions/usleep.texi (usleep): Document this.
11620         * MODULES.html.sh (Date and time): Likewise.
11621         * modules/usleep-tests (Depends-on): New test.
11622         * tests/test-usleep.c: New file.
11623
11624         chown: work around OpenBSD bug
11625         * lib/chown.c (rpl_chown): Work around the bug.
11626         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
11627         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
11628         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
11629         * modules/chown (Depends-on): Add stdbool.
11630         * modules/lchown (Depends-on): Likewise.
11631         * doc/posix-functions/chown.texi (chown): Document the bug.
11632         * doc/posix-functions/lchown.texi (lchown): Likewise.
11633         * tests/test-lchown.h (test_chown): Relax test.
11634
11635         mkstemp: avoid conflict with C++ keyword template
11636         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
11637         * lib/mkostemp.c (mkostemp): Likewise.
11638         * lib/mkostemps.c (mkostemps): Likewise.
11639         * lib/mkstemp.c (mkstemp): Likewise.
11640         * lib/mkstemps.c (mkstemps): Likewise.
11641
11642         xalloc-die-tests: optimize
11643         * tests/test-xalloc-die.sh: Reduce number of processes.
11644
11645 2009-11-17  Simon Josefsson  <simon@josefsson.org>
11646
11647         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
11648         patch from ludo@gnu.org (Ludovic Courtès).
11649
11650 2009-11-17  Jim Meyering  <meyering@redhat.com>
11651
11652         version-etc: use proper license string
11653         * modules/version-etc (License): Use LGPL, not LGPLv3+.
11654         * modules/version-etc-fsf: Likewise.
11655
11656 2009-11-17  Simon Josefsson  <simon@josefsson.org>
11657
11658         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
11659         printed to stdout.  Deal with EOL differences.
11660
11661 2009-11-17  Eric Blake  <ebb9@byu.net>
11662
11663         unsetenv: work around Solaris bug
11664         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
11665         * lib/unsetenv.c (rpl_unsetenv): Work around it.
11666         Reported by Jim Meyering.
11667
11668         vasnprintf: avoid compiler warnings
11669         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
11670         variables.
11671         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
11672
11673 2009-11-17  Simon Josefsson  <simon@josefsson.org>
11674
11675         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
11676         settings since xalloc-die is no longer the self test,
11677         xalloc-die.sh is.
11678
11679 2009-11-17  Jim Meyering  <meyering@redhat.com>
11680
11681         test-xalloc-die.sh: make the code agree with the commit log
11682         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
11683         at the end, just in case you happen to have a test-xalloc-die
11684         program in some other PATH directory.
11685
11686         test-xalloc-die.sh: fix a portability bug
11687         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
11688         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
11689         Otherwise, argv[0] (as often seen in diagnostics) would be too
11690         system-dependent, sometimes with, and sometimes without the leading "./".
11691
11692         version-etc-fsf: relax license to LGPLv3+
11693         * modules/version-etc-fsf (License): Relax license.
11694
11695 2009-11-16  Eric Blake  <ebb9@byu.net>
11696
11697         xalloc-die-tests: avoid printing null pointer
11698         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
11699         shell script.
11700         * tests/test-xalloc-die.c (program_name): Declare.
11701         * tests/test-xalloc-die.sh (tmpfiles): New file.
11702
11703         setenv, unsetenv: work around various bugs
11704         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
11705         (setenv) [HAVE_SETENV]: Work around bugs.
11706         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
11707         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
11708         for bugs.
11709         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
11710         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
11711         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
11712         * modules/stdlib (Makefile.am): Update substitutions.
11713         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
11714         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
11715         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
11716         * modules/setenv-tests: New test.
11717         * modules/unsetenv-tests: Likewise.
11718         * tests/test-setenv.c: New file.
11719         * tests/test-unsetenv.c: Likewise.
11720
11721 2009-11-16  Jim Meyering  <meyering@redhat.com>
11722
11723         version-etc: relax license to LGPLv3+
11724         * modules/version-etc (License): Relax license.
11725
11726         better AC_REQUIRE expanded-before-required-warning avoidance
11727         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
11728         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
11729         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
11730         which is no longer needed.
11731
11732 2009-11-16  Eric Blake  <ebb9@byu.net>
11733
11734         test-freading: clean up temporary file
11735         * tests/test-freading.c (main): Remove file on success, and use
11736         ASSERT more liberally.
11737         Reported by Jim Meyering.
11738
11739 2009-11-16  Jim Meyering  <meyering@redhat.com>
11740
11741         avoid new AC_REQUIRE expanded-before-required warnings
11742         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
11743         merely using it.
11744         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
11745         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
11746
11747 2009-11-15  Simon Josefsson  <simon@josefsson.org>
11748
11749         * tests/test-xalloc-die.c: New file.
11750         * modules/xalloc-die-tests: New file.
11751         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
11752         XFAIL_TESTS so it can be appended by modules.
11753
11754 2009-11-15  Simon Josefsson  <simon@josefsson.org>
11755
11756         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
11757         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
11758
11759 2009-11-14  Eric Blake  <ebb9@byu.net>
11760
11761         fnmatch: avoid compiler warning
11762         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
11763         to silence compiler warning about mismatch signedness in ?:.
11764         Reported by Robert Millan.
11765
11766         intprops: add double-inclusion guard
11767         * lib/intprops.h: Allow idempotent includes.
11768         Suggested by Bruce Korb.
11769
11770         openat: detect Solaris fchownat bug
11771         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
11772         penalizing glibc chownat when only lchownat is broken.
11773         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
11774         trailing slash bugs.
11775         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
11776         * modules/openat-tests (Files): Include more files.
11777         (Depends-on): Add mgetgroups, sleep, stat-time.
11778         (configure.ac): Add additional checks.
11779         (Makefile.am): Build new test.
11780         * tests/test-fchownat.c: New file.
11781
11782         lchown: detect Solaris and FreeBSD bug
11783         * lib/lchown.c (rpl_lchown): Work around bug.
11784         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
11785         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
11786         * modules/unistd (Makefile.am): Populate it.
11787         * lib/unistd.in.h (lchown): Update declaration.
11788         * doc/posix-functions/lchown.texi (lchown): Document the bug.
11789         * modules/lchown-tests: New file.
11790         * tests/test-lchown.h (test_lchown): Likewise.
11791         * tests/test-lchown.c (main): Likewise.
11792
11793         chown: detect Solaris and FreeBSD bug
11794         * lib/chown.c (rpl_chown): Work around bug.
11795         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
11796         (gl_PREREQ_CHOWN): Delete.
11797         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
11798         * modules/unistd (Makefile.am): Populate it.
11799         * lib/unistd.in.h (chown): Update declaration.
11800         * lib/lchown.c (chown): Update client.
11801         * modules/lchown (Depends-on): Add lstat.
11802         * doc/posix-functions/chown.texi (chown): Document the bug.
11803         * doc/posix-functions/getgroups.texi (getgroups): Document
11804         getgroups pitfall.
11805         * modules/chown-tests: New file.
11806         * tests/test-chown.h (test_chown): Likewise.
11807         * tests/test-chown.c (main): Likewise.
11808
11809 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
11810
11811         gnulib-tool: correctly detect absence of m4 directories
11812         * gnulib-tool: Avoid extra newline on data passed to wc -l.
11813
11814 2009-11-14  Jim Meyering  <meyering@redhat.com>
11815
11816         maint.mk: Prohibit inclusion of "xalloc.h" without use.
11817         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
11818
11819 2009-11-14  John W. Eaton  <jwe@gnu.org>
11820
11821         strftime.h: wrap funtion declaration in extern "C" block
11822         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
11823
11824 2009-11-13  Eric Blake  <ebb9@byu.net>
11825
11826         getgroups: avoid compiler warning
11827         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
11828
11829         getgroups: work around FreeBSD bug
11830         * lib/getgroups.c (rpl_getgroups): Work around the bug.
11831         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
11832         * doc/posix-functions/getgroups.texi (getgroups): Document it.
11833         * tests/test-getgroups.c (main): Fix buffer overrun.
11834
11835         getgroups: avoid compilation failure
11836         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
11837         * modules/getgroups (Depends-on): Add stdint.
11838
11839 2009-11-13  Jim Meyering  <meyering@redhat.com>
11840
11841         test-getgroups: avoid compilation failure
11842         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
11843
11844 2009-11-13  Eric Blake  <ebb9@byu.net>
11845
11846         mgetgroups: new module, taken from coreutils
11847         * modules/mgetgroups: New file.
11848         * lib/mgetgroups.h: Likewise.
11849         * lib/mgetgroups.c (mgetgroups): Likewise.
11850         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
11851         * MODULES.html.sh (Users and groups): Mention it.
11852
11853         getgroups: don't expose GETGROUPS_T to user
11854         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
11855         an element at a time if GETGROUPS_T is wrong size.
11856         * lib/getugroups.h (getugroups): Change signature.
11857         * lib/unistd.in.h (getgroups): Likewise.
11858         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
11859         signature needs fixing.
11860         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
11861         AC_TYPE_GETGROUPS.
11862         * modules/group-member (Depends-on): Add getgroups.
11863         * lib/group-member.c (group_info, get_group_info): Use gid_t.
11864         (group_member): Rely on getgroups replacement.
11865         * lib/getugroups.c (getugroups): Use gid_t.
11866         * tests/test-getgroups.c (main): Likewise.
11867         * NEWS: Mention the signature change.
11868         * doc/posix-functions/getgroups.texi (getgroups): Mention the
11869         problem with signature.
11870         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
11871         GETGROUPS_T is still useful for setgroups.
11872
11873         getgroups, getugroups: provide stubs for mingw
11874         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
11875         * lib/getugroups.c (getugroups): Likewise.
11876         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
11877         function.  Modernize replacement scheme.
11878         (gl_PREREQ_GETGROUPS): Delete.
11879         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
11880         * modules/getgroups (configure.ac): Declare witness.
11881         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
11882         * modules/unistd (Depends-on): Substitute witness.
11883         * lib/unistd.in.h (getgroups): Declare replacement.
11884
11885         getgroups: avoid calling exit
11886         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
11887         drop xalloc.
11888         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
11889         dependencies.
11890         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
11891         exiting, in the rare case of malloc failure.
11892
11893         getgroups: fix logic error
11894         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
11895         has more than 20 groups.
11896         * modules/getgroups-tests: New test.
11897         * tests/test-getgroups.c: New file.
11898
11899 2009-11-13  Simon Josefsson  <simon@josefsson.org>
11900
11901         * tests/test-base64.c: Improve.
11902
11903 2009-11-13  Simon Josefsson  <simon@josefsson.org>
11904
11905         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
11906         Blake <ebb9@byu.net>.
11907
11908 2009-11-13  Simon Josefsson  <simon@josefsson.org>
11909
11910         * tests/test-xvasprintf.c: Add %s%s related checks.
11911
11912 2009-11-12  Eric Blake  <ebb9@byu.net>
11913
11914         version-etc: match standards.texi style
11915         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
11916         and use <> only for URLs.
11917
11918 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
11919
11920         fts: do not fail on a submount during traversal
11921         * lib/fts.c (fts_build): Read the stat info again after opening
11922         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
11923         Original report at http://bugzilla.redhat.com/501848.
11924
11925 2009-11-12  Jim Meyering  <meyering@redhat.com>
11926
11927         bootstrap: sync from coreutils
11928         * build-aux/bootstrap (bootstrap_epilogue): New function.
11929         Use git_modules_config in one more place.  This make bootstrap's
11930         --gnulib-srcdir option more useful for testing.
11931
11932         bootstrap: generalize autoheader check
11933         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
11934         AC_CONFIG_HEADERS.
11935
11936 2009-11-11  Eric Blake  <ebb9@byu.net>
11937
11938         mkfifoat: use new modules for Solaris and BSD bugs
11939         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
11940         * lib/mkfifoat.c (mknodat): Split...
11941         * lib/mknodat.c (mknodat): ...into new file.
11942         * modules/mkfifoat (Files): Ship new file.
11943         (Depends-on): Add mkfifo, mknod.
11944         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
11945         (Depends-on): Add symlink.
11946         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
11947         redundant with test_mkfifo.h.
11948         (do_mkfifoat, do_mknodat): New helpers.
11949
11950         mknod: new module
11951         * modules/mknod: New file.
11952         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
11953         * lib/mknod.c (mknod): Likewise.
11954         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
11955         defaults.
11956         * modules/sys_stat (Makefile.am): Substitute them.
11957         * lib/sys_stat.in.h (mknod): Declare replacement.
11958         * MODULES.html.sh (Support for systems lacking POSIX:2008):
11959         Document it.
11960         * doc/posix-functions/mknod.texi (mknod): Likewise.
11961         * modules/mknod-tests: New test.
11962         * tests/test-mknod.c: Likewise.
11963
11964         mkfifo: new module
11965         * modules/mkfifo: New file.
11966         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
11967         * lib/mkfifo.c (mkfifo): Likewise.
11968         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
11969         defaults.
11970         * modules/sys_stat (Makefile.am): Substitute them.
11971         * lib/sys_stat.in.h (mkfifo): Declare replacement.
11972         * MODULES.html.sh (Support for systems lacking POSIX:2008):
11973         Document it.
11974         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
11975         * modules/mkfifo-tests: New test.
11976         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
11977         from test-mkfifoat.c.
11978         * tests/test-mkfifo.c: New file.
11979
11980         readlink: detect FreeBSD bug
11981         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
11982         slash on symlink.
11983         * doc/posix-functions/readlink.texi (readlink): Document the bug.
11984         * tests/test-readlink.h (test_readlink): Enhance test.
11985
11986         symlink: detect FreeBSD bug
11987         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
11988         slash on symlink.
11989         * doc/posix-functions/symlink.texi (symlink): Document the bug.
11990         * tests/test-symlink.h (test_symlink): Enhance test.
11991
11992 2009-11-10  Eric Blake  <ebb9@byu.net>
11993
11994         link: detect FreeBSD bug
11995         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
11996         symlink.
11997         * doc/posix-functions/link.texi (link): Document the bug.
11998         * tests/test-link.h (test_link): Enhance test.
11999         * tests/test-linkat.c (main): Update caller.
12000
12001         unlink, remove: detect FreeBSD bug
12002         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
12003         slash on symlink.
12004         * doc/posix-functions/unlink.texi (unlink): Document the bug.
12005         * doc/posix-functions/remove.texi (remove): Likewise.
12006         * tests/test-unlink.h (test_unlink): Enhance test.
12007         * tests/test-remove.c (main): Likewise.
12008
12009 2009-11-09  Eric Blake  <ebb9@byu.net>
12010
12011         rename: detect FreeBSD bug
12012         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
12013         slash on symlink.
12014         * modules/renameat-tests (Depends-on): Add filenamecat.
12015         * tests/test-rename.h (test_rename): Allow one more errno.
12016         * tests/test-renameat.c (main): Likewise.
12017         * doc/posix-functions/rename.texi (rename): Document the bug.
12018
12019         open: detect FreeBSD bug
12020         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
12021         symlink.
12022         * doc/posix-functions/open.texi (open): Document the bug.
12023         * doc/posix-functions/utimes.texi (utimes): Likewise.
12024         * tests/test-open.h (test_open): Add parameters, and test symlink
12025         handling.
12026         * tests/test-open.c (main): Adjust caller.
12027         * tests/test-fcntl-safer.c (main): Likewise.
12028         * modules/open-tests (Depends-on): Add stdbool, symlink.
12029         * modules/fcntl-safer-tests (Depends-on): Likewise.
12030         * tests/test-openat.c (main): Add test-open tests.
12031
12032         stat: detect FreeBSD bug
12033         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
12034         symlink.
12035         * doc/posix-functions/stat.texi (stat): Document the bug.
12036         * tests/test-stat.h (test_stat_func): Add argument.
12037         * tests/test-stat.c (main): Adjust caller.
12038         * tests/test-fstatat.c (main): Likewise.
12039         * modules/stat-tests (Depends-on): Add stdbool, symlink.
12040         Reported by Jim Meyering.
12041
12042 2009-11-09  James Youngman  <jay@gnu.org>
12043
12044         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
12045         * lib/strftime.c: Correct placement of #include "ignore-value.h".
12046
12047 2009-11-08  Jim Meyering  <meyering@redhat.com>
12048
12049         utimens: remove invalid futimesat call
12050         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
12051         It used the file descriptor of the target file as the DIR_FD
12052         parameter and NULL as the file name.  That caused failure with
12053         errno == EFAULT on FreeBSD-8.0-rc2
12054
12055 2009-11-07  Eric Blake  <ebb9@byu.net>
12056
12057         fflush, freadseek: use fseeko, not fseek
12058         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
12059         (clear_ungetc_buffer): Avoid potential problems on large files.
12060         * lib/freadseek.c (freadseek): Likewise.
12061         * modules/freadseek (Depends-on): Add fseeko.
12062         * modules/fseek (configure.ac): Set a witness.
12063         * tests/test-fflush.c (main): Use fseeko.
12064         * tests/test-fpurge.c (fseek): Disable link warning.
12065         * tests/test-freadable.c (fseek): Likewise.
12066         * tests/test-freading.c (fseek): Likewise.
12067         * tests/test-fseeko.c (fseek): Likewise.
12068         * tests/test-ftell.c (fseek): Likewise.
12069         * tests/test-ftello.c (fseek): Likewise.
12070         * tests/test-fwritable.c (fseek): Likewise.
12071         * tests/test-fwriting.c (fseek): Likewise.
12072
12073 2009-11-06  Simon Josefsson  <simon@josefsson.org>
12074
12075         * modules/memchr (Depends-on): Drop getpagesize dependency.
12076
12077 2009-11-06  Simon Josefsson  <simon@josefsson.org>
12078
12079         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
12080         Reported by Ludovic Courtès.
12081         * build-aux/pmccabe2html: Improve example usage.
12082         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
12083
12084 2009-11-06  Jim Meyering  <meyering@redhat.com>
12085
12086         do-release-commit-and-tag: New module.
12087         Automate the release-commit and tag process.
12088         * build-aux/do-release-commit-and-tag: New script, from coreutils.
12089         * modules/do-release-commit-and-tag: New file.
12090         * MODULES.html.sh (Support for maintaining and releasing): Add it.
12091
12092 2009-11-06  Simon Josefsson  <simon@josefsson.org>
12093
12094         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
12095         because test-select.c uses inet_pton.
12096
12097 2009-11-06  Simon Josefsson  <simon@josefsson.org>
12098
12099         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
12100         GETADDRINFO_LIB.  Bump serial number.
12101         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
12102         Suggested by Eric Blake <ebb9@byu.net>.
12103
12104 2009-11-05  Eric Blake  <ebb9@byu.net>
12105
12106         strtod: detect darwin bug
12107         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
12108         Reported by Leo Davis.
12109
12110         freopen-safer: new module
12111         * modules/freopen-safer: New module.
12112         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
12113         * lib/freopen-safer.c (freopen_safer): New file.
12114         * lib/stdio-safer.h (freopen_safer): New declaration.
12115         * lib/stdio--.h (freopen): New override.
12116         * MODULES.html.sh (File stream based Input/Output): Mention it.
12117         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
12118         freopen-safer module.
12119         * doc/posix-functions/stderr.texi (stderr): Likewise.
12120         * doc/posix-functions/stdin.texi (stdin): Likewise.
12121         * doc/posix-functions/stdout.texi (stdout): Likewise.
12122         * modules/freopen-safer-tests: New test.
12123         * tests/test-reopen-safer.c: New file.
12124
12125 2009-11-05  Jim Meyering  <meyering@redhat.com>
12126
12127         maint.mk: Prohibit inclusion of "close-stream.h" without use.
12128         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
12129
12130 2009-11-05  Simon Josefsson  <simon@josefsson.org>
12131
12132         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
12133
12134 2009-11-05  Simon Josefsson  <simon@josefsson.org>
12135
12136         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
12137
12138 2009-11-05  Simon Josefsson  <simon@josefsson.org>
12139
12140         Fix link error.
12141         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
12142         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
12143
12144 2009-11-05  Simon Josefsson  <simon@josefsson.org>
12145
12146         * tests/test-func.c: Also test value of __func__.
12147
12148 2009-11-05  Simon Josefsson  <simon@josefsson.org>
12149
12150         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
12151         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
12152
12153 2009-11-05  Bruno Haible  <bruno@clisp.org>
12154
12155         Fix link error.
12156         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
12157         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
12158         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
12159
12160 2009-11-05  Bruno Haible  <bruno@clisp.org>
12161
12162         Tests for module 'inet_pton'.
12163         * modules/inet_pton-tests: New file.
12164         * tests/test-inet_pton.c: New file.
12165
12166 2009-11-05  Bruno Haible  <bruno@clisp.org>
12167
12168         Tests for module 'inet_ntop'.
12169         * modules/inet_ntop-tests: New file.
12170         * tests/test-inet_ntop.c: New file.
12171
12172 2009-11-04  Eric Blake  <ebb9@byu.net>
12173
12174         stdlib-safer: wrap all mkstemp variants
12175         * modules/mkostemp (configure.ac): Set witness.
12176         * modules/mkostemps (configure.ac): Likewise.
12177         * modules/mkstemps (configure.ac): Likewise.
12178         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
12179         (mkstemps_safer): Wrap more functions.
12180         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
12181         wrapping.
12182         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
12183         (mkstemps_safer): Implement the wrappers.
12184
12185         mkstemps, mkostemps: new modules
12186         * modules/mkostemps: New module.
12187         * modules/mkstemps: Likewise.
12188         * lib/mkostemps.c (mkostemps): New file.
12189         * lib/mkstemps.c (mkstemps): Likewise.
12190         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
12191         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
12192         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
12193         * modules/stdlib (Makefile.am): Substitute them.
12194         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
12195         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
12196         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
12197         * doc/gnulib.texi (Glibc stdlib.h): Include them.
12198         * MODULES.html.sh (File system functions): Mention them.
12199
12200         tempname: resync from glibc
12201         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
12202         same values for __GT_FILE as glibc.  Abort even when assertions
12203         are disabled.
12204         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
12205         match its value otherwise.  Allow idempotent inclusion.
12206         * lib/mkdtemp.c (mkdtemp): Adjust caller.
12207         * lib/mkostemp.c (mkostemp): Likewise.
12208         * lib/mkstemp.c (mkstemp): Likewise.
12209         * lib/tmpfile.c (tmpfile): Likewise.
12210         * NEWS: Document this.
12211
12212         utimens: fix use of futimens on older Linux
12213         * lib/utimens.c (fdutimens): Use updated, rather than original,
12214         timespec to avoid bug in older Linux kernel.
12215         Reported by Simon Josefsson.
12216
12217 2009-11-04  Bruno Haible  <bruno@clisp.org>
12218
12219         Make num_processors more flexible and consistent.
12220         * lib/nproc.h (enum nproc_query): New type.
12221         (num_processors): Add a 'query' argument.
12222         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
12223         (num_processors): Add a 'query' argument. Test the value of the
12224         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
12225         mingw, count the number of CPUs available for the current process.
12226         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
12227         Check for sched_getaffinity and sched_getaffinity_np.
12228         * modules/nproc (Depends-on): Add c-ctype, extensions.
12229         * NEWS: Mention the change.
12230
12231 2009-11-03  Bruno Haible  <bruno@clisp.org>
12232
12233         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
12234
12235 2009-11-03  Jim Meyering  <meyering@redhat.com>
12236
12237         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
12238         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
12239         if it is defined.
12240
12241 2009-11-02  Eric Blake  <ebb9@byu.net>
12242
12243         mktime, timegm: share common declaration
12244         * lib/mktime-internal.h: New file.
12245         * lib/mktime.c: Use it rather than open-coding a declaration.
12246         * lib/timegm.c: Likewise.
12247         * modules/mktime (Files): Ship it.
12248         * modules/timegm (Files): Likewise.
12249         Suggested by Bruno Haible.
12250
12251         test-update-copyright: update test to match script changes
12252         * tests/test-update-copyright.sh: Avoid hard-coding perl
12253         location.  Don't update *.bak created by earlier runs.
12254
12255 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
12256             Simon Josefsson  <simon@josefsson.org>
12257             Bruno Haible  <bruno@clisp.org>
12258
12259         Fix link error on Solaris 8.
12260         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
12261         also in libnsl. Define also INET_PTON_LIB.
12262         * modules/inet_pton (Link): New section.
12263
12264 2009-11-02  Simon Josefsson  <simon@josefsson.org>
12265             Bruno Haible  <bruno@clisp.org>
12266
12267         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
12268         * modules/inet_ntop (Link): New section.
12269         Reported by Boyan Kasarov <bkasarov@gmail.com>.
12270
12271 2009-11-02  Eric Blake  <ebb9@byu.net>
12272
12273         maint: avoid compiler warnings in m4 macros
12274         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
12275         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
12276
12277 2009-11-02  Simon Josefsson  <simon@josefsson.org>
12278
12279         * m4/pmccabe2html.m4: Remove file.
12280         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
12281         function.  Change maintainer.
12282         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
12283         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
12284         Courtès).
12285
12286 2009-10-31  Eric Blake  <ebb9@byu.net>
12287
12288         fseeko: fix m4 regression
12289         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
12290         regression from 2009-10-27.
12291         Reported by Ralf Wildenhues.
12292
12293 2009-10-31  Jim Meyering  <meyering@redhat.com>
12294
12295         inttostr: aesthetics and improved (compile-time) safety
12296         Define inttype_is_signed rather than inttype_is_unsigned,
12297         since the sole use is via "#if inttype_is_signed".
12298         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
12299         inttype_is_unsigned.
12300         * lib/offtostr.c (inttype_is_signed): Likewise.
12301         * lib/uinttostr.c (inttype_is_signed): Likewise.
12302         * lib/umaxtostr.c (inttype_is_signed): Likewise.
12303         * lib/inttostr.c (inttostr): Use verify to cross-check the
12304         inttype_is_signed value and the signedness of the actual type.
12305         * modules/inttostr (Depends-on): Add verify.
12306
12307 2009-10-30  Eric Blake  <ebb9@byu.net>
12308
12309         build: avoid compiler warnings
12310         * lib/fchmodat.c (lchmod): Mark unused variables.
12311         * lib/getopt.c (_getopt_initialize): Likewise.
12312         * lib/mktime.c (__mktime_internal): Provide prototype.
12313         * lib/inttostr.c (inttostr): Avoid compiler warning even with
12314         older gcc that do not understand #pragma GCC diagnostic.
12315         * lib/uinttostr.c (inttype_is_unsigned): Define.
12316         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
12317
12318 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
12319
12320         stat: fix compilation on AIX
12321         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
12322         only see struct stat64.
12323
12324 2009-10-30  Eric Blake  <ebb9@byu.net>
12325
12326         exclude: make more robust
12327         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
12328         rather than masking a coding bug.
12329         Suggested by Bruno Haible.
12330
12331 2009-10-30  Jim Meyering  <meyering@redhat.com>
12332
12333         perl scripts: remove #!/usr/bin/perl in favor of more portable...
12334         Rather than putting #!/usr/bin/perl on the first line,
12335         start with a variant of what's recommended by "man perlrun" that
12336         invokes the first "perl" program from your shell's search path.
12337         * build-aux/gitlog-to-changelog: Replace #!... as above.
12338         Add a "Local Variables" perl mode setting.
12339         Prompted by a patch from Ludovic Courtès.
12340         Improved by Eric Blake.
12341         * build-aux/useless-if-before-free: Likewise.
12342         * build-aux/announce-gen: Likewise.
12343         * build-aux/update-copyright: Likewise.
12344
12345 2009-10-29  Eric Blake  <ebb9@byu.net>
12346
12347         filenamecat-lgpl: adjust clients
12348         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
12349         filenamecat.
12350         * modules/renameat (Depends-on): Likewise.
12351
12352         filenamecat: split into filenamecat-lgpl
12353         * modules/filenamecat-lgpl: New module.
12354         * modules/filenamecat (Files): Move library-safe files into
12355         filenamecat-lgpl.
12356         (Depends-on): Add filenamecat-lgpl.
12357         (configure.ac): Declare witness.
12358         * lib/filenamecat.h (file_name_concat): Only declare when using
12359         GPL module.
12360         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
12361         Move...
12362         * lib/filenamecat-lgpl.c: ...into new file.
12363         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
12364         (gl_FILE_NAME_CONCAT): Use it.
12365         * MODULES.html.sh (File system functions): Mention new module.
12366
12367         argp: avoid memory leak
12368         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
12369         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
12370         base_name, since the latter malloc()s and can call exit().
12371         Leak introduced 2006-07-03.
12372
12373         dirname-lgpl: adjust clients that don't need full dirname
12374         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
12375         * modules/filenamecat (Depends-on): Likewise.
12376         * modules/linkat (Depends-on): Likewise.
12377         * modules/mkancesdirs (Depends-on): Likewise.
12378         * modules/mkdir (Depends-on): Likewise.
12379         * modules/openat (Depends-on): Likewise.
12380         * modules/savewd (Depends-on): Likewise.
12381         * modules/rename (Depends-on): Likewise.
12382         (License): Relax license.
12383         * modules/mkdir-tests (Depends-on): Drop progname.
12384         (Makefile.am): Delete unneeded LDADD.
12385         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
12386
12387         dirname: split into dirname-lgpl
12388         * modules/dirname-lgpl: New module.
12389         * modules/dirname (Files): Move library-safe files into
12390         dirname-lgpl.
12391         (Depends-on): Add dirname-lgpl.
12392         (configure.ac): Declare witness.
12393         * modules/double-slash-root (License): Relax license.
12394         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
12395         module.
12396         * lib/dirname.c (dir_len, mdir_name): Move...
12397         * lib/dirname-lgpl.c: ...into new file.
12398         * lib/basename.c (last_component, base_len): Move...
12399         * lib/basename-lgpl.c: ...into new file.
12400         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
12401         (gl_DIRNAME): Use it.
12402         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
12403         Mention new module.
12404         * modules/dirname-tests (Depends-on): Add progname.
12405         * tests/test-dirname.c (program_name): Delete.
12406
12407         mkdir: make safe for libraries
12408         * modules/mkdir (Depends-on): Drop xalloc.
12409         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
12410         exit.
12411
12412         tests: avoid some compiler warnings
12413         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
12414         literals.
12415         * tests/test-memchr.c (main): Avoid type mismatch.
12416         * tests/test-arpa_inet.c (main): Avoid unused parameters.
12417         * tests/test-base64.c (main): Likewise.
12418         * tests/test-getdelim.c (main): Likewise.
12419         * tests/test-gethostname.c (main): Likewise.
12420         * tests/test-getline.c (main): Likewise.
12421         * tests/test-netinet_in.c (main): Likewise.
12422         * tests/test-select.c (open_server_socket, main): Likewise.
12423         * tests/test-select-stdin.c (main): Likewise.
12424         * tests/test-sockets.c (main): Likewise.
12425         * tests/test-strsignal.c (main): Likewise.
12426         * tests/test-sys_select.c (main): Likewise.
12427         * tests/test-sys_socket.c (main): Likewise.
12428         * tests/test-u64.c (main): Likewise.
12429         * tests/test-xfprintf-posix.c (main): Likewise.
12430         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
12431
12432         sockets: avoid compiler warning
12433         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
12434
12435         maint: detect usage(1) and other suspicious exits
12436         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
12437
12438 2009-10-29  Jim Meyering  <meyering@redhat.com>
12439
12440         timespec: long-to-int truncation could make timespec_cmp malfunction
12441         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
12442         a multiple of 2^32 nanoseconds as no difference.
12443
12444 2009-10-28  Jim Meyering  <meyering@redhat.com>
12445
12446         fprintftime: wrap macro code argument in "do {...} while(0)"
12447         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
12448         cpy macro must be a statement that can be followed by a semicolon.
12449         Now that the else clause contains a comment and is hence longer
12450         than one line, I require curly braces.  That in turn requires
12451         that we wrap this code block in the standard do...while(0).
12452
12453         fprintftime: remove stray semicolon from previous change
12454         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
12455
12456         fprintftime: avoid a warning about ignored fwrite return value
12457         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
12458         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
12459         that is unsafe.
12460         * modules/fprintftime (Depends-on): Add ignore-value.
12461
12462         exclude: avoid an unwarranted warning
12463         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
12464
12465 2009-10-27  Eric Blake  <ebb9@byu.net>
12466
12467         fseek: avoid compilation failure when fflush is replaced
12468         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
12469         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
12470         module is in use.
12471         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
12472         module is not in use; since REPLACE_FSEEK worked otherwise.
12473         (GNULIB_FTELLO): Likewise for ftell.
12474         Reported by Ian Beckwith and others.
12475
12476 2009-10-27  Bruno Haible  <bruno@clisp.org>
12477
12478         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
12479         Reported by Jim Meyering.
12480
12481 2009-10-27  Jim Meyering  <jim@meyering.net>
12482             Bruno Haible  <bruno@clisp.org>
12483
12484         Avoid warning despite dropping the return value of fwrite.
12485         * lib/unicodeio.c: Include ignore-value.h.
12486         (fwrite_success_callback): Explicitly ignore fwrite's return value.
12487         * modules/unicodeio (Depends-on): Add ignore-value.
12488
12489 2009-10-26  Eric Blake  <ebb9@byu.net>
12490
12491         areadlinkat: fix fallback path
12492         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
12493         pointer and zero.
12494
12495 2009-10-22  Pádraig Brady  <P@draigBrady.com>
12496
12497         Use a better IO block size for modern systems
12498         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
12499         * lib/md2.c: Likewise.
12500         * lib/md4.c: Likewise.
12501         * lib/md5.c: Likewise.
12502         * lib/sha1.c: Likewise.
12503         * lib/sha256.c: Likewise.
12504         * lib/sha512.c: Likewise.
12505
12506 2009-10-22  Eric Blake  <ebb9@byu.net>
12507
12508         tests: avoid several compiler warnings
12509         * tests/test-getcwd.c (main): Avoid buffer underflow.
12510         * tests/test-getdate.c (main): String literals are not safe with
12511         putenv, so use setenv.  Declare unused argument.
12512         * modules/getdate-tests (Depends-on): Add setenv.
12513         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
12514         problems with string literals in char *.
12515         * tests/test-hash.c (main): Avoid shadowing declaration.
12516         (insert_new): Treat string literals as char const *.
12517         * tests/test-getopt.h (test_getopt): Likewise.
12518         (getopt_loop): Alter types to minimize casting elsewhere.
12519         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
12520         (test_getopt_long_posix): Likewise.
12521         (do_getopt_long): Add wrapper to minimize casting.
12522         * tests/test-atexit.c (clear_temp_file): Use void.
12523         * tests/test-areadlink-with-size.c (main): Declare unused
12524         arguments.
12525         * tests/test-areadlink.c (main): Likewise.
12526         * tests/test-areadlinkat-with-size.c (main): Likewise.
12527         * tests/test-areadlinkat.c (main): Likewise.
12528         * tests/test-canonicalize-lgpl.c (main): Likewise.
12529         * tests/test-canonicalize.c (main): Likewise.
12530         * tests/test-dirent-safer.c (main): Likewise.
12531         * tests/test-dirname.c (main): Likewise.
12532         * tests/test-dup2.c (main): Likewise.
12533         * tests/test-fchdir.c (main): Likewise.
12534         * tests/test-fcntl-h.c (main): Likewise.
12535         * tests/test-fcntl-safer.c (main): Likewise.
12536         * tests/test-fdopendir.c (main): Likewise.
12537         * tests/test-fdutimensat.c (main): Likewise.
12538         * tests/test-fflush.c (main): Likewise.
12539         * tests/test-filenamecat.c (main): Likewise.
12540         * tests/test-filevercmp.c (main): Likewise.
12541         * tests/test-fopen-safer.c (main): Likewise.
12542         * tests/test-fopen.c (main): Likewise.
12543         * tests/test-fpending.c (main): Likewise.
12544         * tests/test-fpurge.c (main): Likewise.
12545         * tests/test-freading.c (main): Likewise.
12546         * tests/test-fstatat.c (main): Likewise.
12547         * tests/test-fsync.c (main): Likewise.
12548         * tests/test-futimens.c (main): Likewise.
12549         * tests/test-getndelim2.c (main): Likewise.
12550         * tests/test-gettimeofday.c (main): Likewise.
12551         * tests/test-getopt.c (main): Likewise.
12552         * tests/test-i-ring.c (main): Likewise.
12553         * tests/test-inttypes.c (main): Likewise.
12554         * tests/test-link.c (main): Likewise.
12555         * tests/test-lstat.c (main): Likewise.
12556         * tests/test-math.c (main): Likewise.
12557         * tests/test-md5.c (main): Likewise.
12558         * tests/test-memchr2.c (main): Likewise.
12559         * tests/test-memrchr.c (main): Likewise.
12560         * tests/test-mkdir.c (main): Likewise.
12561         * tests/test-mkdirat.c (main): Likewise.
12562         * tests/test-mkfifoat.c (main): Likewise.
12563         * tests/test-open.c (main): Likewise.
12564         * tests/test-openat-safer.c (main): Likewise.
12565         * tests/test-openat.c (main): Likewise.
12566         * tests/test-quotearg.c (main): Likewise.
12567         * tests/test-rawmemchr.c (main): Likewise.
12568         * tests/test-readlink.c (main): Likewise.
12569         * tests/test-remove.c (main): Likewise.
12570         * tests/test-rename.c (main): Likewise.
12571         * tests/test-renameat.c (main): Likewise.
12572         * tests/test-rmdir.c (main): Likewise.
12573         * tests/test-sha1.c (main): Likewise.
12574         * tests/test-signal.c (main): Likewise.
12575         * tests/test-sigaction.c (main): Likewise.
12576         * tests/test-stat.c (main): Likewise.
12577         * tests/test-stat-time.c (main): Likewise.
12578         * tests/test-stddef.c (main): Likewise.
12579         * tests/test-stdint.c (main): Likewise.
12580         * tests/test-stdio.c (main): Likewise.
12581         * tests/test-stdlib.c (main): Likewise.
12582         * tests/test-strchrnul.c (main): Likewise.
12583         * tests/test-strerror.c (main): Likewise.
12584         * tests/test-string.c (main): Likewise.
12585         * tests/test-strtod.c (main): Likewise.
12586         * tests/test-strverscmp.c (main): Likewise.
12587         * tests/test-symlink.c (main): Likewise.
12588         * tests/test-symlinkat.c (main): Likewise.
12589         * tests/test-sys_stat.c (main): Likewise.
12590         * tests/test-sys_time.c (main): Likewise.
12591         * tests/test-time.c (main): Likewise.
12592         * tests/test-unistd.c (main): Likewise.
12593         * tests/test-unlink.c (main): Likewise.
12594         * tests/test-unlinkat.c (main): Likewise.
12595         * tests/test-utimens.c (main): Likewise.
12596         * tests/test-utimensat.c (main): Likewise.
12597         * tests/test-version-etc.c (main): Likewise.
12598         * tests/test-wchar.c (main): Likewise.
12599         * tests/test-wctype.c (main): Likewise.
12600         * tests/test-xprintf-posix.c (main): Likewise.
12601         * tests/test-posixtm.c (main): Likewise.
12602         (STREQ): Delete unused macro.
12603         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
12604         shadowed variables.
12605         * tests/test-memchr.c (main): Likewise.
12606
12607 2009-10-21  Eric Blake  <ebb9@byu.net>
12608
12609         areadlinkat: avoid failure on older glibc
12610         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
12611         rather than mis-comparing 0 against FUNC_RESULT of char*.
12612
12613 2009-10-21  Bruno Haible  <bruno@clisp.org>
12614
12615         * modules/stpncpy (License): Relicense under LGPLv2+.
12616         Reported by David Lutterkort <lutter@redhat.com>.
12617
12618 2009-10-20  Eric Blake  <ebb9@byu.net>
12619
12620         utimensat: work around Solaris 9 bug
12621         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
12622         has trailing slash bugs.
12623         * tests/test-lutimens.h (test_lutimens): Enhance test.
12624         * tests/test-utimens.h (test_utimens): Likewise.
12625         * doc/posix-functions/utime.texi (utime): Enhance documentation.
12626         * doc/posix-functions/utimes.texi (utimes): Likewise.
12627         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
12628         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
12629         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
12630         * doc/posix-functions/futimens.texi (futimens): Likewise.
12631
12632         fdutimensat: new module
12633         * modules/fdutimensat: New file.
12634         * lib/fdutimensat.c (fdutimensat): Likewise.
12635         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
12636         * MODULES.html.sh (File system functions): Mention module.
12637         * modules/fdutimensat-tests: New test.
12638         * tests/test-fdutimensat.c: Likewise.
12639
12640         doc: regenerate INSTALL
12641         * doc/INSTALL: Reflect recent autoconf update.
12642         * doc/INSTALL.ISO: Likewise.
12643         * doc/INSTALL.UTF-8: Likewise.
12644
12645 2009-10-20  Pádraig Brady  <P@draigBrady.com>
12646
12647         acl: warn if ACL support is not detected
12648         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
12649
12650 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
12651
12652         * lib/nproc.h: Add extern "C" block for C++.
12653
12654 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
12655             Bruno Haible  <bruno@clisp.org>
12656
12657         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
12658         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
12659         * doc/posix-functions/isalpha.texi: Likewise.
12660         * doc/posix-functions/isblank.texi: Likewise.
12661         * doc/posix-functions/iscntrl.texi: Likewise.
12662         * doc/posix-functions/isdigit.texi: Likewise.
12663         * doc/posix-functions/isgraph.texi: Likewise.
12664         * doc/posix-functions/islower.texi: Likewise.
12665         * doc/posix-functions/isprint.texi: Likewise.
12666         * doc/posix-functions/ispunct.texi: Likewise.
12667         * doc/posix-functions/isspace.texi: Likewise.
12668         * doc/posix-functions/isupper.texi: Likewise.
12669         * doc/posix-functions/isxdigit.texi: Likewise.
12670
12671 2009-10-18  Bruno Haible  <bruno@clisp.org>
12672
12673         Tests for module 'isblank'.
12674         * modules/isblank-tests: New file.
12675         * tests/test-isblank.c: New file.
12676
12677         New module 'isblank'.
12678         * lib/isblank.c: New file.
12679         * m4/isblank.m4: New file.
12680         * modules/isblank: New file.
12681         * doc/posix-functions/isblank.texi: Mention the new module.
12682
12683 2009-10-18  Bruno Haible  <bruno@clisp.org>
12684
12685         New module 'ctype'.
12686         * lib/ctype.in.h: New file.
12687         * m4/ctype.m4: New file.
12688         * modules/ctype: New file.
12689         * doc/posix-headers/ctype.texi: Mention the new module.
12690
12691 2009-10-18  Jim Meyering  <meyering@redhat.com>
12692
12693         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
12694         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
12695         right after its initialization, rather than farther down.
12696         Keeping these in close proximity makes it easier to ensure
12697         that each such variable is initialized.  E.g.,
12698
12699             LIB_CLOCK_GETTIME=
12700             AC_SUBST([LIB_CLOCK_GETTIME])
12701
12702         This change also increments these serial numbers.
12703         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
12704         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
12705         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
12706
12707 2009-10-18  Bruno Haible  <bruno@clisp.org>
12708
12709         Don't let environment variables perturb build.
12710         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
12711         (gl_PREREQ_GETHRXTIME): ... not here.
12712
12713 2009-10-18  Bruno Haible  <bruno@clisp.org>
12714
12715         Avoid symlink attack in localcharset module.
12716         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
12717         (O_NOFOLLOW): Define fallback.
12718         (get_charset_aliases): Don't open the file if it is a symbolic link.
12719         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
12720         gl_FCNTL_H.
12721         (gl_FCNTL_H): Require it.
12722         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
12723         * modules/localcharset (Files): Add m4/fcntl_h.m4.
12724         Reported by Fergal Glynn <fglynn@veracode.com>.
12725
12726 2009-10-18  Bruno Haible  <bruno@clisp.org>
12727
12728         Implement nproc for mingw.
12729         * lib/nproc.c: Include <windows.h>
12730         (num_processors): On native Windows platforms, try GetSystemInfo.
12731
12732 2009-10-18  Bruno Haible  <bruno@clisp.org>
12733
12734         Implement nproc for IRIX.
12735         * lib/nproc.c: Include <sys/sysmp.h>.
12736         (num_processors): On IRIX systems, try sysmp.
12737         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
12738
12739 2009-10-18  Bruno Haible  <bruno@clisp.org>
12740
12741         Implement nproc for HP-UX.
12742         * lib/nproc.c: Include <sys/pstat.h>
12743         (num_processors): On HP-UX systems, try pstat_getdynamic.
12744         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
12745         pstat_getdynamic.
12746
12747 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
12748             Bruno Haible  <bruno@clisp.org>
12749
12750         Implement nproc for NetBSD, OpenBSD.
12751         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
12752         (ARRAY_SIZE): New macro.
12753         (num_processors): On BSD systems, try sysctl of HW_NCPU.
12754         * m4/nproc.m4: New file.
12755         * modules/nproc (Files): Add m4/nproc.m4.
12756         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
12757         (Makefile.am): Instead, augment lib_SOURCES.
12758
12759 2009-10-18  Bruno Haible  <bruno@clisp.org>
12760
12761         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
12762         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
12763         sys/param.h.
12764
12765 2009-10-16  Eric Blake  <ebb9@byu.net>
12766
12767         utimensat: new module
12768         * modules/utimensat: New file.
12769         * lib/utimensat.c (utimensat): Likewise.
12770         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
12771         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
12772         so we can work around Linux bugs.
12773         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
12774         * modules/sys_stat (Makefile.am): Substitute them.
12775         * lib/sys_stat.in.h (utimensat): Declare it.
12776         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
12777         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
12778         * modules/utimensat-tests: New test.
12779         * tests/test-utimensat.c: Likewise.
12780
12781         utimens: let lutimens work on non-symlinks
12782         * lib/utimens.c (lutimens): Fall back to utimens rather than
12783         failing with ENOSYS, when file is not a symlink.
12784         (utimens): Reduce redirection.
12785         * tests/test-lutimens.h (test_lutimens): Update test to cover
12786         non-symlinks.
12787         * tests/test-utimens.h (test_utimens): Update test to cover
12788         symlinks.
12789         * tests/test-utimens.c (main): Update caller.
12790
12791         utimens: cache whether utimensat syscall works
12792         * lib/utimens.c (utimensat_works_really): New cache variable.
12793         (fdutimens, lutimens): Use it to avoid failing syscall.
12794
12795         test-stat-time, test-utimens: improve portability
12796         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
12797         ext4 on alpha, and for cygwin.
12798         * tests/test-utimens-common.h: New file.
12799         (nap): Factor delays into single function.
12800         * tests/test-lutimens.h (test_lutimens): Use new header.
12801         * tests/test-futimens.h (test_futimens): Likewise.
12802         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
12803         timestamps to occur from same machine, as was done previously for
12804         test_utimens.
12805         * modules/utimens-tests (Files): Ship new file.
12806         * modules/futimens-tests (Files): Likewise.
12807         Reported in part by Jim Meyering.
12808
12809         sys_stat: sort replacement declarations
12810         * lib/sys_stat.in.h: Sort declarations.
12811         * lib/futimens.c (futimens): Fix typo.
12812
12813 2009-10-15  Jim Meyering  <meyering@redhat.com>
12814
12815         don't let environment settings perturb build
12816         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
12817         could cause a configure-time and/or build-time malfunction.
12818         Typically, a configure-time function-in-library test is performed
12819         via code like this:
12820
12821           LIB_VAR=
12822           AC_SUBST([LIB_VAR])
12823           prefix_saved_LIBS=$LIBS
12824             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
12825                        [test "$ac_cv_search_FUNC" = "none required" ||
12826                         LIB_VAR=$ac_cv_search_FUNC])
12827           LIBS=$prefix_saved_LIBS
12828
12829         However, in each of the files affected by this change, the LIB_VAR=
12830         initialization was omitted.  Thus, when set in the environment, its
12831         value would propagate into generated Makefiles when FUNC is not found
12832         in LIB_NAME.
12833         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
12834         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
12835         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
12836
12837 2009-10-14  Eric Blake  <ebb9@byu.net>
12838
12839         fchdir: avoid infinite recursion in mingw
12840         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
12841         recursing.
12842
12843         test-stat-time: port to mingw
12844         * tests/test-stat-time.c (force_unlink): Return a value.
12845         (test_ctime) [W32]: Fix compilation error.
12846         (nap): Don't call usleep with too large an argument.  Use
12847         force_unlink.
12848         * doc/pastposix-functions/usleep.texi (usleep): Document the
12849         portability issue.
12850
12851 2009-10-13  Jim Meyering  <meyering@redhat.com>
12852
12853         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
12854         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
12855         * modules/pipe-filter-ii: Likewise.
12856         * modules/sys_socket-tests: Likewise.
12857         * modules/tsearch-tests: Likewise.
12858         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
12859         (check): Depend on it.
12860
12861 2009-10-12  Eric Blake  <ebb9@byu.net>
12862
12863         utimens-tests: port to NFS file systems
12864         * tests/test-utimens.h (test_utimens): Refactor utimecmp
12865         comparisons to avoid spurious failures from timestamp drift
12866         between NFS machines.
12867
12868 2009-10-12  Eric Blake  <ebb9@byu.net>
12869
12870         stat-time-tests: minor cleanups
12871         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
12872         * tests/test-stat-time.c (nap): Separate assignment from call.
12873         Suggested by Paolo Bonzini and Bruno Haible.
12874
12875         sys_stat: guarantee struct timespec
12876         * lib/sys_stat.in.h (includes): Always include <time.h>
12877         * modules/sys_stat (Depends-on): Add time.
12878         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
12879         mode_t permission values.
12880         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
12881         get at subsecond timestamps.
12882
12883 2009-10-10  Eric Blake  <ebb9@byu.net>
12884
12885         futimens: new module
12886         * modules/futimens: New file.
12887         * lib/futimens.c (futimens): Likewise.
12888         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
12889         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
12890         we can work around Linux bugs.
12891         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
12892         * modules/sys_stat (Makefile.am): Substitute them.
12893         * lib/sys_stat.in.h (futimens): Declare it.
12894         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
12895         * doc/posix-functions/futimens.texi (futimens): Likewise.
12896         * modules/futimens-tests: New test.
12897         * tests/test-futimens.c: Likewise.
12898
12899         utimens: introduce fdutimens
12900         * lib/utimens.h (fdutimens): New prototype.
12901         * lib/utimens.c (gl_futimens): Move guts...
12902         (fdutimens): ...to new interface.
12903         * tests/test-utimens.c (do_fdutimens): Use it.
12904
12905         utimens: add UTIME_NOW and UTIME_OMIT support
12906         * lib/utimens.c (validate_timespec, update_timespec): New helper
12907         functions.
12908         (gl_futimens, lutimens): Use them.
12909         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
12910         stdbool, sys_stat.
12911         (Link): Mention resulting library dependency.
12912         * modules/utimecmp (Link): Likewise.
12913         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
12914         (Makefile.am): Pick up library dependency.
12915         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
12916         definition.
12917         * tests/test-sys_stat.c: Test the definitions.
12918         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
12919         * NEWS: Document library dependency.
12920
12921         utimecmp: support symlink timestamps
12922         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
12923         hashing when possible.  Use pathconf when available.
12924         (SYSCALL_RESOLUTION): Recognize tighter resolution.
12925         * modules/utimecmp (Depends-on): Add lstat.
12926
12927         utimens: add lutimens interface
12928         * lib/utimens.c (lutimens): New function.
12929         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
12930         * lib/utimens.h (lutimens): Declare new interface.
12931         * tests/test-utimens.c (main): Enhance test.
12932         * tests/test-lutimens.h (test_lutimens): New file.
12933         * modules/utimens-tests (Files): Distribute it.
12934         (Depends-on): Add symlink.
12935         (configure.ac): Check for usleep.
12936
12937         utimens: validate futimens usage
12938         * lib/utimens.c (gl_futimens): Require valid fd up front, using
12939         fewer syscalls on failure later on.  Avoid compiler warning on
12940         mingw.
12941         * modules/utimens (Depends-on): Add dup2.
12942
12943         utimens: add test
12944         * modules/utimens-tests: New test.
12945         * tests/test-utimens.h: New file.
12946         * tests/test-futimens.h: Likewise.
12947         * tests/test-utimens.c: Likewise.
12948
12949         doc: mention timestamp portability issues
12950         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
12951         instead.
12952         * doc/posix-functions/utime.texi (utime): Likewise.
12953         * doc/posix-functions/utimes.texi (utimes): Likewise.
12954         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
12955         instead.
12956         * doc/posix-functions/futimens.texi (futimens): Mention utimens
12957         module.
12958         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
12959         Mention weakness with symlink timestamps.
12960         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
12961         to utimensat/futimens instead.
12962         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
12963
12964         test-dup2: enhance test
12965         * tests/test-dup2.c (main): Also check AT_FDCWD.
12966
12967         test-stat-time: avoid more spurious failures
12968         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
12969         xfs; and avoid race if the two timestamps cross quantization edge.
12970
12971         relocatable: prefer 'file system' over 'filesystem'
12972         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
12973         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
12974         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
12975         * doc/relocatable.texi (Enabling Relocatability): Likewise.
12976         * lib/relocatable.c (compute_curr_prefix): Likewise.
12977
12978 2009-10-10  Jim Meyering  <meyering@redhat.com>
12979
12980         stat-time-tests: check for the usleep function
12981         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
12982
12983 2009-10-10  Bruno Haible  <bruno@clisp.org>
12984
12985         * modules/xnanosleep: Put the Link section after the Include section.
12986
12987 2009-10-09  Eric Blake  <ebb9@byu.net>
12988
12989         dup2: work around FreeBSD 6.1 bug
12990         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
12991         * doc/posix-functions/dup2.texi (dup2): Document it.
12992         Reported by Nelson H. F. Beebe and Jim Meyering.
12993
12994         test-stat-time: port to buggy NFS clients
12995         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
12996         (test_ctime): Also skip test if mtime and ctime are skewed.
12997
12998         maint: prefer 'file system' over 'filesystem'
12999         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
13000         * doc/posix-functions/lstat.texi (lstat): Likewise.
13001         * lib/file-has-acl.c (file_has_acl): Likewise.
13002         * lib/fwriteerror.c [TEST]: Likewise.
13003         * tests/test-areadlink.h (test_areadlink): Likewise.
13004         * tests/test-areadlinkat-with-size.c (main): Likewise.
13005         * tests/test-areadlinkat.c (main): Likewise.
13006         * tests/test-canonicalize-lgpl.c (main): Likewise.
13007         * tests/test-canonicalize.c (main): Likewise.
13008         * tests/test-fstatat.c (main): Likewise.
13009         * tests/test-linkat.c (main): Likewise.
13010         * tests/test-lstat.h (test_lstat_func): Likewise.
13011         * tests/test-mkdir.h (test_mkdir): Likewise.
13012         * tests/test-readlink.h (test_readlink): Likewise.
13013         * tests/test-remove.c (main): Likewise.
13014         * tests/test-rename.h (test_rename): Likewise.
13015         * tests/test-renameat.c (main): Likewise.
13016         * tests/test-rmdir.h (test_rmdir_func): Likewise.
13017         * tests/test-symlink.h (test_symlink): Likewise.
13018         * tests/test-symlinkat.c (main): Likewise.
13019         * tests/test-unlink.h (test_unlink_func): Likewise.
13020         * tests/test-unlinkat.c (main): Likewise.
13021
13022         maint: make realtime library usage explicit
13023         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
13024         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
13025         * modules/settime (Link): Likewise.
13026         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
13027
13028         test-stat-time: speed up execution
13029         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
13030         warning on mingw.
13031         (nap): New helper function.
13032         (prepare_test): Use it to reduce sleep time.
13033         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
13034         execution.
13035         * modules/stat-time-tests (configure.ac): Check for usleep.
13036
13037 2009-10-09  Jim Meyering  <meyering@redhat.com>
13038
13039         selinux-h: always use getfilecon wrappers
13040         * lib/getfilecon.c: New file.
13041         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
13042         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
13043         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
13044         (fgetfilecon): Provide a stub.
13045         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
13046         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
13047         file unconditionally.
13048         When <selinux/selinux.h> is found, arrange to use wrappers.
13049         * modules/selinux-h (Files): Add getfilecon.c.
13050         (Makefile.am): Substitute include-next-related bits
13051         into the now-always-generated selinux/selinux.h file.
13052         * doc/glibc-functions/lgetfilecon.texi: New file.
13053         * doc/glibc-functions/fgetfilecon.texi: New file.
13054         * doc/glibc-functions/getfilecon.texi: New file.
13055         * doc/glibc-functions/getfilecon-desc.texi: New file.
13056         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
13057         which to pull in the new files.
13058         * MODULES.html.sh (Misc): Add selinux-h.
13059
13060 2009-10-08  Jim Meyering  <meyering@redhat.com>
13061
13062         unistd: fix comment typo
13063         * lib/unistd.in.h (euidaccess): Fix a comment typo.
13064
13065 2009-10-08  Eric Blake  <ebb9@byu.net>
13066
13067         areadlink: use SIZE_MAX consistently
13068         * modules/areadlink (Depends-on): Add stdint.
13069         * modules/areadlink-with-size (Depends-on): Likewise.
13070         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
13071         gives NULL; drop sys/types, since unistd gives size_t; and add
13072         stdint for SIZE_MAX.
13073         (SIZE_MAX): Rely on headers.
13074         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
13075         and add stdint.
13076         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
13077         (SIZE_MAX): Likewise.
13078         (INITIAL_BUF_SIZE): Turn into enum.
13079         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
13080
13081 2009-10-08  Jim Meyering  <meyering@redhat.com>
13082
13083         areadlinkat: avoid compilation failure
13084         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
13085         Fix typo in comment.
13086
13087 2009-10-07  Eric Blake  <ebb9@byu.net>
13088
13089         areadlinkat-with-size: new module
13090         * modules/areadlinkat-with-size: New module.
13091         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
13092         * lib/areadlink.h (areadlinkat): Declare it.
13093         * MODULES.html.sh (File system functions): Mention it.
13094         * modules/areadlinkat-with-size-tests: New test.
13095         * tests/test-areadlinkat-with-size.c: New file.
13096
13097         xreadlinkat: new module
13098         * modules/xreadlinkat: New module.
13099         * lib/xreadlinkat.c (xreadlinkat): New file.
13100         * lib/xreadlink.h (xreadlinkat): Declare it.
13101         * MODULES.html.sh (File system functions): Mention it.
13102
13103         areadlinkat: new module
13104         * lib/at-func.c (FUNC_FAIL): New define.
13105         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
13106         * modules/areadlinkat: New module.
13107         * lib/linkat.c (areadlinkat): Move...
13108         * lib/areadlinkat.c (areadlinkat): ...to new file.
13109         * lib/areadlink.h (areadlinkat): Declare it.
13110         * modules/linkat (Depends-on): Add areadlinkat.
13111         * MODULES.html.sh (File system functions): Mention it.
13112         * modules/areadlinkat-tests: New test.
13113         * tests/test-areadlinkat.c: New file.
13114
13115         areadlink, areadlink-with-size: add tests
13116         * modules/areadlink-tests: New test.
13117         * modules/areadlink-with-size-tests: Likewise.
13118         * tests/test-areadlink.h: New file.
13119         * tests/test-areadlink.c: Likewise.
13120         * tests/test-areadlink-with-size.c: Likewise.
13121
13122         maint: minor cleanups
13123         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
13124         _UNUSED_PARAMETER_ instead.
13125         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
13126         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
13127         * modules/linkat-tests (Files): Distribute test-link.h.
13128
13129         openat, utimens: whitespace cleanup
13130         * lib/openat.c: Prefer space throughout, rather than mix of 8
13131         spaces vs. tabs.
13132         * lib/at-func.c: Likewise.
13133         * lib/utimens.c: Likewise.
13134
13135         openat: avoid using wrong fd
13136         * lib/openat.c (openat_permissive): Reject user's fd if saving the
13137         working directory chooses same fd.
13138         * lib/at-func.c (AT_FUNC_NAME): Likewise.
13139
13140         mkdir, mkdirat: fix cygwin 1.5.x bug
13141         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
13142         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
13143         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
13144         bug.
13145         (gl_PREREQ_MKDIR): Delete unused macro.
13146         * modules/mkdir (Files): Track file rename.
13147         (configure.ac): Update macro name.
13148         * modules/openat (Depends-on): Add mkdir.
13149         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
13150
13151         mkdir, mkdirat: add tests
13152         * modules/mkdir-tests: New test.
13153         * tests/test-mkdir.h: New file.
13154         * tests/test-mkdir.c: Likewise.
13155         * tests/test-mkdirat.c: Likewise.
13156         * modules/openat-tests (Files): Add new files.
13157         (Makefile.am): Run new test.
13158
13159 2009-10-06  Eric Blake  <ebb9@byu.net>
13160
13161         doc: tweak *at function documentation
13162         * doc/posix-functions/faccessat.texi (faccessat): Mention
13163         known issue with replacement.
13164         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
13165         * doc/posix-functions/linkat.texi (linkat): Likewise.
13166         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
13167         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
13168         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
13169         * doc/posix-functions/renameat.texi (renameat): Likewise.
13170         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
13171
13172         openat: fix GNU/Hurd bug in unlinkat
13173         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
13174         broken.
13175         * doc/posix-functions/unlink.texi (unlink): Document this.
13176         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
13177
13178         fdopendir: fix GNU/Hurd bug
13179         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
13180         allowing non-directory fds.
13181         * lib/fdopendir.c (rpl_fdopendir): Work around it.
13182         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
13183         * modules/dirent (Makefile.am): Substitute it.
13184         * lib/dirent.in.h (fdopendir): Declare replacement.
13185         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
13186         * tests/test-fdopendir.c (main): Test something other than
13187         /dev/null, since on Hurd that behaves like a directory.
13188
13189         test-symlink: port to GNU/Hurd
13190         * tests/test-symlink.h (test_symlink): Relax expected errno.
13191
13192         doc: tweak more cygwin information
13193         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
13194         now compatible with glibc.
13195         * doc/posix-functions/getopt.texi (getopt): Likewise.
13196
13197         getopt-gnu: add another test
13198         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
13199         guarantee behavior relied on by m4.
13200         * tests/test-getopt.c (main): Use it.
13201         * modules/getopt-posix-tests (Depends-on): Add setenv.
13202         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
13203
13204         getopt: fix compilation on darwin
13205         * lib/getopt.in.h (includes): Leave breadcrumbs during system
13206         include.
13207         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
13208         Reported by Ludovic Courtès.
13209
13210 2009-10-06  Bruno Haible  <bruno@clisp.org>
13211
13212         * modules/size_max (Description): Discourage its use.
13213         Reported by Simon Josefsson.
13214
13215 2009-10-06  Jim Meyering  <meyering@redhat.com>
13216
13217         linkat: avoid compilation failure
13218         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
13219
13220 2009-10-05  Eric Blake  <ebb9@byu.net>
13221
13222         linkat: support Linux 2.6.17
13223         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
13224         linkat on Linux, but allow cache variable override.
13225         * lib/linkat.c (rpl_linkat): Define override.
13226         * modules/linkat (Depends-on): Add symlinkat.
13227         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
13228         * modules/unistd (Makefile.am): Substitute it.
13229         * lib/unistd.in.h (linkat): Declare replacement.
13230         Reported by Pádraig Brady.
13231
13232         quotearg: port test to systems with C.UTF-8 locale
13233         * tests/test-quotearg.c (struct result_strings): Add another
13234         member, differentiating between C.ASCII and C.UTF-8 handling.
13235         (compare_strings): Add parameter.
13236         (main): Adjust all callers.
13237
13238         getopt: avoid clash with FreeBSD _getopt_internal
13239         * lib/getopt.in.h (_getopt_internal): Override the name.
13240         * lib/getopt_int.h (includes): Pick up any overrides.
13241         Reported by Reuben Thomas.
13242
13243         hash: allow C89 compilation
13244         * lib/hash.c (check_tuning): Move declaration before statement.
13245         Reported by Reuben Thomas.
13246
13247 2009-10-05  Karl Berry  <karl@gnu.org>
13248
13249         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
13250
13251 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
13252             Bruno Haible  <bruno@clisp.org>
13253
13254         * lib/uname.c (uname): Use a table-driven algorithm to compute
13255         Windows NT versions.
13256
13257 2009-10-04  Bruno Haible  <bruno@clisp.org>
13258
13259         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
13260         program_invocation_short_name.
13261         * modules/progname (configure.ac): Test for presence of
13262         program_invocation_short_name.
13263         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
13264
13265 2009-10-04  Bruno Haible  <bruno@clisp.org>
13266
13267         * lib/progname.c (set_program_name): Fix comment.
13268         Reported by Jim Meyering.
13269
13270 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
13271             Bruno Haible  <bruno@clisp.org>
13272
13273         * lib/uname.c: Include <string.h>.
13274         (uname): Do only one call to GetVersionEx in the common case.
13275
13276 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
13277             Bruno Haible  <bruno@clisp.org>
13278
13279         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
13280         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
13281         (uname): Add support for Windows CE and various non-x86 CPU types.
13282
13283 2009-10-03  Bruno Haible  <bruno@clisp.org>
13284
13285         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
13286         invocation to tests/configure.ac.
13287         Reported by Ian Beckwith <ianb@erislabs.net>.
13288
13289 2009-10-02  Eric Blake  <ebb9@byu.net>
13290
13291         fchdir: avoid compiler warning
13292         * lib/fchdir.c (canonicalize_file_name)
13293         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
13294
13295         test-open: support mingw errno values
13296         * tests/test-open.h (test_open): Relax test.
13297         * tests/test-fopen.h (test_fopen): Likewise.
13298         * tests/test-openat-safer.c (main): Likewise.
13299
13300         open: fix opening directory on mingw
13301         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
13302
13303         test-open: on GNU/Hurd, /dev/null is a directory
13304         * tests/test-fopen.h (main): Rename...
13305         (test_fopen): ...to this.  Use a guaranteed non-directory when
13306         confirming open behavior on trailing slash.
13307         * tests/test-openat-safer.c (main): Likewise.
13308         * tests/test-open.h (main): Likewise....
13309         (test_open): ...to this.
13310         * tests/test-fopen.c (main): Adjust caller.
13311         * tests/test-fopen-safer.c (main): Likewise.
13312         * tests/test-open.c (main): Likewise.
13313         * tests/test-fcntl-safer.c (main): Likewise.
13314         Reported by Samuel Thibault.
13315
13316         rename, fchdir: don't ignore chdir failure
13317         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
13318         * lib/rename.c (rpl_rename) [W32]: Likewise.
13319         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
13320         an empty destination directory if source cannot be renamed,
13321         although there is still possibility for failure.
13322         * doc/posix-functions/rename.texi (rename): Document the race.
13323         Reported by Jim Meyering.
13324
13325         maint: cleanup whitespace in recent commits
13326         * lib/rename.c (rpl_rename): Remove tabs.
13327         * tests/test-link.h (test_link): Likewise.
13328         * lib/fchdir.c (get_name): Likewise.
13329         Reported by Jim Meyering.
13330
13331 2009-10-02  Ben Pfaff  <blp@gnu.org>
13332
13333         relocatable-prog-wrapper: Add missing dependency on
13334         double-slash-root.
13335         * modules/relocatable-prog-wrapper: Add dependency.
13336         Reported by Ian Beckwith <ianb@erislabs.net>.
13337
13338 2009-10-02  Eric Blake  <ebb9@byu.net>
13339
13340         renameat: fix Solaris bugs
13341         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
13342         needed fixing.
13343         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
13344         * modules/stdio (Makefile.am): Substitute it.
13345         * lib/stdio.in.h (renameat): Declare replacement.
13346         * lib/renameat.c (rpl_renameat): Implement fix.
13347
13348         renameat: new module
13349         * modules/renameat: New file.
13350         * lib/renameat.c (renameat): Likewise.
13351         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
13352         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
13353         * modules/stdio (Makefile.am): Substitute them.
13354         * lib/stdio.in.h (renameat): Declare it.
13355         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
13356         * doc/posix-functions/renameat.texi (renameat): Likewise.
13357         * modules/renameat-tests: New test.
13358         * tests/test-renameat.c: Likewise.
13359
13360         rename: fix mingw bugs
13361         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
13362         directory overwrite bugs.
13363
13364         rename: fix another cygwin 1.5 bug
13365         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
13366         checks.
13367         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
13368         unnecessary cygwin workarounds.  Also work around bug with moving
13369         full directory onto an empty one.
13370         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
13371
13372         rename-dest-slash: merge into rename module
13373         * modules/rename-dest-slash (Status): Mark obsolete.
13374         (Depends-on): Add rename.
13375         (Files): Let rename do it all.
13376         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
13377         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
13378         * m4/rename-dest-slash.m4: ...so this file can be deleted.
13379         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
13380         * lib/rename.c (rpl_rename): Update comments.
13381
13382         rename: fix cygwin 1.5.x bugs
13383         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
13384         * lib/rename.c (rpl_rename): Work around them.
13385         * modules/rename (Depends-on): Add same-inode.
13386
13387         rename: fix Solaris 10 bug
13388         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
13389         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
13390         was the only bug.
13391
13392         rename: fix Solaris 9 bug
13393         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
13394         on non-directory.  Avoid calling exit.
13395         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
13396         strdup.
13397         * modules/rename-tests (Depends-on): Drop lstat.
13398         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
13399         (gl_PREREQ_RENAME): Delete unused macro.
13400
13401         rename-dest-slash: fix NetBSD bug
13402         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
13403         links.
13404         * modules/rename-dest-slash (Depends-on): Add same-inode.
13405
13406         rename-tests: new test, exposes several platform bugs
13407         * modules/rename-tests: New file.
13408         * tests/test-rename.h: Likewise.
13409         * tests/test-rename.c: Likewise.
13410         * doc/posix-functions/rename.texi (rename): Improve documentation,
13411         including bugs that will eventually be fixed in gnulib.
13412
13413 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
13414
13415         * lib/uname.c: Include <stdlib.h>
13416         (uname): Assume version info is available.
13417
13418 2009-10-02  Jim Meyering  <meyering@redhat.com>
13419
13420         gnu-web-doc-update: correct --help output
13421         * build-aux/gnu-web-doc-update: Make --help output relevant.
13422
13423         gnu-web-doc-update: add standard options
13424         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
13425
13426         gnu-web-doc-update: New module.
13427         Use this script to automatically update the on-line web documentation
13428         for your GNU project at http://www.gnu.org/software/$pkg/manual/
13429         * modules/gnu-web-doc-update: New file, from coreutils.
13430         * build-aux/gnu-web-doc-update: New script.
13431
13432 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
13433
13434         link: LoadLibrary is not needed.
13435         * lib/link.c: Use GetModuleHandle.
13436
13437 2009-10-01  Eric Blake  <ebb9@byu.net>
13438
13439         getopt: bump serial number
13440         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
13441         change.
13442
13443         tests: tighten link, rmdir, and remove tests
13444         * tests/test-link.h (includes): No need to use <config.h> here.
13445         Clean up if directory hard link was created, otherwise test for
13446         trailing '.'.
13447         * tests/test-linkat.c (main): Simplify.
13448         * tests/test-remove.c (main): Enhance test for trailing '.'.
13449         * tests/test-rmdir.h (test_rmdir_func): Likewise.
13450
13451 2009-10-01  Jim Meyering  <meyering@redhat.com>
13452
13453         maint.mk: requiring "make major" was annoying, for a "minor" release.
13454         What is intended is "stable", to contrast with alpha and beta,
13455         so require "make stable", not "make major".
13456         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
13457         (get_tool_versions): Likewise.
13458         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
13459
13460 2009-09-30  Ben Pfaff  <blp@gnu.org>
13461
13462         Fix broken build of replacement for Windows tmpfile().
13463         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
13464         flags argument added along with the 'mkostemp' module.
13465
13466 2009-09-28  Bruno Haible  <bruno@clisp.org>
13467
13468         Avoid identifier clash with POSIX function 'remove' defined as a macro.
13469         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
13470         to 'remove_elt'.
13471         (gl_list_remove): Update.
13472         * lib/gl_list.c (gl_list_remove): Update.
13473         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
13474         to 'remove_elt'.
13475         (gl_oset_remove): Update.
13476         * lib/gl_list.c (gl_oset_remove): Update.
13477         Reported by Eric Blake.
13478
13479 2009-09-28  Eric Blake  <ebb9@byu.net>
13480
13481         doc: mention yet more cygwin 1.7 status
13482         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
13483         cygwin.
13484         * doc/glibc-functions/execvpe.texi (execvpe): New file.
13485         * doc/gnulib.texi (Glibc unistd.h): Mention it.
13486
13487         argp: fix test failure
13488         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
13489         that are not upper-case.  Pass correct range to tolower.
13490
13491 2009-09-27  Jim Meyering  <meyering@redhat.com>
13492
13493         test-yesno: work around sparc-dash here-document infelicity
13494         Without this change, the literal \177 byte in a here document
13495         would make dash 0.5.5.1-3 access uninitialized memory.
13496         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
13497         Instead, use a marker, "@", and filter through tr to create the desired
13498         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
13499
13500 2009-09-27  Bruno Haible  <bruno@clisp.org>
13501
13502         Disable untested support for new flavours of ACLs on AIX.
13503         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
13504         progress.
13505         * lib/set-mode-acl.c (qset_acl): Likewise.
13506
13507 2008-12-07  Bruno Haible  <bruno@clisp.org>
13508
13509         Add support for new flavours of ACLs on AIX. (Untested.)
13510         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
13511         (file_has_acl): Add support for newer AIX.
13512         * lib/set-mode-acl.c (qset_acl): Likewise.
13513         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
13514         Rainer Tammer <tammer@tammer.net>.
13515
13516 2009-09-26  Eric Blake  <ebb9@byu.net>
13517
13518         argp: fix compilation of getopt
13519         * lib/getopt.in.h (includes): Use different guard than glibc.
13520         Reported by Sergey Poznyakoff.
13521
13522         doc: mention more cygwin 1.7 status
13523         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
13524         bug.
13525         * doc/posix-functions/execl.texi (execl): Likewise.
13526         * doc/posix-functions/execle.texi (execle): Likewise.
13527         * doc/posix-functions/execlp.texi (execlp): Likewise.
13528         * doc/posix-functions/execv.texi (execv): Likewise.
13529         * doc/posix-functions/execve.texi (execve): Likewise.
13530         * doc/posix-functions/execvp.texi (execvp): Likewise.
13531         * doc/glibc-functions/canonicalize_file_name.texi
13532         (canonicalize_file_name): Cygwin 1.7 now provides this.
13533         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
13534         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
13535         on AT_SYMLINK_NOFOLLOW.
13536
13537 2009-09-24  Eric Blake  <ebb9@byu.net>
13538
13539         test-linkat: make test more robust
13540         * tests/test-linkat.c (main): Avoid collision with EEXIST.
13541
13542         getopt: fix inclusion guards for cygwin
13543         * modules/getopt-posix (Depends-on): Add include-next.
13544         (Makefile.am): Substitute more items in replacement header.
13545         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
13546         <getopt.h>.
13547         * lib/getopt.in.h (includes): Use split inclusion guard, and
13548         prefer <getopt.h> over include <unistd.h> when one is present.
13549         (option): Also override name of 'struct option'.
13550
13551         same-inode: revert prior change; it is not yet ready
13552         * NEWS: Undo mention of this change.
13553         * lib/same-inode.h (same-inode.h): Undo tri-state change.
13554         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
13555         * lib/cycle-check.c (cycle_check): Likewise.
13556         * lib/same.c (same_name): Likewise.
13557         * lib/at-func2.c (at_func2): Likewise.
13558
13559 2009-09-23  Eric Blake  <ebb9@byu.net>
13560
13561         linkat: new module
13562         * modules/linkat: New file.
13563         * lib/at-func2.c (at_func2): Likewise.
13564         * lib/linkat.c (linkat): Likewise.
13565         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
13566         * lib/openat-priv.h (at_func2): Add declaration.
13567         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
13568         * modules/unistd (Makefile.am): Substitute them.
13569         * lib/unistd.in.h (linkat): Declare it.
13570         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
13571         * doc/posix-functions/linkat.texi (linkat): Likewise.
13572         * doc/posix-functions/link.texi (link): Tweak wording.
13573         * tests/test-link.c (main): Move guts...
13574         * tests/test-link.h (test_link): ...into new file.
13575         * modules/linkat-tests: New test.
13576         * tests/test-linkat.c: Likewise.
13577         * modules/link-tests (Files): Ship new file.
13578         (Depends-on): Add stdbool.
13579
13580         dirname: add library-safe mdir_name
13581         * lib/dirname.h (mdir_name): New prototype.
13582         * lib/dirname.c (dir_name): Move guts...
13583         (mdir_name): ...to new function that avoids xalloc_die.
13584
13585         fchdir: another mingw fix
13586         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
13587         * lib/fchdir.c (get_name): New helper method; skips canonicalize
13588         on mingw (where it has not yet been ported), and make it optional
13589         elsewhere.
13590         (_gl_register_fd): Use it.
13591
13592         same-inode: make SAME_INODE tri-state, to port to mingw
13593         * NEWS: Mention this change.
13594         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
13595         st_ino always being 0.
13596         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
13597         * lib/cycle-check.c (cycle_check): Likewise.
13598         * lib/same.c (same_name): Likewise.
13599
13600         lstat: avoid mingw compilation error
13601         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
13602         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
13603         lstat ourselves.
13604         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
13605         was adequate.
13606         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
13607         the checks for lstat.
13608         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
13609
13610         link: fix test failure on Solaris 9
13611         * lib/link.c (rpl_link): Don't assume link will catch bogus
13612         trailing slash on source.
13613
13614         test-symlinkat: enhance test
13615         * tests/test-readlink.c (main): Move guts...
13616         * tests/test-readlink.h (test_readlink): ...into new file.
13617         * tests/test-symlink.c (main): Move guts...
13618         * tests/test-symlink.h (test_symlink): ...into new file.
13619         * tests/test-symlinkat.c (main): Use new files for further
13620         coverage.
13621         (do_symlink, do_readlink): New helper functions.
13622         * modules/symlink-tests (Files): Ship new file.
13623         (Depends-on): Add stdbool.
13624         * modules/readlink-tests (Files): Ship new file.
13625         (Depends-on): Add stdbool.
13626         * modules/symlinkat-tests (Files): Use new files.
13627
13628 2009-09-23  Eric Blake  <ebb9@byu.net>
13629
13630         readlink: document portability issue with symlink length
13631         * doc/posix-functions/lstat.texi (lstat): Mention that some file
13632         systems have bogus st_size on symlinks, and mention the
13633         areadlink-with-size module.
13634         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
13635         * doc/posix-functions/readlink.texi (readlink): Mention the
13636         areadlink module, and ERANGE failure.
13637         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
13638         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
13639
13640         readlink: fix Solaris 9 bug with trailing slash
13641         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
13642         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
13643         * doc/posix-functions/readlink.texi (readlink): Document this.
13644         * modules/readlink-tests: New test.
13645         * tests/test-readlink.c: Likewise.
13646
13647         readlink: fix cygwin 1.5.x bug with return type
13648         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
13649         * lib/unistd.in.h (readlink): Use ssize_t.
13650         * lib/readlink.c (readlink): Likewise.
13651         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
13652         * modules/unistd (Makefile.am): Substitute it.
13653         * lib/unistd.in.h (readlink): Declare replacement.
13654         * doc/posix-functions/readlink.texi (readlink): Document this.
13655
13656         symlink: use throughout gnulib
13657         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
13658         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
13659         symlink is not used.
13660         * modules/symlinkat (Depends-on): Add symlink.
13661         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
13662         * modules/canonicalize-tests (Depends-on): Likewise.
13663         * modules/lstat-tests (Depends-on): Likewise.
13664         * modules/openat-tests (Depends-on): Likewise.
13665         * modules/remove-tests (Depends-on): Likewise.
13666         * modules/rmdir-tests (Depends-on): Likewise.
13667         * modules/unlink-tests (Depends-on): Likewise.
13668         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
13669         * tests/test-canonicalize.c (symlink): Likewise.
13670         * tests/test-fstatat.c (symlink): Likewise.
13671         * tests/test-lstat.c (symlink): Likewise.
13672         * tests/test-remove.c (symlink): Likewise.
13673         * tests/test-rmdir.c (symlink): Likewise.
13674         * tests/test-unlink.c (symlink): Likewise.
13675         * tests/test-unlinkat.c (symlink): Likewise.
13676
13677         symlink: new module, for Solaris 9 bug
13678         * modules/symlink: New file.
13679         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
13680         * lib/symlink.c: Likewise.
13681         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
13682         * modules/unistd (Makefile.am): Substitute them.
13683         * lib/unistd.in.h (symlink): Declare replacement.
13684         * MODULES.html.sh (File system functions): Mention it.
13685         * doc/posix-functions/symlink.texi (symlink): Likewise.
13686         * modules/symlink-tests: New test.
13687         * tests/test-symlink.c: Likewise.
13688
13689 2009-09-23  Bruno Haible  <bruno@clisp.org>
13690
13691         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
13692         when needed.
13693         Test case: gnulib-tool --import --with-tests atexit inttypes.
13694         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
13695
13696 2009-09-23  Bruno Haible  <bruno@clisp.org>
13697
13698         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
13699         subcommand, not in a subshell.
13700
13701 2009-09-22  Eric Blake  <ebb9@byu.net>
13702
13703         unistd: sort replacement declarations
13704         * lib/unistd.in.h: Sort declarations.
13705
13706         open, openat: minor optimization
13707         * lib/open.c (open): If open succeeded, len is non-zero.
13708         * lib/openat.c (rpl_openat): Likewise.
13709
13710         link-follow: ensure correct result
13711         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
13712         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
13713         distinguish between possible failures.
13714
13715 2009-09-21  Eric Blake  <ebb9@byu.net>
13716
13717         fts: avoid compiler warning
13718         * lib/fts.c (dirent_inode_sort_may_be_useful)
13719         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
13720
13721 2009-09-19  Bruno Haible  <bruno@clisp.org>
13722
13723         * lib/progreloc.c (canonicalize_file_name): New declaration.
13724
13725 2009-09-19  Eric Blake  <ebb9@byu.net>
13726
13727         link: fix quoting
13728         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
13729
13730         openat: fix openat bugs on Solaris 9
13731         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
13732         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
13733         * modules/openat (Depends-on): Add open.
13734         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
13735         * modules/fcntl-h (Makefile.am): Substitute it.
13736         * lib/fcntl.in.h (openat): Declare replacement.
13737         * doc/posix-functions/openat.texi (openat): Document this.
13738
13739         openat: move fstatat and unlinkat into correct files
13740         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
13741         compiled.
13742         * lib/openat.c (fstatat, unlinkat): Move...
13743         * lib/fstatat.c (fstatat): ...into correct files.
13744         * lib/unlinkat.c (unlinkat): Likewise.
13745
13746         openat: fix unlinkat bugs on Solaris 9
13747         * lib/unlinkat.c (unlinkat): New file.
13748         * modules/openat (Depends-on): Add unlink.
13749         (Files): Distribute it.
13750         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
13751         trailing slash behavior is broken.
13752         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
13753         * modules/unistd (Makefile.am): Substitute it.
13754         * lib/unistd.in.h (unlinkat): Declare replacement.
13755         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
13756
13757         openat: fix fstatat bugs on Solaris 9
13758         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
13759         stat.
13760         * doc/posix-functions/fstatat.texi (fstatat): Document this.
13761
13762         test-unlinkat: enhance test, to expose Solaris 9 bug
13763         * tests/test-unlink.c (main): Factor guts...
13764         * tests/test-unlink.h (test_rmdir_func): ...into new file.
13765         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
13766         * tests/test-rmdir.c (main): Adjust caller.
13767         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
13768         (unlinker): New helper function.
13769         (rmdirat): Enhance check.
13770         * modules/rmdir-tests (Depends-on): Add stdbool.
13771         * modules/unlink-tests (Depends-on): Likewise.
13772         (Files): Add test-unlink.h.
13773         * modules/openat-tests (Files): Likewise.
13774         (Depends-on): Add unlinkdir.
13775
13776         test-fstatat: new test, to expose Solaris 9 bugs
13777         * tests/test-stat.c (main): Factor guts...
13778         * tests/test-stat.h (test_stat_func): ...into new file.
13779         * tests/test-lstat.c (main): Factor guts...
13780         * tests/test-lstat.h (test_lstat_func): ...into new file.
13781         * tests/test-fstatat.c: New file.
13782         * modules/stat-tests (Files): Add test-stat.h.
13783         * modules/lstat-tests (Files): Add test-lstat.h.
13784         (Depends-on): Add stdbool.
13785         * modules/openat-tests (Depends-on): Add pathmax.
13786         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
13787         (Makefile.am): Run new test.
13788
13789         remove: new module, for mingw and Solaris 9 bugs
13790         * modules/remove: New file.
13791         * lib/remove.c: Likewise.
13792         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
13793         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
13794         * modules/stdio (Makefile.am): Use them.
13795         * lib/stdio.in.h (remove): Declare replacement.
13796         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
13797         * doc/posix-functions/remove.texi (remove): Likewise.
13798         * modules/remove-tests: New test.
13799         * tests/test-remove.c: Likewise.
13800
13801         unlink: new module, for Solaris 9 bug
13802         * modules/unlink: New file.
13803         * lib/unlink.c: Likewise.
13804         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
13805         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
13806         * modules/unistd (Makefile.am): Use them.
13807         * lib/unistd.in.h (stat): Declare replacement.
13808         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
13809         * doc/posix-functions/unlink.texi (unlink): Likewise.
13810         * modules/unlink-tests: New test.
13811         * tests/test-unlink.c: Likewise.
13812
13813         lstat: fix Solaris 9 bug
13814         * lib/lstat.c (lstat): Also check for trailing slash on
13815         non-symlink, non-directories.  Use stat module to simplify logic.
13816         * doc/posix-functions/lstat.texi (lstat): Document it.
13817         * modules/lstat-tests (Depends-on): Add errno, same-inode.
13818         (configure.ac): Check for symlink.
13819         * tests/test-lstat.c (main): Add more tests.
13820
13821         stat: add as dependency to other modules
13822         * modules/chown (Depends-on): Add stat.
13823         * modules/euidaccess (Depends-on): Likewise.
13824         * modules/fchdir (Depends-on): Likewise.
13825         * modules/isdir (Depends-on): Likewise.
13826         * modules/link (Depends-on): Likewise.
13827         * modules/lstat (Depends-on): Likewise.
13828         * modules/mkdir-p (Depends-on): Likewise.
13829         * modules/modechange (Depends-on): Likewise.
13830         * modules/open (Depends-on): Likewise.
13831         * modules/readlink (Depends-on): Likewise.
13832         * modules/same (Depends-on): Likewise.
13833
13834         stat: fix Solaris 9 bug
13835         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
13836         slash.
13837         * lib/stat.c (rpl_stat): Work around it.
13838         * doc/posix-functions/stat.texi (stat): Update documentation.
13839
13840         stat: new module, for mingw bug
13841         * modules/stat: New file.
13842         * lib/stat.c: Likewise.
13843         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
13844         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
13845         * modules/sys_stat (Makefile.am): Use them.
13846         * lib/sys_stat.in.h (stat): Declare replacement.
13847         * lib/openat.c (fstatat): Deal with lstat and stat being function
13848         macros.
13849         * modules/openat (Depends-on): Add inline.
13850         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
13851         * doc/posix-functions/stat.texi (stat): Likewise.
13852         * modules/stat-tests: New test.
13853         * tests/test-stat.c: Likewise.
13854
13855 2009-09-19  Jim Meyering  <meyering@redhat.com>
13856
13857         syntax-check: detect unnecessary inclusion of canonicalize.h
13858         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
13859
13860 2009-09-19  Eric Blake  <ebb9@byu.net>
13861
13862         canonicalize-lgpl: adjust clients to use correct header
13863         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
13864         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
13865         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
13866         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
13867         * lib/progreloc.c (includes): Likewise.
13868
13869 2009-09-19  Jim Meyering  <meyering@redhat.com>
13870
13871         test-posixtm.c: correct a comment
13872         * tests/test-posixtm.c: Correct first-line comment.
13873         Spotted by Eric Blake.
13874
13875 2009-09-16  Jim Meyering  <meyering@redhat.com>
13876
13877         posixtm-tests: make T const-correct; add a test case
13878         * tests/test-posixtm.c (T): Declare const.
13879         Add a test for -(2^31+1).
13880         Remove useless can-succeed-only-in-2002 test.
13881
13882         posixtm-tests: adjust the sole failing test
13883         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
13884         expected output matches what mktime now produces.  Cross-checked via
13885         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
13886
13887         posixtm: move #ifdef'd tests into a new module
13888         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
13889         * tests/test-posixtm.c: ... this new file.
13890         * modules/posixtm-tests: New module.
13891
13892 2009-09-19  Eric Blake  <ebb9@byu.net>
13893
13894         openat: simplify use of at-func.c
13895         * lib/at-func.c (includes): Include prerequisites here, to
13896         simplify requirements on client files.
13897         * lib/openat-priv.h: Add double-inclusion guard.
13898         * lib/faccessat.c (includes): Simplify.
13899         * lib/fchmodat.c (includes): Likewise.
13900         * lib/fchownat.c (includes): Likewise.
13901         * lib/mkdirat.c (includes): Likewise.
13902         * lib/mkfifoat.c (includes): Likewise.
13903         * lib/symlinkat.c (includes): Likewise.
13904
13905         openat: allow return of fd 0
13906         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
13907         * modules/save-cwd (Depends-on): Replace fcntl-safer with
13908         unistd-safer.
13909         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
13910         <fcntl.h>; this module does not leak fds.
13911         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
13912         must be allowed to return 0, leaving openat_safer to add the
13913         safety.
13914         (openat_permissive): Avoid writing to just-opened fd 2 if
13915         restoring the current directory fails.
13916         * lib/openat-die.c (openat_restore_fail): Add comment.
13917         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
13918         (save_cwd): Guarantee safe fd, but without use of open_safer.
13919         * tests/test-openat.c: New test.
13920         * modules/openat-tests (Files, Makefile.am): Distribute and build
13921         new file.
13922
13923         relocatable-prog-wrapper: fix build
13924         * modules/relocatable-prog-wrapper (Files): Update name of
13925         canonicalize m4 file, broken on 2009-09-17.
13926         Reported by emad hajjar <aleppos@hotmail.com>.
13927
13928 2009-09-19  Bruno Haible  <bruno@clisp.org>
13929
13930         * lib/safe-alloc.h: Use the standard header with GPL copyright.
13931         * lib/safe-alloc.c: Likewise.
13932         Reported by Ian Beckwith <ianb@erislabs.net>.
13933
13934 2009-09-18  Bruno Haible  <bruno@clisp.org>
13935
13936         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
13937         Reported by <erobles@sensacd.com.mx>.
13938
13939 2009-09-17  Eric Blake  <ebb9@byu.net>
13940
13941         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
13942         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
13943         slashes when checking if last component is missing.
13944         * tests/test-canonicalize.c (main): Test this.
13945
13946         canonicalize, canonicalize-lgpl: honor // if distinct from /
13947         * modules/canonicalize (Files): Add double-slash-root.m4.
13948         * modules/canonicalize-lgpl (Files): Likewise.
13949         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
13950         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
13951         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
13952         fallback definition.
13953         (canonicalize_filename_mode): Use it to protect //.
13954         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
13955         (__realpath): Likewise.
13956         * tests/test-canonicalize.c (main): Test this.
13957         * tests/test-canonicalize-lgpl.c (main): Likewise.
13958         * modules/canonicalize-tests (Depends-on): Add same-inode.
13959         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
13960
13961         canonicalize-lgpl: fix glibc bug with trailing slash
13962         * m4/canonicalize-lgpl.m4: Move contents...
13963         * m4/canonicalize.m4: ...here.
13964         (gl_CANONICALIZE_LGPL): Factor realpath check...
13965         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
13966         glibc 2.3.5 bug, fixed 2005-04-27.
13967         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
13968         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
13969         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
13970         * modules/canonicalize-lgpl (Files): Manage file rename.
13971         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
13972         * modules/stdlib (Makefile.am): Substitute witness.
13973         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
13974         is needed.
13975         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
13976         replacement is required.
13977         * lib/canonicalize.c (canonicalize_file_name): Likewise.
13978         * doc/glibc-functions/canonicalize_file_name.texi
13979         (canonicalize_file_name): Document this.
13980         * doc/posix-functions/realpath.texi (realpath): Likewise.
13981
13982         canonicalize-lgpl: reject non-directory with trailing slash
13983         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
13984         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
13985         catches failures in glibc 2.3.5.
13986         * tests/test-canonicalize.c (main): Likewise.
13987
13988         canonicalize-lgpl: use native realpath if it works
13989         * lib/canonicalize-lgpl.c (realpath): Guard with
13990         FUNC_REALPATH_WORKS.
13991         * lib/stdlib.in.h (realpath): Make declaration optional based on
13992         HAVE_REALPATH.
13993         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
13994         native realpath works.
13995         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
13996         * modules/stdlib (Makefile.am): Substitute witness.
13997
13998         canonicalize, canonicalize-lgpl: use <stdlib.h>
13999         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
14000         (Include): Mention <stdlib.h>.
14001         (configure.ac): Mention functions we provide.
14002         * modules/canonicalize (configure.ac): Likewise.
14003         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
14004         realpath if canonicalize_file_name is missing.
14005         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
14006         * modules/stdlib (Makefile.am): Substitute witnesses.
14007         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
14008         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
14009         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
14010         * NEWS: Document this.
14011         * doc/glibc-functions/canonicalize_file_name.texi
14012         (canonicalize_file_name): Likewise.
14013         * doc/posix-functions/realpath.texi (realpath): Likewise.
14014         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
14015
14016         test-canonicalize: consolidate into single C program
14017         * tests/test-canonicalize.sh: Delete; move setup into...
14018         * tests/test-canonicalize.c (main): ...the program, making it
14019         easier to run in debugger.  Add some tests.
14020         * modules/canonicalize-tests (Files): Remove unused file.
14021         (Depends-on): Add progname.
14022         (configure.ac, Makefile.am): Simplify.
14023
14024         test-canonicalize-lgpl: consolidate into single C program
14025         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
14026         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
14027         easier to run in debugger.  Add some tests.
14028         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
14029         (configure.ac, Makefile.am): Simplify.
14030
14031         canonicalize: avoid resolvepath
14032         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
14033         unnecessary checks.
14034         * lib/canonicalize.c (includes): Simplify.
14035         (canonicalize_file_name): Drop resolvepath implementation.
14036         * modules/canonicalize (Depends-on): Drop filenamecat.
14037
14038         canonicalize: don't lose errno
14039         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
14040         over calls to free.
14041
14042         canonicalize: simplify errno handling
14043         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
14044         assignment.
14045
14046         canonicalize, canonicalize-lgpl: update module dependencies
14047         * modules/canonicalize (Depends-on): Add extensions, lstat,
14048         pathmax, stdlib.
14049         (Files): Drop pathmax.h.
14050         (configure.ac): Adjust macro name.
14051         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
14052         lstat, stdlib, sys_stat.
14053         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
14054         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
14055         extensions.
14056         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
14057         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
14058         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
14059         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
14060         declaration, if available.
14061         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
14062         we can rely on the readlink module.
14063         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
14064         (includes): Use <unistd.h> unconditionally.
14065
14066 2009-09-17  Eric Blake  <ebb9@byu.net>
14067
14068         maint: make Include sections of modules consistent
14069         * modules/alloca: Use only header name; no need to list #include.
14070         * modules/alloca-opt: Likewise.
14071         * modules/arpa_inet: Likewise.
14072         * modules/canon-host: Likewise.
14073         * modules/configmake: Likewise.
14074         * modules/dirent: Likewise.
14075         * modules/eealloc: Likewise.
14076         * modules/environ: Likewise.
14077         * modules/fchdir: Likewise.
14078         * modules/fcntl: Likewise.
14079         * modules/fcntl-h: Likewise.
14080         * modules/gethrxtime: Likewise.
14081         * modules/gettime: Likewise.
14082         * modules/ignore-value: Likewise.
14083         * modules/inet_ntop: Likewise.
14084         * modules/inet_pton: Likewise.
14085         * modules/inttypes: Likewise.
14086         * modules/isnand-nolibm: Likewise.
14087         * modules/isnanf-nolibm: Likewise.
14088         * modules/mbchar: Likewise.
14089         * modules/mbfile: Likewise.
14090         * modules/mbiter: Likewise.
14091         * modules/mbuiter: Likewise.
14092         * modules/netdb: Likewise.
14093         * modules/netinet_in: Likewise.
14094         * modules/nproc: Likewise.
14095         * modules/pagealign_alloc: Likewise.
14096         * modules/poll: Likewise.
14097         * modules/printf-frexp: Likewise.
14098         * modules/pthread: Likewise.
14099         * modules/putenv: Likewise.
14100         * modules/random_r: Likewise.
14101         * modules/relocatable-prog: Likewise.
14102         * modules/search: Likewise.
14103         * modules/select: Likewise.
14104         * modules/selinux-h: Likewise.
14105         * modules/settime: Likewise.
14106         * modules/signal: Likewise.
14107         * modules/size_max: Likewise.
14108         * modules/socklen: Likewise.
14109         * modules/ssize_t: Likewise.
14110         * modules/stdarg: Likewise.
14111         * modules/stdbool: Likewise.
14112         * modules/stddef: Likewise.
14113         * modules/stdint: Likewise.
14114         * modules/stdio: Likewise.
14115         * modules/stdlib: Likewise.
14116         * modules/string: Likewise.
14117         * modules/strings: Likewise.
14118         * modules/sys_file: Likewise.
14119         * modules/sys_ioctl: Likewise.
14120         * modules/sys_select: Likewise.
14121         * modules/sys_socket: Likewise.
14122         * modules/sys_stat: Likewise.
14123         * modules/sys_time: Likewise.
14124         * modules/sys_times: Likewise.
14125         * modules/sys_utsname: Likewise.
14126         * modules/sys_wait: Likewise.
14127         * modules/sysexits: Likewise.
14128         * modules/time: Likewise.
14129         * modules/times: Likewise.
14130         * modules/tmpfile: Likewise.
14131         * modules/trim: Likewise.
14132         * modules/unistd: Likewise.
14133         * modules/wchar: Likewise.
14134         * modules/wctype: Likewise.
14135
14136 2009-09-17  Bruno Haible  <bruno@clisp.org>
14137
14138         Make getdate.y compile on QNX and NetBSD 5 / i386.
14139         * m4/getdate.m4 (gl_GETDATE): Conditionally define
14140         TIME_T_FITS_IN_LONG_INT.
14141         * lib/getdate.y (long_time_t): New type.
14142         (relative_time): Change type of 'seconds' field to long_time_t.
14143         (get_date): Update types of local variables. Check against overflow
14144         during conversion from long_time_t to time_t.
14145         Reported by Matt Kraai <kraai@ftbfs.org>
14146         and Hasso Tepper <hasso@netbsd.org>.
14147
14148 2009-09-17  Bruno Haible  <bruno@clisp.org>
14149
14150         * modules/COPYING: Update copyright years.
14151         * modules/README: Likeiwse.
14152         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
14153         Reported by Ian Beckwith <ianb@erislabs.net>.
14154
14155 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
14156
14157         * users.txt: Update references for gnuit package.
14158
14159 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
14160
14161         * m4/getdelim.m4: Fix typo in copyright line.
14162
14163 2009-09-17  Bruno Haible  <bruno@clisp.org>
14164
14165         * lib/atoll.c: Use the standard header with GPL copyright.
14166         * lib/argz.in.h: Likewise.
14167         * lib/glob.c: Likewise.
14168         * lib/glob-libc.h: Likewise.
14169         * lib/random_r.c: Likewise.
14170         * lib/siglist.h: Likewise.
14171         * lib/strsignal.c: Likewise.
14172         Reported by Ian Beckwith <ianb@erislabs.net>.
14173
14174 2009-09-17  Eric Blake  <ebb9@byu.net>
14175
14176         rmdir: ensure correct dependency order
14177         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
14178
14179 2009-09-17  Bruno Haible  <bruno@clisp.org>
14180
14181         Disable assertion that fails on NetBSD 5 / i386.
14182         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
14183         Reported by Sam Steingold <sds@gnu.org>
14184         and Hasso Tepper <hasso@netbsd.org>.
14185
14186 2009-09-16  Eric Blake  <ebb9@byu.net>
14187
14188         unlinkdir: port to mingw
14189         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
14190         on which no one can unlink a directory.
14191
14192         stdlib: sort witness names
14193         * modules/stdlib (Makefile.am): Sort replacements.
14194         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
14195         * lib/stdlib.in.h: Likewise.
14196
14197         parse-duration-tests: avoid link failure
14198         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
14199         LIBINTL.
14200         Reported by Tom G. Christensen.
14201
14202         openat-tests: ensure unlinkat behaves like rmdir
14203         * tests/test-rmdir.c (main): Factor guts...
14204         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
14205         * modules/rmdir-tests (Files): Ship new file.
14206         * modules/openat-tests: New test.
14207         * tests/test-unlinkat.c: Likewise.
14208
14209         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
14210         * modules/rmdir-errno (Status, Notice): Now obsolete.
14211
14212         rmdir: work around cygwin 1.5.x and mingw bugs
14213         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
14214         * lib/rmdir.c (rmdir): Work around it.
14215         * modules/rmdir (Status, Notice): No longer obsolete.
14216         (Files): Add dos.m4.
14217         (Depends-on): Add unistd.
14218         (configure.ac): Set witnesses.
14219         (License): Relax to LGPLv2+.
14220         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
14221         * modules/unistd (Makefile.am): Substitute witnesses.
14222         * lib/unistd.in.h (rmdir): Declare replacement.
14223         * doc/posix-functions/rmdir.texi (rmdir): Document this.
14224         * modules/rmdir-tests: New tests.
14225         * tests/test-rmdir.c: Likewise.
14226
14227 2009-09-15  Eric Blake  <ebb9@byu.net>
14228
14229         fchdir: improve use of replacement functions
14230         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
14231         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
14232         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
14233         REPLACE_CLOSEDIR.
14234         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
14235         * modules/sys_stat (Makefile.am): Substitute correct witness.
14236         * modules/dirent (Makefile.am): Likewise.
14237         * modules/unistd (Makefile.am): Likewise.
14238         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
14239         * lib/unistd.in.h (dup): Likewise.
14240         * lib/sys_stat.in.h (fstat): Likewise.
14241
14242         maint: ignore gnulib-tool temp files
14243         * .gitignore: Ignore files created during gnulib-tool --test.
14244
14245 2009-09-13  Jim Meyering  <meyering@redhat.com>
14246
14247         posixtm: don't reject a time that specify "60" as the number of seconds
14248         * lib/posixtm.c (posixtime): The code to reject invalid dates
14249         would also reject a time specified with the .60 suffix.
14250         But POSIX allows that, in order to accommodate leap seconds.
14251         So don't reject it.
14252         (main): Adjust tests accordingly.
14253         * modules/posixtm (Depends-on): Add stpcpy.
14254
14255 2009-09-11  Jim Meyering  <meyering@redhat.com>
14256
14257         announce-gen: include [$release_type] in emitted Subject:
14258         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
14259         e.g., [stable] in the emitted Subject: line.
14260
14261 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14262
14263         Remove obsolete macros from several modules.
14264         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
14265         obsolete Autoconf macros with their modern counterparts.
14266         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
14267         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
14268         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
14269         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
14270         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
14271         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
14272         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
14273         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
14274         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
14275         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
14276         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
14277         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
14278         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
14279         * m4/sockets.m4 (gl_SOCKETS): Likewise.
14280         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
14281         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
14282         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
14283         * m4/time_r.m4 (gl_TIME_R): Likewise.
14284         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
14285         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
14286         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
14287
14288         Fix copyright header in build-aux scripts.
14289         * build-aux/git-version-gen: Fix copyright header to match GPLv3
14290         recommendation.
14291         * build-aux/ncftpput-ftp: Likewise.
14292         * build-aux/update-copyright: Likewise.
14293
14294 2009-09-09  Eric Blake  <ebb9@byu.net>
14295
14296         test-link: allow Linux choice of errno
14297         * tests/test-link.c (main): Relax test for alternate error.
14298
14299         strndup: fix improper m4 caching
14300         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
14301         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
14302         (gl_PREREQ_STRNDUP): Delete.
14303         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
14304         * modules/string (Makefile.am): Substitute it.
14305         * lib/string.in.h (strndup): Modernize prototype.
14306
14307         getcwd: port to mingw
14308         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
14309         different from the POSIX assumptions made throughout the getcwd
14310         module; fortunately, the mingw getcwd does not need replacement.
14311         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
14312         * modules/getcwd-tests: New test.
14313         * tests/test-getcwd.c: Likewise.
14314
14315         link: fix platform bugs
14316         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
14317         * lib/link.c (link): Work around them.  Fix related mingw bug.
14318         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
14319         * modules/unistd (Makefile.am): Substitute it.
14320         * lib/unistd.in.h (link): Declare replacement.
14321         * doc/posix-functions/link.texi (link): Document this.
14322         * modules/link (Depends-on): Add strdup-posix, sys_stat.
14323
14324         test-link: consolidate into single C program, test more cases
14325         * tests/test-link.sh: Delete.
14326         * tests/test-link.c: Test more error conditions.  Exposes bugs on
14327         at least Cygwin and Solaris.
14328         * modules/link-tests (Files): Remove unused file.
14329         (Depends-on): Add errno, sys_stat.
14330         (Makefile.am): Simplify.
14331
14332 2009-09-08  Bruno Haible  <bruno@clisp.org>
14333
14334         Work around towlower, towupper bug on mingw.
14335         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
14336         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
14337         * doc/posix-functions/towlower.texi: Mention the mingw bug.
14338         * doc/posix-functions/towupper.texi: Likewise.
14339         Reported by Eric Blake.
14340
14341 2009-09-08  Jim Meyering  <meyering@redhat.com>
14342
14343         build: don't try to run autoheader if we don't use it
14344         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
14345         is not used in configure.ac.
14346
14347 2009-09-08  Eric Blake  <ebb9@byu.net>
14348
14349         euidaccess: fix compilation error
14350         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
14351
14352         rawmemchr: relax license
14353         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
14354         okay.
14355         Reported by Jim Meyering.
14356
14357         mkfifoat: new module
14358         * modules/mkfifoat: New file.
14359         * lib/mkfifoat.c: Likewise.
14360         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
14361         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
14362         * modules/sys_stat (Makefile.am): Use them.
14363         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
14364         * MODULES.html.sh (File system functions): Mention module.
14365         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
14366         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
14367         * modules/mkfifoat-tests: New test.
14368         * tests/test-mkfifoat.c: Likewise.
14369
14370         strchrnul: relax license
14371         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
14372         okay.
14373         Reported by Jim Meyering.
14374
14375 2009-09-08  Eric Blake  <ebb9@byu.net>
14376
14377         fstatat: fix compilation on Solaris
14378         * lib/fstatat.c (includes): Add fcntl.h.
14379         Reported by Pádraig Brady.
14380
14381 2009-09-07  Eric Blake  <ebb9@byu.net>
14382
14383         rename: modernize replacement
14384         * modules/rename (Depends-on): Add stdio.
14385         (configure.ac): Declare witness.
14386         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
14387         stdio take care of replacement.
14388         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
14389         * modules/stdio (Makefile.am): Substitute them.
14390         * lib/stdio.in.h (rename): Declare replacement.
14391         * lib/rename.c (includes): Allow cross-compilation to non-windows
14392         machines.
14393         * doc/posix-functions/rename.texi (rename): Improve
14394         documentation.
14395
14396         stdio: sort witness names
14397         * modules/stdio (Makefile.am): Sort replacements.
14398         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
14399         * lib/stdio.in.h: Likewise.
14400
14401         getcwd: minor cleanups
14402         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
14403         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
14404
14405         openat: provide more convenience names
14406         * modules/faccessat (configure.ac): Add C witness.
14407         * lib/unistd.in.h (readlinkat): Fix typo.
14408         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
14409         convenience wrappers.
14410         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
14411         wrappers in syntax checks.
14412
14413 2009-09-06  Eric Blake  <ebb9@byu.net>
14414
14415         doc: fix comments in recent patches
14416         * lib/faccessat.c: Mention correct function.
14417         * lib/fchmodat.c: Likewise.
14418         * lib/fchownat.c: Likewise.
14419         * lib/symlinkat.c: Likewise.
14420         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
14421         constants.
14422
14423         faccessat, symlinkat: continue cleanup of previous patch
14424         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
14425         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
14426         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
14427         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
14428         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
14429         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
14430         set.
14431
14432 2009-09-06  Bruno Haible  <bruno@clisp.org>
14433
14434         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
14435         (fstatat): Declare if GNULIB_FSTATAT is set.
14436         (mkdirat): Declare if GNULIB_MKDIRAT is set.
14437         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
14438         (unlinkat): Declare if GNULIB_UNLINKAT is set.
14439         * modules/fcntl-h (Files): Remove m4/openat.m4.
14440         * modules/sys_stat (Files): Remove m4/openat.m4.
14441         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
14442         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
14443         * modules/unistd (Files): Remove m4/openat.m4.
14444         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
14445         GNULIB_OPENAT.
14446         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
14447         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
14448         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
14449         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
14450         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
14451         gl_OPENAT_DEFAULTS.
14452         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
14453         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
14454         Don't require gl_OPENAT_DEFAULTS.
14455         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
14456         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
14457         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
14458         (gl_OPENAT_DEFAULTS): Remove macro.
14459
14460 2009-09-06  Bruno Haible  <bruno@clisp.org>
14461
14462         * modules/openat (configure.ac): Remove unneeded witness.
14463
14464 2009-09-06  Bruno Haible  <bruno@clisp.org>
14465
14466         Set errno to ENOSYS when a function is entirely unsupported.
14467         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
14468         EOPNOTSUPP.
14469         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
14470         * modules/chown (Depends-on): Remove errno.
14471
14472 2009-09-06  Bruno Haible  <bruno@clisp.org>
14473
14474         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
14475
14476 2009-09-06  Bruno Haible  <bruno@clisp.org>
14477
14478         * lib/sys_stat.in.h: Fix preprocessor command indentation.
14479
14480 2009-09-06  Ben Pfaff  <blp@gnu.org>
14481             Bruno Haible  <bruno@clisp.org>
14482
14483         Work around a glibc bug in strtok_r.
14484         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
14485         Undefine if UNDEFINE_STRTOK_R is set.
14486         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
14487         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
14488         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
14489         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
14490         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
14491         UNDEFINE_STRTOK_R.
14492         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
14493
14494 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
14495
14496         exclude: minor fix
14497         * lib/exclude.c: Include wctype.h
14498
14499 2009-09-06  Akim Demaille  <demaille@gostai.com>
14500
14501         bootstrap: improve error message
14502         * build-aux/bootstrap (find_tool): Upon failure, report the list
14503         of candidates.
14504         Honor the initial value of the envvar.
14505
14506 2009-09-05  Eric Blake  <ebb9@byu.net>
14507
14508         symlinkat: new module
14509         * modules/symlinkat: New file.
14510         * lib/symlinkat.c: Likewise.
14511         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
14512         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
14513         * modules/unistd (Makefile.am): Use them.
14514         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
14515         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
14516         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
14517         * MODULES.html.sh (File system functions): Mention module.
14518         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
14519         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
14520         * modules/symlinkat-tests: New test.
14521         * tests/test-symlinkat.c: Likewise.
14522
14523         test-openat-safer: add more checks
14524         * tests/test-openat-safer.c (main): Check more code paths.
14525
14526 2009-09-05  Jim Meyering  <meyering@redhat.com>
14527
14528         syntax-check: detect unnecessary inclusion of openat.h
14529         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
14530
14531 2009-09-05  Bruno Haible  <bruno@clisp.org>
14532
14533         Support towlower, towupper.
14534         * doc/posix-functions/towlower.texi: Mention module wctype.
14535         * doc/posix-functions/towupper.texi: Likewise.
14536         * lib/wctype.in.h (towlower, towupper): New functions.
14537         * tests/test-wctype.c: Include stdio.h, stdlib.h.
14538         (ASSERT): New macro.
14539         (e): New variable.
14540         (main): Test also towlower, towupper. Test WEOF argument.
14541         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14542
14543 2009-09-05  Bruno Haible  <bruno@clisp.org>
14544
14545         Fix conversion behaviour when the input is invalid.
14546         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
14547         mark occurring in first pass of indirect conversion.
14548         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
14549         input.
14550         Found by clang's static analyzer.
14551
14552 2009-09-05  Bruno Haible  <bruno@clisp.org>
14553
14554         * tests/test-striconveh.c (main): Test indirect conversion on platforms
14555         where direct conversion is possible.
14556
14557 2009-09-04  Eric Blake  <ebb9@byu.net>
14558
14559         openat: fail with ENOENT on empty name
14560         * lib/openat-proc.c (openat_proc_name): Special-case the empty
14561         buffer.
14562
14563         link-follow: fix logic bug in prior patch
14564         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
14565         reversed sense of yes and no in prior patch.  Avoid confusing
14566         compilation failure with desired semantics.
14567
14568         link-follow: accomodate mingw and cross-compilation
14569         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
14570         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
14571         cross-compilation results to -1, to make linkat easier to
14572         implement when cross-compiling.  Trivially support mingw.
14573         * modules/link-follow (configure.ac): Call new name.
14574         * NEWS: Mention this.
14575
14576 2009-09-03  Eric Blake  <ebb9@byu.net>
14577
14578         faccessat: compile replacement
14579         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
14580         needed.
14581
14582         fts: fix compilation error
14583         * lib/fts.c (includes): Re-add "openat.h", for
14584         openat_needs_fchdir.
14585
14586         faccessat: new module
14587         * modules/faccessat: New file.
14588         * lib/faccessat.c: Likewise.
14589         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
14590         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
14591         * modules/unistd (Makefile.am): Use it.
14592         * lib/unistd.in.h (faccessat): Declare it.
14593         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
14594         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
14595         * MODULES.html.sh (File system functions): Mention it.
14596         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
14597         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
14598
14599         euidaccess: prefer POSIX over non-standard implementation
14600         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
14601         * lib/euidaccess.c (euidaccess): Use it if available.
14602
14603         openat: make template easier to use
14604         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
14605         AT_FUNC_F2 to be undefined.
14606         (VALIDATE_FLAG): New macro; use it to reject bad flags.
14607         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
14608         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
14609         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
14610         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
14611         Likewise.
14612         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
14613         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
14614         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
14615         Likewise.
14616
14617         openat: declare in POSIX headers
14618         * NEWS: Mention this.
14619         * modules/openat (configure.ac): Declare witnesses.
14620         (Depends-on): Add fcntl-h, sys_stat, unistd.
14621         (Include): Mention correct headers.
14622         * modules/fcntl-h (Depends-on): Add link-warning.
14623         (Files): Add openat.m4.
14624         (Makefile.am): Substitute witnesses.
14625         * modules/sys_stat (Files, Makefile.am): Likewise.
14626         * modules/unistd (Files, Makefile.am): Likewise.
14627         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
14628         (gl_OPENAT_DEFAULTS): New macro.
14629         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
14630         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
14631         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
14632         (SYS_STAT_H): Remove unused variable.
14633         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
14634         * lib/fcntl--.h (includes): Remove unneeded header.
14635         * lib/openat-safer.c (includes): Likewise.
14636         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
14637         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
14638         appropriate headers.
14639         (__OPENAT_PREFIX): Delete.
14640         * lib/fcntl.in.h (openat): Provide declaration.
14641         (AT_FDCWD): Fix Solaris bug.
14642         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
14643         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
14644         * lib/fchmodat.c (includes):  Adjust to find declaration.
14645         * lib/fchownat.c (includes): Likewise.
14646         * lib/mkdirat.c (includes): Likewise.
14647         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
14648         still visible.
14649
14650 2009-09-02  Eric Blake  <ebb9@byu.net>
14651
14652         errno: use consistently
14653         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
14654         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
14655         * lib/canonicalize.c (ELOOP): Likewise.
14656         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
14657         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
14658         * lib/lchown.c (EOPNOTSUPP): Likewise.
14659         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
14660         * lib/savewd.c (ESTALE): Likewise.
14661         * lib/settime.c (ENOSYS): Likewise.
14662         * lib/utimens.c (ENOSYS): Likewise.
14663         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
14664         * lib/chdir-safer.c (ELOOP): Likewise.
14665         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
14666         * modules/c-stack (Depends-on): Add errno.
14667         * modules/canonicalize (Depends-on): Likewise.
14668         * modules/chdir-safer (Depends-on): Likewise.
14669         * modules/fdopendir (Depends-on): Likewise.
14670         * modules/inet_ntop (Depends-on): Likewise.
14671         * modules/inet_pton (Depends-on): Likewise.
14672         * modules/lchown (Depends-on): Likewise.
14673         * modules/openat (Depends-on): Likewise.
14674         * modules/savewd (Depends-on): Likewise.
14675         * modules/settime (Depends-on): Likewise.
14676         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
14677
14678         fts: avoid leaking fds
14679         * modules/fts (Depends-on): Add cloexec.
14680         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
14681         flag.
14682
14683         fts: make directory fds more robust
14684         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
14685         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
14686
14687         backupfile, chdir-long, fts, savedir: make safer
14688         * lib/backupfile.c (includes): Use "dirent--.h", since
14689         numbered_backup can write to stderr during readdir.
14690         * lib/savedir.c (includes): Likewise.
14691         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
14692         emulation can write to stderr on failure.
14693         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
14694         * lib/getcwd.c: Document why opendir_safer is unused.
14695         * lib/glob.c: Likewise.
14696         * lib/scandir.c: Likewise.
14697         * lib/openat-proc.c: Likewise, for open_safer.
14698         * modules/backupfile (Depends-on): Add dirent-safer.
14699         * modules/savedir (Depends-on): Likewise.
14700         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
14701         * modules/chdir-long (Depends-on): Add openat-safer.
14702
14703         openat-safer: new module
14704         * modules/openat-safer: New file.
14705         * lib/openat-safer.c: Likewise.
14706         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
14707         * lib/fcntl-safer.h (openat_safer): Declare.
14708         * lib/fcntl--.h (openat): Override.
14709         * MODULES.html.sh (File descriptor based I/O): Mention it.
14710         * lib/openat.h: Add double-inclusion guards.
14711         * lib/openat.c (includes): Only include "fcntl-safer.h", not
14712         "fcntl--.h", so we can implement openat.
14713         * modules/openat-safer-tests: New test.
14714         * tests/test-openat-safer.c: New file.
14715
14716         dirent-safer: new module
14717         * modules/dirent-safer: New file.
14718         * lib/dirent--.h: Likewise.
14719         * lib/dirent-safer.h: Likewise.
14720         * lib/opendir-safer.c: Likewise.
14721         * m4/dirent-safer.m4: Likewise.
14722         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
14723         * modules/dirent-safer-tests: New test.
14724         * tests/test-dirent-safer.c: New file.
14725         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
14726
14727         fdopendir: optimize on mingw
14728         * lib/unistd.in.h (_gl_directory_name): New prototype.
14729         * lib/fchdir.c (_gl_directory_name): Implement it.
14730         (fchdir): Use it to simplify implementation.
14731         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
14732         fchdir, when available, to avoid calling [f]chdir().
14733
14734         fdopendir: split into its own module
14735         * lib/openat.c (fdopendir): Move...
14736         * lib/fdopendir.c: ...into new file.
14737         * modules/fdopendir: New module.
14738         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
14739         * modules/openat (Depends-on): Add fdopendir.
14740         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
14741         fdopendir here.
14742         * modules/savedir (Depends-on): Only need fdopendir, not full
14743         openat.
14744         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
14745         * lib/openat.h (fdopendir): Drop prototype.
14746         * lib/dirent.in.h (fdopendir): Provide prototype.
14747         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
14748         * modules/dirent (Makefile.am): Substitute them.
14749         * MODULES.html.sh (File system functions): Mention it.
14750         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
14751         * modules/fdopendir-tests: New file.
14752         * tests/test-fdopendir.c: Likewise.
14753
14754         fchdir: use more consistent macro convention
14755         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
14756         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
14757         REPLACE_FCHDIR, rather than relying on config.h macros.
14758         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
14759         inside a single make-time REPLACE_FCHDIR block, rather than using
14760         the config.h FCHDIR_REPLACEMENT.
14761         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
14762         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
14763         Manage fstat replacement.
14764         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
14765         REPLACE_FCHDIR.
14766         * modules/sys_stat (Files): Add m4/unistd_h.m4.
14767         (Makefile.am): Substitute REPLACE_FCHDIR.
14768         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
14769         FCHDIR_REPLACEMENT.
14770         * lib/dup-safer.c (dup_safer): Likewise.
14771         * lib/dup2.c (rpl_dup2): Likewise.
14772         * lib/dup3.c (rpl_dup3): Likewise.
14773         * lib/open.c (rpl_open): Likewise.
14774
14775         fchdir: simplify error handling, and support dup3
14776         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
14777         stdbool, malloc-posix, realloc-posix.
14778         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
14779         (ensure_dirs_slot): Return false on allocation failure.
14780         (rpl_dup2): Delete.
14781         (_gl_register_dup): New function.
14782         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
14783         (_gl_register_fd): Close fd on allocation failure.
14784         * lib/fcntl.in.h (_gl_register_fd): Update signature.
14785         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
14786         prototype.
14787         (rpl_dup2_fchdir): Delete prototype.
14788         * lib/open.c (open): Update caller.
14789         * lib/dup2.c (dup2): Track fchdir metadata.
14790         * lib/dup3.c (dup3): Likewise.
14791         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
14792         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
14793
14794 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14795
14796         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
14797         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
14798         don't pass arguments to AC_OUTPUT.
14799
14800 2009-09-02  Bruno Haible  <bruno@clisp.org>
14801
14802         * modules/mkdtemp (License): Relicense under LGPLv2+.
14803         Reported by Paolo Bonzini.
14804
14805 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14806
14807         Replace uses of obsolete autoconf macros in Jim's modules.
14808         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
14809         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
14810         can evoke a warning from autoconf when run with -Wobsolete
14811         enabled.  They were declared obsolete for good reasons (see
14812         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
14813         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
14814         should not continue using the deprecated macros.
14815         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
14816         obsolete Autoconf macros with modern counterparts.
14817         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
14818         * m4/dos.m4 (gl_AC_DOS): Likewise.
14819         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
14820         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
14821         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
14822         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
14823         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
14824         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
14825         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
14826         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
14827         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
14828         Likewise.
14829         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
14830         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
14831         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
14832         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
14833         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
14834         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
14835
14836 2009-09-01  Eric Blake  <ebb9@byu.net>
14837
14838         fchdir: fix off-by-one bug in previous patch
14839         * lib/fchdir.c (rpl_fstat): Use correct bounds.
14840         (_gl_unregister_fd): Delete useless if.
14841
14842 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
14843
14844         maint.mk: sort the list of syntax-check rules
14845         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
14846         easier to get a sense of progress when the rules are run sequentially
14847         and take a long time.
14848
14849 2009-09-01  Simon Josefsson  <simon@josefsson.org>
14850
14851         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
14852         * modules/netinet_in: Likewise.
14853         * modules/sys_file: Likewise.
14854         * modules/sys_ioctl: Likewise.
14855         * modules/sys_select: Likewise.
14856         * modules/sys_socket: Likewise.
14857         * modules/sys_stat: Likewise.
14858         * modules/sys_time: Likewise.
14859         * modules/sys_times: Likewise.
14860         * modules/sys_utsname: Likewise.
14861         * modules/sys_wait: Likewise.
14862
14863 2009-09-01  Jim Meyering  <meyering@redhat.com>
14864
14865         fts: help ensure that return values are not ignored
14866         * lib/fts_.h (__GNUC_PREREQ): Define.
14867         (__attribute_warn_unused_result__): Define.
14868         (fts_children, fts_close, fts_open, fts_read): Declare with
14869         __attribute_warn_unused_result__.
14870
14871         fts: fts_close now fails also when closing a dir file descriptor fails
14872         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
14873         and propagate to caller, along with errno.
14874
14875         announce-gen: correct formatting in --help output
14876         * build-aux/announce-gen (usage): Move the one-line description in
14877         --help output "up", to where it belongs, just after Usage:.
14878
14879 2009-08-31  Eric Blake  <ebb9@byu.net>
14880
14881         fchdir: port to mingw
14882         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
14883         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
14884         opened, then use a substitute.
14885         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
14886         replacement.
14887         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
14888         (_gl_register_fd): No need to check stat if open already filters
14889         all directories.
14890         (fchdir): Fix error condition to match POSIX.
14891         * modules/fchdir (Depends-on): Add sys_stat.
14892         * doc/posix-functions/open.texi (open): Document the limitation.
14893         * modules/fchdir-tests: New file.
14894         * tests/test-fchdir.c: Likewise.
14895
14896         canonicalize: allow cross-testing from cygwin to mingw
14897         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
14898         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
14899         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
14900         Likewise.
14901         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
14902         target does not support symlinks.
14903         * tests/test-canonicalize-lgpl.sh: Likewise.
14904
14905         chown: avoid compilation warning on mingw
14906         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
14907         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
14908         mingw.
14909         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
14910         * modules/chown (Depends-on): Add errno.
14911
14912 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
14913
14914         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
14915         command.
14916
14917 2009-08-31  Jim Meyering  <meyering@redhat.com>
14918
14919         canonicalize: remove useless initialization
14920         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
14921         initialization of local, "end".
14922
14923 2009-08-30  Bruno Haible  <bruno@clisp.org>
14924
14925         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
14926         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
14927         ENOSYS.
14928
14929 2009-08-30  Bruno Haible  <bruno@clisp.org>
14930
14931         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
14932         /usr/xpg4/bin/tr when it exists.
14933         * tests/test-pipe-filter-gi1.sh: Likewise.
14934
14935 2009-08-30  Bruno Haible  <bruno@clisp.org>
14936
14937         Work around deficient /usr/bin/id program on Solaris.
14938         * tests/test-file-has-acl.sh (ID): New variable.
14939         * tests/test-set-mode-acl.sh (ID): Likewise.
14940         * tests/test-copy-acl.sh (ID): Likewise.
14941         * tests/test-copy-file.sh (ID): Likewise.
14942
14943 2009-08-30  Bruno Haible  <bruno@clisp.org>
14944
14945         New module 'xstriconveh'.
14946         * lib/xstriconveh.h: New file.
14947         * lib/xstriconveh.c: New file.
14948         * modules/xstriconveh: New file.
14949
14950 2009-08-30  Bruno Haible  <bruno@clisp.org>
14951
14952         Make it easier to use mem_cd_iconveh.
14953         * lib/striconveh.h (iconveh_t): New type.
14954         (iconveh_open, iconveh_close): New declarations.
14955         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
14956         with a single 'const iconveh_t *' argument.
14957         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
14958         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
14959         with a single 'const iconveh_t *' argument.
14960         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
14961         * tests/test-striconveh.c (main): Update.
14962         * NEWS: Mention the change.
14963
14964 2009-08-30  Bruno Haible  <bruno@clisp.org>
14965
14966         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
14967         problem.
14968
14969 2009-08-30  Bruno Haible  <bruno@clisp.org>
14970
14971         Work around iconv_open problem on Solaris.
14972         * lib/iconv_open-solaris.gperf: New file.
14973         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
14974         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
14975         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
14976         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
14977         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
14978         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
14979
14980 2009-08-29  Jim Meyering  <meyering@redhat.com>
14981
14982         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
14983         * top/maint.mk (cvs-check): Remove target; it was just an alias
14984         to the better-named vc-diff-check.
14985         (maintainer-distcheck): Remove rule.  It was used only from
14986         the (alpha/beta/major) target, and all of its commands but one
14987         were coreutils-specific.
14988         (vc-dist): Remove rule.
14989         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
14990         Run vc-diff-check, not vc-dist.
14991         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
14992
14993 2009-08-27  Bruno Haible  <bruno@clisp.org>
14994
14995         * tests/test-bitrotate.c (main): Remove test that uses a shift count
14996         of 0.
14997
14998 2009-08-27  Bruno Haible  <bruno@clisp.org>
14999
15000         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
15001         compilers.
15002         * doc/func.texi: Document the SunPRO C bug.
15003
15004 2009-08-27  Bruno Haible  <bruno@clisp.org>
15005
15006         Fix link error on Solaris.
15007         * tests/test-parse-duration.c (xstrdup): Remove function.
15008
15009 2009-08-26  Pádraig Brady  <P@draigbrady.com>
15010
15011         ignore-value: handle pointer types, too
15012         * lib/ignore-value.h (__attribute__): Remove definition.
15013         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
15014         of a more concise and more-often effective "(void) i" statement.
15015         (ignore_ptr): New function to suppress warnings from functions that
15016         return pointers, and to make it explicit that one function doesn't
15017         handle all cases.
15018
15019 2009-08-25  Bruno Haible  <bruno@clisp.org>
15020
15021         dup2: work around a Linux bug.
15022         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
15023         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
15024         * doc/posix-functions/dup2.texi: Mention the Linux bug.
15025         Reported by Simon Josefsson.
15026
15027 2009-08-25  Jim Meyering  <meyering@redhat.com>
15028
15029         libguestfs uses gnulib
15030         * users.txt: Add libguestfs.
15031
15032 2009-08-24  Eric Blake  <ebb9@byu.net>
15033
15034         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
15035         * lib/pipe2.c (includes): Add binary-io.h.
15036         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
15037
15038 2009-08-24  Bruno Haible  <bruno@clisp.org>
15039
15040         Tolerate declared but missing accept4 syscall.
15041         * lib/accept4.c (accept4): Invoke original accept4 function first, if
15042         available.
15043         * lib/sys_socket.in.h (accept4): If the function is already present,
15044         override it.
15045         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
15046         * modules/accept4 (Makefile.am): Compile accept4.c always.
15047         Reported by Paolo Bonzini and Eric Blake.
15048
15049 2009-08-23  Bruno Haible  <bruno@clisp.org>
15050
15051         New module 'accept4'.
15052         * lib/sys_socket.in.h (accept4): New declaration.
15053         * lib/accept4.c: New file.
15054         * m4/accept4.m4: New file.
15055         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
15056         GNULIB_ACCEPT4, HAVE_ACCEPT4.
15057         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
15058         HAVE_ACCEPT4.
15059         * modules/accept4: New file.
15060         * doc/glibc-functions/accept4.texi: Mention the new module.
15061
15062 2009-08-24  Jim Meyering  <meyering@redhat.com>
15063
15064         progname: also set global program_invocation_name, when possible
15065         Before this change, a libtool-enabled program that calls glibc's
15066         error function would report the program name as
15067         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
15068         * modules/progname (configure.ac): Check for a declaration of
15069         program_invocation_name.
15070         * lib/progname.c:  Include <errno.h>.
15071         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
15072         Set program_invocation_name.
15073
15074 2009-08-23  Bruno Haible  <bruno@clisp.org>
15075
15076         * lib/dup3.c: Include <string.h>.
15077
15078 2009-08-23  Bruno Haible  <bruno@clisp.org>
15079
15080         * lib/dup3.c (dup3): Test only once whether the system actually exists.
15081         * lib/pipe2.c (pipe2): Likewise.
15082         Suggested by Eric Blake.
15083
15084 2009-08-23  Bruno Haible  <bruno@clisp.org>
15085
15086         Tolerate declared but missing dup3 syscall.
15087         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
15088         * lib/unistd.in.h (dup3): If the function is already present,
15089         override it.
15090         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
15091         * modules/dup3 (Makefile.am): Compile dup3.c always.
15092         Reported by Paolo Bonzini.
15093
15094 2009-08-23  Bruno Haible  <bruno@clisp.org>
15095
15096         Tolerate declared but missing pipe2 syscall.
15097         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
15098         available.
15099         * lib/unistd.in.h (pipe2): If the function is already present,
15100         override it.
15101         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
15102         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
15103         Reported by Paolo Bonzini.
15104
15105 2009-08-23  Bruno Haible  <bruno@clisp.org>
15106
15107         * lib/pipe2.c (pipe2): Move #ifs inside function.
15108
15109 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
15110
15111         quotearg: document limitations of quote_these_too
15112         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
15113         those limitations are created.
15114         * lib/quotearg.h (set_char_quoting): Document that digits and
15115         letters that are special after backslash are not permitted.
15116         (quotearg_char): Cross-reference set_char_quoting documentation.
15117
15118 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
15119
15120         quotearg: implement custom_quoting_style
15121         * lib/quotearg.c: (struct quoting_options): Add left_quote and
15122         right_quote fields.
15123         (set_custom_quoting): New public function.
15124         (quotearg_buffer_restyled): Add left_quote and right_quote
15125         arguments, handle them very much like locale quoting, and update
15126         all uses.
15127         (quotearg_n_custom): New public function.
15128         (quotearg_n_custom_mem): New public function.
15129         (quotearg_custom): New public function.
15130         (quotearg_custom_mem): New public function.
15131         * lib/quotearg.h: Prototype and document new public functions.
15132         (enum quoting_style): For escape_quoting_style and
15133         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
15134         ignored even though they're otherwise like c_quoting_style.
15135         Add custom_quoting_style member and document with comparison to
15136         clocale_quoting_style.
15137         * tests/test-quotearg.c (custom_quotes): New array.
15138         (custom_results): New array.
15139         (main): Extend to test custom quoting.
15140
15141 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
15142
15143         quotearg: fix right quote escaping when it's in quote_these_too
15144         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
15145         quote, be sure to prepend only one backslash.
15146         * tests/test-quotearg.c (use_quote_double_quotes): New function.
15147         (main): Test it.
15148
15149 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
15150
15151         quotearg-tests: test escaping of embedded locale quotes
15152         * tests/test-quotearg.c (struct result_strings): Add member for
15153         new input.
15154         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
15155         (inputs): Add new input.
15156         (results_g): Add expected results.
15157         (flag_results): Likewise.
15158         (locale_results): Likewise.
15159         (compare_strings): Check those.
15160
15161 2009-08-23  Bruno Haible  <bruno@clisp.org>
15162
15163         Tests for module 'dup3'.
15164         * modules/dup3-tests: New file.
15165         * tests/test-dup3.c: New file.
15166
15167         New module 'dup3'.
15168         * lib/unistd.in.h (dup3): New declaration.
15169         * lib/dup3.c: New file.
15170         * m4/dup3.m4: New file.
15171         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
15172         HAVE_DUP3.
15173         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
15174         * modules/dup3: New file.
15175         * doc/glibc-functions/dup3.texi: Mention the new module.
15176
15177 2009-08-23  Bruno Haible  <bruno@clisp.org>
15178
15179         Tweak the dup2 test.
15180         * tests/test-dup2.c (main): Create the test file empty. Verify that an
15181         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
15182         the test file is still empty. Fix argument order of lseek.
15183
15184 2009-08-23  Bruno Haible  <bruno@clisp.org>
15185
15186         Avoid test link errors when the modules getopt-gnu, gettext are used.
15187         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
15188         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15189
15190 2009-08-23  Bruno Haible  <bruno@clisp.org>
15191
15192         Fix getdtablesize() on mingw.
15193         * lib/getdtablesize.c (getdtablesize): Implement differently.
15194         * lib/unistd.in.h (getdtablesize): Improve comment.
15195
15196 2009-08-23  Bruno Haible  <bruno@clisp.org>
15197
15198         New module 'mkostemp'.
15199         Based on Ulrich Drepper's 2007-08-10 change in glibc.
15200         * lib/stdlib.in.h (mksotemp): New declaration.
15201         * lib/mkostemp.c: New file, from glibc with modifications.
15202         * lib/tempname.h (GT_FILE): Remove outdated comment.
15203         (gen_tempname): Add flags argument.
15204         * lib/tempname.c (__GT_BIGFILE): Remove macro.
15205         (__GT_FILE): Map to 1.
15206         (small_open, large_open): Remove macros.
15207         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
15208         * lib/mkstemp.c (mkstemp): Update.
15209         * lib/mkdtemp.c (mkdtemp): Likewise.
15210         * m4/mkostemp.m4: New file.
15211         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
15212         HAVE_MKOSTEMP.
15213         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
15214         HAVE_MKOSTEMP.
15215         * modules/mkostemp: New file, based on modules/mkstemp.
15216         * doc/glibc-functions/mkostemp.texi: Mention the new module.
15217         * NEWS: Mention the change.
15218
15219 2009-08-23  Bruno Haible  <bruno@clisp.org>
15220
15221         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
15222         Reported by Eric Blake.
15223
15224 2009-08-23  Bruno Haible  <bruno@clisp.org>
15225
15226         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
15227         Reported by Eric Blake.
15228
15229 2009-08-23  Bruno Haible  <bruno@clisp.org>
15230
15231         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
15232         * modules/pipe2 (Depends-on): Likewise.
15233
15234 2009-08-23  Eric Blake  <ebb9@byu.net>
15235
15236         fcntl-h: add O_TTY_INIT support
15237         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
15238         * tests/test-fcntl-h.c (o): Test it.
15239         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
15240
15241         fcntl-h: rename from fcntl, in preparation for fcntl(2)
15242         * modules/fcntl: Move <fcntl.h> header replacement...
15243         * modules/fcntl-h: ...to new name, so as not to collide with
15244         like-named function.
15245         * tests/test-fcntl.c: Rename...
15246         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
15247         * modules/fcntl-tests: Rename...
15248         * modules/fcntl-h-tests: ...to this.  Update test file name.
15249         * modules/chdir-long (Depends-on): Update clients.
15250         * modules/chdir-safer (Depends-on): Likewise.
15251         * modules/fcntl-safer (Depends-on): Likewise.
15252         * modules/fts (Depends-on): Likewise.
15253         * modules/mkancesdirs (Depends-on): Likewise.
15254         * modules/mkdir-p (Depends-on): Likewise.
15255         * modules/open (Depends-on): Likewise.
15256         * modules/savewd (Depends-on): Likewise.
15257         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
15258         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
15259
15260 2009-08-22  Bruno Haible  <bruno@clisp.org>
15261
15262         * modules/binary-io (License): Relicense under LGPL.
15263         * modules/pipe2 (License): Likewise.
15264
15265 2009-08-22  Bruno Haible  <bruno@clisp.org>
15266
15267         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
15268         return value.
15269         * lib/pipe-filter-gi.c (filter_init): Likewise.
15270         Reported by Eric Blake.
15271
15272 2009-08-22  Bruno Haible  <bruno@clisp.org>
15273
15274         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
15275         * modules/pipe (Depends-on): Add pipe2.
15276
15277 2009-08-22  Bruno Haible  <bruno@clisp.org>
15278
15279         Tests for module 'pipe2'.
15280         * modules/pipe2-tests: New file.
15281         * tests/test-pipe2.c: New file.
15282
15283         New module 'pipe2'.
15284         * lib/unistd.in.h (pipe2): New declaration.
15285         * lib/pipe2.c: New file.
15286         * m4/pipe2.m4: New file.
15287         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
15288         HAVE_PIPE2.
15289         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
15290         * modules/pipe2: New file.
15291         * doc/glibc-functions/pipe2.texi: Mention the new module.
15292
15293 2009-08-22  Bruno Haible  <bruno@clisp.org>
15294
15295         Reference some new glibc functions.
15296         * doc/glibc-functions/accept4.texi: New file.
15297         * doc/glibc-functions/dup3.texi: New file.
15298         * doc/glibc-functions/mkostemp.texi: New file.
15299         * doc/glibc-functions/pipe2.texi: New file.
15300         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
15301         (Glibc sys/socket.h): Refer to accept4.
15302         (Glibc unistd.h): Refer to dup3, pipe2.
15303         Reported by Eric Blake.
15304
15305 2009-08-22  Jim Meyering  <meyering@redhat.com>
15306             Bruno Haible  <bruno@clisp.org>
15307
15308         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
15309         This makes it so packages using automake-1.11's silent-rules option
15310         can print e.g., a single "GEN    configmake.h" line, rather than
15311         the 30+ statements that perform the job.  If you want to see the
15312         actual commands, you can still run "make V=1".
15313         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
15314         so that make output is abbreviated when those variables are defined
15315         appropriately.
15316         * modules/argz: Likewise.
15317         * modules/arpa_inet: Likewise.
15318         * modules/byteswap: Likewise.
15319         * modules/configmake: Likewise.
15320         * modules/dirent: Likewise.
15321         * modules/errno: Likewise.
15322         * modules/fcntl: Likewise.
15323         * modules/float: Likewise.
15324         * modules/fnmatch: Likewise.
15325         * modules/getopt-posix: Likewise.
15326         * modules/glob: Likewise.
15327         * modules/iconv_open: Likewise.
15328         * modules/inttypes: Likewise.
15329         * modules/localcharset: Likewise.
15330         * modules/locale: Likewise.
15331         * modules/math: Likewise.
15332         * modules/netdb: Likewise.
15333         * modules/netinet_in: Likewise.
15334         * modules/poll: Likewise.
15335         * modules/posix_spawnp-tests: Likewise.
15336         * modules/sched: Likewise.
15337         * modules/search: Likewise.
15338         * modules/selinux-h: Likewise.
15339         * modules/signal: Likewise.
15340         * modules/spawn: Likewise.
15341         * modules/stdarg: Likewise.
15342         * modules/stdbool: Likewise.
15343         * modules/stddef: Likewise.
15344         * modules/stdint: Likewise.
15345         * modules/stdio: Likewise.
15346         * modules/stdlib: Likewise.
15347         * modules/string: Likewise.
15348         * modules/strings: Likewise.
15349         * modules/sys_file: Likewise.
15350         * modules/sys_ioctl: Likewise.
15351         * modules/sys_select: Likewise.
15352         * modules/sys_socket: Likewise.
15353         * modules/sys_stat: Likewise.
15354         * modules/sys_time: Likewise.
15355         * modules/sys_times: Likewise.
15356         * modules/sys_utsname: Likewise.
15357         * modules/sys_wait: Likewise.
15358         * modules/sysexits: Likewise.
15359         * modules/time: Likewise.
15360         * modules/unistd: Likewise.
15361         * modules/wchar: Likewise.
15362         * modules/wctype: Likewise.
15363
15364 2009-08-22  Jim Meyering  <meyering@redhat.com>
15365
15366         announce-gen: detect write failure
15367         * build-aux/announce-gen: Add Coda at end.
15368         Remove equivalent-but-more-verbose block at top.
15369
15370 2009-08-19  Akim Demaille  <demaille@gostai.com>
15371
15372         bootstrap: --help to stdout.
15373         * bootstrap (usage): Don't send --help to stderr.
15374         Use a here doc instead of a long string.
15375
15376 2009-08-21  Eric Blake  <ebb9@byu.net>
15377
15378         test-popen-safer: split from test-popen
15379         * tests/test-popen.c (main): Move...
15380         * tests/test-popen.h: ...into new file.
15381         * tests/test-popen-safer2.c: New file.
15382         * modules/popen-tests (Files): Add test-popen.h.
15383         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
15384         Suggested by Bruno Haible.
15385
15386         test-fcntl-safer: split from test-open
15387         * tests/test-open.c (main): Move...
15388         * tests/test-open.h: ...into new file.
15389         * tests/test-fcntl-safer.c: New file.
15390         * modules/open-tests (Files): Add test-open.h.
15391         * modules/fcntl-safer-tests: New file.
15392         Suggested by Bruno Haible.
15393
15394         test-fopen-safer: split from test-fopen
15395         * tests/test-fopen.c (main): Move...
15396         * tests/test-fopen.h: ...into new file.
15397         * tests/test-fopen-safer.c: New file.
15398         * modules/fopen-tests (Files): Add test-fopen.h.
15399         * modules/fopen-safer-tests: New file.
15400         Suggested by Bruno Haible.
15401
15402 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
15403
15404         popen-safer: test O_CLOEXEC at run-time.
15405         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
15406
15407 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
15408
15409         fcntl: move more flags to the header
15410         * lib/cloexec.c: Do not define FD_CLOEXEC here.
15411         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
15412         * lib/fcntl.in.h: Do both things here.
15413
15414 2009-08-21  Jim Meyering  <meyering@redhat.com>
15415
15416         consistently remove $@-t before redirecting to it
15417         * modules/argz: Remove $@-t and $@ before redirecting to the former.
15418         * modules/alloca-opt: Likewise.
15419         * modules/byteswap: Likewise.
15420         * modules/fnmatch: Likewise.
15421         * modules/getopt-posix: Likewise.
15422         * modules/glob: Likewise.
15423         * modules/poll: Likewise.
15424         * modules/posix_spawnp-tests: Likewise.
15425         * modules/sys_socket: Likewise.
15426         * modules/sysexits: Likewise.
15427
15428 2009-08-21  Eric Blake  <ebb9@byu.net>
15429
15430         popen: simplify access to original popen
15431         * lib/popen.c (rpl_popen): No need to worry about popen being a
15432         macro.
15433         Reported by Bruno Haible.
15434
15435 2009-08-20  Eric Blake  <ebb9@byu.net>
15436
15437         build: avoid some compiler warnings
15438         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
15439         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
15440         type.
15441         (new_exclude_segment, excluded_file_pattern_p)
15442         (excluded_file_name_p): Reduce scope.
15443         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
15444         old-style declaration.
15445
15446 2009-08-20  Simon Josefsson  <simon@josefsson.org>
15447
15448         * tests/test-exclude1.sh: Handle Windows EOL.
15449         * tests/test-exclude2.sh: Likewise.
15450         * tests/test-exclude3.sh: Likewise.
15451         * tests/test-exclude4.sh: Likewise.
15452         * tests/test-exclude5.sh: Likewise.
15453         * tests/test-exclude6.sh: Likewise.
15454         * tests/test-exclude7.sh: Likewise.
15455
15456 2009-08-19  Akim Demaille  <demaille@gostai.com>
15457
15458         bootstrap: find sha1sum when named gsha1sum.
15459         * bootstrap (find_tool): New.
15460         ($SHA1SUM): New.
15461         Use it.
15462
15463 2009-08-20  Jim Meyering  <meyering@redhat.com>
15464
15465         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
15466         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
15467         expression that converts "." in a file name to "\." in the resulting
15468         regexp.  Start with a dummy statement, so that prior shell variable
15469         definitions are expanded portably.  Reported by Simon Josefsson.
15470
15471 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
15472
15473         Fix polling for writeability of a screen buffer.
15474         * lib/poll.c: Distinguish input and screen buffers for the
15475         Win32 implementation.
15476         * lib/select.c: Likewise.
15477
15478 2009-08-19  Eric Blake  <ebb9@byu.net>
15479
15480         popen-safer: prevent popen from clobbering std descriptors
15481         * modules/popen-safer: New file.
15482         * lib/popen-safer.c: Likewise.
15483         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
15484         * lib/stdio--.h (popen): Provide override.
15485         * lib/stdio-safer.h (popen_safer): Provide declaration.
15486         * tests/test-popen.c (includes): Partially test this.
15487         * modules/popen-safer-tests: New file, for more tests.
15488         * tests/test-popen-safer.c: Likewise.
15489         * MODULES.html.sh (file stream based Input/Output): Mention it.
15490
15491         tests: test some of the *-safer modules
15492         * modules/fopen-safer (Depends-on): Add fopen.
15493         * modules/fcntl-safer (Depends-on): Add fcntl.
15494         * modules/stdlib-safer (Depends-on): Add stdlib.
15495         (configure.ac): Set indicator.
15496         * modules/unistd-safer (configure.ac): Likewise.
15497         * modules/tmpfile-safer (configure.ac): Likewise.
15498         (Depends-on): Add tmpfile.
15499         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
15500         active.
15501         * tests/test-fopen.c (includes): Test safer versions when they are
15502         in use.
15503         * tests/test-open.c (includes): Likewise.
15504
15505         popen: fix cygwin 1.5 bug when stdin closed
15506         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
15507         * modules/popen: New file.
15508         * modules/popen-tests: Likewise.
15509         * tests/test-popen.c: Likewise.
15510         * m4/popen.m4: Likewise.
15511         * lib/popen.c: Likewise.
15512         * lib/stdio.in.h (popen): New declaration.
15513         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
15514         * modules/stdio (Makefile.am): Likewise.
15515         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
15516
15517 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
15518
15519         maint.mk: give full control over update-copyright exclusions
15520         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
15521         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
15522         (update-copyright): Don't force inclusion of top-level
15523         ChangeLog.  Don't force exclusion of all COPYING files, but make
15524         them the default exclusion instead.
15525
15526 2009-08-16  Bruno Haible  <bruno@clisp.org>
15527
15528         Fix test failures on Solaris 10.
15529         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
15530         tests when Solaris iconv() is used.
15531         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
15532         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
15533         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
15534         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
15535         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
15536
15537 2009-08-16  Bruno Haible  <bruno@clisp.org>
15538
15539         Fix test failures on Solaris 10.
15540         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
15541         'tr' program and pass it as first argument.
15542         * tests/test-pipe-filter-gi1.sh: Likewise.
15543         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
15544         program as first argument.
15545         * tests/test-pipe-filter-gi1.c (main): Likewise.
15546
15547 2009-08-16  Eric Blake  <ebb9@byu.net>
15548
15549         fpurge: fix previous commits
15550         * modules/fpurge (Makefile.am): Make replacement conditional,
15551         partially reverting 2007-04-29 change; missed in previous
15552         attempt.
15553         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
15554         is missing.
15555
15556 2009-08-16  Bruno Haible  <bruno@clisp.org>
15557
15558         Clarify fpurge's effect on the file position.
15559         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
15560         * tests/test-fpurge.c (main): Make a second pass for checking the file
15561         position.
15562
15563 2009-08-16  Bruno Haible  <bruno@clisp.org>
15564
15565         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
15566         declaration of fpurge is missing.
15567         * tests/test-fpurge.c (main): Check that the file has not more contents
15568         than expected. Close the file before removing it.
15569
15570 2009-08-15  Eric Blake  <ebb9@byu.net>
15571
15572         fpurge: don't wrap working cygwin implementation
15573         * lib/fpurge.c (fpurge): Fix comment typo.
15574         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
15575         1.7 to avoid replacement.
15576         * tests/test-fpurge.c (main): Enhance test.
15577
15578 2009-08-15  Eric Blake  <ebb9@byu.net>
15579         and Jim Meyering  <meyering@redhat.com>
15580
15581         test-update-copyright: skip if perl is insufficient
15582         * tests/test-update-copyright.sh: Failure to run maintainer tool
15583         should not cause testsuite failure on cygwin 1.5.
15584
15585 2009-08-14  Eric Blake  <ebb9@byu.net>
15586
15587         doc: mention more functions added in cygwin 1.7.0
15588         * doc/posix-headers/limits.texi (limits.h): Update for recent
15589         cygwin additions.
15590         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
15591         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
15592         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
15593         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
15594         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
15595
15596 2009-08-14  Eric Blake  <ebb9@byu.net>
15597
15598         maint.mk: simplify update-copyright rule
15599         * top/maint.mk (update-copyright-local): Delete, and document how
15600         to do it in cfg.mk instead.
15601         (update-copyright-exclude-regexp): Delete, and document how to do
15602         it in .x-update-copyright instead.
15603         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
15604         exclude ChangeLog.
15605
15606 2009-08-14  Bruno Haible  <bruno@clisp.org>
15607
15608         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
15609
15610 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
15611
15612         maint.mk: support update-copyright-env
15613         * top/maint.mk (update-copyright-env): Define place-holder.
15614         (update-copyright): Expand $(update-copyright-env) before
15615         invoking update-copyright.
15616
15617 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
15618
15619         update-copyright: implement forced reformatting
15620         * build-aux/update-copyright: Implement and document
15621         UPDATE_COPYRIGHT_FORCE.
15622         * tests/test-update-copyright.sh: Test it.
15623
15624 2009-08-14  Eric Blake  <ebb9@byu.net>
15625         and Bruno Haible  <bruno@clisp.org>
15626
15627         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
15628         * tests/test-locale.c: Revert previous patch related to NULL.
15629         * tests/test-stdio.c: Likewise.
15630         * tests/test-stdlib.c: Likewise.
15631         * tests/test-string.c: Likewise.
15632         * tests/test-unistd.c: Likewise.
15633         * modules/time-tests (Depends-on): Add verify.
15634         * modules/wchar-tests (Depends-on): Likewise.
15635         * tests/test-time.c: Test for NULL compliance.
15636         * tests/test-wchar.c: Likewise.
15637         * modules/locale (Depends-on): Add stddef.
15638         * modules/stdio (Depends-on): Likewise.
15639         * modules/stdlib (Depends-on): Likewise.
15640         * modules/string (Depends-on): Likewise.
15641         * modules/time (Depends-on): Likewise.
15642         * modules/unistd (Depends-on): Likewise.
15643         * modules/wchar (Depends-on): Likewise.
15644         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
15645         * lib/stdlib.in.h (includes): Likewise.
15646         * lib/string.in.h (includes): Likewise.
15647         * lib/time.in.h (includes): Likewise.
15648         * lib/unistd.in.h (includes): Likewise.
15649         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
15650         replaced.
15651         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
15652         * m4/stddef_h.m4: New file.
15653         * modules/stddef: Likewise.
15654         * lib/stddef.in.h: Likewise.
15655         * modules/stddef-tests: Likewise.
15656         * tests/test-stddef.c: Likewise.
15657         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
15658         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
15659         * doc/posix-headers/locale.texi (locale.h): Likewise.
15660         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
15661         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
15662         * doc/posix-headers/string.texi (string.h): Likewise.
15663         * doc/posix-headers/time.texi (time.h): Likewise.
15664         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
15665         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
15666
15667 2009-08-14  Eric Blake  <ebb9@byu.net>
15668
15669         doc: improve git diff of texinfo files
15670         * .gitattributes: Add rule for *.texi files, with hint on how to
15671         use it.
15672         Copied from m4, and based on a report by Bruno Haible.
15673
15674 2009-08-14  Bruno Haible  <bruno@clisp.org>
15675
15676         Disable multithread support by default on Cygwin 1.5.x for real.
15677         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
15678
15679 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
15680
15681         update-copyright: much ado about intervals
15682         * build-aux/update-copyright: Implement and document
15683         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
15684         of copyright year intervals.
15685         Also, document UPDATE_COPYRIGHT_YEAR.
15686         * tests/test-update-copyright.sh: Test it.
15687
15688         update-copyright: convert 2-digit to 4-digit years
15689         * build-aux/update-copyright: Implement and document.
15690         * tests/test-update-copyright.sh: Update.
15691
15692 2009-08-14  Jim Meyering  <meyering@redhat.com>
15693
15694         test-exclude: avoid coreutils "make check" failure
15695         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
15696         just as in test-argmatch.c.
15697
15698 2009-08-13  Eric Blake  <ebb9@byu.net>
15699
15700         test-dup2: fix bad assumption
15701         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
15702         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
15703
15704         test-version-etc: fix CRLF portability issue
15705         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
15706         recognize \r.
15707         * tests/test-argp-version-etc-1.sh: Likewise.
15708
15709         getopt: update client modules
15710         * modules/argp (Depends-on): Use getopt-gnu.
15711         * modules/git-merge-changelog (Depends-on): Likewise.
15712         * modules/long-options (Depends-on): Likewise.
15713         * modules/xstrtol (Depends-on): Likewise.
15714
15715 2009-08-13  Simon Josefsson  <simon@josefsson.org>
15716
15717         * tests/test-version-etc.sh: Don't fail on different
15718         project/version.  Don't fail on CRLF differences.  Rewrite to use
15719         multiple -e instead of multiple sed forks, suggested by Eric Blake
15720         <ebb9@byu.net>.
15721         * tests/test-argp-version-etc-1.sh: Likewise.
15722
15723 2009-08-13  Simon Josefsson  <simon@josefsson.org>
15724
15725         * tests/test-version-etc.sh: Don't fail on different
15726         project/version.
15727
15728 2009-08-12  Bruno Haible  <bruno@clisp.org>
15729
15730         Tests for modules 'getopt-posix', 'getopt-gnu'.
15731         * modules/getopt-posix-tests: New file.
15732         * tests/test-getopt.c: New file.
15733         * tests/test-getopt.h: New file.
15734         * tests/test-getopt_long.h: New file.
15735
15736         New modules 'getopt-posix', 'getopt-gnu'.
15737         * modules/getopt-gnu: New file, renamed from modules/getopt.
15738         * modules/getopt-posix: New file.
15739         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
15740         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
15741         (gl_GETOPT): Remove macro.
15742         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
15743         Disable the test against BSD systems that declare optreset. Test
15744         against mingw bug. Test against lack of support of optional arguments
15745         on many platforms.
15746         * doc/glibc-headers/getopt.texi: Update module name and list of
15747         relevant platforms.
15748         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
15749         'getopt-gnu' and more portability problems.
15750         * NEWS: Mention the changes.
15751
15752 2009-08-12  Bruno Haible  <bruno@clisp.org>
15753
15754         Ensure that optarg etc. get declared by <unistd.h>.
15755         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
15756         AC_USE_SYSTEM_EXTENSIONS.
15757         * modules/getopt (Depends-on): Add 'extensions'.
15758
15759 2009-08-12  Bruno Haible  <bruno@clisp.org>
15760
15761         Avoid test link errors.
15762         * modules/pipe-filter-ii-tests (Makefile.am): Define
15763         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
15764         * modules/pipe-filter-gi-tests (Makefile.am): Define
15765         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
15766         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15767
15768 2009-08-12  Bruno Haible  <bruno@clisp.org>
15769
15770         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
15771         gl_GETOPT_SUBSTITUTE before.
15772         (gl_GETOPT): Use it.
15773         * m4/argp.m4 (gl_ARGP): Update.
15774         Reported by Sergey Poznyakoff.
15775
15776         * m4/getopt.m4: Reorder macros.
15777         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
15778         (gl_GETOPT_SUBSTITUTE): Remove macro.
15779
15780 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
15781
15782         Minor improvement in gitlog-to-changelog
15783
15784         * build-aux/gitlog-to-changelog: New option `--format' makes
15785         output format string configurable.
15786
15787 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
15788
15789         Optimize exclude: use hash tables for non-wildcard patterns.
15790
15791         * lib/exclude.c: Include hash.h and mbuiter.h
15792         (struct exclude_pattern, exclude_segment): New data types.
15793         (struct exclude): Rewrite.
15794         (fnmatch_pattern_has_wildcards): New function.
15795         (new_exclude_segment, free_exclude_segment): New functions.
15796         (excluded_file_pattern_p, excluded_file_name_p): New functions.
15797         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
15798         * lib/exclude.h (is_fnmatch_pattern): New prototype.
15799         * modules/exclude: Depend on hash and mbuiter.
15800
15801         * modules/exclude-tests: New file.
15802         * tests/test-exclude.c: New file.
15803         * tests/test-exclude1.sh: New file.
15804         * tests/test-exclude2.sh: New file.
15805         * tests/test-exclude3.sh: New file.
15806         * tests/test-exclude4.sh: New file.
15807         * tests/test-exclude5.sh: New file.
15808         * tests/test-exclude6.sh: New file.
15809         * tests/test-exclude7.sh: New file.
15810
15811 2009-08-12  Bruno Haible  <bruno@clisp.org>
15812
15813         Ensure that getopt() gets declared by <unistd.h>.
15814         * lib/unistd.in.h: Conditionally include getopt.h.
15815         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
15816         Set GNULIB_UNISTD_H_GETOPT.
15817         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15818         GNULIB_UNISTD_H_GETOPT.
15819         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
15820
15821 2009-08-12  Bruno Haible  <bruno@clisp.org>
15822
15823         Clarify logic.
15824         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
15825         gl_replace_getopt instead of GETOPT_H.
15826
15827 2009-08-12  Bruno Haible  <bruno@clisp.org>
15828
15829         * m4/getopt.m4: Add comments.
15830
15831 2009-08-12  Bruno Haible  <bruno@clisp.org>
15832
15833         Disable multithread support by default on Cygwin 1.5.x.
15834         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
15835         set gl_use_threads=no if not specified otherwise.
15836
15837 2009-08-11  Bruno Haible  <bruno@clisp.org>
15838
15839         Avoid compilation error on NetBSD 5.0.
15840         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
15841         * tests/test-stdio.c: Likewise.
15842         * tests/test-stdlib.c: Likewise.
15843         * tests/test-string.c: Likewise.
15844         * tests/test-unistd.c: Likewise.
15845         Reported by Greg Troxel <gdt@ir.bbn.com>
15846         at <https://savannah.gnu.org/support/?106973>.
15847
15848 2009-08-11  Bruno Haible  <bruno@clisp.org>
15849
15850         * modules/dup2-tests (Depends-on): Remove close.
15851
15852         Undo 2009-07-19 commit.
15853         * modules/acl-tests (Depends-on): Remove close.
15854         * modules/binary-io-tests (Depends-on): Likewise.
15855         * modules/closein-tests (Depends-on): Likewise.
15856         * modules/flock-tests (Depends-on): Likewise.
15857         * modules/fsync-tests (Depends-on): Likewise.
15858         * modules/lseek-tests (Depends-on): Likewise.
15859         * modules/pipe-tests (Depends-on): Likewise.
15860         * modules/posix_spawn-tests (Depends-on): Likewise.
15861         * modules/posix_spawnp-tests (Depends-on): Likewise.
15862         * modules/stat-time-tests (Depends-on): Likewise.
15863         * modules/yesno-tests (Depends-on): Likewise.
15864
15865 2009-08-10  Bruno Haible  <bruno@clisp.org>
15866
15867         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
15868
15869 2009-08-10  Bruno Haible  <bruno@clisp.org>
15870
15871         Fix a gcc warning.
15872         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
15873
15874 2009-08-10  Bruno Haible  <bruno@clisp.org>
15875
15876         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
15877         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
15878         not only the first time.
15879         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
15880         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
15881         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
15882         is 1, not only the the first time.
15883
15884 2009-08-10  Bruno Haible  <bruno@clisp.org>
15885
15886         Make it possible to use module 'gethostname' without module 'close'.
15887         * lib/unistd.in.h (close): Evoke a link error only if
15888         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
15889         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15890         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
15891         * modules/unistd (Makefile.am): Substitute
15892         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
15893         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
15894         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
15895         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
15896         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
15897         * modules/sys_ioctl (Makefile.am): Substitute
15898         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
15899         * modules/socket (configure.ac): On native Windows, set
15900         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
15901         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
15902         Reported by Sam Steingold <sds@gnu.org>.
15903
15904 2009-08-10  Bruno Haible  <bruno@clisp.org>
15905
15906         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
15907         * modules/ioctl (configure.ac): Likewise.
15908
15909 2009-08-10  Bruno Haible  <bruno@clisp.org>
15910
15911         Avoid collision between gnulib wrapper and libintl wrapper.
15912         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
15913         already defined in intl/printf.c.
15914         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
15915         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
15916
15917 2009-08-09  Bruno Haible  <bruno@clisp.org>
15918
15919         Make <sys/select.h> really self-contained, also on Solaris 10.
15920         * lib/sys_select.in.h: Include <string.h>.
15921         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
15922         Solaris 10 problem.
15923         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
15924         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
15925         Reported by Jim Meyering.
15926
15927 2009-08-09  Bruno Haible  <bruno@clisp.org>
15928
15929         Avoid warnings from 'aclocal' that are due to a use of macro name
15930         AM_XGETTEXT_OPTION that is not defined in automake.
15931         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
15932         automake.
15933         * modules/error (configure.ac): Likewise.
15934         * modules/propername (configure.ac): Likewise.
15935         * modules/vasprintf (configure.ac): Likewise.
15936         * modules/verror (configure.ac): Likewise.
15937         * modules/xprintf (configure.ac): Likewise.
15938         * modules/xvasprintf (configure.ac): Likewise.
15939
15940 2009-08-08  Bruno Haible  <bruno@clisp.org>
15941
15942         Avoid compilation error in C++ mode.
15943         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
15944         Reported by Sam Steingold <sds@gnu.org>.
15945
15946 2009-08-08  Bruno Haible  <bruno@clisp.org>
15947
15948         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
15949         for the various Unix platforms.
15950         * doc/posix-headers/limits.texi: Update platforms list regarding
15951         HOST_NAME_MAX.
15952         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15953
15954 2009-08-07  Jim Meyering  <meyering@redhat.com>
15955
15956         selinux-at: fix typo in a comment
15957         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
15958         Spotted by Paolo Bonzini.
15959
15960         selinux-at: remove redundant m4 code, add documentation
15961         * modules/selinux-at (configure.ac): Remove redundant code.
15962         LIB_SELINUX is already set via the dependent module, selinux-h.
15963         (Include): Add quotes around selinux-at.h.
15964         * lib/selinux-at.h: Add documentation.
15965         Reported by Bruno Haible in
15966         http://marc.info/?l=gnulib-bug&m=124958988300749
15967
15968 2009-08-07  Bruno Haible  <bruno@clisp.org>
15969
15970         Avoid link error on MacOS X 10.3 and 10.4.
15971         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
15972         on non-ELF systems.
15973         * lib/argp-pv.c (argp_program_version): Likewise.
15974         Reported by Simon Josefsson.
15975
15976 2009-08-07  Simon Josefsson  <simon@josefsson.org>
15977
15978         * tests/test-version-etc.sh: Use $EXEEXT.
15979
15980 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
15981
15982         update-copyright: update documentation to point to maint.mk
15983         * build-aux/update-copyright: Here.
15984
15985 2009-08-06  Jim Meyering  <meyering@redhat.com>
15986
15987         maint.mk: support update-copyright-local
15988         * top/maint.mk (update-copyright-local): Define place-holder.
15989         (update-copyright): Depend on $(update-copyright-local).
15990
15991 2009-08-06  Jim Meyering  <meyering@redhat.com>
15992
15993         selinux-at: new module
15994         Initially written for coreutils, this module will soon be
15995         used by findutils, too.
15996         * MODULES.html.sh [Misc]: Add selinux-at.
15997         * lib/selinux-at.h: New file, from coreutils.
15998         * lib/selinux-at.c: Likewise.
15999         * modules/selinux-at: Likewise.
16000         (License): Change from LGPL to GPL, since it depends
16001         on the GPL'd openat module.
16002
16003         doc: update README
16004         * README: Remove references to cogito.
16005         Remove cvs-repo-updating instructions from 2007.
16006         Don't imply that CVS is better if you have limited disk space.
16007
16008 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
16009
16010         update-copyright: support C-style comments
16011         * build-aux/update-copyright: Implement and document.
16012         * tests/test-update-copyright.sh: Test.
16013
16014 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
16015
16016         update-copyright: support omitted "(C)"
16017         * build-aux/update-copyright: Implement and document.  Also,
16018         allow variable whitespace before "(C)".
16019         * tests/test-update-copyright.sh: Test.
16020
16021 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
16022
16023         update-copyright: don't trip on non-FSF copyright statements
16024         * build-aux/update-copyright: Fix so that the first correctly
16025         formatted FSF copyright statement is recognized no matter what
16026         appears before it.  Update documentation.
16027         * tests/test-update-copyright.sh: Test that.
16028
16029 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
16030
16031         update-copyright: clean up code a little
16032         * build-aux/update-copyright: Append "_re" to the name of any
16033         variable holding a regular expression.
16034         Replace "old" and "new" with "stmt" in variable names.
16035         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
16036         handled correctly.
16037         Format code more consistently.
16038
16039 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
16040
16041         update-copyright-tests: improve portability
16042         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
16043         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
16044
16045 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
16046
16047         update-copyright: support @copyright{} and &copy;
16048         * build-aux/update-copyright: Implement and document.
16049         * tests/test-update-copyright.sh: Test.
16050
16051 2009-08-04  Jim Meyering  <meyering@redhat.com>
16052
16053         update-copyright-tests: correctly test EOL=\r\n handling
16054         * tests/test-update-copyright.sh: Put \r at the end of some lines
16055         for the dos-eol tests.  Based on a patch by Joel E. Denny.
16056
16057         maint.mk: make update-copyright exclusion list more configurable
16058         * top/maint.mk (update-copyright): Default to excluding COPYING,
16059         but allow an override, in case someone does want to update that file.
16060
16061         maint.mk: don't update copyright date in COPYING
16062         * top/maint.mk (update-copyright): Exclude COPYING.
16063
16064         maint.mk: add a copyright-updating rule
16065         * top/maint.mk (update-copyright): New rule.
16066         Derived from coreutils/Makefile.am.
16067
16068         update-copyright: rename some variables
16069         * build-aux/update-copyright: Rename a few variables for clarity.
16070         Tweak syntax.  List Joel E. Denny as coauthor.
16071
16072 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
16073
16074         update-copyright: fix bug for 2-digit last year and add tests
16075         * build-aux/update-copyright: Fix bug.
16076         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
16077         specified.
16078         * modules/update-copyright-tests: New
16079         * tests/test-update-copyright.sh: New.
16080
16081 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
16082
16083         update-copyright: handle leading tabs in line prefix
16084         * build-aux/update-copyright: Count leading tabs as 8 spaces
16085         when computing margin.  This helps with the formatting of
16086         ChangeLogs, for example.
16087         Fix documentation a little.
16088
16089 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
16090
16091         update-copyright: support EOL=\r\n
16092         * build-aux/update-copyright: Implement that.
16093
16094 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
16095
16096         update-copyright: automatically format copyright statements
16097         * build-aux/update-copyright: Implement that.
16098         Also, be a little more predictable and safer by always failing
16099         when the full copyright format is not perfectly recognized as an
16100         unbroken whole.  Discussed at
16101         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
16102         Rewrite documentation.
16103
16104 2009-08-03  Bruno Haible  <bruno@clisp.org>
16105
16106         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
16107
16108 2009-08-02  Bruno Haible  <bruno@clisp.org>
16109
16110         Tests for module 'uname'.
16111         * modules/uname-tests: New file.
16112         * tests/test-uname.c: New file.
16113
16114         New module 'uname'.
16115         * lib/uname.c: New file.
16116         * m4/uname.m4: New file.
16117         * modules/uname: New file.
16118         * doc/posix-functions/uname.texi: Mention the new module.
16119
16120 2009-08-02  Bruno Haible  <bruno@clisp.org>
16121
16122         Tests for module 'sys_utsname'.
16123         * modules/sys_utsname-tests: New file.
16124         * tests/test-sys_utsname.c: New file.
16125
16126         New module 'sys_utsname'.
16127         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
16128         * m4/sys_utsname_h.m4: New file.
16129         * modules/sys_utsname: New file.
16130         * doc/posix-headers/sys_utsname.texi: Mention the new module.
16131
16132 2009-08-02  Bruno Haible  <bruno@clisp.org>
16133
16134         Implicitly initialize the sockets library.
16135         * lib/gethostname.c: Include sockets.h.
16136         (rpl_gethostname): Invoke gl_sockets_startup.
16137         * lib/socket.c: Include sockets.h.
16138         (rpl_socket): Invoke gl_sockets_startup.
16139         * modules/gethostname (Depends-on): Add sockets.
16140         * modules/socket (Depends-on): Likewise.
16141         * tests/test-poll.c: Don't include sockets.h.
16142         (main): Don't invoke gl_sockets_startup.
16143         * tests/test-select.c: Don't include sockets.h.
16144         (main): Don't invoke gl_sockets_startup.
16145
16146 2009-08-02  Bruno Haible  <bruno@clisp.org>
16147
16148         Allow multiple calls to gl_sockets_startup.
16149         * lib/sockets.c (initialized_sockets_version): New variable.
16150         (gl_sockets_startup): Do nothing if already called for this or a higher
16151         version.
16152         (gl_sockets_cleanup): Reset initialized_sockets_version.
16153
16154 2009-08-03  Simon Josefsson  <simon@josefsson.org>
16155
16156         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
16157         different project/version.
16158
16159 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
16160             Bruno Haible  <bruno@clisp.org>
16161
16162         Tests for module 'pipe-filter-gi'.
16163         * modules/pipe-filter-gi-tests: New file.
16164         * tests/test-pipe-filter-gi1.sh: New file.
16165         * tests/test-pipe-filter-gi1.c: New file.
16166         * tests/test-pipe-filter-gi2.sh: New file.
16167         * tests/test-pipe-filter-gi2-main.c: New file.
16168         * tests/test-pipe-filter-gi2-child.c: New file.
16169
16170         New module 'pipe-filter-gi'.
16171         * lib/pipe-filter-gi.c: New file.
16172         * modules/pipe-filter-gi: New file.
16173
16174 2009-08-02  Bruno Haible  <bruno@clisp.org>
16175             Paolo Bonzini  <bonzini@gnu.org>
16176
16177         Tests for module 'pipe-filter-ii'.
16178         * modules/pipe-filter-ii-tests: New file.
16179         * tests/test-pipe-filter-ii1.sh: New file.
16180         * tests/test-pipe-filter-ii1.c: New file.
16181         * tests/test-pipe-filter-ii2.sh: New file.
16182         * tests/test-pipe-filter-ii2-main.c: New file.
16183         * tests/test-pipe-filter-ii2-child.c: New file.
16184
16185         New module 'pipe-filter-ii'.
16186         * lib/pipe-filter.h: New file.
16187         * lib/pipe-filter-ii.c: New file.
16188         * lib/pipe-filter-aux.h: New file.
16189         * modules/pipe-filter-ii: New file.
16190
16191 2009-08-02  Simon Josefsson  <simon@josefsson.org>
16192
16193         * lib/gc-libgcrypt.c: Change copyright to FSF.
16194         * lib/gc-gnulib.c: Likewise.
16195
16196 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
16197
16198         * lib/gethostname.c: Include limits.h.
16199
16200 2009-08-02  Simon Josefsson  <simon@josefsson.org>
16201             Bruno Haible  <bruno@clisp.org>
16202
16203         Ensure HOST_NAME_MAX as part of the gethostname module.
16204         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
16205         define also HOST_NAME_MAX.
16206         * tests/test-gethostname.c: Include <limits.h>.
16207         (main): Check also HOST_NAME_MAX.
16208         * doc/posix-headers/limits.texi: Document the mingw problem.
16209
16210 2009-08-02  Bruno Haible  <bruno@clisp.org>
16211
16212         * lib/gethostname.c (gethostname): Fix handling of large len argument.
16213         Add comments.
16214
16215 2009-03-31  Simon Josefsson  <simon@josefsson.org>
16216
16217         * lib/gethostname.c: Add Windows wrapper.
16218         * m4/gethostname.m4: Look for gethostname in -lws2_32.
16219         * modules/gethostname: Depend on sys_socket & errno, for also
16220         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
16221         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
16222
16223 2009-07-31  Jim Meyering  <meyering@redhat.com>
16224
16225         getloadavg: fix symbol name in comment
16226         * lib/getloadavg.c: Correct a typo I introduced when adding
16227         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
16228         Matt Kraai spotted the problem.
16229
16230 2009-07-29  Matt Kraai  <mkraai@beckman.com>
16231
16232         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
16233         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
16234         code also if ! defined N_NAME_POINTER.
16235         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
16236         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
16237         but the n_name member is a 12-byte array.
16238
16239 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
16240
16241         update-copyright: generalize comment handling
16242         * build-aux/update-copyright: Handle copyright statements
16243         within more comment styles.
16244         Document usage.
16245         Report any file with an external copyright holder or parse failure.
16246
16247 2009-07-29  Jim Meyering  <meyering@redhat.com>
16248
16249         mktime: correct setting of REPLACE_MKTIME
16250         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
16251
16252         update-copyright: new module
16253         * modules/update-copyright: New file.
16254         * build-aux/update-copyright: New file.
16255         * MODULES.html.sh (maint+release support): Add update-copyright.
16256
16257 2009-07-27  Bruno Haible  <bruno@clisp.org>
16258
16259         Fix compilation error when <ctime> is used and mktime is replaced.
16260         * lib/time.in.h (mktime): New declaration.
16261         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
16262         REPLACE_MKTIME instead of defining mktime in config.h.
16263         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
16264         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
16265         Reported by Ross McFarland <rwmcfa1@neces.com>.
16266
16267 2009-07-27  Bruno Haible  <bruno@clisp.org>
16268
16269         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
16270         Reported by Matt Kraai <mkraai@beckman.com>.
16271
16272 2009-07-25  Jim Meyering  <meyering@redhat.com>
16273
16274         maint.mk: avoid warnings about missing files
16275         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
16276         diagnostic when .prev-version does not exist.
16277         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
16278         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
16279         nonexistent cfg.mk.
16280         Suggestions from Simon Josefsson.
16281
16282 2009-07-25  Bruno Haible  <bruno@clisp.org>
16283
16284         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
16285         defined as macros. Needed on QNX 6.4.1.
16286         Reported by Matt Kraai <mkraai@beckman.com>.
16287
16288 2009-07-23  Jim Meyering  <meyering@redhat.com>
16289
16290         maint.mk: invoke "make dist" with a working value of XZ_OPT
16291         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
16292
16293 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
16294
16295         Make fseeko.c compile on QNX.
16296         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
16297
16298 2009-07-22  Peter Simons  <simons@cryp.to>
16299
16300         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
16301         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
16302         * lib/md4.h: Likewise.
16303         * lib/md5.h: Likewise.
16304         * lib/sha1.h: Likewise.
16305         * lib/sha256.h: Likewise.
16306         * lib/sha512.h: Likewise.
16307
16308         tests-sha1: don't assign literal string to 'char *' variable
16309         * tests/test-sha1.c (main): Declare locals with "const" to match
16310         attributes of the right hand side.
16311
16312 2009-07-21  Eric Blake  <ebb9@byu.net>
16313
16314         dup2: fix more mingw problems
16315         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
16316         fd to itself.
16317         * doc/posix-functions/dup2.texi (dup2): Document the bug.
16318         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
16319         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
16320         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
16321         care of mingw bugs.
16322
16323 2009-07-21  Jim Meyering  <meyering@redhat.com>
16324
16325         vc-list-files: avoid failure when /bin/sh is dash
16326         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
16327         On some Debian based systems, /bin/sh is a symlink to dash, and running
16328         this command would omit the "/" following each 'tests' prefix:
16329           dash -x build-aux/vc-list-files -C . tests
16330         That is because bash and dash work differently:
16331           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
16332           bash ok
16333           dash odd
16334
16335 2009-07-21  Eric Blake  <ebb9@byu.net>
16336
16337         dup2-tests: test previous patch
16338         * modules/dup2-tests: New file.
16339         * tests/test-dup2.c: Likewise.
16340         * tests/test-open.c (main): Avoid unspecified behavior.
16341         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
16342         test.
16343
16344         dup2: work around mingw and cygwin 1.5 bug
16345         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
16346         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
16347         * modules/unistd (Makefile.am): Substitute it.
16348         * lib/unistd.in.h (dup2): Declare the replacement.
16349         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
16350         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
16351         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
16352         * modules/execute (Depends-on): Add dup2.
16353         * modules/fseterr (Depends-on): Likewise.
16354         * modules/pipe (Depends-on): Likewise.
16355         * modules/posix_spawn-internal (Depends-on): Likewise.
16356
16357 2009-07-21  Bruno Haible  <bruno@clisp.org>
16358
16359         * modules/.gitattributes: New file.
16360
16361 2009-07-20  Bruno Haible  <bruno@clisp.org>
16362
16363         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
16364         (main): Use it.
16365
16366 2009-07-20  Eric Blake  <ebb9@byu.net>
16367
16368         test-pipe: make a bit more robust.
16369         * tests/test-pipe.c (myerr): Allow error messages regardless of
16370         what we do to stderr.
16371         (test_pipe): Rearrange to avoid deadlock.
16372         (child_main): Try a larger read, to ensure we avoided deadlock.
16373         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
16374         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
16375         if misused.
16376
16377 2009-07-19  Jim Meyering  <meyering@redhat.com>
16378
16379         fts: avoid false-positive cycle-detection
16380         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
16381         for each new command line argument.
16382
16383 2009-07-19  Bruno Haible  <bruno@clisp.org>
16384
16385         Fix build error on mingw with the modules sys_select and unistd.
16386         * modules/acl-tests (Depends-on): Add close.
16387         * modules/binary-io-tests (Depends-on): Likewise.
16388         * modules/closein-tests (Depends-on): Likewise.
16389         * modules/flock-tests (Depends-on): Likewise.
16390         * modules/fsync-tests (Depends-on): Likewise.
16391         * modules/lseek-tests (Depends-on): Likewise.
16392         * modules/pipe-tests (Depends-on): Likewise.
16393         * modules/posix_spawn-tests (Depends-on): Likewise.
16394         * modules/posix_spawnp-tests (Depends-on): Likewise.
16395         * modules/stat-time-tests (Depends-on): Likewise.
16396         * modules/yesno-tests (Depends-on): Likewise.
16397
16398 2009-07-19  Bruno Haible  <bruno@clisp.org>
16399
16400         Unify conditionals.
16401         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
16402         macros, not at the compiler macros.
16403         * lib/pipe.c: Likewise.
16404         * lib/execute.c: Likewise.
16405         * lib/spawni.c: Likewise.
16406
16407 2009-07-19  Bruno Haible  <bruno@clisp.org>
16408
16409         Fix handling of closed stdin/stdout/stderr on mingw.
16410         * lib/w32spawn.h: Include unistd.h.
16411         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
16412         file descriptor with O_NOINHERIT flag.
16413         (fd_safer_noinherit): New function, based on fd-safer.c.
16414         (dup_safer_noinherit): New function, based on dup-safer.c.
16415         (undup_safer_noinherit): New function.
16416         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
16417         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
16418         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
16419         instead of fd_safer.
16420         * tests/test-pipe.c: Include <windows.h>.
16421         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
16422
16423         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
16424         from main.
16425         (test_pipe): Pass an extra argument for disambiguation.
16426         (main): Invoke parent_main or child_main.
16427
16428         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
16429         consistently.
16430
16431 2009-07-18  Eric Blake  <ebb9@byu.net>
16432
16433         test-pipe: fix mingw build
16434         * tests/test-pipe.c (main): Avoid fcntl on mingw.
16435
16436 2009-07-18  Bruno Haible  <bruno@clisp.org>
16437
16438         * modules/pipe-tests (Makefile.am): Fix typo.
16439
16440 2009-07-18  Eric Blake  <ebb9@byu.net>
16441
16442         error: fix mingw build
16443         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
16444         Reported by Bruno Haible.
16445
16446         error: avoid undefined use of stdout
16447         * lib/error.c (error, error_at_line): Check that fd 1 is open
16448         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
16449         is handling faults and the close_stdout module wants to report the
16450         detection of closed stdout as an error.
16451
16452 2009-07-17  Eric Blake  <ebb9@byu.net>
16453
16454         pipe: be robust in face of closed fds
16455         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
16456         should cause child to misbehave.
16457         * modules/pipe-tests: New module.
16458         * tests/test-pipe.c: New file.
16459         * tests/test-pipe.sh: New file.
16460         Reported by Akim Demaille.
16461
16462 2009-07-14  Bruno Haible  <bruno@clisp.org>
16463
16464         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
16465         Reported by anonymous kc.
16466
16467 2009-07-07  Jim Meyering  <meyering@redhat.com>
16468
16469         maint.mk: don't look for translatable strings in *.m4 or *.mk
16470         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
16471         when searching for translatable strings.
16472
16473 2009-07-05  Jim Meyering  <meyering@redhat.com>
16474
16475         remove superfluous parentheses in STREQ definition
16476         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
16477         * lib/getugroups.c (STREQ): Likewise.
16478         * lib/fnmatch.c (STREQ): Likewise.
16479         Spotted by Bruno Haible.
16480
16481 2009-07-04  Jim Meyering  <meyering@redhat.com>
16482
16483         argv-iter: new module
16484         * MODULES.html.sh: Add argv-iter.
16485         * lib/argv-iter.c, lib/argv-iter.h: New files.
16486         * modules/argv-iter: New file.
16487         * modules/argv-iter-tests: New file.
16488         * tests/test-argv-iter.c: Test it.
16489
16490 2009-07-04  Bruno Haible  <bruno@clisp.org>
16491
16492         Fix assertion.
16493         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
16494         contains more exact copies of a given entry than file2, leave the extra
16495         copies unpaired rather than aborting.
16496         Reported by Eric Blake.
16497
16498 2009-07-02  Bruno Haible  <bruno@clisp.org>
16499
16500         Speedup git-merge-changelog for git cherry-pick.
16501         * lib/git-merge-changelog.c (struct entries_mapping): New type.
16502         (entries_mapping_get): New function, extracted from compute_mapping.
16503         (entries_mapping_reverse_get): New function.
16504         (compute_mapping): Add a 'full' argument. Return the result in a
16505         'struct entries_mapping'.
16506         (main): Update. Access the mappings through entries_mapping_get.
16507         Reported by Eric Blake.
16508
16509 2009-07-02  Bruno Haible  <bruno@clisp.org>
16510
16511         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
16512         best_i.
16513
16514 2009-07-02  Bruno Haible  <bruno@clisp.org>
16515
16516         Speed up approximate search for matching ChangeLog entries.
16517         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
16518         argument. Call fstrcmp_bounded instead of fstrcmp.
16519         (compute_mapping, try_split_merged_entry, main): Update callers.
16520
16521 2009-07-02  Bruno Haible  <bruno@clisp.org>
16522
16523         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
16524
16525 2009-06-30  Bruno Haible  <bruno@clisp.org>
16526
16527         Reduce the number of uc_is_cased calls.
16528         * lib/unicase.h (casing_suffix_context_t): Add
16529         'first_char_except_ignorable' field.
16530         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
16531         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
16532         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
16533         Update initializer.
16534         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
16535         case-ignorable characters.
16536         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
16537         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
16538         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
16539         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
16540         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
16541
16542 2009-06-30  Bruno Haible  <bruno@clisp.org>
16543
16544         Tests for module 'unicase/ignorable'.
16545         * modules/unicase/ignorable-tests: New file.
16546         * tests/unicase/test-ignorable.c: New file, generated by
16547         gen-uni-tables.
16548
16549         Tests for module 'unicase/cased'.
16550         * modules/unicase/cased-tests: New file.
16551         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
16552         * tests/unicase/test-predicate-part1.h: New file, derived from
16553         tests/unictype/test-predicate-part1.h.
16554         * tests/unicase/test-predicate-part2.h: New file, same as
16555         tests/unictype/test-predicate-part2.h.
16556
16557         Fix evaluation of "Before C" condition of FINAL_SIGMA.
16558         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
16559         (output_casing_properties): New function.
16560         (main): Call it.
16561         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
16562         * lib/unicase/cased.c: Include unictype/bitmap.h.
16563         (uc_is_cased): Define through a bitmap lookup.
16564         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
16565         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
16566         (uc_is_case_ignorable): Define through a bitmap lookup.
16567         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
16568         lib/unictype/bitmap.h.
16569         (Depends-on): Add inline. Clean up.
16570         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
16571         lib/unictype/bitmap.h.
16572         (Depends-on): Add inline. Clean up.
16573         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
16574         recognition.
16575         * tests/unicase/test-u16-tolower.c (main): Likewise.
16576         * tests/unicase/test-u32-tolower.c (main): Likewise.
16577
16578 2009-06-30  Bruno Haible  <bruno@clisp.org>
16579
16580         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
16581         * lib/unicase/u16-casemap.c: Likewise.
16582         * lib/unicase/u32-casemap.c: Likewise.
16583
16584 2009-06-29  Bruno Haible  <bruno@clisp.org>
16585
16586         Define u32_casefold as a wrapper around u32_ct_casefold.
16587         * lib/unicase/u32-casefold.c: Update.
16588         * modules/unicase/u32-casefold (Depends-on): Add
16589         unicase/u32-ct-casefold, unicase/empty-prefix-context,
16590         unicase/empty-suffix-context. Clean up.
16591
16592         Define u16_casefold as a wrapper around u16_ct_casefold.
16593         * lib/unicase/u16-casefold.c: Update.
16594         * modules/unicase/u16-casefold (Depends-on): Add
16595         unicase/u16-ct-casefold, unicase/empty-prefix-context,
16596         unicase/empty-suffix-context. Clean up.
16597
16598         Define u8_casefold as a wrapper around u8_ct_casefold.
16599         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
16600         * lib/unicase/u8-casefold.c: Update.
16601         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
16602         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
16603
16604         Define u32_totitle as a wrapper around u32_ct_totitle.
16605         * lib/unicase/u32-totitle.c: Update.
16606         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
16607         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
16608
16609         Define u16_totitle as a wrapper around u16_ct_totitle.
16610         * lib/unicase/u16-totitle.c: Update.
16611         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
16612         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
16613
16614         Define u8_totitle as a wrapper around u8_ct_totitle.
16615         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
16616         functions.
16617         (FUNC): Delegate to U_CT_TOTITLE.
16618         * lib/unicase/u8-totitle.c: Update.
16619         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
16620         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
16621
16622         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
16623         invocation.
16624         * modules/unicase/u32-tolower (Depends-on): Add
16625         unicase/empty-prefix-context, unicase/empty-suffix-context.
16626
16627         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
16628         invocation.
16629         * modules/unicase/u16-tolower (Depends-on): Add
16630         unicase/empty-prefix-context, unicase/empty-suffix-context.
16631
16632         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
16633         * modules/unicase/u8-tolower (Depends-on): Add
16634         unicase/empty-prefix-context, unicase/empty-suffix-context.
16635
16636         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
16637         invocation.
16638         * modules/unicase/u32-toupper (Depends-on): Add
16639         unicase/empty-prefix-context, unicase/empty-suffix-context.
16640
16641         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
16642         invocation.
16643         * modules/unicase/u16-toupper (Depends-on): Add
16644         unicase/empty-prefix-context, unicase/empty-suffix-context.
16645
16646         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
16647         * modules/unicase/u8-toupper (Depends-on): Add
16648         unicase/empty-prefix-context, unicase/empty-suffix-context.
16649
16650         New module 'unicase/u32-ct-casefold'.
16651         * lib/unicase/u32-ct-casefold.c: New file.
16652         * modules/unicase/u32-ct-casefold: New file.
16653
16654         New module 'unicase/u16-ct-casefold'.
16655         * lib/unicase/u16-ct-casefold.c: New file.
16656         * modules/unicase/u16-ct-casefold: New file.
16657
16658         New module 'unicase/u8-ct-casefold'.
16659         * lib/unicase/u8-ct-casefold.c: New file.
16660         * lib/unicase/u-ct-casefold.h: New file, derived from
16661         lib/unicase/u-casefold.h.
16662         * modules/unicase/u8-ct-casefold: New file.
16663
16664         New module 'unicase/u32-ct-totitle'.
16665         * lib/unicase/u32-ct-totitle.c: New file.
16666         * modules/unicase/u32-ct-totitle: New file.
16667
16668         New module 'unicase/u16-ct-totitle'.
16669         * lib/unicase/u16-ct-totitle.c: New file.
16670         * modules/unicase/u16-ct-totitle: New file.
16671
16672         New module 'unicase/u8-ct-totitle'.
16673         * lib/unicase/u8-ct-totitle.c: New file.
16674         * lib/unicase/u-ct-totitle.h: New file, derived from
16675         lib/unicase/u-totitle.h.
16676         * modules/unicase/u8-ct-totitle: New file.
16677
16678         New module 'unicase/u32-ct-tolower'.
16679         * lib/unicase/u32-ct-tolower.c: New file.
16680         * modules/unicase/u32-ct-tolower: New file.
16681
16682         New module 'unicase/u16-ct-tolower'.
16683         * lib/unicase/u16-ct-tolower.c: New file.
16684         * modules/unicase/u16-ct-tolower: New file.
16685
16686         New module 'unicase/u8-ct-tolower'.
16687         * lib/unicase/u8-ct-tolower.c: New file.
16688         * modules/unicase/u8-ct-tolower: New file.
16689
16690         New module 'unicase/u32-ct-toupper'.
16691         * lib/unicase/u32-ct-toupper.c: New file.
16692         * modules/unicase/u32-ct-toupper: New file.
16693
16694         New module 'unicase/u16-ct-toupper'.
16695         * lib/unicase/u16-ct-toupper.c: New file.
16696         * modules/unicase/u16-ct-toupper: New file.
16697
16698         New module 'unicase/u8-ct-toupper'.
16699         * lib/unicase/u8-ct-toupper.c: New file.
16700         * modules/unicase/u8-ct-toupper: New file.
16701
16702         Add context arguments to u*_casemap functions.
16703         * lib/unicase/unicasemap.h: Include unicase.h.
16704         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
16705         suffix_context arguments.
16706         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
16707         functions.
16708         (FUNC): Add prefix_context and suffix_context arguments. Use
16709         uc_is_cased and uc_is_case_ignorable.
16710         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
16711         * lib/unicase/u16-casemap.c: Likewise.
16712         * lib/unicase/u32-casemap.c: Likewise.
16713         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
16714         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
16715         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
16716         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
16717         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
16718         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
16719
16720         New module 'unicase/u32-suffix-context'.
16721         * lib/unicase/u32-suffix-context.c: New file.
16722         * modules/unicase/u32-suffix-context: New file.
16723
16724         New module 'unicase/u16-suffix-context'.
16725         * lib/unicase/u16-suffix-context.c: New file.
16726         * modules/unicase/u16-suffix-context: New file.
16727
16728         New module 'unicase/u8-suffix-context'.
16729         * lib/unicase/u8-suffix-context.c: New file.
16730         * lib/unicase/u-suffix-context.h: New file.
16731         * modules/unicase/u8-suffix-context: New file.
16732
16733         New module 'unicase/empty-suffix-context'.
16734         * lib/unicase/empty-suffix-context.c: New file.
16735         * modules/unicase/empty-suffix-context: New file.
16736
16737         New module 'unicase/u32-prefix-context'.
16738         * lib/unicase/u32-prefix-context.c: New file.
16739         * modules/unicase/u32-prefix-context: New file.
16740
16741         New module 'unicase/u16-prefix-context'.
16742         * lib/unicase/u16-prefix-context.c: New file.
16743         * modules/unicase/u16-prefix-context: New file.
16744
16745         New module 'unicase/u8-prefix-context'.
16746         * lib/unicase/u8-prefix-context.c: New file.
16747         * lib/unicase/u-prefix-context.h: New file.
16748         * lib/unicase/context.h: New file.
16749         * modules/unicase/u8-prefix-context: New file.
16750
16751         New module 'unicase/empty-prefix-context'.
16752         * lib/unicase/empty-prefix-context.c: New file.
16753         * modules/unicase/empty-prefix-context: New file.
16754
16755         New module 'unicase/ignorable'.
16756         * lib/unicase/ignorable.c: New file.
16757         * modules/unicase/ignorable: New file.
16758
16759         New module 'unicase/cased'.
16760         * lib/unicase/caseprop.h: New file.
16761         * lib/unicase/cased.c: New file.
16762         * modules/unicase/cased: New file.
16763
16764         New functions for case mapping of substrings.
16765         * lib/unicase.h (casing_prefix_context_t): New type.
16766         (unicase_empty_prefix_context): New variable.
16767         (u8_casing_prefix_context, u16_casing_prefix_context,
16768         u32_casing_prefix_context, u8_casing_prefixes_context,
16769         u16_casing_prefixes_context, u32_casing_prefixes_context): New
16770         declarations.
16771         (casing_suffix_context_t): New type.
16772         (unicase_empty_suffix_context): New variable.
16773         (u8_casing_suffix_context, u16_casing_suffix_context,
16774         u32_casing_suffix_context, u8_casing_suffixes_context,
16775         u16_casing_suffixes_context, u32_casing_suffixes_context,
16776         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
16777         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
16778         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
16779         declarations.
16780
16781 2009-06-28  Jim Meyering  <meyering@redhat.com>
16782
16783         boostrap: indent only with spaces
16784         * build-aux/bootstrap: Indent only with spaces, never TABs.
16785
16786         bootstrap: split long lines
16787         * build-aux/bootstrap: Keep line length < 80.
16788
16789         bootstrap: sync from coreutils
16790         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
16791         just as autoreconf does.  Verify a list of prerequisite
16792         package-name,version-number pairs if defined in bootstrap.conf.
16793         Refer to README-prereq, if prerequisites are not satisfied.
16794
16795 2009-06-27  Eric Blake  <ebb9@byu.net>
16796
16797         tests: add test for bogus NULL definition
16798         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
16799         * tests/test-stdlib.c: Likewise.
16800         * tests/test-string.c: Likewise.
16801         * tests/test-locale.c: Likewise.
16802         * tests/test-unistd.c: Likewise.
16803         * modules/stdio-tests (Depends-on): Add verify.
16804         * modules/stdlib-tests (Depends-on): Likewise.
16805         * modules/string-tests (Depends-on): Likewise.
16806         * modules/locale-tests (Depends-on): Likewise.
16807         * modules/unistd-tests (Depends-on): Likewise.
16808
16809 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
16810
16811         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
16812         self-explaining comment.
16813         * m4/selinux-selinux-h: Update serial.
16814         (gl_LIBSELINUX): New macro, adding a warning for missing development
16815         packages to code extracted from...
16816         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
16817         Add warning for missing development packages here, too.
16818
16819 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
16820
16821         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
16822
16823 2009-06-25  Eric Blake  <ebb9@byu.net>
16824
16825         version-etc: fix regression
16826         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
16827         gcc.
16828         (version_etc): Use it, to catch bugs with trailing NULL.
16829         * lib/version-etc.c (version_etc_arn): Delete unused argument.
16830         (version_etc_va): Fix logic bug.
16831         * modules/version-etc-tests: Add test.
16832         * tests/test-version-etc.c: New file.
16833         * tests/test-version-etc.sh: Likewise.
16834
16835 2009-06-25  Sam Steingold  <sds@gnu.org>
16836
16837         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
16838         mbtowc declaration.
16839
16840 2009-06-25  Eric Blake  <ebb9@byu.net>
16841
16842         fpurge: migrate into <stdio.h>
16843         * lib/fpurge.h: Delete...
16844         * lib/stdio.in.h (fpurge): ...and declare here, instead.
16845         * lib/fpurge.c (fpurge): Change declaring header.
16846         * modules/fpurge (Files): Drop deleted file.
16847         (Depends-on): Add stdio.
16848         (configure.ac): Set witness.
16849         * modules/stdio (Makefile.am): Support fpurge macros.
16850         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
16851         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
16852         * lib/fflush.c: Update client.
16853         * tests/test-fpurge.c: Likewise.
16854         * NEWS: Mention the change.
16855
16856 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
16857
16858         * lib/argp-version-etc.c (program_authors): Add const
16859         qualifier.
16860         * lib/version-etc.c: Fix typos in the comments.
16861         * modules/argp-version-etc: Depends on version-etc.
16862
16863 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
16864
16865         argp-version-etc: new module.
16866
16867         * lib/argp-version-etc.c: New file.
16868         * lib/argp-version-etc.h: New file.
16869         * modules/argp-version-etc: New file.
16870         * modules/argp-version-etc-tests: New file.
16871         * tests/test-argp-version-etc.c: New test.
16872         * tests/test-argp-version-etc-1.sh: New test.
16873
16874 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
16875
16876         Provide additional interfaces and documentation for version-etc
16877         module.
16878
16879         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
16880         interfaces.
16881         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
16882         prototypes.
16883
16884 2009-06-24  Bruno Haible  <bruno@clisp.org>
16885
16886         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
16887         HAVE_LIB${NAME} macro.
16888         Reported by Sam Steingold <sds@gnu.org>.
16889
16890 2009-06-23  Simon Josefsson  <simon@josefsson.org>
16891
16892         * modules/hash-tests (test_hash_LDADD): Link to libintl when
16893         needed.
16894
16895 2009-06-21  Bruno Haible  <bruno@clisp.org>
16896
16897         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
16898         work.
16899         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
16900         together with LIB${NAME}, LTLIB${NAME}.
16901         Reported by Sam Steingold <sds@gnu.org>.
16902
16903 2009-06-20  Jim Meyering  <meyering@redhat.com>
16904
16905         tests: make sc_require_test_exit_idiom more generic
16906         * top/maint.mk (Exit_witness_file): New overridable variable.
16907         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
16908         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
16909
16910 2009-06-19  Jim Meyering  <meyering@redhat.com>
16911
16912         hash: reverse order of src/dst parameters in an internal interface
16913         * lib/hash.c (transfer_entries): Reverse order of parameters to
16914         put DST before SRC.  Adjust callers.
16915
16916         tests: test-hash: avoid wholesale duplication
16917         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
16918         Instead, use a loop and add a single conditional.
16919
16920         tests: test-hash: allow seed selection via a command line argument
16921         * tests/test-hash.c (get_seed): New function.
16922         (main): Use it.
16923
16924 2009-06-19  Eric Blake  <ebb9@byu.net>
16925
16926         hash: avoid memory leak on allocation failure
16927         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
16928         failure.  Factor repeated algorithm...
16929         (transfer_entries): ...into new helper routine.
16930         (hash_delete): React to hash_rehash return value.
16931
16932         hash: reduce memory pressure in hash_rehash no-op case
16933         * lib/hash.c (next_prime): Avoid overflow.
16934         (hash_initialize): Factor bucket size computation...
16935         (compute_bucket_size): ...into new helper function.
16936         (hash_rehash): Use new function and open coding to reduce memory
16937         pressure, and avoid a memory leak in USE_OBSTACK code.
16938         Reported by Jim Meyering.
16939
16940 2009-06-18  Eric Blake  <ebb9@byu.net>
16941
16942         hash: make rotation more obvious
16943         * modules/hash (Depends-on): Add bitrotate and stdint.
16944         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
16945         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
16946         (SIZE_MAX): Rely on headers for definition.
16947         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
16948         (raw_hasher): Use rotr_sz.
16949         Suggested by Jim Meyering.
16950
16951         hash: fix memory leak in last patch
16952         * lib/hash.c (hash_rehash): Avoid memory leak.
16953
16954         hash: avoid no-op rehashing
16955         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
16956
16957         hash: provide default callback functions
16958         * lib/hash.c (raw_hasher, raw_comparator): New functions.
16959         (hash_initialize): Use them as defaults.
16960         * tests/test-hash.c (main): Test this.
16961
16962         hash: minor optimization
16963         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
16964         when possible.
16965         (hash_initialize): Document this promise.
16966         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
16967         * tests/test-hash.c (hash_compare_strings): Test this.
16968
16969 2009-06-18  Bruno Haible  <bruno@clisp.org>
16970
16971         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
16972         going to be replaced anyway.
16973
16974 2009-06-18  Bruno Haible  <bruno@clisp.org>
16975
16976         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
16977         in one place.
16978         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
16979         be replaced anyway.
16980
16981 2009-06-18  Eric Blake  <ebb9@byu.net>
16982
16983         hash: check for resize before insertion
16984         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
16985         threshold before insertion, so that a pathological hash_rehash
16986         that fills every bucket can still trigger another rehash.
16987
16988 2009-06-18  Jim Meyering  <meyering@redhat.com>
16989
16990         hash-tests: add a loop around the small tests
16991         * tests/test-hash.c (main): Repeat small tests with selected
16992         small initial table sizes.
16993
16994 2009-06-17  Eric Blake  <ebb9@byu.net>
16995
16996         hash: minor cleanups
16997         * lib/hash.h (hash_entry): Make opaque, by moving...
16998         * lib/hash.c (hash_entry): ...here.
16999         (hash_insert): Clarify restrictions on what can be inserted.
17000         (hash_get_next): Clarify when it is safe to remove an element
17001         during traversal.
17002         (check_tuning): Skip verification when tuning is known safe.
17003         (hash_initialize): Clarify restrictions on tuning.
17004
17005 2009-06-17  Jim Meyering  <jim@meyering.net>
17006         and Eric Blake  <ebb9@byu.net>
17007
17008         hash-tests: new module
17009         * modules/hash-tests: New file.
17010         * tests/test-hash.c: New file.
17011
17012 2009-06-17  Eric Blake  <ebb9@byu.net>
17013
17014         strstr-simple: document new module
17015         * MODULES.html.sh: Document new module.
17016
17017         strstr, strcasestr: replace on platforms with broken memchr
17018         * modules/strstr: Split into...
17019         * modules/strstr-simple: ...new module that does not care about
17020         performance, but does care about glibc bug.
17021         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
17022         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
17023         if platform memchr is broken, per Debian bug 521737.
17024         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
17025         memchr.
17026         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
17027         * doc/posix-functions/strstr.texi (strstr): Document the fix.
17028         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
17029         * modules/mountlist (Depends-on): Add strstr-simple.
17030         * modules/gen-uni-tables (Depends-on): Likewise.
17031         * modules/argz (Depends-on): Add strstr.
17032
17033 2009-06-17  Bruno Haible  <bruno@clisp.org>
17034
17035         * modules/posix_spawn-internal (Depends-on): Add errno.
17036
17037 2009-06-17  Bruno Haible  <bruno@clisp.org>
17038
17039         Define missing ESTALE on Interix 3.5.
17040         * lib/errno.in.h (ESTALE): Assign a value if missing.
17041         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
17042         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
17043         missing.
17044         * doc/posix-headers/errno.texi: Mention the Interix bug.
17045         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
17046
17047 2009-06-15  Eric Blake  <ebb9@byu.net>
17048
17049         memchr, memchr2: add valgrind exception
17050         * lib/memchr.valgrind: New file.
17051         * lib/memchr2.valgrind: New file.
17052         * modules/memchr (Files): Distribute valgrind file.
17053         * modules/memchr2 (Files): Likewise.
17054
17055         docs: memchr is no longer obsolete
17056         * MODULES.html.sh: Move memchr from obsolete to string.h section.
17057         * lib/string.in.h (memchr): Simplify logic.
17058
17059 2009-06-14  Jim Meyering  <meyering@redhat.com>
17060
17061         link-follow: fix the "checking..." message to not mention trailing slash
17062         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
17063         never considered trailing slashes.
17064
17065 2009-06-14  Bruno Haible  <bruno@clisp.org>
17066
17067         * m4/memchr.m4: Mention also the bug on IA-64.
17068         * doc/posix-functions/memchr.texi: Likewise.
17069
17070 2009-06-12  Eric Blake  <ebb9@byu.net>
17071
17072         memchr: detect broken x86_64 and alpha implementations
17073         * modules/memchr-tests (Depends-on): Move mmap detection...
17074         * modules/memchr (Depends-on): ...here.
17075         (configure.ac): Set indicator.
17076         * lib/string.in.h (memchr): Declare replacement.
17077         * modules/string (Makefile.am): Trigger replacement.
17078         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
17079         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
17080         bugs.
17081         * doc/posix-functions/memchr.texi (memchr): Document the bug.
17082         * modules/getpagesize (License): Relax license.
17083
17084 2009-06-11  Bruno Haible  <bruno@clisp.org>
17085
17086         * lib/idpriv.h: Add more references.
17087
17088 2009-06-08  Bruno Haible  <bruno@clisp.org>
17089
17090         Tests for module 'idpriv-droptemp'.
17091         * modules/idpriv-droptemp-tests: New file.
17092         * tests/test-idpriv-droptemp.sh: New file.
17093         * tests/test-idpriv-droptemp.su.sh: New file.
17094         * tests/test-idpriv-droptemp.c: New file.
17095
17096         New module 'idpriv-droptemp'.
17097         * lib/idpriv-droptemp.c: New file.
17098         * modules/idpriv-droptemp: New file.
17099
17100 2009-06-08  Bruno Haible  <bruno@clisp.org>
17101
17102         Tests for module 'idpriv-drop'.
17103         * modules/idpriv-drop-tests: New file.
17104         * tests/test-idpriv-drop.sh: New file.
17105         * tests/test-idpriv-drop.su.sh: New file.
17106         * tests/test-idpriv-drop.c: New file.
17107
17108         New module 'idpriv-drop'.
17109         * lib/idpriv.h: New file.
17110         * lib-idpriv-drop.c: New file.
17111         * m4/idpriv.m4: New file.
17112         * modules/idpriv-drop: New file.
17113
17114 2009-06-08  Bruno Haible  <bruno@clisp.org>
17115
17116         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
17117         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
17118         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
17119         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
17120         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
17121         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
17122         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
17123
17124 2009-06-08  Eric Blake  <ebb9@byu.net>
17125
17126         test-strstr: use memory fence, when possible
17127         * tests/test-strstr.c (main): Use memory fence, in order to be
17128         more likely to trigger Debian bug 521737.
17129         * modules/strstr-tests (Files): Pull in additional files.
17130
17131         memchr: no longer obsolete, for wider field testing
17132         * modules/memchr (Status, Notice): Delete, this module is no
17133         longer obsolete.
17134         * modules/vasnprintf (Depends-on): Add memchr.
17135
17136 2009-06-07  Jim Meyering  <meyering@redhat.com>
17137
17138         hash: declare some functions with the warn_unused_result attribute
17139         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
17140
17141 2009-06-07  Bruno Haible  <bruno@clisp.org>
17142
17143         * tests/test-alignof.c: Don't test int64_t if it does not exist.
17144         Reported by Eric Blake.
17145
17146 2009-06-06  Eric Blake  <ebb9@byu.net>
17147
17148         test-alignof: fix typo with long double
17149         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
17150         compiler error.
17151
17152 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
17153
17154         Escape non-texinfo { and }s.
17155         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
17156         markup error.
17157
17158 2009-06-04  Jim Meyering  <meyering@redhat.com>
17159
17160         gitlog-to-changelog: don't infloop on an empty commit log
17161         * build-aux/gitlog-to-changelog: Warn about an empty log message.
17162         Reported by Boris Petersen <transacid@centerim.org>.
17163
17164 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
17165
17166         version-etc: extend for packagers
17167         Add three new configure options, intended for packagers:
17168           --with-packager="packager name"
17169           --with-packager-version="packager-specific version"
17170           --with-packager-bug-reports="packager bug reporting"
17171         An example with coreutils:
17172           $ ./configure \
17173             --with-packager=Gentoo \
17174             --with-packager-bug-report=http://bugs.gentoo.org/ \
17175             --with-packager-version="patchset 1.6"
17176           $ ./src/ls --version | head -n2
17177           ls (GNU coreutils) 7.1-dirty
17178           Packaged by Gentoo (patchset 1.6)
17179         Note that the bug reporting info via --help doesn't show up because
17180         coreutils uses its own custom emit_bug_reporting_address() implementation
17181         in src/system.h.  If it didn't, it'd look like:
17182           $ ./src/ls --help | tail -n4
17183           Report bugs to <bug-coreutils@gnu.org>.
17184           Report Gentoo bugs to <http://bugs.gentoo.org/>.
17185           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
17186           General help using GNU software: <http://www.gnu.org/gethelp/>.
17187         * lib/version-etc.c: Print new information, if provided.
17188         * m4/version-etc.m4: New file.
17189         * modules/version-etc (Files): Add m4/version-etc.m4.
17190         (configure.ac): Add gl_VERSION_ETC.
17191
17192 2009-05-31  Bruno Haible  <bruno@clisp.org>
17193
17194         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
17195         and 'int64_t'.
17196         * modules/alignof-tests (Dependencies): Add stdint.
17197         Reported by Eric Blake.
17198
17199 2009-05-31  Bruno Haible  <bruno@clisp.org>
17200
17201         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
17202         restriction due to compiler bugs.
17203         Reported by Eric Blake.
17204
17205 2009-05-31  Simon Josefsson  <simon@josefsson.org>
17206             Bruno Haible  <bruno@clisp.org>
17207
17208         Fix test-alignof failure.
17209         * lib/alignof.h (alignof_slot): New macro.
17210         (alignof_type): New macro, with the same semantics as the previous
17211         'alignof'.
17212         (alignof): Alias to alignof_slot.
17213         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
17214         check that the results are usable as constant expressions.
17215
17216 2009-05-31  Bruno Haible  <bruno@clisp.org>
17217
17218         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
17219         * tests/test-memchr.c (main): Check that memchr does not read past the
17220         first occurrence of the byte.
17221         * tests/test-strstr.c (main): Update comment.
17222         Suggested by Eric Blake.
17223
17224 2009-05-30  Bruno Haible  <bruno@clisp.org>
17225
17226         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
17227         detail how to use dumpbin.
17228         Reported by David Byron <dbyron@dbyron.com>.
17229
17230 2009-06-02  Simon Josefsson  <simon@josefsson.org>
17231
17232         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
17233
17234 2009-06-02  Simon Josefsson  <simon@josefsson.org>
17235
17236         * m4/manywarnings.m4: Add GCC 4.4 warnings.
17237
17238 2009-05-28  Bruno Haible  <bruno@clisp.org>
17239
17240         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
17241         build-aux/ files.
17242
17243 2009-05-28  Simon Josefsson  <simon@josefsson.org>
17244
17245         * gnulib-tool (func_import): Transform license on build-aux/ files too.
17246
17247 2009-05-27  Simon Josefsson  <simon@josefsson.org>
17248
17249         * gnulib-tool (sed_transform_main_lib_file)
17250         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
17251         regexps.
17252
17253 2009-05-26  Simon Josefsson  <simon@josefsson.org>
17254
17255         * tests/test-strstr.c: Add another self-test.
17256         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
17257         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
17258
17259 2009-05-23  Bruno Haible  <bruno@clisp.org>
17260
17261         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
17262         change.
17263
17264 2009-05-21  Bruno Haible  <bruno@clisp.org>
17265
17266         Simplify use of mode_t varargs.
17267         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
17268         uses 'mode_t' or 'int'.
17269         * lib/openat.c (openat): Likewise.
17270         * lib/open-safer.c (open_safer): Likewise.
17271         * m4/mode_t.m4: New file.
17272         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
17273         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
17274         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
17275         * modules/open (Files): Add m4/mode_t.m4.
17276         * modules/openat (Files): Likewise.
17277         * modules/fcntl-safer (Files): Likewise.
17278         Suggested by Eric Blake.
17279
17280 2009-05-21  Pádraig Brady  <P@draigbrady.com>
17281
17282         * doc/glibc-functions/fallocate.texi: New file.
17283         * doc/gnulib.texi: Include it.
17284
17285 2009-05-21  Eric Blake  <ebb9@byu.net>
17286             Bruno Haible  <bruno@clisp.org>
17287
17288         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
17289         invocations.
17290         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
17291
17292 2009-05-21  Eric Blake  <ebb9@byu.net>
17293             Bruno Haible  <bruno@clisp.org>
17294
17295         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
17296         include_next. Fix of 2008-11-20 commit.
17297         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
17298         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
17299         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
17300         NEXT_MATH_H.
17301         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
17302         instead of NEXT_MATH_H.
17303
17304 2009-05-21  Bruno Haible  <bruno@clisp.org>
17305
17306         Avoid redefinition warnings for SIZE_MAX.
17307         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
17308         Reported by Simon Josefsson.
17309
17310 2009-05-21  Bruno Haible  <bruno@clisp.org>
17311
17312         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
17313         AC_CACHE_VAL.
17314
17315 2009-05-20  Bruno Haible  <bruno@clisp.org>
17316
17317         Make zeroptr.h work on mingw.
17318         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
17319         mprotect.
17320         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
17321         * modules/memchr2-tests (configure.ac): Likewise.
17322         * modules/memcmp-tests (configure.ac): Likewise.
17323         * modules/memmem-tests (configure.ac): Likewise.
17324         * modules/memrchr-tests (configure.ac): Likewise.
17325         Reported by Simon Josefsson.
17326
17327 2009-05-20  Simon Josefsson  <simon@josefsson.org>
17328
17329         * tests/test-glob.c: Include string.h for strcmp prototype.
17330
17331 2009-05-20  Simon Josefsson  <simon@josefsson.org>
17332
17333         * modules/getdelim (Depends-on): Add explicit stdint, although it
17334         was implicitly already pulled in via realloc-posix.
17335         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
17336
17337 2009-05-20  Simon Josefsson  <simon@josefsson.org>
17338
17339         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
17340         G. Christensen" <tgc@jupiterrise.com>.
17341         * m4/sys_socket_h.m4: Check for sa_family_t.
17342         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
17343         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
17344         * tests/test-sys_socket.c: Check that sa_family_t works.
17345
17346 2009-05-18  Eric Blake  <ebb9@byu.net>
17347
17348         maint.mk: allow gnulib_dir in VPATH build
17349         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
17350
17351 2009-05-15  Jim Meyering  <meyering@redhat.com>
17352
17353         maint.mk: Give gnulib_dir a default definition.
17354         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
17355         Thus, most packages no longer need to specify this variable in cfg.mk
17356
17357 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
17358
17359         rename.m4: fix typos that would make non-mingw cross-configure fail
17360         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
17361
17362 2009-05-13  Eric Blake  <ebb9@byu.net>
17363
17364         mmap-anon: avoid out-of-order autoconf expansion
17365         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
17366         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
17367         * modules/memchr-tests (Depends-on): Add extensions.
17368         * modules/memchr2-tests (Depends-on): Add extensions.
17369         * modules/memcmp-tests (Depends-on): Add extensions.
17370         * modules/memmem-tests (Depends-on): Add extensions.
17371         * modules/memrchr-tests (Depends-on): Add extensions.
17372
17373 2009-05-13  Bruno Haible  <bruno@clisp.org>
17374
17375         Make some tests ISO C 99 compliant.
17376         * tests/zerosize-ptr.h: New file.
17377         * tests/test-memchr.c: Include zerosize-ptr.h.
17378         (main): Use a zero-size object pointer instead of NULL.
17379         * tests/test-memchr2.c: Include zerosize-ptr.h.
17380         (main): Use a zero-size object pointer instead of NULL.
17381         * tests/test-memcmp.c: Include zerosize-ptr.h.
17382         (main): Use a zero-size object pointer instead of NULL.
17383         * tests/test-memmem.c: Include zerosize-ptr.h.
17384         (main): Use a zero-size object pointer instead of NULL.
17385         * tests/test-memrchr.c: Include zerosize-ptr.h.
17386         (main): Use a zero-size object pointer instead of NULL.
17387         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
17388         m4/mmap-anon.m4.
17389         (Depends-on): Add getpagesize.
17390         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
17391         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
17392         m4/mmap-anon.m4.
17393         (Depends-on): Add getpagesize.
17394         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
17395         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
17396         m4/mmap-anon.m4.
17397         (Depends-on): Add getpagesize.
17398         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
17399         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
17400         m4/mmap-anon.m4.
17401         (Depends-on): Add getpagesize.
17402         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
17403         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
17404         m4/mmap-anon.m4.
17405         (Depends-on): Add getpagesize.
17406         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
17407
17408 2009-05-12  Bruno Haible  <bruno@clisp.org>
17409
17410         Tests for module 'alignof'.
17411         * modules/alignof-tests: New file.
17412         * tests/test-alignof.c: New file.
17413
17414 2009-05-12  Bruno Haible  <bruno@clisp.org>
17415
17416         Fix alignof macro.
17417         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
17418         vendor compilers that are always correct.
17419
17420 2009-05-12  Bruno Haible  <bruno@clisp.org>
17421
17422         Make the MAP_ANONYMOUS detection work on HP-UX 11.
17423         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
17424         not whether its fully works.
17425
17426 2009-05-12  Bruno Haible  <bruno@clisp.org>
17427
17428         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
17429
17430 2009-05-12  Jim Meyering  <meyering@redhat.com>
17431
17432         * top/maint.mk: Adjust backslash alignment.
17433
17434 2009-05-11  Simon Josefsson  <simon@josefsson.org>
17435
17436         * top/maint.mk: Make $(srcdir)/build-aux configurable.
17437
17438 2009-05-11  Eric Blake  <ebb9@byu.net>
17439
17440         argp: avoid undefined behavior
17441         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
17442         macros.
17443
17444 2009-05-08  Simon Josefsson  <simon@josefsson.org>
17445
17446         * tests/test-vc-list-files-git.sh: Do git config of user.email and
17447         user.name to prevent git commit from complaining.
17448
17449 2009-05-10  Bruno Haible  <bruno@clisp.org>
17450
17451         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
17452         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
17453         it rewrites every file name only once.
17454         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
17455
17456 2009-05-08  Bruno Haible  <bruno@clisp.org>
17457
17458         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
17459         instead of 'max'.
17460
17461 2009-05-08  Simon Josefsson  <simon@josefsson.org>
17462
17463         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
17464         sockaddr_storage test.
17465
17466 2009-05-07  Simon Josefsson  <simon@josefsson.org>
17467
17468         * modules/sys_socket (Makefile.am): Substitute
17469         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
17470         * m4/sys_socket_h.m4: Check for sockaddr_storage.
17471         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
17472         * tests/test-sys_socket.c: Check sockaddr_storage.
17473
17474 2009-05-08  Bruno Haible  <bruno@clisp.org>
17475
17476         New module 'alignof'.
17477         * lib/alignof.h: New file.
17478         * modules/alignof: New file.
17479
17480 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
17481             Bruno Haible  <bruno@clisp.org>
17482
17483         Fix test-file-has-acl on FreeBSD.
17484         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
17485         mask is implicitly added.
17486         * tests/test-file-has-acl.c: Include <signal.h>.
17487         (main): Terminate the test after 5 seconds.
17488         * modules/acl-tests (configure.ac): Check for alarm function.
17489
17490 2009-05-04  Bruno Haible  <bruno@clisp.org>
17491
17492         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
17493         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
17494         * modules/errno (configure.ac): Drop AC_REQUIRE.
17495         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
17496         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
17497
17498 2009-05-04  Simon Josefsson  <simon@josefsson.org>
17499
17500         * modules/glob-tests: New module.
17501         * tests/test-glob.c: Add.
17502
17503 2009-05-04  Simon Josefsson  <simon@josefsson.org>
17504
17505         * modules/fnmatch-tests: New module.
17506         * tests/test-fnmatch.c: Add.
17507
17508 2009-05-04  Eric Blake  <ebb9@byu.net>
17509
17510         maint: make the new no-submodule-changes rule VPATH-safe
17511         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
17512
17513 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
17514             Bruno Haible  <bruno@clisp.org>
17515
17516         acl: Fix infinite loop on FreeBSD.
17517         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
17518         of return value from acl_get_entry.
17519         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
17520         Likewise.
17521
17522 2009-05-03  Bruno Haible  <bruno@clisp.org>
17523
17524         * lib/acl-internal.h (acl_entries): Clarify return value.
17525         * lib/acl_entries.c (acl_entries): Likewise.
17526
17527 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
17528
17529         Bug fix in acl module.
17530         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
17531
17532 2009-05-03  Bruno Haible  <bruno@clisp.org>
17533
17534         Create gperf-generated file in the source dir, not in the build dir.
17535         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
17536         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
17537         * modules/unicase/locale-language (unicase/locale-languages.h):
17538         Likewise.
17539         * modules/unicase/special-casing (unicase/special-casing-table.h):
17540         Likewise.
17541         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
17542         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
17543         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
17544         Reported by Ralf Wildenhues.
17545
17546 2009-05-03  Bruno Haible  <bruno@clisp.org>
17547
17548         * modules/fnmatch (Description, configure.ac): Taken from
17549         fnmatch-posix.
17550         * modules/fnmatch-posix: Turn into a symbolic reference to the
17551         'fnmatch' module, and deprecate.
17552         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
17553
17554 2009-05-03  Bruno Haible  <bruno@clisp.org>
17555
17556         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
17557         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
17558         Reported by Ralf Wildenhues.
17559
17560 2009-05-04  Simon Josefsson  <simon@josefsson.org>
17561
17562         * m4/fnmatch.m4: Fix fnmatch re-define.
17563
17564 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
17565
17566         priv-set: new module and tests; adapt write-any-file
17567         * lib/priv-set.c: New file.
17568         * lib/priv-set.h: New file.
17569         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
17570         * lib/write-any-file.c: Simplify by using priv-set module.
17571         * m4/priv-set.m4: New file.
17572         * modules/priv-set: New file.
17573         * modules/unlinkdir: Add dependency on priv-set module.
17574         * modules/write-any-file: Likewise.
17575
17576         Tests for module 'priv-set'.
17577         * modules/priv-set-tests: New file.
17578         * tests/test-priv-set.c: New file.
17579
17580 2009-05-03  Jim Meyering  <meyering@redhat.com>
17581             Bruno Haible  <bruno@clisp.org>
17582
17583         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
17584         use the converted UTF-8 variant of the name instead.
17585
17586 2009-05-03  Jim Meyering  <meyering@redhat.com>
17587
17588         tests: tighten some getdate tests
17589         * tests/test-getdate.c (main): Tighten tests: require equality,
17590         not just greater than.  Set TZ envvar to UTC0.
17591
17592 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
17593
17594         getdate: correctly interpret "next monday" when run on a Monday
17595         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
17596         that e.g., "next tues" (when run on a tuesday) results in a date
17597         that is one week in the future, and not today's date.
17598         I.e., add a week when the wday is the same as the current one.
17599         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
17600         and earlier by Martin Bernreuther and Jan Minář.
17601         * tests/test-getdate.c (main): Check that "next DAY" is always in
17602         the future and that "last DAY" is always in the past.
17603
17604 2009-05-02  Jim Meyering  <meyering@redhat.com>
17605
17606         build: ensure that a release build fails when a submodule is unclean
17607         * top/maint.mk (no-submodule-changes): New rule.
17608         (alpha beta major): Depend on it.
17609
17610 2009-05-02  Bruno Haible  <bruno@clisp.org>
17611
17612         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
17613         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
17614         shell variable gl_fnmatch_required to detect which variant is
17615         requested.
17616         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
17617         gl_FUNC_FNMATCH_POSIX.
17618         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
17619         exclude fnmatch-posix.
17620
17621 2009-05-02  Bruno Haible  <bruno@clisp.org>
17622
17623         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
17624         * modules/mbsrtowcs (License): Change to LGPLv2+.
17625         * modules/strnlen1 (License): Likewise.
17626         Reported by Simon Josefsson.
17627
17628 2009-05-02  Bruno Haible  <bruno@clisp.org>
17629
17630         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
17631         "cross".
17632         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
17633         gnulib-tool was called with option --source-base=lib.
17634
17635 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17636
17637         Use automake *-local hooks without commands, for extensibility.
17638         * modules/localcharset (Makefile.am): Rename install-exec-local
17639         rule to install-exec-localcharset, and make it a prerequisite of
17640         install-exec-local.  Likewise, rename the uninstall-local rule to
17641         uninstall-localcharset, and make it a prerequisite of the former.
17642
17643 2009-05-01  Bruno Haible  <bruno@clisp.org>
17644
17645         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
17646         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
17647         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
17648         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
17649         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
17650         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
17651         m4/locale-zh.m4, m4/codeset.m4.
17652
17653         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
17654         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
17655         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
17656         m4/locale-zh.m4.
17657
17658         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
17659         REPLACE_WCRTOMB if mbstate_t must be replaced.
17660         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
17661         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
17662
17663 2009-05-01  Bruno Haible  <bruno@clisp.org>
17664
17665         Avoid compiler warnings when redefining macros defined by <libintl.h>.
17666         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
17667         dngettext, dcngettext, textdomain, bindtextdomain,
17668         bind_textdomain_codeset): Undefine before redefining.
17669
17670 2009-04-30  Bruno Haible  <bruno@clisp.org>
17671
17672         Fix bug introduced on 2009-04-25.
17673         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
17674         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
17675         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
17676         is defined.
17677         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
17678         is defined.
17679         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
17680         is defined.
17681         Reported by Elbert_Pol <elbert.pol@gmail.com>.
17682
17683 2009-04-28  Bruno Haible  <bruno@clisp.org>
17684
17685         Comment tweaks.
17686         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
17687         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
17688         * lib/unicase.h (u*_casexfrm): Likewise.
17689         Reported by Paolo Bonzini.
17690
17691 2009-04-28  Bruno Haible  <bruno@clisp.org>
17692
17693         Fix a compilation error.
17694         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
17695         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
17696         Reported by Jim Meyering.
17697
17698 2009-04-27  Bruno Haible  <bruno@clisp.org>
17699
17700         New module 'libunistring'.
17701         * modules/libunistring: New file.
17702         * m4/libunistring.m4: New file.
17703         * MODULES.html.sh (Unicode string functions): Add it.
17704
17705 2009-04-27  Eric Blake  <ebb9@byu.net>
17706
17707         maint.mk: allow package-specific header to provide <config.h>
17708         * top/maint.mk (sc_require_config_h): New variable.
17709         (sc_require_config_h, sc_require_config_h_first): Use it.
17710
17711 2009-04-27  Simon Josefsson  <simon@josefsson.org>
17712
17713         * top/maint.mk (sc_avoid_if_before_free): Except
17714         useless-if-before-free script.
17715
17716 2009-04-27  Eric Blake  <ebb9@byu.net>
17717
17718         maintainer-makefile: depend on all required helper scripts
17719         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
17720         useless-if-before-free.
17721         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
17722         version, rather than assuming gnulib checkout is available.
17723         Reported by Simen Josefsson.
17724
17725 2009-04-26  Bruno Haible  <bruno@clisp.org>
17726
17727         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
17728         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
17729         "../" or "..".
17730
17731 2009-04-26  Bruno Haible  <bruno@clisp.org>
17732
17733         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
17734         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
17735         AC_LIB_HAVE_LINKFLAGS.
17736
17737 2009-04-26  Bruno Haible  <bruno@clisp.org>
17738
17739         Simplify calling convention of u*_conv_from_encoding.
17740         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
17741         u32_conv_from_encoding): Expect a resultbuf argument and return the
17742         result directly as a pointer.
17743         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
17744         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
17745         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
17746         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
17747         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
17748         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
17749         Update.
17750         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
17751         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
17752         * lib/vasnprintf.c (VASNPRINTF): Update.
17753         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
17754         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
17755         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
17756         * NEWS: Mention the change.
17757
17758 2009-04-26  Bruno Haible  <bruno@clisp.org>
17759
17760         Simplify calling convention of u*_conv_to_encoding.
17761         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
17762         u32_conv_to_encoding): Expect a resultbuf argument and return the
17763         result directly as a pointer.
17764         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
17765         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
17766         freeing scaled_offsets if mem_iconveha failed.
17767         * lib/unicase/u-casexfrm.h (FUNC): Update.
17768         * lib/uninorm/u-normxfrm.h (FUNC): Update.
17769         * lib/vasnprintf.c (VASNPRINTF): Update.
17770         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
17771         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
17772         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
17773         * NEWS: Mention the change.
17774
17775 2009-04-26  Bruno Haible  <bruno@clisp.org>
17776
17777         Avoid test failures on AIX and OSF/1.
17778         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
17779         malloc(0).
17780         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
17781         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
17782         Likewise.
17783         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
17784         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
17785         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
17786         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
17787         * doc/posix-functions/malloc.texi: Document the portability problem
17788         related to malloc(0).
17789
17790 2009-04-26  Bruno Haible  <bruno@clisp.org>
17791
17792         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
17793         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
17794         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
17795
17796 2009-04-25  Bruno Haible  <bruno@clisp.org>
17797
17798         Avoid link error when creating a namespace clean library.
17799         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
17800         as macro with arguments if already defined as an alias.
17801         * lib/signbitf.c (gl_signbitf): Don't undefine.
17802         * lib/signbitd.c (gl_signbitd): Don't undefine.
17803         * lib/signbitl.c (gl_signbitl): Don't undefine.
17804
17805 2009-04-25  Jim Meyering  <meyering@redhat.com>
17806
17807         vc-list-files: fix another quoting bug
17808         * build-aux/vc-list-files: Avoid sed backslash expansion
17809         of pathological directory names.
17810
17811 2009-04-25  Eric Blake  <ebb9@byu.net>
17812
17813         vc-list-files: fix shell quoting error
17814         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
17815         timestamp.
17816
17817 2009-04-25  Jim Meyering  <meyering@redhat.com>
17818
17819         vc-list-files: restore lost functionality with subdir argument
17820         * build-aux/vc-list-files: When given a non-"." sub-directory
17821         argument, substitute the $dir/ prefix back onto each resulting name.
17822         Otherwise, coreutils' root_tests check would fail.
17823
17824 2009-04-24  Eric Blake  <ebb9@byu.net>
17825
17826         vc-list-files: ignore git symlinks
17827         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
17828         than ls-files, to ignore git symlinks.
17829
17830         maint.mk: import improvements from m4
17831         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
17832         (move_if_change): Delete unused macro.
17833         (news-date-check, vc-diff-check): Support VPATH builds.
17834         (announcement): Likewise.  Split --bootstrap-tools list...
17835         (boostrap-tools): ...into separate list, which can be overridden
17836         in cfg.mk.
17837         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
17838         requiring dependency on useless-if-before-free module.
17839         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
17840         Support VPATH builds.
17841
17842 2009-04-24  Jim Meyering  <meyering@redhat.com>
17843
17844         maint.mk: remove coreutils-specific rules and variables
17845         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
17846         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
17847         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
17848
17849         maint.mk: remove obsolete rule
17850         * top/maint.mk (rel-check): Remove rule.
17851         (WGET, WGETFLAGS): Remove now-unused variables.
17852
17853 2009-04-24  Simon Josefsson  <simon@josefsson.org>
17854
17855         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
17856         consistency.
17857
17858         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
17859         '$(PATH_SEPARATOR)' instead of ':'.
17860
17861 2009-04-24  Simon Josefsson  <simon@josefsson.org>
17862
17863         * lib/getopt1.c (main): Use 'const' for static array.
17864
17865 2009-04-24  Simon Josefsson  <simon@josefsson.org>
17866
17867         * top/maint.mk: Sync with coreutils.
17868         * NEWS: Explain incompatibilities.
17869
17870 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17871             Bruno Haible  <bruno@clisp.org>
17872
17873         Fix cross-compilation results.
17874         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
17875         statement, as third argument of AC_TRY_RUN.
17876         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
17877         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
17878         Likewise.
17879         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
17880         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
17881         Likewise.
17882         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
17883         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
17884         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
17885
17886 2009-04-20  Bruno Haible  <bruno@clisp.org>
17887
17888         Avoid test failure on mingw.
17889         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
17890
17891 2009-04-20  Bruno Haible  <bruno@clisp.org>
17892
17893         Avoid compilation error on mingw.
17894         * modules/localename-tests (Depends-on): Add locale.
17895
17896 2009-04-19  Bruno Haible  <bruno@clisp.org>
17897
17898         Support for building a shared library on Windows platforms.
17899         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
17900         (main): Test the presence of UNINORM_NFC here.
17901         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
17902         (main): Test the presence of UNINORM_NFD here.
17903         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
17904         (main): Test the presence of UNINORM_NFKC here.
17905         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
17906         (main): Test the presence of UNINORM_NFKD here.
17907
17908 2009-04-19  Bruno Haible  <bruno@clisp.org>
17909
17910         Avoid a compiler warning.
17911         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
17912         Change type of variable 'sequence'.
17913
17914 2009-04-19  Bruno Haible  <bruno@clisp.org>
17915
17916         * modules/configmake (Makefile.am): When the contents of configmake.h
17917         does not change, arrange to preserve its modification time.
17918
17919 2009-04-17  Simon Josefsson  <simon@josefsson.org>
17920
17921         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
17922         gettext domain.
17923
17924 2009-04-16  Jim Meyering  <meyering@redhat.com>
17925
17926         useless-if-before-free: improve conversion code
17927         * build-aux/useless-if-before-free: Adjust code-in-comment to match
17928         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
17929
17930 2009-04-14  Bruno Haible  <bruno@clisp.org>
17931
17932         * modules/fcntl (Depends-on): Add extensions.
17933         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
17934
17935 2009-04-12  Ben Pfaff  <blp@gnu.org>
17936
17937         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
17938         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
17939
17940 2009-03-20  Ben Pfaff  <blp@gnu.org>
17941
17942         Make rename replace existing destinations on Windows.
17943         * m4/rename.m4: Add test for Mingw.
17944         * lib/rename.c: Add rename replacement that uses MoveFileEx with
17945         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
17946         * doc/posix-functions/rename.texi: Document.
17947
17948 2009-04-10  Bruno Haible  <bruno@clisp.org>
17949
17950         New include file "iconveh.h".
17951         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
17952         * lib/striconveh.h: Include it.
17953         (enum iconv_ilseq_handler): Remove definition.
17954         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
17955         striconveh.h.
17956         * lib/striconveha.c: Include striconveh.h.
17957         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
17958         * modules/striconveh (Files): Add lib/iconveh.h.
17959         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
17960         lib/striconveh.h.
17961
17962 2009-04-10  Bruno Haible  <bruno@clisp.org>
17963
17964         * lib/uniconv.h: Update comment.
17965
17966 2009-04-10  Bruno Haible  <bruno@clisp.org>
17967
17968         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
17969         always.
17970         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
17971         * lib/unistr/u16-mbtouc-aux.c: Likewise.
17972         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
17973         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
17974         "unistring-notinline.h", so that the function gets defined always.
17975         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
17976         * lib/unistr/u8-uctomb.c: Likewise.
17977         * lib/unistr/u16-mbtouc.c: Likewise.
17978         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
17979         * lib/unistr/u16-uctomb.c: Likewise.
17980         * lib/unistr/u32-mbtouc.c: Likewise.
17981         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
17982         * lib/unistr/u32-uctomb.c: Likewise.
17983
17984 2009-04-10  Bruno Haible  <bruno@clisp.org>
17985
17986         Mark 'utime' obsolete.
17987         * modules/utime (Status, Notice): New sections.
17988         Suggested by Jim Meyering.
17989
17990         Fix cross-compile guess for utime test.
17991         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
17992         autoconf.
17993         * doc/posix-functions/utime.texi: Give more precisions.
17994         Reported by Jan <ipif@ymail.com>.
17995
17996 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
17997
17998         filevercmp: correct today's change
17999         * lib/filevercmp.c: Also handle coreutils' test inputs.
18000         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
18001
18002         Fix regression in 'filevercmp' module. Thanks Sven Joachim
18003         for reporting it.
18004         * lib/filevercmp.c: Special handle for "", "." and "..".
18005         * tests/test-filevercmp.c: Enlarge the set suite.
18006
18007 2009-04-07  Jim Meyering  <meyering@redhat.com>
18008
18009         useless-if-before-free: show how to remove braced useless free, too
18010         * build-aux/useless-if-before-free: still only in a comment, though.
18011
18012 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
18013
18014         maint.mk: import changes to syntax-check macros from coreutils
18015         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
18016         Use them in the relevant macros.
18017
18018 2009-04-06  Bruno Haible  <bruno@clisp.org>
18019
18020         Fix unportable use of bit-fields.
18021         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
18022         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
18023         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
18024
18025 2009-04-06  Bruno Haible  <bruno@clisp.org>
18026
18027         Avoid test failures on AIX and OSF/1.
18028         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
18029         that malloc(0) = NULL.
18030         * tests/unicase/test-u8-tolower.c (check): Likewise.
18031         * tests/unicase/test-u8-totitle.c (check): Likewise.
18032         * tests/unicase/test-u8-toupper.c (check): Likewise.
18033         * tests/unicase/test-u16-casefold.c (check): Likewise.
18034         * tests/unicase/test-u16-tolower.c (check): Likewise.
18035         * tests/unicase/test-u16-totitle.c (check): Likewise.
18036         * tests/unicase/test-u16-toupper.c (check): Likewise.
18037         * tests/unicase/test-u32-casefold.c (check): Likewise.
18038         * tests/unicase/test-u32-tolower.c (check): Likewise.
18039         * tests/unicase/test-u32-totitle.c (check): Likewise.
18040         * tests/unicase/test-u32-toupper.c (check): Likewise.
18041         * tests/uninorm/test-u8-nfc.c (check): Likewise.
18042         * tests/uninorm/test-u8-nfd.c (check): Likewise.
18043         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
18044         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
18045         * tests/uninorm/test-u16-nfc.c (check): Likewise.
18046         * tests/uninorm/test-u16-nfd.c (check): Likewise.
18047         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
18048         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
18049         * tests/uninorm/test-u32-nfc.c (check): Likewise.
18050         * tests/uninorm/test-u32-nfd.c (check): Likewise.
18051         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
18052         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
18053
18054 2009-04-05  Bruno Haible  <bruno@clisp.org>
18055
18056         Work around an autoconf limitation.
18057         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
18058         comment line if it would be longer than 3 KB.
18059
18060 2009-04-05  Bruno Haible  <bruno@clisp.org>
18061
18062         Avoid test failure with libiconv-1.13.
18063         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
18064         of the expected test results.
18065
18066 2009-04-05  Bruno Haible  <bruno@clisp.org>
18067
18068         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
18069         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
18070         that it should be installed.
18071
18072 2009-04-05  Bruno Haible  <bruno@clisp.org>
18073
18074         * gnulib-tool: New option --copy-file.
18075         (func_usage): Document it.
18076         (func_dest_tmpfilename): Moved out of func_import.
18077         (func_add_file, func_update_file): New functions, extracted from
18078         func_import.
18079         (func_import): Update.
18080
18081 2009-04-05  Karl Berry  <karl@gnu.org>
18082
18083         * README: prominently mention gnulib-tool.
18084         Rearrange sections so getting the code is near the top.
18085
18086 2009-04-05  Bruno Haible  <bruno@clisp.org>
18087
18088         * lib/unicase.h: Mention u*_cmp2.
18089         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
18090         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
18091         * lib/unicase/ulc-casecmp.c: Likewise.
18092         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
18093         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
18094         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
18095         unistr/u8-cmp.
18096         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
18097         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
18098         unistr/u16-cmp.
18099         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
18100         unistr/u32-cmp.
18101
18102         * lib/uninorm.h: Mention u*_cmp2.
18103         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
18104         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
18105         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
18106         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
18107         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
18108         unistr/u8-cmp.
18109         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
18110         unistr/u16-cmp.
18111         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
18112         unistr/u32-cmp.
18113
18114         New module 'unistr/u32-cmp2'.
18115         * lib/unistr/u32-cmp2.c: New file.
18116         * modules/unistr/u32-cmp2: New file.
18117
18118         New module 'unistr/u16-cmp2'.
18119         * lib/unistr/u16-cmp2.c: New file.
18120         * modules/unistr/u16-cmp2: New file.
18121
18122         New module 'unistr/u8-cmp2'.
18123         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
18124         * lib/unistr/u8-cmp2.c: New file.
18125         * lib/unistr/u-cmp2.h: New file.
18126         * modules/unistr/u8-cmp2: New file.
18127
18128 2009-04-05  Bruno Haible  <bruno@clisp.org>
18129
18130         * lib/unictype.h (uc_property_is_valid): New macro.
18131         * tests/unictype/test-pr_byname.c (main): Use it.
18132
18133         * lib/unistr.h: Doc fixes.
18134         * lib/uniconv.h: Doc fixes.
18135         * lib/unictype.h: Doc fixes.
18136
18137 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
18138
18139         Port coreutils 7.2 to Solaris 8.
18140
18141         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
18142         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
18143         for Solaris 8.  This is a bit of a hack, as it means it's the
18144         caller's responsibility to add -lnsl if needed, but most likely it
18145         won't be needed since only getaddrinfo uses this and getaddrinfo
18146         isn't needed on Solaris 8.
18147
18148         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
18149         problem to Solaris 8 encountered with coreutils 7.2, which
18150         resulted in a message "fnmatch.c:292: warning: passing argument 4
18151         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
18152         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
18153
18154 2009-04-03  Simon Josefsson  <simon@josefsson.org>
18155
18156         * m4/ld-version-script.m4: Add FIXME comment.
18157
18158 2009-04-02  Simon Josefsson  <simon@josefsson.org>
18159
18160         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
18161         SOVERSION variable.
18162
18163 2009-04-02  Bruno Haible  <bruno@clisp.org>
18164
18165         * Makefile (info, html, dvi, pdf): Combine the rules.
18166         Suggested by Jim Meyering.
18167
18168 2009-04-01  Bruno Haible  <bruno@clisp.org>
18169
18170         * Makefile (info, html, dvi, pdf): New targets.
18171         Reported by Reuben Thomas <rrt@sc3d.org>.
18172
18173 2009-04-01  Bruno Haible  <bruno@clisp.org>
18174
18175         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
18176         can be put into PATH.
18177         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
18178
18179 2009-04-01  Bruno Haible  <bruno@clisp.org>
18180
18181         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
18182
18183 2009-04-01  Bruno Haible  <bruno@clisp.org>
18184
18185         Rename module 'visibility'.
18186         * modules/lib-symbol-visibility: Renamed from modules/visibility.
18187         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
18188         * doc/gnulib.texi: Update.
18189         * MODULES.html.sh (Misc): Update.
18190         * NEWS: Mention the change.
18191
18192 2009-04-01  Simon Josefsson  <simon@josefsson.org>
18193
18194         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
18195         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
18196         Eric Blake <ebb9@byu.net> for review.
18197         * MODULES.html.sh: Add lib-msvc-compat.
18198         * doc/gnulib.texi: Link to new section.
18199         * m4/ld-output-def.m4: New file.
18200         * doc/ld-output-def.texi: New file.
18201
18202 2009-04-01  Simon Josefsson  <simon@josefsson.org>
18203
18204         Rename ld-version-script to lib-symbol-versions.  Suggested by
18205         Bruno Haible <bruno@clisp.org>.
18206         * modules/ld-version-script: Renamed to lib-symbol-versions.
18207         * doc/ld-version-script.texi: Fix module name.
18208         * MODULES.html.sh: Add lib-symbol-versions.
18209
18210 2009-03-31  Simon Josefsson  <simon@josefsson.org>
18211
18212         * modules/u64-tests: New file.
18213         * tests/test-u64.c: New file.
18214
18215 2009-03-04  Simon Josefsson  <simon@josefsson.org>
18216
18217         * MODULES.html.sh: Mention u64.
18218         * modules/u64: New module.
18219         * modules/crypto/sha512: Depend on u64 module instead of providing
18220         u64.h.
18221
18222 2009-03-27  Eric Blake  <ebb9@byu.net>
18223
18224         test-strerror: make debugging EAI_SYSTEM easier
18225         * modules/getaddrinfo-tests (Depends-on): Add strerror.
18226         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
18227         failure was EAI_SYSTEM.
18228
18229 2009-03-25  Bruno Haible  <bruno@clisp.org>
18230
18231         Fix a problem with --enable-relocatable on Solaris 7.
18232         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
18233         since 2008-02-24.
18234
18235 2009-03-25  Eric Blake  <ebb9@byu.net>
18236
18237         test-sockets: avoid gcc warning
18238         * tests/test-sockets.c (main): Silence compiler warning.
18239
18240 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
18241
18242         New modules nproc, pthread, contributed by Glen Lenker.
18243
18244         * MODULES.html.sh: Add pthread, nproc.
18245         * lib/nproc.c: New file.
18246         * lib/nproc.h: New file.
18247         * lib/pthread.in.h: New file.
18248         * m4/pthread.m4: New file.
18249         * modules/nproc: New file.
18250         * modules/pthread: New file.
18251
18252 2009-03-24  Simon Josefsson  <simon@josefsson.org>
18253
18254         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
18255         New variable.
18256
18257 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
18258
18259         filevercmp: handle simple~ and numbered.~3~ backup suffixes
18260         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
18261         * tests/test-filevercmp.c: Add tests for backup suffixes.
18262
18263 2009-03-24  Simon Josefsson  <simon@josefsson.org>
18264
18265         * modules/stdlib (Depends-on): Add stdint, needed when defining
18266         struct random_data on, for example, HP-UX 10.20.  Reported by
18267         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18268
18269 2009-03-24  Simon Josefsson  <simon@josefsson.org>
18270
18271         * lib/readline.c (readline): Call fflush on stdout after printing
18272         prompt.
18273
18274 2009-03-20  Bruno Haible  <bruno@clisp.org>
18275
18276         Remove dependency from 'close' module to -lws2_32 on native Windows.
18277         * lib/close-hook.h: New file.
18278         * lib/close-hook.c: New file.
18279         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
18280         w32sock.h.
18281         (_gl_close_fd_maybe_socket): Remove function.
18282         (rpl_close): Invoke execute_all_close_hooks instead of
18283         _gl_close_fd_maybe_socket.
18284         * lib/sockets.c: Include close-hook.h, w32sock.h.
18285         (close_fd_maybe_socket): New function, essentially from lib/close.c.
18286         (close_sockets_hook): New variable.
18287         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
18288         (gl_sockets_cleanup): Unregister it.
18289         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
18290         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
18291         * modules/close-hook: New file.
18292         * modules/close (Files): Remove lib/w32sock.h.
18293         (Depends-on): Add close-hook.
18294         (Link): Remove section.
18295         * modules/sockets (Files): Add lib/w32sock.h.
18296         (Depends-on): Add close-hook.
18297         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
18298         invocation.
18299         * NEWS: Mention that LIB_CLOSE is gone.
18300
18301 2009-03-23  Eric Blake  <ebb9@byu.net>
18302
18303         signal-tests: test previous patch
18304         * tests/test-signal.c: New file.
18305         * modules/signal-tests: Likewise.
18306
18307         signal.h: always support 'volatile sig_atomic_t'
18308         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
18309         (gl_SIGNAL_H_DEFAULTS): Add a default.
18310         * modules/signal (Makefile.am): Substitute if needed.
18311         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
18312         users can blindly add volatile.
18313         * doc/posix-headers/signal.texi (signal.h): Document it.
18314         Reported by Matthew Woehlke.
18315
18316 2009-03-23  Jim Meyering  <meyering@redhat.com>
18317
18318         pathmax: PATH_MAX: use pathconf only when available
18319         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
18320         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
18321         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
18322         This avoids a link failure in a PSP cross-compilation environment
18323         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
18324
18325         * lib/vasnprintf.c (divide): Fix typo in comment.
18326
18327 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18328
18329         * gnulib-tool (func_filter_filelist): Fix comment.
18330
18331 2009-03-20  Bruno Haible  <bruno@clisp.org>
18332
18333         Make sockets.h self-contained.
18334         * lib/sockets.c: Include sockets.h first.
18335         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
18336
18337 2009-03-19  Eric Blake  <ebb9@byu.net>
18338
18339         doc: mention more functions added in cygwin 1.7.0
18340         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
18341         addition.
18342         * doc/posix-functions/log2f.texi: Likewise.
18343
18344 2009-03-19  Jim Meyering  <meyering@redhat.com>
18345
18346         fsusage: avoid syntax error due to statement-before-declaration
18347         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
18348         after all declarations.  Reported by Matthew Woehlke in
18349         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
18350
18351 2009-03-18  Eric Blake  <ebb9@byu.net>
18352
18353         build-aux/compile: sync from automake
18354         * build-aux/compile: New file, from automake.
18355         * config/srclist.txt: Mention build-aux/compile.
18356
18357 2009-03-17  Bruno Haible  <bruno@clisp.org>
18358
18359         * lib/git-merge-changelog.c: Fix typo in comment.
18360         Reported by Reuben Thomas <rrt@sc3d.org>.
18361
18362 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
18363
18364         * m4/regex.m4: update and improve help for
18365         --without-included-regex.
18366
18367 2009-03-17  Simon Josefsson  <simon@josefsson.org>
18368
18369         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
18370         failure on missing include files.
18371
18372 2009-03-17  Eric Blake  <ebb9@byu.net>
18373
18374         doc: mention more functions added in cygwin 1.7.0
18375         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
18376         addition.
18377         * doc/posix-functions/fwscanf.texi: Likewise.
18378         * doc/posix-functions/swprintf.texi: Likewise.
18379         * doc/posix-functions/swscanf.texi: Likewise.
18380         * doc/posix-functions/vfwprintf.texi: Likewise.
18381         * doc/posix-functions/vfwscanf.texi: Likewise.
18382         * doc/posix-functions/vswprintf.texi: Likewise.
18383         * doc/posix-functions/vswscanf.texi: Likewise.
18384         * doc/posix-functions/vwprintf.texi: Likewise.
18385         * doc/posix-functions/vwscanf.texi: Likewise.
18386         * doc/posix-functions/wcscasecmp.texi: Likewise.
18387         * doc/posix-functions/wcsdup.texi: Likewise.
18388         * doc/posix-functions/wcsftime.texi: Likewise.
18389         * doc/posix-functions/wcsncasecmp.texi: Likewise.
18390         * doc/posix-functions/wprintf.texi: Likewise.
18391         * doc/posix-functions/wscanf.texi: Likewise.
18392         * doc/glibc-functions/gethostbyname2.texi: Likewise.
18393
18394 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18395
18396         maint.mk: really add $(AM_MAKEFLAGS)
18397         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
18398         was inadvertently omitted in the last commit.
18399         Spotted by Bruno Haible.
18400
18401         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
18402         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
18403         $(AM_MAKEFLAGS)' rather than plain `make'.
18404
18405         gnulib-tool: execute $MAKE not make
18406         * gnulib-tool: Default $MAKE to 'make'.
18407         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
18408         than make.  Initialize $MAKE in the do-autobuild script.
18409
18410         gnulib-tool: use $MAKE not make in generated files
18411         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
18412         make, in generated files.  Initialize $MAKE in the do-autobuild
18413         script.
18414
18415         * top/GNUmakefile (_have-git-version-gen): Fix typo.
18416
18417         GNUmakefile: disable parallelism only for multiple, recursive targets
18418         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
18419         additions in the Makefile.
18420         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
18421         by Automake.
18422         (.NOTPARALLEL): Only disable parallel builds if multiple targets
18423         are listed on the command line and at least one of them is
18424         listed in $(ALL_RECURSIVE_TARGETS).
18425
18426 2009-03-14  Bruno Haible  <bruno@clisp.org>
18427
18428         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
18429         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
18430         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
18431         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
18432         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
18433         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
18434         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
18435         unistr/u8-uctomb.
18436         * modules/unistr/u8-strchr (Depends-on): Likewise.
18437         * modules/unistr/u8-strrchr (Depends-on): Likewise.
18438         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
18439         unistr/u16-uctomb.
18440         * modules/unistr/u16-strchr (Depends-on): Likewise.
18441         * modules/unistr/u16-strrchr (Depends-on): Likewise.
18442
18443 2009-03-12  Bruno Haible  <bruno@clisp.org>
18444
18445         Work around select() bug on Interix 3.5.
18446         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
18447         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
18448         * m4/select.m4: New file.
18449         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
18450         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
18451         * modules/select (Files): Add m4/select.m4.
18452         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
18453         * modules/nanosleep (Depends-on): Add select.
18454         * modules/poll (Depends-on): Likewise.
18455         * doc/posix-functions/select.texi: Mention the Interix bug.
18456         Reported by Markus Duft <mduft@gentoo.org>.
18457
18458         * lib/select.c: Renamed from lib/winsock-select.c.
18459         * modules/select (Files): Add lib/select.c, remove
18460         lib/winsock-select.c.
18461         (configure.ac): Update.
18462
18463 2009-03-12  Jim Meyering  <meyering@redhat.com>
18464
18465         avoid gcc warnings about unused macro definitions
18466         * lib/readtokens.c (STREQ): Remove unused definition.
18467         * lib/xmalloc.c (SIZE_MAX): Likewise.
18468         * lib/openat-die.c (N_): Likewise.
18469         * lib/mountlist.c (SIZE_MAX): Remove definition.
18470         Instead, include <stdint.h>.
18471         * lib/readutmp.c: Likewise.
18472         * modules/readutmp (Depends-on): Add stdint.
18473         * modules/mountlist (Depends-on): Add stdint.
18474         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
18475
18476 2009-03-10  Bruno Haible  <bruno@clisp.org>
18477
18478         Tests for module 'mbmemcasecoll'.
18479         * modules/mbmemcasecoll-tests: New file.
18480         * tests/test-mbmemcasecoll1.sh: New file.
18481         * tests/test-mbmemcasecoll2.sh: New file.
18482         * tests/test-mbmemcasecoll3.sh: New file.
18483         * tests/test-mbmemcasecoll.c: New file.
18484
18485         New module 'mbmemcasecoll'.
18486         * lib/mbmemcasecoll.h: New file.
18487         * lib/mbmemcasecoll.c: New file.
18488         * modules/mbmemcasecoll: New file.
18489
18490         * tests/test-mbmemcasecmp.h: New file, extracted from
18491         tests/test-mbmemcasecmp.c.
18492         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
18493         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
18494         (main): Update.
18495         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
18496
18497 2009-03-09  Bruno Haible  <bruno@clisp.org>
18498
18499         Tests for module 'mbmemcasecmp'.
18500         * modules/mbmemcasecmp-tests: New file.
18501         * tests/test-mbmemcasecmp1.sh: New file.
18502         * tests/test-mbmemcasecmp2.sh: New file.
18503         * tests/test-mbmemcasecmp3.sh: New file.
18504         * tests/test-mbmemcasecmp.c: New file.
18505
18506         New module 'mbmemcasecmp'.
18507         * lib/mbmemcasecmp.h: New file.
18508         * lib/mbmemcasecmp.c: New file.
18509         * modules/mbmemcasecmp: New file.
18510
18511 2009-03-09  Bruno Haible  <bruno@clisp.org>
18512
18513         Tests for module 'unicase/ulc-casecoll'.
18514         * modules/unicase/ulc-casecoll-tests: New file.
18515         * tests/unicase/test-ulc-casecoll1.sh: New file.
18516         * tests/unicase/test-ulc-casecoll2.sh: New file.
18517         * tests/unicase/test-ulc-casecoll.c: New file.
18518
18519         New module 'unicase/ulc-casecoll'.
18520         * lib/unicase.h (ulc_casecoll): New declaration.
18521         * lib/unicase/ulc-casecoll.c: New file.
18522         * modules/unicase/ulc-casecoll: New file.
18523
18524         New module 'unicase/ulc-casexfrm'.
18525         * lib/unicase.h (ulc_casexfrm): New declaration.
18526         * lib/unicase/ulc-casexfrm.c: New file.
18527         * modules/unicase/ulc-casexfrm: New file.
18528
18529 2009-03-09  Bruno Haible  <bruno@clisp.org>
18530
18531         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
18532         invocations.
18533
18534         * m4/mbscasecmp.m4: Remove file.
18535         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
18536         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
18537
18538         * m4/mbscasestr.m4: Remove file.
18539         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
18540         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
18541
18542         * m4/mbschr.m4: Remove file.
18543         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
18544         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
18545
18546         * m4/mbscspn.m4: Remove file.
18547         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
18548         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
18549
18550         * m4/mbslen.m4: Remove file.
18551         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
18552         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
18553
18554         * m4/mbsncasecmp.m4: Remove file.
18555         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
18556         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
18557
18558         * m4/mbsnlen.m4: Remove file.
18559         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
18560         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
18561
18562         * m4/mbspbrk.m4: Remove file.
18563         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
18564         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
18565
18566         * m4/mbspcasecmp.m4: Remove file.
18567         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
18568         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
18569
18570         * m4/mbsrchr.m4: Remove file.
18571         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
18572         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
18573
18574         * m4/mbssep.m4: Remove file.
18575         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
18576         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
18577
18578         * m4/mbsspn.m4: Remove file.
18579         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
18580         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
18581
18582         * m4/mbsstr.m4: Remove file.
18583         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
18584         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
18585
18586         * m4/mbstok_r.m4: Remove file.
18587         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
18588         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
18589
18590         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
18591
18592         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
18593         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
18594
18595         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
18596
18597 2009-03-08  Bruno Haible  <bruno@clisp.org>
18598
18599         Tests for module 'unicase/ulc-casecmp'.
18600         * modules/unicase/ulc-casecmp-tests: New file.
18601         * tests/unicase/test-ulc-casecmp1.sh: New file.
18602         * tests/unicase/test-ulc-casecmp2.sh: New file.
18603         * tests/unicase/test-ulc-casecmp.c: New file.
18604
18605         New module 'unicase/ulc-casecmp'.
18606         * lib/unicase.h (ulc_casecmp): New declaration.
18607         * lib/unicase/ulc-casecmp.c: New file.
18608         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
18609         'const SRC_UNIT *'.
18610         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
18611         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
18612         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
18613         * modules/unicase/ulc-casecmp: New file.
18614
18615         Tests for module 'unicase/u32-is-cased'.
18616         * modules/unicase/u32-is-cased-tests: New file.
18617         * tests/unicase/test-u32-is-cased.c: New file.
18618
18619         Tests for module 'unicase/u16-is-cased'.
18620         * modules/unicase/u16-is-cased-tests: New file.
18621         * tests/unicase/test-u16-is-cased.c: New file.
18622
18623         Tests for module 'unicase/u8-is-cased'.
18624         * modules/unicase/u8-is-cased-tests: New file.
18625         * tests/unicase/test-u8-is-cased.c: New file.
18626         * tests/unicase/test-is-cased.h: New file.
18627
18628         New module 'unicase/u32-is-cased'.
18629         * lib/unicase/u32-is-cased.c: New file.
18630         * modules/unicase/u32-is-cased: New file.
18631
18632         New module 'unicase/u16-is-cased'.
18633         * lib/unicase/u16-is-cased.c: New file.
18634         * modules/unicase/u16-is-cased: New file.
18635
18636         New module 'unicase/u8-is-cased'.
18637         * lib/unicase/u8-is-cased.c: New file.
18638         * lib/unicase/u-is-cased.h: New file.
18639         * modules/unicase/u8-is-cased: New file.
18640
18641         Tests for module 'unicase/u32-is-casefolded'.
18642         * modules/unicase/u32-is-casefolded-tests: New file.
18643         * tests/unicase/test-u32-is-casefolded.c: New file.
18644
18645         Tests for module 'unicase/u16-is-casefolded'.
18646         * modules/unicase/u16-is-casefolded-tests: New file.
18647         * tests/unicase/test-u16-is-casefolded.c: New file.
18648
18649         Tests for module 'unicase/u8-is-casefolded'.
18650         * modules/unicase/u8-is-casefolded-tests: New file.
18651         * tests/unicase/test-u8-is-casefolded.c: New file.
18652         * tests/unicase/test-is-casefolded.h: New file.
18653
18654         New module 'unicase/u32-is-casefolded'.
18655         * lib/unicase/u32-is-casefolded.c: New file.
18656         * modules/unicase/u32-is-casefolded: New file.
18657
18658         New module 'unicase/u16-is-casefolded'.
18659         * lib/unicase/u16-is-casefolded.c: New file.
18660         * modules/unicase/u16-is-casefolded: New file.
18661
18662         New module 'unicase/u8-is-casefolded'.
18663         * lib/unicase/u8-is-casefolded.c: New file.
18664         * modules/unicase/u8-is-casefolded: New file.
18665
18666         Tests for module 'unicase/u32-is-titlecase'.
18667         * modules/unicase/u32-is-titlecase-tests: New file.
18668         * tests/unicase/test-u32-is-titlecase.c: New file.
18669
18670         Tests for module 'unicase/u16-is-titlecase'.
18671         * modules/unicase/u16-is-titlecase-tests: New file.
18672         * tests/unicase/test-u16-is-titlecase.c: New file.
18673
18674         Tests for module 'unicase/u8-is-titlecase'.
18675         * modules/unicase/u8-is-titlecase-tests: New file.
18676         * tests/unicase/test-u8-is-titlecase.c: New file.
18677         * tests/unicase/test-is-titlecase.h: New file.
18678
18679         New module 'unicase/u32-is-titlecase'.
18680         * lib/unicase/u32-is-titlecase.c: New file.
18681         * modules/unicase/u32-is-titlecase: New file.
18682
18683         New module 'unicase/u16-is-titlecase'.
18684         * lib/unicase/u16-is-titlecase.c: New file.
18685         * modules/unicase/u16-is-titlecase: New file.
18686
18687         New module 'unicase/u8-is-titlecase'.
18688         * lib/unicase/u8-is-titlecase.c: New file.
18689         * modules/unicase/u8-is-titlecase: New file.
18690
18691         Tests for module 'unicase/u32-is-lowercase'.
18692         * modules/unicase/u32-is-lowercase-tests: New file.
18693         * tests/unicase/test-u32-is-lowercase.c: New file.
18694
18695         Tests for module 'unicase/u16-is-lowercase'.
18696         * modules/unicase/u16-is-lowercase-tests: New file.
18697         * tests/unicase/test-u16-is-lowercase.c: New file.
18698
18699         Tests for module 'unicase/u8-is-lowercase'.
18700         * modules/unicase/u8-is-lowercase-tests: New file.
18701         * tests/unicase/test-u8-is-lowercase.c: New file.
18702         * tests/unicase/test-is-lowercase.h: New file.
18703
18704         New module 'unicase/u32-is-lowercase'.
18705         * lib/unicase/u32-is-lowercase.c: New file.
18706         * modules/unicase/u32-is-lowercase: New file.
18707
18708         New module 'unicase/u16-is-lowercase'.
18709         * lib/unicase/u16-is-lowercase.c: New file.
18710         * modules/unicase/u16-is-lowercase: New file.
18711
18712         New module 'unicase/u8-is-lowercase'.
18713         * lib/unicase/u8-is-lowercase.c: New file.
18714         * modules/unicase/u8-is-lowercase: New file.
18715
18716         Tests for module 'unicase/u32-is-uppercase'.
18717         * modules/unicase/u32-is-uppercase-tests: New file.
18718         * tests/unicase/test-u32-is-uppercase.c: New file.
18719
18720         Tests for module 'unicase/u16-is-uppercase'.
18721         * modules/unicase/u16-is-uppercase-tests: New file.
18722         * tests/unicase/test-u16-is-uppercase.c: New file.
18723
18724         Tests for module 'unicase/u8-is-uppercase'.
18725         * modules/unicase/u8-is-uppercase-tests: New file.
18726         * tests/unicase/test-u8-is-uppercase.c: New file.
18727         * tests/unicase/test-is-uppercase.h: New file.
18728
18729         New module 'unicase/u32-is-uppercase'.
18730         * lib/unicase/u32-is-uppercase.c: New file.
18731         * modules/unicase/u32-is-uppercase: New file.
18732
18733         New module 'unicase/u16-is-uppercase'.
18734         * lib/unicase/u16-is-uppercase.c: New file.
18735         * modules/unicase/u16-is-uppercase: New file.
18736
18737         New module 'unicase/u8-is-uppercase'.
18738         * lib/unicase/u8-is-uppercase.c: New file.
18739         * modules/unicase/u8-is-uppercase: New file.
18740
18741         New module 'unicase/u32-is-invariant'.
18742         * lib/unicase/u32-is-invariant.c: New file.
18743         * modules/unicase/u32-is-invariant: New file.
18744
18745         New module 'unicase/u16-is-invariant'.
18746         * lib/unicase/u16-is-invariant.c: New file.
18747         * modules/unicase/u16-is-invariant: New file.
18748
18749         New module 'unicase/u8-is-invariant'.
18750         * lib/unicase/u8-is-invariant.c: New file.
18751         * lib/unicase/invariant.h: New file.
18752         * lib/unicase/u-is-invariant.h: New file.
18753         * modules/unicase/u8-is-invariant: New file.
18754
18755         Tests for module 'unicase/u32-casecoll'.
18756         * modules/unicase/u32-casecoll-tests: New file.
18757         * tests/unicase/test-u32-casecoll.c: New file.
18758
18759         Tests for module 'unicase/u16-casecoll'.
18760         * modules/unicase/u16-casecoll-tests: New file.
18761         * tests/unicase/test-u16-casecoll.c: New file.
18762
18763         Tests for module 'unicase/u8-casecoll'.
18764         * modules/unicase/u8-casecoll-tests: New file.
18765         * tests/unicase/test-u8-casecoll.c: New file.
18766
18767         New module 'unicase/u32-casecoll'.
18768         * lib/unicase/u32-casecoll.c: New file.
18769         * modules/unicase/u32-casecoll: New file.
18770
18771         New module 'unicase/u16-casecoll'.
18772         * lib/unicase/u16-casecoll.c: New file.
18773         * modules/unicase/u16-casecoll: New file.
18774
18775         New module 'unicase/u8-casecoll'.
18776         * lib/unicase/u8-casecoll.c: New file.
18777         * lib/unicase/u-casecoll.h: New file.
18778         * modules/unicase/u8-casecoll: New file.
18779
18780         New module 'unicase/u32-casexfrm'.
18781         * lib/unicase/u32-casexfrm.c: New file.
18782         * modules/unicase/u32-casexfrm: New file.
18783
18784         New module 'unicase/u16-casexfrm'.
18785         * lib/unicase/u16-casexfrm.c: New file.
18786         * modules/unicase/u16-casexfrm: New file.
18787
18788         New module 'unicase/u8-casexfrm'.
18789         * lib/unicase/u8-casexfrm.c: New file.
18790         * lib/unicase/u-casexfrm.h: New file.
18791         * modules/unicase/u8-casexfrm: New file.
18792
18793         Tests for module 'unicase/u32-casecmp'.
18794         * modules/unicase/u32-casecmp-tests: New file.
18795         * tests/unicase/test-u32-casecmp.c: New file.
18796
18797         Tests for module 'unicase/u16-casecmp'.
18798         * modules/unicase/u16-casecmp-tests: New file.
18799         * tests/unicase/test-u16-casecmp.c: New file.
18800
18801         Tests for module 'unicase/u8-casecmp'.
18802         * modules/unicase/u8-casecmp-tests: New file.
18803         * tests/unicase/test-u8-casecmp.c: New file.
18804         * tests/unicase/test-casecmp.h: New file.
18805
18806         New module 'unicase/u32-casecmp'.
18807         * lib/unicase/u32-casecmp.c: New file.
18808         * modules/unicase/u32-casecmp: New file.
18809
18810         New module 'unicase/u16-casecmp'.
18811         * lib/unicase/u16-casecmp.c: New file.
18812         * modules/unicase/u16-casecmp: New file.
18813
18814         New module 'unicase/u8-casecmp'.
18815         * lib/unicase/u8-casecmp.c: New file.
18816         * lib/unicase/u-casecmp.h: New file.
18817         * modules/unicase/u8-casecmp: New file.
18818
18819         Tests for module 'unicase/u32-casefold'.
18820         * modules/unicase/u32-casefold-tests: New file.
18821         * tests/unicase/test-u32-casefold.c: New file.
18822
18823         Tests for module 'unicase/u16-casefold'.
18824         * modules/unicase/u16-casefold-tests: New file.
18825         * tests/unicase/test-u16-casefold.c: New file.
18826
18827         Tests for module 'unicase/u8-casefold'.
18828         * modules/unicase/u8-casefold-tests: New file.
18829         * tests/unicase/test-u8-casefold.c: New file.
18830
18831         New module 'unicase/u32-casefold'.
18832         * lib/unicase/u32-casefold.c: New file.
18833         * modules/unicase/u32-casefold: New file.
18834
18835         New module 'unicase/u16-casefold'.
18836         * lib/unicase/u16-casefold.c: New file.
18837         * modules/unicase/u16-casefold: New file.
18838
18839         New module 'unicase/u8-casefold'.
18840         * lib/unicase/u8-casefold.c: New file.
18841         * lib/unicase/u-casefold.h: New file.
18842         * modules/unicase/u8-casefold: New file.
18843
18844         New module 'unicase/tocasefold'.
18845         * lib/unicase/casefold.h: New file.
18846         * lib/unicase/tocasefold.c: New file.
18847         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
18848         * modules/unicase/tocasefold: New file.
18849
18850         Tests for module 'unicase/u32-totitle'.
18851         * modules/unicase/u32-totitle-tests: New file.
18852         * tests/unicase/test-u32-totitle.c: New file.
18853
18854         Tests for module 'unicase/u16-totitle'.
18855         * modules/unicase/u16-totitle-tests: New file.
18856         * tests/unicase/test-u16-totitle.c: New file.
18857
18858         Tests for module 'unicase/u8-totitle'.
18859         * modules/unicase/u8-totitle-tests: New file.
18860         * tests/unicase/test-u8-totitle.c: New file.
18861
18862         New module 'unicase/u32-totitle'.
18863         * lib/unicase/u32-totitle.c: New file.
18864         * modules/unicase/u32-totitle: New file.
18865
18866         New module 'unicase/u16-totitle'.
18867         * lib/unicase/u16-totitle.c: New file.
18868         * modules/unicase/u16-totitle: New file.
18869
18870         New module 'unicase/u8-totitle'.
18871         * lib/unicase/u8-totitle.c: New file.
18872         * lib/unicase/u-totitle.h: New file.
18873         * modules/unicase/u8-totitle: New file.
18874
18875         Tests for module 'unicase/u32-tolower'.
18876         * modules/unicase/u32-tolower-tests: New file.
18877         * tests/unicase/test-u32-tolower.c: New file.
18878
18879         Tests for module 'unicase/u16-tolower'.
18880         * modules/unicase/u16-tolower-tests: New file.
18881         * tests/unicase/test-u16-tolower.c: New file.
18882
18883         Tests for module 'unicase/u8-tolower'.
18884         * modules/unicase/u8-tolower-tests: New file.
18885         * tests/unicase/test-u8-tolower.c: New file.
18886
18887         New module 'unicase/u32-tolower'.
18888         * lib/unicase/u32-tolower.c: New file.
18889         * modules/unicase/u32-tolower: New file.
18890
18891         New module 'unicase/u16-tolower'.
18892         * lib/unicase/u16-tolower.c: New file.
18893         * modules/unicase/u16-tolower: New file.
18894
18895         New module 'unicase/u8-tolower'.
18896         * lib/unicase/u8-tolower.c: New file.
18897         * modules/unicase/u8-tolower: New file.
18898
18899         Tests for module 'unicase/u32-toupper'.
18900         * modules/unicase/u32-toupper-tests: New file.
18901         * tests/unicase/test-u32-toupper.c: New file.
18902
18903         Tests for module 'unicase/u16-toupper'.
18904         * modules/unicase/u16-toupper-tests: New file.
18905         * tests/unicase/test-u16-toupper.c: New file.
18906
18907         Tests for module 'unicase/u8-toupper'.
18908         * modules/unicase/u8-toupper-tests: New file.
18909         * tests/unicase/test-u8-toupper.c: New file.
18910
18911         New module 'unicase/u32-toupper'.
18912         * lib/unicase/u32-toupper.c: New file.
18913         * modules/unicase/u32-toupper: New file.
18914
18915         New module 'unicase/u16-toupper'.
18916         * lib/unicase/u16-toupper.c: New file.
18917         * modules/unicase/u16-toupper: New file.
18918
18919         New module 'unicase/u8-toupper'.
18920         * lib/unicase/u8-toupper.c: New file.
18921         * modules/unicase/u8-toupper: New file.
18922
18923         New module 'unicase/u32-casemap'.
18924         * lib/unicase/u32-casemap.c: New file.
18925         * modules/unicase/u32-casemap: New file.
18926
18927         New module 'unicase/u16-casemap'.
18928         * lib/unicase/u16-casemap.c: New file.
18929         * modules/unicase/u16-casemap: New file.
18930
18931         New module 'unicase/u8-casemap'.
18932         * lib/unicase/unicasemap.h: New file.
18933         * lib/unicase/u8-casemap.c: New file.
18934         * lib/unicase/u-casemap.h: New file.
18935         * modules/unicase/u8-casemap: New file.
18936
18937         New module 'unicase/special-casing'.
18938         * lib/unicase/special-casing.h: New file.
18939         * lib/unicase/special-casing.c: New file.
18940         * lib/unicase/special-casing-table.gperf: New file, generated by
18941         gen-uni-tables.c.
18942         * modules/unicase/special-casing: New file.
18943
18944         Tests for module 'unicase/locale-language'.
18945         * modules/unicase/locale-language-tests: New file.
18946         * tests/unicase/test-locale-language.sh: New file.
18947         * tests/unicase/test-locale-language.c: New file.
18948
18949         New module 'unicase/locale-language'.
18950         * lib/unicase/locale-language.c: New file.
18951         * lib/unicase/locale-languages.gperf: New file.
18952         * modules/unicase/locale-language: New file.
18953
18954         Generate more tables for case conversion and case folding.
18955         * lib/gen-uni-tables.c (SCC_*): New enum items.
18956         (struct special_casing_rule): New type.
18957         (casing_rules, num_casing_rules, allocated_casing_rules): New
18958         variables.
18959         (add_casing_rule, fill_casing_rules): New functions.
18960         (struct casefold_rule): New type.
18961         (casefolding_rules, num_casefolding_rules,
18962         allocated_casefolding_rules): New variables.
18963         (fill_casefolding_rules): New function.
18964         (unicode_casefold): New variable.
18965         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
18966         sort_casing_rules, output_casing_rules): New functions.
18967         (main): Accept to more arguments: SpecialCasing.txt and
18968         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
18969         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
18970         Output mapping for casefolding.
18971
18972         * lib/unicase.h: Include stdbool.h, uninorm.h.
18973         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
18974         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
18975         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
18976         arguments.
18977         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
18978         resultp arguments.
18979         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
18980         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
18981         resultp arguments.
18982         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
18983         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
18984         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
18985         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
18986         declarations.
18987         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
18988
18989 2009-03-08  Bruno Haible  <bruno@clisp.org>
18990
18991         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
18992         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
18993         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
18994         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
18995
18996 2009-03-07  Bruno Haible  <bruno@clisp.org>
18997
18998         Adjust u*_normcmp, u*_normcoll API.
18999         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
19000         u16_normcoll, u32_normcoll): Change failure conventions.
19001         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
19002         errno and return -1.
19003         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
19004
19005 2009-03-07  Bruno Haible  <bruno@clisp.org>
19006
19007         Tests for module 'uninorm/u32-normcoll'.
19008         * modules/uninorm/u32-normcoll-tests: New file.
19009         * tests/uninorm/test-u32-normcoll.c: New file.
19010
19011         Tests for module 'uninorm/u16-normcoll'.
19012         * modules/uninorm/u16-normcoll-tests: New file.
19013         * tests/uninorm/test-u16-normcoll.c: New file.
19014
19015         Tests for module 'uninorm/u8-normcoll'.
19016         * modules/uninorm/u8-normcoll-tests: New file.
19017         * tests/uninorm/test-u8-normcoll.c: New file.
19018
19019 2009-03-07  Bruno Haible  <bruno@clisp.org>
19020
19021         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
19022         tests/uninorm/test-u32-normcmp.c.
19023         * tests/uninorm/test-u32-normcmp.c: Include it.
19024         (test_nonascii): New function, extracted from main. Add some more
19025         tests.
19026         (main): Invoke test_ascii and test_nonascii.
19027         * modules/uninorm/u32-normcmp-tests (Files): Add
19028         tests/uninorm/test-u32-normcmp.h.
19029         (Depends-on): Remove uninorm/u32-normcmp.
19030
19031         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
19032         tests/uninorm/test-u16-normcmp.c.
19033         * tests/uninorm/test-u16-normcmp.c: Include it.
19034         (test_nonascii): New function, extracted from main. Add some more
19035         tests.
19036         (main): Invoke test_ascii and test_nonascii.
19037         * modules/uninorm/u16-normcmp-tests (Files): Add
19038         tests/uninorm/test-u16-normcmp.h.
19039         (Depends-on): Remove uninorm/u16-normcmp.
19040
19041         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
19042         tests/uninorm/test-u8-normcmp.c.
19043         * tests/uninorm/test-u8-normcmp.c: Include it.
19044         (test_nonascii): New function, extracted from main. Add some more
19045         tests.
19046         (main): Invoke test_ascii and test_nonascii.
19047         * modules/uninorm/u8-normcmp-tests (Files): Add
19048         tests/uninorm/test-u8-normcmp.h.
19049         (Depends-on): Remove uninorm/u8-normcmp.
19050
19051 2009-03-07  Bruno Haible  <bruno@clisp.org>
19052
19053         New module 'uninorm/u32-normcoll'.
19054         * lib/uninorm/u32-normcoll.c: New file.
19055         * modules/uninorm/u32-normcoll: New file.
19056
19057         New module 'uninorm/u16-normcoll'.
19058         * lib/uninorm/u16-normcoll.c: New file.
19059         * modules/uninorm/u16-normcoll: New file.
19060
19061         New module 'uninorm/u8-normcoll'.
19062         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
19063         declarations.
19064         * lib/uninorm/u8-normcoll.c: New file.
19065         * lib/uninorm/u-normcoll.h: New file.
19066         * modules/uninorm/u8-normcoll: New file.
19067
19068         New module 'uninorm/u32-normxfrm'.
19069         * lib/uninorm/u32-normxfrm.c: New file.
19070         * modules/uninorm/u32-normxfrm: New file.
19071
19072         New module 'uninorm/u16-normxfrm'.
19073         * lib/uninorm/u16-normxfrm.c: New file.
19074         * modules/uninorm/u16-normxfrm: New file.
19075
19076         New module 'uninorm/u8-normxfrm'.
19077         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
19078         declarations.
19079         * lib/uninorm/u8-normxfrm.c: New file.
19080         * lib/uninorm/u-normxfrm.h: New file.
19081         * modules/uninorm/u8-normxfrm: New file.
19082
19083 2009-03-07  Bruno Haible  <bruno@clisp.org>
19084
19085         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
19086         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
19087         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
19088
19089 2009-03-07  Bruno Haible  <bruno@clisp.org>
19090
19091         New module 'memxfrm'.
19092         * lib/memxfrm.h: New file.
19093         * lib/memxfrm.c: New file.
19094         * modules/memxfrm: New file.
19095
19096 2009-03-07  Bruno Haible  <bruno@clisp.org>
19097
19098         New module 'memcmp2'.
19099         * lib/memcmp2.h: New file.
19100         * lib/memcmp2.c: New file.
19101         * modules/memcmp2: New file.
19102
19103 2009-03-07  Bruno Haible  <bruno@clisp.org>
19104
19105         Tests for module 'uninorm/decomposing-form'.
19106         * modules/uninorm/decomposing-form-tests: New file.
19107         * tests/uninorm/test-decomposing-form.c: New file.
19108
19109         New module 'uninorm/decomposing-form'.
19110         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
19111         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
19112         Add 'decomposing_variant' field.
19113         * lib/uninorm/decomposing-form.c: New file.
19114         * lib/uninorm/nfc.c (uninorm_nfc): Update.
19115         * lib/uninorm/nfd.c (uninorm_nfd): Update.
19116         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
19117         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
19118         * modules/uninorm/decomposing-form: New file.
19119         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
19120         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
19121
19122 2009-03-07  Bruno Haible  <bruno@clisp.org>
19123
19124         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
19125         strings.
19126
19127 2009-03-06  Bruno Haible  <bruno@clisp.org>
19128
19129         Tests for module 'uninorm/u32-normcmp'.
19130         * tests/uninorm/test-u32-normcmp.c: New file.
19131         * modules/uninorm/u32-normcmp-tests: New file.
19132
19133         Tests for module 'uninorm/u16-normcmp'.
19134         * tests/uninorm/test-u16-normcmp.c: New file.
19135         * modules/uninorm/u16-normcmp-tests: New file.
19136
19137         Tests for module 'uninorm/u8-normcmp'.
19138         * tests/uninorm/test-u8-normcmp.c: New file.
19139         * modules/uninorm/u8-normcmp-tests: New file.
19140
19141         New module 'uninorm/u32-normcmp'.
19142         * lib/uninorm/u32-normcmp.c: New file.
19143         * modules/uninorm/u32-normcmp: New file.
19144
19145         New module 'uninorm/u16-normcmp'.
19146         * lib/uninorm/u16-normcmp.c: New file.
19147         * modules/uninorm/u16-normcmp: New file.
19148
19149         New module 'uninorm/u8-normcmp'.
19150         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
19151         declarations.
19152         * lib/uninorm/u8-normcmp.c: New file.
19153         * lib/uninorm/u-normcmp.h: New file.
19154         * modules/uninorm/u8-normcmp: New file.
19155
19156 2009-03-06  Bruno Haible  <bruno@clisp.org>
19157
19158         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
19159         Reported by Eric Blake.
19160
19161 2009-03-06  Eric Blake  <ebb9@byu.net>
19162             Bruno Haible  <bruno@clisp.org>
19163
19164         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
19165         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
19166         condition.
19167         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
19168         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
19169         condition.
19170         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
19171
19172 2009-03-06  Eric Blake  <ebb9@byu.net>
19173
19174         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
19175         to avoid compiler warnings.
19176         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
19177
19178 2009-03-05  Bruno Haible  <bruno@clisp.org>
19179
19180         * tests/test-ftell.c (main): Disable test beyond end of file on
19181         FreeMiNT.
19182         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
19183
19184 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
19185
19186         * lib/filevercmp.c: Move hidden files up in ordering.
19187         * tests/test-filevercmp.c: Add tests for hidden files.
19188
19189 2009-03-04  Bruno Haible  <bruno@clisp.org>
19190
19191         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
19192         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
19193         AM_CFLAGS.
19194         Reported by Simon Josefsson.
19195
19196 2009-03-03  Bruno Haible  <bruno@clisp.org>
19197
19198         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
19199         Reported by Simon Josefsson.
19200
19201         * doc/ld-version-script.texi: Update node reference.
19202
19203 2009-03-03  Bruno Haible  <bruno@clisp.org>
19204
19205         * modules/visibility (License): Change to 'unlimited'.
19206         Suggested by Simon Josefsson.
19207
19208 2009-03-03  Jim Meyering  <meyering@redhat.com>
19209
19210         unlinkdir: cannot_unlink_dir may modify process state
19211         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
19212         it's neither thread-safe nor appropriate for use in a library.
19213
19214 2009-03-03  Eric Blake  <ebb9@byu.net>
19215
19216         test-closein: silence test under Darwin
19217         * tests/test-closein.sh: Ignore stderr from cat, since we don't
19218         care if it dies from EPIPE or EBADF.
19219
19220 2009-03-03  Bruno Haible  <bruno@clisp.org>
19221
19222         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
19223         earlier.
19224         * doc/visibility.texi: Fix @node and @section.
19225
19226 2009-03-03  Simon Josefsson  <simon@josefsson.org>
19227
19228         * doc/gnulib.texi: Link to sections for ld version script and
19229         visibility.
19230         * doc/visibility.texi: Add @node and @section.
19231         * modules/ld-version-script: New module.
19232         * m4/ld-version-script.m4: New file.
19233         * doc/ld-version-script.texi: New file.
19234
19235 2009-03-02  David Lutterkort  <lutter@redhat.com>
19236
19237         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
19238         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19239
19240 2009-03-02  Bruno Haible  <bruno@clisp.org>
19241
19242         * doc/visibility.texi: Mention libtool's -export-symbols option.
19243
19244 2009-03-02  Jim Meyering  <meyering@redhat.com>
19245
19246         announce-gen: new option: --no-print-checksums
19247         * build-aux/announce-gen (usage): Describe it.
19248         (print_checksums): Print a newline here, not in the [*] footnote.
19249         (main): Honor it.
19250
19251 2009-03-01  Bruno Haible  <bruno@clisp.org>
19252
19253         Use socklen_t in the native Windows replacements prototypes.
19254         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
19255         instead of 'int'.
19256         * lib/getsockopt.c (rpl_getsockopt): Likewise.
19257         * lib/setsockopt.c (rpl_setsockopt): Likewise.
19258         * modules/getsockopt (Depends-on): Add socklen.
19259         * modules/setsockopt (Depends-on): Add socklen.
19260
19261 2009-03-01  Bruno Haible  <bruno@clisp.org>
19262
19263         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
19264         least 4.2.
19265
19266 2009-03-01  Eric Blake  <ebb9@byu.net>
19267             Bruno Haible  <bruno@clisp.org>
19268
19269         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
19270         error messages.
19271         * lib/wait-process.c (wait_subprocess): Omit error message about
19272         deadly signal sent to the child of termsigp != NULL.
19273
19274 2009-03-01  Eric Blake  <ebb9@byu.net>
19275
19276         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
19277
19278 2009-03-01  Bruno Haible  <bruno@clisp.org>
19279
19280         Avoid a gcc warning.
19281         * tests/test-sched.c (b): Make global.
19282         Reported by Eric Blake.
19283
19284 2009-01-19  Martin Lambers  <marlam@marlam.de>
19285
19286         Provide POSIX semantics for socket timeout options on W32.
19287         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
19288         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
19289         * modules/setsockopt: Depend on sys_time module for struct timeval.
19290         * modules/getsockopt: Depend on sys_time module for struct timeval.
19291
19292 2009-03-01  Simon Josefsson  <simon@josefsson.org>
19293
19294         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
19295         __USE_GNU, for consistency with netdb.in.h.
19296         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
19297
19298 2009-03-01  Bruno Haible  <bruno@clisp.org>
19299
19300         More support for FreeMiNT.
19301         * lib/fseeko.c (rpl_fseeko): Complete last commit.
19302         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
19303
19304 2009-03-01  Bruno Haible  <bruno@clisp.org>
19305
19306         More support for FreeMiNT.
19307         * lib/fpurge.c (fpurge): Correct last commit.
19308         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
19309
19310 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19311
19312         Fix unportable awk script in vc-list-files.
19313         * build-aux/vc-list-files: In the replacement awk script, use
19314         substr with a second argument of 1, not zero.
19315         Report by Simon Josefsson.
19316
19317 2009-02-28  Bruno Haible  <bruno@clisp.org>
19318
19319         More support for FreeMiNT.
19320         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
19321         to FreeMiNT today.
19322         * lib/fwriting.c (fwriting): Likewise.
19323         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
19324
19325 2009-02-28  Bruno Haible  <bruno@clisp.org>
19326
19327         * tests/test-freadseek.c (main): Disable test beyond end of file on
19328         FreeMiNT.
19329         * tests/test-ftello.c (main): Likewise.
19330         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
19331
19332 2009-02-28  Bruno Haible  <bruno@clisp.org>
19333
19334         Add tentative support for FreeMiNT.
19335         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
19336         * lib/fpurge.c (fpurge): Likewise.
19337         * lib/freadable.c (freadable): Likewise.
19338         * lib/freading.c (freading): Likewise.
19339         * lib/freadptr.c (freadptr): Likewise.
19340         * lib/freadseek.c (freadptrinc): Likewise.
19341         * lib/fseeko.c (rpl_fseeko): Likewise.
19342         * lib/fseterr.c (fseterr): Likewise.
19343         * lib/fwritable.c (fwritable): Likewise.
19344         * lib/fwriting.c (fwriting): Likewise.
19345         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
19346         Hourihane.
19347         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
19348
19349 2009-02-28  Bruno Haible  <bruno@clisp.org>
19350
19351         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
19352         SIGCHLD.
19353         Reported by Jim Meyering.
19354
19355 2009-02-28  Bruno Haible  <bruno@clisp.org>
19356
19357         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
19358         Mention the results of these tests on various platforms.
19359         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
19360         order.
19361         * doc/posix-functions/printf.texi: Likewise.
19362         * doc/posix-functions/snprintf.texi: Likewise.
19363         * doc/posix-functions/sprintf.texi: Likewise.
19364         * doc/posix-functions/vfprintf.texi: Likewise.
19365         * doc/posix-functions/vprintf.texi: Likewise.
19366         * doc/posix-functions/vsnprintf.texi: Likewise.
19367         * doc/posix-functions/vsprintf.texi: Likewise.
19368         * doc/glibc-functions/obstack_printf.texi: Likewise.
19369         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
19370
19371 2009-02-28  Bruno Haible  <bruno@clisp.org>
19372
19373         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
19374         Reported by Loïc Minier <lool@dooz.org>.
19375
19376 2009-02-27  Bruno Haible  <bruno@clisp.org>
19377
19378         * gnulib-tool (func_import): Make the sed expression used to create the
19379         sed script for updating the .gitignore file POSIX compliant.
19380         Reported by Eric Blake.
19381
19382 2009-02-27  Bruno Haible  <bruno@clisp.org>
19383
19384         * gnulib-tool (sed): Don't alias as "sed --posix".
19385         Reported by Eric Blake.
19386
19387 2009-02-27  Bruno Haible  <bruno@clisp.org>
19388
19389         Avoid test link errors.
19390         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
19391         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
19392         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
19393         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
19394         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19395
19396 2009-02-27  Bruno Haible  <bruno@clisp.org>
19397
19398         Avoid spurious "(cached)" in configure output.
19399         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
19400         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
19401         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
19402         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
19403         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
19404         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
19405         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
19406         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
19407         Reported by Eric Blake.
19408
19409 2009-02-27  Eric Blake  <ebb9@byu.net>
19410
19411         printf: fix regression in previous patch
19412         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
19413
19414 2009-02-27  Bruno Haible  <bruno@clisp.org>
19415
19416         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
19417         value.
19418         * lib/stdint.in.h: Likewise.
19419         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
19420
19421 2009-02-27  Eric Blake  <ebb9@byu.net>
19422
19423         doc: mention more functions added in cygwin 1.7.0
19424         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
19425         addition.
19426         * doc/posix-functions/open_wmemstream.texi: Likewise.
19427         * doc/posix-functions/wcsnlen.texi: Likewise.
19428         * doc/posix-functions/wcsnrtombs.texi: Likewise.
19429         * doc/posix-functions/wcstod.texi: Likewise.
19430         * doc/posix-functions/wcstof.texi: Likewise.
19431         * doc/posix-functions/wcstoimax.texi: Likewise.
19432         * doc/posix-functions/wcstok.texi: Likewise.
19433         * doc/posix-functions/wcstoumax.texi: Likewise.
19434
19435         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
19436         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
19437         * doc/posix-functions/fprintf.texi: Update.
19438         * doc/posix-functions/printf.texi: Update.
19439         * doc/posix-functions/snprintf.texi: Update.
19440         * doc/posix-functions/sprintf.texi: Update.
19441         * doc/posix-functions/vfprintf.texi: Update.
19442         * doc/posix-functions/vprintf.texi: Update.
19443         * doc/posix-functions/vsnprintf.texi: Update.
19444         * doc/posix-functions/vsprintf.texi: Update.
19445         * doc/glibc-functions/obstack_printf.texi: Update.
19446         * doc/glibc-functions/obstack_vprintf.texi: Update.
19447
19448 2009-02-26  Eric Blake  <ebb9@byu.net>
19449
19450         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
19451         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
19452         compilation bug by using runtime conversion.
19453         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
19454         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
19455         * modules/ceill-tests (Files): Use nan.h.
19456         * modules/floorl-tests (Files): Likewise.
19457         * modules/frexpl-tests (Files): Likewise.
19458         * modules/isnanl-tests (Files): Likewise.
19459         * modules/ldexpl-tests (Files): Likewise.
19460         * modules/roundl-tests (Files): Likewise.
19461         * modules/truncl-tests (Files): Likewise.
19462         * tests/test-ceill.c (main): Use a working NaN.
19463         * tests/test-floorl.c (main): Likewise.
19464         * tests/test-frexpl.c (main): Likewise.
19465         * tests/test-isnan.c (test_long_double): Likewise.
19466         * tests/test-isnanl.h (main): Likewise.
19467         * tests/test-ldexpl.h (main): Likewise.
19468         * tests/test-roundl.h (main): Likewise.
19469         * tests/test-truncl.h (main): Likewise.
19470         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
19471
19472 2009-02-26  Eric Blake  <ebb9@byu.net>
19473             Bruno Haible  <bruno@clisp.org>
19474
19475         Work around a *printf bug with %ls on Solaris.
19476         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
19477         precision is specified, sprintf stops converting the wide string
19478         argument when the number of bytes that have been produced by this
19479         conversion equals or exceeds the precision.
19480         * doc/posix-functions/fprintf.texi: Update.
19481         * doc/posix-functions/printf.texi: Update.
19482         * doc/posix-functions/snprintf.texi: Update.
19483         * doc/posix-functions/sprintf.texi: Update.
19484         * doc/posix-functions/vfprintf.texi: Update.
19485         * doc/posix-functions/vprintf.texi: Update.
19486         * doc/posix-functions/vsnprintf.texi: Update.
19487         * doc/posix-functions/vsprintf.texi: Update.
19488         * doc/glibc-functions/obstack_printf.texi: Update.
19489         * doc/glibc-functions/obstack_vprintf.texi: Update.
19490
19491 2009-02-26  Eric Blake  <ebb9@byu.net>
19492
19493         stdlib: favor compiler check of random.h
19494         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
19495         to avoid an ObjC random.h installed by Swarm.
19496
19497 2009-02-26  Bruno Haible  <bruno@clisp.org>
19498
19499         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
19500         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
19501         Reported by Gary V. Vaughan <gary@gnu.org>.
19502
19503 2009-02-26  Bruno Haible  <bruno@clisp.org>
19504
19505         Fix *printf behaviour regarding the %ls directive.
19506         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
19507         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
19508         NEED_PRINTF_DIRECTIVE_LS.
19509         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
19510         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
19511         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
19512         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
19513         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
19514         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
19515         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
19516         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
19517         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
19518         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
19519         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
19520         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
19521         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
19522         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
19523         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
19524         * doc/posix-functions/fprintf.texi: Update.
19525         * doc/posix-functions/printf.texi: Update.
19526         * doc/posix-functions/snprintf.texi: Update.
19527         * doc/posix-functions/sprintf.texi: Update.
19528         * doc/posix-functions/vfprintf.texi: Update.
19529         * doc/posix-functions/vprintf.texi: Update.
19530         * doc/posix-functions/vsnprintf.texi: Update.
19531         * doc/posix-functions/vsprintf.texi: Update.
19532         * doc/glibc-functions/obstack_printf.texi: Update.
19533         * doc/glibc-functions/obstack_vprintf.texi: Update.
19534         Reported by Eric Blake.
19535
19536 2009-02-25  Bruno Haible  <bruno@clisp.org>
19537
19538         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
19539         with known value.
19540         Reported by Gary V. Vaughan <gary@gnu.org>.
19541
19542 2009-02-25  Bruno Haible  <bruno@clisp.org>
19543
19544         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
19545         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
19546         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
19547         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
19548         Reported by Gary V. Vaughan <gary@gnu.org>.
19549
19550 2009-02-25  Bruno Haible  <bruno@clisp.org>
19551
19552         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
19553         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
19554         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
19555         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
19556         Reported by Gary V. Vaughan <gary@gnu.org>.
19557
19558 2009-02-25  Eric Blake  <ebb9@byu.net>
19559
19560         tests: skip fseek/ftell tests if ungetc is broken
19561         * m4/ungetc.m4: New file.
19562         * modules/fseek-tests: Split test, so ungetc dependency is
19563         separate from rest of test.
19564         * modules/fseeko-tests: Likewise.
19565         * modules/ftell-tests: Likewise.
19566         * modules/ftello-tests: Likewise.
19567         * tests/test-fseek.c (main): Isolate ungetc dependency.
19568         * tests/test-fseeko.c (main): Likewise.
19569         * tests/test-ftell.c (main): Likewise.
19570         * tests/test-ftello.c (main): Likewise.
19571         * tests/test-fseek2.sh: New file.
19572         * tests/test-fseeko2.sh: Likewise.
19573         * tests/test-ftell2.sh: Likewise.
19574         * tests/test-ftello2.sh: Likewise.
19575
19576 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
19577
19578         test-getaddrinfo: fix usage of skip return code 77
19579         * tests/test-gettaddrinfo.c: Return skip code 77 only
19580         for first occurance of skip (4x77 is not 77)
19581
19582 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
19583
19584         strtod: avoid C99 decl-after-statement
19585         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
19586
19587 2009-02-24  Eric Blake  <ebb9@byu.net>
19588
19589         strtod: detect HP-UX 11.31 bug
19590         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
19591         Reported by Gary V. Vaughan.
19592
19593 2009-02-23  Bruno Haible  <bruno@clisp.org>
19594
19595         Fix invalid read past end of memory block.
19596         * lib/vasnprintf.c (DCHAR_SET): Define.
19597         (local_wcslen): Define only when needed.
19598         (local_strnlen, local_wcsnlen): New functions.
19599         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
19600         directives that involve a conversion ourselves.
19601         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
19602         wcsnlen, mbrtowc, wcrtomb.
19603         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
19604         * tests/test-vasprintf-posix.c (test_function): Likewise.
19605         * tests/test-snprintf-posix.h (test_function): Likewise.
19606         * tests/test-sprintf-posix.h (test_function): Likewise.
19607         Reported by Ben Pfaff <blp@cs.stanford.edu>.
19608
19609 2009-02-22  Bruno Haible  <bruno@clisp.org>
19610
19611         Implement new clarified decomposition of Hangul syllables.
19612         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
19613         of type LTV, return only a pairwise decomposition.
19614         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
19615         Likewise.
19616         * tests/uninorm/test-decomposition.c (main): Updated expected result.
19617         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
19618         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
19619
19620 2009-02-22  Bruno Haible  <bruno@clisp.org>
19621
19622         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
19623         zero-length results and shrink excess allocated memory.
19624         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
19625         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
19626         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
19627         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
19628         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
19629         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
19630         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
19631         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
19632         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
19633         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
19634         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
19635         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
19636
19637 2009-02-21  Bruno Haible  <bruno@clisp.org>
19638
19639         * doc/gnulib.texi: Include safe-alloc.texi earlier.
19640         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
19641         spaces after a period. Put a space between a macro name and its
19642         argument list. Trivial rewordings.
19643         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
19644         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
19645         (main): Return 0 explicitly.
19646
19647 2009-02-21  Bruno Haible  <bruno@clisp.org>
19648
19649         Tests for module 'uninorm/filter'.
19650         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
19651         * modules/uninorm/filter-tests: New file.
19652
19653         New module 'uninorm/filter'.
19654         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
19655         uninorm_filter_flush, uninorm_filter_free): New declarations.
19656         * lib/uninorm/uninorm-filter.c: New file.
19657         * modules/uninorm/filter: New file.
19658
19659 2009-02-21  Bruno Haible  <bruno@clisp.org>
19660
19661         Tests for module 'uninorm/nfkc'.
19662         * tests/uninorm/test-nfkc.c: New file.
19663         * tests/uninorm/test-u8-nfkc.c: New file.
19664         * tests/uninorm/test-u16-nfkc.c: New file.
19665         * tests/uninorm/test-u32-nfkc.c: New file.
19666         * tests/uninorm/test-u32-nfkc-big.sh: New file.
19667         * tests/uninorm/test-u32-nfkc-big.c: New file.
19668         * modules/uninorm/nfkc-tests: New file.
19669
19670         New module 'uninorm/nfkc'.
19671         * lib/uninorm/nfkc.c: New file.
19672         * modules/uninorm/nfkc: New file.
19673
19674         Tests for module 'uninorm/nfkd'.
19675         * tests/uninorm/test-nfkd.c: New file.
19676         * tests/uninorm/test-u8-nfkd.c: New file.
19677         * tests/uninorm/test-u16-nfkd.c: New file.
19678         * tests/uninorm/test-u32-nfkd.c: New file.
19679         * tests/uninorm/test-u32-nfkd-big.sh: New file.
19680         * tests/uninorm/test-u32-nfkd-big.c: New file.
19681         * modules/uninorm/nfkd-tests: New file.
19682
19683         New module 'uninorm/nfkd'.
19684         * lib/uninorm/nfkd.c: New file.
19685         * modules/uninorm/nfkd: New file.
19686
19687         Tests for module 'uninorm/nfc'.
19688         * tests/uninorm/test-nfc.c: New file.
19689         * tests/uninorm/test-u8-nfc.c: New file.
19690         * tests/uninorm/test-u16-nfc.c: New file.
19691         * tests/uninorm/test-u32-nfc.c: New file.
19692         * tests/uninorm/test-u32-nfc-big.sh: New file.
19693         * tests/uninorm/test-u32-nfc-big.c: New file.
19694         * modules/uninorm/nfc-tests: New file.
19695
19696         New module 'uninorm/nfc'.
19697         * lib/uninorm/nfc.c: New file.
19698         * modules/uninorm/nfc: New file.
19699
19700         Tests for module 'uninorm/nfd'.
19701         * tests/uninorm/test-nfd.c: New file.
19702         * tests/uninorm/test-u8-nfd.c: New file.
19703         * tests/uninorm/test-u16-nfd.c: New file.
19704         * tests/uninorm/test-u32-nfd.c: New file.
19705         * tests/uninorm/test-u32-nfd-big.sh: New file.
19706         * tests/uninorm/test-u32-nfd-big.c: New file.
19707         * tests/uninorm/test-u32-normalize-big.h: New file.
19708         * tests/uninorm/test-u32-normalize-big.c: New file.
19709         * tests/uninorm/NormalizationTest.txt: New file, created from
19710         Unicode 5.1.0 NormalizationTest.txt.
19711         * modules/uninorm/nfd-tests: New file.
19712
19713         New module 'uninorm/nfd'.
19714         * lib/uninorm/nfd.c: New file.
19715         * modules/uninorm/nfd: New file.
19716
19717         New module 'uninorm/u32-normalize'.
19718         * lib/uninorm/u32-normalize.c: New file.
19719         * modules/uninorm/u32-normalize: New file.
19720
19721         New module 'uninorm/u16-normalize'.
19722         * lib/uninorm/u16-normalize.c: New file.
19723         * modules/uninorm/u16-normalize: New file.
19724
19725         New module 'uninorm/u8-normalize'.
19726         * lib/uninorm/u8-normalize.c: New file.
19727         * lib/uninorm/normalize-internal.h: New file.
19728         * lib/uninorm/u-normalize-internal.h: New file.
19729         * modules/uninorm/u8-normalize: New file.
19730
19731         New module 'uninorm/decompose-internal'.
19732         * lib/uninorm/decompose-internal.c: New file.
19733         * modules/uninorm/decompose-internal: New file.
19734
19735         Tests for module 'uninorm/composition'.
19736         * tests/uninorm/test-composition.c: New file.
19737         * modules/uninorm/composition-tests: New file.
19738
19739         New module 'uninorm/composition'.
19740         * lib/uninorm/composition.c: New file.
19741         * lib/uninorm/composition-table.gperf: New file, generated by
19742         gen-uni-tables.
19743         * modules/uninorm/composition: New file.
19744
19745         Tests for module 'uninorm/compat-decomposition'.
19746         * tests/uninorm/test-compat-decomposition.c: New file.
19747         * modules/uninorm/compat-decomposition-tests: New file.
19748
19749         New module 'uninorm/compat-decomposition'.
19750         * lib/uninorm/decompose-internal.h: New file.
19751         * lib/uninorm/compat-decomposition.c: New file.
19752         * modules/uninorm/compat-decomposition: New file.
19753
19754         Tests for module 'uninorm/canonical-decomposition'.
19755         * tests/uninorm/test-canonical-decomposition.c: New file.
19756         * modules/uninorm/canonical-decomposition-tests: New file.
19757
19758         New module 'uninorm/canonical-decomposition'.
19759         * lib/uninorm/canonical-decomposition.c: New file.
19760         * modules/uninorm/canonical-decomposition: New file.
19761
19762         Tests for module 'uninorm/decomposition'.
19763         * tests/uninorm/test-decomposition.c: New file.
19764         * modules/uninorm/decomposition-tests: New file.
19765
19766         New module 'uninorm/decomposition'.
19767         * lib/uninorm/decomposition.c: New file.
19768         * modules/uninorm/decomposition: New file.
19769
19770         New module 'uninorm/decomposition-table'.
19771         * lib/uninorm/decomposition-table.h: New file.
19772         * lib/uninorm/decomposition-table.c: New file.
19773         * lib/uninorm/decomposition-table1.h: New file, generated by
19774         gen-uni-tables.
19775         * lib/uninorm/decomposition-table2.h: New file, generated by
19776         gen-uni-tables.
19777         * modules/uninorm/decomposition-table: New file.
19778
19779         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
19780         (UC_DECOMP_*): New enumeration items.
19781         (get_decomposition): New function.
19782         (struct decomp_table): New type.
19783         (output_decomposition, output_decomposition_tables): New functions.
19784         (unicode_composition_exclusions): New variable.
19785         (fill_composition_exclusions, debug_output_composition_tables): New
19786         functions.
19787         (main): Accept one more argument. Invoke fill_composition_exclusions.
19788         Output decomposition and composition tables.
19789
19790         New module 'uninorm/base'.
19791         * lib/uninorm.h: New file.
19792         * lib/unictype.h: Update comment.
19793         * modules/uninorm/base: New file.
19794
19795 2009-02-21  David Lutterkort  <lutter@redhat.com>
19796
19797         Tests for module 'safe-alloc'.
19798         * tests/test-safe-alloc.c: New file.
19799         * modules/safe-alloc-tests: New file.
19800
19801         New module 'safe-alloc'.
19802         * lib/safe-alloc.h: New file.
19803         * lib/safe-alloc.c: New file.
19804         * m4/safe-alloc.m4: New file.
19805         * modules/safe-alloc: New file.
19806         * doc/safe-alloc.texi: New file.
19807         * doc/gnulib.texi: Include it.
19808         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
19809         safe-alloc.
19810
19811 2009-02-18  Bruno Haible  <bruno@clisp.org>
19812
19813         Fix link error on non-glibc systems.
19814         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
19815         variable.
19816         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19817
19818 2009-02-18  Jim Meyering  <meyering@redhat.com>
19819
19820         fts: avoid used-uninitialized error due to recent change
19821         * lib/fts.c (fts_read): Guard uses of the new member,
19822         parent->fts_n_dirs_remaining, since it's not relevant for
19823         the parent of a directory specified on the command-line.
19824
19825 2009-02-17  James Youngman  <jay@gnu.org>
19826             Bruno Haible  <bruno@clisp.org>
19827
19828         * m4/include_next.m4: Reformulate comment.
19829
19830 2009-02-16  Jim Meyering  <meyering@redhat.com>
19831
19832         fts: add #if guards so that the fts_lgpl module still builds
19833         * lib/fts.c: Guard just-added hash-table-using parts with
19834         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
19835         Reported by Simon Josefsson.
19836
19837 2009-02-15  Bruno Haible  <bruno@clisp.org>
19838
19839         * modules/array-mergesort-tests: New file.
19840         * tests/test-array-mergesort.c: New file.
19841
19842         New module 'array-mergesort'.
19843         * modules/array-mergesort: New file.
19844         * lib/array-mergesort.h: New file.
19845
19846 2009-02-15  Bruno Haible  <bruno@clisp.org>
19847
19848         Fix 2009-02-07 commit.
19849         * lib/gen-uni-tables.c (output_predicate, output_category,
19850         output_combclass, output_bidi_category, output_decimal_digit,
19851         output_digit, output_numeric, output_mirror, output_scripts,
19852         output_ident_category, output_simple_mapping): Fix format directives.
19853         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
19854
19855 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
19856
19857         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
19858         fixes are available from IBM.
19859
19860 2009-02-13  Jim Meyering  <meyering@redhat.com>
19861
19862         fts: arrange not to stat non-directories in more cases
19863         This makes GNU find (when it doesn't need to stat each file)
19864         *much* more efficient at traversing reiserfs file systems.
19865         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
19866         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
19867         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
19868         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
19869         (leaf_optimization_applies): New function.
19870         (LCO_hash, LCO_compare): New helper functions.
19871         (link_count_optimize_ok): New function.
19872         (fts_stat): Initialize new member (if dir).
19873         (fts_read): Decrement parent's fts_n_dirs_remaining count if
19874         we've just stat'ed a directory.  Skip the stat call when possible.
19875         ---
19876         Note this AFS-related exchange:
19877         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
19878         and note find's pioctl call in find/fstype.c.
19879         But that is necessary only if you want to enable the
19880         optimization for AFS, and for now, I don't.
19881
19882         fts: move a function definition "up" (no semantic change)
19883         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
19884         "up" to precede upcoming use of a related function.
19885
19886 2009-02-11  Jim Meyering  <meyering@redhat.com>
19887
19888         fts: correct internal computation of nlinks (optimization-related)
19889         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
19890         whether the current entry is a directory, so don't test it.
19891
19892 2009-02-10  Bruno Haible  <bruno@clisp.org>
19893
19894         Tests for module 'uniwbrk/ulc-wordbreaks'.
19895         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
19896         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
19897         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
19898
19899         Tests for module 'uniwbrk/u32-wordbreaks'.
19900         * modules/uniwbrk/u32-wordbreaks-tests: New file.
19901         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
19902
19903         Tests for module 'uniwbrk/u16-wordbreaks'.
19904         * modules/uniwbrk/u16-wordbreaks-tests: New file.
19905         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
19906
19907         Tests for module 'uniwbrk/u8-wordbreaks'.
19908         * modules/uniwbrk/u8-wordbreaks-tests: New file.
19909         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
19910
19911 2009-02-10  Bruno Haible  <bruno@clisp.org>
19912
19913         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
19914         property.
19915         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
19916         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
19917         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
19918
19919 2009-02-10  Simon Josefsson  <simon@josefsson.org>
19920
19921         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
19922         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
19923
19924 2009-02-10  Bruno Haible  <bruno@clisp.org>
19925
19926         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
19927         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
19928         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
19929         * lib/unilbrk/u8-possible-linebreaks.c: Update.
19930         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
19931         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
19932
19933 2009-02-09  Simon Josefsson  <simon@josefsson.org>
19934
19935         * lib/sockets.h (gl_fd_to_handle): New function.
19936
19937         * tests/test-sockets.c: Call gl_fd_to_handle.
19938
19939 2009-02-09  Bruno Haible  <bruno@clisp.org>
19940
19941         * doc/havelib.texi: Document the conventions on bi-arch systems.
19942
19943 2009-02-08  Bruno Haible  <bruno@clisp.org>
19944
19945         Document the AC_LIB_LINKFLAGS macro.
19946         * doc/havelib.texi: New file, mostly written on 2005-05-24.
19947         * doc/gnulib.texi: Include it.
19948
19949 2009-02-08  Bruno Haible  <bruno@clisp.org>
19950
19951         Fix wrong order of sections, compared to TOC.
19952         * doc/gnulib.texi: Include relocatable-maint.texi after the
19953         "Regular expressions" node, not before.
19954
19955 2009-02-08  Bruno Haible  <bruno@clisp.org>
19956
19957         Tests for module 'unicase/totitle'.
19958         * modules/unicase/totitle-tests: New file.
19959
19960         Tests for module 'unicase/tolower'.
19961         * modules/unicase/tolower-tests: New file.
19962
19963         Tests for module 'unicase/toupper'.
19964         * modules/unicase/toupper-tests: New file.
19965         * tests/unicase/test-mapping-part1.h: New file.
19966         * tests/unicase/test-mapping-part2.h: New file.
19967
19968         New module 'unicase/totitle'.
19969         * modules/unicase/totitle: New file.
19970         * lib/unicase/totitle.c: New file.
19971
19972         New module 'unicase/tolower'.
19973         * modules/unicase/tolower: New file.
19974         * lib/unicase/tolower.c: New file.
19975
19976         New module 'unicase/toupper'.
19977         * modules/unicase/toupper: New file.
19978         * lib/unicase/toupper.c: New file.
19979         * lib/unicase/simple-mapping.h: New file.
19980
19981         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
19982         (mapping_table): New structure.
19983         (output_simple_mapping): New function.
19984         (main): Invoke output_simple_mapping_test and output_simple_mapping.
19985         * modules/gen-uni-tables (Description): Update.
19986         * lib/unicase/toupper.h: New file, automatically generated by
19987         gen-uni-tables.
19988         * lib/unicase/tolower.h: New file, automatically generated by
19989         gen-uni-tables.
19990         * lib/unicase/totitle.h: New file, automatically generated by
19991         gen-uni-tables.
19992         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
19993         gen-uni-tables.
19994         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
19995         gen-uni-tables.
19996         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
19997         gen-uni-tables.
19998
19999         New module 'unicase/base'.
20000         * modules/unicase/base: New file.
20001         * lib/unicase.h: New file.
20002
20003 2009-02-08  Bruno Haible  <bruno@clisp.org>
20004
20005         New module 'uniwbrk/ulc-wordbreaks'.
20006         * modules/uniwbrk/ulc-wordbreaks: New file.
20007         * lib/uniwbrk/ulc-wordbreaks.c: New file.
20008
20009         New module 'uniwbrk/u32-wordbreaks'.
20010         * modules/uniwbrk/u32-wordbreaks: New file.
20011         * lib/uniwbrk/u32-wordbreaks.c: New file.
20012
20013         New module 'uniwbrk/u16-wordbreaks'.
20014         * modules/uniwbrk/u16-wordbreaks: New file.
20015         * lib/uniwbrk/u16-wordbreaks.c: New file.
20016
20017         New module 'uniwbrk/u8-wordbreaks'.
20018         * modules/uniwbrk/u8-wordbreaks: New file.
20019         * lib/uniwbrk/u8-wordbreaks.c: New file.
20020         * lib/uniwbrk/u-wordbreaks.h: New file.
20021
20022         New module 'uniwbrk/table'.
20023         * modules/uniwbrk/table: New file.
20024         * lib/uniwbrk/wbrktable.h: New file.
20025         * lib/uniwbrk/wbrktable.c: New file.
20026
20027         New module 'uniwbrk/wordbreak-property'.
20028         * modules/uniwbrk/wordbreak-property: New file.
20029         * lib/uniwbrk/wordbreak-property.c: New file.
20030
20031         * lib/gen-uni-tables.c (WBP_*): New enum items.
20032         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
20033         (unicode_org_wbp): New variable.
20034         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
20035         New functions.
20036         (wbp_table): New structure.
20037         (output_wbp, output_wbrk_tables): New functions.
20038         (main): Accept additional argument. Invoke fill_org_wbp,
20039         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
20040         output_wbrk_tables.
20041         * modules/gen-uni-tables (Description): Update.
20042         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
20043         gen-uni-tables.
20044
20045         New module 'uniwbrk/base'.
20046         * modules/uniwbrk/base: New file.
20047         * lib/uniwbrk.h: New file.
20048
20049 2009-02-08  Bruno Haible  <bruno@clisp.org>
20050
20051         Update to Unicode 5.1.0.
20052         * lib/gen-uni-tables.c (is_property_alphabetic): Include
20053         U+2185..U+2188.
20054         (is_property_default_ignorable_code_point): Don't include characters
20055         of category Cc or Cs and not-a-characters.
20056         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
20057         U+0D79, U+109E, U+109F, U+A60C.
20058         * lib/unictype/bidi_of.h: Regenerated.
20059         * lib/unictype/blocks.h: Regenerated.
20060         * lib/unictype/categ_C.h: Regenerated.
20061         * lib/unictype/categ_Cf.h: Regenerated.
20062         * lib/unictype/categ_Cn.h: Regenerated.
20063         * lib/unictype/categ_L.h: Regenerated.
20064         * lib/unictype/categ_Ll.h: Regenerated.
20065         * lib/unictype/categ_Lm.h: Regenerated.
20066         * lib/unictype/categ_Lo.h: Regenerated.
20067         * lib/unictype/categ_Lu.h: Regenerated.
20068         * lib/unictype/categ_M.h: Regenerated.
20069         * lib/unictype/categ_Mc.h: Regenerated.
20070         * lib/unictype/categ_Me.h: Regenerated.
20071         * lib/unictype/categ_Mn.h: Regenerated.
20072         * lib/unictype/categ_N.h: Regenerated.
20073         * lib/unictype/categ_Nd.h: Regenerated.
20074         * lib/unictype/categ_Nl.h: Regenerated.
20075         * lib/unictype/categ_No.h: Regenerated.
20076         * lib/unictype/categ_P.h: Regenerated.
20077         * lib/unictype/categ_Pd.h: Regenerated.
20078         * lib/unictype/categ_Pe.h: Regenerated.
20079         * lib/unictype/categ_Pf.h: Regenerated.
20080         * lib/unictype/categ_Pi.h: Regenerated.
20081         * lib/unictype/categ_Po.h: Regenerated.
20082         * lib/unictype/categ_Ps.h: Regenerated.
20083         * lib/unictype/categ_S.h: Regenerated.
20084         * lib/unictype/categ_Sk.h: Regenerated.
20085         * lib/unictype/categ_Sm.h: Regenerated.
20086         * lib/unictype/categ_So.h: Regenerated.
20087         * lib/unictype/categ_of.h: Regenerated.
20088         * lib/unictype/combining.h: Regenerated.
20089         * lib/unictype/ctype_alnum.h: Regenerated.
20090         * lib/unictype/ctype_alpha.h: Regenerated.
20091         * lib/unictype/ctype_graph.h: Regenerated.
20092         * lib/unictype/ctype_lower.h: Regenerated.
20093         * lib/unictype/ctype_print.h: Regenerated.
20094         * lib/unictype/ctype_punct.h: Regenerated.
20095         * lib/unictype/ctype_upper.h: Regenerated.
20096         * lib/unictype/decdigit.h: Regenerated.
20097         * lib/unictype/digit.h: Regenerated.
20098         * lib/unictype/mirror.h: Regenerated.
20099         * lib/unictype/numeric.h: Regenerated.
20100         * lib/unictype/pr_alphabetic.h: Regenerated.
20101         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
20102         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
20103         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
20104         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
20105         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
20106         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
20107         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
20108         * lib/unictype/pr_combining.h: Regenerated.
20109         * lib/unictype/pr_dash.h: Regenerated.
20110         * lib/unictype/pr_decimal_digit.h: Regenerated.
20111         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
20112         * lib/unictype/pr_deprecated.h: Regenerated.
20113         * lib/unictype/pr_diacritic.h: Regenerated.
20114         * lib/unictype/pr_extender.h: Regenerated.
20115         * lib/unictype/pr_format_control.h: Regenerated.
20116         * lib/unictype/pr_grapheme_base.h: Regenerated.
20117         * lib/unictype/pr_grapheme_extend.h: Regenerated.
20118         * lib/unictype/pr_grapheme_link.h: Regenerated.
20119         * lib/unictype/pr_id_continue.h: Regenerated.
20120         * lib/unictype/pr_id_start.h: Regenerated.
20121         * lib/unictype/pr_ideographic.h: Regenerated.
20122         * lib/unictype/pr_ignorable_control.h: Regenerated.
20123         * lib/unictype/pr_lowercase.h: Regenerated.
20124         * lib/unictype/pr_math.h: Regenerated.
20125         * lib/unictype/pr_numeric.h: Regenerated.
20126         * lib/unictype/pr_other_alphabetic.h: Regenerated.
20127         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
20128         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
20129         * lib/unictype/pr_other_id_continue.h: Regenerated.
20130         * lib/unictype/pr_other_lowercase.h: Regenerated.
20131         * lib/unictype/pr_other_math.h: Regenerated.
20132         * lib/unictype/pr_punctuation.h: Regenerated.
20133         * lib/unictype/pr_sentence_terminal.h: Regenerated.
20134         * lib/unictype/pr_soft_dotted.h: Regenerated.
20135         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
20136         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
20137         * lib/unictype/pr_unified_ideograph.h: Regenerated.
20138         * lib/unictype/pr_uppercase.h: Regenerated.
20139         * lib/unictype/pr_xid_continue.h: Regenerated.
20140         * lib/unictype/pr_xid_start.h: Regenerated.
20141         * lib/unictype/pr_zero_width.h: Regenerated.
20142         * lib/unictype/scripts.h: Regenerated.
20143         * lib/unictype/scripts_byname.gperf: Regenerated.
20144         * lib/unictype/sy_java_ident.h: Regenerated.
20145         * lib/unilbrk/lbrkprop1.h: Regenerated.
20146         * lib/unilbrk/lbrkprop2.h: Regenerated.
20147         * tests/unictype/test-categ_C.c: Regenerated.
20148         * tests/unictype/test-categ_Cf.c: Regenerated.
20149         * tests/unictype/test-categ_Cn.c: Regenerated.
20150         * tests/unictype/test-categ_L.c: Regenerated.
20151         * tests/unictype/test-categ_Ll.c: Regenerated.
20152         * tests/unictype/test-categ_Lm.c: Regenerated.
20153         * tests/unictype/test-categ_Lo.c: Regenerated.
20154         * tests/unictype/test-categ_Lu.c: Regenerated.
20155         * tests/unictype/test-categ_M.c: Regenerated.
20156         * tests/unictype/test-categ_Mc.c: Regenerated.
20157         * tests/unictype/test-categ_Me.c: Regenerated.
20158         * tests/unictype/test-categ_Mn.c: Regenerated.
20159         * tests/unictype/test-categ_N.c: Regenerated.
20160         * tests/unictype/test-categ_Nd.c: Regenerated.
20161         * tests/unictype/test-categ_Nl.c: Regenerated.
20162         * tests/unictype/test-categ_No.c: Regenerated.
20163         * tests/unictype/test-categ_P.c: Regenerated.
20164         * tests/unictype/test-categ_Pd.c: Regenerated.
20165         * tests/unictype/test-categ_Pe.c: Regenerated.
20166         * tests/unictype/test-categ_Pf.c: Regenerated.
20167         * tests/unictype/test-categ_Pi.c: Regenerated.
20168         * tests/unictype/test-categ_Po.c: Regenerated.
20169         * tests/unictype/test-categ_Ps.c: Regenerated.
20170         * tests/unictype/test-categ_S.c: Regenerated.
20171         * tests/unictype/test-categ_Sk.c: Regenerated.
20172         * tests/unictype/test-categ_Sm.c: Regenerated.
20173         * tests/unictype/test-categ_So.c: Regenerated.
20174         * tests/unictype/test-ctype_alnum.c: Regenerated.
20175         * tests/unictype/test-ctype_alpha.c: Regenerated.
20176         * tests/unictype/test-ctype_graph.c: Regenerated.
20177         * tests/unictype/test-ctype_lower.c: Regenerated.
20178         * tests/unictype/test-ctype_print.c: Regenerated.
20179         * tests/unictype/test-ctype_punct.c: Regenerated.
20180         * tests/unictype/test-ctype_upper.c: Regenerated.
20181         * tests/unictype/test-decdigit.h: Regenerated.
20182         * tests/unictype/test-digit.h: Regenerated.
20183         * tests/unictype/test-numeric.h: Regenerated.
20184         * tests/unictype/test-pr_alphabetic.c: Regenerated.
20185         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
20186         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
20187         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
20188         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
20189         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
20190         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
20191         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
20192         * tests/unictype/test-pr_combining.c: Regenerated.
20193         * tests/unictype/test-pr_dash.c: Regenerated.
20194         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
20195         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
20196         * tests/unictype/test-pr_deprecated.c: Regenerated.
20197         * tests/unictype/test-pr_diacritic.c: Regenerated.
20198         * tests/unictype/test-pr_extender.c: Regenerated.
20199         * tests/unictype/test-pr_format_control.c: Regenerated.
20200         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
20201         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
20202         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
20203         * tests/unictype/test-pr_id_continue.c: Regenerated.
20204         * tests/unictype/test-pr_id_start.c: Regenerated.
20205         * tests/unictype/test-pr_ideographic.c: Regenerated.
20206         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
20207         * tests/unictype/test-pr_lowercase.c: Regenerated.
20208         * tests/unictype/test-pr_math.c: Regenerated.
20209         * tests/unictype/test-pr_numeric.c: Regenerated.
20210         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
20211         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
20212         Regenerated.
20213         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
20214         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
20215         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
20216         * tests/unictype/test-pr_other_math.c: Regenerated.
20217         * tests/unictype/test-pr_punctuation.c: Regenerated.
20218         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
20219         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
20220         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
20221         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
20222         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
20223         * tests/unictype/test-pr_uppercase.c: Regenerated.
20224         * tests/unictype/test-pr_xid_continue.c: Regenerated.
20225         * tests/unictype/test-pr_xid_start.c: Regenerated.
20226         * tests/unictype/test-pr_zero_width.c: Regenerated.
20227
20228         Update to Unicode 5.1.0.
20229         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
20230         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
20231         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
20232         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
20233         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
20234         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
20235         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
20236         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
20237         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
20238         (nonspacing_table_ind): Update.
20239         * tests/uniwidth/test-uc_width2.sh: Update expected result.
20240
20241         Update to Unicode 5.1.0.
20242         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
20243         code transform.
20244         * lib/uniname/uniname.c (unicode_character_name,
20245         unicode_name_character): Add the range 0x1Fxxx to the code transform.
20246         * lib/uniname/uninames.h: Regenerated.
20247         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
20248
20249 2009-02-07  Bruno Haible  <bruno@clisp.org>
20250
20251         Merge gen-ctype and gen-lbrk into a single program.
20252         * lib/gen-uni-tables.c: New file, incorporating
20253         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
20254         Add directory prefixes to the names of the generated files.
20255         * lib/unictype/gen-ctype.c: Remove file.
20256         * lib/unilbrk/gen-lbrk.c: Remove file.
20257         * modules/gen-uni-tables: New file.
20258         * modules/unictype/gen-ctype: Remove file.
20259         * modules/unilbrk/gen-lbrk: Remove file.
20260
20261 2009-02-07  Bruno Haible  <bruno@clisp.org>
20262
20263         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
20264
20265         New module 'unistr/u32-strcoll'.
20266         * modules/unistr/u32-strcoll: New file.
20267         * lib/unistr/u32-strcoll.c: New file.
20268
20269         New module 'unistr/u16-strcoll'.
20270         * modules/unistr/u16-strcoll: New file.
20271         * lib/unistr/u16-strcoll.c: New file.
20272
20273         New module 'unistr/u8-strcoll'.
20274         * modules/unistr/u8-strcoll: New file.
20275         * lib/unistr/u8-strcoll.c: New file.
20276         * lib/unistr/u-strcoll.h: New file.
20277
20278 2009-02-07  Bruno Haible  <bruno@clisp.org>
20279
20280         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
20281         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
20282         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
20283         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
20284         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
20285         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
20286
20287 2009-02-07  Bruno Haible  <bruno@clisp.org>
20288
20289         Make 64-bit clean.
20290         * lib/unictype/gen-ctype.c (output_predicate, output_category,
20291         output_combclass, output_bidi_category, output_decimal_digit,
20292         output_digit, output_numeric, output_mirror, output_scripts,
20293         output_ident_category): Use proper width specifier in format strings.
20294
20295 2009-02-07  Bruno Haible  <bruno@clisp.org>
20296
20297         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
20298         failure behaviour.
20299
20300 2009-02-07  Jim Meyering  <meyering@redhat.com>
20301
20302         regex: avoid compilation failure with upcoming gcc-4.4
20303         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
20304         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
20305         "... error: integer overflow in preprocessor expression".
20306
20307 2009-02-05  Ben Pfaff  <blp@gnu.org>
20308
20309         Fix link errors on Windows when close module is used.
20310         * modules/close: Add $(LIB_CLOSE) to Link section.
20311         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
20312         $(LIB_CLOSE) on Windows.
20313
20314 2009-02-05  Jim Meyering  <meyering@redhat.com>
20315
20316         still avoid unused-parameter warnings, but do it cleanly
20317         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
20318         (get_fs_usage): Cast to void instead.
20319         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
20320         (dev_from_mount_options, read_file_system_list): Cast to void.
20321         Prompted by Bruno Haible.
20322
20323 2009-02-04  Jim Meyering  <meyering@redhat.com>
20324
20325         fsusage.c: correct copyright year
20326         * lib/fsusage.c: Reflect year in which the change is pushed into
20327
20328         avoid misc. warnings
20329         * lib/fsusage.c (UNUSED_PARAM): Define.
20330         (get_fs_usage): Mark parameter "disk" as unused.
20331         * lib/getugroups.c (getgrent): Use "void" in prototype.
20332         * lib/mountlist.c: Mark unused parameters.
20333         (read_file_system_list): Declare a local with "const".
20334         * lib/nanosleep.c (getnow): Declare static.
20335         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
20336
20337         dirfd: set errno upon failure
20338         * lib/dirfd.c: Include <errno.h>.
20339         Set errno to ENOTSUP when returning -1.
20340         * modules/dirfd (Depends-on): Add errno.
20341         Suggested by John Kodis <kodis@comcast.net>.
20342
20343 2009-02-01  Bruno Haible  <bruno@clisp.org>
20344
20345         Don't assume sizeof (long) >= sizeof (void *).
20346         * lib/memcmp.c: Include stdint.h.
20347         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
20348         srcp2 to 'const byte *'.
20349         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
20350         types to uintptr_t.
20351         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
20352         * modules/memcmp (Depends-on): Add stdint.
20353         Reported by Ozkan Sezer <sezeroz@gmail.com>.
20354
20355 2009-01-30  Eric Blake  <ebb9@byu.net>
20356
20357         fix more require-before-expand issues
20358         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
20359         expand, AC_PROG_AWK.
20360         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
20361
20362 2009-01-28  Eric Blake  <ebb9@byu.net>
20363
20364         version-etc: use consistent URL formatting
20365         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
20366         Improve formatting.  Use fputs for string without %.
20367
20368 2009-01-28  Jim Meyering  <meyering@redhat.com>
20369
20370         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
20371         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
20372         "underquoted definition of NAME" from autoconf-2.59.
20373
20374 2009-01-28  Bruno Haible  <bruno@clisp.org>
20375
20376         * doc/gnulib.texi: Add "Obsolete modules" to index.
20377
20378 2009-01-28  Jim Meyering  <meyering@redhat.com>
20379
20380         useless-if-before-free: recognize more variants
20381         * build-aux/useless-if-before-free: Also recognize e.g.,
20382         if (NULL != p) free (p);
20383
20384 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
20385
20386         test-getaddrinfo: skip (don't fail) this test when there's no network
20387         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
20388         on the presumption that it means you lack network access.
20389
20390 2009-01-26  Jim Meyering  <meyering@redhat.com>
20391
20392         fflush: avoid warnings on modern systems
20393         * lib/fflush.c (rpl_fflush): Move declarations of locals,
20394         pos and result, into scopes where they're used.
20395
20396 2009-01-26  Eric Blake  <ebb9@byu.net>
20397
20398         Silence warning reintroduced by recent extensions patch.
20399         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
20400         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
20401         autoconf.
20402
20403         Backport improved autoconf semantics of AC_DEFUN_ONCE.
20404         * m4/00gnulib.m4: New file.
20405         * gnulib-tool (func_get_filelist): Always use it.
20406         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
20407         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
20408
20409 2009-01-25  Bruno Haible  <bruno@clisp.org>
20410
20411         Make test-quotearg work on MacOS X and AIX.
20412         * tests/test-quotearg.sh: New file.
20413         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
20414         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
20415         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
20416         include <libintl.h>.
20417         (fake_locale): Remove variable.
20418         (gettext, dgettext, dcgettext): Remove functions.
20419         (main): Instead of setting a fake locale, set a real locale. Call
20420         textdomain and bindtextdomain.
20421         * modules/quotearg-tests (Files): Add the new files.
20422         (Depends-on): Add gettext, setenv, unsetenv.
20423         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
20424         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
20425         Augment TESTS_ENVIRONMENT.
20426
20427 2009-01-25  Bruno Haible  <bruno@clisp.org>
20428
20429         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
20430         fr_FR.ISO8859-1 locale on MacOS X.
20431         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
20432         ja_JP.eucJP locale on MacOS X.
20433         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
20434         zh_CN.GB18030 locale on MacOS X.
20435
20436 2009-01-25  Bruno Haible  <bruno@clisp.org>
20437
20438         Avoid link errors on MacOS X 10.3.
20439         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
20440         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
20441
20442 2009-01-25  Bruno Haible  <bruno@clisp.org>
20443
20444         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
20445         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
20446         * modules/pipe (Files): Remove m4/posix_spawn.m4.
20447         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
20448         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
20449         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
20450         posix_spawnattr_init, posix_spawnattr_setsigmask,
20451         posix_spawnattr_setflags, posix_spawnattr_destroy.
20452
20453         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
20454         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
20455         * modules/execute (Files): Remove m4/posix_spawn.m4.
20456         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
20457         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
20458         posix_spawnattr_init, posix_spawnattr_setsigmask,
20459         posix_spawnattr_setflags, posix_spawnattr_destroy.
20460
20461 2009-01-25  Bruno Haible  <bruno@clisp.org>
20462
20463         * lib/glthread/threadlib.c: Include <stdlib.h>.
20464
20465 2009-01-25  Bruno Haible  <bruno@clisp.org>
20466
20467         * lib/glthread/threadlib.c (dummy): New declaration.
20468
20469 2009-01-25  Bruno Haible  <bruno@clisp.org>
20470
20471         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
20472         multibyte characters also for the GB18030 encoding. Don't crash when
20473         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
20474
20475 2009-01-25  Bruno Haible  <bruno@clisp.org>
20476
20477         Avoid redefining 'struct random_data' on OSF/1 5.1.
20478         * lib/stdlib.in.h: Include <random.h> if it exists.
20479         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
20480         HAVE_RANDOM_H. Include <random.h> when testing whether
20481         'struct random_data' exists.
20482         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
20483
20484 2009-01-25  Bruno Haible  <bruno@clisp.org>
20485
20486         Don't install charset.alias on MacOS X >= 10.3.
20487         * lib/localcharset.c (DARWIN7): New macro.
20488         (get_charset_aliases): Hardcode the result for Darwin7.
20489         * modules/localcharset (install-exec-local): Don't install
20490         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
20491
20492 2009-01-25  Bruno Haible  <bruno@clisp.org>
20493
20494         Don't install charset.alias on mingw and Cygwin.
20495         * modules/localcharset (install-exec-local): Don't install
20496         charset.alias on mingw and Cygwin, if the file does not yet exist.
20497         The result for these platforms is hardcoded in localcharset.c.
20498
20499 2009-01-25  Bruno Haible  <bruno@clisp.org>
20500
20501         Make it possible again to use AC_GNU_SOURCE together with gnulib.
20502         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
20503         before requiring AC_USE_SYSTEM_EXTENSIONS.
20504
20505 2009-01-25  Jim Meyering  <meyering@redhat.com>
20506
20507         c-strtod: avoid warnings
20508         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
20509         "assignment discards qualifiers from pointer target type" warnings.
20510
20511 2009-01-24  Bruno Haible  <bruno@clisp.org>
20512
20513         Add support for non-UTF-8 locales on MacOS X.
20514         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
20515         canonical encodings. For Darwin 7 and newer, don't map traditional
20516         encodings to UTF-8.
20517         Reported by Vincent Lefevre <vincent@vinc17.org>
20518         at <http://savannah.gnu.org/bugs/?25235>.
20519
20520 2009-01-24  Bruno Haible  <bruno@clisp.org>
20521
20522         * doc/gnulib.texi (Obsolete modules): New section.
20523         Reported by Mike Frysinger <vapier@gentoo.org>.
20524
20525 2009-01-24  Bruno Haible  <bruno@clisp.org>
20526
20527         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
20528         (%.dvi): New rule.
20529
20530 2009-01-24  Bruno Haible  <bruno@clisp.org>
20531
20532         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
20533         Reported by Eric Blake.
20534
20535 2009-01-24  Bruno Haible  <bruno@clisp.org>
20536
20537         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
20538         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
20539         Reported by Gary V. Vaughan <gary@gnu.org>.
20540
20541 2009-01-24  Bruno Haible  <bruno@clisp.org>
20542
20543         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
20544
20545 2009-01-23  Bruno Haible  <bruno@clisp.org>
20546
20547         Make c-strtod, c-strtold usable in libraries.
20548         * lib/c-strtod.c: Include string.h instead of xalloc.h.
20549         (C_STRTOD): Call strdup instead of xstrdup.
20550         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
20551         * modules/c-strtold (Depends-on): Likewise.
20552         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
20553         * NEWS: Mention the change.
20554         Reported by Michael Gold <mgold@ncf.ca>.
20555
20556 2009-01-23  Jim Meyering  <meyering@redhat.com>
20557
20558         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
20559         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
20560         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
20561
20562 2009-01-23  Simon Josefsson  <simon@josefsson.org>
20563
20564         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
20565         GNU CoreUtils.
20566         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
20567         * modules/version-etc (Description): Update.
20568
20569 2009-01-22  Bruno Haible  <bruno@clisp.org>
20570
20571         Cache the C locale object.
20572         * lib/c-strtod.c (c_locale_cache): New variable.
20573         (c_locale): New function.
20574         (C_STRTOD): Use it, and don't call freelocale.
20575         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
20576         Suggested by Paolo Bonzini.
20577
20578 2009-01-21  Bruno Haible  <bruno@clisp.org>
20579
20580         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
20581         conditions other than overflow.
20582
20583 2009-01-21  Bruno Haible  <bruno@clisp.org>
20584
20585         * lib/c-strtod.c: Include errno.h.
20586         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
20587         value from STRTOD_L and STRTOD.
20588
20589 2009-01-21  Bruno Haible  <bruno@clisp.org>
20590         and Jim Meyering  <meyering@redhat.com>
20591
20592         nanosleep: skip configure test (fail it) for apple universal builds
20593         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
20594         universal builds, assume that nanosleep does not work.
20595         * modules/nanosleep (Depends-on): Add multiarch.
20596
20597         mktime: skip configure test (fail it) for apple universal builds
20598         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
20599         universal builds, assume that mktime does not work.
20600         * modules/mktime (Depends-on): Add multiarch.
20601
20602 2009-01-21  Eric Blake  <ebb9@byu.net>
20603
20604         multiarch: avoid expand-before-require warning
20605         * modules/multiarch (configure.ac): Require, rather than expand,
20606         gl_MULTIARCH.
20607         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
20608         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
20609         enforce that all clients require it.  Partial reversion of
20610         2008-12-29 patch.
20611
20612         error: avoid expand-before-require warning
20613         * modules/errno (configure.ac): Require, rather than expand,
20614         gl_HEADER_ERRNO_H.
20615         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
20616         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
20617         enforce that all clients require it.
20618
20619         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
20620         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
20621         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
20622         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
20623
20624 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
20625
20626         Revert:
20627         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
20628
20629         regex: do not depend on obsolete modules.
20630         * modules/regex: Remove memcmp and memmove.
20631
20632 2009-01-20  Bruno Haible  <bruno@clisp.org>
20633
20634         Make the 'link' module link on Windows NT 4.
20635         * lib/link.c (_WIN32_WINNT): Don't define.
20636         (CreateHardLinkFuncType): New type.
20637         (CreateHardLinkFunc, initialized): New variables.
20638         (initialize): New function.
20639         (link): Invoke CreateHardLink indirectly through the function pointer.
20640
20641 2009-01-20  Bruno Haible  <bruno@clisp.org>
20642
20643         Fix compilation failure on mingw.
20644         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
20645
20646 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
20647
20648         * doc/c-strtod.texi: Mention a couple of restrictions.
20649
20650 2009-01-20  Jim Meyering  <meyering@redhat.com>
20651
20652         gettimeofday: move more declarations out of functions
20653         * lib/gettimeofday.c: Move extern declarations of tzset and
20654         gmtime out of containing functions.  Prompted by Bruno Haible.
20655
20656 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
20657
20658         regex: do not depend on obsolete modules.
20659         * modules/regex: Remove memcmp and memmove.
20660
20661 2009-01-19  Bruno Haible  <bruno@clisp.org>
20662
20663         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
20664         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
20665         gl_BIGENDIAN, not AC_C_BIGENDIAN.
20666         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
20667         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
20668
20669 2009-01-19  Bruno Haible  <bruno@clisp.org>
20670
20671         * tests/test-link.c: Include <errno.h>.
20672         (main): Exit with code 77 when a hard link cannot be created due to
20673         the file system.
20674         * tests/test-link.sh: Skip test when a hard link cannot be created due
20675         to the file system.
20676         Suggested by Eric Blake.
20677
20678 2009-01-19  Martin Lambers  <marlam@marlam.de>
20679
20680         * modules/link-tests: New file.
20681         * tests/test-link.sh: New file.
20682         * tests/test-link.c: New file.
20683
20684 2009-01-19  Eric Blake  <ebb9@byu.net>
20685
20686         doc: mention another function added in cygwin 1.7.0
20687         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
20688         Another new function in cygwin 1.7.
20689
20690 2009-01-19  Bruno Haible  <bruno@clisp.org>
20691
20692         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
20693         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
20694         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
20695         gl_BIGENDIAN, not AC_C_BIGENDIAN.
20696         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
20697         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
20698         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
20699         * m4/md4.m4 (gl_MD4): Likewise.
20700         * m4/md5.m4 (gl_MD5): Likewise.
20701         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
20702         * m4/sha1.m4 (gl_SHA1): Likewise.
20703         * m4/sha256.m4 (gl_SHA256): Likewise.
20704         * m4/sha512.m4 (gl_SHA512): Likewise.
20705
20706 2009-01-19  Bruno Haible  <bruno@clisp.org>
20707
20708         * modules/uniname/uniname-tests (Depends-on): Add progname.
20709         * tests/uniname/test-uninames.c: Include progname.h.
20710         (main): Call set_program_name.
20711
20712         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
20713         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
20714         (main): Call set_program_name.
20715
20716         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
20717         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
20718         (main): Call set_program_name.
20719
20720         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
20721         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
20722         (main): Call set_program_name.
20723
20724         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
20725         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
20726         (main): Call set_program_name.
20727
20728         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
20729         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
20730         (main): Call set_program_name.
20731
20732         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
20733         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
20734         (main): Call set_program_name.
20735
20736         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
20737         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
20738         (main): Call set_program_name.
20739
20740         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
20741         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
20742         (main): Call set_program_name.
20743
20744 2009-01-19  Eric Blake  <ebb9@byu.net>
20745
20746         test-unistd: test previous patch
20747         * tests/test-unistd.c: Test *_FILENO macros.
20748
20749         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
20750         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
20751         Guarantee a definition.
20752         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
20753         * modules/unistd-safer (Depends-on): Add dependency on unistd.
20754         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
20755         * lib/dup-safer.c (STDERR_FILENO): Likewise.
20756         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
20757         Likewise.
20758         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
20759         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
20760         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
20761         Likewise.
20762         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
20763         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
20764         (STDERR_FILENO): Likewise.
20765         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
20766         (STDERR_FILENO): Likewise.
20767         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
20768         (STDERR_FILENO): Likewise.
20769         Reported by Elbert Pol.
20770
20771 2009-01-19  Eric Blake  <ebb9@byu.net>
20772
20773         doc: mention more functions added in cygwin 1.7.0
20774         * doc/posix-functions/abort.texi (abort): Update wording related
20775         to cygwin.
20776         * doc/posix-functions/daylight.texi (daylight): Likewise.
20777         * doc/posix-functions/optarg.texi (optarg): Likewise.
20778         * doc/posix-functions/optarg.texi (opterr): Likewise.
20779         * doc/posix-functions/optarg.texi (optind): Likewise.
20780         * doc/posix-functions/optarg.texi (optopt): Likewise.
20781         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
20782         worked in 1.5.x, and was withdrawn in 1.7.
20783         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
20784         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
20785         cygwin versions.
20786         * doc/posix-functions/perror.texi (perror): Likewise.
20787         * doc/posix-functions/printf.texi (printf): Likewise.
20788         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
20789         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
20790         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
20791         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
20792         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
20793         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
20794         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
20795         Likewise.
20796         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
20797         Likewise.
20798         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
20799         this function.
20800         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
20801         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
20802         Likewise.
20803         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
20804         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
20805         * doc/posix-functions/confstr.texi (confstr): Likewise.
20806         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
20807         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
20808         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
20809         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
20810         * doc/posix-functions/fputws.texi (fputws): Likewise.
20811         * doc/posix-functions/fwide.texi (fwide): Likewise.
20812         * doc/posix-functions/getwc.texi (getwc): Likewise.
20813         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
20814         * doc/posix-functions/putwc.texi (putwc): Likewise.
20815         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
20816         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
20817         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
20818         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
20819         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
20820         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
20821         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
20822         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
20823         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
20824         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
20825         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
20826
20827 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
20828
20829         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
20830         * lib/ioctl.c: Include <sys/ioctl.h>.
20831
20832 2009-01-19  Simon Josefsson  <simon@josefsson.org>
20833
20834         * modules/getdate-tests (Depends-on): Add progname.
20835         * tests/test-getdate.c: Use progname module, to avoid link errors
20836         on non-glibc systems.
20837
20838 2009-01-18  Simon Josefsson  <simon@josefsson.org>
20839
20840         * modules/filenamecat-tests (Depends-on): Add progname.
20841         * modules/fstrcmp-tests (Depends-on): Likewise.
20842
20843         * tests/test-filenamecat.c: Use progname module, to avoid link
20844         errors on non-glibc systems.
20845         * tests/test-fstrcmp.c: Likewise.
20846
20847 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
20848
20849         gettimeofday: avoid warning: nested extern declaration of 'localtime'
20850         * lib/gettimeofday.c: Move extern declaration out of function.
20851
20852 2009-01-18  Bruno Haible  <bruno@clisp.org>
20853
20854         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
20855         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
20856         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
20857
20858 2009-01-18  Bruno Haible  <bruno@clisp.org>
20859
20860         * lib/strftime.c (MEMPCPY): Remove unused macro.
20861         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
20862
20863 2009-01-18  Martin Lambers  <marlam@marlam.de>
20864
20865         New module 'link'.
20866         * lib/unistd.in.h (link): New declaration.
20867         * lib/link.c: New file.
20868         * m4/link.m4: New file.
20869         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
20870         HAVE_LINK.
20871         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
20872         * modules/link: New file.
20873         * doc/posix-functions/link.texi: Mention the new module.
20874
20875 2009-01-18  Bruno Haible  <bruno@clisp.org>
20876
20877         * tests/test-avltree_list.c (main): Call set_program_name.
20878         * tests/test-avltree_oset.c (main): Likewise.
20879         * tests/test-obstack-printf.c: Include progname.h.
20880         (main): Call set_program_name.
20881         * tests/test-quotearg.c: Include progname.h.
20882         (main): Call set_program_name.
20883         * tests/test-xmemdup0.c: Include progname.h.
20884         (main): Call set_program_name.
20885
20886 2009-01-18  Bruno Haible  <bruno@clisp.org>
20887
20888         New module 'alphasort'.
20889         * lib/dirent.in.h (alphasort): New declaration.
20890         * lib/alphasort.c: New file, from glibc with modifications.
20891         * m4/alphasort.m4: New file.
20892         * modules/alphasort: New file.
20893         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
20894         HAVE_ALPHASORT.
20895         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
20896         HAVE_ALPHASORT.
20897         * doc/posix-functions/alphasort.texi: Mention the new module and the
20898         portability problems.
20899
20900 2009-01-18  Bruno Haible  <bruno@clisp.org>
20901
20902         New module 'scandir'.
20903         * lib/dirent.in.h (scandir): New declaration.
20904         * lib/scandir.c: New file, from glibc with modifications.
20905         * m4/scandir.m4: New file.
20906         * modules/scandir: New file.
20907         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
20908         HAVE_SCANDIR.
20909         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
20910         HAVE_SCANDIR.
20911         * doc/posix-functions/scandir.texi: Mention the new module and the
20912         portability problems.
20913
20914 2009-01-17  Bruno Haible  <bruno@clisp.org>
20915
20916         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
20917         Update documentation.
20918         (func_remove_suffix): Escape all dots in the suffix. Update
20919         documentation.
20920         (func_filter_filelist): Update documentation.
20921         Reported by Ralf Wildenhues.
20922
20923 2009-01-17  Bruno Haible  <bruno@clisp.org>
20924
20925         * modules/dprintf-posix-tests: New file.
20926         * tests/test-dprintf-posix.sh: New file.
20927         * tests/test-dprintf-posix.c: New file.
20928
20929         New modules 'dprintf', 'dprintf-posix'.
20930         * lib/stdio.in.h (dprintf): New declaration.
20931         * lib/dprintf.c: New file.
20932         * m4/dprintf.m4: New file.
20933         * m4/dprintf-posix.m4: New file.
20934         * modules/dprintf: New file.
20935         * modules/dprintf-posix: New file.
20936         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
20937         HAVE_DPRINTF, REPLACE_DPRINTF.
20938         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
20939         HAVE_DPRINTF, REPLACE_DPRINTF.
20940         * doc/posix-functions/dprintf.texi: Mention the new modules.
20941
20942 2009-01-17  Bruno Haible  <bruno@clisp.org>
20943
20944         * modules/vdprintf-posix-tests: New file.
20945         * tests/test-vdprintf-posix.sh: New file.
20946         * tests/test-vdprintf-posix.c: New file.
20947
20948         New modules 'vdprintf', 'vdprintf-posix'.
20949         * lib/stdio.in.h (vdprintf): New declaration.
20950         * lib/vdprintf.c: New file.
20951         * m4/vdprintf.m4: New file.
20952         * m4/vdprintf-posix.m4: New file.
20953         * modules/vdprintf: New file.
20954         * modules/vdprintf-posix: New file.
20955         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
20956         HAVE_VDPRINTF, REPLACE_VDPRINTF.
20957         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
20958         HAVE_VDPRINTF, REPLACE_VDPRINTF.
20959         * doc/posix-functions/vdprintf.texi: Mention the new modules.
20960
20961 2009-01-17  Bruno Haible  <bruno@clisp.org>
20962
20963         Fix replacement of fopen on mingw.
20964         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
20965         mingw.
20966
20967 2009-01-17  Bruno Haible  <bruno@clisp.org>
20968
20969         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
20970         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
20971
20972 2009-01-17  Bruno Haible  <bruno@clisp.org>
20973
20974         Avoid test-fflush2.sh failure on mingw.
20975         * tests/test-fflush2.c: Include binary-io.h.
20976         (main): Put standard input into binary mode.
20977         * modules/fflush-tests (Depends-on): Add binary-io.
20978
20979 2009-01-17  Bruno Haible  <bruno@clisp.org>
20980
20981         * lib/wchar.in.h: In another particular situation, include only the
20982         system's <wchar.h> file.
20983         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
20984         Reported by Albert Chin-A-Young <china@thewrittenword.com>
20985         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
20986
20987 2009-01-17  Bruno Haible  <bruno@clisp.org>
20988
20989         Support for stripping executables in --enable-relocatable.
20990         * build-aux/install-reloc: Expect one more argument, or an environment
20991         variable RELOC_STRIP_PROG. If set, strip the destination program and
20992         its wrapper.
20993         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
20994         RELOC_STRIP_PROG.
20995         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
20996         to set RELOCATABLE_STRIP.
20997         * NEWS: Mention the new Makefile requirement.
20998
20999 2009-01-17  Bruno Haible  <bruno@clisp.org>
21000
21001         * build-aux/install-reloc: Remove debugging information left over by
21002         C compiler on MacOS X.
21003
21004 2009-01-17  Bruno Haible  <bruno@clisp.org>
21005
21006         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
21007         * lib/progreloc.c (find_executable): Fix type of pointer passed to
21008         _NSGetExecutablePath.
21009
21010 2009-01-16  Jim Meyering  <meyering@redhat.com>
21011
21012         strerror: avoid warnings about discarding "const"
21013         * lib/strerror.c (rpl_strerror): Instead of returning a const
21014         string from each and every "case", use a variable, and add a single
21015         cast after the switch.
21016
21017 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
21018
21019         * lib/arpa_inet.in.h: Add extern "C" block for C++.
21020
21021 2009-01-16  Bruno Haible  <bruno@clisp.org>
21022
21023         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
21024         array initializer syntax that also works in C++ mode.
21025         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
21026
21027 2009-01-16  Jim Meyering  <meyering@redhat.com>
21028
21029         poll: suppress a warning
21030         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
21031         to ignore "...unsigned expression < 0 is always false" warnings.
21032
21033 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
21034
21035         poll: remove declarations of unused variables
21036         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
21037         sockbuf and optlen.
21038
21039 2009-01-15  Bruno Haible  <bruno@clisp.org>
21040
21041         Make fflush-after-ungetc POSIX compliant on BSD systems.
21042         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
21043         (clear_ungetc_buffer): Implement also for other systems.
21044         (rpl_fflush): On glibc systems, invoke
21045         clear_ungetc_buffer_preserving_position. Otherwise, invoke
21046         clear_ungetc_buffer after fetching the stream's position, not before.
21047
21048 2009-01-15  Bruno Haible  <bruno@clisp.org>
21049
21050         Make fflush-after-ungetc POSIX compliant on glibc systems.
21051         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
21052         after ungetc.
21053         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
21054         (rpl_fflush): On glibc systems, simply call the system's fflush
21055         function after clearing the ungetc buffer.
21056         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
21057         Instead, lseek only to the end of file, then use the system's fseeko
21058         for the rest. On glibc systems, reset the EOF indicator bit.
21059
21060 2009-01-15  Jim Meyering  <meyering@redhat.com>
21061
21062         openmp.m4: revert quote-adding change, for portability to older autoconf
21063         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
21064         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
21065         Simon Josefsson noticed the problem when using autoconf-2.61.
21066
21067 2009-01-15  Bruno Haible  <bruno@clisp.org>
21068
21069         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
21070         * tests/test-fflush2.c (ASSERT): Always fail.
21071         (main): Add two tests for fflush() after ungetc(), taking into account
21072         the Austin Group's clarification.
21073         Suggested by Eric Blake.
21074
21075 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
21076
21077         mktime.m4: remove K&R-style function prototypes
21078         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
21079         for the Sun C++ compiler.
21080
21081 2009-01-14  Bruno Haible  <bruno@clisp.org>
21082
21083         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
21084         while including <wchar.h>.
21085         * lib/wchar.in.h: In two particular situations on HP-UX, include only
21086         the system's <wchar.h> file.
21087         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
21088
21089 2009-01-14  Bruno Haible  <bruno@clisp.org>
21090
21091         * m4/csharp.m4: Don't mention gettext on the serial number line.
21092         * m4/csharpexec.m4: Likewise.
21093         * m4/eaccess.m4: Likewise.
21094         * m4/javaexec.m4: Likewise.
21095         * m4/sig_atomic_t.m4: Likewise.
21096         * m4/tmpdir.m4: Likewise.
21097         * m4/intldir.m4: Bump gettext version.
21098         * m4/lib-ld.m4: Likewise.
21099
21100 2009-01-14  Bruno Haible  <bruno@clisp.org>
21101
21102         * lib/progname.c (set_program_name): Add more comments.
21103         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
21104
21105 2009-01-14  Simon Josefsson  <simon@josefsson.org>
21106
21107         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
21108         were sys/stat.h does not define it.
21109
21110 2009-01-14  Jim Meyering  <meyering@redhat.com>
21111
21112         many *.m4 files: improve m4 quoting
21113         99% of this change was performed by running the following commands:
21114         git ls-files | grep '\.m4$' | xargs perl -pi \
21115           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
21116           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
21117           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
21118           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
21119         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
21120         The remainder were to add Copyright dates, increment serial numbers,
21121         undo some changes in comments, exclude m4/intl.m4, and add quotes
21122         around the "1" in ",1" where the unusual spacing prohibited the
21123         above regexps from doing the job.  For more details, see
21124         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
21125         * m4/acl.m4: Modified.
21126         * m4/afs.m4: Likewise.
21127         * m4/alloca.m4: Likewise.
21128         * m4/argp.m4: Likewise.
21129         * m4/argz.m4: Likewise.
21130         * m4/atexit.m4: Likewise.
21131         * m4/bison-i18n.m4: Likewise.
21132         * m4/bison.m4: Likewise.
21133         * m4/byteswap.m4: Likewise.
21134         * m4/c-stack.m4: Likewise.
21135         * m4/c-strtod.m4: Likewise.
21136         * m4/calloc.m4: Likewise.
21137         * m4/canonicalize-lgpl.m4: Likewise.
21138         * m4/chown.m4: Likewise.
21139         * m4/clock_time.m4: Likewise.
21140         * m4/codeset.m4: Likewise.
21141         * m4/copy-file.m4: Likewise.
21142         * m4/csharp.m4: Likewise.
21143         * m4/csharpcomp.m4: Likewise.
21144         * m4/csharpexec.m4: Likewise.
21145         * m4/d-ino.m4: Likewise.
21146         * m4/d-type.m4: Likewise.
21147         * m4/dirfd.m4: Likewise.
21148         * m4/double-slash-root.m4: Likewise.
21149         * m4/eaccess.m4: Likewise.
21150         * m4/eealloc.m4: Likewise.
21151         * m4/environ.m4: Likewise.
21152         * m4/errno_h.m4: Likewise.
21153         * m4/euidaccess.m4: Likewise.
21154         * m4/execute.m4: Likewise.
21155         * m4/fatal-signal.m4: Likewise.
21156         * m4/fchdir.m4: Likewise.
21157         * m4/fcntl_h.m4: Likewise.
21158         * m4/fileblocks.m4: Likewise.
21159         * m4/filenamecat.m4: Likewise.
21160         * m4/findprog.m4: Likewise.
21161         * m4/flexmember.m4: Likewise.
21162         * m4/fnmatch.m4: Likewise.
21163         * m4/fopen.m4: Likewise.
21164         * m4/fpending.m4: Likewise.
21165         * m4/fprintf-posix.m4: Likewise.
21166         * m4/free.m4: Likewise.
21167         * m4/frexp.m4: Likewise.
21168         * m4/frexpl.m4: Likewise.
21169         * m4/fsusage.m4: Likewise.
21170         * m4/ftruncate.m4: Likewise.
21171         * m4/gc-camellia.m4: Likewise.
21172         * m4/gc-random.m4: Likewise.
21173         * m4/gc.m4: Likewise.
21174         * m4/getaddrinfo.m4: Likewise.
21175         * m4/getcwd-abort-bug.m4: Likewise.
21176         * m4/getcwd-path-max.m4: Likewise.
21177         * m4/getdate.m4: Likewise.
21178         * m4/getdomainname.m4: Likewise.
21179         * m4/getgroups.m4: Likewise.
21180         * m4/gethostname.m4: Likewise.
21181         * m4/gethrxtime.m4: Likewise.
21182         * m4/getline.m4: Likewise.
21183         * m4/getloadavg.m4: Likewise.
21184         * m4/getndelim2.m4: Likewise.
21185         * m4/getpass.m4: Likewise.
21186         * m4/gettext.m4: Likewise.
21187         * m4/gettime.m4: Likewise.
21188         * m4/gettimeofday.m4: Likewise.
21189         * m4/gnulib-common.m4: Likewise.
21190         * m4/group-member.m4: Likewise.
21191         * m4/host-os.m4: Likewise.
21192         * m4/iconv.m4: Likewise.
21193         * m4/iconv_open.m4: Likewise.
21194         * m4/inet_ntop.m4: Likewise.
21195         * m4/inet_pton.m4: Likewise.
21196         * m4/inline.m4: Likewise.
21197         * m4/intldir.m4: Likewise.
21198         * m4/intlmacosx.m4: Likewise.
21199         * m4/intmax.m4: Likewise.
21200         * m4/intmax_t.m4: Likewise.
21201         * m4/inttypes.m4: Likewise.
21202         * m4/inttypes_h.m4: Likewise.
21203         * m4/inttypes-pri.m4: Likewise.
21204         * m4/isapipe.m4: Likewise.
21205         * m4/isnand.m4: Likewise.
21206         * m4/isnanf.m4: Likewise.
21207         * m4/isnanl.m4: Likewise.
21208         * m4/javacomp.m4: Likewise.
21209         * m4/javaexec.m4: Likewise.
21210         * m4/jm-winsz1.m4: Likewise.
21211         * m4/jm-winsz2.m4: Likewise.
21212         * m4/lchown.m4: Likewise.
21213         * m4/lcmessage.m4: Likewise.
21214         * m4/ldexpl.m4: Likewise.
21215         * m4/lib-ld.m4: Likewise.
21216         * m4/lib-link.m4: Likewise.
21217         * m4/libsigsegv.m4: Likewise.
21218         * m4/link-follow.m4: Likewise.
21219         * m4/localcharset.m4: Likewise.
21220         * m4/locale-fr.m4: Likewise.
21221         * m4/locale-ja.m4: Likewise.
21222         * m4/locale-tr.m4: Likewise.
21223         * m4/locale-zh.m4: Likewise.
21224         * m4/lock.m4: Likewise.
21225         * m4/longlong.m4: Likewise.
21226         * m4/ls-mntd-fs.m4: Likewise.
21227         * m4/lstat.m4: Likewise.
21228         * m4/malloc.m4: Likewise.
21229         * m4/mathl.m4: Likewise.
21230         * m4/mbrtowc.m4: Likewise.
21231         * m4/mbstate_t.m4: Likewise.
21232         * m4/mbswidth.m4: Likewise.
21233         * m4/memchr.m4: Likewise.
21234         * m4/memcmp.m4: Likewise.
21235         * m4/memcpy.m4: Likewise.
21236         * m4/memmem.m4: Likewise.
21237         * m4/memmove.m4: Likewise.
21238         * m4/mempcpy.m4: Likewise.
21239         * m4/memrchr.m4: Likewise.
21240         * m4/memset.m4: Likewise.
21241         * m4/minmax.m4: Likewise.
21242         * m4/mkdir-slash.m4: Likewise.
21243         * m4/mkdtemp.m4: Likewise.
21244         * m4/mktime.m4: Likewise.
21245         * m4/mmap-anon.m4: Likewise.
21246         * m4/mountlist.m4: Likewise.
21247         * m4/nanosleep.m4: Likewise.
21248         * m4/nls.m4: Likewise.
21249         * m4/nocrash.m4: Likewise.
21250         * m4/open.m4: Likewise.
21251         * m4/openat.m4: Likewise.
21252         * m4/openmp.m4: Likewise.
21253         * m4/pathmax.m4: Likewise.
21254         * m4/perl.m4: Likewise.
21255         * m4/physmem.m4: Likewise.
21256         * m4/pipe.m4: Likewise.
21257         * m4/po.m4: Likewise.
21258         * m4/poll.m4: Likewise.
21259         * m4/posixtm.m4: Likewise.
21260         * m4/posixver.m4: Likewise.
21261         * m4/printf-frexp.m4: Likewise.
21262         * m4/printf-frexpl.m4: Likewise.
21263         * m4/printf-posix.m4: Likewise.
21264         * m4/printf-posix-rpl.m4: Likewise.
21265         * m4/printf.m4: Likewise.
21266         * m4/progtest.m4: Likewise.
21267         * m4/putenv.m4: Likewise.
21268         * m4/readline.m4: Likewise.
21269         * m4/readlink.m4: Likewise.
21270         * m4/readutmp.m4: Likewise.
21271         * m4/realloc.m4: Likewise.
21272         * m4/regex.m4: Likewise.
21273         * m4/relocatable.m4: Likewise.
21274         * m4/relocatable-lib.m4: Likewise.
21275         * m4/rename-dest-slash.m4: Likewise.
21276         * m4/rename.m4: Likewise.
21277         * m4/rmdir-errno.m4: Likewise.
21278         * m4/rmdir.m4: Likewise.
21279         * m4/roundf.m4: Likewise.
21280         * m4/roundl.m4: Likewise.
21281         * m4/rpmatch.m4: Likewise.
21282         * m4/save-cwd.m4: Likewise.
21283         * m4/selinux-selinux-h.m4: Likewise.
21284         * m4/setenv.m4: Likewise.
21285         * m4/settime.m4: Likewise.
21286         * m4/sig2str.m4: Likewise.
21287         * m4/sig_atomic_t.m4: Likewise.
21288         * m4/signalblocking.m4: Likewise.
21289         * m4/signbit.m4: Likewise.
21290         * m4/sigpipe.m4: Likewise.
21291         * m4/sockets.m4: Likewise.
21292         * m4/sockpfaf.m4: Likewise.
21293         * m4/st_dm_mode.m4: Likewise.
21294         * m4/stat-time.m4: Likewise.
21295         * m4/stdbool.m4: Likewise.
21296         * m4/stdint.m4: Likewise.
21297         * m4/stdint_h.m4: Likewise.
21298         * m4/stpcpy.m4: Likewise.
21299         * m4/stpncpy.m4: Likewise.
21300         * m4/strcase.m4: Likewise.
21301         * m4/strchrnul.m4: Likewise.
21302         * m4/strcspn.m4: Likewise.
21303         * m4/strdup.m4: Likewise.
21304         * m4/strftime.m4: Likewise.
21305         * m4/strndup.m4: Likewise.
21306         * m4/strnlen.m4: Likewise.
21307         * m4/strpbrk.m4: Likewise.
21308         * m4/strptime.m4: Likewise.
21309         * m4/strsep.m4: Likewise.
21310         * m4/strtod.m4: Likewise.
21311         * m4/strtoimax.m4: Likewise.
21312         * m4/strtok_r.m4: Likewise.
21313         * m4/strtol.m4: Likewise.
21314         * m4/strtoll.m4: Likewise.
21315         * m4/strtoul.m4: Likewise.
21316         * m4/strtoull.m4: Likewise.
21317         * m4/strtoumax.m4: Likewise.
21318         * m4/strverscmp.m4: Likewise.
21319         * m4/threadlib.m4: Likewise.
21320         * m4/timegm.m4: Likewise.
21321         * m4/tm_gmtoff.m4: Likewise.
21322         * m4/tmpdir.m4: Likewise.
21323         * m4/tmpfile.m4: Likewise.
21324         * m4/tzset.m4: Likewise.
21325         * m4/uintmax_t.m4: Likewise.
21326         * m4/unlinkdir.m4: Likewise.
21327         * m4/unlocked-io.m4: Likewise.
21328         * m4/uptime.m4: Likewise.
21329         * m4/userspec.m4: Likewise.
21330         * m4/utimbuf.m4: Likewise.
21331         * m4/utime.m4: Likewise.
21332         * m4/utimes-null.m4: Likewise.
21333         * m4/utimes.m4: Likewise.
21334         * m4/vararrays.m4: Likewise.
21335         * m4/vasnprintf.m4: Likewise.
21336         * m4/vfprintf-posix.m4: Likewise.
21337         * m4/vprintf-posix.m4: Likewise.
21338         * m4/wait-process.m4: Likewise.
21339         * m4/wchar_t.m4: Likewise.
21340         * m4/wint_t.m4: Likewise.
21341         * m4/write-any-file.m4: Likewise.
21342         * m4/yield.m4: Likewise.
21343
21344 2009-01-13  Bruno Haible  <bruno@clisp.org>
21345
21346         Avoid test-copy-file.sh failures when ACL support insufficient.
21347         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
21348         TESTS_ENVIRONMENT.
21349         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
21350         Reported by Jim Meyering.
21351
21352 2009-01-13  Bruno Haible  <bruno@clisp.org>
21353
21354         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
21355         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
21356         * modules/unistdio/u8-printf-parse (Files): Likewise.
21357         * modules/unistdio/u32-printf-parse (Files): Likewise.
21358         * modules/unistdio/ulc-printf-parse (Files): Likewise.
21359
21360 2009-01-13  Simon Josefsson  <simon@josefsson.org>
21361
21362         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
21363         and m4/inttypes_h.m4 too.
21364
21365 2009-01-12  Eric Blake  <ebb9@byu.net>
21366
21367         tests: IRIX 6.2 cc can't compile -0.0 into .data
21368         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
21369         rather than at compile-time.
21370         * tests/test-floorl.c (minus_zero): Likewise.
21371         * tests/test-frexpl.c (minus_zero): Likewise.
21372         * tests/test-isnan.c (minus_zerol): Likewise.
21373         * tests/test-isnanl.h (minus_zero): Likewise.
21374         * tests/test-ldexpl.c (minus_zero): Likewise.
21375         * tests/test-roundl.c (minus_zero): Likewise.
21376         * tests/test-signbit.c (minus_zerol): Likewise.
21377         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
21378         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
21379         * tests/test-truncl.c (minus_zero): Likewise.
21380         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
21381         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
21382         Reported by Tom G. Christensen and Nelson H. F. Beebe.
21383
21384 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
21385
21386         regex: fix glibc bug 9697
21387         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
21388         handling.
21389
21390 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
21391
21392         regex: fix glibc bug 697
21393         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
21394         being NULL also if there are no backreferences.
21395
21396 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
21397
21398         regex: merge glibc changes
21399         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
21400         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
21401         re_string_skip_chars, re_string_reconstruct): Likewise.
21402         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
21403
21404 2009-01-07  Jim Meyering  <meyering@redhat.com>
21405
21406         poll: filter through cppi
21407         * lib/poll.c: Indent cpp directives to reflect nesting.
21408
21409 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
21410
21411         poll: don't return uninitialized
21412         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
21413
21414 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
21415
21416         avoid compile failure on AIX 6.1
21417         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
21418         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
21419
21420 2009-01-04  Jim Meyering  <meyering@redhat.com>
21421
21422         remove duplicate inclusion of <stdio.h>
21423         * tests/test-fprintf-posix.c: Likewise.
21424         * tests/test-printf-posix.c: Likewise.
21425         * tests/test-snprintf-posix.c: Likewise.
21426         * tests/test-sprintf-posix.c: Likewise.
21427         * tests/test-vasprintf-posix.c: Likewise.
21428         * tests/test-vfprintf-posix.c: Likewise.
21429         * tests/test-vprintf-posix.c: Likewise.
21430         * tests/test-vsnprintf-posix.c: Likewise.
21431         * tests/test-vsprintf-posix.c: Likewise.
21432
21433 2009-01-03  Jim Meyering  <meyering@redhat.com>
21434
21435         gnulib-tool: fix sed-based filtering
21436         * gnulib-tool (func_filter_filelist): Remove extra backslash
21437         in sed_fff_filter definition.
21438
21439 2009-01-02  Jim Meyering  <meyering@redhat.com>
21440
21441         strftime: avoid compilation failure on Solaris 2.6
21442         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
21443         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
21444         Don't #define mbrlen or mbsinit, since now they're guaranteed to
21445         be available.  Reported by Tom G. Christensen.  Details in
21446         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
21447
21448 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21449             Bruno Haible  <bruno@clisp.org>
21450
21451         Speed up gnulib-tool by doing more string processing through shell
21452         built-ins.
21453         * gnulib-tool (fast_func_append): New variable.
21454         (func_remove_prefix, func_remove_suffix): New functions.
21455         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
21456         (func_filter_filelist): New function.
21457         (func_get_dependencies): Use func_remove_suffix instead of sed.
21458         (func_get_automake_snippet): Use func_filter_filelist instead of a
21459         subshell and sed invocation.
21460
21461 2009-01-01  Bruno Haible  <bruno@clisp.org>
21462
21463         Fix a security bug.
21464         * gnulib-tool (func_import, import, update): Don't allow the characters
21465         '"', '$', '`', '\' in macro arguments that become part of commands that
21466         are evaluated.
21467
21468 2009-01-01  Bruno Haible  <bruno@clisp.org>
21469
21470         * gnulib-tool (func_reset_sigpipe): Add more comments.
21471
21472 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21473
21474         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
21475         func_emit_tests_Makefile_am, func_import): Abort loops early if we
21476         already know the answer.
21477
21478 2009-01-01  Jim Meyering  <meyering@redhat.com>
21479
21480         * lib/version-etc.c (version_etc_va): Update copyright year.
21481
21482 2008-12-30  Bruno Haible  <bruno@clisp.org>
21483
21484         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
21485         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
21486         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
21487
21488 2008-12-29  Eric Blake  <ebb9@byu.net>
21489
21490         multiarch: avoid autoconf AC_REQUIRE bug
21491         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
21492         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
21493         2.63 and older.
21494         Reported by Bruno Haible, and analyzed in
21495         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
21496
21497 2008-12-29  Bruno Haible  <bruno@clisp.org>
21498
21499         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
21500         files in subdirectories correctly.
21501         Reported by Ralf Wildenhues.
21502
21503 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21504
21505         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
21506         rather than 'join FILE -', for Solaris join.
21507
21508 2008-12-29  Bruno Haible  <bruno@clisp.org>
21509
21510         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
21511         quoting.
21512         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
21513         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
21514         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
21515         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
21516         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
21517         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
21518         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
21519         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
21520         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
21521         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
21522         * m4/nls.m4 (AM_NLS): Likewise.
21523         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
21524         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
21525         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
21526         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
21527         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
21528         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
21529         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
21530         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
21531         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
21532         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
21533         * m4/xsize.m4 (gl_XSIZE): Likewise.
21534         Suggested by Jim Meyering.
21535
21536 2008-11-17  Bruce Korb  <bkorb@gnu.org>
21537
21538         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
21539         * lib/parse-duration.c: use a switch instead of cascading if's.
21540
21541 2008-12-29  Eric Blake  <ebb9@byu.net>
21542
21543         wchar.h: supply WEOF on Irix 5.3
21544         * lib/wchar.in.h (wint_t): Also supply WEOF.
21545         * lib/wctype.in.h (wint_t): Likewise.
21546         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
21547         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
21548         Reported by Tom G. Christensen.
21549
21550 2008-12-26  Bruno Haible  <bruno@clisp.org>
21551
21552         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
21553         i486, i586, i686.
21554
21555 2008-12-26  Bruno Haible  <bruno@clisp.org>
21556
21557         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
21558
21559 2008-12-26  Bruno Haible  <bruno@clisp.org>
21560
21561         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
21562         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
21563         not __STDC_CONSTANT_MACROS.
21564         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
21565
21566 2008-12-25  Bruno Haible  <bruno@clisp.org>
21567
21568         Add support for universal builds to vasnprintf.
21569         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
21570         universal builds, guess no.
21571         * modules/vasnprintf-posix (Depends-on): Add multiarch.
21572         * modules/vasprintf-posix (Depends-on): Likewise.
21573         * modules/fprintf-posix (Depends-on): Likewise.
21574         * modules/vfprintf-posix (Depends-on): Likewise.
21575         * modules/snprintf-posix (Depends-on): Likewise.
21576         * modules/vsnprintf-posix (Depends-on): Likewise.
21577         * modules/sprintf-posix (Depends-on): Likewise.
21578         * modules/vsprintf-posix (Depends-on): Likewise.
21579         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
21580         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
21581         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
21582         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
21583         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
21584         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
21585         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
21586
21587         Add support for universal builds to <inttypes.h>.
21588         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
21589         _SCNu64_PREFIX): In Apple
21590         universal builds, define directly, using _LP64.
21591         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
21592         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
21593         * modules/inttypes (Depends-on): Add multiarch.
21594         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
21595
21596         Add support for universal builds to <stdint.h>.
21597         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
21598         universal builds, define directly, using _LP64.
21599         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
21600         Apple universal builds, don't test for the size and suffix of ptrdiff_t
21601         and size_t.
21602         * modules/stdint (Depends-on): Add multiarch.
21603         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
21604
21605         New module 'multiarch'.
21606         * modules/multiarch: New file.
21607         * m4/multiarch.m4: New file.
21608
21609 2008-12-25  Bruno Haible  <bruno@clisp.org>
21610
21611         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
21612
21613 2008-12-25  Bruno Haible  <bruno@clisp.org>
21614
21615         * modules/btowc (License): Relicense under LGPLv2+.
21616         * modules/mbsinit (License): Likewise.
21617         * modules/mbrtowc (License): Likewise.
21618         * modules/wcrtomb (License): Likewise.
21619         * modules/streq (License): Likewise.
21620         Reported by David Lutterkort <lutter@redhat.com>.
21621
21622 2008-12-23  Bruno Haible  <bruno@clisp.org>
21623
21624         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
21625
21626 2008-12-23  Bruno Haible  <bruno@clisp.org>
21627
21628         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
21629         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
21630         GETADDRINFO_LIB, not in LIBS.
21631         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
21632         * modules/canon-host (Link): Likewise.
21633         * NEWS: Mention the change.
21634         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
21635         GETADDRINFO_LIB.
21636
21637 2008-12-22  Bruno Haible  <bruno@clisp.org>
21638
21639         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
21640         * doc/posix-functions/iswalpha_l.texi: Likewise.
21641         * doc/posix-functions/iswblank_l.texi: Likewise.
21642         * doc/posix-functions/iswcntrl_l.texi: Likewise.
21643         * doc/posix-functions/iswctype_l.texi: Likewise.
21644         * doc/posix-functions/iswdigit_l.texi: Likewise.
21645         * doc/posix-functions/iswgraph_l.texi: Likewise.
21646         * doc/posix-functions/iswlower_l.texi: Likewise.
21647         * doc/posix-functions/iswprint_l.texi: Likewise.
21648         * doc/posix-functions/iswpunct_l.texi: Likewise.
21649         * doc/posix-functions/iswspace_l.texi: Likewise.
21650         * doc/posix-functions/iswupper_l.texi: Likewise.
21651         * doc/posix-functions/iswxdigit_l.texi: Likewise.
21652         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
21653         * doc/posix-functions/open_wmemstream.texi: Likewise.
21654         * doc/posix-functions/swscanf.texi: Likewise.
21655         * doc/posix-functions/towctrans_l.texi: Likewise.
21656         * doc/posix-functions/towlower.texi: Likewise.
21657         * doc/posix-functions/towlower_l.texi: Likewise.
21658         * doc/posix-functions/towupper.texi: Likewise.
21659         * doc/posix-functions/towupper_l.texi: Likewise.
21660         * doc/posix-functions/vfwprintf.texi: Likewise.
21661         * doc/posix-functions/vfwscanf.texi: Likewise.
21662         * doc/posix-functions/vswscanf.texi: Likewise.
21663         * doc/posix-functions/vwprintf.texi: Likewise.
21664         * doc/posix-functions/vwscanf.texi: Likewise.
21665         * doc/posix-functions/wcpcpy.texi: Likewise.
21666         * doc/posix-functions/wcpncpy.texi: Likewise.
21667         * doc/posix-functions/wcscasecmp.texi: Likewise.
21668         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
21669         * doc/posix-functions/wcscoll_l.texi: Likewise.
21670         * doc/posix-functions/wcsdup.texi: Likewise.
21671         * doc/posix-functions/wcsncasecmp.texi: Likewise.
21672         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
21673         * doc/posix-functions/wcsnlen.texi: Likewise.
21674         * doc/posix-functions/wcsnrtombs.texi: Likewise.
21675         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
21676         * doc/posix-functions/wctrans_l.texi: Likewise.
21677         * doc/posix-functions/wctype_l.texi: Likewise.
21678         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
21679         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
21680         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
21681         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
21682         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
21683         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
21684         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
21685         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
21686         * doc/glibc-functions/wcschrnul.texi: Likewise.
21687         * doc/glibc-functions/wcsftime_l.texi: Likewise.
21688         * doc/glibc-functions/wcstod_l.texi: Likewise.
21689         * doc/glibc-functions/wcstof_l.texi: Likewise.
21690         * doc/glibc-functions/wcstol_l.texi: Likewise.
21691         * doc/glibc-functions/wcstold_l.texi: Likewise.
21692         * doc/glibc-functions/wcstoll_l.texi: Likewise.
21693         * doc/glibc-functions/wcstoq.texi: Likewise.
21694         * doc/glibc-functions/wcstoul_l.texi: Likewise.
21695         * doc/glibc-functions/wcstoull_l.texi: Likewise.
21696         * doc/glibc-functions/wcstouq.texi: Likewise.
21697         * doc/glibc-functions/wmempcpy.texi: Likewise.
21698
21699 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
21700             Eric Blake  <ebb9@byu.net>
21701             Paolo Bonzini  <bonzini@gnu.org>
21702             Bruno Haible  <bruno@clisp.org>
21703
21704         Make c-stack work on Haiku.
21705         * lib/c-stack.c (SA_ONSTACK): Define fallback.
21706         (c_stack_action): Use SA_ONSTACK flag.
21707
21708 2008-12-22  Bruno Haible  <bruno@clisp.org>
21709
21710         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
21711
21712 2008-12-22  Bruno Haible  <bruno@clisp.org>
21713
21714         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
21715         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
21716         being overridden.
21717         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
21718         New macros.
21719         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
21720         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
21721         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
21722         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
21723
21724 2008-12-22  Bruno Haible  <bruno@clisp.org>
21725
21726         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
21727         from test code.
21728
21729 2008-12-22  Eric Blake  <ebb9@byu.net>
21730
21731         Avoid gcc warnings on cygwin.
21732         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
21733         Avoid unused variable.
21734         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
21735         Likewise.
21736
21737 2008-12-22  Bruno Haible  <bruno@clisp.org>
21738
21739         Remove HAVE_MBRTOWC conditionals.
21740         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
21741         (mbscasecmp): Assume mbrtowc function.
21742         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
21743         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
21744         * lib/mbschr.c: Include mbuiter.h unconditionally.
21745         (mbschr): Assume mbrtowc function.
21746         * lib/mbscspn.c: Include mbuiter.h unconditionally.
21747         (mbscspn): Assume mbrtowc function.
21748         * lib/mbslen.c: Include mbuiter.h unconditionally.
21749         (mbslen): Assume mbrtowc function.
21750         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
21751         (mbsncasecmp): Assume mbrtowc function.
21752         * lib/mbsnlen.c: Include mbiter.h unconditionally.
21753         (mbsnlen): Assume mbrtowc function.
21754         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
21755         (mbspbrk): Assume mbrtowc function.
21756         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
21757         (mbspcasecmp): Assume mbrtowc function.
21758         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
21759         (mbsrchr): Assume mbrtowc function.
21760         * lib/mbssep.c: Include mbuiter.h unconditionally.
21761         (mbssep): Assume mbrtowc function.
21762         * lib/mbsspn.c: Include mbuiter.h unconditionally.
21763         (mbsspn): Assume mbrtowc function.
21764         * lib/mbsstr.c: Include mbuiter.h unconditionally.
21765         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
21766         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
21767         (mbstok_r): Assume mbrtowc function.
21768         * lib/propername.c: Include mbuiter.h unconditionally.
21769         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
21770         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
21771         (trim2): Assume mbrtowc function.
21772         * lib/mbswidth.c (mbsinit): Remove fallback definition.
21773         (mbsnwidth): Assume mbrtowc function.
21774         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
21775         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
21776         fallback definitions.
21777         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
21778
21779 2008-12-22  Bruno Haible  <bruno@clisp.org>
21780
21781         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
21782
21783 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
21784
21785         * modules/regex: Request emulations for the mb*/wc* functions we need.
21786         * m4/regex.m4: Don't look for those functions here.
21787         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
21788
21789 2008-12-22  Bruno Haible  <bruno@clisp.org>
21790
21791         * modules/fnmatch (Depends-on): Remove duplicated dependency.
21792
21793 2008-12-21  Bruno Haible  <bruno@clisp.org>
21794
21795         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
21796         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
21797         (Include): Remove conditionalization.
21798         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
21799         (Include): Remove conditionalization.
21800         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
21801         (Include): Remove conditionalization.
21802         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
21803         * m4/mbfile.m4 (gl_MBFILE): Likewise.
21804         * NEWS: Mention the change.
21805         Reported by Alan Hourihane <alanh@fairlite.co.uk>
21806         via Sergey Poznyakoff <gray@gnu.org.ua>.
21807
21808 2008-12-21  Bruno Haible  <bruno@clisp.org>
21809
21810         * MODULES.html.sh (Extended multibyte and wide character utilities
21811         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
21812         wcrtomb, wcsrtombs.
21813         (Support for systems lacking POSIX:2008): Add accept, bind, close,
21814         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
21815         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
21816         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
21817
21818 2008-12-21  Bruno Haible  <bruno@clisp.org>
21819
21820         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
21821
21822 2008-12-21  Bruno Haible  <bruno@clisp.org>
21823
21824         * modules/wcsnrtombs-tests: New file.
21825         * tests/test-wcsnrtombs1.sh: New file.
21826         * tests/test-wcsnrtombs2.sh: New file.
21827         * tests/test-wcsnrtombs3.sh: New file.
21828         * tests/test-wcsnrtombs4.sh: New file.
21829         * tests/test-wcsnrtombs.c: New file.
21830
21831         New module 'wcsnrtombs'.
21832         * lib/wchar.in.h (wcsnrtombs): New declaration.
21833         * lib/wcsnrtombs.c: New file.
21834         * lib/wcsrtombs-state.c: New file.
21835         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
21836         (internal_state): Remove variable.
21837         * m4/wcsnrtombs.m4: New file.
21838         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
21839         compilation units.
21840         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
21841         HAVE_WCSNRTOMBS.
21842         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
21843         HAVE_WCSNRTOMBS.
21844         * modules/wcsnrtombs: New file.
21845         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
21846         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
21847
21848 2008-12-21  Bruno Haible  <bruno@clisp.org>
21849
21850         * modules/wcsrtombs-tests: New file.
21851         * tests/test-wcsrtombs1.sh: New file.
21852         * tests/test-wcsrtombs2.sh: New file.
21853         * tests/test-wcsrtombs3.sh: New file.
21854         * tests/test-wcsrtombs4.sh: New file.
21855         * tests/test-wcsrtombs.c: New file.
21856
21857         New module 'wcsrtombs'.
21858         * lib/wchar.in.h (wcsrtombs): New declaration.
21859         * lib/wcsrtombs.c: New file.
21860         * m4/wcsrtombs.m4: New file.
21861         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
21862         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
21863         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
21864         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
21865         * modules/wcsrtombs: New file.
21866         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
21867         bugs.
21868
21869 2008-12-21  Bruno Haible  <bruno@clisp.org>
21870
21871         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
21872         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
21873         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
21874         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
21875         if not correct.
21876         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
21877         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
21878         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
21879         m4/locale-zh.m4, m4/codeset.m4.
21880         * doc/posix-functions/wcrtomb.texi: Document the bug.
21881
21882 2008-12-21  Bruno Haible  <bruno@clisp.org>
21883
21884         Work around a btowc() bug on IRIX 6.5.
21885         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
21886         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
21887         REPLACE_WTOBC if not.
21888         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
21889         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
21890         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
21891
21892 2008-12-21  Bruno Haible  <bruno@clisp.org>
21893
21894         * modules/wcrtomb-tests: New file.
21895         * tests/test-wcrtomb.sh: New file.
21896         * tests/test-wcrtomb.c: New file.
21897
21898         New module 'wcrtomb'.
21899         * lib/wchar.in.h (wcrtomb): New declaration.
21900         * lib/wcrtomb.c: New file.
21901         * m4/wcrtomb.m4: New file.
21902         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
21903         HAVE_WCRTOMB.
21904         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
21905         HAVE_WCRTOMB.
21906         * modules/wcrtomb: New file.
21907         * doc/posix-functions/wcrtomb.texi: Mention the new module.
21908
21909 2008-12-21  Bruno Haible  <bruno@clisp.org>
21910
21911         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
21912         * modules/mbsrtowcs (Files): Likewise.
21913         * modules/wctob (Files): Likewise.
21914         * modules/c-strcase-tests (Files): Likewise.
21915         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
21916         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
21917         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
21918         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
21919         * modules/vasnprintf-posix-tests (Files): Likewise.
21920
21921 2008-12-21  William Pursell  <bill.pursell@gmail.com>
21922
21923         gitlog-to-changelog: pass all command-line arguments to git-log
21924         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
21925         it is sometimes convenient to filter the commits in various ways.
21926         gitlog-to-changelog only allows --since to specify a start date,
21927         but git-log itself supports many other filtering mechanisms.
21928         At the moment, I want to filter by branch name.  Rather than
21929         adding a --branch option to gitlog-to-changelog, it seems more
21930         flexible to simply pass all options directly to git-log and let
21931         git do the work.  Notice that this effectively makes --since a
21932         redundant option for gitlog-to-changelog, but removing it would
21933         require current usage to change since calls would then require
21934         an additional '--'.
21935
21936 2008-12-21  Bruno Haible  <bruno@clisp.org>
21937
21938         * modules/mbsnrtowcs-tests: New file.
21939         * tests/test-mbsnrtowcs1.sh: New file.
21940         * tests/test-mbsnrtowcs2.sh: New file.
21941         * tests/test-mbsnrtowcs3.sh: New file.
21942         * tests/test-mbsnrtowcs4.sh: New file.
21943         * tests/test-mbsnrtowcs.c: New file.
21944
21945         New module 'mbsnrtowcs'.
21946         * lib/wchar.in.h (mbsnrtowcs): New declaration.
21947         * lib/mbsnrtowcs.c: New file.
21948         * lib/mbsrtowcs-state.c: New file.
21949         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
21950         (internal_state): Remove variable.
21951         * m4/mbsnrtowcs.m4: New file.
21952         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
21953         compilation units.
21954         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
21955         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
21956         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
21957         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
21958         * modules/mbsnrtowcs: New file.
21959         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
21960         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
21961         portability problem.
21962
21963 2008-12-21  Bruno Haible  <bruno@clisp.org>
21964
21965         Work around mbsrtowcs bug.
21966         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
21967         (gl_FUNC_MBSRTOWCS): Invoke it.
21968         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
21969         m4/locale-zh.m4.
21970         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
21971
21972 2008-12-21  Bruno Haible  <bruno@clisp.org>
21973
21974         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
21975
21976 2008-12-21  Bruno Haible  <bruno@clisp.org>
21977
21978         Update doc for AIX.
21979         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
21980         16-bit wchar_t type.
21981         * doc/posix-functions/btowc.texi: Likewise.
21982         * doc/posix-functions/fgetwc.texi: Likewise.
21983         * doc/posix-functions/fgetws.texi: Likewise.
21984         * doc/posix-functions/fputwc.texi: Likewise.
21985         * doc/posix-functions/fputws.texi: Likewise.
21986         * doc/posix-functions/fwide.texi: Likewise.
21987         * doc/posix-functions/fwprintf.texi: Likewise.
21988         * doc/posix-functions/fwscanf.texi: Likewise.
21989         * doc/posix-functions/getwchar.texi: Likewise.
21990         * doc/posix-functions/getwc.texi: Likewise.
21991         * doc/posix-functions/iswalnum.texi: Likewise.
21992         * doc/posix-functions/iswalpha.texi: Likewise.
21993         * doc/posix-functions/iswblank.texi: Likewise.
21994         * doc/posix-functions/iswcntrl.texi: Likewise.
21995         * doc/posix-functions/iswctype.texi: Likewise.
21996         * doc/posix-functions/iswdigit.texi: Likewise.
21997         * doc/posix-functions/iswgraph.texi: Likewise.
21998         * doc/posix-functions/iswlower.texi: Likewise.
21999         * doc/posix-functions/iswprint.texi: Likewise.
22000         * doc/posix-functions/iswpunct.texi: Likewise.
22001         * doc/posix-functions/iswspace.texi: Likewise.
22002         * doc/posix-functions/iswupper.texi: Likewise.
22003         * doc/posix-functions/iswxdigit.texi: Likewise.
22004         * doc/posix-functions/mbrtowc.texi: Likewise.
22005         * doc/posix-functions/mbsrtowcs.texi: Likewise.
22006         * doc/posix-functions/mbstowcs.texi: Likewise.
22007         * doc/posix-functions/mbtowc.texi: Likewise.
22008         * doc/posix-functions/putwchar.texi: Likewise.
22009         * doc/posix-functions/putwc.texi: Likewise.
22010         * doc/posix-functions/swprintf.texi: Likewise.
22011         * doc/posix-functions/tolower.texi: Likewise.
22012         * doc/posix-functions/toupper.texi: Likewise.
22013         * doc/posix-functions/towctrans.texi: Likewise.
22014         * doc/posix-functions/ungetwc.texi: Likewise.
22015         * doc/posix-functions/vswprintf.texi: Likewise.
22016         * doc/posix-functions/wcrtomb.texi: Likewise.
22017         * doc/posix-functions/wcscat.texi: Likewise.
22018         * doc/posix-functions/wcschr.texi: Likewise.
22019         * doc/posix-functions/wcscmp.texi: Likewise.
22020         * doc/posix-functions/wcscoll.texi: Likewise.
22021         * doc/posix-functions/wcscpy.texi: Likewise.
22022         * doc/posix-functions/wcscspn.texi: Likewise.
22023         * doc/posix-functions/wcsftime.texi: Likewise.
22024         * doc/posix-functions/wcslen.texi: Likewise.
22025         * doc/posix-functions/wcsncat.texi: Likewise.
22026         * doc/posix-functions/wcsncmp.texi: Likewise.
22027         * doc/posix-functions/wcsncpy.texi: Likewise.
22028         * doc/posix-functions/wcspbrk.texi: Likewise.
22029         * doc/posix-functions/wcsrchr.texi: Likewise.
22030         * doc/posix-functions/wcsrtombs.texi: Likewise.
22031         * doc/posix-functions/wcsspn.texi: Likewise.
22032         * doc/posix-functions/wcsstr.texi: Likewise.
22033         * doc/posix-functions/wcstod.texi: Likewise.
22034         * doc/posix-functions/wcstof.texi: Likewise.
22035         * doc/posix-functions/wcstoimax.texi: Likewise.
22036         * doc/posix-functions/wcstok.texi: Likewise.
22037         * doc/posix-functions/wcstold.texi: Likewise.
22038         * doc/posix-functions/wcstoll.texi: Likewise.
22039         * doc/posix-functions/wcstol.texi: Likewise.
22040         * doc/posix-functions/wcstombs.texi: Likewise.
22041         * doc/posix-functions/wcstoull.texi: Likewise.
22042         * doc/posix-functions/wcstoul.texi: Likewise.
22043         * doc/posix-functions/wcstoumax.texi: Likewise.
22044         * doc/posix-functions/wcswidth.texi: Likewise.
22045         * doc/posix-functions/wcsxfrm.texi: Likewise.
22046         * doc/posix-functions/wctob.texi: Likewise.
22047         * doc/posix-functions/wctomb.texi: Likewise.
22048         * doc/posix-functions/wctrans.texi: Likewise.
22049         * doc/posix-functions/wctype.texi: Likewise.
22050         * doc/posix-functions/wcwidth.texi: Likewise.
22051         * doc/posix-functions/wmemchr.texi: Likewise.
22052         * doc/posix-functions/wmemcmp.texi: Likewise.
22053         * doc/posix-functions/wmemcpy.texi: Likewise.
22054         * doc/posix-functions/wmemmove.texi: Likewise.
22055         * doc/posix-functions/wmemset.texi: Likewise.
22056         * doc/posix-functions/wprintf.texi: Likewise.
22057         * doc/posix-functions/wscanf.texi: Likewise.
22058
22059 2008-12-21  Bruno Haible  <bruno@clisp.org>
22060
22061         Update doc for HP-UX 11.11.
22062         * doc/posix-functions/btowc.texi: Clarify that the function is missing
22063         in HP-UX version 11.00, not in all versions of HP-UX 11.
22064         * doc/posix-functions/fwide.texi: Likewise.
22065         * doc/posix-functions/fwprintf.texi: Likewise.
22066         * doc/posix-functions/fwscanf.texi: Likewise.
22067         * doc/posix-functions/inet_ntop.texi: Likewise.
22068         * doc/posix-functions/inet_pton.texi: Likewise.
22069         * doc/posix-functions/mbrlen.texi: Likewise.
22070         * doc/posix-functions/mbrtowc.texi: Likewise.
22071         * doc/posix-functions/mbsinit.texi: Likewise.
22072         * doc/posix-functions/mbsrtowcs.texi: Likewise.
22073         * doc/posix-functions/swprintf.texi: Likewise.
22074         * doc/posix-functions/swscanf.texi: Likewise.
22075         * doc/posix-functions/towctrans.texi: Likewise.
22076         * doc/posix-functions/vfwprintf.texi: Likewise.
22077         * doc/posix-functions/vswprintf.texi: Likewise.
22078         * doc/posix-functions/vwprintf.texi: Likewise.
22079         * doc/posix-functions/wcrtomb.texi: Likewise.
22080         * doc/posix-functions/wcsrtombs.texi: Likewise.
22081         * doc/posix-functions/wcsstr.texi: Likewise.
22082         * doc/posix-functions/wctob.texi: Likewise.
22083         * doc/posix-functions/wctrans.texi: Likewise.
22084         * doc/posix-functions/wmemchr.texi: Likewise.
22085         * doc/posix-functions/wmemcmp.texi: Likewise.
22086         * doc/posix-functions/wmemcpy.texi: Likewise.
22087         * doc/posix-functions/wmemmove.texi: Likewise.
22088         * doc/posix-functions/wmemset.texi: Likewise.
22089         * doc/posix-functions/wprintf.texi: Likewise.
22090         * doc/posix-functions/wscanf.texi: Likewise.
22091
22092 2008-12-21  Bruno Haible  <bruno@clisp.org>
22093
22094         Work around a portability problem.
22095         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
22096         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
22097
22098 2008-12-20  Bruno Haible  <bruno@clisp.org>
22099
22100         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
22101         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
22102         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
22103         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
22104         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
22105
22106         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
22107         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
22108         set.
22109         (GNULIB_defined_mbstate_t): New macro.
22110         (mbsinit): Redefine if REPLACE_MBSINIT is set.
22111         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
22112         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
22113         reuses the system's mbrtowc function but works around the bugs.
22114         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
22115         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
22116         macros.
22117         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
22118         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
22119         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
22120         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
22121         REPLACE_MBSINIT if mbsinit needs to be overridden.
22122         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
22123         REPLACE_MBSINIT, REPLACE_MBRTOWC.
22124         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
22125         REPLACE_MBSINIT, REPLACE_MBRTOWC.
22126         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
22127         m4/locale-zh.m4.
22128         (Depends): Add mbsinit.
22129         * modules/mbsinit (Depends): Add mbrtowc.
22130         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
22131
22132 2008-12-20  Bruno Haible  <bruno@clisp.org>
22133
22134         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
22135         so that there are no conversion errors on AIX.
22136         * tests/test-mbsrtowcs.c (main): LIkewise.
22137
22138 2008-12-20  Bruno Haible  <bruno@clisp.org>
22139
22140         Work around wctob bug on Solaris <= 9.
22141         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
22142         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
22143         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
22144         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
22145         * modules/wctob (Files): Add m4/locale-fr.m4.
22146         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
22147
22148 2008-12-20  Bruno Haible  <bruno@clisp.org>
22149
22150         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
22151         /dev/null.
22152         * tests/test-select-in.sh: Likewise.
22153         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22154
22155 2008-12-20  Bruno Haible  <bruno@clisp.org>
22156
22157         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
22158         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
22159         Cygwin 1.5.x.
22160
22161 2008-12-20  Bruno Haible  <bruno@clisp.org>
22162
22163         Ensure mbstate_t is defined on HP-UX 11.11.
22164         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
22165         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
22166         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
22167         AC_USE_SYSTEM_EXTENSIONS.
22168         * modules/fnmatch (Depends-on): Add extensions.
22169         * modules/mbrlen (Depends-on): Likewise.
22170         * modules/mbrtowc (Depends-on): Likewise.
22171         * modules/mbsinit (Depends-on): Likewise.
22172         * modules/mbsrtowcs (Depends-on): Likewise.
22173         * modules/mbswidth (Depends-on): Likewise.
22174         * modules/quotearg (Depends-on): Likewise.
22175         * modules/strftime (Depends-on): Likewise.
22176
22177 2008-12-20  Bruno Haible  <bruno@clisp.org>
22178
22179         Ensure wctob is declared on IRIX 6.5.
22180         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
22181         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
22182         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
22183         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
22184         of HAVE_WCTOB.
22185         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
22186         HAVE_WCTOB.
22187         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
22188
22189 2008-12-19  Bruno Haible  <bruno@clisp.org>
22190
22191         * modules/mbsrtowcs-tests: New file.
22192         * tests/test-mbsrtowcs1.sh: New file.
22193         * tests/test-mbsrtowcs2.sh: New file.
22194         * tests/test-mbsrtowcs3.sh: New file.
22195         * tests/test-mbsrtowcs4.sh: New file.
22196         * tests/test-mbsrtowcs.c: New file.
22197
22198         New module 'mbsrtowcs'.
22199         * lib/wchar.in.h (mbsrtowcs): New declaration.
22200         * lib/mbsrtowcs.c: New file.
22201         * m4/mbsrtowcs.m4: New file.
22202         * modules/mbsrtowcs: New file.
22203         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
22204         HAVE_MBSRTOWCS.
22205         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
22206         HAVE_MBSRTOWCS.
22207         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
22208
22209 2008-12-19  Bruno Haible  <bruno@clisp.org>
22210
22211         New module 'mbrlen'.
22212         * lib/wchar.in.h (mbrlen): New declaration.
22213         * lib/mbrlen.c: New file.
22214         * m4/mbrlen.m4: New file.
22215         * modules/mbrlen: New file.
22216         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
22217         HAVE_MBRLEN.
22218         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
22219         HAVE_MBRLEN.
22220         * doc/posix-functions/mbrlen.texi: Document the new module.
22221
22222 2008-12-19  Bruno Haible  <bruno@clisp.org>
22223
22224         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
22225         * modules/mbrtowc (Depends-on): Add verify.
22226         Suggested by Paul Eggert.
22227
22228 2008-12-18  Bruno Haible  <bruno@clisp.org>
22229
22230         * modules/mbsinit-tests: New file.
22231         * tests/test-mbsinit.sh: New file.
22232         * tests/test-mbsinit.c: New file.
22233
22234 2008-12-18  Bruno Haible  <bruno@clisp.org>
22235
22236         * modules/mbrtowc-tests: New file.
22237         * tests/test-mbrtowc1.sh: New file.
22238         * tests/test-mbrtowc2.sh: New file.
22239         * tests/test-mbrtowc3.sh: New file.
22240         * tests/test-mbrtowc4.sh: New file.
22241         * tests/test-mbrtowc.c: New file.
22242
22243         New module 'mbrtowc'.
22244         * lib/wchar.in.h (mbstate_t): Override when the system does not have
22245         mbsinit and mbrtowc.
22246         (mbrtowc): New declaration.
22247         * lib/mbrtowc.c: New file.
22248         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
22249         * modules/mbrtowc: New file.
22250         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
22251         HAVE_MBRTOWC.
22252         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
22253         HAVE_MBRTOWC.
22254         * doc/posix-functions/mbrtowc.texi: Document the new module.
22255
22256 2008-12-18  Bruno Haible  <bruno@clisp.org>
22257
22258         New module 'wctob'.
22259         * lib/wchar.in.h (wctob): New declaration.
22260         * lib/wctob.c: New file.
22261         * m4/wctob.m4: New file.
22262         * modules/wctob: New file.
22263         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
22264         HAVE_WCTOB.
22265         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
22266         * doc/posix-functions/wctob.texi: Document the new module.
22267
22268 2008-12-18  Bruno Haible  <bruno@clisp.org>
22269
22270         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
22271         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
22272
22273 2008-12-18  Simon Josefsson  <simon@josefsson.org>
22274
22275         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
22276         G. Christensen" <tgc@jupiterrise.com>.
22277
22278         * lib/flock.c: Need to include errno.h.  Reported by "Tom
22279         G. Christensen" <tgc@jupiterrise.com>.
22280
22281         * lib/flock.c: Need to include string.h.  Reported by "Tom
22282         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
22283         <ebb9@byu.net>.
22284
22285 2008-12-18  Bruno Haible  <bruno@clisp.org>
22286
22287         * m4/locale-ja.m4: New file, from GNU gettext.
22288
22289 2008-12-17  Bruno Haible  <bruno@clisp.org>
22290
22291         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
22292         Suggested by Eric Blake.
22293
22294 2008-12-17  Bruno Haible  <bruno@clisp.org>
22295
22296         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
22297
22298 2008-12-17  Bruno Haible  <bruno@clisp.org>
22299
22300         * lib/mbsinit.c: Include verify.h. Verify an assumption.
22301         * modules/mbsinit (Depends-on): Add verify.
22302         Suggested by Paul Eggert.
22303
22304 2008-12-17  Bruno Haible  <bruno@clisp.org>
22305
22306         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
22307         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
22308         gl_FUNC_MBRTOWC.
22309         * m4/mbiter.m4 (gl_MBITER): LIkewise.
22310         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
22311         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
22312         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
22313         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
22314         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
22315         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
22316         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
22317         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
22318         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
22319         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
22320         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
22321         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
22322         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
22323         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
22324         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
22325         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
22326         * modules/trim (configure.ac): Likewise.
22327
22328 2008-12-17  Bruno Haible  <bruno@clisp.org>
22329
22330         * modules/btowc-tests: New file.
22331         * tests/test-btowc1.sh: New file.
22332         * tests/test-btowc2.sh: New file.
22333         * tests/test-btowc.c: New file.
22334
22335         New module 'btowc'.
22336         * lib/wchar.in.h (btowc): New declaration.
22337         * lib/btowc.c: New file.
22338         * m4/btowc.m4: New file.
22339         * modules/btowc: New file.
22340         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
22341         HAVE_BTOWC.
22342         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
22343         * doc/posix-functions/btowc.texi: Document the new module.
22344
22345 2008-12-17  Bruno Haible  <bruno@clisp.org>
22346
22347         New module 'mbsinit'.
22348         * lib/wchar.in.h (mbsinit): New declaration.
22349         * lib/mbsinit.c: New file.
22350         * m4/mbsinit.m4: New file.
22351         * modules/mbsinit: New file.
22352         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
22353         HAVE_MBSINIT.
22354         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
22355         HAVE_MBSINIT.
22356         * doc/posix-functions/mbsinit.texi: Document the new module.
22357
22358 2008-12-16  Bruno Haible  <bruno@clisp.org>
22359
22360         * lib/unistd.in.h: Add comment.
22361         * tests/test-environ.c: Don't include <stdlib.h>.
22362
22363 2008-12-16  Bruno Haible  <bruno@clisp.org>
22364
22365         * lib/parse-duration.h (parse_duration): Document return value
22366         convention.
22367         * lib/parse-duration.c: Include specification header first. Add
22368         comments.
22369         (_): Remove macro.
22370         (parse_year_month_day, parse_hour_minute_second): Move side effects
22371         outside of strchr call.
22372         (parse_non_iso8601): Move side effects outside of isspace call.
22373         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
22374         call.
22375
22376 2008-12-16  Bruno Haible  <bruno@clisp.org>
22377
22378         * tests/test-parse-duration.sh: Produce no output when the test
22379         succeeds.
22380
22381 2008-12-16  Bruno Haible  <bruno@clisp.org>
22382
22383         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
22384         expressions.
22385
22386 2008-12-15  Bruno Haible  <bruno@clisp.org>
22387
22388         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
22389         * doc/glibc-functions/flistxattr.texi: Likewise.
22390         * doc/glibc-functions/fopencookie.texi: Likewise.
22391         * doc/glibc-functions/fremovexattr.texi: Likewise.
22392         * doc/glibc-functions/fsetxattr.texi: Likewise.
22393         * doc/glibc-functions/getxattr.texi: Likewise.
22394         * doc/glibc-functions/lgetxattr.texi: Likewise.
22395         * doc/glibc-functions/listxattr.texi: Likewise.
22396         * doc/glibc-functions/llistxattr.texi: Likewise.
22397         * doc/glibc-functions/lremovexattr.texi: Likewise.
22398         * doc/glibc-functions/lsetxattr.texi: Likewise.
22399         * doc/glibc-functions/removexattr.texi: Likewise.
22400         * doc/glibc-functions/setxattr.texi: Likewise.
22401         * doc/posix-functions/open_memstream.texi: Likewise.
22402
22403 2008-12-15  Eric Blake  <ebb9@byu.net>
22404
22405         Update doc for cygwin 1.7.
22406         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
22407         functions.
22408         * doc/posix-functions/fchmodat.texi: Likewise.
22409         * doc/posix-functions/fchownat.texi: Likewise.
22410         * doc/posix-functions/fdopendir.texi: Likewise.
22411         * doc/posix-functions/fmemopen.texi: Likewise.
22412         * doc/posix-functions/freeaddrinfo.texi: Likewise.
22413         * doc/posix-functions/fstatat.texi: Likewise.
22414         * doc/posix-functions/futimens.texi: Likewise.
22415         * doc/posix-functions/gai_strerror.texi: Likewise.
22416         * doc/posix-functions/getaddrinfo.texi: Likewise.
22417         * doc/posix-functions/getnameinfo.texi: Likewise.
22418         * doc/posix-functions/if_freenameindex.texi: Likewise.
22419         * doc/posix-functions/if_indextoname.texi: Likewise.
22420         * doc/posix-functions/if_nameindex.texi: Likewise.
22421         * doc/posix-functions/if_nametoindex.texi: Likewise.
22422         * doc/posix-functions/insque.texi: Likewise.
22423         * doc/posix-functions/linkat.texi: Likewise.
22424         * doc/posix-functions/llrint.texi: Likewise.
22425         * doc/posix-functions/llrintf.texi: Likewise.
22426         * doc/posix-functions/llrintl.texi: Likewise.
22427         * doc/posix-functions/lockf.texi: Likewise.
22428         * doc/posix-functions/lrintl.texi: Likewise.
22429         * doc/posix-functions/mkdirat.texi: Likewise.
22430         * doc/posix-functions/mkfifoat.texi: Likewise.
22431         * doc/posix-functions/mknodat.texi: Likewise.
22432         * doc/posix-functions/mq_close.texi: Likewise.
22433         * doc/posix-functions/mq_getattr.texi: Likewise.
22434         * doc/posix-functions/mq_notify.texi: Likewise.
22435         * doc/posix-functions/mq_open.texi: Likewise.
22436         * doc/posix-functions/mq_receive.texi: Likewise.
22437         * doc/posix-functions/mq_send.texi: Likewise.
22438         * doc/posix-functions/mq_setattr.texi: Likewise.
22439         * doc/posix-functions/mq_timedreceive.texi: Likewise.
22440         * doc/posix-functions/mq_timedsend.texi: Likewise.
22441         * doc/posix-functions/mq_unlink.texi: Likewise.
22442         * doc/posix-functions/open_memstream.texi: Likewise.
22443         * doc/posix-functions/openat.texi: Likewise.
22444         * doc/posix-functions/posix_fadvise.texi: Likewise.
22445         * doc/posix-functions/posix_fallocate.texi: Likewise.
22446         * doc/posix-functions/posix_madvise.texi: Likewise.
22447         * doc/posix-functions/posix_memalign.texi: Likewise.
22448         * doc/posix-functions/posix_openpt.texi: Likewise.
22449         * doc/posix-functions/readlinkat.texi: Likewise.
22450         * doc/posix-functions/remque.texi: Likewise.
22451         * doc/posix-functions/renameat.texi: Likewise.
22452         * doc/posix-functions/rintl.texi: Likewise.
22453         * doc/posix-functions/sem_unlink.texi: Likewise.
22454         * doc/posix-functions/shm_open.texi: Likewise.
22455         * doc/posix-functions/shm_unlink.texi: Likewise.
22456         * doc/posix-functions/signgam.texi: Likewise.
22457         * doc/posix-functions/sigset.texi: Likewise.
22458         * doc/posix-functions/stpcpy.texi: Likewise.
22459         * doc/posix-functions/stpncpy.texi: Likewise.
22460         * doc/posix-functions/strerror.texi: Likewise.
22461         * doc/posix-functions/strtod.texi: Likewise.
22462         * doc/posix-functions/symlinkat.texi: Likewise.
22463         * doc/posix-functions/unlinkat.texi: Likewise.
22464         * doc/posix-functions/utimensat.texi: Likewise.
22465         * doc/glibc-functions/bindresvport.texi: Likewise.
22466         * doc/glibc-functions/dn_expand.texi: Likewise.
22467         * doc/glibc-functions/exp10.texi: Likewise.
22468         * doc/glibc-functions/exp10f.texi: Likewise.
22469         * doc/glibc-functions/fgetxattr.texi: Likewise.
22470         * doc/glibc-functions/flistxattr.texi: Likewise.
22471         * doc/glibc-functions/fopencookie.texi: Likewise.
22472         * doc/glibc-functions/freeifaddrs.texi: Likewise.
22473         * doc/glibc-functions/fremovexattr.texi: Likewise.
22474         * doc/glibc-functions/fsetxattr.texi: Likewise.
22475         * doc/glibc-functions/getifaddrs.texi: Likewise.
22476         * doc/glibc-functions/getxattr.texi: Likewise.
22477         * doc/glibc-functions/lgetxattr.texi: Likewise.
22478         * doc/glibc-functions/listxattr.texi: Likewise.
22479         * doc/glibc-functions/llistxattr.texi: Likewise.
22480         * doc/glibc-functions/lremovexattr.texi: Likewise.
22481         * doc/glibc-functions/lsetxattr.texi: Likewise.
22482         * doc/glibc-functions/pow10.texi: Likewise.
22483         * doc/glibc-functions/pow10f.texi: Likewise.
22484         * doc/glibc-functions/rcmd_af.texi: Likewise.
22485         * doc/glibc-functions/removexattr.texi: Likewise.
22486         * doc/glibc-functions/res_init.texi: Likewise.
22487         * doc/glibc-functions/res_mkquery.texi: Likewise.
22488         * doc/glibc-functions/res_query.texi: Likewise.
22489         * doc/glibc-functions/res_querydomain.texi: Likewise.
22490         * doc/glibc-functions/res_send.texi: Likewise.
22491         * doc/glibc-functions/rresvport_af.texi: Likewise.
22492         * doc/glibc-functions/setxattr.texi: Likewise.
22493         * doc/glibc-functions/strcasestr.texi: Likewise.
22494
22495 2008-12-15  Bruno Haible  <bruno@clisp.org>
22496
22497         Fix compilation error on OSF/1 4.0.
22498         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
22499         <sys/time.h>, simply delegate to the system header.
22500         Reported by Daniel Richard G. <oss@teragram.com>.
22501
22502 2008-12-15  Bruno Haible  <bruno@clisp.org>
22503
22504         * doc/posix-functions/openat.texi: Mention the 'openat' module.
22505         * doc/posix-functions/fchmodat.texi: Likewise.
22506         * doc/posix-functions/fchownat.texi: Likewise.
22507         * doc/posix-functions/fdopendir.texi: Likewise.
22508         * doc/posix-functions/fstatat.texi: Likewise.
22509         * doc/posix-functions/mkdirat.texi: Likewise.
22510         * doc/posix-functions/unlinkat.texi: Likewise.
22511
22512 2008-12-14  Bruno Haible  <bruno@clisp.org>
22513
22514         Update doc for POSIX:2008.
22515         * doc/posix-functions/faccessat.texi: New file.
22516         * doc/posix-functions/fchmodat.texi: New file.
22517         * doc/posix-functions/fchownat.texi: New file.
22518         * doc/posix-functions/fdopendir.texi: New file.
22519         * doc/posix-functions/fstatat.texi: New file.
22520         * doc/posix-functions/futimens.texi: New file.
22521         * doc/posix-functions/linkat.texi: New file.
22522         * doc/posix-functions/mkdirat.texi: New file.
22523         * doc/posix-functions/mkfifoat.texi: New file.
22524         * doc/posix-functions/mknodat.texi: New file.
22525         * doc/posix-functions/open_wmemstream.texi: New file.
22526         * doc/posix-functions/openat.texi: New file.
22527         * doc/posix-functions/psiginfo.texi: New file.
22528         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
22529         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
22530         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
22531         * doc/posix-functions/readlinkat.texi: New file.
22532         * doc/posix-functions/renameat.texi: New file.
22533         * doc/posix-functions/strerror_l.texi: New file.
22534         * doc/posix-functions/symlinkat.texi: New file.
22535         * doc/posix-functions/unlinkat.texi: New file.
22536         * doc/posix-functions/utimensat.texi: New file.
22537         * doc/gnulib.texi (Function Substitutes): Add these subsections.
22538
22539 2008-12-14  Bruno Haible  <bruno@clisp.org>
22540
22541         Update doc for POSIX:2008.
22542         * doc/posix-functions/alphasort.texi: Renamed from
22543         doc/glibc-functions/alphasort.texi.
22544         * doc/posix-functions/dirfd.texi: Renamed from
22545         doc/glibc-functions/dirfd.texi.
22546         * doc/posix-functions/dprintf.texi: Renamed from
22547         doc/glibc-functions/dprintf.texi.
22548         * doc/posix-functions/duplocale.texi: Renamed from
22549         doc/glibc-functions/duplocale.texi.
22550         * doc/posix-functions/fexecve.texi: Renamed from
22551         doc/glibc-functions/fexecve.texi.
22552         * doc/posix-functions/fmemopen.texi: Renamed from
22553         doc/glibc-functions/fmemopen.texi.
22554         * doc/posix-functions/freelocale.texi: Renamed from
22555         doc/glibc-functions/freelocale.texi.
22556         * doc/posix-functions/getdate_err.texi: Renamed from
22557         doc/glibc-functions/getdate_err.texi.
22558         * doc/posix-functions/isalnum_l.texi: Renamed from
22559         doc/glibc-functions/isalnum_l.texi.
22560         * doc/posix-functions/isalpha_l.texi: Renamed from
22561         doc/glibc-functions/isalpha_l.texi.
22562         * doc/posix-functions/isblank_l.texi: Renamed from
22563         doc/glibc-functions/isblank_l.texi.
22564         * doc/posix-functions/iscntrl_l.texi: Renamed from
22565         doc/glibc-functions/iscntrl_l.texi.
22566         * doc/posix-functions/isdigit_l.texi: Renamed from
22567         doc/glibc-functions/isdigit_l.texi.
22568         * doc/posix-functions/isgraph_l.texi: Renamed from
22569         doc/glibc-functions/isgraph_l.texi.
22570         * doc/posix-functions/islower_l.texi: Renamed from
22571         doc/glibc-functions/islower_l.texi.
22572         * doc/posix-functions/isprint_l.texi: Renamed from
22573         doc/glibc-functions/isprint_l.texi.
22574         * doc/posix-functions/ispunct_l.texi: Renamed from
22575         doc/glibc-functions/ispunct_l.texi.
22576         * doc/posix-functions/isspace_l.texi: Renamed from
22577         doc/glibc-functions/isspace_l.texi.
22578         * doc/posix-functions/isupper_l.texi: Renamed from
22579         doc/glibc-functions/isupper_l.texi.
22580         * doc/posix-functions/iswalnum_l.texi: Renamed from
22581         doc/glibc-functions/iswalnum_l.texi.
22582         * doc/posix-functions/iswalpha_l.texi: Renamed from
22583         doc/glibc-functions/iswalpha_l.texi.
22584         * doc/posix-functions/iswblank_l.texi: Renamed from
22585         doc/glibc-functions/iswblank_l.texi.
22586         * doc/posix-functions/iswcntrl_l.texi: Renamed from
22587         doc/glibc-functions/iswcntrl_l.texi.
22588         * doc/posix-functions/iswctype_l.texi: Renamed from
22589         doc/glibc-functions/iswctype_l.texi.
22590         * doc/posix-functions/iswdigit_l.texi: Renamed from
22591         doc/glibc-functions/iswdigit_l.texi.
22592         * doc/posix-functions/iswgraph_l.texi: Renamed from
22593         doc/glibc-functions/iswgraph_l.texi.
22594         * doc/posix-functions/iswlower_l.texi: Renamed from
22595         doc/glibc-functions/iswlower_l.texi.
22596         * doc/posix-functions/iswprint_l.texi: Renamed from
22597         doc/glibc-functions/iswprint_l.texi.
22598         * doc/posix-functions/iswpunct_l.texi: Renamed from
22599         doc/glibc-functions/iswpunct_l.texi.
22600         * doc/posix-functions/iswspace_l.texi: Renamed from
22601         doc/glibc-functions/iswspace_l.texi.
22602         * doc/posix-functions/iswupper_l.texi: Renamed from
22603         doc/glibc-functions/iswupper_l.texi.
22604         * doc/posix-functions/iswxdigit_l.texi: Renamed from
22605         doc/glibc-functions/iswxdigit_l.texi.
22606         * doc/posix-functions/isxdigit_l.texi: Renamed from
22607         doc/glibc-functions/isxdigit_l.texi.
22608         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
22609         doc/glibc-functions/mbsnrtowcs.texi.
22610         * doc/posix-functions/mkdtemp.texi: Renamed from
22611         doc/glibc-functions/mkdtemp.texi.
22612         * doc/posix-functions/newlocale.texi: Renamed from
22613         doc/glibc-functions/newlocale.texi.
22614         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
22615         doc/glibc-functions/nl_langinfo_l.texi.
22616         * doc/posix-functions/open_memstream.texi: Renamed from
22617         doc/glibc-functions/open_memstream.texi.
22618         * doc/posix-functions/opterr.texi: Renamed from
22619         doc/glibc-functions/opterr.texi.
22620         * doc/posix-functions/optind.texi: Renamed from
22621         doc/glibc-functions/optind.texi.
22622         * doc/posix-functions/optopt.texi: Renamed from
22623         doc/glibc-functions/optopt.texi.
22624         * doc/posix-functions/psignal.texi: Renamed from
22625         doc/glibc-functions/psignal.texi.
22626         * doc/posix-functions/scandir.texi: Renamed from
22627         doc/glibc-functions/scandir.texi.
22628         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
22629         doc/glibc-functions/sched_get_priority_min.texi.
22630         * doc/posix-functions/signgam.texi: Renamed from
22631         doc/glibc-functions/signgam.texi.
22632         * doc/posix-functions/stpcpy.texi: Renamed from
22633         doc/glibc-functions/stpcpy.texi.
22634         * doc/posix-functions/stpncpy.texi: Renamed from
22635         doc/glibc-functions/stpncpy.texi.
22636         * doc/posix-functions/strcasecmp_l.texi: Renamed from
22637         doc/glibc-functions/strcasecmp_l.texi.
22638         * doc/posix-functions/strcoll_l.texi: Renamed from
22639         doc/glibc-functions/strcoll_l.texi.
22640         * doc/posix-functions/strfmon_l.texi: Renamed from
22641         doc/glibc-functions/strfmon_l.texi.
22642         * doc/posix-functions/strftime_l.texi: Renamed from
22643         doc/glibc-functions/strftime_l.texi.
22644         * doc/posix-functions/strncasecmp_l.texi: Renamed from
22645         doc/glibc-functions/strncasecmp_l.texi.
22646         * doc/posix-functions/strndup.texi: Renamed from
22647         doc/glibc-functions/strndup.texi.
22648         * doc/posix-functions/strnlen.texi: Renamed from
22649         doc/glibc-functions/strnlen.texi.
22650         * doc/posix-functions/strsignal.texi: Renamed from
22651         doc/glibc-functions/strsignal.texi.
22652         * doc/posix-functions/strxfrm_l.texi: Renamed from
22653         doc/glibc-functions/strxfrm_l.texi.
22654         * doc/posix-functions/timer_gettime.texi: Renamed from
22655         doc/glibc-functions/timer_gettime.texi.
22656         * doc/posix-functions/tolower_l.texi: Renamed from
22657         doc/glibc-functions/tolower_l.texi.
22658         * doc/posix-functions/toupper_l.texi: Renamed from
22659         doc/glibc-functions/toupper_l.texi.
22660         * doc/posix-functions/towctrans_l.texi: Renamed from
22661         doc/glibc-functions/towctrans_l.texi.
22662         * doc/posix-functions/towlower_l.texi: Renamed from
22663         doc/glibc-functions/towlower_l.texi.
22664         * doc/posix-functions/towupper_l.texi: Renamed from
22665         doc/glibc-functions/towupper_l.texi.
22666         * doc/posix-functions/uselocale.texi: Renamed from
22667         doc/glibc-functions/uselocale.texi.
22668         * doc/posix-functions/vdprintf.texi: Renamed from
22669         doc/glibc-functions/vdprintf.texi.
22670         * doc/posix-functions/wcpcpy.texi:
22671         Renamed from doc/glibc-functions/wcpcpy.texi.
22672         * doc/posix-functions/wcpncpy.texi: Renamed from
22673         doc/glibc-functions/wcpncpy.texi.
22674         * doc/posix-functions/wcscasecmp.texi: Renamed from
22675         doc/glibc-functions/wcscasecmp.texi.
22676         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
22677         doc/glibc-functions/wcscasecmp_l.texi.
22678         * doc/posix-functions/wcscoll_l.texi: Renamed from
22679         doc/glibc-functions/wcscoll_l.texi.
22680         * doc/posix-functions/wcsdup.texi: Renamed from
22681         doc/glibc-functions/wcsdup.texi.
22682         * doc/posix-functions/wcsncasecmp.texi: Renamed from
22683         doc/glibc-functions/wcsncasecmp.texi.
22684         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
22685         doc/glibc-functions/wcsncasecmp_l.texi.
22686         * doc/posix-functions/wcsnlen.texi: Renamed from
22687         doc/glibc-functions/wcsnlen.texi.
22688         * doc/posix-functions/wcsnrtombs.texi: Renamed from
22689         doc/glibc-functions/wcsnrtombs.texi.
22690         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
22691         doc/glibc-functions/wcsxfrm_l.texi.
22692         * doc/posix-functions/wctrans_l.texi: Renamed from
22693         doc/glibc-functions/wctrans_l.texi.
22694         * doc/posix-functions/wctype_l.texi: Renamed from
22695         doc/glibc-functions/wctype_l.texi.
22696         * doc/gnulib.texi (Function Substitutes): Add these subsections.
22697         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
22698         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
22699         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
22700         these subsections.
22701         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
22702         Remove sections.
22703
22704 2008-12-14  Bruno Haible  <bruno@clisp.org>
22705
22706         Update doc for POSIX:2008.
22707         * doc/posix-functions/*.texi: Update URL of POSIX specification.
22708
22709 2008-12-14  Bruno Haible  <bruno@clisp.org>
22710
22711         Update doc for POSIX:2008.
22712         * doc/pastposix-functions/bcmp.texi: Renamed from
22713         doc/posix-functions/bcmp.texi.
22714         * doc/pastposix-functions/bcopy.texi: Renamed from
22715         doc/posix-functions/bcopy.texi.
22716         * doc/pastposix-functions/bsd_signal.texi: Renamed from
22717         doc/posix-functions/bsd_signal.texi.
22718         * doc/pastposix-functions/bzero.texi: Renamed from
22719         doc/posix-functions/bzero.texi.
22720         * doc/pastposix-functions/ecvt.texi: Renamed from
22721         doc/posix-functions/ecvt.texi.
22722         * doc/pastposix-functions/fcvt.texi: Renamed from
22723         doc/posix-functions/fcvt.texi.
22724         * doc/pastposix-functions/ftime.texi: Renamed from
22725         doc/posix-functions/ftime.texi.
22726         * doc/pastposix-functions/gcvt.texi: Renamed from
22727         doc/posix-functions/gcvt.texi.
22728         * doc/pastposix-functions/getcontext.texi: Renamed from
22729         doc/posix-functions/getcontext.texi.
22730         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
22731         doc/posix-functions/gethostbyaddr.texi.
22732         * doc/pastposix-functions/gethostbyname.texi: Renamed from
22733         doc/posix-functions/gethostbyname.texi.
22734         * doc/pastposix-functions/getwd.texi: Renamed from
22735         doc/posix-functions/getwd.texi.
22736         * doc/pastposix-functions/h_errno.texi: Renamed from
22737         doc/posix-functions/h_errno.texi.
22738         * doc/pastposix-functions/index.texi: Renamed from
22739         doc/posix-functions/index.texi.
22740         * doc/pastposix-functions/makecontext.texi: Renamed from
22741         doc/posix-functions/makecontext.texi.
22742         * doc/pastposix-functions/mktemp.texi: Renamed from
22743         doc/posix-functions/mktemp.texi.
22744         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
22745         doc/posix-functions/pthread_attr_getstackaddr.texi.
22746         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
22747         doc/posix-functions/pthread_attr_setstackaddr.texi.
22748         * doc/pastposix-functions/rindex.texi: Renamed from
22749         doc/posix-functions/rindex.texi.
22750         * doc/pastposix-functions/scalb.texi: Renamed from
22751         doc/posix-functions/scalb.texi.
22752         * doc/pastposix-functions/setcontext.texi: Renamed from
22753         doc/posix-functions/setcontext.texi.
22754         * doc/pastposix-functions/swapcontext.texi: Renamed from
22755         doc/posix-functions/swapcontext.texi.
22756         * doc/pastposix-functions/ualarm.texi: Renamed from
22757         doc/posix-functions/ualarm.texi.
22758         * doc/pastposix-functions/usleep.texi: Renamed from
22759         doc/posix-functions/usleep.texi.
22760         * doc/pastposix-functions/vfork.texi: Renamed from
22761         doc/posix-functions/vfork.texi.
22762         * doc/pastposix-functions/wcswcs.texi: Renamed from
22763         doc/posix-functions/wcswcs.texi.
22764         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
22765         (Function Substitutes): Update.
22766
22767 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22768
22769         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
22770         m4/strerror.m4.
22771
22772 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22773             Bruno Haible  <bruno@clisp.org>
22774
22775         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
22776
22777 2008-12-13  Bruno Haible  <bruno@clisp.org>
22778
22779         * modules/strtoull (Depends-on): Remove unistd.
22780
22781 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22782
22783         * modules/strtoull (Depends-on): Add stdlib.
22784
22785 2008-12-11  Simon Josefsson  <simon@josefsson.org>
22786
22787         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
22788
22789 2008-12-10  Jim Meyering  <meyering@redhat.com>
22790
22791         gl_ASSERT: don't say assertions are disabled when they're not
22792         * m4/assert.m4 (gl_ASSERT): Do not make configure report
22793         "checking whether to enable assertions... no", when they are in
22794         fact enabled.  This is solely a bug in the output of configure.
22795         In spite of saying "no", NDEBUG was not defined in that case.
22796         Also, as noted by Eric Blake, leave assertions enabled upon
22797         --enable-assert=INVALID.
22798
22799 2008-12-10  Bruno Haible  <bruno@clisp.org>
22800
22801         Change MODULES.html to refer to POSIX:2008 where possible.
22802         * MODULES.html.sh (POSIX2008_URL): New variable.
22803         (posix_headers): Remove sys/timeb, ucontext.
22804         (posix2001_headers): New variable.
22805         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
22806         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
22807         index, makecontext, mktemp, pthread_attr_getstackaddr,
22808         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
22809         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
22810         (posix2001_functions): New variable.
22811         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
22812         otherwise.
22813
22814 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22815
22816         add missing include to parse-duration.c
22817         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
22818         * modules/parse-duration (Depends-on): Add xalloc.
22819
22820         fix sed script reading maint.mk
22821         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
22822         (syntax-check-rules): Use it.
22823
22824 2008-12-09  Bruno Haible  <bruno@clisp.org>
22825
22826         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
22827         MacOS X 10.4/PowerPC.
22828         Reported by Simon Josefsson.
22829
22830 2008-12-08  Jim Meyering  <meyering@redhat.com>
22831
22832         work around mingw's lack of some S_IF definitions
22833         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
22834         Reported by Simon Josefsson.
22835
22836 2008-12-08  Bruno Haible  <bruno@clisp.org>
22837
22838         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
22839         applied to variables. Needed on MacOS X 10.4/PowerPC.
22840         Reported by Simon Josefsson.
22841
22842 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
22843         and Eric Blake  <ebb9@byu.net>
22844
22845         assert: honor --enable-assert
22846         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
22847         order to honor --enable-assert, rather than treating it as a
22848         synonym for --disable-assert.
22849
22850 2008-12-08  Jim Meyering  <meyering@redhat.com>
22851
22852         * lib/posixtm.c: Remove now-useless declaration of mktime.
22853
22854         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
22855
22856 2008-12-07  Bruno Haible  <bruno@clisp.org>
22857
22858         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
22859         test_once): Mark functions as static.
22860         * tests/test-tls.c (test_tls): Likewise.
22861
22862 2008-12-07  Bruno Haible  <bruno@clisp.org>
22863
22864         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
22865         iconv_register_autodetect.
22866
22867 2008-12-07  Jim Meyering  <meyering@redhat.com>
22868
22869         posixtm.c: avoid a warning
22870         * lib/posixtm.c (posixtime): Don't initialize tm0.
22871         It's no longer needed to placate gcc4's -Wuninitialized,
22872         and the attempt to placate would elicit a new warning.
22873
22874         unicodeio.c: mark unused parameters
22875         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
22876         (fallback_failure_callback): Likewise.
22877
22878 2008-12-07  Bruno Haible  <bruno@clisp.org>
22879
22880         * gnulib-tool (func_create_testdir): When building the tests
22881         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
22882         Reported by Simon Josefsson.
22883
22884 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22885
22886         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
22887
22888 2008-12-06  Bruno Haible  <bruno@clisp.org>
22889
22890         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
22891         Suggested by Eric Blake.
22892
22893 2008-12-06  Bruno Haible  <bruno@clisp.org>
22894
22895         Fix a c-stack test failure on MacOS X.
22896         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
22897         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
22898         handler for SIGBUS as well.
22899         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
22900         install a signal handler for SIGBUS as well.
22901         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
22902
22903 2008-12-06  Bruno Haible  <bruno@clisp.org>
22904
22905         Advocacy documentation.
22906         * doc/gnulib-intro.texi (Benefits): New section.
22907         * doc/gnulib.texi: Update.
22908
22909 2008-12-06  Bruno Haible  <bruno@clisp.org>
22910
22911         Document the 'manywarnings' module.
22912         * doc/manywarnings.texi: New file.
22913         * doc/gnulib.texi: Include it.
22914
22915 2008-12-05  Eric Blake  <ebb9@byu.net>
22916
22917         tests: silence some gcc warnings
22918         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
22919         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
22920         type mismatches.
22921
22922 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22923             Bruno Haible  <bruno@clisp.org>
22924
22925         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
22926
22927 2008-11-29  Jim Meyering  <meyering@redhat.com>
22928
22929         unicodeio.c: mark unused parameters
22930         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
22931         (fallback_failure_callback): Likewise.
22932
22933         fts: fix a thinko
22934         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
22935         (set_stat_type): Return S_IF*-valued "type" directly.
22936         Prompted by James Youngman's spotting a related bug.
22937         Confirmed by further testing through find.
22938
22939         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
22940         * lib/fts.c (D_TYPE): Define.
22941         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
22942         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
22943         (s_ifmt_shift_bits): New function.
22944         (set_stat_type): New function.
22945         (fts_build): When not calling fts_stat, call set_stat_type
22946         to propagate dirent.d_type info to fts_read caller.
22947         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
22948         fts_statp->st_mode type information may be valid.
22949
22950 2008-11-28  Simon Josefsson  <simon@josefsson.org>
22951
22952         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
22953         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
22954         <sds@gnu.org>.
22955
22956 2008-11-20  Bruno Haible  <bruno@clisp.org>
22957
22958         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
22959         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
22960         INCLUDE_NEXT.
22961         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
22962         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
22963         * modules/math (Makefile.am): Substitute
22964         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
22965         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22966
22967 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
22968             Bruno Haible  <bruno@clisp.org>
22969
22970         * lib/stdint.in.h: Define all type macros so that their expansion is
22971         a single typedef'ed token. Fixes a compilation failure in Boost which
22972         does "using ::int8_t;".
22973
22974 2008-11-18  Simon Josefsson  <simon@josefsson.org>
22975
22976         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
22977         gl_MANYWARN_ALL_GCC.
22978         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
22979         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
22980         * modules/manywarnings: New file.
22981         * MODULES.html.sh: Mention manywarnings module.
22982
22983 2008-11-18  Bruno Haible  <bruno@clisp.org>
22984
22985         * doc/gnulib-tool.texi (Unit tests): New section.
22986
22987 2008-11-18  Simon Josefsson  <simon@josefsson.org>
22988
22989         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
22990         paths like 'lib/po/foo.po'.
22991
22992 2008-11-17  Simon Josefsson  <simon@josefsson.org>
22993
22994         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
22995         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
22996
22997 2008-11-17  Simon Josefsson  <simon@josefsson.org>
22998
22999         * m4/warnings.m4: Use CPPFLAGS to really check whether the
23000         parameter works.
23001
23002 2008-11-17  Simon Josefsson  <simon@josefsson.org>
23003
23004         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
23005
23006 2008-11-17  Bruce Korb  <bkorb@gnu.org>
23007
23008         * modules/parse-duration-tests: New file.
23009         * tests/test-parse-duration.sh: New file.
23010         * tests/test-parse-duration.c: New file.
23011
23012         New module 'parse-duration'.
23013         * lib/parse-duration.h: New file.
23014         * lib/parse-duration.c: New file.
23015         * modules/parse-duration: New file.
23016
23017 2008-11-17  Bruno Haible  <bruno@clisp.org>
23018
23019         * tests/test-select-out.sh: Comment out the first pipe test.
23020         Reported by Simon Josefsson.
23021
23022 2008-11-17  Bruno Haible  <bruno@clisp.org>
23023
23024         * modules/getaddrinfo (Depends-on): Add servent, hostent.
23025         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
23026         gl_HOSTENT.
23027
23028 2008-11-17  Bruno Haible  <bruno@clisp.org>
23029
23030         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
23031         -lnetwork and -lnet. Needed for Haiku and BeOS.
23032
23033 2008-11-16  Bruno Haible  <bruno@clisp.org>
23034
23035         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
23036
23037 2008-11-16  Bruno Haible  <bruno@clisp.org>
23038
23039         Avoid test failure on Haiku.
23040         * tests/test-fsync.c: Include <errno.h>.
23041         (main): Don't require that fsync (0) fails.
23042
23043 2008-11-15  Bruno Haible  <bruno@clisp.org>
23044
23045         New module 'hostent'.
23046         * modules/hostent: New file.
23047         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
23048
23049 2008-11-15  Bruno Haible  <bruno@clisp.org>
23050
23051         New module 'servent'.
23052         * modules/servent: New file.
23053         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
23054
23055 2008-11-15  Bruno Haible  <bruno@clisp.org>
23056
23057         Avoid generating same test program with two different rules.
23058         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
23059         test-frexp to test-frexp-nolibm.
23060         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
23061         test-frexpl to test-frexpl-nolibm.
23062
23063 2008-11-15  Bruno Haible  <bruno@clisp.org>
23064
23065         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
23066         $(FREXPL_LIBM).
23067
23068 2008-11-15  Bruno Haible  <bruno@clisp.org>
23069
23070         * lib/netdb.in.h: Activate the definitions also when the system's
23071         <netdb.h> has 'struct addrinfo'.
23072         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
23073         EAI_OVERFLOW or AI_NUMERICSERV.
23074         * doc/posix-headers/netdb.texi: Document the problem.
23075
23076 2008-11-15  Bruno Haible  <bruno@clisp.org>
23077
23078         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
23079
23080         Make the 'sched' module work on platforms where <sched.h> exists but
23081         is incomplete (such as Haiku).
23082         * lib/sched.in.h; Include the system's <sched.h> if it exists.
23083         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
23084         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
23085         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
23086         HAVE_STRUCT_SCHED_PARAM.
23087         * modules/sched (Depends-on): Add include_next.
23088         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
23089         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
23090         * doc/posix-headers/sched.texi: Document the issue.
23091
23092 2008-11-13  Jim Meyering  <meyering@redhat.com>
23093
23094         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
23095         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
23096         test would fail due to the difference in the Report bugs to ...
23097         line.  The expected address is empty, "<>", while the actual
23098         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
23099
23100 2008-11-12  Bruno Haible  <bruno@clisp.org>
23101
23102         lstat: don't compile lstat.c on systems lacking lstat
23103         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
23104         which don't have lstat; this is handled by lib/sys_stat.in.h already.
23105         Reported by Daniel P. Berrange via Jim Meyering.
23106
23107 2008-11-12  Jim Meyering  <meyering@redhat.com>
23108
23109         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
23110
23111 2008-11-12  Simon Josefsson  <simon@josefsson.org>
23112
23113         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
23114         instead.
23115
23116 2008-11-12  Bruno Haible  <bruno@clisp.org>
23117
23118         * lib/unicodeio.c: Include unistr.h.
23119         (utf8_wctomb): Remove function.
23120         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
23121
23122 2008-11-12  Simon Josefsson  <simon@josefsson.org>
23123
23124         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
23125         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
23126         <bruno@clisp.org>.
23127         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
23128
23129 2008-11-12  Simon Josefsson  <simon@josefsson.org>
23130
23131         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
23132         * doc/gnulib.texi: Add section for warnings.
23133
23134 2008-11-11  Bruno Haible  <bruno@clisp.org>
23135
23136         * lib/sockets.h: Add a comment.
23137
23138 2008-11-11  Karl Berry  <karl@gnu.org>
23139
23140         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
23141
23142 2008-11-11  Eric Blake  <ebb9@byu.net>
23143
23144         fdl.texi: avoid git symlinks
23145         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
23146
23147 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
23148
23149         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
23150
23151 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
23152
23153         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
23154         (gl_WARN_ADD): Substitute $2 if literal.
23155
23156 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
23157
23158         * m4/warning.m4: Remove.
23159
23160 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
23161
23162         * m4/warnings.m4: Almost complete rewrite. :-)
23163
23164 2008-11-10  Simon Josefsson  <simon@josefsson.org>
23165
23166         * modules/warnings: New module.
23167         * m4/warnings.m4: New file.
23168         * MODULES.html.sh: Mention warnings module.
23169         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
23170         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23171
23172 2008-11-10  Eric Blake  <ebb9@byu.net>
23173
23174         fdl.texi: make a symlink to the latest version
23175         * doc/standards.texi: Revert today's earlier change.
23176         * doc/fdl-1.2.texi: Rename from old fdl.texi...
23177         * doc/fdl.texi: ...and replace this with a symlink to the newer
23178         fdl-1.3.texi.
23179
23180 2008-11-10  Bruno Haible  <bruno@clisp.org>
23181
23182         * tests/test-select-fd.c (main): Accept the result file name as fourth
23183         argument.
23184         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
23185         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
23186
23187 2008-11-10  Bruno Haible  <bruno@clisp.org>
23188
23189         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
23190         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
23191         as autoconf-substituted macros.
23192         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
23193         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
23194         gl_NETDB_H_DEFAULTS. Set these variables.
23195         * modules/netdb (Makefile.am): Substitute these variables.
23196
23197 2008-11-10  Eric Blake  <ebb9@byu.net>
23198
23199         standards.texi: include correct file for FDL 1.3
23200         * doc/standards.texi (GNU Free Documentation License): Change
23201         include file to pull in FDL 1.3, not 1.2.
23202
23203         fdl.texi: revert accidental change to license
23204         * doc/fdl.texi: This is FDL 1.2, not 1.3.
23205
23206 2008-11-10  Bruno Haible  <bruno@clisp.org>
23207
23208         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
23209         cross-compiling guesses also when the native compile gives no result.
23210
23211 2008-11-10  Bruno Haible  <bruno@clisp.org>
23212
23213         * lib/spawni.c (__spawni): Force variable into the stack.
23214
23215 2008-11-10  Bruno Haible  <bruno@clisp.org>
23216
23217         Add support for Haiku.
23218         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
23219         glibc and BeOS, but also on Haiku.
23220         * lib/fpurge.c (fpurge): Likewise.
23221         * lib/freadable.c (freadable): Likewise.
23222         * lib/freadahead.c (freadahead): Likewise.
23223         * lib/freading.c (freading): Likewise.
23224         * lib/freadptr.c (freadptr): Likewise.
23225         * lib/freadseek.c (freadptrinc): Likewise.
23226         * lib/fseeko.c (rpl_fseeko): Likewise.
23227         * lib/fseterr.c (fseterr): Likewise.
23228         * lib/fwritable.c (fwritable): Likewise.
23229         * lib/fwriting.c (fwriting): Likewise.
23230         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
23231
23232 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
23233
23234         * lib/config.charset: Treat Haiku like BeOS.
23235
23236 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
23237
23238         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
23239         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
23240
23241 2008-11-08  Bruno Haible  <bruno@clisp.org>
23242
23243         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
23244         AC_CACHE_CHECK.
23245
23246 2008-11-08  Bruno Haible  <bruno@clisp.org>
23247
23248         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
23249
23250 2008-11-08  Bruno Haible  <bruno@clisp.org>
23251
23252         * tests/test-select-fd.c: New file.
23253         * tests/test-select-in.sh: New file.
23254         * tests/test-select-out.sh: New file.
23255         * tests/test-select-stdin.c: New file.
23256         * modules/select-tests (Files): Add the new files.
23257         (Depends-on): Add gettimeofday.
23258         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
23259         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
23260         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
23261
23262 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
23263             Bruno Haible  <bruno@clisp.org>
23264
23265         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
23266
23267 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
23268
23269         * build-aux/pmccabe2html: Added support for C++ source files.
23270
23271 2008-11-05  Ben Pfaff  <blp@gnu.org>
23272
23273         Fix lib/close.c build on Windows.
23274         * modules/close (Files): Add lib/w32sock.h.
23275
23276 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
23277
23278         Accept Bison's NEWS format.
23279         * build-aux/announce-gen (print_news_deltas): Tweak
23280         $re_prefix.
23281
23282 2008-11-04  Bruno Haible  <bruno@clisp.org>
23283
23284         * modules/random_r (Maintainer): Add glibc.
23285
23286 2008-11-04  Simon Josefsson  <simon@josefsson.org>
23287
23288         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
23289         by karl@freefriends.org (Karl Berry).
23290         * doc/alloca.texi: Likewise.
23291         * doc/c-ctype.texi: Likewise.
23292         * doc/c-strcase.texi: Likewise.
23293         * doc/c-strcaseeq.texi: Likewise.
23294         * doc/c-strcasestr.texi: Likewise.
23295         * doc/c-strstr.texi: Likewise.
23296         * doc/c-strtod.texi: Likewise.
23297         * doc/c-strtold.texi: Likewise.
23298         * doc/ctime.texi: Likewise.
23299         * doc/error.texi: Likewise.
23300         * doc/fdl.texi: Likewise.
23301         * doc/gcd.texi: Likewise.
23302         * doc/getdate.texi: Likewise.
23303         * doc/gnulib-intro.texi: Likewise.
23304         * doc/gnulib-tool.texi: Likewise.
23305         * doc/gnulib.texi: Likewise.
23306         * doc/inet_ntoa.texi: Likewise.
23307         * doc/maintain.texi: Likewise.
23308         * doc/make-stds.texi: Likewise.
23309         * doc/quote.texi: Likewise.
23310         * doc/regexprops-generic.texi: Likewise.
23311         * doc/standards.texi: Likewise.
23312         * doc/verify.texi: Likewise.
23313         * doc/visibility.texi: Likewise.
23314         * doc/gnulib.texi (GNU Free Documentation License): Include
23315         fdl-1.3.texi instead of fdl.texi.
23316
23317 2008-11-04  Simon Josefsson  <simon@josefsson.org>
23318
23319         * doc/fdl-1.3.texi: New file, from
23320         <http://www.gnu.org/licenses/fdl-1.3.texi>.
23321         * modules/fdl-1.3: Add.
23322         * MODULES.html.sh: Add fdl-1.3.
23323
23324 2008-11-03  Bruno Haible  <bruno@clisp.org>
23325
23326         Make determination of absolute name of header file work with AIX xlc.
23327         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
23328         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
23329         preprocessing.
23330         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
23331         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
23332
23333 2008-11-03  Simon Josefsson  <simon@josefsson.org>
23334
23335         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
23336         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
23337         <ludo@gnu.org>.
23338
23339 2008-11-02  Bruno Haible  <bruno@clisp.org>
23340
23341         Mark 'strpbrk' obsolete.
23342         * modules/strpbrk (Status, Notice): New sections.
23343         * modules/strtok_r (Depends-on): Add strpbrk.
23344
23345 2008-11-02  Bruno Haible  <bruno@clisp.org>
23346
23347         Mark 'strdup' obsolete.
23348         * modules/strdup (Status, Notice): New sections.
23349         * modules/findprog (Depends-on): Add strdup.
23350         * modules/getaddrinfo (Depends-on): Likewise.
23351         * modules/localename (Depends-on): Likewise.
23352         * modules/relocatable-lib (Depends-on): Likewise.
23353         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
23354         * modules/relocatable-prog (Depends-on): Likewise.
23355         * modules/trim (Depends-on): Likewise.
23356         * modules/unictype/gen-ctype (Depends-on): Likewise.
23357         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
23358
23359 2008-11-02  Bruno Haible  <bruno@clisp.org>
23360
23361         Mark 'strcspn' obsolete.
23362         * modules/strcspn (Status, Notice): New sections.
23363
23364 2008-11-02  Bruno Haible  <bruno@clisp.org>
23365
23366         Mark 'rmdir' obsolete.
23367         * modules/rmdir (Status, Notice): New sections.
23368         * modules/clean-temp (Depends-on): Add rmdir.
23369         * modules/openat (Depends-on): Likewise.
23370
23371 2008-11-02  Bruno Haible  <bruno@clisp.org>
23372
23373         Mark 'raise' obsolete.
23374         * modules/raise (Status, Notice): New sections.
23375         (Include): Specify <signal.h>.
23376         * modules/stdio (Depends-on): Add raise.
23377         * modules/write (Depends-on): Likewise.
23378
23379 2008-11-02  Bruno Haible  <bruno@clisp.org>
23380
23381         Mark 'memset' obsolete.
23382         * modules/memset (Status, Notice): New sections.
23383
23384 2008-11-02  Bruno Haible  <bruno@clisp.org>
23385
23386         Mark 'memmove' obsolete.
23387         * modules/memmove (Status, Notice): New sections.
23388         * modules/argp (Depends-on): Add memmove.
23389         * modules/argz (Depends-on): Likewise.
23390         * modules/canonicalize (Depends-on): Likewise.
23391         * modules/canonicalize-lgpl (Depends-on): Likewise.
23392         * modules/fts (Depends-on): Likewise.
23393         * modules/getcwd (Depends-on): Likewise.
23394         * modules/human (Depends-on): Likewise.
23395         * modules/regex (Depends-on): Likewise.
23396         * modules/striconveh (Depends-on): Likewise.
23397         * modules/trim (Depends-on): Likewise.
23398         * modules/unistr/u8-move (Depends-on): Likewise.
23399         * modules/unistr/u16-move (Depends-on): Likewise.
23400         * modules/unistr/u32-move (Depends-on): Likewise.
23401
23402 2008-11-02  Bruno Haible  <bruno@clisp.org>
23403
23404         Mark 'memcpy' obsolete.
23405         * modules/memcpy (Status, Notice): New sections.
23406
23407 2008-11-02  Bruno Haible  <bruno@clisp.org>
23408
23409         Mark 'memcmp' obsolete.
23410         * modules/memcmp (Status, Notice): New sections.
23411         * modules/argmatch (Depends-on): Add memchr.
23412         * modules/backupfile (Depends-on): Likewise.
23413         * modules/c-strcasestr (Depends-on): Likewise.
23414         * modules/crypto/des (Depends-on): Likewise.
23415         * modules/csharpcomp (Depends-on): Likewise.
23416         * modules/fnmatch (Depends-on): Likewise.
23417         * modules/git-merge-changelog (Depends-on): Likewise.
23418         * modules/isnand (Depends-on): Likewise.
23419         * modules/isnand-nolibm (Depends-on): Likewise.
23420         * modules/isnanf (Depends-on): Likewise.
23421         * modules/isnanf-nolibm (Depends-on): Likewise.
23422         * modules/isnanl (Depends-on): Likewise.
23423         * modules/isnanl-nolibm (Depends-on): Likewise.
23424         * modules/mbchar (Depends-on): Likewise.
23425         * modules/memcoll (Depends-on): Likewise.
23426         * modules/quotearg (Depends-on): Likewise.
23427         * modules/regex (Depends-on): Likewise.
23428         * modules/relocatable-prog (Depends-on): Likewise.
23429         * modules/same (Depends-on): Likewise.
23430         * modules/signbit (Depends-on): Likewise.
23431         * modules/strcasestr-simple (Depends-on): Likewise.
23432         * modules/unictype/gen-ctype (Depends-on): Likewise.
23433         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
23434         * modules/uniname/uniname (Depends-on): Likewise.
23435         * modules/unistr/u8-cmp (Depends-on): Likewise.
23436
23437 2008-11-02  Bruno Haible  <bruno@clisp.org>
23438
23439         Mark 'memchr' obsolete.
23440         * modules/memchr (Status, Notice): New sections.
23441         * modules/argp (Depends-on): Add memchr.
23442         * modules/base64 (Depends-on): Likewise.
23443         * modules/c-strcasestr (Depends-on): Likewise.
23444         * modules/chdir-long (Depends-on): Likewise.
23445         * modules/fnmatch (Depends-on): Likewise.
23446         * modules/getsubopt (Depends-on): Likewise.
23447         * modules/git-merge-changelog (Depends-on): Likewise.
23448         * modules/glob (Depends-on): Likewise.
23449         * modules/strcasestr-simple (Depends-on): Likewise.
23450         * modules/strnlen (Depends-on): Likewise.
23451
23452 2008-11-02  Bruno Haible  <bruno@clisp.org>
23453
23454         Mark 'atexit' obsolete.
23455         * modules/atexit (Status, Notice): New sections.
23456         * modules/chdir-long (Depends-on): Add atexit.
23457         * modules/wait-process (Depends-on): Likewise.
23458
23459 2008-11-02  Bruno Haible  <bruno@clisp.org>
23460
23461         * gnulib-tool: New option --with-obsolete.
23462         (func_usage): Document it.
23463         (func_modules_transitive_closure): Drop obsolete dependencies if
23464         incobsolete is not true.
23465         (func_import): Read and save the incobsolete variable to the cache.
23466
23467 2008-11-02  Bruno Haible  <bruno@clisp.org>
23468
23469         * modules/TEMPLATE-EXTENDED: New field 'Status'.
23470         * gnulib-tool: New option --extract-status.
23471         (func_usage): Document it.
23472         (sed_extract_prog): Recognize it.
23473         (func_get_status): New function.
23474
23475 2008-10-30  Simon Josefsson  <simon@josefsson.org>
23476
23477         * modules/sockets (License): Change from LGPL to LGPLv2+.
23478
23479 2008-10-28  Simon Josefsson  <simon@josefsson.org>
23480
23481         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
23482
23483 2008-10-28  Simon Josefsson  <simon@josefsson.org>
23484
23485         * MODULES.html.sh (Support for systems lacking POSIX:2001):
23486         Mention times and sys_times.
23487         * modules/sys_times, modules/sys_times-tests: New modules.
23488         * modules/times, modules/times-tests: Likewise
23489         * m4/sys_times_h.m4: New file.
23490         * lib/sys_times.in.h: Likewise
23491         * lib/times.c: Likewise.
23492         * tests/test-sys_times.c: Likewise.
23493         * tests/test-times.c: Likewise.
23494         * doc/posix-headers/sys_times.texi: Update.
23495         * doc/posix-functions/times.texi: Update.
23496
23497 2008-10-28  Jim Meyering  <meyering@redhat.com>
23498
23499         * modules/tempname (Depends-on): Add lstat.
23500
23501         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
23502
23503 2008-10-28  Simon Josefsson  <simon@josefsson.org>
23504
23505         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
23506         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
23507         using idiom used elsewhere in gnulib.
23508
23509 2008-10-27  Jim Meyering  <meyering@redhat.com>
23510
23511         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
23512
23513 2008-10-27  Simon Josefsson  <simon@josefsson.org>
23514
23515         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
23516         TESTS_ENVIRONMENT, for shell scripts that needs to call built
23517         programs.
23518         * tests/test-argp-2.sh: Use $EXEEXT when needed.
23519
23520 2008-10-27  Simon Josefsson  <simon@josefsson.org>
23521
23522         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
23523
23524 2008-10-27  Bruno Haible  <bruno@clisp.org>
23525
23526         * tests/test-lstat.c: Include <stdio.h>.
23527
23528 2008-10-27  Simon Josefsson  <simon@josefsson.org>
23529
23530         * modules/lstat-tests: New module.
23531         * tests/test-lstat.c: New file.
23532
23533 2008-10-26  Jim Meyering  <meyering@redhat.com>
23534
23535         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
23536
23537 2008-10-26  Simon Josefsson  <simon@josefsson.org>
23538             Bruno Haible  <bruno@clisp.org>
23539
23540         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
23541         * modules/configmake (Include): Add a note that the include must come
23542         after all system headers.
23543         * lib/javaversion.c: Include configmake.h after all other includes.
23544
23545 2008-10-26  Bruno Haible  <bruno@clisp.org>
23546
23547         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
23548         HAVE_STRUCT_RANDOM_DATA to 1.
23549         (gl_STDLIB_H): Simplify.
23550
23551 2008-10-26  Simon Josefsson  <simon@josefsson.org>
23552
23553         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
23554         substitute HAVE_STRUCT_RANDOM_DATA.
23555         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
23556         random_data.
23557         * modules/stdlib (Makefile.am): Substitute
23558         HAVE_STRUCT_RANDOM_DATA.
23559
23560 2008-10-26  Simon Josefsson  <simon@josefsson.org>
23561
23562         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
23563         * doc/gnulib-intro.texi (Copyright): Likewise.
23564
23565 2008-10-26  Simon Josefsson  <simon@josefsson.org>
23566
23567         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
23568         findings.
23569
23570 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
23571             Bruno Haible  <bruno@clisp.org>
23572
23573         * lib/unistd.in.h: Include <winsock2.h>.
23574         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
23575         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
23576         Provide dummy declarations.
23577         (gethostname): Override.
23578         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
23579         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
23580         gl_PREREQ_SYS_H_WINSOCK2.
23581         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
23582         * doc/posix-functions/gethostname.texi: More details.
23583
23584 2008-10-25  Bruno Haible  <bruno@clisp.org>
23585
23586         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
23587         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
23588         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
23589
23590         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
23591         here ...
23592         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
23593         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
23594         gl_UNISTD_H_DEFAULTS.
23595
23596 2008-10-25  Eric Blake  <ebb9@byu.net>
23597
23598         signbit: avoid spurious compiler failure
23599         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
23600         declarations inside function.
23601
23602 2008-10-24  Simon Josefsson  <simon@josefsson.org>
23603             Bruno Haible  <bruno@clisp.org>
23604
23605         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
23606         * modules/random_r (Depends-on): Add stdint.
23607
23608 2008-10-24  Bruno Haible  <bruno@clisp.org>
23609
23610         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
23611         Eggert.
23612         * modules/strerror (License): Likewise.
23613
23614 2008-10-24  Jim Meyering  <meyering@redhat.com>
23615
23616         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
23617         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
23618
23619 2008-10-24  Eric Blake  <ebb9@byu.net>
23620
23621         getgroups: fix compilation when getgroups is available
23622         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
23623         but with <config.h> override of getgroups disabled.
23624
23625 2008-10-24  Simon Josefsson  <simon@josefsson.org>
23626
23627         * doc/gnulib.texi (Header files): Add note about C++ problems.
23628         Explained by Bruno Haible <bruno@clisp.org>.
23629
23630 2008-10-23  Bruno Haible  <bruno@clisp.org>
23631
23632         Define a dummy SA_NODEFER macro on Interix.
23633         * lib/signal.in.h (SA_NODEFER): Define fallback.
23634         Reported by Aleksey Cheusov <cheusov@tut.by> via
23635         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
23636
23637 2008-10-23  Bruno Haible  <bruno@clisp.org>
23638
23639         * modules/freadahead (License): Change to LGPLv2+.
23640         Suggested by Simon Josefsson.
23641
23642 2008-10-23  Jim Meyering  <meyering@redhat.com>
23643
23644         random_r: new module
23645         * modules/random_r: New file.
23646         * m4/random_r.m4: New file.
23647         * lib/random_r.c: New file, from glibc.
23648         * modules/random_r-tests: New file.
23649         * tests/test-random_r.c: New file.
23650         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
23651          Declare.
23652         (RAND_MAX): Define.
23653         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
23654         * modules/stdlib: Substitute them, too.
23655         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
23656         * doc/glibc-functions/initstate_r.texi: Mention the new module.
23657         * doc/glibc-functions/random_r.texi: Likewise.
23658         * doc/glibc-functions/setstate_r.texi: Likewise.
23659         * doc/glibc-functions/srandom_r.texi: Likewise.
23660         * config/srclist.txt: Mention it.
23661
23662 2008-10-23  David Lutterkort  <lutter@redhat.com>
23663
23664         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
23665         link requirement
23666
23667 2008-10-23  Jim Meyering  <meyering@redhat.com>
23668
23669         selinux-h: mark parameters of stub functions as intentionally unused
23670         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
23671         * lib/se-context.in.h: Likewise.
23672
23673 2008-10-22  Simon Josefsson  <simon@josefsson.org>
23674
23675         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
23676
23677 2008-10-22  Simon Josefsson  <simon@josefsson.org>
23678
23679         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
23680
23681 2008-10-22  Eric Blake  <ebb9@byu.net>
23682
23683         glthread/thread: avoid compiler warning
23684         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
23685         Add unreachable abort to silence compiler.
23686
23687 2008-10-22  Eric Blake  <ebb9@byu.net>
23688
23689         netdb: also supply struct addrinfo for cygwin 1.5.x
23690         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
23691         older cygwin.
23692         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
23693         cygwin.
23694         * doc/posix-headers/netdb.texi (netdb.h): Document this.
23695
23696 2008-10-22  Bruno Haible  <bruno@clisp.org>
23697
23698         * users.txt: Update entry about pspp.
23699
23700 2008-10-21  Bruno Haible  <bruno@clisp.org>
23701
23702         Simplification.
23703         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
23704         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
23705
23706         Simplification.
23707         * lib/ioctl.c (ioctl): Don't undefine.
23708         * lib/socket.c (socket): Don't undefine.
23709
23710         Remove unused module indicator macros.
23711         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
23712         GNULIB_$1 as a C macro.
23713
23714         * doc/posix-functions/close.texi: Undo last change.
23715         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
23716         Windows platforms.
23717
23718 2008-10-21  Bruno Haible  <bruno@clisp.org>
23719
23720         Add gethostname() declaration to <unistd.h>.
23721         * lib/unistd.in.h (gethostname): New declaration.
23722         * lib/gethostname.c: Include <unistd.h>.
23723         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
23724         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
23725         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
23726         and HAVE_GETHOSTNAME.
23727         * modules/gethostname (Depends-on): Add unistd.
23728         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23729         (Include): Specify <unistd.h>.
23730         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
23731         HAVE_GETHOSTNAME.
23732         * tests/test-gethostname.c: Include <unistd.h> first.
23733
23734 2008-10-21  Bruno Haible  <bruno@clisp.org>
23735
23736         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
23737         * modules/select-tests (Depends-on): Likewise.
23738         Reported by Simon Josefsson.
23739
23740 2008-10-21  Simon Josefsson  <simon@josefsson.org>
23741
23742         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
23743         * lib/accept.c: New file, based on winsock.c.
23744         * lib/bind.c: New file, based on winsock.c.
23745         * lib/connect.c: New file, based on winsock.c.
23746         * lib/getpeername.c: New file, based on winsock.c.
23747         * lib/getsockname.c: New file, based on winsock.c.
23748         * lib/getsockopt.c: New file, based on winsock.c.
23749         * lib/ioctl.c: New file, based on winsock.c.
23750         * lib/listen.c: New file, based on winsock.c.
23751         * lib/recv.c: New file, based on winsock.c.
23752         * lib/recvfrom.c: New file, based on winsock.c.
23753         * lib/send.c: New file, based on winsock.c.
23754         * lib/sendto.c: New file, based on winsock.c.
23755         * lib/setsockopt.c: New file, based on winsock.c.
23756         * lib/shutdown.c: New file, based on winsock.c.
23757         * lib/socket.c: New file, based on winsock.c.
23758         * lib/w32sock.h: New file, based on winsock.c.
23759         * lib/winsock.c: Remove file.
23760         * modules/accept: Likewise.
23761         * modules/bind: Likewise.
23762         * modules/connect: Likewise.
23763         * modules/getpeername: Likewise.
23764         * modules/getsockname: Likewise.
23765         * modules/getsockopt: Likewise.
23766         * modules/ioctl: Likewise.
23767         * modules/listen: Likewise.
23768         * modules/recv: Likewise.
23769         * modules/recvfrom: Likewise.
23770         * modules/send: Likewise.
23771         * modules/sendto: Likewise.
23772         * modules/setsockopt: Likewise.
23773         * modules/shutdown: Likewise.
23774         * modules/socket: Use socket.c instead of winsock.c.
23775         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
23776         * doc/posix-functions/accept.texi: Doc fix.
23777         * doc/posix-functions/bind.texi: Doc fix.
23778         * doc/posix-functions/close.texi: Doc fix.
23779         * doc/posix-functions/connect.texi: Doc fix.
23780         * doc/posix-functions/getpeername.texi: Doc fix.
23781         * doc/posix-functions/getsockname.texi: Doc fix.
23782         * doc/posix-functions/getsockopt.texi: Doc fix.
23783         * doc/posix-functions/ioctl.texi: Doc fix.
23784         * doc/posix-functions/listen.texi: Doc fix.
23785         * doc/posix-functions/recv.texi: Doc fix.
23786         * doc/posix-functions/recvfrom.texi: Doc fix.
23787         * doc/posix-functions/send.texi: Doc fix.
23788         * doc/posix-functions/sendto.texi: Doc fix.
23789         * doc/posix-functions/setsockopt.texi: Doc fix.
23790         * doc/posix-functions/shutdown.texi: Doc fix.
23791         * doc/posix-functions/socket.texi: Doc fix.
23792
23793 2008-10-20  Bruno Haible  <bruno@clisp.org>
23794
23795         Take into account the role of SIGABRT_COMPAT on Windows 2008.
23796         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
23797         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
23798         as an alias for SIGABRT.
23799         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
23800         (sigaction): Map it to SIGABRT.
23801         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
23802
23803 2008-10-20  Bruno Haible  <bruno@clisp.org>
23804
23805         * lib/fts.c: Don't include lstat.h.
23806         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
23807
23808         Move the lstat() declaration to <sys/stat.h>.
23809         * lib/lstat.h: Remove file.
23810         * lib/sys_stat.in.h: Add special invocation convention.
23811         (lstat): New declaration.
23812         * lib/lstat.c (orig_lstat): New function.
23813         (rpl_lstat): Use orig_lstat instead of lstat.
23814         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
23815         AC_C_INLINE. Set REPLACE_LSTAT.
23816         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
23817         and REPLACE_LSTAT.
23818         * modules/lstat (Files): Remove lib/lstat.h.
23819         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
23820         (Include): Specify <sys/stat.h> instead of lstat.h.
23821         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
23822         REPLACE_LSTAT.
23823         * NEWS: Mention the change.
23824
23825 2008-10-20  Bruno Haible  <bruno@clisp.org>
23826
23827         * modules/posix_spawn-tests: New file.
23828         * tests/test-posix_spawn3.c: New file.
23829
23830 2008-10-20  Bruno Haible  <bruno@clisp.org>
23831
23832         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
23833         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
23834         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
23835         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
23836         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
23837
23838 2008-10-20  Bruno Haible  <bruno@clisp.org>
23839
23840         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
23841         of posix_spawn on AIX 5.3.
23842
23843 2008-10-20  Bruno Haible  <bruno@clisp.org>
23844
23845         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
23846
23847 2008-10-20  Bruno Haible  <bruno@clisp.org>
23848
23849         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
23850         of AC_LANG_PROGRAM.
23851
23852 2008-10-20  Simon Josefsson  <simon@josefsson.org>
23853
23854         * lib/netdb.in.h: Don't define GNU specific constants until they
23855         are supported or needed.  Reported by Bruno Haible
23856         <bruno@clisp.org>.
23857
23858 2008-10-20  Simon Josefsson  <simon@josefsson.org>
23859
23860         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
23861
23862 2008-10-20  Simon Josefsson  <simon@josefsson.org>
23863
23864         * lib/getaddrinfo.h: Remove file.
23865         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
23866         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
23867         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
23868         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
23869         * modules/netdb: Substitute GNULIB_GETADDRINFO.
23870         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
23871         * tests/test-getaddrinfo.c: Likewise.
23872         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
23873         * NEWS: Mention change.
23874
23875 2008-10-19  Bruno Haible  <bruno@clisp.org>
23876
23877         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
23878
23879 2008-10-19  Bruno Haible  <bruno@clisp.org>
23880
23881         * lib/wait-process.c: Include simply <sys/wait.h>.
23882         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
23883         WIFSTOPPED): Remove fallback definitions.
23884         * modules/wait-process (Depends-on): Add sys_wait.
23885
23886         New module 'sys_wait'.
23887         * modules/sys_wait: New file.
23888         * lib/sys_wait.in.h: New file, partially copied from
23889         lib/wait-process.c.
23890         * m4/sys_wait_h.m4: New file.
23891         * doc/posix-headers/sys_wait.texi: Mention the new module.
23892
23893 2008-10-19  Bruno Haible  <bruno@clisp.org>
23894
23895         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
23896
23897 2008-10-19  Bruno Haible  <bruno@clisp.org>
23898
23899         Assume that waitpid() fills an 'int' status, not a 'union wait'.
23900         * lib/wait-process.c (WAIT_T): Remove type.
23901         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
23902         (wait_subprocess): Update.
23903
23904 2008-10-19  Bruno Haible  <bruno@clisp.org>
23905
23906         New module 'atoll'.
23907         * modules/atoll: New file.
23908         * lib/stdlib.in.h (atoll): New declaration.
23909         * lib/atoll.c: New file, from glibc with modifications.
23910         * m4/atoll.m4: New file.
23911         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
23912         HAVE_ATOLL.
23913         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
23914         * doc/posix-functions/atoll.texi: Mention the new module.
23915
23916 2008-10-19  Bruno Haible  <bruno@clisp.org>
23917
23918         Add strtoull() declaration to <stdlib.h>.
23919         * lib/stdlib.in.h (strtoull): New declaration.
23920         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
23921         Set HAVE_STRTOULL.
23922         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
23923         HAVE_STRTOULL.
23924         * modules/strtoull (Depends-on): Add stdlib.
23925         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
23926         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
23927         HAVE_STRTOULL.
23928
23929 2008-10-19  Bruno Haible  <bruno@clisp.org>
23930
23931         Add strtoll() declaration to <stdlib.h>.
23932         * lib/stdlib.in.h (strtoll): New declaration.
23933         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
23934         Set HAVE_STRTOLL.
23935         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
23936         HAVE_STRTOLL.
23937         * modules/strtoll (Depends-on): Add stdlib.
23938         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
23939         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
23940
23941 2008-10-19  Bruno Haible  <bruno@clisp.org>
23942
23943         * modules/bcopy (Depends-on): Add strings.
23944         (Include): Specify <strings.h>.
23945
23946 2008-10-19  Bruno Haible  <bruno@clisp.org>
23947
23948         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
23949
23950 2008-10-19  Bruno Haible  <bruno@clisp.org>
23951
23952         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
23953         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
23954         mingw.
23955
23956 2008-10-19  Bruno Haible  <bruno@clisp.org>
23957
23958         * lib/atanl.c: Don't include isnanl.h.
23959         * lib/cosl.c: Likewise.
23960         * lib/ldexpl.c: Likewise.
23961         * lib/logl.c: Likewise.
23962         * lib/sinl.c: Likewise.
23963         * lib/sqrtl.c: Likewise.
23964         * lib/tanl.c: Likewise.
23965
23966         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
23967         * lib/isnanf.h: Remove file.
23968         * lib/isnand.h: Remove file.
23969         * lib/isnanl.h: Remove file.
23970         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
23971         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
23972         macros.
23973         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
23974         HAVE_ISNANF, don't define it as a C macro.
23975         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
23976         HAVE_ISNAND, don't define it as a C macro.
23977         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
23978         HAVE_ISNANL, don't define it as a C macro.
23979         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
23980         HAVE_ISNAN[FDL].
23981         * modules/isnanf (Files): Remove lib/isnanf.h.
23982         (Depends-on): Add math.
23983         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
23984         (Include): Specify <math.h> instead of isnanf.h.
23985         * modules/isnand (Files): Remove lib/isnand.h.
23986         (Depends-on): Add math.
23987         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
23988         (Include): Specify <math.h> instead of isnand.h.
23989         * modules/isnanl (Files): Remove lib/isnanl.h.
23990         (Depends-on): Add math.
23991         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
23992         (Include): Specify <math.h> instead of isnanl.h.
23993         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
23994         HAVE_ISNAN[FDL].
23995         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
23996         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
23997         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
23998         * NEWS: Mention the change.
23999
24000 2008-10-18  Bruno Haible  <bruno@clisp.org>
24001
24002         Add getusershell(), setusershell(), endusershell() declarations to
24003         <unistd.h>.
24004         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
24005         declarations.
24006         * lib/getusershell.c: Include unistd.h.
24007         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
24008         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
24009         HAVE_GETUSERSHELL.
24010         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
24011         and HAVE_GETUSERSHELL.
24012         * modules/getusershell (Depends-on): Add unistd, extensions.
24013         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
24014         (Include): Specify <unistd.h>.
24015         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
24016         HAVE_GETUSERSHELL.
24017
24018 2008-10-18  Bruno Haible  <bruno@clisp.org>
24019
24020         Add a getloadavg() declaration to <stdlib.h>.
24021         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
24022         getloadavg declaration.
24023         (getloadavg): New declaration.
24024         * lib/getloadavg.c: Include <stdlib.h> first.
24025         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
24026         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
24027         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
24028         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
24029         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
24030         * modules/getloadavg (Depends-on): Add stdlib, extensions.
24031         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
24032         (Include): Specify <stdlib.h>.
24033         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
24034         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
24035
24036 2008-10-18  Bruno Haible  <bruno@clisp.org>
24037
24038         * lib/dirchownmod.c: Don't include lchmod.h.
24039
24040         Move the lchmod() declaration to <sys/stat.h>.
24041         * lib/lchmod.h: Remove file.
24042         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
24043         (lchmod): New declaration, moved here from lib/lchown.h.
24044         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
24045         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
24046         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
24047         and HAVE_LCHMOD.
24048         * modules/lchmod (Files): Remove lib/lchmod.h.
24049         (Depends-on): Add sys_stat, extensions.
24050         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
24051         (Include): Specify <sys/stat.h> instead of lchmod.h.
24052         * modules/sys_stat (Depends-on): Add link-warning.
24053         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
24054         definition of GL_LINK_WARNING.
24055         * NEWS: Mention the change.
24056
24057 2008-10-18  Bruno Haible  <bruno@clisp.org>
24058
24059         * lib/fchdir.c: Don't include dirfd.h.
24060         * lib/fts.c: Likewise.
24061         * lib/getcwd.c: Likewise.
24062         * lib/glob.c: Likewise.
24063
24064         Move the dirfd() declaration to <dirent.h>.
24065         * lib/dirfd.h: Remove file.
24066         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
24067         (dirfd): New declaration.
24068         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
24069         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
24070         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
24071         HAVE_DECL_DIRFD.
24072         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
24073         HAVE_DECL_DIRFD.
24074         * modules/dirfd (Files): Remove lib/dirfd.h.
24075         (Depends-on): Add dirent, extensions.
24076         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
24077         (Include): Specify <dirent.h> instead of dirfd.h.
24078         * modules/dirent (Depends-on): Add link-warning.
24079         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
24080         definition of GL_LINK_WARNING.
24081         * NEWS: Mention the change.
24082
24083 2008-10-18  Bruno Haible  <bruno@clisp.org>
24084
24085         Move the euidaccess() declaration to <unistd.h>.
24086         * lib/euidaccess.h: Remove file.
24087         * lib/unistd.in.h (euidaccess): New declaration.
24088         * lib/euidaccess.c: Don't include euidaccess.h.
24089         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
24090         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
24091         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
24092         and HAVE_EUIDACCESS.
24093         * modules/euidaccess (Files): Remove lib/euidaccess.h.
24094         (Depends-on): Add unistd.
24095         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
24096         (Include): Specify <unistd.h> instead of euidaccess.h.
24097         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
24098         HAVE_EUIDACCESS.
24099         * NEWS: Mention the change.
24100
24101 2008-10-18  Bruno Haible  <bruno@clisp.org>
24102
24103         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
24104
24105         Move the getdomainname() declaration to <unistd.h>.
24106         * lib/getdomainname.h: Remove file.
24107         * lib/unistd.in.h (getdomainname): New declaration.
24108         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
24109         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
24110         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
24111         HAVE_GETDOMAINNAME.
24112         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24113         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
24114         * modules/getdomainname (Files): Remove lib/getdomainname.h.
24115         (Depends-on): Add unistd, extensions.
24116         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
24117         (Includes): Specify <unistd.h> instead of getdomainname.h.
24118         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
24119         HAVE_GETDOMAINNAME.
24120         * NEWS: Mention the change.
24121
24122 2008-10-18  Bruno Haible  <bruno@clisp.org>
24123
24124         * modules/dirent: New file.
24125         * m4/dirent_h.m4: New file.
24126         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
24127         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
24128         * modules/fchdir (Files): Remove lib/dirent.in.h.
24129         (Depends-on): Add dirent.
24130         (Makefile.am): Move rules to modules/dirent.
24131         * doc/posix-headers/dirent.texi: Mention the new module.
24132
24133 2008-10-18  Bruno Haible  <bruno@clisp.org>
24134
24135         Avoid -Wunused-parameter warnings in public gnulib header files.
24136         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
24137         macro.
24138         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
24139
24140 2008-10-18  Bruno Haible  <bruno@clisp.org>
24141
24142         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
24143         * doc/glibc-functions/error.texi: Mention the module 'error'.
24144         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
24145         * doc/glibc-functions/getdomainname.texi: Mention the module
24146         'getdomainname'.
24147         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
24148         * doc/glibc-functions/getpagesize.texi: Mention the module
24149         'getpagesize'.
24150         * doc/glibc-functions/getusershell.texi: Mention the module
24151         'getusershell'.
24152         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
24153         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
24154         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
24155         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
24156         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
24157         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
24158         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
24159         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
24160         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
24161         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
24162         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
24163         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
24164         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
24165         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
24166
24167 2008-10-17  Bruno Haible  <bruno@clisp.org>
24168
24169         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
24170         HP-UX and IRIX, use -0.0L.
24171         * tests/test-ceill.c (minus_zero): Likewise.
24172         * tests/test-floorl.c (minus_zero): Likewise.
24173         * tests/test-frexpl.c (minus_zero): Likewise.
24174         * tests/test-isnan.c (minus_zerol): Likewise.
24175         * tests/test-isnanl.h (minus_zero): Likewise.
24176         * tests/test-ldexpl.c (minus_zero): Likewise.
24177         * tests/test-roundl.c (minus_zero): Likewise.
24178         * tests/test-signbit.c (minus_zerol): Likewise.
24179         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
24180         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
24181         * tests/test-truncl.c (minus_zero): Likewise.
24182         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
24183         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
24184         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
24185         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
24186
24187 2008-10-17  Bruno Haible  <bruno@clisp.org>
24188
24189         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
24190         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
24191         that it gets activated only for gcc >= 3.0.
24192         * lib/dirent.in.h: Likewise.
24193         * lib/errno.in.h: Likewise.
24194         * lib/fcntl.in.h: Likewise.
24195         * lib/float.in.h: Likewise.
24196         * lib/iconv.in.h: Likewise.
24197         * lib/inttypes.in.h: Likewise.
24198         * lib/locale.in.h: Likewise.
24199         * lib/math.in.h: Likewise.
24200         * lib/netdb.in.h: Likewise.
24201         * lib/netinet_in.in.h: Likewise.
24202         * lib/search.in.h: Likewise.
24203         * lib/signal.in.h: Likewise.
24204         * lib/spawn.in.h: Likewise.
24205         * lib/stdarg.in.h: Likewise.
24206         * lib/stdint.in.h: Likewise.
24207         * lib/stdio.in.h: Likewise.
24208         * lib/stdlib.in.h: Likewise.
24209         * lib/string.in.h: Likewise.
24210         * lib/strings.in.h: Likewise.
24211         * lib/sys_file.in.h: Likewise.
24212         * lib/sys_ioctl.in.h: Likewise.
24213         * lib/sys_select.in.h: Likewise.
24214         * lib/sys_socket.in.h: Likewise.
24215         * lib/sys_stat.in.h: Likewise.
24216         * lib/sys_time.in.h: Likewise.
24217         * lib/sysexits.in.h: Likewise.
24218         * lib/time.in.h: Likewise.
24219         * lib/unistd.in.h: Likewise.
24220         * lib/wchar.in.h: Likewise.
24221         * lib/wctype.in.h: Likewise.
24222         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
24223
24224 2008-10-17  Jim Meyering  <meyering@redhat.com>
24225
24226         ignore-value: don't depend on inline module
24227         * modules/ignore-value (Depends-on): Remove 'inline'.
24228         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
24229         Suggestion from Bruno Haible.
24230
24231 2008-10-17  Bruno Haible  <bruno@clisp.org>
24232
24233         New implementation of condition variables for Win32.
24234         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
24235         (gl_linked_waitqueue_t): New type.
24236         (gl_cond_t): Use it.
24237         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
24238         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
24239         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
24240         (glthread_cond_init_func, glthread_cond_wait_func,
24241         glthread_cond_timedwait_func, glthread_cond_signal_func,
24242         glthread_cond_broadcast_func, glthread_cond_destroy_func):
24243         Reimplemented on the basis of gl_linked_waitqueue_t.
24244         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
24245         gl_waitqueue_t.
24246         (gl_rwlock_t): Update.
24247         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
24248
24249 2008-10-17  Simon Josefsson  <simon@josefsson.org>
24250
24251         * modules/recvfrom (Depends-on): Add dependency on getpeername.
24252         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
24253
24254 2008-10-17  Jim Meyering  <meyering@redhat.com>
24255
24256         ignore-value: new module
24257         * modules/ignore-value: New file.
24258         * lib/ignore-value.h: New file.
24259         * MODULES.html.sh (Compiler warning management): New section,
24260         just for this module.  More to come.
24261
24262 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
24263
24264         open-safer.c: avoid 'signed and unsigned in conditional...' warning
24265         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
24266         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
24267
24268 2008-10-16  Jim Meyering  <meyering@redhat.com>
24269
24270         openat-die.c: avoid 'no previous prototype' warning
24271         * lib/openat-die.c: Include "openat.h".
24272         Reported by Reuben Thomas <rrt@sc3d.org>.
24273
24274 2008-10-16  Simon Josefsson  <simon@josefsson.org>
24275
24276         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
24277         * lib/netdb.in.h: Fix typo.
24278         Reported by Bruno Haible  <bruno@clisp.org>
24279
24280         * lib/netdb.in.h: Include sys/socket.h for platforms without
24281         netdb.h, to get structures like hostent on MinGW.
24282         * modules/netdb (Depends-on): Add sys_socket.
24283
24284 2008-10-15  Simon Josefsson  <simon@josefsson.org>
24285
24286         * modules/netdb, modules/netdb-tests: New file.
24287         * m4/netdb_h.m4: New file.
24288         * lib/netdb.in.h: Add, currently just an empty file pending
24289         definitions.
24290         * tests/test-netdb.c: New file.
24291         * doc/posix-headers/netdb.texi: Mention that we replace it if
24292         needed.
24293         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
24294         netdb.
24295
24296 2008-10-15  Simon Josefsson  <simon@josefsson.org>
24297
24298         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
24299         with code.
24300
24301 2008-10-13  Bruno Haible  <bruno@clisp.org>
24302
24303         * lib/glthread/cond.c (glthread_cond_wait_func,
24304         glthread_cond_timedwait_func): Add a comment.
24305
24306 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
24307
24308         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
24309         * tests/test-select.c: Likewise,
24310
24311 2008-10-13  Bruno Haible  <bruno@clisp.org>
24312
24313         * lib/glthread/cond.c (glthread_cond_wait_func,
24314         glthread_cond_timedwait_func): Fix variable name.
24315         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
24316
24317 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
24318
24319         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
24320         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
24321         struct sockaddr.sa_len.
24322         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
24323
24324 2008-10-13  Simon Josefsson  <simon@josefsson.org>
24325
24326         * build-aux/pmccabe2html: Add css and css_url parameters.
24327
24328 2008-10-12  Bruno Haible  <bruno@clisp.org>
24329
24330         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
24331         calling aclx_get.
24332         Reported by Rainer Tammer <tammer@tammer.net>.
24333
24334 2008-10-12  Bruno Haible  <bruno@clisp.org>
24335
24336         Use msvcrt aware primitives for creation/termination of Win32 threads.
24337         * lib/glthread/thread.c: Include <process.h>.
24338         (glthread_create_func): Use _beginthreadex instead of CreateThread.
24339         (wrapper_func): Update signature.
24340         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
24341
24342 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
24343             Bruno Haible  <bruno@clisp.org>
24344
24345         Provide a Win32 implementation of the 'cond' module.
24346         * lib/glthread/cond.h [USE_WIN32]: New implementation.
24347         * lib/glthread/cond.c (glthread_cond_init_func,
24348         glthread_cond_wait_func, glthread_cond_timedwait_func,
24349         glthread_cond_signal_func, glthread_cond_broadcast_func,
24350         glthread_cond_destroy_func) [USE_WIN32]: New functions.
24351         * modules/cond (Dependencies): Add gettimeofday.
24352
24353 2008-10-11  Bruno Haible  <bruno@clisp.org>
24354
24355         Make sleep work on older versions of mingw.
24356         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
24357         only whether it exists.
24358         * doc/posix-functions/sleep.texi: Mention the problem with older
24359         versions of mingw.
24360
24361 2008-10-11  Bruno Haible  <bruno@clisp.org>
24362
24363         New module 'shutdown'.
24364         * modules/shutdown: New file.
24365         * lib/sys_socket.in.h (shutdown): New declaration.
24366         * lib/winsock.c (shutdown): New function.
24367         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
24368         GNULIB_SHUTDOWN.
24369         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
24370         * doc/posix-functions/shutdown.texi: Document the new module.
24371
24372 2008-10-11  Jim Meyering  <meyering@redhat.com>
24373
24374         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
24375
24376 2008-10-11  Bruno Haible  <bruno@clisp.org>
24377
24378         New module 'fclose'.
24379         * modules/fclose: New file.
24380         * lib/stdio.in.h (fclose): New declaration.
24381         * lib/fclose.c: New file.
24382         * m4/fclose.m4: New file.
24383         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
24384         REPLACE_FCLOSE.
24385         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
24386         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
24387         REPLACE_FCLOSE.
24388         * modules/close (Depends-on): fclose.
24389         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
24390
24391 2008-10-11  Bruno Haible  <bruno@clisp.org>
24392
24393         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
24394         set errno and don't call _close.
24395
24396 2008-10-10  Bruno Haible  <bruno@clisp.org>
24397
24398         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
24399         ACL, not afterwards. Fixes test failure on Cygwin.
24400
24401 2008-10-09  Ben Pfaff  <blp@gnu.org>
24402
24403         * build-aux/announce-gen: Fix gnulib version related part of usage
24404         message.  Die with a useful error message if no tarballs are
24405         found.
24406
24407 2008-10-10  Jim Meyering  <meyering@redhat.com>
24408
24409         bootstrap: use git's --depth=N option only if it's supported
24410         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
24411         recognize the --depth option.  Reported by Pádraig Brady.
24412
24413 2008-10-09  Bruno Haible  <bruno@clisp.org>
24414
24415         New module 'ioctl'.
24416         * modules/ioctl: New file.
24417         * lib/sys_socket.in.h (ioctl): Remove declaration.
24418         * lib/winsock.c: Include <sys/ioctl.h>.
24419         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
24420         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
24421         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
24422         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
24423         * doc/posix-functions/ioctl.texi: Mention the new module.
24424
24425 2008-10-09  Bruno Haible  <bruno@clisp.org>
24426
24427         New module 'sys_ioctl'.
24428         * lib/sys_ioctl.in.h: New file.
24429         * m4/sys_ioctl_h.m4: New file.
24430         * modules/sys_ioctl: New file.
24431         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
24432
24433 2008-10-09  Bruno Haible  <bruno@clisp.org>
24434
24435         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
24436         * lib/winsock.c: Include <stdarg.h>.
24437         (rpl_ioctl): Change to second argument 'int' and then varargs.
24438
24439 2008-10-09  Bruno Haible  <bruno@clisp.org>
24440
24441         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
24442         when the sys_socket module is present and the system has <winsock2.h>.
24443
24444 2008-10-09  Bruno Haible  <bruno@clisp.org>
24445
24446         * doc/posix-functions/close.texi: Mention module 'close' instead of
24447         module 'sys_socket'.
24448
24449 2008-10-09  Bruno Haible  <bruno@clisp.org>
24450
24451         * doc/glibc-headers/sys_ioctl.texi: New file.
24452         * doc/gnulib.texi: Include it.
24453
24454 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
24455             Bruno Haible  <bruno@clisp.org>
24456
24457         Combine the two replacements of 'close'.
24458         * lib/sys_socket.in.h (close): Define to a reminder to include
24459         <unistd.h>.
24460         (_gl_close_fd_maybe_socket): New declaration.
24461         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
24462         * lib/winsock.c (close): Remove undefinition.
24463         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
24464         needed for the gnulib module 'close'.
24465         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
24466         define to an error symbol or to a warning, if suitable.
24467         * lib/close.c: Include <sys/socket.h>.
24468         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
24469         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
24470         UNISTD_H_HAVE_WINSOCK2_H.
24471         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
24472         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24473         UNISTD_H_HAVE_WINSOCK2_H.
24474         * modules/sys_socket (Files): Add m4/unistd_h.m4.
24475         (configure.ac): Set a module indicator.
24476         (Makefile.am): Substitute GNULIB_CLOSE.
24477         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
24478         * modules/poll-tests (Depends-on): Add close.
24479         * modules/select-tests (Depends-on): Likewise.
24480
24481 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
24482             Bruno Haible  <bruno@clisp.org>
24483
24484         New module 'close'.
24485         * modules/close: New file.
24486         * lib/unistd.in.h (close): Move declaration out of the
24487         FCHDIR_REPLACEMENT scope.
24488         (_gl_unregister_fd): New declaration.
24489         * lib/close.c: New file.
24490         * lib/fchdir.c (rpl_close): Remove function.
24491         * m4/close.m4: New file.
24492         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
24493         close.
24494         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
24495         REPLACE_CLOSE.
24496         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
24497         REPLACE_CLOSE.
24498         * modules/fchdir (Depends-on): Add close.
24499
24500 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
24501             Bruno Haible  <bruno@clisp.org>
24502
24503         * lib/fcntl.in.h (open): Simplify conditionals.
24504         (_gl_register_fd): New declaration.
24505         * lib/fchdir.c (rpl_open): Remove function.
24506         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
24507         also.
24508         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
24509         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
24510         open.
24511
24512 2008-10-09  Jim Meyering  <meyering@redhat.com>
24513
24514         GNUmakefile: use the more name-space-friendly "_version"
24515         * top/GNUmakefile (_dummy): Update.
24516         (_version): Rename from "version".
24517
24518 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
24519             Bruno Haible  <bruno@clisp.org>
24520
24521         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
24522         rpl_close.
24523         (_gl_register_fd): New function, extracted from rpl_open.
24524         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
24525         (rpl_open, rpl_opendir): Use _gl_register_fd.
24526
24527 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
24528
24529         Fix organization of 'open' replacement.
24530         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
24531         (gl_FUNC_OPEN): Use it.
24532         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
24533
24534 2008-10-08  Bruno Haible  <bruno@clisp.org>
24535
24536         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
24537
24538 2008-10-08  Simon Josefsson  <simon@josefsson.org>
24539
24540         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
24541         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
24542         listen).
24543
24544 2008-10-08  Eric Blake  <ebb9@byu.net>
24545
24546         GNUmakefile: add 'make version' target
24547         * top/GNUmakefile (_curr-ver): Split version update rules...
24548         (version): ...into a target.
24549
24550 2008-10-07  Bruno Haible  <bruno@clisp.org>
24551
24552         Use a more portable replacement expression for -0.0L.
24553         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
24554         instead of -0.0L. Fix m4 quotation.
24555
24556         * tests/test-signbit.c: Include <float.h>.
24557         (minus_zero): New variable.
24558         (test_signbitl): Use minus_zero instead of -zero.
24559         * modules/signbit-tests (Depends-on): Add float.
24560
24561         * tests/test-ceill.c: Include <float.h>.
24562         (zero): Remove variable.
24563         (minus_zero): New variable.
24564         (main): Use minus_zero instead of -zero.
24565         * modules/ceill-tests (Depends-on): Add float.
24566
24567         * tests/test-floorl.c: Include <float.h>.
24568         (zero): Remove variable.
24569         (minus_zero): New variable.
24570         (main): Use minus_zero instead of -zero.
24571         * modules/floorl-tests (Depends-on): Add float.
24572
24573         * tests/test-roundl.c: Include <float.h>.
24574         (zero): Remove variable.
24575         (minus_zero): New variable.
24576         (main): Use minus_zero instead of -zero.
24577         * modules/roundl-tests (Depends-on): Add float.
24578
24579         * tests/test-truncl.c: Include <float.h>.
24580         (zero): Remove variable.
24581         (minus_zero): New variable.
24582         (main): Use minus_zero instead of -zero.
24583         * modules/truncl-tests (Depends-on): Add float.
24584
24585         * tests/test-frexpl.c (zero): Remove variable.
24586         (minus_zero): New variable.
24587         (main): Use minus_zero instead of -zero.
24588         * modules/frexpl-tests (Depends-on): Add float.
24589
24590         * tests/test-isnan.c (zerol): Remove variable.
24591         (minus_zerol): New variable.
24592         (test_long_double): Use minus_zerol instead of -zerol.
24593         * modules/isnan-tests (Depends-on): Add float.
24594
24595         * tests/test-isnanl.h (zero): Remove variable.
24596         (minus_zero): New variable.
24597         (main): Use minus_zero instead of -zero.
24598         * modules/isnanl-nolibm-tests (Depends-on): Add float.
24599         * modules/isnanl-tests (Depends-on): Add float.
24600
24601         * tests/test-ldexpl.c (zero): Remove variable.
24602         (minus_zero): New variable.
24603         (main): Use minus_zero instead of -zero.
24604         * modules/ldexpl-tests (Depends-on): Add float.
24605
24606         * tests/test-snprintf-posix.h (zerol): Remove variable.
24607         (minus_zerol): New variable.
24608         (test_function): Use minus_zerol instead of -zerol.
24609         * modules/snprintf-posix-tests (Depends-on): Add float.
24610         * modules/vsnprintf-posix-tests (Depends-on): Add float.
24611
24612         * tests/test-sprintf-posix.h (zerol): Remove variable.
24613         (minus_zerol): New variable.
24614         (test_function): Use minus_zerol instead of -zerol.
24615         * modules/sprintf-posix-tests (Depends-on): Add float.
24616         * modules/vsprintf-posix-tests (Depends-on): Add float.
24617
24618         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
24619         (minus_zerol): New variable.
24620         (test_function): Use minus_zerol instead of -zerol.
24621         * modules/vasnprintf-posix-tests (Depends-on): Add float.
24622
24623         * tests/test-vasprintf-posix.c (zerol): Remove variable.
24624         (minus_zerol): New variable.
24625         (test_function): Use minus_zerol instead of -zerol.
24626         * modules/vasprintf-posix-tests (Depends-on): Add float.
24627
24628 2008-10-07  Simon Josefsson  <simon@josefsson.org>
24629
24630         * MODULES.html.sh (Support for building documentation): Mention
24631         pmccabe2html.  Sort entries.
24632
24633         Add pmccabe2html module, from gnupdf.
24634         * build-aux/pmccabe.css: New file.
24635         * build-aux/pmccabe2html: New file.
24636         * m4/pmccabe2html.m4: New file.
24637         * modules/pmccabe2html: New file.
24638
24639 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
24640
24641         flock: new module
24642         * MODULES.html.sh: Add to list of modules.
24643         * lib/flock.c: flock implementation for Windows and Unix systems
24644         which have fcntl.
24645         * doc/glibc-functions/flock.texi: Update documentation.
24646         * lib/sys_file.in.h: <sys/file.h> header file.
24647         * m4/flock.m4: M4 macros.
24648         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
24649         * modules/flock: flock module.
24650         * modules/flock-tests: flock tests module.
24651         * modules/sys_file: sys/file.h module.
24652         * tests/test-flock.c: test suite for flock.
24653
24654 2008-10-06  Jim Meyering  <meyering@redhat.com>
24655
24656         bootstrap: check for LT_INIT more portably still ;-)
24657         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
24658         Spotted by Bruno Haible.
24659
24660 2008-10-06  Eric Blake  <ebb9@byu.net>
24661
24662         test-signbit: avoid tripping Irix cc bug on -0.0L
24663         * tests/test-signbit.c (minus_zerol): Delete, and replace with
24664         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
24665         entire testsuite consistent and avoids an Irix 6.2 bug.
24666
24667 2008-10-05  Bruno Haible  <bruno@clisp.org>
24668             Jim Meyering  <jim@meyering.net>
24669
24670         Add an option for ignoring EPIPE during close_stdout.
24671         * lib/closeout.h: Include <stdbool.h>.
24672         (close_stdout_set_ignore_EPIPE): New declaration.
24673         * lib/closeout.c: Include <stdbool.h>.
24674         (ignore_EPIPE): New variable.
24675         (close_stdout_set_ignore_EPIPE): New function.
24676         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
24677         * lib/close-stream.c (close_stream): Mention the possible EPIPE
24678         failure.
24679         * modules/closeout (Depends-on): Add stdbool.
24680
24681 2008-10-05  Bruno Haible  <bruno@clisp.org>
24682
24683         * modules/accept: New file.
24684         * modules/bind: New file.
24685         * modules/connect: New file.
24686         * modules/getpeername: New file.
24687         * modules/getsockname: New file.
24688         * modules/getsockopt: New file.
24689         * modules/listen: New file.
24690         * modules/recv: New file.
24691         * modules/recvfrom: New file.
24692         * modules/send: New file.
24693         * modules/sendto: New file.
24694         * modules/setsockopt: New file.
24695         * modules/socket: New file.
24696         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
24697         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
24698         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
24699         the particular module is requested. Add a link warning when the
24700         particular module is not requested.
24701         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
24702         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
24703         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
24704         the particular module is requested.
24705         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
24706         gl_SYS_SOCKET_H_DEFAULTS): New macros.
24707         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
24708         * modules/sys_socket (Depends-on): Add link-warning.
24709         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
24710         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
24711         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
24712         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
24713         GL_LINK_WARNING.
24714         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
24715         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
24716         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
24717         * doc/posix-functions/getpeername.texi: Mention the new module
24718         'getpeername'.
24719         * doc/posix-functions/getsockname.texi: Mention the new module
24720         'getsockname'.
24721         * doc/posix-functions/getsockopt.texi: Mention the new module
24722         'getsockopt'.
24723         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
24724         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
24725         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
24726         * doc/posix-functions/send.texi: Mention the new module 'send'.
24727         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
24728         * doc/posix-functions/setsockopt.texi: Mention the new module
24729         'setsockopt'.
24730         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
24731         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
24732         listen, connect, accept.
24733         * modules/select-tests (Depends-on): Likewise.
24734
24735 2008-10-05  Bruno Haible  <bruno@clisp.org>
24736
24737         * lib/winsock.c (strerror): Remove unused #undef.
24738         (rpl_close): Remove unused local variable.
24739
24740         * modules/sys_socket (Depends-on); Add errno.
24741
24742 2008-10-05  Bruno Haible  <bruno@clisp.org>
24743
24744         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
24745         (select): Add a link warning when the 'select' module is not used.
24746         * modules/sys_select (Depends-on): Add link-warning.
24747         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
24748         Suggested by Paolo Bonzini.
24749
24750 2008-10-05  Jim Meyering  <meyering@redhat.com>
24751
24752         bootstrap: check for LT_INIT more portably
24753         * build-aux/bootstrap: Avoid using grep -E, since it's not
24754         portable enough.  Suggestion from Bruno Haible.
24755
24756 2008-10-05  Bruno Haible  <bruno@clisp.org>
24757
24758         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
24759         as being fixed by gnulib.
24760
24761 2008-10-05  Bruno Haible  <bruno@clisp.org>
24762
24763         * modules/select-tests: New file, mostly copied from
24764         modules/sys_select-tests.
24765         * tests/test-select.c: New file, mostly copied from
24766         tests/test-sys_select.c.
24767         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
24768         * modules/sys_select-tests (Depends-on): Remove all dependencies.
24769         (Makefile.am): Remove test_sys_select_LDADD.
24770
24771         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
24772         to an undefined symbol, for an error message.
24773         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
24774         (gl_SYS_SELECT_H_DEFAULTS): New macro.
24775         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
24776         winsock-select.c here.
24777         * modules/sys_select (Files): Remove lib/winsock-select.c.
24778         (Depends-on): Remove alloca.
24779         (Makefile.am): Substitute GNULIB_SELECT.
24780         * modules/select: New file.
24781         * doc/posix-functions/select.texi: Update.
24782
24783 2008-10-05  Bruno Haible  <bruno@clisp.org>
24784
24785         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
24786         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
24787         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
24788         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
24789         getdtablesize.
24790         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
24791         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
24792
24793 2008-10-05  Bruno Haible  <bruno@clisp.org>
24794
24795         * modules/getdtablesize-tests: New file.
24796         * tests/test-getdtablesize.c: New file.
24797
24798         New module 'getdtablesize'.
24799         * lib/unistd.in.h (getdtablesize): New declaration.
24800         * lib/getdtablesize.c: New file.
24801         * m4/getdtablesize.m4: New file.
24802         * modules/getdtablesize: New file.
24803         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24804         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
24805         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
24806         HAVE_GETDTABLESIZE.
24807         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
24808
24809 2008-10-05  Bruno Haible  <bruno@clisp.org>
24810
24811         * modules/sched (Makefile.am): Fix typo.
24812         Reported by Simon Josefsson.
24813
24814 2008-10-05  Jim Meyering  <meyering@redhat.com>
24815
24816         bootstrap: check for LT_INIT, too
24817         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
24818         are deprecated.  Suggestion from Ralf Wildenhues.
24819
24820 2008-10-05  Bruno Haible  <bruno@clisp.org>
24821
24822         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
24823         overriding them by ours.
24824         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
24825
24826 2008-10-05  Jim Meyering  <meyering@redhat.com>
24827
24828         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
24829         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
24830         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
24831
24832 2008-10-04  Bruno Haible  <bruno@clisp.org>
24833
24834         * modules/dup2 (License): Change to LGPLv2+.
24835         * modules/sleep (License): Likewise.
24836         * modules/perror (License): Likewise.
24837         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
24838         Blake.
24839         * modules/signal (License): Likewise.
24840         * modules/sigprocmask (License): Likewise.
24841         * modules/raise (License): Change to LGPLv2+, with approval by Jim
24842         Meyering.
24843
24844 2008-10-04  Bruno Haible  <bruno@clisp.org>
24845
24846         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
24847         Reported by Rainer Tammer <tammer@tammer.net>.
24848
24849 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
24850             Bruno Haible  <bruno@clisp.org>
24851
24852         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
24853         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
24854         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
24855
24856 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
24857
24858         filevercmp: new module
24859         * lib/filevercmp.h: New function filevercmp comparing version strings.
24860         * lib/filevercmp.c: Implementation of filevercmp function.
24861         * modules/filevercmp: Module metadata.
24862         * tests/test-filevercmp.c: Unit test for new module.
24863         * modules/filevercmp-tests: Unit test metadata.
24864         * MODULES.html.sh: Add filevercmp module.
24865
24866 2008-10-03  Bruno Haible  <bruno@clisp.org>
24867
24868         * lib/c-ctype.h: Add comment.
24869         Reported by Jim Meyering.
24870
24871 2008-10-02  Bruno Haible  <bruno@clisp.org>
24872
24873         * modules/posix_spawn-internal (Depends-on): Add 'open'.
24874
24875 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
24876
24877         * build-aux/bootstrap: Allow renaming bootstrap, and change the
24878         name of bootstrap.conf accordingly.
24879
24880 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
24881
24882         * build-aux/bootstrap: Install git-merge-changelog configuration
24883         items into .gitconfig if needed.
24884
24885 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
24886
24887         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
24888         git repository, and initialize/update it accordingly.
24889
24890 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
24891
24892         * modules/fsync-tests: New file.
24893         * tests/test-fsync.c: New file.
24894
24895         New module 'fsync'.
24896         * lib/fsync.c: New file.
24897         * m4/fsync.m4: New file.
24898         * modules/fsync: New file.
24899         * lib/unistd.in.h (fsync): New declaration.
24900         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
24901         GNULIB_FSYNC and HAVE_FSYNC.
24902         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
24903         * MODULES.html.sh (posix_functions): Add fsync.
24904         * doc/posix-functions/fsync.texi: Mention the new module.
24905
24906 2008-10-02  Jim Meyering  <meyering@redhat.com>
24907
24908         fts.c: sync with similar code from coreutils' remove.c
24909         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
24910         Guard also with "#if defined __linux__", since for now at least,
24911         this code is Linux-kernel-specific.
24912
24913 2008-10-02  Jim Meyering  <meyering@redhat.com>
24914
24915         fts: bug fixes
24916         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
24917         Include <sys/vfs.h>, not <sys/statfs.h>.
24918
24919         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
24920         Include <sys/vfs.h>, not <sys/statfs.h>.
24921
24922 2008-10-01  Bruno Haible  <bruno@clisp.org>
24923
24924         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
24925         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
24926         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
24927         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
24928         * doc/posix-functions/posix_spawnp.texi: Likewise.
24929         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
24930         whether posix_spawn actually works.
24931         * m4/pipe.m4 (gl_PIPE): Likewise.
24932         * modules/execute (Files): Add m4/posix_spawn.m4.
24933         * modules/pipe (Files): Add m4/posix_spawn.m4.
24934         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
24935
24936 2008-10-01  Jim Meyering  <meyering@redhat.com>
24937
24938         remove trailing spaces
24939         * NEWS: Likewise.
24940         * lib/poll.c (poll): Likewise.
24941         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
24942         * lib/winsock.c (rpl_close): Likewise.
24943         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
24944         * modules/yield: Likewise.
24945         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
24946         * tests/test-sys_select.c (connect_to_socket): Likewise.
24947
24948         fts.c: adjust a new interface to be more generally useful
24949         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
24950         (fts_build): Adjust caller.
24951
24952 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24953
24954         * modules/cond-tests: New file.
24955         * tests/test-cond.c: New file.
24956
24957 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24958             Bruno Haible  <bruno@clisp.org>
24959
24960         * modules/cond (Dependencies): Add errno, time.
24961         * lib/glthread/cond.h: Include <time.h>.
24962         (gl_cond_define, gl_cond_define_initialized): Use the same definition
24963         across platforms.
24964
24965 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24966             Bruno Haible  <bruno@clisp.org>
24967
24968         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
24969
24970 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24971             Bruno Haible  <bruno@clisp.org>
24972
24973         * modules/tls-tests (Depends-on): Add thread, yield.
24974         (configure.ac): Remove all checks.
24975         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
24976         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
24977         gl_thread_self): Remove definitions. Include glthread/thread.h and
24978         glthread/yield.h instead.
24979         (test_tls): Pass an additional NULL argument to gl_thread_join.
24980
24981 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24982             Bruno Haible  <bruno@clisp.org>
24983
24984         * modules/lock-tests (Depends-on): Add thread, yield.
24985         (configure.ac): Remove all checks.
24986         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
24987         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
24988         gl_thread_self): Remove definitions. Include glthread/thread.h and
24989         glthread/yield.h instead.
24990         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
24991         additional NULL argument to gl_thread_join.
24992
24993 2008-09-30  Bruno Haible  <bruno@clisp.org>
24994
24995         Fix the Win32 implementation of the 'thread' module.
24996         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
24997         pointer type.
24998         (gl_thread_self): Invoke gl_thread_self_func.
24999         (gl_thread_self_func): New declaration.
25000         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
25001         (do_init_self_key, init_self_key): New functions.
25002         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
25003         Remove some fields.
25004         (running_threads, running_lock): Remove variables.
25005         (get_current_thread_handle): New function.
25006         (gl_thread_self_func, wrapper_func, glthread_create_func,
25007         glthread_join_func, gl_thread_exit_func): Largely rewritten and
25008         simplified.
25009
25010 2008-09-30  Bruno Haible  <bruno@clisp.org>
25011
25012         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
25013         files.
25014
25015 2008-09-30  Jim Meyering  <meyering@redhat.com>
25016
25017         fts.m4: correct the test for statfs.f_type
25018         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
25019         when checking for statfs.f_type.
25020
25021 2008-09-15  Simon Josefsson  <simon@josefsson.org>
25022
25023         tests: avoid some compiler warnings
25024         * tests/test-memchr.c (main): Pass NULL indirectly.
25025         * tests/test-getdate.c (main): Remove unused variable 'ret'.
25026
25027 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
25028
25029         getdate.y: disallow countable dayshifts like "4 yesterday ago"
25030         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
25031         exactly specified dayshifts.
25032         (dayshift): New rule.
25033         (rel): Add dayshift.
25034         (relative_time_table) [tomorrow, yesterday, today, now]:
25035         Use tDAY_SHIFT in place of tDAY_UNIT.
25036         * tests/test-getdate.c: Add tests for now-disallowed countable
25037         dayshifts, e.g., "4 yesterday ago".
25038
25039 2008-09-29  Bruno Haible  <bruno@clisp.org>
25040
25041         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
25042         * tests/test-posix_spawn1.in.sh: Renamed from
25043         tests/test-posix_spawn.in.sh.
25044         * tests/test-posix_spawn2.c: New file.
25045         * tests/test-posix_spawn2.in.sh: New file.
25046         * modules/posix_spawnp-tests (Files): Update.
25047         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
25048
25049 2008-09-29  Bruno Haible  <bruno@clisp.org>
25050
25051         Propagate effects of putenv/setenv/unsetenv to child processes.
25052         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
25053         * lib/pipe.c (create_pipe): Likewise.
25054
25055 2008-09-29  Bruno Haible  <bruno@clisp.org>
25056
25057         Enable use of shell scripts as executables in mingw.
25058         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
25059         run the program as a shell script.
25060         * lib/pipe.c (create_pipe): Likewise.
25061         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
25062         resulting array.
25063
25064 2008-09-29  Eric Blake  <ebb9@byu.net>
25065
25066         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
25067
25068 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
25069
25070         * doc/posix-functions/accept.texi: Update mingw problems.
25071         * doc/posix-functions/bind.texi: Update mingw problems.
25072         * doc/posix-functions/close.texi: Update mingw problems.
25073         * doc/posix-functions/connect.texi: Update mingw problems.
25074         * doc/posix-functions/getpeername.texi: Update mingw problems.
25075         * doc/posix-functions/getsockname.texi: Update mingw problems.
25076         * doc/posix-functions/getsockopt.texi: Update mingw problems.
25077         * doc/posix-functions/ioctl.texi: Update mingw problems.
25078         * doc/posix-functions/listen.texi: Update mingw problems.
25079         * doc/posix-functions/recv.texi: Update mingw problems.
25080         * doc/posix-functions/recvfrom.texi: Update mingw problems.
25081         * doc/posix-functions/select.texi: Update mingw problems.
25082         * doc/posix-functions/send.texi: Update mingw problems.
25083         * doc/posix-functions/sendto.texi: Update mingw problems.
25084         * doc/posix-functions/setsockopt.texi: Update mingw problems.
25085         * doc/posix-functions/socket.texi: Update mingw problems.
25086
25087 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
25088             Bruno Haible  <bruno@clisp.org>
25089
25090         * lib/sys_select.in.h: Include sys/time.h.
25091         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
25092         * modules/sys_select: Depend on sys_time.
25093         * tests/test-sys_select.c: Test that sys/select.h defines struct
25094         timeval fully.
25095
25096 2008-09-29  Bruno Haible  <bruno@clisp.org>
25097
25098         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
25099         * lib/sys_select.in.h: Likewise.
25100
25101 2008-09-29  Bruno Haible  <bruno@clisp.org>
25102
25103         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
25104
25105 2008-09-29  Bruno Haible  <bruno@clisp.org>
25106
25107         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
25108         Set LIBSOCKET instead of augmenting LIBS.
25109         * modules/sockets (Link): New section.
25110         * modules/sockets-tests (test_sockets_LDADD): New variable.
25111         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
25112         * modules/poll-tests (test_poll_LDADD): New variable.
25113         * NEWS: Document the change.
25114
25115 2008-09-29  Bruno Haible  <bruno@clisp.org>
25116
25117         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
25118         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
25119         ARPA_INET_H directly.
25120         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
25121
25122 2008-09-28  Bruno Haible  <bruno@clisp.org>
25123
25124         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
25125         from gl_HEADER_SYS_SOCKET.
25126         (gl_HEADER_SYS_SOCKET): Invoke it.
25127         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25128
25129 2008-09-28  Bruno Haible  <bruno@clisp.org>
25130
25131         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
25132         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
25133         Needed on OSF/1 4.0.
25134
25135 2008-09-28  Bruno Haible  <bruno@clisp.org>
25136
25137         Override open more carefully.
25138         * lib/open.c (orig_open): New function.
25139         (rpl_open): Use orig_open instead of open.
25140         * lib/fcntl.in.h: Add special invocation convention.
25141         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
25142         (gl_FUNC_OPEN): Invoke it.
25143
25144         Override freopen more carefully.
25145         * lib/freopen.c (orig_freopen): New function.
25146         (rpl_freopen): Use orig_freopen instead of freopen.
25147         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
25148         (gl_FUNC_FREOPEN): Invoke it.
25149
25150         Override fopen more carefully.
25151         * lib/fopen.c (orig_fopen): New function.
25152         (rpl_fopen): Use orig_fopen instead of fopen.
25153         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
25154         (gl_FUNC_FOPEN): Invoke it.
25155         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
25156
25157 2008-09-28  Bruno Haible  <bruno@clisp.org>
25158
25159         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
25160         SIGPIPE.
25161
25162 2008-09-28  Bruno Haible  <bruno@clisp.org>
25163
25164         * tests/test-sigaction.c (handler, main): Disable the check whether
25165         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
25166         glibc systems with LinuxThreads.
25167
25168 2008-09-28  Bruno Haible  <bruno@clisp.org>
25169
25170         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
25171
25172         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
25173         with AIX xlc.
25174         * lib/fcntl.in.h (open): Likewise.
25175         Reported by Rainer Tammer <tammer@tammer.net>.
25176
25177 2008-09-28  Bruno Haible  <bruno@clisp.org>
25178
25179         * modules/posix_spawnp-tests: New file.
25180         * tests/test-posix_spawn.c: New file.
25181         * tests/test-posix_spawn.in.sh: New file.
25182
25183         New module 'posix_spawnp'.
25184         * modules/posix_spawnp: New file.
25185         * lib/spawnp.c: New file, from GNU libc with modifications.
25186         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
25187
25188         New module 'posix_spawn'.
25189         * modules/posix_spawn: New file.
25190         * lib/spawn.c: New file, from GNU libc with modifications.
25191         * doc/posix-functions/posix_spawn.texi: Mention the new module.
25192
25193         New module 'posix_spawnattr_destroy'.
25194         * modules/posix_spawnattr_destroy: New file.
25195         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
25196         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
25197         module.
25198
25199         New module 'posix_spawnattr_setsigmask'.
25200         * modules/posix_spawnattr_setsigmask: New file.
25201         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
25202         modifications.
25203         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
25204         new module.
25205
25206         New module 'posix_spawnattr_getsigmask'.
25207         * modules/posix_spawnattr_getsigmask: New file.
25208         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
25209         modifications.
25210         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
25211         new module.
25212
25213         New module 'posix_spawnattr_setsigdefault'.
25214         * modules/posix_spawnattr_setsigdefault: New file.
25215         * lib/spawnattr_setdefault.c: New file, from GNU libc with
25216         modifications.
25217         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
25218         new module.
25219
25220         New module 'posix_spawnattr_getsigdefault'.
25221         * modules/posix_spawnattr_getsigdefault: New file.
25222         * lib/spawnattr_getdefault.c: New file, from GNU libc with
25223         modifications.
25224         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
25225         new module.
25226
25227         New module 'posix_spawnattr_setschedpolicy'.
25228         * modules/posix_spawnattr_setschedpolicy: New file.
25229         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
25230         modifications.
25231         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
25232         new module.
25233
25234         New module 'posix_spawnattr_getschedpolicy'.
25235         * modules/posix_spawnattr_getschedpolicy: New file.
25236         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
25237         modifications.
25238         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
25239         new module.
25240
25241         New module 'posix_spawnattr_setschedparam'.
25242         * modules/posix_spawnattr_setschedparam: New file.
25243         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
25244         modifications.
25245         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
25246         new module.
25247
25248         New module 'posix_spawnattr_getschedparam'.
25249         * modules/posix_spawnattr_getschedparam: New file.
25250         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
25251         modifications.
25252         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
25253         new module.
25254
25255         New module 'posix_spawnattr_setpgroup'.
25256         * modules/posix_spawnattr_setpgroup: New file.
25257         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
25258         modifications.
25259         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
25260         module.
25261
25262         New module 'posix_spawnattr_getpgroup'.
25263         * modules/posix_spawnattr_getpgroup: New file.
25264         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
25265         modifications.
25266         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
25267         module.
25268
25269         New module 'posix_spawnattr_setflags'.
25270         * modules/posix_spawnattr_setflags: New file.
25271         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
25272         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
25273         module.
25274
25275         New module 'posix_spawnattr_getflags'.
25276         * modules/posix_spawnattr_getflags: New file.
25277         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
25278         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
25279         module.
25280
25281         New module 'posix_spawnattr_init'.
25282         * modules/posix_spawnattr_init: New file.
25283         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
25284         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
25285         module.
25286
25287         New module 'posix_spawn_file_actions_destroy'.
25288         * modules/posix_spawn_file_actions_destroy: New file.
25289         * lib/spawn_faction_destroy.c: New file, from GNU libc with
25290         modifications.
25291         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
25292         the new module.
25293
25294         New module 'posix_spawn_file_actions_addopen'.
25295         * modules/posix_spawn_file_actions_addopen: New file.
25296         * lib/spawn_faction_addopen.c: New file, from GNU libc with
25297         modifications.
25298         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
25299         the new module.
25300
25301         New module 'posix_spawn_file_actions_adddup2'.
25302         * modules/posix_spawn_file_actions_adddup2: New file.
25303         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
25304         modifications.
25305         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
25306         the new module.
25307
25308         New module 'posix_spawn_file_actions_addclose'.
25309         * modules/posix_spawn_file_actions_addclose: New file.
25310         * lib/spawn_faction_addclose.c: New file, from GNU libc with
25311         modifications.
25312         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
25313         the new module.
25314
25315         New module 'posix_spawn_file_actions_init'.
25316         * modules/posix_spawn_file_actions_init: New file.
25317         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
25318         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
25319         new module.
25320
25321         New module 'posix_spawn-internal'.
25322         * modules/posix_spawn-internal: New file.
25323         * lib/spawn_int.h: New file, from GNU libc with modifications.
25324         * lib/spawni.c: New file, from GNU libc with modifications.
25325         * m4/posix_spawn.m4: New file.
25326
25327         New module 'spawn'.
25328         * modules/spawn: New file.
25329         * lib/spawn.in.h: New file, from GNU libc with modifications.
25330         * m4/spawn_h.m4: New file.
25331         * doc/posix-headers/spawn.texi: Mention the new module.
25332
25333 2008-09-28  Bruno Haible  <bruno@clisp.org>
25334
25335         * modules/sched-tests: New file.
25336         * tests/test-sched.c: New file.
25337
25338         New module 'sched'.
25339         * modules/sched: New file.
25340         * lib/sched.in.h: New file.
25341         * m4/sched_h.m4: New file.
25342         * doc/posix-headers/sched.texi: Mention the new module.
25343
25344 2008-09-27  Eric Blake  <ebb9@byu.net>
25345
25346         Fix previous patch, and tweak references to $0.
25347         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
25348         (func_version, func_gnulib_dir): Don't call this program
25349         gnulib-tool.
25350         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
25351         with using $0 in function.
25352         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
25353         (func_fatal_error): Reuse the name the user invoked us with.
25354
25355 2008-09-27  Bruno Haible  <bruno@clisp.org>
25356
25357         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
25358         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
25359         (gl_ICONV_H): Not here.
25360         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
25361         instead of assigning ICONV_H directly.
25362
25363         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
25364         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
25365         WCHAR_H directly.
25366
25367 2008-09-27  Bruno Haible  <bruno@clisp.org>
25368
25369         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
25370         * modules/arpa_inet (Depends-on): Add link-warning.
25371         (Makefile.am): Insert the definition of GL_LINK-WARNING.
25372         * modules/unistd (Makefile.am): Likewise.
25373
25374 2008-09-26  Bruno Haible  <bruno@clisp.org>
25375
25376         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
25377         variables.
25378         (func_version): Essentially copied from gnulib-tool.
25379         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
25380         func_readlink): Copied from gnulib-tool.
25381
25382 2008-09-26  Bruno Haible  <bruno@clisp.org>
25383
25384         * gnulib-tool (func_version): Change directory to $gnulib_dir before
25385         invoking git-version-gen.
25386
25387 2008-09-26  Bruno Haible  <bruno@clisp.org>
25388
25389         * posix-modules: Update to directory names changed on 2008-01-19.
25390         Remove commas in output before splitting into words. No more need to
25391         avoid 'ftruncate' since 2007-02-19.
25392
25393 2008-09-26  Bruno Haible  <bruno@clisp.org>
25394
25395         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
25396
25397 2008-09-26  Bruno Haible  <bruno@clisp.org>
25398
25399         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
25400         * modules/fwriteerror (Depends-on): Add errno.
25401
25402 2008-09-26  Bruno Haible  <bruno@clisp.org>
25403
25404         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
25405         * tests/test-vc-list-files-cvs.sh: Likewise.
25406
25407 2008-09-26  Bruno Haible  <bruno@clisp.org>
25408
25409         * doc/posix-headers/sys_resource.texi: Reorder items.
25410
25411 2008-09-26  Jim Meyering  <meyering@redhat.com>
25412
25413         fts: tweak inode comparison function
25414         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
25415         inode numbers, as documented.
25416
25417         fts: sort dirent entries on inode number before traversing
25418         This avoids a quadratic, seek-related performance penalty when
25419         operating on a directory containing many entries (measurable at 10k;
25420         3.5 hours at 2 million entries with a cold cache) on certain types
25421         of file systems, including ext3 and ext4, but not tmpfs.
25422         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
25423         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
25424         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
25425         (fs_handles_readdir_ordered_dirents_efficiently): New function.
25426         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
25427         (fts_build): Set the stat.st_ino member from D_INO.
25428         If it is likely to be useful, sort dirent entries on inode number.
25429
25430         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
25431         and the struct statfs.f_type member.
25432         * modules/fts (Depends-on): Add d-ino.
25433
25434 2008-09-26  Bruno Haible  <bruno@clisp.org>
25435
25436         * modules/sigpipe-die (Depends-on): Add sigpipe.
25437
25438         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
25439         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
25440         and GNULIB_STDIO_H_SIGPIPE are set.
25441         * lib/stdio-write.c: New file.
25442         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
25443         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
25444         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
25445         REPLACE_STDIO_WRITE_FUNCS.
25446         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
25447         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
25448         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
25449         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
25450         * modules/stdio (Files): Add lib/stdio-write.c.
25451         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
25452         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
25453         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
25454         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
25455         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
25456         REPLACE_FPRINTF_POSIX.
25457         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
25458         REPLACE_PRINTF_POSIX.
25459         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
25460         REPLACE_VFPRINTF_POSIX.
25461         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
25462         REPLACE_VPRINTF_POSIX.
25463         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
25464         SIGPIPE issue.
25465         * doc/posix-functions/fputc.texi: Likewise.
25466         * doc/posix-functions/fputs.texi: Likewise.
25467         * doc/posix-functions/fwrite.texi: Likewise.
25468         * doc/posix-functions/printf.texi: Likewise.
25469         * doc/posix-functions/putc.texi: Likewise.
25470         * doc/posix-functions/putchar.texi: Likewise.
25471         * doc/posix-functions/puts.texi: Likewise.
25472         * doc/posix-functions/vfprintf.texi: Likewise.
25473         * doc/posix-functions/vprintf.texi: Likewise.
25474
25475         * modules/safe-write (Depends-on): Add write.
25476
25477         * modules/sigpipe-tests: New file.
25478         * tests/test-sigpipe.c: New file.
25479         * tests/test-sigpipe.sh: New file.
25480
25481         * modules/write: New file.
25482         * lib/unistd.in.h: Include <sys/types.h>.
25483         (write): New declaration.
25484         * lib/write.c: New file.
25485         * m4/write.m4: New file.
25486         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25487         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
25488         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
25489         GNULIB_WRITE, REPLACE_WRITE.
25490         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
25491         and the SIGPIPE issue.
25492
25493         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
25494         (raise): New declaration.
25495         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
25496         (ext_signal): New function.
25497         (rpl_raise): New function.
25498         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
25499         GNULIB_SIGNAL_H_SIGPIPE.
25500         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
25501         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
25502
25503         * modules/sigpipe: New file.
25504         * m4/sigpipe.m4: New file.
25505
25506 2008-09-25  Derek Price  <derek@ximbiot.com>
25507             Bruno Haible  <bruno@clisp.org>
25508
25509         * gnulib-tool (func_import): Report all license incompatibilities, not
25510         just the first one.
25511
25512 2008-09-25  Bruno Haible  <bruno@clisp.org>
25513
25514         * gnulib-tool (func_import): When computing the edits, consider not
25515         only the Makefile.ams that exist but also those that will be generated.
25516
25517 2008-09-25  Simon Josefsson  <simon@josefsson.org>
25518
25519         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
25520         fixes gnulib-tool --test warning about duplicate dependency.
25521
25522 2008-09-25  Bruno Haible  <bruno@clisp.org>
25523
25524         * gnulib-tool: Don't ask the user to perform edits in the generated
25525         Makefile.ams.
25526         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
25527         apply to the Makefile.am being generated.
25528         (func_emit_tests_Makefile_am): Execute edits that apply to the
25529         Makefile.am being generated.
25530         (func_import): Setup list of Makefile.am edits before emitting the
25531         Makefile.ams, not at the end.
25532         (func_create_testdir): Update.
25533         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
25534
25535 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25536
25537         * gnulib-tool (func_import): Store the --tests-base option in the
25538         comment in gnulib-cache.m4.
25539
25540 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
25541
25542         * NEWS: Document increased portability that sys_select now provides.
25543
25544         * lib/sys_select.in.h: Install select wrapper.
25545         * lib/sys_socket.in.h: Use more descriptive name when there is no
25546         select wrapper.
25547         * lib/winsock-select.c: New.
25548         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
25549         Require gl_HEADER_SYS_SOCKET.
25550         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
25551         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
25552         * tests/test-sys_select.c: Add functional tests.
25553
25554 2008-09-24  Eric Blake  <ebb9@byu.net>
25555
25556         open, fopen: close fd leak in last patch
25557         * lib/open.c (rpl_open): Close fd before returning error.
25558         * lib/fopen.c (rpl_fopen): Close fd before returning error.
25559         * doc/posix-functions/open.texi (open): Document that Irix also
25560         has the bug.
25561         * doc/posix-functions/fopen.texi (fopen): Likewise.
25562         Reported by Paolo Bonzini.
25563
25564 2008-09-24  Bruno Haible  <bruno@clisp.org>
25565
25566         Ensure that a filename ending in a slash cannot be used to access a
25567         non-directory.
25568         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
25569         to check whether it's really a directory.
25570         * lib/fopen.c: Include fcntl.h, unistd.h.
25571         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
25572         and fdopen().
25573         * modules/fopen (Depends-on): Add unistd.
25574         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
25575         * tests/test-fopen.c (main): Likewise.
25576         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
25577         * doc/posix-functions/fopen.texi: Likewise.
25578         Reported by Eric Blake.
25579
25580 2008-09-23  Eric Blake  <ebb9@byu.net>
25581
25582         c-stack: avoid compiler optimizations when provoking overflow
25583         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
25584         recursion harder to optimize, to ensure a stack overflow occurs.
25585         * tests/test-c-stack.c (recurse): Likewise.
25586         Borrowed from libsigsegv.
25587
25588         c-stack: work around Irix sigaltstack bug
25589         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
25590         whether sigaltstack uses wrong end of stack_t (copied in part from
25591         libsigsegv).
25592         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
25593         Irix bug, without requiring an over-allocation.
25594         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
25595         bug.
25596
25597         fopen: document mingw bug on directories
25598         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
25599         not allowing a stream visiting a directory, even though reading
25600         from such a stream is not portable.
25601
25602 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
25603
25604         * lib/poll.c: Rewrite.
25605         * modules/poll: Depend on alloca.
25606
25607 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
25608
25609         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
25610         instead define prototypes for a full set of wrappers.  Ensure
25611         that Cygwin does not use the compatibility code, which is only
25612         for MinGW.
25613         * lib/winsock.c: New.
25614         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
25615         * modules/sys_socket: Add lib/winsock.c.
25616
25617         * modules/poll-tests: Add errno and perror.
25618         * tests/test-poll.c: Use ioctl, not ioctlsocket.
25619
25620 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
25621
25622         * tests/test-poll.c: Downgrade minimum needed Winsock version.
25623
25624 2008-09-23  Bruno Haible  <bruno@clisp.org>
25625
25626         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
25627         * doc/glibc-functions/*: Likewise.
25628
25629 2008-09-23  Simon Josefsson  <simon@josefsson.org>
25630
25631         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
25632         success.
25633
25634 2008-09-22  Eric Blake  <ebb9@byu.net>
25635             Bruno Haible  <bruno@clisp.org>
25636
25637         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
25638         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
25639         supply %A but mishandle pseudo-NaN.
25640         Reported by Simon Josefsson.
25641
25642 2008-09-21  Bruno Haible  <bruno@clisp.org>
25643
25644         * tests/test-lock.c (main): Tweak skip message.
25645         * tests/test-tls.c (main): Likewise.
25646
25647 2008-09-21  Bruno Haible  <bruno@clisp.org>
25648
25649         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
25650         whether 'struct sigaction' has sa_sigaction here...
25651         (gl_PREREQ_SIG_HANDLER_H): ... not here.
25652         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
25653
25654 2008-09-21  Bruno Haible  <bruno@clisp.org>
25655
25656         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
25657         section.
25658         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
25659         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
25660         the new section.
25661         (Support for obsolete systems lacking POSIX:2001): New section.
25662         (String handling <string.h>): Move strdup to the new section.
25663         Suggested by Simon Josefsson and Paolo Bonzini.
25664
25665 2008-09-21  Bruno Haible  <bruno@clisp.org>
25666
25667         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
25668         exponents in %e and %g results on 'long double'. Needed for mingw's
25669         improved *printf functions.
25670         * tests/test-vasprintf-posix.c (test_function): Likewise.
25671         * tests/test-snprintf-posix.h (test_function): Likewise.
25672         * tests/test-sprintf-posix.h (test_function): Likewise.
25673         Reported by Eric Blake.
25674
25675 2008-09-21  Bruno Haible  <bruno@clisp.org>
25676
25677         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
25678         * tests/test-sprintf-posix.h (test_function): Likewise.
25679
25680 2008-09-21  Bruno Haible  <bruno@clisp.org>
25681
25682         * modules/getpass (Depends-on): Add strdup-posix.
25683
25684         New module 'strdup-posix'.
25685         * modules/strdup-posix: New file.
25686         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
25687         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
25688         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25689         REPLACE_STRDUP.
25690         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
25691         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
25692         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
25693         strdup-posix.
25694
25695         * modules/strdup (Depends-on): Remove malloc-posix.
25696
25697 2008-09-20  Bruno Haible  <bruno@clisp.org>
25698
25699         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
25700         Wildenhues.
25701
25702 2008-09-20  Bruno Haible  <bruno@clisp.org>
25703
25704         Ensure that wint_t gets defined on IRIX 5.3.
25705         * lib/wchar.in.h (wint_t): Define if not defined by the system.
25706         * lib/wctype.in.h (wint_t): Likewise.
25707         (__wctype_wint_t): Remove type.
25708         (isw*): Use wint_t instead of __wctype_wint_t.
25709         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
25710         * modules/wchar (Files): Add m4/wint_t.m4.
25711         (Makefile.am): Substitute HAVE_WINT_T.
25712         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
25713         * tests/test-wctype.c: Check that wint_t is defined.
25714         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
25715         * doc/posix-headers/wctype.texi: Likewise.
25716         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25717
25718 2008-09-18  Bruno Haible  <bruno@clisp.org>
25719
25720         * gnulib-tool (func_exit): Update comment.
25721
25722 2008-09-18  Simon Josefsson  <simon@josefsson.org>
25723
25724         * modules/getaddrinfo (Depends-on): Remove strdup, this module
25725         assumes strdup exists and does not depend on strdup to return
25726         ENOMEM on out of memory conditions.
25727
25728 2008-09-18  Bruno Haible  <bruno@clisp.org>
25729
25730         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
25731         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
25732         digits for the exponent.
25733
25734 2008-09-18  Jim Meyering  <meyering@redhat.com>
25735             Bruno Haible  <bruno@clisp.org>
25736
25737         * lib/vasnprintf.c (decimal_point_char): Define also if
25738         NEED_PRINTF_INFINITE_LONG_DOUBLE.
25739
25740 2008-09-16  Bruno Haible  <bruno@clisp.org>
25741         and Eric Blake  <ebb9@byu.net>
25742
25743         vasnprintf: support Irix 5.3
25744         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
25745         that mishandle long double infinity.
25746         Reported by Tom G. Christensen.
25747
25748 2008-09-16  Bruno Haible  <bruno@clisp.org>
25749
25750         * doc/glibc-functions/scandir.texi: Mention the function is missing on
25751         Solaris 9.
25752         * doc/glibc-functions/alphasort.texi: Likewise.
25753         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
25754
25755 2008-09-16  Jim Meyering  <meyering@redhat.com>
25756
25757         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
25758         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
25759         a umask modification leak out of a subshell.  Otherwise, the
25760         opensolaris /bin/sh would be accepted and thus cause unwarranted
25761         failures in the coreutils test suite.
25762
25763 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
25764
25765         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
25766         to succeed.
25767
25768 2008-09-16  Jim Meyering  <meyering@redhat.com>
25769
25770         avoid spurious test failure when library is built without ACL support
25771         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
25772         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
25773         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
25774         * tests/test-copy-acl.sh: Likewise.
25775
25776 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25777
25778         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
25779         based on character occurrence counts.
25780
25781 2008-09-15  Eric Blake  <ebb9@byu.net>
25782
25783         tests: avoid some compiler warnings
25784         * tests/test-memchr.c (main): Pass NULL indirectly.
25785         * tests/test-closein.c (main): Avoid unused variable.
25786
25787 2008-09-15  Bruno Haible  <bruno@clisp.org>
25788
25789         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
25790         are missing on OpenBSD 4.0 individually.
25791         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
25792
25793 2008-09-15  Bruno Haible  <bruno@clisp.org>
25794
25795         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
25796         * doc/posix-functions/strerror.texi: Mention also Cygwin.
25797         * doc/posix-functions/perror.texi: Likewise.
25798         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
25799         is missing.
25800         Reported by Eric Blake.
25801
25802         * lib/errno.in.h: Use replacement values >= 2000.
25803         Reported by Eric Blake.
25804
25805 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25806
25807         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
25808         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
25809         limit.
25810         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
25811         compareseq was aborted.
25812
25813 2008-09-14  Bruno Haible  <bruno@clisp.org>
25814
25815         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
25816         yvec_edit_count.
25817         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
25818         (fstrcmp_bounded): Simplify result computation accordingly.
25819
25820 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25821
25822         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
25823         (fstrcmp): Define in terms of fstrcmp_bounded.
25824         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
25825         lower_bound argument.
25826         Return quickly if the result is certainly < lower_bound.
25827         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
25828
25829 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25830
25831         * lib/diffseq.h (EARLY_ABORT): New macro.
25832         (compareseq): Change return type to bool. Return true when EARLY_ABORT
25833         evaluates to true.
25834
25835 2008-09-14  Bruno Haible  <bruno@clisp.org>
25836
25837         * modules/perror-tests: New file.
25838         * tests/test-perror.sh: New file.
25839         * tests/test-perror.c: New file.
25840
25841         New module 'perror'.
25842         * lib/stdio.in.h (perror): New declaration.
25843         * lib/perror.c: New file.
25844         * m4/perror.m4: New file.
25845         * modules/perror: New file.
25846         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
25847         * doc/posix-functions/perror.texi: Mention the perror module.
25848         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
25849         REPLACE_PERROR.
25850         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
25851         REPLACE_PERROR.
25852
25853 2008-09-14  Bruno Haible  <bruno@clisp.org>
25854
25855         * modules/stdio (Makefile.am): Reorder to match the order in
25856         lib/stdio.in.h.
25857         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
25858
25859 2008-09-13  Bruno Haible  <bruno@clisp.org>
25860
25861         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
25862
25863 2008-09-13  Bruno Haible  <bruno@clisp.org>
25864
25865         Extend strerror to cover the added errno values.
25866         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
25867         (rpl_strerror): Provide error messages for the added errno values and
25868         for the WSA* values.
25869         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
25870         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
25871         strerror.
25872         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
25873         * modules/strerror (Depends-on): Add errno.
25874         * doc/posix-functions/strerror.texi: Document the change.
25875         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
25876         and EOVERFLOW.
25877
25878 2008-09-13  Bruno Haible  <bruno@clisp.org>
25879
25880         * modules/EOVERFLOW: Remove file.
25881         * m4/eoverflow.m4: Remove file.
25882         * modules/EOVERFLOW-tests: Remove file.
25883         * tests/test-EOVERFLOW.c: Remove file.
25884         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
25885         * modules/ftell (Depends-on): Likewise.
25886         * modules/getdelim (Depends-on): Likewise.
25887         * modules/getugroups (Depends-on): Likewise.
25888         * modules/poll (Depends-on): Likewise.
25889         * modules/snprintf (Depends-on): Likewise.
25890         * modules/sprintf-posix (Depends-on): Likewise.
25891         * modules/vasnprintf (Depends-on): Likewise.
25892         * modules/vasprintf (Depends-on): Likewise.
25893         * modules/vfprintf-posix (Depends-on): Likewise.
25894         * modules/vsnprintf (Depends-on): Likewise.
25895         * modules/vsprintf-posix (Depends-on): Likewise.
25896         * modules/xvasprintf (Depends-on): Likewise.
25897         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
25898         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
25899         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
25900         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
25901         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
25902         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
25903         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
25904         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
25905         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
25906         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
25907         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
25908         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
25909         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
25910         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
25911         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
25912         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
25913         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
25914         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
25915         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
25916         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
25917         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
25918         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
25919         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
25920         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
25921         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
25922         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
25923         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
25924         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
25925         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
25926         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
25927         * MODULES.html.sh: Remove EOVERFLOW.
25928         * NEWS: Mention the change.
25929
25930 2008-09-13  Bruno Haible  <bruno@clisp.org>
25931
25932         * modules/errno-tests: New file.
25933         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
25934
25935         * lib/errno.in.h: New file.
25936         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
25937         * modules/errno: New file.
25938         * doc/posix-headers/errno.texi: Update documentation.
25939         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
25940
25941 2008-09-13  Bruno Haible  <bruno@clisp.org>
25942
25943         * tests/test-poll.c: Use #if for native Windows, rather than testing
25944         __MSVCRT__.
25945
25946 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25947             Bruno Haible  <bruno@clisp.org>
25948
25949         * lib/glob.c: Don't include <pwd.h> on native Windows.
25950         (WINDOWS32): New macro.
25951         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
25952
25953 2008-09-13  Bruno Haible  <bruno@clisp.org>
25954
25955         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
25956         (ETIMEDOUT): Remove macro.
25957         (glthread_cond_timedwait_multithreaded): New declaration.
25958         (glthread_cond_timedwait): Use it.
25959         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
25960         (glthread_cond_timedwait_multithreaded): New function.
25961
25962 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
25963
25964         * modules/poll-tests: Do not check for io.h.
25965         * tests/test-poll.c: Check for __MSVCRT__ instead.
25966
25967 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
25968
25969         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
25970         * modules/poll-tests: Add inet_pton, stdbool, sockets.
25971         * tests/test-poll.c: Use them.  Use _pipe on Windows.
25972
25973 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
25974
25975         * modules/poll-tests: New.
25976         * tests/test-poll.c: New.
25977
25978 2008-09-12  Eric Blake  <ebb9@byu.net>
25979
25980         frexp: test for NetBSD failure on -0.0
25981         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
25982         not all, bugs from NetBSD 3.0 have been fixed.
25983         * doc/posix-functions/frexp.texi (frexp): Document bug.
25984         Reported by Thomas Klausner.
25985
25986         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
25987         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
25988         literal -0.0.
25989         Reported by Jonathan C. Patschke <jp@centtech.com>.
25990
25991 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25992
25993         * lib/glthread/cond.h: Use dummy implementation also if
25994         USE_WIN32_THREADS.
25995
25996 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25997
25998         * modules/fnmatch-posix (License): Change to LGPLv2+.
25999         * modules/fnmatch-gnu (License): Likewise.
26000
26001 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26002
26003         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
26004
26005 2008-09-11  Jim Meyering  <meyering@redhat.com>
26006
26007         * users.txt: Add gtk-vnc.
26008
26009 2008-09-08  Simon Josefsson  <simon@josefsson.org>
26010
26011         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
26012         rotate amounts.
26013
26014         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
26015         required for 16-bit and 8-bit rotates.
26016         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
26017         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
26018         UINT8_MAX instead of hard-coded constants.
26019         Suggested by Paul Eggert.
26020
26021 2008-09-07  Bruno Haible  <bruno@clisp.org>
26022
26023         * tests/test-striconveh.c (main): Check behaviour when converting from
26024         UTF-7.
26025
26026         Make striconveh work better with stateful encodings.
26027         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
26028         that iconv does not increment the inptr when returning -1/EINVAL.
26029
26030 2008-09-07  Bruno Haible  <bruno@clisp.org>
26031
26032         * build-aux/config.rpath: Update according to libtool-2.2.6.
26033         * build-aux/config.libpath: Likewise.
26034
26035 2008-09-06  Bruno Haible  <bruno@clisp.org>
26036
26037         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
26038         * lib/freadptr.c (freadptr): Likewise.
26039         * lib/freadseek.c (freadptrinc): Likewise.
26040         Reported by Simon Josefsson.
26041
26042 2008-09-06  Bruno Haible  <bruno@clisp.org>
26043
26044         * modules/freadptr (License): Change to LGPLv2+.
26045         * modules/freadseek (License): Likewise.
26046         Suggested by Eric Blake.
26047
26048         * modules/memchr2 (License): Change to LGPLv2+.
26049         Approved by Eric Blake.
26050
26051 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26052             Bruno Haible  <bruno@clisp.org>
26053
26054         Make gnulib-tool work with native 'sed' on AIX.
26055         * gnulib-tool (sed_noop): New variable.
26056         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
26057         func_add_or_update, func_create_testdir): Use it to initialize sed
26058         script variables.
26059         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
26060
26061 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
26062             Bruno Haible  <bruno@clisp.org>
26063
26064         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
26065         also works after #include directives.
26066
26067 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
26068
26069         getdate.y: reject an out-of-range timezone value
26070         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
26071         the range [-24...+24].  When specified with only one or two digits,
26072         * tests/test-getdate.c: Tests for the fix.
26073         * doc/getdate.texi: Document this change.
26074
26075 2008-09-03  Bruno Haible  <bruno@clisp.org>
26076
26077         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
26078
26079 2008-09-02  Simon Josefsson  <simon@josefsson.org>
26080
26081         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
26082         <bruce.korb@gmail.com> with ideas from Ben Pfaff
26083         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
26084         Blake <ebb9@byu.net>.
26085
26086         * tests/test-bitrotate.c: Add more test vectors.
26087
26088 2008-09-02  Eric Blake  <ebb9@byu.net>
26089
26090         vasnprintf-posix: handle large precision via %.*d
26091         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
26092         when handling it ourselves.
26093         * tests/test-vasnprintf-posix.c (test_function): Add test.
26094         * tests/test-snprintf-posix.h (test_function): Likewise.
26095         * tests/test-sprintf-posix.h (test_function): Likewise.
26096         * tests/test-vasprintf-posix.c (test_function): Likewise.
26097         Reported by Alain Guibert.
26098
26099 2008-09-01  Eric Blake  <ebb9@byu.net>
26100
26101         c-stack: make configure-time check more robust
26102         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
26103         successful sigaction call.
26104         Reported by Tom G. Christensen.
26105
26106 2008-09-01  Bruno Haible  <bruno@clisp.org>
26107
26108         New module 'findprog-lgpl'.
26109         * modules/findprog-lgpl: New file.
26110         * lib/findprog-lgpl.c: New file.
26111         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
26112         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
26113         to decide whether to use strdup or xstrdup, concatenated_filename or
26114         xconcatenated_filename.
26115
26116 2008-09-01  Bruno Haible  <bruno@clisp.org>
26117
26118         Split module 'concat-filename' into 'concat-filename' (LGPL) and
26119         'xconcat-filename' (GPL).
26120         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
26121         (License): Change to LGPLv2+.
26122         * modules/xconcat-filename: New file.
26123         * lib/concat-filename.h (concatenated_filename): Change specification.
26124         (xconcatenated_filename): New declaration.
26125         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
26126         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
26127         memory situations.
26128         * lib/xconcat-filename.c: New file.
26129         * NEWS: Mention the change.
26130         * lib/findprog.c: Include concat-filename.h, not filename.h.
26131         (find_in_path): Use xconcatenated_filename instead of
26132         concatenated_filename.
26133         * lib/javacomp.c: Include concat-filename.h, not filename.h.
26134         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
26135         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
26136         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
26137         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
26138         instead of concatenated_filename.
26139         * lib/javaexec.c: Include concat-filename.h, not filename.h.
26140         (execute_java_class): Use xconcatenated_filename instead of
26141         concatenated_filename.
26142         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
26143         * modules/javacomp (Depends-on): Likewise.
26144         * modules/javaexec (Depends-on): Likewise.
26145
26146 2008-09-01  Bruno Haible  <bruno@clisp.org>
26147
26148         Split module 'filename' into 'filename' and 'concat-filename'.
26149         * modules/filename: Keep only lib/filename.h.
26150         (License): Change to LGPLv2+.
26151         * modules/concat-filename: New file, extracted from modules/filename.
26152         * lib/filename.h (concatenated_filename): Remove declaration.
26153         * lib/concat-filename.h: New file, extracted from lib/filename.h.
26154         * lib/concat-filename.c: Include concat-filename.h.
26155         * NEWS: Mention the change.
26156
26157 2008-09-01  Simon Josefsson  <simon@josefsson.org>
26158
26159         * lib/bitrotate.h (rotl8, rotr8): Add.
26160
26161         * modules/bitrotate (configure.ac): Need
26162         AC_REQUIRE([AC_C_INLINE]).
26163         (Description): Mention stdint.h.  Reported by Bruno Haible
26164         <bruno@clisp.org>.
26165
26166         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
26167         Paolo Bonzini <bonzini@gnu.org>.
26168
26169 2008-08-31  Bruno Haible  <bruno@clisp.org>
26170
26171         Assume Solaris specific bi-arch conventions on Solaris systems.
26172         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
26173         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
26174         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
26175         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
26176         like acl_libdirstem.
26177         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
26178         acl_libdirstem.
26179         * NEWS: Mention the change.
26180         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
26181
26182 2008-08-31  Jim Meyering  <meyering@redhat.com>
26183
26184         * lib/strftime.h: Add comments describing the two added arguments.
26185
26186         remove duplicate #include directives
26187         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
26188         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
26189
26190 2008-08-31  Bruno Haible  <bruno@clisp.org>
26191
26192         New module 'sigpipe-die'.
26193         * modules/sigpipe-die: New file.
26194         * lib/sigpipe-die.h: New file.
26195         * lib/sigpipe-die.c: New file.
26196         * MODULES.html.sh (Signal handling): Add sigpipe-die.
26197
26198 2008-08-31  Bruno Haible  <bruno@clisp.org>
26199
26200         Don't override previously installed signal handlers.
26201         * lib/fatal-signal.c (saved_sigactions): New variable.
26202         (uninstall_handlers): Reset the signal to the saved handler, not
26203         to SIG_DFL (except when ignored).
26204         (install_handlers): Save the previous handlers.
26205
26206 2008-08-30  Bruno Haible  <bruno@clisp.org>
26207
26208         * gnulib-tool (func_reset_sigpipe): New function.
26209         (func_get_automake_snippet, func_modules_transitive_closure,
26210         func_import): Invoke it before a join command that reads from stdin,
26211         to avoid "echo: write error: Broken pipe" error messages on stderr.
26212         Reported by Sam Steingold <sds@gnu.org>.
26213
26214 2008-08-30  Bruno Haible  <bruno@clisp.org>
26215
26216         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
26217         Code copied from m4/open.m4.
26218         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
26219         access and the filename ends in a slash. Code copied from lib/open.c.
26220         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
26221         * tests/test-fopen.c (main): Check against bug with trailing slash.
26222
26223 2008-08-29  Bruno Haible  <bruno@clisp.org>
26224
26225         Avoid some "gcc -pedantic" warnings.
26226         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
26227         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
26228         * lib/dirent.in.h: Likewise.
26229         * lib/fcntl.in.h: Likewise.
26230         * lib/float.in.h: Likewise.
26231         * lib/iconv.in.h: Likewise.
26232         * lib/inttypes.in.h: Likewise.
26233         * lib/locale.in.h: Likewise.
26234         * lib/math.in.h: Likewise.
26235         * lib/netinet_in.in.h: Likewise.
26236         * lib/search.in.h: Likewise.
26237         * lib/signal.in.h: Likewise.
26238         * lib/stdarg.in.h: Likewise.
26239         * lib/stdint.in.h: Likewise.
26240         * lib/stdio.in.h: Likewise.
26241         * lib/stdlib.in.h: Likewise.
26242         * lib/string.in.h: Likewise.
26243         * lib/strings.in.h: Likewise.
26244         * lib/sys_select.in.h: Likewise.
26245         * lib/sys_socket.in.h: Likewise.
26246         * lib/sys_stat.in.h: Likewise.
26247         * lib/sys_time.in.h: Likewise.
26248         * lib/sysexits.in.h: Likewise.
26249         * lib/time.in.h: Likewise.
26250         * lib/unistd.in.h: Likewise.
26251         * lib/wchar.in.h: Likewise.
26252         * lib/wctype.in.h: Likewise.
26253         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
26254         * modules/fchdir (Makefile.am): Likewise.
26255         * modules/fcntl (Makefile.am): Likewise.
26256         * modules/float (Makefile.am): Likewise.
26257         * modules/iconv_open (Makefile.am): Likewise.
26258         * modules/inttypes (Makefile.am): Likewise.
26259         * modules/locale (Makefile.am): Likewise.
26260         * modules/math (Makefile.am): Likewise.
26261         * modules/netinet_in (Makefile.am): Likewise.
26262         * modules/search (Makefile.am): Likewise.
26263         * modules/signal (Makefile.am): Likewise.
26264         * modules/stdarg (Makefile.am): Likewise.
26265         * modules/stdint (Makefile.am): Likewise.
26266         * modules/stdio (Makefile.am): Likewise.
26267         * modules/stdlib (Makefile.am): Likewise.
26268         * modules/string (Makefile.am): Likewise.
26269         * modules/strings (Makefile.am): Likewise.
26270         * modules/sys_select (Makefile.am): Likewise.
26271         * modules/sys_socket (Makefile.am): Likewise.
26272         * modules/sys_stat (Makefile.am): Likewise.
26273         * modules/sys_time (Makefile.am): Likewise.
26274         * modules/sysexits (Makefile.am): Likewise.
26275         * modules/time (Makefile.am): Likewise.
26276         * modules/unistd (Makefile.am): Likewise.
26277         * modules/wchar (Makefile.am): Likewise.
26278         * modules/wctype (Makefile.am): Likewise.
26279         Reported by Reuben Thomas <rrt@sc3d.org>.
26280
26281 2008-08-29  Bruno Haible  <bruno@clisp.org>
26282
26283         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
26284         any more.
26285
26286 2008-08-29  Simon Josefsson  <simon@josefsson.org>
26287
26288         * MODULES.html.sh (Misc): Add bitrotate.
26289
26290         * modules/bitrotate: New file.
26291
26292         * lib/bitrotate.h: New file.
26293
26294         * modules/bitrotate-tests: New file.
26295
26296         * tests/test-bitrotate.c: New file.
26297
26298         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
26299         on the bitrotate module.
26300
26301         * lib/arctwo.c: Use new bitrotate module.
26302
26303 2008-08-29  Jim Meyering  <meyering@redhat.com>
26304
26305         bootstrap: merge changes from coreutils
26306         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
26307         of copied files.  Remove a kludge, now that this is fixed.
26308         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
26309         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
26310         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
26311
26312 2008-08-29  Bruno Haible  <bruno@clisp.org>
26313
26314         * MODULES.html.sh: Remove --cvs-urls option.
26315
26316 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
26317
26318         maint.mk: adjust to file name change
26319         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
26320
26321 2008-08-28  Jim Meyering  <meyering@redhat.com>
26322
26323         * modules/getndelim2 (License): Relicense to LGPLv2+.
26324         Approved by Richard Stallman for the version of 1995, and by
26325         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
26326
26327 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
26328
26329         * lib/getdelim.c (flockfile, funlockfile): Make all of them
26330         dummy if one is not available.  Do not touch them if
26331         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
26332         (getc_maybe_unlocked): New.
26333         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
26334
26335 2008-08-26  Eric Blake  <ebb9@byu.net>
26336
26337         doc/INSTALL: resync from autoconf
26338         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
26339         (INSTALL_PRELUDE): Delete; this is done more efficiently by
26340         moving...
26341         * install.texi [!autoconf]: ...here.  Resync from autoconf.
26342         * INSTALL: Regenerate.
26343         * INSTALL.ISO: New file.
26344         * INSTALL.UTF-8: Likewise.
26345
26346 2008-08-26  Jim Meyering  <meyering@redhat.com>
26347
26348         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
26349         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
26350         these definitions conditional, so that they may be overridden, too.
26351
26352 2008-08-26  Bruno Haible  <bruno@clisp.org>
26353
26354         Generate INSTALL file variants with prettier quotes.
26355         * doc/Makefile (INSTALL_PRELUDE): New macro.
26356         (INSTALL): Use it.
26357         (INSTALL.ISO, INSTALL.UTF-8): New rules.
26358
26359 2008-08-26  Bruno Haible  <bruno@clisp.org>
26360
26361         Run makeinfo in an English locale.
26362         * doc/Makefile (MAKEINFO): New variable.
26363
26364 2008-08-26  Bruno Haible  <bruno@clisp.org>
26365
26366         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
26367         Suggested by Eric Blake.
26368
26369 2008-08-25  Bruno Haible  <bruno@clisp.org>
26370
26371         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
26372
26373 2008-08-25  Eric Blake  <ebb9@byu.net>
26374
26375         c-stack: test that stack overflow can be caught
26376         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
26377         that platform allows handling stack overflow; at least OS/2 EMX
26378         has sigaltstack, but crashes before transferring control to
26379         handler on stack overflow.
26380         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
26381         check for HAVE_STACK_OVERFLOW_HANDLING.
26382         Reported by Elbert Pol.
26383
26384 2008-08-25  Bruno Haible  <bruno@clisp.org>
26385
26386         * doc/posix-functions/strftime.texi: Fix description of strftime
26387         module.
26388
26389 2008-08-24  Bruno Haible  <bruno@clisp.org>
26390
26391         * tests/uniwidth/test-uc_width2.c: New file.
26392         * tests/uniwidth/test-uc_width2.sh: New file.
26393         * modules/uniwidth/width-tests (Files): Add the new files.
26394         (TESTS): Add uniwidth/test-uc_width2.sh.
26395         (TESTS_ENVIRONMENT): New variable.
26396         (check_PROGRAMS): Add test-uc_width2.
26397         (test_uc_width2_SOURCES): New variable.
26398
26399         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
26400         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
26401         not 0x00AB.
26402         Reported by Alexander V. Lukyanov <lav@netis.ru>.
26403
26404 2008-08-22  Eric Blake  <ebb9@byu.net>
26405
26406         test-lock, test-tls: mention why a test is skipped
26407         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
26408         skipped.
26409         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
26410
26411         count-one-bits: relax license
26412         * modules/count-one-bits (License): Relicense to LGPLv2+.
26413         Suggested by Ludovic Courtès, approved by Ben Pfaff.
26414
26415 2008-08-22  Andreas Schwab  <schwab@suse.de>
26416
26417         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
26418         Remove spurious space in assignment.
26419
26420 2008-08-21  Simon Josefsson  <simon@josefsson.org>
26421
26422         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
26423         Paul Eggert <eggert@CS.UCLA.EDU>.
26424
26425 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
26426
26427         * modules/gettext: Add m4/threadlib.m4.
26428
26429 2008-08-19  Eric Blake  <ebb9@byu.net>
26430
26431         test-c-stack: fix compilation failure on FreeBSD 5.0
26432         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
26433         headers before <sys/resource.h>.
26434         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
26435         the bug.
26436         Reported by Nelson H. F. Beebe.
26437
26438         strverscmp: migrate from "strverscmp.h" to <string.h>
26439         * modules/string (Makefile.am): Add new hooks.
26440         * modules/strverscmp (Files): Remove strverscmp.h.
26441         (Depends-on): Add string.
26442         (configure.ac): Add indicator.
26443         (Include): Mention new header.
26444         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
26445         defaults.
26446         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
26447         results.
26448         * lib/strverscmp.h: Delete.
26449         * lib/string.in.h (strverscmp): Provide declaration, when needed.
26450         * tests/test-strverscmp.c (includes): Adjust client.
26451         * lib/check-version.c (includes): Likewise.
26452         * NEWS: Document the change.
26453
26454         strverscmp: add unit test
26455         * modules/strverscmp-tests: New file.
26456         * tests/test-strverscmp.c: Likewise.
26457
26458 2008-08-19  Simon Josefsson  <simon@josefsson.org>
26459
26460         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
26461         regarding Windows crypto stuff, from Mono.
26462
26463 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
26464
26465         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
26466         if present, for intel RND.  Return error on failures.
26467
26468 2008-08-18  Ben Pfaff  <blp@gnu.org>
26469
26470         gitlog-to-changelog: give better diagnostic for failed pipe-open
26471         * build-aux/gitlog-to-changelog: Improve error message: suggest
26472         that the version of Git may be too old.
26473
26474 2008-08-18  Simon Josefsson  <simon@josefsson.org>
26475
26476         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
26477         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
26478
26479 2008-08-18  Bruno Haible  <bruno@clisp.org>
26480
26481         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
26482         pthread_in_use().
26483
26484 2008-08-18  Bruno Haible  <bruno@clisp.org>
26485
26486         * lib/glthread/threadlib.c: Include <pthread.h>.
26487
26488 2008-08-18  Bruno Haible  <bruno@clisp.org>
26489
26490         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
26491         glthread_recursive_lock_* macros.
26492         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
26493         Fix syntax error.
26494
26495 2008-08-18  Bruno Haible  <bruno@clisp.org>
26496
26497         * lib/glthread/thread.c: Avoid forcing a context switch right after
26498         thread creation.
26499
26500 2008-08-17  Bruno Haible  <bruno@clisp.org>
26501
26502         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
26503         * lib/glthread/thread.h: Provide Win32 specific implementation.
26504         * modules/thread (Files): Add lib/glthread/thread.c.
26505         (Depends-on): Add lock.
26506         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
26507
26508 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26509
26510         New module 'yield'.
26511         * modules/yield: New file.
26512         * lib/glthread/yield.h: New file.
26513         * m4/yield.m4: New file.
26514         * MODULES.html.sh (Multithreading): Add yield.
26515
26516 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26517
26518         New module 'thread'.
26519         * modules/thread: New file.
26520         * lib/glthread/thread.h: New file.
26521         * m4/thread.m4: New file.
26522         * MODULES.html.sh (Multithreading): Add thread.
26523
26524 2008-08-17  Bruno Haible  <bruno@clisp.org>
26525
26526         * lib/glthread/lock.h: Include <stdlib.h> always.
26527         * lib/glthread/tls.h: Likewise.
26528         * lib/glthread/cond.h: Likewise.
26529
26530 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26531
26532         New module 'cond'.
26533         * modules/cond: New file.
26534         * lib/glthread/cond.h: New file.
26535         * lib/glthread/cond.c: New file.
26536         * m4/cond.m4: New file.
26537         * MODULES.html.sh (Multithreading): Add cond.
26538
26539 2008-08-16  Eric Blake  <ebb9@byu.net>
26540
26541         c-stack: fix regression on Irix 5.3 from 2008-06-21
26542         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
26543         sa_sigaction...
26544         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
26545         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
26546         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
26547         * modules/signal (Makefile.am): Use the value.
26548         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
26549         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
26550         * doc/posix-headers/signal.texi (signal.h): Document this
26551         portability issue.
26552         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
26553         Reported by Tom G. Christensen.
26554
26555 2008-08-17  Bruno Haible  <bruno@clisp.org>
26556
26557         New module 'threadlib'.
26558         * modules/threadlib: New file.
26559         * lib/glthread/threadlib.c: New file, extracted from
26560         lib/glthread/lock.c.
26561         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
26562         functions.
26563         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
26564         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
26565         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
26566         macros.
26567         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
26568         (gl_DISABLE_THREADS): Remove macro.
26569         * modules/lock (Files): Remove build-aux/config.rpath.
26570         (Depends-on): Remove havelib. Add threadlib.
26571         (configure.ac-early): Remove section.
26572         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
26573         * modules/tls (Depends-on): Remove lock. Add threadlib.
26574         (Link): New section, copied from threadlib.
26575         * MODULES.html.sh (Multithreading): Add threadlib.
26576
26577 2008-08-14  Bruno Haible  <bruno@clisp.org>
26578
26579         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
26580         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
26581         glthread_rwlock_unlock, glthread_rwlock_destroy,
26582         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
26583         glthread_recursive_lock_destroy): Define as macros always.
26584         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
26585         glthread_lock_lock.
26586         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
26587         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
26588         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
26589         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
26590         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
26591         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
26592         (glthread_recursive_lock_lock_func): Renamed from
26593         glthread_recursive_lock_lock.
26594         (glthread_recursive_lock_unlock_func): Renamed from
26595         glthread_recursive_lock_unlock.
26596         (glthread_recursive_lock_destroy_func): Renamed from
26597         glthread_recursive_lock_destroy.
26598
26599 2008-08-14  Bruno Haible  <bruno@clisp.org>
26600
26601         * lib/glthread/lock.h: Renamed from lib/lock.h.
26602         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
26603         * lib/glthread/tls.h: Renamed from lib/tls.h.
26604         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
26605         * lib/fstrcmp.c: Update includes.
26606         * lib/strsignal.c: Update includes.
26607         * modules/lock (Files, Makefile.am): Update.
26608         (Include): Change to "glthread/lock.h".
26609         * modules/tls (Files, Makefile.am): Update.
26610         (Include): Change to "glthread/tls.h".
26611         * tests/test-lock.c: Update includes.
26612         * tests/test-tls.c: Update includes.
26613         * NEWS: Mention the renamed header files.
26614
26615 2008-08-11  Jim Meyering  <meyering@redhat.com>
26616
26617         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
26618
26619 2008-08-11  Eric Blake  <ebb9@byu.net>
26620
26621         test-c-stack: avoid C99-ism
26622         * tests/test-c-stack.c (main): Fix whitespace, move declaration
26623         before statement.
26624         Reported by Alain Guibert.
26625
26626 2008-08-10  Jim Meyering  <meyering@redhat.com>
26627
26628         ensure that return value of uinttostr et al are not ignored
26629         * lib/inttostr.h (__GNUC_PREREQ): Define.
26630         (__attribute_warn_unused_result__): Define.
26631         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
26632
26633 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
26634
26635         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
26636         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
26637
26638 2008-08-07  Jim Meyering  <meyering@redhat.com>
26639
26640         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
26641
26642         * modules/mkstemp (License): Relicense under LGPLv2+.
26643         * modules/tempname (License): Likewise.
26644
26645 2008-08-06  Bruno Haible  <bruno@clisp.org>
26646
26647         * lib/poll.c (poll): Further micro-optimization.
26648
26649 2008-08-06  Jim Meyering  <meyering@redhat.com>
26650
26651         inet_pton.c: use locale-independent tolower
26652         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
26653         (inet_pton6): Use c_tolower rather than tolower.
26654         * modules/inet_pton (Depends-on): Add c-ctype.
26655
26656 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
26657
26658         * lib/poll.c (poll): Avoid division when timeout is 0, cache
26659         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
26660
26661 2008-08-06  Jim Meyering  <meyering@redhat.com>
26662
26663         * modules/inet_pton (License): Relicense under LGPLv2+.
26664
26665 2008-08-03  Bruno Haible  <bruno@clisp.org>
26666
26667         Additional non-aborting API for lock and tls.
26668         * lib/lock.h: Include <errno.h>.
26669         (glthread_lock_init): New macro/function.
26670         (gl_lock_init): Define as wrapper around glthread_lock_init.
26671         (glthread_lock_lock): New macro/function.
26672         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
26673         (glthread_lock_unlock): New macro/function.
26674         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
26675         (glthread_lock_destroy): New macro/function.
26676         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
26677         (glthread_rwlock_init): New macro/function.
26678         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
26679         (glthread_rwlock_rdlock): New macro/function.
26680         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
26681         (glthread_rwlock_wrlock): New macro/function.
26682         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
26683         (glthread_rwlock_unlock): New macro/function.
26684         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
26685         (glthread_rwlock_destroy): New macro/function.
26686         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
26687         (glthread_recursive_lock_init): New macro/function.
26688         (gl_recursive_lock_init): Define as wrapper around
26689         glthread_recursive_lock_init.
26690         (glthread_recursive_lock_lock): New macro/function.
26691         (gl_recursive_lock_lock): Define as wrapper around
26692         glthread_recursive_lock_lock.
26693         (glthread_recursive_lock_unlock): New macro/function.
26694         (gl_recursive_lock_unlock): Define as wrapper around
26695         glthread_recursive_lock_unlock.
26696         (glthread_recursive_lock_destroy): New macro/function.
26697         (gl_recursive_lock_destroy): Define as wrapper around
26698         glthread_recursive_lock_destroy.
26699         (glthread_once): New macro/function.
26700         (gl_once): Define as wrapper around glthread_once.
26701         Update function declarations.
26702         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
26703         glthread_rwlock_init. Return error code.
26704         (glthread_rwlock_rdlock_multithreaded): Renamed from
26705         glthread_rwlock_rdlock. Return error code.
26706         (glthread_rwlock_wrlock_multithreaded): Renamed from
26707         glthread_rwlock_wrlock. Return error code.
26708         (glthread_rwlock_unlock_multithreaded): Renamed from
26709         glthread_rwlock_unlock. Return error code.
26710         (glthread_rwlock_destroy_multithreaded): Renamed from
26711         glthread_rwlock_destroy. Return error code.
26712         (glthread_recursive_lock_init_multithreaded): Renamed from
26713         glthread_recursive_lock_init. Return error code.
26714         (glthread_recursive_lock_lock_multithreaded): Renamed from
26715         glthread_recursive_lock_lock. Return error code.
26716         (glthread_recursive_lock_unlock_multithreaded): Renamed from
26717         glthread_recursive_lock_unlock. Return error code.
26718         (glthread_recursive_lock_destroy_multithreaded): Renamed from
26719         glthread_recursive_lock_destroy. Return error code.
26720         (glthread_once_call): Make static.
26721         (glthread_once_multithreaded): Renamed from glthread_once.
26722         * lib/tls.h: Include <errno.h>.
26723         (glthread_tls_key_init): New macro/function.
26724         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
26725         (glthread_tls_set): New macro/function.
26726         (gl_tls_set): Define as wrapper around glthread_tls_set.
26727         (glthread_tls_key_destroy): New macro/function.
26728         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
26729         Update function declarations.
26730         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
26731         glthread_tls_get.
26732         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
26733
26734 2008-08-04  Eric Blake  <ebb9@byu.net>
26735
26736         gnumakefile: use space, not TAB, outside of targets
26737         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
26738
26739 2008-08-02  Jim Meyering  <meyering@redhat.com>
26740
26741         getdate.y: avoid locale-dependent date parsing failure
26742         In Turkish locales, getdate would fail to recognize keywords
26743         containing a lowercase "i".  The solution is not to rely on
26744         locale-sensitive case-conversion.
26745         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
26746         (lookup_word): Use c_toupper in place of toupper.
26747         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
26748         Reported by Vefa Bicakci <bicave@superonline.com> in
26749         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
26750         * modules/getdate (Depends-on): Add c-ctype.
26751
26752 2008-08-02  Bruno Haible  <bruno@clisp.org>
26753
26754         * gnulib-tool (func_import): When updating or creating a .gitignore
26755         file, prepend each added line with a slash, and ignore leading slashes
26756         from the existing lines.
26757         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
26758
26759 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26760
26761         Portability fix for GNU make 3.79.1.
26762         * top/GNUmakefile: Avoid 'else COND', which older GNU make
26763         versions do not understand.
26764
26765 2008-08-01  Bruno Haible  <bruno@clisp.org>
26766
26767         Work around bug of HP-UX 10.20 cc with -0.0 literal.
26768         * tests/test-isnanf.h (zero): New variable.
26769         (main): Avoid literal -0.0f.
26770         * tests/test-isnand.h (zero): New variable.
26771         (main): Avoid literal -0.0.
26772         * tests/test-isnanl.h (zero): New variable.
26773         (main): Avoid literal -0.0L.
26774         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
26775         (test_float, test_double, test_long_double): Avoid literals -0.0f,
26776         -0.0, -0.0L.
26777         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
26778         (test_signbitd): Avoid literal -0.0.
26779         (test_signbitl): Avoid literal -0.0L.
26780         * tests/test-ceilf1.c (zero): New variable.
26781         (main): Avoid literal -0.0f.
26782         * tests/test-ceill.c (zero): New variable.
26783         (main): Avoid literal -0.0L.
26784         * tests/test-floorf1.c (zero): New variable.
26785         (main): Avoid literal -0.0f.
26786         * tests/test-floorl.c (zero): New variable.
26787         (main): Avoid literal -0.0L.
26788         * tests/test-roundf1.c (zero): New variable.
26789         (main): Avoid literal -0.0f.
26790         * tests/test-round1.c (zero): New variable.
26791         (main): Avoid literal -0.0.
26792         * tests/test-roundl.c (zero): New variable.
26793         (main): Avoid literal -0.0L.
26794         * tests/test-truncf1.c (zero): New variable.
26795         (main): Avoid literal -0.0f.
26796         * tests/test-trunc1.c (zero): New variable.
26797         (main): Avoid literal -0.0.
26798         * tests/test-truncl.c (zero): New variable.
26799         (main): Avoid literal -0.0L.
26800         * tests/test-frexp.c (zero): New variable.
26801         (main): Avoid literal -0.0.
26802         * tests/test-frexpl.c (zero): New variable.
26803         (main): Avoid literal -0.0L.
26804         * tests/test-ldexpl.c (zero): New variable.
26805         (main): Avoid literal -0.0L.
26806         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
26807         (zerod, zerol): New variables.
26808         (test_function): Avoid literals -0.0, -0.0L.
26809         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
26810         (zerod, zerol): New variables.
26811         (test_function): Avoid literals -0.0, -0.0L.
26812         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
26813         (zerod, zerol): New variables.
26814         (test_function): Avoid literals -0.0, -0.0L.
26815         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
26816         (zerod, zerol): New variables.
26817         (test_function): Avoid literals -0.0, -0.0L.
26818         * tests/test-strtod.c (zero): New variable.
26819         (main): Avoid literal -0.0.
26820         Reported by Jonathan C. Patschke <jp@centtech.com>.
26821
26822 2008-07-31  Jim Meyering  <meyering@redhat.com>
26823
26824         sha256.h: correct definition of SHA224_DIGEST_SIZE
26825         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
26826         Reported by Paulie Pena IV <paulie4@gmail.com>.
26827         Define as 224 / 8, rather than as a literal.
26828         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
26829         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
26830         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
26831
26832 2008-07-31  Bruno Haible  <bruno@clisp.org>
26833
26834         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
26835         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
26836         Reported by Jonathan Patschke <jp@centtech.com>.
26837
26838 2008-07-31  Bruno Haible  <bruno@clisp.org>
26839
26840         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
26841         Reported by Paolo Bonzini <bonzini@gnu.org>.
26842
26843 2008-07-30  Eric Blake  <ebb9@byu.net>
26844
26845         test-strtod: allow compilation without -lm
26846         * tests/test-strtod.c (main): Avoid link dependence on fabs.
26847         Reported by Dennis Clarke <blastwave@gmail.com>.
26848
26849 2008-07-28  Jim Meyering  <meyering@redhat.com>
26850
26851         bootstrap: work also when there are no .po files in po/
26852         * build-aux/bootstrap (update_po_files): Complete the change
26853         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
26854
26855 2008-07-27  Jim Meyering  <meyering@redhat.com>
26856
26857         * users.txt: Add zile.
26858
26859 2008-07-26  Ben Pfaff  <blp@gnu.org>
26860
26861         Add missing dependencies on new m4/exponent[fdl].m4 files.
26862         * modules/isnanf-nolibm: Add m4/exponentf.m4.
26863         * modules/isnand-nolibm: Add m4/exponentd.m4.
26864         * modules/isnanl-nolibm: Add m4/exponentl.m4.
26865         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
26866         m4/isnan[fdl].m4, because the macros actually used moved.
26867         Reported by Jim Meyering.
26868
26869 2008-07-14  Ben Pfaff  <blp@gnu.org>
26870
26871         Add isinf module.
26872         * lib/isinf.c: New file.
26873         * lib/math.in.h: Define isinf macro if we have decided to replace
26874         it.
26875         * m4/isinf.m4: New file.
26876         * m4/math_h.m4: Initialize and substitute variables for isinf
26877         module.
26878         * modules/isinf: New file.
26879         * modules/isinf-tests: New file.
26880         * modules/math: Add substitutions for new module.
26881         * tests/test-isinf.c: New file.
26882         * doc/posix-functions/isinf.texi: Mention new module.
26883         * MODULES.html.sh: Mention new module.
26884
26885 2008-07-14  Ben Pfaff  <blp@gnu.org>
26886
26887         Factor out some macros for use by additional modules.
26888         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
26889         exponentf.m4.
26890         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
26891         exponentd.m4.
26892         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
26893         file exponentl.m4.
26894         * m4/exponentf.m4: New file.
26895         * m4/exponentd.m4: New file.
26896         * m4/exponentl.m4: New file.
26897         * modules/isnanf: Use new file m4/exponentf.m4.
26898         * modules/isnand: Use new file m4/exponentd.m4.
26899         * modules/isnanl: Use new file m4/exponentl.m4.
26900
26901 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
26902
26903         mktime.c: normalize tp->tm_isdst value to -1/0/1.
26904         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
26905         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
26906         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
26907
26908         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
26909         readlink on platforms without PATH_MAX.
26910
26911 2008-07-21  Eric Blake  <ebb9@byu.net>
26912
26913         Warn, not fail, on stale version.
26914         * top/GNUmakefile (_curr-ver): Tone down previous patch.
26915
26916         Don't allow installation with stale devel version number.
26917         * top/GNUmakefile (_is-install-target): New macro.
26918         (_curr-ver): Forbid installation with stale version number.
26919
26920 2008-07-20  Bruno Haible  <bruno@clisp.org>
26921
26922         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
26923         TESTS_ENVIRONMENT.
26924         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
26925
26926 2008-07-20  Bruno Haible  <bruno@clisp.org>
26927
26928         * lib/c-stack.h (c_stack_action): Add documentation.
26929         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
26930
26931 2008-07-20  Bruno Haible  <bruno@clisp.org>
26932
26933         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
26934         * modules/readlink (License): Likewise.
26935
26936 2008-07-17  Eric Blake  <ebb9@byu.net>
26937
26938         * modules/c-stack (Link): Fix typo.
26939
26940         Make c-stack use libsigsegv, when available.
26941         * modules/c-stack (Depends-on): Add libsigsegv.
26942         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
26943         needed.
26944         * lib/c-stack.c (SIGSTKSZ): Define fallback.
26945         (segv_handler, overflow_handler, c_stack_action)
26946         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
26947         implementation when libsigsegv is available, but only when using
26948         the library is necessary.
26949         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
26950         comment, explaining why XSI check fails on Linux.
26951         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
26952         * tests/test-c-stack2.sh: Tweak skip message.
26953         * NEWS: Document new link-time requirements.
26954
26955 2008-07-16  Eric Blake  <ebb9@byu.net>
26956
26957         c-stack: Expose false positives when not using libsigsegv.
26958         * modules/c-stack-tests (Files): Expand test.
26959         * tests/test-c-stack.c (main): Add means to conditionally trigger
26960         non-overflow SIGSEGV.
26961         * tests/test-c-stack2.sh: New file.
26962
26963 2008-07-14  Bruno Haible  <bruno@clisp.org>
26964
26965         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
26966         Reported by Eric Blake.
26967
26968 2008-07-14  Sam Steingold  <sds@gnu.org>
26969             Bruno Haible  <bruno@clisp.org>
26970
26971         New module libsigsegv.
26972         * modules/libsigsegv: New file.
26973         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
26974         modifications.
26975         * MODULES.html.sh (Signal handling): New section.
26976
26977 2008-07-14  Bruno Haible  <bruno@clisp.org>
26978
26979         * modules/unictype/ctype-* (Description): Add the word "function".
26980         Improves the resulting doc in MODULES.html.
26981
26982 2008-07-12  Ben Pfaff  <blp@gnu.org>
26983
26984         Add longlong module.
26985         * modules/longlong: New file.
26986
26987 2008-07-12  Bruno Haible  <bruno@clisp.org>
26988
26989         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
26990         to empty.
26991
26992 2008-07-10  Ben Pfaff  <blp@gnu.org>
26993
26994         Add isnan module.
26995         * doc/posix-functions/isnan.texi: Mention new module.
26996         * lib/math.in.h: Define isnan macro if we have decided to replace
26997         it.
26998         * m4/isnan.m4: New file.
26999         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
27000         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
27001         also.
27002         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
27003         redundancy.
27004         * m4/math_h.m4: Initialize and substitute variables for isnan
27005         module.
27006         * modules/isnan: New file.
27007         * modules/isnan-tests: New file.
27008         * modules/math: Add substitutions for new module.
27009         * tests/test-isnan.c: New file.
27010         * MODULES.html.sh: Mention new module.
27011
27012 2008-07-10  Ben Pfaff  <blp@gnu.org>
27013
27014         Add isnanf module.
27015         * lib/isnanf.m4: New file.
27016         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
27017         (gl_HAVE_ISNANF_IN_LIBM): New macro.
27018         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
27019         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
27020         * modules/isnanf: New file.
27021         * modules/isnanf-tests: New file.
27022         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
27023         files.
27024         * tests/test-isnanf-nolibm.c: factored most of its contents into
27025         new file tests/test-isnanf.h.
27026         * tests/test-isnanf.h: New file.
27027         * tests/test-isnanf.c: New file.
27028         * MODULES.html.sh: Mention new module.
27029         * doc/glibc-functions/isnanf.texi: Mention new module.
27030
27031 2008-07-10  Ben Pfaff  <blp@gnu.org>
27032
27033         Add isnand module.
27034         * lib/isnand.h: New file.
27035         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
27036         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
27037         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
27038         functionality also.
27039         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
27040         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
27041         (gl_HAVE_ISNAND_IN_LIBM): New macro.
27042         * modules/isnand: New file.
27043         * modules/isnand-tests: New file.
27044         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
27045         files.
27046         * tests/test-isnand-nolibm.c: factored most of its contents into
27047         new file tests/test-isnand.h.
27048         * tests/test-isnand.h: New file.
27049         * tests/test-isnand.c: New file.
27050         * MODULES.html.sh: Mention new module.
27051
27052 2008-07-10  Ben Pfaff  <blp@gnu.org>
27053
27054         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
27055         * lib/isnand.h: Rename lib/isnand-nolibm.h.
27056         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
27057         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
27058         * modules/isnanf-nolibm: Update references to renamed files.
27059         * modules/isnand-nolibm: Likewise.
27060         * modules/isnanf-nolibm-tests: Likewise.
27061         * modules/isnand-nolibm-tests: Likewise.
27062         * lib/frexp.c: Likewise.
27063         * lib/isfinite.c: Likewise.
27064         * lib/signbitd.c: Likewise.
27065         * lib/signbitf.c: Likewise.
27066         * lib/vasnprintf.c: Likewise.
27067         * tests/test-ceilf1.c: Likewise.
27068         * tests/test-ceilf2.c: Likewise.
27069         * tests/test-floorf1.c: Likewise.
27070         * tests/test-floorf2.c: Likewise.
27071         * tests/test-frexp.c: Likewise.
27072         * tests/test-round1.c: Likewise.
27073         * tests/test-round2.c: Likewise.
27074         * tests/test-roundf1.c: Likewise.
27075         * tests/test-strtod.c: Likewise.
27076         * tests/test-trunc1.c: Likewise.
27077         * tests/test-trunc2.c: Likewise.
27078         * tests/test-truncf1.c: Likewise.
27079         * tests/test-truncf2.c: Likewise.
27080         * NEWS: Mention the renamed header files.
27081
27082 2008-07-11  Jim Meyering  <meyering@redhat.com>
27083
27084         vc-list-files: make the last-resort awk code more portable
27085         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
27086         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
27087         does not support it.
27088
27089 2008-07-10  Eric Blake  <ebb9@byu.net>
27090
27091         Work with tar's bootstrap.
27092         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
27093         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
27094         an m4 comment.
27095
27096 2008-07-09  Jim Meyering  <meyering@redhat.com>
27097
27098         posix-shell.m4: fix typo that made this test malfunction
27099         * m4/posix-shell.m4: Remove capitalization in variable name.
27100
27101 2008-07-08  Bruno Haible  <bruno@clisp.org>
27102
27103         * m4/onceonly.m4: Update comments.
27104         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27105
27106 2008-07-04  Jim Meyering  <meyering@redhat.com>
27107
27108         * users.txt: Add vc-dwim.
27109         (bison, coreutils): Use the gitweb URL.
27110
27111 2008-07-03  Jim Meyering  <meyering@redhat.com>
27112
27113         * users.txt: Add libffcall.  From Sam Steingold.
27114
27115 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
27116
27117         getdate.y: do not ignore TZ with relative day, month or year offset
27118         * lib/getdate.y (get_date): Move the tz-handling block to follow the
27119         relative-date-handling, since otherwise, the latter would clobber the
27120         sole output (an updated Start value) of the tz-handling block.
27121         * tests/test-getdate.c: Tests for the fix
27122
27123 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27124
27125         Recognize 'foo_LIBRARIES += libgnu.a'.
27126         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
27127         makefile snippet has already specified an installation location,
27128         also using '+='.
27129
27130 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
27131
27132         getdate.y: factor out common actions
27133         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
27134         Use them in place of open-coded actions.
27135
27136 2008-07-01  Simon Josefsson  <simon@josefsson.org>
27137
27138         Add self-test for getdate module.
27139         * modules/getdate-tests: New file.
27140         * tests/test-getdate.c: New file.
27141
27142 2008-06-29  Bruno Haible  <bruno@clisp.org>
27143
27144         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
27145         .gitignore.
27146         Reported by Sylvain Beucler <beuc@beuc.net>.
27147
27148 2008-06-29  Bruno Haible  <bruno@clisp.org>
27149
27150         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
27151         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
27152
27153 2008-06-29  Bruno Haible  <bruno@clisp.org>
27154
27155         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
27156         EXTRA_DIST.
27157         Reported by Sylvain Beucler <beuc@beuc.net>.
27158
27159 2008-06-26  Jim Meyering  <meyering@redhat.com>
27160
27161         make several modules depend on the "open" module
27162         This provides slightly increased consistency when opening-for-write
27163         the name of a non-directory spelled with a trailing slash.
27164         * modules/chdir-safer: Likewise.
27165         * modules/chown: Likewise.
27166         * modules/clean-temp: Likewise.
27167         * modules/copy-file: Likewise.
27168         * modules/fchdir: Likewise.
27169         * modules/fcntl-safer: Likewise.
27170         * modules/pipe: Likewise.
27171         * modules/utime: Likewise.
27172         Prompted by Eric Blake and Bruno Haible.
27173
27174 2008-06-24  Andreas Schwab  <schwab@suse.de>
27175
27176         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
27177         literals can be used as initializers for global variables.
27178
27179 2008-06-23  Eric Blake  <ebb9@byu.net>
27180
27181         Make gnulib-cache.m4 easier to diff.
27182         * gnulib-tool (func_import): Allow newlines when reading cached
27183         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
27184
27185 2008-06-23  Bruno Haible  <bruno@clisp.org>
27186
27187         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
27188         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
27189         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
27190         m4/signalblocking.m4.
27191         (gl_PREREQ_SIGACTION): Don't invoke it.
27192         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
27193         gl_PREREQ_SIG_HANDLER_H.
27194         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
27195         Don't check for sigaction here.
27196
27197 2008-06-23  Bruno Haible  <bruno@clisp.org>
27198
27199         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
27200         (install_handlers): Don't set the SA_RESETHAND flag.
27201
27202 2008-06-23  Bruno Haible  <bruno@clisp.org>
27203
27204         * m4/sigaction.m4: Comment fixes.
27205         * lib/signal.in.h: Likewise.
27206
27207 2008-06-23  Eric Blake  <ebb9@byu.net>
27208
27209         Fix typo.
27210         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
27211
27212         Avoid SA_ namespace.
27213         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
27214         Reported by Ralf Wildenhues.
27215
27216         Avoid test failure due to SA_RESTORER.
27217         * tests/test-sigaction.c (SA_MASK): New macro.
27218         (main): Avoid failing due to extension flags being set.
27219         Reported by Jim Meyering.
27220
27221         Revert use of sig-handler.h in sigprocmask.c.
27222         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
27223         it requires the existence of struct sigaction.
27224         * lib/sigprocmask.c (handler_t): Restore typedef.
27225         (rpl_signal, old_handlers): Use local type.
27226
27227 2008-06-22  Bruno Haible  <bruno@clisp.org>
27228
27229         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
27230         conditionally.
27231         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
27232
27233 2008-06-22  Bruno Haible  <bruno@clisp.org>
27234
27235         * doc/posix-functions/siginterrupt.texi: Move note.
27236
27237         * lib/signal.in.h (SA_RESTART): New macro.
27238         * lib/sigaction.c: Update comment.
27239
27240         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
27241
27242         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
27243         (gl_PREREQ_SIGPROCMASK): Invoke it.
27244         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
27245
27246         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
27247
27248         * lib/sigprocmask.c: Update a comment.
27249
27250 2008-06-21  Eric Blake  <ebb9@byu.net>
27251
27252         Use sigaction module rather than signal().
27253         * modules/c-stack (Depends-on): Add sigaction.
27254         * modules/fatal-signal (Depends-on): Likewise.
27255         * modules/nanosleep (Depends-on): Likewise.
27256         * modules/sigprocmask (Files): Add sig-handler.h.
27257         * modules/sigaction (Files): Likewise.
27258         * lib/sig-handler.h (get_handler): New file, suggested by Paul
27259         Eggert.
27260         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
27261         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
27262         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
27263         (init_fatal_signals): Likewise.
27264         * lib/nanosleep.c (rpl_nanosleep): Likewise.
27265         (siginterrupt): Delete fallback.
27266         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
27267         instead.
27268         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
27269         siginterrupt.
27270
27271         New module sigaction, for mingw.
27272         * modules/sigaction: New module...
27273         * modules/sigaction-tests: ...and its test.
27274         * m4/sigaction.m4: New file.
27275         * lib/sigaction.c: Likewise.
27276         * tests/test-sigaction.c: Likewise.
27277         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
27278         * modules/signal (Makefile.am): Likewise.
27279         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
27280         needed.
27281         * doc/posix-headers/signal.texi (signal.h): Mention provided
27282         types.
27283         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
27284         that sigaction is preferable.
27285         * doc/posix-functions/sigaction.texi (sigaction): Mention new
27286         module.
27287         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
27288         sigaction.
27289
27290         Improve robustness of sigprocmask by overriding signal.
27291         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
27292         is in use.
27293         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
27294         (SIGKILL, SIGSTOP): Provide fallbacks.
27295         (rpl_signal): Implement.
27296         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
27297         signal can be called inside handlers.
27298
27299         Fix nanosleep module on mingw.
27300         * modules/nanosleep (Depends-on): Add sys_select.
27301         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
27302
27303         Fix licensing of sigprocmask.
27304         * modules/raise (License): Relicense as LGPL.
27305
27306 2008-06-21  Bruno Haible  <bruno@clisp.org>
27307
27308         * lib/propername.c (proper_name_utf8): Don't use the transliterated
27309         result if it contains question marks.
27310         Reported by Michael Geng <linux@michaelgeng.de>.
27311
27312 2008-06-19  Bruno Haible  <bruno@clisp.org>
27313
27314         Fix CVS-ism.
27315         * doc/gnulib.texi: Include updated-stamp.texi.
27316         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
27317         (updated-stamp.texi): New rule.
27318         (gnulib.info): Depend on it.
27319         * doc/.gitignore: Add updated-stamp.texi.
27320         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
27321
27322 2008-06-19  Bruno Haible  <bruno@clisp.org>
27323
27324         * doc/Makefile (gnulib.info): Update and simplify dependencies.
27325         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
27326
27327 2008-06-19  Eric Blake  <ebb9@byu.net>
27328
27329         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
27330         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
27331         Reported by Stepan Kasal.
27332
27333 2008-06-18  Bruno Haible  <bruno@clisp.org>
27334
27335         * lib/fatal-signal.c (init_fatal_signals): Add comment.
27336         Reported by Eric Blake.
27337
27338 2008-06-18  Eric Blake  <ebb9@byu.net>
27339
27340         Work around cygwin 1.5.25 strsignal bug.
27341         * tests/test-strsignal.c: Allow for const char *.
27342         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
27343
27344 2008-06-18  Simon Josefsson  <simon@josefsson.org>
27345
27346         * users.txt: Update URL to article and add author/date
27347         information.
27348
27349 2008-06-17  Bruno Haible  <bruno@clisp.org>
27350
27351         New macro gl_DISABLE_THREADS.
27352         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
27353         if the user did not pass --enable-threads or --disable-threads option.
27354         (gl_DISABLE_THREADS): New macro.
27355         Reported by Eric Blake <ebb9@byu.net>.
27356
27357 2008-06-17  Bruno Haible  <bruno@clisp.org>
27358
27359         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
27360         when the macro ignores it.
27361         Based on a patch by Eric Blake <ebb9@byu.net>.
27362
27363 2008-06-17  Bruno Haible  <bruno@clisp.org>
27364
27365         * modules/tls (License): Change to LGPLv2+.
27366         Reported by Eric Blake.
27367
27368 2008-06-17  Eric Blake  <ebb9@byu.net>
27369
27370         Simplify c-stack prerequisites.
27371         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
27372         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
27373         no longer requires <ucontext.h> to exist.  Optimize setrlimit
27374         check.
27375         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
27376         <sys/resource.h>.
27377
27378         Move c-stack test into testsuite.
27379         * modules/c-stack-tests: New file.
27380         * lib/c-stack.c [DEBUG]: Move test program...
27381         * tests/test-c-stack.c: ...into this new file.  Skip rather than
27382         fail test if sigaltstack is lacking.
27383         * tests/test-c-stack.sh: New driver file.
27384
27385 2008-06-16  Eric Blake  <ebb9@byu.net>
27386
27387         Use raise module consistently.
27388         * modules/fatal-signal (Depends-on): Add raise.
27389         * modules/sigprocmask (Depends-on): Likewise.
27390         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
27391         * lib/sigprocmask.c (sigprocmask): Likewise.
27392         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
27393         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
27394
27395         Fix compliance bug in sigpending.
27396         * lib/sigprocmask.c (sigpending): Return pending array via
27397         parameter, not return value.
27398
27399 2008-06-14  Eric Blake  <ebb9@byu.net>
27400
27401         Improve obstack-printf test code.
27402         * tests/test-obstack-printf.c (test_function): Fix comment, and
27403         simplify usage of obstack_* in macros.  Add a test for coverage.
27404         Reported by Bruno Haible.
27405
27406 2008-06-14  Bruno Haible  <bruno@clisp.org>
27407
27408         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
27409         array size as a constant, not as a const variable.
27410         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
27411         AC_USE_SYSTEM_EXTENSIONS.
27412         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
27413         Test whether the obstack_printf function actually exists.
27414         * modules/obstack-printf (Depends-on): Add extensions.
27415         (Include): Remove obstack.h.
27416         * modules/obstack-printf-posix (Depends-on): Add extensions.
27417         (Include): Remove obstack.h.
27418
27419 2008-06-13  Eric Blake  <ebb9@byu.net>
27420
27421         Add obstack-printf and obstack-printf-posix modules.
27422         * modules/obstack-printf: New file.
27423         * modules/obstack-printf-posix: Likewise.
27424         * MODULES.html.sh (Misc): Mention them.
27425         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
27426         Likewise.
27427         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
27428         Likewise.
27429         * modules/stdio (Makefile.am): Accomodate new modules.
27430         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
27431         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
27432         Declare.
27433         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
27434         functions.
27435         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
27436         (gl_REPLACE_OBSTACK_PRINTF): New macros
27437         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
27438         * tests/test-obstack-printf.c: New file.
27439         * modules/obstack-printf-tests: Likewise.
27440         * modules/obstack-printf-posix-tests: Likewise.
27441
27442 2008-06-11  Bruno Haible  <bruno@clisp.org>
27443
27444         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
27445         * lib/open.c: Include errno.h.
27446         (open): Fail when attempting to write to a file that has a trailing
27447         slash.
27448         * tests/test-open.c (main): Test against trailing slash bug.
27449         * doc/posix-functions/open.texi: Mention the trailing slash bug.
27450
27451 2008-06-10  Bruno Haible  <bruno@clisp.org>
27452
27453         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
27454         for $? to work inside the trap command, with various /bin/sh-s.
27455         * tests/test-vc-list-files-cvs.sh: Likewise.
27456
27457 2008-06-10  Bruno Haible  <bruno@clisp.org>
27458
27459         * lib/acl-internal.h: Don't include gettext.h here.
27460         * lib/set-mode-acl.c: Include gettext.h here.
27461         * lib/copy-acl.c: Likewise.
27462
27463 2008-06-10  Bruno Haible  <bruno@clisp.org>
27464
27465         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
27466         * lib/wait-process.c (wait_subprocess): Likewise.
27467         * lib/execute.h (execute): Add termsigp argument.
27468         * lib/execute.c (execute): Likewise.
27469         * lib/csharpcomp.c (compile_csharp_using_pnet,
27470         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
27471         * lib/csharpexec.c (execute_csharp_using_pnet,
27472         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
27473         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
27474         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
27475         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
27476         is_jikes_present): Update.
27477         * lib/javaexec.c (execute_java_class): Update.
27478         * lib/javaversion.c (execute_and_read_line): Update.
27479         * NEWS: Document the changes.
27480         Reported by Eric Blake.
27481
27482 2008-06-10  Eric Blake  <ebb9@byu.net>
27483
27484         Add missing include.
27485         * tests/test-strstr.c (includes): Add <signal.h>.
27486         * tests/test-strcasestr.c (includes): Likewise.
27487         * tests/test-memmem.c (includes): Likewise.
27488
27489 2008-06-10  Bruno Haible  <bruno@clisp.org>
27490
27491         * lib/wait-process.c (wait_subprocess): Add an assertion.
27492
27493 2008-06-10  Bruno Haible  <bruno@clisp.org>
27494
27495         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
27496
27497 2008-06-10  Bruno Haible  <bruno@clisp.org>
27498
27499         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
27500         using alarm().
27501         * tests/test-strcasestr.c (main): Likewise.
27502         * tests/test-strstr.c (main): Likewise.
27503
27504 2008-06-09  Bruno Haible  <bruno@clisp.org>
27505
27506         Work around the Solaris 10 ACE ACLs ABI change.
27507         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
27508         declare if ACL_NO_TRIVIAL is present.
27509         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
27510         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
27511         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
27512         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
27513         define if ACL_NO_TRIVIAL is present.
27514         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
27515         and use the current ABI.
27516         (file_has_acl): Use same #if condition as elsewhere.
27517         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
27518         in use, and use the current ABI.
27519         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
27520         Reported by Jim Meyering.
27521
27522 2008-06-09  Eric Blake  <ebb9@byu.net>
27523
27524         Work around environments that (stupidly) ignore SIGALRM.
27525         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
27526         before using alarm().
27527         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
27528         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
27529         Reported by Ian Beckwith <ianb@erislabs.net>.
27530
27531         Produce autobuild blurb earlier in log.
27532         * modules/autobuild (configure.ac-early): Move AB_INIT here.
27533
27534 2008-06-09  Jim Meyering  <meyering@redhat.com>
27535         and OndÅ™ej Vašík  <ovasik@redhat.com>
27536
27537         utimens.c: correct kernel bug work-around
27538         OndÅ™ej Vašík found that the invalid return value of 280 indicates
27539         failure, not success, and the kernel bug we're trying to work
27540         around affects not just the utimensat call, but also the fallback
27541         futimens call.
27542         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
27543         not success.
27544         [HAVE_FUTIMENS]: Use the same work-around, here.
27545
27546 2008-06-09  Jim Meyering  <meyering@redhat.com>
27547
27548         add more guards around definition of ACE_-related code
27549         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
27550         ALLOW and ACE_OWNER are also defined.
27551
27552 2008-06-08  Bruno Haible  <bruno@clisp.org>
27553
27554         * lib/acl-internal.h: Add me as co-author.
27555         * lib/file-has-acl.c: Likewise.
27556         * lib/set-mode-acl.c: Likewise.
27557         * lib/copy-acl.c: Likewise.
27558
27559 2008-06-08  Bruno Haible  <bruno@clisp.org>
27560
27561         Add support for AIX ACLs.
27562         * lib/acl-internal.h (acl_nontrivial): New declaration.
27563         * lib/file-has-acl.c (acl_nontrivial): New function.
27564         (file_has_acl): Add implementation using AIX 4 ACL API.
27565         * lib/set-mode-acl.c (qset_acl): Likewise.
27566         * lib/copy-acl.c (qcopy_acl): Likewise.
27567
27568 2008-06-08  Bruno Haible  <bruno@clisp.org>
27569
27570         Add support for HP-UX ACLs.
27571         * lib/acl-internal.h (acl_nontrivial): New declaration.
27572         * lib/file-has-acl.c (acl_nontrivial): New function.
27573         (file_has_acl): Add implementation using HP-UX 11 ACL API.
27574         * lib/set-mode-acl.c (qset_acl): Likewise.
27575         * lib/copy-acl.c (qcopy_acl): Likewise.
27576
27577 2008-06-08  Bruno Haible  <bruno@clisp.org>
27578
27579         Add support for Cygwin ACLs.
27580         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
27581         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
27582         the chmod_or_fchmod call.
27583         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
27584
27585 2008-06-08  Bruno Haible  <bruno@clisp.org>
27586
27587         Fix bug with setuid modes in Solaris 10+ code.
27588         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
27589         succeeded, when the mode contains some special bits.
27590
27591 2008-06-08  Bruno Haible  <bruno@clisp.org>
27592
27593         Add support for Solaris 7..10 ACLs.
27594         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
27595         declarations.
27596         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
27597         functions.
27598         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
27599         * lib/set-mode-acl.c (qset_acl): Likewise.
27600         * lib/copy-acl.c (qcopy_acl): Likewise.
27601
27602 2008-06-08  Bruno Haible  <bruno@clisp.org>
27603
27604         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
27605         declaration.
27606         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
27607         (acl_access_nontrivial): Remove MacOS X case.
27608         (file_has_acl): Use acl_extended_nontrivial.
27609         * lib/copy-acl.c (qcopy_acl): Likewise.
27610
27611 2008-06-08  Bruno Haible  <bruno@clisp.org>
27612
27613         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
27614
27615 2008-06-08  Jim Meyering  <meyering@redhat.com>
27616
27617         * modules/acl (Maintainer): Add Bruno Haible.
27618
27619 2008-06-07  Bruno Haible  <bruno@clisp.org>
27620
27621         Improve support for Tru64 ACLs.
27622         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
27623         ACL on OSF/1.
27624
27625 2008-06-07  Bruno Haible  <bruno@clisp.org>
27626
27627         Add support for MacOS X ACLs.
27628         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
27629         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
27630         * lib/set-mode-acl.c (qset_acl): Likewise.
27631         * lib/copy-acl.c (qcopy_acl): Likewise.
27632
27633 2008-06-07  Bruno Haible  <bruno@clisp.org>
27634
27635         Fix memory leak introduced on 2008-05-22.
27636         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
27637         use.
27638
27639 2008-06-07  Bruno Haible  <bruno@clisp.org>
27640
27641         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
27642         to construct an empty ACL.
27643
27644 2008-06-07  Bruno Haible  <bruno@clisp.org>
27645
27646         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
27647         precisely.
27648         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
27649
27650 2008-06-07  Bruno Haible  <bruno@clisp.org>
27651
27652         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
27653         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
27654
27655 2008-06-07  Bruno Haible  <bruno@clisp.org>
27656
27657         * doc/posix-functions/_setjmp.texi: Explain the use of this function
27658         regardless of POSIX.
27659         * doc/posix-functions/_longjmp.texi: Likewise.
27660         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
27661         SystemV platform in this case.
27662
27663 2008-06-06  Eric Blake  <ebb9@byu.net>
27664
27665         Document abort() bugs.
27666         * doc/posix-functions/abort.texi (abort): Mention anomalies.
27667
27668         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
27669         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
27670         sigsetjmp.
27671         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
27672         siglongjmp, but only as a macro.
27673         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
27674         is obsolete.
27675         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
27676
27677         Tweak documentation to cover cygwin argz bugs.
27678         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
27679         argz bug fix; no code change needed since no cygwin releases
27680         occurred between the last fix and the bug being tested.
27681         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
27682         module and recently fixed cygwin bugs.
27683         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
27684         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
27685         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
27686         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
27687         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
27688         Likewise.
27689         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
27690         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
27691         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
27692         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
27693         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
27694         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
27695         Likewise.
27696
27697         Avoid gcc warning on cygwin.
27698         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
27699         !ACL_NO_TRIVIAL]: Avoid unused variable.
27700
27701 2008-06-05  Eric Blake  <ebb9@byu.net>
27702
27703         Be tolerant of UNKNOWN version in gnulib-tool test dir.
27704         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
27705         git-version-gen fails to come up with a version.
27706         Reported by Simon Josefsson.
27707
27708 2008-06-05  Jim Meyering  <meyering@redhat.com>
27709             Paul Eggert  <eggert@cs.ucla.edu>
27710
27711         utimens.c: work around a probable Linux kernel bug
27712         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
27713         appears to be a kernel bug that causes utimensat to return 280
27714         instead of 0, indicating success.
27715
27716 2008-06-04  Bruno Haible  <bruno@clisp.org>
27717
27718         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
27719         2008-06-01 commit.
27720
27721 2008-06-04  Bruno Haible  <bruno@clisp.org>
27722
27723         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
27724         * lib/file-has-acl.c (acl_access_nontrivial): New function.
27725         (file_has_acl): Use it. Save errno afterwards.
27726         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
27727
27728 2008-06-03  Bruno Haible  <bruno@clisp.org>
27729
27730         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
27731         draft code. Simplify #ifs.
27732         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
27733         Put Solaris code after POSIX-draft code. Fix comments regarding
27734         Solaris 10, HP-UX. Mention Cygwin.
27735         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
27736
27737 2008-06-03  Eric Blake  <ebb9@byu.net>
27738
27739         Provide fallback for older kernels.
27740         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
27741         Provide runtime fallback if kernel lacks support.
27742         Reported by Mike Frysinger.
27743
27744 2008-06-02  Bruno Haible  <bruno@clisp.org>
27745
27746         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
27747         it exists.
27748
27749 2008-06-02  Bruno Haible  <bruno@clisp.org>
27750
27751         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
27752         * lib/copy-acl.c (qcopy_acl): Update comment.
27753
27754 2008-06-02  Bruno Haible  <bruno@clisp.org>
27755
27756         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
27757         like ACL APIs.
27758
27759 2008-06-02  Bruno Haible  <bruno@clisp.org>
27760
27761         * tests/test-file-has-acl.sh: Use different code for Cygwin.
27762         * tests/test-set-mode-acl.sh: Likewise.
27763         * tests/test-copy-acl.sh: Likewise.
27764         * tests/test-copy-file.sh: Likewise.
27765
27766 2008-06-02  Bruno Haible  <bruno@clisp.org>
27767
27768         * tests/test-file-has-acl.sh: Remove unused code.
27769
27770 2008-06-01  Bruno Haible  <bruno@clisp.org>
27771
27772         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
27773         (copy_acl): Just a wrapper around qcopy_acl that emits the error
27774         messages.
27775         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
27776
27777 2008-06-01  Bruno Haible  <bruno@clisp.org>
27778
27779         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
27780         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
27781         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
27782         APIs.
27783         * modules/acl-tests (configure.ac): Remove tests now contained in
27784         m4/acl.m4.
27785
27786 2008-06-02  Jim Meyering  <meyering@redhat.com>
27787
27788         announce-gen: use a better key-server host name
27789         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
27790         it may be more consistently reliable.  Suggested by Werner Koch
27791         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
27792
27793 2008-06-01  Bruno Haible  <bruno@clisp.org>
27794
27795         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
27796         Reported by Voroskoi Andras <voroskoi@gmail.com>.
27797
27798 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
27799
27800         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
27801
27802 2008-06-01  Bruno Haible  <bruno@clisp.org>
27803
27804         New ACL tests.
27805         * tests/test-file-has-acl.sh: New file.
27806         * tests/test-file-has-acl.c: New file.
27807         * tests/test-set-mode-acl.sh: New file.
27808         * tests/test-set-mode-acl.c: New file.
27809         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
27810         * tests/test-copy-acl.c: New file.
27811         * modules/acl-tests: New file, based on modules/copy-file-tests.
27812         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
27813         (Depends-on): Add acl-tests.
27814         (configure.ac): Remove checks.
27815         (Makefile.am): Don't create test-sameacls program here any more.
27816
27817 2008-06-01  Bruno Haible  <bruno@clisp.org>
27818
27819         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
27820         * tests/test-sameacls.c: Include progname.h.
27821         (main): Invoke set_program_name. Portability fixes for MacOS X,
27822         Solaris, HP-UX.
27823
27824 2008-06-01  Bruno Haible  <bruno@clisp.org>
27825
27826         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
27827         function.
27828         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
27829
27830 2008-06-01  Bruno Haible  <bruno@clisp.org>
27831
27832         * modules/rpmatch (Depends-on): Add strdup.
27833
27834 2008-06-01  Bruno Haible  <bruno@clisp.org>
27835
27836         * lib/pipe.c: Include unistd-safer.h.
27837         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
27838         * modules/pipe (Depends-on): Add unistd-safer.
27839
27840 2008-05-30  Simon Josefsson  <simon@josefsson.org>
27841
27842         * modules/autobuild (configure.ac): Call AB_INIT.
27843
27844 2008-05-30  Simon Josefsson  <simon@josefsson.org>
27845
27846         * tests/test-getaddrinfo.c: Don't print debug messages by default.
27847         Suggested by Bruno Haible <bruno@clisp.org>.
27848
27849 2008-05-30  Simon Josefsson  <simon@josefsson.org>
27850
27851         * tests/test-base64.c: Cast size_t to unsigned long when invoking
27852         printf.  Use %lu instead of %d.  Reported by Bruno Haible
27853         <bruno@clisp.org>.
27854
27855 2008-05-29  Eric Blake  <ebb9@byu.net>
27856
27857         Prefer new POSIX 200x interfaces over futimesat.
27858         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
27859         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
27860         when available.
27861         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
27862
27863 2008-05-28  Bruno Haible  <bruno@clisp.org>
27864
27865         * modules/stpcpy (License): Change to LGPLv2+.
27866         Requested by David Lutterkort <dlutter@redhat.com>.
27867
27868 2008-05-27  Bruno Haible  <bruno@clisp.org>
27869
27870         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
27871         current mingw.
27872         Reported by Jose E. Marchesi <jemarch@gnu.org>.
27873
27874 2008-05-27  Bruno Haible  <bruno@clisp.org>
27875
27876         * modules/iconv_open (Link): New section, from module 'iconv'.
27877         * modules/striconv (Link): Likewise.
27878         * modules/striconveh (Link): Likewise.
27879         * modules/xstriconv (Link): Likewise.
27880         * modules/unicodeio (Link): Likewise.
27881         * modules/propername (Link): Likewise.
27882         Reported by Jim Meyering.
27883
27884 2008-05-26  Jim Meyering  <meyering@redhat.com>
27885
27886         sha256: do not artificially restrict buffer length to be < 2^32
27887         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
27888         uint32_t to size_t.
27889         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
27890         to match.
27891
27892         avoid unaligned access errors, e.g., on sparc
27893         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
27894         direct access through a possibly-unaligned uint64* pointer.
27895         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
27896         direct access through a possibly-unaligned uint32* pointer.
27897         Prompted by this patch from Tom "spot" Callaway:
27898         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
27899
27900         sha512.c: fix typo in comment
27901         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
27902
27903 2008-05-25  Bruno Haible  <bruno@clisp.org>
27904
27905         * lib/set-mode-acl.c: Renamed from lib/acl.c.
27906         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
27907         (Makefile.am): Update lib_SOURCES.
27908
27909 2008-05-25  Bruno Haible  <bruno@clisp.org>
27910
27911         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
27912
27913 2008-05-25  Jim Meyering  <meyering@redhat.com>
27914
27915         useless-if-before-free: freed expr may have white-space differences
27916         * build-aux/useless-if-before-free: Recognize cases in which the
27917         freed expression differs from the tested one in embedded white
27918         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
27919         $1 was used, so we can't make any regexp shy.  Improved tests now
27920         detect this.
27921
27922         useless-if-before-free: accept white space in the expression.
27923         * build-aux/useless-if-before-free: For now, any white space
27924         in the expression must be identical in the free argument.
27925
27926         useless-if-before-free: efficiency tweak
27927         * build-aux/useless-if-before-free: Make the expression-matching
27928         regexp "shy".
27929         Make the *outer* regexp shy, not the expr-matching one.
27930
27931         update code-in-comment to accept cast of free arg
27932         * build-aux/useless-if-before-free: Update regexp.
27933
27934 2008-05-25  Bruno Haible  <bruno@clisp.org>
27935
27936         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
27937         * modules/copy-file-tests (Files, Makefile.am): Update.
27938         * tests/test-copy-file.c (func_test_copy): Update.
27939
27940 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
27941
27942         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
27943
27944 2008-05-23  Bruno Haible  <bruno@clisp.org>
27945
27946         Improve support for ACLs on OSF/1.
27947         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
27948         Remove fallback for unknown flavors of ACLs.
27949
27950 2008-05-22  Bruno Haible  <bruno@clisp.org>
27951
27952         Add support for ACLs on OSF/1.
27953         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
27954         replacements.
27955         (acl_free_text): New macro fallback.
27956         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
27957         acl_free.
27958         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
27959         acl_free_text function. Require AC_C_INLINE.
27960
27961 2008-05-22  Bruno Haible  <bruno@clisp.org>
27962
27963         Make copy_acl work on MacOS X 10.5.
27964         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
27965         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
27966         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
27967         If MODE_INSIDE_ACL, don't assume that every system has the same text
27968         representation for ACLs as FreeBSD.
27969         * lib/copy-acl.c (copy_acl): Add support for platforms with
27970         !MODE_INSIDE_ACL.
27971         * lib/file-has-acl.c (file_has_acl): Likewise.
27972         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
27973         FreeBSD, MacOS X, or IRIX, respectively.
27974
27975 2008-05-22  Bruno Haible  <bruno@clisp.org>
27976
27977         * lib/acl.h: Don't include <sys/acl.h>.
27978         (GETACLCNT): Move fallback to lib/acl-internal.h.
27979         * lib/acl-internal.h: Include <sys/acl.h> here.
27980         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
27981
27982 2008-05-22  Bruno Haible  <bruno@clisp.org>
27983
27984         Split off copy_acl function to separate file.
27985         * lib/copy-acl.c: New file, extracted from lib/acl.c.
27986         * lib/acl.c (copy_acl): Moved function to separate file.
27987         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
27988         * modules/acl (Files): Add lib/copy-acl.c.
27989         (Makefiles.am): Augment lib_SOURCES.
27990
27991 2008-05-22  Bruno Haible  <bruno@clisp.org>
27992
27993         * modules/copy-file-tests: New file.
27994         * tests/test-copy-file.sh: New file.
27995         * tests/test-copy-file.c: New file.
27996         * tests/test-copy-file-sameacls.c: New file.
27997
27998 2008-05-22  Eric Blake  <ebb9@byu.net>
27999
28000         Avoid gcc warning.
28001         * tests/test-memcmp.c (main): Pass NULL indirectly.
28002
28003 2008-05-21  Bruno Haible  <bruno@clisp.org>
28004
28005         Add reference doc about ACLs.
28006         * doc/acl-resources.txt: New file.
28007         * doc/acl-cygwin.txt: New file.
28008
28009 2008-05-21  Bruno Haible  <bruno@clisp.org>
28010
28011         Avoid one more warning from gcc.
28012         * lib/vasnprintf.c (IF_LINT): Update comments.
28013         (VASNPRINTF): Use it also for the 'prefix' array initializer.
28014
28015 2008-05-21  Jim Meyering  <meyering@redhat.com>
28016
28017         avoid a warning from gcc
28018         * lib/vasnprintf.c (IF_LINT): Define.
28019         (scale10_round_decimal_long_double):
28020         Use it to avoid a "may be used uninitialized" warning.
28021         (scale10_round_decimal_double): Likewise.
28022
28023 2008-05-21  Simon Josefsson  <simon@josefsson.org>
28024
28025         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
28026         declared.
28027
28028 2008-05-20  Bruno Haible  <bruno@clisp.org>
28029
28030         * tests/test-memcmp.c (main): Test also the sign of the result. Test
28031         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
28032
28033 2008-05-20  Simon Josefsson  <simon@josefsson.org>
28034
28035         * modules/memcmp-tests: New file.
28036         * tests/test-memcmp.c: New file.
28037
28038 2008-05-19  Bruno Haible  <bruno@clisp.org>
28039
28040         * modules/propername (Notice, configure.ac): Put quoted "..." into
28041         --keyword option.
28042         * lib/propername.h: Update comments accordingly.
28043         Reported by Eric Blake.
28044
28045 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
28046
28047         * modules/getpass-gnu (Depends-on): Add fseeko.
28048
28049 2008-05-19  Simon Josefsson  <simon@josefsson.org>
28050
28051         * modules/base64-tests: New file.
28052
28053 2008-05-19  Bo Borgerson <gigabo@gmail.com>
28054
28055         * lib/base64.c (base64_decode_ctx): If a decode context structure
28056         was passed in use it to ignore newlines.  If a context structure
28057         was _not_ passed in, continue to treat newlines as garbage (this
28058         is the historical behavior).  Formerly base64_decode.
28059         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
28060         takes a decode context structure.
28061         * lib/base64.h (base64_decode): Macro for four-argument calls.
28062         (base64_decode_alloc): Likewise.
28063         * lib/base64.c (base64_decode_ctx): If a decode context structure
28064         was passed in use it to ignore newlines.  If a context structure
28065         was _not_ passed in, continue to treat newlines as garbage (this
28066         is the historical behavior).  Formerly base64_decode.
28067         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
28068         takes a decode context structure.
28069         * lib/base64.h (base64_decode): Macro for four-argument calls.
28070         (base64_decode_alloc): Likewise.
28071
28072 2008-05-19  Jim Meyering  <meyering@redhat.com>
28073
28074         avoid a warning from gcc
28075         * lib/trim.c (IF_LINT): Define.
28076         (trim2): Use it to avoid a "may be used uninitialized" warning.
28077
28078         Fix doc typo.
28079         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
28080
28081 2008-05-19  Bruno Haible  <bruno@clisp.org>
28082
28083         * doc/glibc-functions/getpass.texi: Document limits of other
28084         implementations.
28085
28086 2008-05-19  Simon Josefsson  <simon@josefsson.org>
28087             Bruno Haible <bruno@clisp.org>
28088
28089         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
28090
28091 2008-05-18  Bruno Haible  <bruno@clisp.org>
28092
28093         * modules/propername: New file, from GNU gettext.
28094         * lib/propername.h: New file, from GNU gettext.
28095         * lib/propername.c: New file, from GNU gettext.
28096         * MODULES.html.sh (Internationalization functions): Add propername.
28097
28098 2008-05-16  Jim Meyering  <meyering@redhat.com>
28099             Bruno Haible  <bruno@clisp.org>
28100
28101         Avoid some warnings from "gcc -Wshadow".
28102         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
28103
28104 2008-05-15  Eric Blake  <ebb9@byu.net>
28105
28106         Extend previous patch to cygwin 1.7.0.
28107         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
28108         fast implementation in cygwin >= 1.7.0.
28109         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
28110         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
28111
28112 2008-05-15  Bruno Haible  <bruno@clisp.org>
28113
28114         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
28115         implementation in glibc >= 2.9.
28116         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
28117         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
28118
28119 2008-05-15  Bruno Haible  <bruno@clisp.org>
28120
28121         * MODULES.html.sh (Internationalization functions): Remove linebreak.
28122         (Unicode string functions): Add unilbrk/*.
28123         Reported by Karl Berry.
28124
28125 2008-05-15  Eric Blake  <ebb9@byu.net>
28126
28127         Fix violation of <stdbool.h> replacement in regex.
28128         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
28129         * lib/regexec.c (re_search_internal): Likewise.
28130         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
28131
28132 2008-05-15  Jim Meyering  <meyering@redhat.com>
28133
28134         avoid distracting test output when git or cvs is not found
28135         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
28136         * tests/test-vc-list-files-git.sh: Likewise.
28137
28138 2008-05-15  Eric Blake  <ebb9@byu.net>
28139
28140         Glibc finally accepted the memmem speedup code, bugzilla #5514.
28141         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
28142         glibc version.
28143         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
28144         * doc/posix-functions/strstr.texi (strstr): Likewise.
28145         * lib/str-two-way.h (MAX): Sychronize with glibc.
28146
28147 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
28148
28149         * lib/regcomp.c (optimize_utf8): Add a note on why we test
28150         opr.ctx_type.
28151         (calc_first): Initialize constraint field.
28152         (duplicate_node_closure): Use it instead of special casing ANCHORS.
28153         Fix grammar.
28154         (duplicate_node): Merge constraint field for all node types.
28155         (calc_eclosure_iter): Look at constraint field for all node types.
28156         * lib/regex_internal.c (create_cd_newstate): Don't look at
28157         opr.ctx_type.
28158
28159 2008-05-14  Bruno Haible  <bruno@clisp.org>
28160
28161         Help GCC to do better code generation.
28162         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
28163         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
28164         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
28165         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
28166         Declare with attribute 'malloc' if supported.
28167
28168 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
28169
28170         use "echo STR|wc -c" rather than unportable "expr length STR"
28171         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
28172         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
28173
28174 2008-05-14  Jim Meyering  <meyering@redhat.com>
28175
28176         use dd ibs=$n count=1 ... rather than less-portable head -c$n
28177         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
28178         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
28179         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
28180         via Collin Lasse.
28181
28182 2008-05-14  Eric Blake  <ebb9@byu.net>
28183
28184         Avoid quadratic growth in gl_LIBSOURCES.
28185         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
28186         Suggested by Bruno Haible.
28187
28188         Test xmemdup0.
28189         * modules/xmemdup0-tests: New file.
28190         * tests/test-xmemdup0.c: Likewise.
28191
28192 2008-05-13  Eric Blake  <ebb9@byu.net>
28193
28194         Split xmemdup0 into its own module.
28195         * modules/xmemdup0: New file.
28196         * lib/xmemdup0.h: Likewise.
28197         * lib/xmemdup0.c: Likewise.
28198         * MODULES.html.sh (Memory management functions): Add xmemdup0.
28199         * lib/xalloc.h (xmemdup0): Remove.
28200         * lib/xmalloc.c (xmemdup0): Likewise.
28201
28202 2008-05-13  Eric Blake  <ebb9@byu.net>
28203             Bruno Haible  <bruno@clisp.org>
28204
28205         Reduce number of forks required during autoconf.
28206         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
28207         and gl_LIBSOURCES_DIR.
28208         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
28209         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
28210         m4_syscmd per file.
28211         <m4_foreach_w>: Move...
28212         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
28213
28214 2008-05-13  Eric Blake  <ebb9@byu.net>
28215
28216         * gnulib-tool: Fix various comment typos.
28217
28218 2008-05-12  Bruno Haible  <bruno@clisp.org>
28219
28220         Tailor the linebreaking algorithm.
28221         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
28222
28223 2008-05-12  Bruno Haible  <bruno@clisp.org>
28224
28225         Update to Unicode 5.0.0.
28226         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
28227         LBP_JV, LBP_JT. Redistribute values.
28228         (unilbrk_table): Change size.
28229         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
28230         Unicode TR#14 rev. 22.
28231         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
28232         LBP_JV, LBP_JT. Redistribute values.
28233         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
28234         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
28235         Update.
28236         * lib/unilbrk/lbrkprop1.h: Regenerated.
28237         * lib/unilbrk/lbrkprop2.h: Regenerated.
28238         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
28239         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
28240         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
28241         Likewise.
28242         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
28243         Likewise.
28244         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
28245         result.
28246         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
28247         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
28248         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
28249         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
28250         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
28251         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
28252
28253 2008-05-11  Bruno Haible  <bruno@clisp.org>
28254
28255         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
28256
28257 2008-05-11  Bruno Haible  <bruno@clisp.org>
28258
28259         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
28260         * modules/unilbrk/gen-lbrk: New file.
28261
28262 2008-05-11  Bruno Haible  <bruno@clisp.org>
28263
28264         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
28265         * m4/sha512.m4 (gl_SHA512): Likewise.
28266
28267 2008-05-11  Jim Meyering  <meyering@redhat.com>
28268
28269         New modules: crypto/sha256, crypto/sha512 (from coreutils)
28270         * modules/crypto/sha256: New file.
28271         * modules/crypto/sha512: Likewise.
28272         * lib/sha256.c: Likewise.
28273         * lib/sha256.h: Likewise.
28274         * lib/sha512.c: Likewise.
28275         * lib/sha512.h: Likewise.
28276         * lib/u64.h: Likewise.
28277         * m4/sha256.m4: Likewise.
28278         * m4/sha512.m4: Likewise.
28279         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
28280
28281 2008-05-10  Bruno Haible  <bruno@clisp.org>
28282
28283         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
28284         (Input/Output <stdio.h>): Add xprintf.
28285         (Signal handling <signal.h>): Add strsignal.
28286         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
28287         (Core language properties): Add func.
28288         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
28289         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
28290         strings.
28291         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
28292         (Input/output): New section.
28293         (File system functions): Add openat-die, stat-macros.
28294         (Networking functions): Add sockets.
28295         (Unicode string functions): Add unictype/*.
28296         (Support for building libraries and executables): Add gperf.
28297         (Support for building documentation): Add agpl-3.0.
28298         (Misc): Add nocrash.
28299
28300 2008-05-10  Bruno Haible  <bruno@clisp.org>
28301
28302         * modules/unictype/gen-ctype: New file.
28303
28304 2008-05-10  Jim Meyering  <meyering@redhat.com>
28305
28306         Make chdir-safer.c more efficient on a system with no symlinks.
28307         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
28308         also if ELOOP is zero.  Suggested by Bruno Haible.
28309
28310         Make chdir-safer.c slightly safer.
28311         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
28312         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
28313
28314         Avoid compile failure on systems without ELOOP (like mingw).
28315         * lib/chdir-safer.c (ELOOP): Define if not already defined.
28316         Reported by Bruno Haible.
28317
28318 2008-05-10  Bruno Haible  <bruno@clisp.org>
28319
28320         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
28321         (is_utf8_encoding): Use a case-insensitive comparison.
28322         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
28323         streq.
28324
28325 2008-05-10  Bruno Haible  <bruno@clisp.org>
28326
28327         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
28328         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
28329         * lib/unilbrk/ulc-common.h (iconv_string_length,
28330         iconv_string_keeping_offsets): Remove declarations.
28331         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
28332         Don't include <iconv.h>, streq.h, xsize.h.
28333         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
28334         conversion.
28335         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
28336         <iconv.h>, streq.h, xsize.h.
28337         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
28338         conversion.
28339         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
28340         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
28341         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
28342         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
28343
28344 2008-05-10  Bruno Haible  <bruno@clisp.org>
28345
28346         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
28347         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
28348
28349         * modules/unilbrk/u32-width-linebreaks-tests: New file.
28350         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
28351
28352         * modules/unilbrk/u16-width-linebreaks-tests: New file.
28353         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
28354
28355         * modules/unilbrk/u8-width-linebreaks-tests: New file.
28356         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
28357
28358         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
28359         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
28360
28361         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
28362         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
28363
28364         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
28365         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
28366
28367         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
28368         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
28369
28370 2008-05-10  Bruno Haible  <bruno@clisp.org>
28371
28372         Split up 'linebreak' module.
28373         * lib/unilbrk.h: New file, based on lib/linebreak.h.
28374         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
28375         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
28376         modifications.
28377         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
28378         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
28379         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
28380         lib/linebreak.c.
28381         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
28382         lib/linebreak.c.
28383         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
28384         lib/linebreak.c.
28385         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
28386         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
28387         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
28388         lib/linebreak.c.
28389         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
28390         lib/linebreak.c.
28391         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
28392         lib/linebreak.c.
28393         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
28394         lib/linebreak.c.
28395         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
28396         lib/linebreak.c.
28397         * modules/unilbrk/base: New file.
28398         * modules/unilbrk/tables: New file.
28399         * modules/unilbrk/u8-possible-linebreaks: New file.
28400         * modules/unilbrk/u16-possible-linebreaks: New file.
28401         * modules/unilbrk/u32-possible-linebreaks: New file.
28402         * modules/unilbrk/ulc-common: New file.
28403         * modules/unilbrk/ulc-possible-linebreaks: New file.
28404         * modules/unilbrk/u8-width-linebreaks: New file.
28405         * modules/unilbrk/u16-width-linebreaks: New file.
28406         * modules/unilbrk/u32-width-linebreaks: New file.
28407         * modules/unilbrk/ulc-width-linebreaks: New file.
28408         * lib/linebreak.h: Remove file.
28409         * lib/linebreak.c: Remove file.
28410         * m4/linebreak.m4: Remove file.
28411         * modules/linebreak: Remove file.
28412         * NEWS: Mention the changes.
28413
28414 2008-05-09  Eric Blake  <ebb9@byu.net>
28415
28416         Add xmemdup0.
28417         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
28418         implementation.
28419         * lib/xmalloc.c (xmemdup0): New C implementation.
28420
28421 2008-05-08  Bruno Haible  <bruno@clisp.org>
28422
28423         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
28424
28425 2008-05-07  Eric Blake  <ebb9@byu.net>
28426
28427         Support cross-compilation of <wctype.h>.
28428         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
28429         AC_CACHE_CHECK.
28430
28431 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
28432
28433         * build-aux/vc-list-files: Add support for bzr.
28434
28435 2008-05-03  Jim Meyering  <meyering@redhat.com>
28436
28437         avoid failed assertion with tight malloc
28438         * tests/test-getndelim2.c: Correct an off-by-one assertion.
28439
28440 2008-05-03  Simon Josefsson  <simon@josefsson.org>
28441
28442         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
28443         are needed from arpa/inet.h.
28444         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
28445         Reported by Bruno Haible.
28446
28447 2008-05-02  Jim Meyering  <meyering@redhat.com>
28448
28449         avoid compilation error on FreeBSD 6
28450         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
28451
28452 2008-05-01  Jim Meyering  <meyering@redhat.com>
28453
28454         useless-if-before-free: correct --help's exit status description
28455         * build-aux/useless-if-before-free (usage): Like grep, exit 0
28456         for one or more matches, etc.  Reported by Bruno Haible.
28457
28458         vc-list-files: make the stand-alone gnulib test work
28459         * modules/vc-list-files-tests (configure.ac):
28460         Define and AC_SUBST abs_aux_dir.
28461         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
28462         $(abs_top_srcdir) to each script and having each of them
28463         duplicate the work of setting PATH, set PATH here, using
28464         the new variable, abs_aux_dir instead.
28465         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
28466         * tests/test-vc-list-files-git.sh: Likewise.
28467         Reported by Bruno Haible.
28468
28469 2008-05-01  Bruno Haible  <bruno@clisp.org>
28470
28471         * lib/getndelim2.c (getndelim2): Fix newsize computation during
28472         reallocation. Rename 'done' to 'found_delimiter'.
28473
28474 2008-05-01  Jim Meyering  <meyering@redhat.com>
28475
28476         vc-list-files: accommodate /bin/sh like the one from Solaris 10
28477         * build-aux/vc-list-files: Use `...`, not $(...).
28478
28479 2008-04-30  Jim Meyering  <meyering@redhat.com>
28480
28481         add tests for vc-list-files
28482         * modules/vc-list-files-tests: New module.
28483         * tests/test-vc-list-files-cvs.sh: New file.
28484         * tests/test-vc-list-files-git.sh: New file.
28485
28486         avoid a warning from gcc
28487         * lib/getndelim2.c (IF_LINT): Define.
28488         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
28489
28490         vc-list-files: work properly with build-aux/cvsu, too
28491         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
28492         to all cvs-based clauses.
28493
28494         vc-list-files: work properly in the CVS+awk case, too
28495         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
28496
28497         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
28498         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
28499         take more than one file argument, so .  Add quotes, just in case $dir
28500         ever contains a shell meta-character.  Prompted by Soren Hansen in
28501         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
28502
28503 2008-04-29  Eric Blake  <ebb9@byu.net>
28504
28505         Optimize getndelim2 to use block operations when possible.
28506         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
28507         freadseek, and memchr2.
28508         * lib/getndelim2.c (getndelim2): Use them for block reads.
28509
28510 2008-04-29  Bruno Haible  <bruno@clisp.org>
28511
28512         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
28513         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
28514         * modules/inet_ntop (Depends-on): Add extensions.
28515         * modules/inet_pton (Depends-on): Likewise.
28516         Reported by Simon Josefsson.
28517
28518 2008-04-29  Jim Meyering  <meyering@redhat.com>
28519
28520         When the is more than one match in a block, match all of them.
28521         * build-aux/useless-if-before-free: Iterate through each block
28522         until there are no more matches.
28523
28524         Fix broken useless-if-before-free script.
28525         * build-aux/useless-if-before-free: Fix typo: missing "?" after
28526         the expression to match cast of argument to free-like function.
28527
28528 2008-04-29  Eric Blake  <ebb9@byu.net>
28529
28530         Use new header.
28531         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
28532
28533 2008-04-29  Jim Meyering  <meyering@redhat.com>
28534
28535         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
28536         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
28537         by gnulib to exist and to declare e.g., inet_ntop.
28538         Don't include "inet_ntop.h", now removed.
28539
28540         * m4/arpa_inet_h.m4: Remove trailing blanks.
28541
28542 2008-04-29  Eric Blake  <ebb9@byu.net>
28543
28544         Silence valgrind on safe reads beyond potential array bounds.
28545         * lib/rawmemchr.valgrind: New file.
28546         * lib/strchrnul.valgrind: Likewise.
28547         * modules/rawmemchr (Files): Distribute new file.
28548         * modules/strchrnul (Files): Likewise.
28549         Suggested by Bruno Haible.
28550
28551 2008-04-29  Bruno Haible  <bruno@clisp.org>
28552
28553         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
28554         (inet_ntop, inet_pton): Change portability warning's wording.
28555         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
28556         Invoke gl_CHECK_NEXT_HEADERS.
28557         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
28558         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
28559         set ARPA_INET_H.
28560         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
28561         * modules/arpa_inet (Description): No longer only for systems that
28562         lack it.
28563         (Depends-on): Add include_next.
28564         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
28565         HAVE_ARPA_INET_H.
28566
28567 2008-04-29  Jim Meyering  <meyering@redhat.com>
28568
28569         * modules/mkdir (License): Re-license as LGPLv2+.
28570
28571 2008-04-29  Bruno Haible  <bruno@clisp.org>
28572
28573         * modules/rawmemchr (Maintainer): Set to Eric.
28574         * modules/strchrnul (Maintainer): Likewise.
28575
28576 2008-04-29  Simon Josefsson  <simon@josefsson.org>
28577
28578         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
28579         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
28580
28581         * modules/arpa_inet (arpa/inet.h): Use them.
28582
28583 2008-04-28  Eric Blake  <ebb9@byu.net>
28584
28585         Test getndelim2.
28586         * modules/getndelim2-tests: New file.
28587         * tests/test-getndelim2.c: Likewise.
28588         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
28589         stream.
28590         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
28591
28592         * MODULES.html.sh: Document new module.
28593
28594 2008-04-20  Bruno Haible  <bruno@clisp.org>
28595
28596         * lib/c-stack.c (die): Use raise.
28597         * modules/c-stack (Depends-on): Add raise.
28598
28599 2008-04-28  Bruno Haible  <bruno@clisp.org>
28600
28601         Expect rpmatch to be declared.
28602         * lib/yesno.c (rpmatch): Remove declaration.
28603
28604         Declare rpmatch.
28605         * lib/stdlib.in.h (rpmatch): New declaration.
28606         * lib/rpmatch.c: Include <stdlib.h> first.
28607         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
28608         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
28609         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
28610         HAVE_RPMATCH.
28611         * modules/rpmatch (Depends-on): Add stdlib, extensions.
28612         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
28613         (Include): Set to <stdlib.h>.
28614         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
28615         HAVE_RPMATCH.
28616         * NEWS: Document the change.
28617
28618 2008-04-28  Bruno Haible  <bruno@clisp.org>
28619
28620         Change rpmatch to use nl_langinfo when appropriate.
28621         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
28622         (N_): New macro.
28623         (localized_pattern): New function/macro.
28624         (try): Remove match, nomatch arguments. Copy the pattern into safe
28625         memory before caching it.
28626         (rpmatch): Use localized_pattern. Add translator comments.
28627         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
28628         Suggested by Eric Blake.
28629         * modules/rpmatch (Depends-on): Add stdbool.
28630
28631 2008-04-28  Eric Blake  <ebb9@byu.net>
28632
28633         Add rawmemchr module, matching glibc.
28634         * modules/string (Makefile.am): New indicator.
28635         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
28636         * lib/string.in.h (rawmemchr): Declare when appropriate.
28637         * modules/rawmemchr: New file.
28638         * m4/rawmemchr.m4: Likewise.
28639         * lib/rawmemchr.c: Likewise.
28640         * modules/rawmemchr-tests: Likewise.
28641         * tests/test-rawmemchr.c: Likewise.
28642         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
28643         module.
28644         * modules/strchrnul (Depends-on): Add rawmemchr.
28645         * lib/strchrnul.c (strchrnul): Optimize a corner case.
28646
28647         Whitespace cleanup.
28648         * tests/test-strchrnul.c: Reindent.
28649         * lib/strchrnul.c: Likewise.
28650
28651         Optimize and test strchrnul.
28652         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
28653         * modules/strchrnul-tests: New file.
28654         * tests/test-strchrnul.c: Likewise.
28655
28656         Remove intprops dependency.
28657         * modules/memchr (Depends-on): Remove intprops.
28658         * modules/memrchr (Depends-on): Likewise.
28659         * modules/memchr2 (Depends-on): Likewise.
28660         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
28661         * lib/memrchr.c (__memrchr): Likewise.
28662         * lib/memrchr2.c (memchr2): Likewise.
28663         Reported by Simon Josefsson.
28664
28665 2008-04-28  Simon Josefsson  <simon@josefsson.org>
28666
28667         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
28668         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28669
28670 2008-04-28  Simon Josefsson  <simon@josefsson.org>
28671
28672         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
28673
28674         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
28675
28676         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
28677
28678         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
28679         declarations.
28680         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
28681
28682         * m4/inet_pton.m4: Don't check for header files.
28683
28684         * m4/inet_ntop.m4: Don't check for header files.
28685
28686 2008-04-28  Simon Josefsson  <simon@josefsson.org>
28687
28688         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
28689         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
28690         trigger for cygwin).
28691         Reported by Bruno Haible  <bruno@clisp.org>.
28692
28693 2008-04-28  Bruno Haible  <bruno@clisp.org>
28694
28695         * doc/posix-functions/strdup.texi: Mention mingw problem.
28696
28697 2008-04-27  Bruno Haible  <bruno@clisp.org>
28698
28699         * modules/stat-time-tests (Depends-on): Add sleep.
28700         * tests/test-stat-time.c (force_unlink): New function.
28701         (cleanup): Use it.
28702         (test_mtime): Remove the ctime related tests.
28703         (test_ctime): New function, containing the ctime related tests.
28704         (main): Call test_ctime, except on native Windows platforms.
28705
28706 2008-04-27  Bruno Haible  <bruno@clisp.org>
28707
28708         * lib/rpmatch.c (rpmatch): Add some comments.
28709         Reported by James Youngman <jay@gnu.org>.
28710
28711 2008-04-27  Bruno Haible  <bruno@clisp.org>
28712
28713         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
28714         quiet NaNs.
28715
28716 2008-04-27  Bruno Haible  <bruno@clisp.org>
28717
28718         Make test-yesno.sh work on mingw.
28719         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
28720         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
28721         (main): Set stdin to binary mode.
28722         * modules/yesno-tests (Depends-on): Add binary-io.
28723
28724 2008-04-27  Bruno Haible  <bruno@clisp.org>
28725
28726         Fix 'isfinite' on x86, x86_64, ia64 platforms.
28727         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
28728         argument that lie outside the IEEE 854 domain.
28729         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
28730         (gl_ISFINITE): Use it.
28731         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
28732
28733 2008-04-27  Bruno Haible  <bruno@clisp.org>
28734
28735         Allow local renaming in config.h.
28736         * lib/memrchr.c (memrchr): Don't undefine outside libc.
28737
28738 2008-04-27  Bruno Haible  <bruno@clisp.org>
28739
28740         * lib/memchr.c (__memchr): Change type of 'i'.
28741         * lib/memchr2.c (memchr2): Likewise.
28742
28743 2008-04-26  Eric Blake  <ebb9@byu.net>
28744         and Bruno Haible  <bruno@clisp.org>
28745
28746         Optimize and test memrchr.
28747         * modules/memrchr (Depends-on): Add intprops.
28748         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
28749         * modules/memrchr-tests: New file.
28750         * tests/test-memrchr.c: New file.
28751
28752 2008-04-26  Bruno Haible  <bruno@clisp.org>
28753
28754         Add tentative support for DragonFly BSD.
28755         * lib/stdio-impl.h: Add macros for DragonFly BSD.
28756         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
28757         fp.
28758         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
28759         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
28760         * lib/fpurge.c (fpurge): Likewise.
28761         * lib/freadable.c (freaadable): Likewise.
28762         * lib/freadahead.c (freadahead): Likewise.
28763         * lib/freading.c (freading): Likewise.
28764         * lib/freadptr.c (freadptr): Likewise.
28765         * lib/freadseek.c (freadptrinc): Likewise.
28766         * lib/fseeko.c (fseeko): Likewise.
28767         * lib/fseterr.c (fseterr): Likewise.
28768         * lib/fwritable.c (fwritable): Likewise.
28769         * lib/fwriting.c (fwriting): Likewise.
28770
28771 2008-04-26  Bruno Haible  <bruno@clisp.org>
28772
28773         * lib/stdio-impl.h: New file.
28774         * lib/fbufmode.c: Include stdio-impl.h.
28775         (fbufmode): Use fp_, remove redundant #defines.
28776         * lib/fflush.c: Include stdio-impl.h.
28777         (clear_ungetc_buffer): Remove redundant #defines.
28778         * lib/fpurge.c: Include stdio-impl.h.
28779         (fpurge): Remove redundant #defines.
28780         * lib/freadable.c: Include stdio-impl.h.
28781         (freadable): Remove redundant #defines.
28782         * lib/freadahead.c: Include stdio-impl.h.
28783         (freadahead): Remove redundant #defines.
28784         * lib/freading.c: Include stdio-impl.h.
28785         (freading): Remove redundant #defines.
28786         * lib/freadptr.c: Include stdio-impl.h.
28787         (freadptr): Remove redundant #defines.
28788         * lib/freadseek.c: Include stdio-impl.h.
28789         (freadptrinc): Remove redundant #defines.
28790         * lib/fseeko.c: Include stdio-impl.h.
28791         (rpl_fseeko): Remove redundant #defines.
28792         * lib/fseterr.c: Include stdio-impl.h.
28793         (fseterr): Remove redundant #defines.
28794         * lib/fwritable.c: Include stdio-impl.h.
28795         (fwritable: Remove redundant #defines.
28796         * lib/fwriting.c: Include stdio-impl.h.
28797         (fwriting): Remove redundant #defines.
28798         * modules/fbufmode (Files): Add lib/stdio-impl.h.
28799         * modules/fflush (Files): Likewise.
28800         * modules/fpurge (Files): Likewise.
28801         * modules/freadable (Files): Likewise.
28802         * modules/freadahead (Files): Likewise.
28803         * modules/freading (Files): Likewise.
28804         * modules/freadptr (Files): Likewise.
28805         * modules/freadseek (Files): Likewise.
28806         * modules/fseeko (Files): Likewise.
28807         * modules/fseterr (Files): Likewise.
28808         * modules/fwritable (Files): Likewise.
28809         * modules/fwriting (Files): Likewise.
28810
28811 2008-04-26  Bruno Haible  <bruno@clisp.org>
28812
28813         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
28814         restore_seek_optimization, update_fpos_cache): New functions, extracted
28815         from rpl_fflush.
28816         (rpl_fflush): Use them.
28817         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
28818         (gl_REPLACE_FFLUSH): Use it.
28819
28820 2008-04-26  Bruno Haible  <bruno@clisp.org>
28821
28822         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
28823         on Solaris.
28824         * tests/test-xstrtoimax.sh: Likewise.
28825         * tests/test-xstrtoumax.sh: Likewise.
28826         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28827
28828 2008-04-26  Bruno Haible  <bruno@clisp.org>
28829
28830         * modules/memchr-tests: New file.
28831         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
28832
28833 2008-04-26  Eric Blake  <ebb9@byu.net>
28834             Bruno Haible  <bruno@clisp.org>
28835
28836         * lib/memchr.c: Include intprops.h.
28837         (__memchr): Optimize parallel detection of matching bytes. Rename local
28838         variables. Add explanatory comments.
28839
28840 2008-04-26  Bruno Haible  <bruno@clisp.org>
28841
28842         Fix module 'memchr', broken since 2000-10-28.
28843         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
28844
28845 2008-04-26  Bruno Haible  <bruno@clisp.org>
28846
28847         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
28848         comments.
28849
28850 2008-04-25  Eric Blake  <ebb9@byu.net>
28851
28852         Use native fstatat on cygwin 1.7.0.
28853         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
28854         first.
28855
28856 2008-04-23  Eric Blake  <ebb9@byu.net>
28857
28858         Improve memchr2 performance.
28859         * lib/memchr2.c (memchr2): Further optimize parallel detection of
28860         NUL bytes.
28861         * modules/memchr2 (Depends-on): Use intprops.h.
28862
28863 2008-04-23  Simon Josefsson  <simon@josefsson.org>
28864
28865         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
28866         an inline function instead of a CPP macro.  Patch by Ben Pfaff
28867         <blp@cs.stanford.edu>.
28868
28869 2008-04-23  Simon Josefsson  <simon@josefsson.org>
28870
28871         * lib/arpa_inet.in.h: New file.
28872
28873         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
28874         (Makefile.am): Sed in substitute header file.
28875
28876         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
28877         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
28878
28879         * modules/inet_ntop (configure.ac): Use
28880         gl_ARPA_INET_MODULE_INDICATOR.
28881
28882         * modules/inet_pton (configure.ac): Use
28883         gl_ARPA_INET_MODULE_INDICATOR.
28884
28885 2008-04-22  Jim Meyering  <meyering@redhat.com>
28886
28887         * modules/verify (License): Re-license as LGPLv2+.
28888
28889 2008-04-22  Simon Josefsson  <simon@josefsson.org>
28890
28891         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
28892         parameter to void* as per POSIX standard (MinGW uses char*).
28893
28894 2008-04-21  Bruno Haible  <bruno@clisp.org>
28895
28896         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
28897         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
28898         Define to replacements if REPLACE_ISWCNTRL is 1.
28899         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
28900         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
28901         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
28902         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
28903         what it fixes.
28904         * doc/posix-functions/iswalpha.texi: Likewise.
28905         * doc/posix-functions/iswblank.texi: Likewise.
28906         * doc/posix-functions/iswcntrl.texi: Likewise.
28907         * doc/posix-functions/iswdigit.texi: Likewise.
28908         * doc/posix-functions/iswgraph.texi: Likewise.
28909         * doc/posix-functions/iswlower.texi: Likewise.
28910         * doc/posix-functions/iswprint.texi: Likewise.
28911         * doc/posix-functions/iswpunct.texi: Likewise.
28912         * doc/posix-functions/iswspace.texi: Likewise.
28913         * doc/posix-functions/iswupper.texi: Likewise.
28914         * doc/posix-functions/iswxdigit.texi: Likewise.
28915         Reported by Alain Guibert.
28916
28917 2008-04-21  Bruno Haible  <bruno@clisp.org>
28918
28919         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
28920         Patch by Alain Guibert.
28921
28922 2008-04-21  Bruno Haible  <bruno@clisp.org>
28923
28924         Fix test failures on mingw.
28925         * tests/test-xstrtol.c (print_no_progname): New function.
28926         (main): Install it in error_print_progname hook.
28927         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
28928         * tests/test-xstrtoimax.sh: Likewise.
28929         * tests/test-xstrtoumax.sh: Likewise.
28930
28931 2008-04-21  Bruno Haible  <bruno@clisp.org>
28932
28933         Fix test failure on mingw.
28934         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
28935
28936 2008-04-21  Bruno Haible  <bruno@clisp.org>
28937
28938         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
28939         Actually assign a value.
28940
28941 2008-04-20  Bruno Haible  <bruno@clisp.org>
28942
28943         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
28944         take 2.
28945         * lib/canonicalize.c (canonicalize_file_name): Elide if the
28946         'canonicalize-lgpl' module is also used.
28947         * lib/canonicalize-lgpl.c: Undo last change.
28948         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
28949
28950 2008-04-20  Bruno Haible  <bruno@clisp.org>
28951
28952         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
28953         config.h. Provide _mkdir based fallback for mingw.
28954         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
28955         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
28956         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
28957         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
28958         rather than defining mkdir in config.h.
28959         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
28960         (gl_SYS_STAT_H_DEFAULTS): New macro.
28961         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
28962         HAVE_IO_H any more.
28963         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
28964         HAVE_DECL_MKDIR and HAVE_IO_H.
28965
28966 2008-04-20  Bruno Haible  <bruno@clisp.org>
28967
28968         * lib/isapipe.c: Port to native Windows platforms.
28969
28970 2008-04-20  Bruno Haible  <bruno@clisp.org>
28971
28972         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
28973
28974 2008-04-21  Eric Blake  <ebb9@byu.net>
28975
28976         Work around preprocessors that don't handle UINTMAX_MAX.
28977         * lib/memchr2.c (memchr2): Avoid embedded #if.
28978         Reported by Alain Guibert, fix suggested by Bruno Haible.
28979
28980 2008-04-21  Simon Josefsson  <simon@josefsson.org>
28981
28982         * doc/posix-functions/strftime.texi (strftime): Explain better
28983         Windows incompatibility.  Suggested by Micah Cowan
28984         <micah@cowan.name>.
28985
28986 2008-04-20  Bruno Haible  <bruno@clisp.org>
28987
28988         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
28989         unistr/u8-mblen.
28990
28991 2008-04-20  Bruno Haible  <bruno@clisp.org>
28992
28993         Fix test failure on platforms with non-GNU iconv.
28994         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
28995         (U_TO_U8): Use it, rather than u16_to_u8.
28996         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
28997         units at the end of the input string.
28998         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
28999
29000 2008-04-20  Bruno Haible  <bruno@clisp.org>
29001
29002         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
29003         when the resulting length is 0.
29004         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
29005
29006 2008-04-20  Bruno Haible  <bruno@clisp.org>
29007
29008         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
29009         works.
29010         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
29011
29012 2008-04-20  Bruno Haible  <bruno@clisp.org>
29013
29014         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
29015         * modules/tsearch-tests (configure.ac): Test for initstate function.
29016
29017 2008-04-20  Bruno Haible  <bruno@clisp.org>
29018
29019         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
29020         for nlink_t if missing.
29021         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
29022
29023 2008-04-19  Bruno Haible  <bruno@clisp.org>
29024
29025         Work around snprintf bug on Linux libc5.
29026         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
29027         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
29028         gl_SNPRINTF_SIZE1.
29029         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
29030         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
29031         that test failed.
29032         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
29033         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
29034         * modules/snprintf (Files): Add m4/printf.m4.
29035         * modules/vsnprintf (Files): Likewise.
29036         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
29037         * doc/posix-functions/vsnprintf.texi: Likewise.
29038
29039 2008-04-19  Bruno Haible  <bruno@clisp.org>
29040
29041         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
29042         from 0.0058 to less than 10^-7.
29043
29044 2008-04-19  Bruno Haible  <bruno@clisp.org>
29045
29046         Fix rounding when a precision is given.
29047         * lib/vasnprintf.c (is_borderline): New function.
29048         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
29049         9...9x.
29050         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
29051         %e, %g.
29052         * tests/test-vasprintf-posix.c (test_function): Likewise.
29053         * tests/test-snprintf-posix.h (test_function): Likewise.
29054         * tests/test-sprintf-posix.h (test_function): Likewise.
29055         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
29056         * tests/test-printf-posix.h (test_function): Likewise.
29057         * tests/test-printf-posix.output: Update.
29058         Reported by John Darrington <john@darrington.wattle.id.au> via
29059         Ben Pfaff <blp@cs.stanford.edu>.
29060
29061 2008-04-18  Simon Josefsson  <simon@josefsson.org>
29062
29063         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
29064         Suggested by Bruno Haible <bruno@clisp.org>.
29065
29066 2008-04-17  Bruno Haible  <bruno@clisp.org>
29067
29068         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
29069         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
29070         implementation.
29071         Patch by Bruce Merry <bmerry@gmail.com>.
29072
29073 2008-04-17  Simon Josefsson  <simon@josefsson.org>
29074
29075         * doc/posix-functions/strftime.texi (strftime): Mention that %e
29076         doesn't work under Windows.
29077
29078 2008-04-16  Bruno Haible  <bruno@clisp.org>
29079
29080         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
29081         New macros.
29082         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
29083         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
29084         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
29085         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
29086         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
29087         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
29088         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
29089         macros.
29090         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
29091         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
29092         Northern Sotho, Uighur.
29093
29094 2008-04-16  Bruno Haible  <bruno@clisp.org>
29095
29096         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
29097         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
29098         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
29099         Reported by Daniel Bergström <daniel@octocode.com>.
29100
29101 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
29102             Bruno Haible  <bruno@clisp.org>
29103
29104         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
29105         function.
29106         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
29107         New functions, mostly extracted from gl_locale_name_default.
29108         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
29109
29110 2008-04-16  Eric Blake  <ebb9@byu.net>
29111
29112         Adjust strtod detection to catch glibc 2.7 bug.
29113         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
29114         Reported by John Gatewood Ham.
29115
29116 2008-04-16  Bruno Haible  <bruno@clisp.org>
29117
29118         Add tentative support for Linux libc5.
29119         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
29120         * lib/fpurge.c (fpurge): Likewise.
29121         * lib/freadable.c (freadable): Likewise.
29122         * lib/freadahead.c (freadahead): Likewise.
29123         * lib/freading.c (freading): Likewise.
29124         * lib/freadptr.c (freadptr): Likewise.
29125         * lib/freadseek.c (freadptrinc): Likewise.
29126         * lib/fseeko.c (rpl_fseeko): Likewise.
29127         * lib/fseterr.c (fseterr): Likewise.
29128         * lib/fwritable.c (fwritable): Likewise.
29129         * lib/fwriting.c (fwriting): Likewise.
29130         Reported by Alain Guibert <alguibert+bts@free.fr>.
29131
29132 2008-04-15  Bruno Haible  <bruno@clisp.org>
29133
29134         * modules/mathl (configure.ac): Define module indicator.
29135
29136 2008-04-15  Bruno Haible  <bruno@clisp.org>
29137
29138         * lib/logl.c (logl): Remove unused variables.
29139
29140 2008-04-15  Bruno Haible  <bruno@clisp.org>
29141
29142         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
29143         fails.
29144
29145 2008-04-15  Bruno Haible  <bruno@clisp.org>
29146
29147         * lib/trim.c (trim2): Fix argument of isspace() macro.
29148
29149 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
29150
29151         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
29152         to 0.
29153         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
29154
29155 2008-04-14  Bruno Haible  <bruno@clisp.org>
29156
29157         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
29158         AC_LANG_PROGRAM argument.
29159         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
29160         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
29161         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
29162         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
29163         * m4/math_h.m4 (gl_MATH_H): Likewise.
29164         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
29165         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
29166         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
29167         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
29168         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
29169         * m4/regex.m4 (gl_REGEX): Likewise.
29170         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
29171         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
29172         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
29173         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
29174         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
29175         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
29176         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29177         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
29178
29179 2008-04-14  Jim Meyering  <meyering@redhat.com>
29180
29181         test-strtod: fix typos: s/abs/fabs/
29182         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
29183
29184 2008-04-13  Bruno Haible  <bruno@clisp.org>
29185
29186         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
29187         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
29188         module is also used and while not building the reloc-wrapper.
29189
29190 2008-04-13  Bruno Haible  <bruno@clisp.org>
29191
29192         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
29193
29194 2008-04-13  Bruno Haible  <bruno@clisp.org>
29195
29196         Fix AIX compilation failure introduced on 2008-04-02.
29197         * tests/test-frexp.c (exp): Undefine before redefining.
29198         * tests/test-frexpl.c (exp): Likewise.
29199
29200 2008-04-13  Bruno Haible  <bruno@clisp.org>
29201
29202         Work around a HP-UX stdio bug.
29203         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
29204         * tests/test-ftello.c (main): Likewise.
29205         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
29206         * doc/posix-functions/ftello.texi: Likewise.
29207
29208 2008-04-13  Bruno Haible  <bruno@clisp.org>
29209
29210         Make test-signbit pass on HP-UX/hppa.
29211         * tests/test-signbit.c (minus_zerol): New variable.
29212         (test_signbitl): Use it.
29213
29214 2008-04-13  Bruno Haible  <bruno@clisp.org>
29215
29216         Make truncl work on OSF/1 4.0.
29217         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
29218         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
29219         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
29220         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
29221         HAVE_DECL_TRUNCL.
29222         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
29223         HAVE_DECL_TRUNCL.
29224         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
29225
29226 2008-04-13  Bruno Haible  <bruno@clisp.org>
29227
29228         * lib/unictype.h: Remove trailing comma from enumeration definitions.
29229
29230 2008-04-13  Bruno Haible  <bruno@clisp.org>
29231
29232         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
29233         expression, so as to avoid HP-UX 11 cc compiler bug.
29234
29235 2008-04-13  Bruno Haible  <bruno@clisp.org>
29236
29237         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
29238
29239 2008-04-13  Bruno Haible  <bruno@clisp.org>
29240
29241         * lib/git-merge-changelog.c: Remove empty declaration outside of
29242         functions.
29243
29244 2008-04-13  Bruno Haible  <bruno@clisp.org>
29245
29246         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
29247
29248 2008-04-13  Bruno Haible  <bruno@clisp.org>
29249
29250         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
29251         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
29252         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
29253         also if it exists but lacks definitions of the SHUT_* macros.
29254         * modules/sys_socket (Description): Update.
29255         Reported by Elbert Pol <e.pol@chello.nl>.
29256
29257 2008-04-13  Bruno Haible  <bruno@clisp.org>
29258
29259         * lib/localcharset.c (OS2): Don't redefine if already defined.
29260         Reported by Elbert Pol <e.pol@chello.nl>.
29261
29262 2008-04-13  Bruno Haible  <bruno@clisp.org>
29263
29264         * lib/binary-io.h [__EMX__]: Include <io.h>.
29265         Reported by Elbert Pol <e.pol@chello.nl>.
29266
29267 2008-04-12  Bruno Haible  <bruno@clisp.org>
29268
29269         * lib/fpucw.h: Enable the definitions also for x86_64.
29270         Needed for NetBSD/x86_64.
29271         Reported by Thomas Klausner <tk@giga.or.at>.
29272
29273 2008-04-12  Bruno Haible  <bruno@clisp.org>
29274
29275         * tests/test-strtod.c: Include isnand.h.
29276         (main): Use isnand instead of isnan.
29277         Reported by Jim Meyering.
29278
29279 2008-04-12  Bruno Haible  <bruno@clisp.org>
29280
29281         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
29282         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
29283
29284 2008-04-12  Jim Meyering  <meyering@redhat.com>
29285
29286         * m4/math_h.m4 (gl_MATH_H): Fix typos.
29287
29288 2008-04-12  Bruno Haible  <bruno@clisp.org>
29289
29290         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
29291         Reported by Elbert Pol <e.pol@chello.nl>.
29292
29293 2008-04-12  Eric Blake  <ebb9@byu.net>
29294
29295         Work around Solaris 10 math.h bug.
29296         * m4/math_h.m4 (gl_MATH_H): Check for bug.
29297         (gl_MATH_H_DEFAULTS): Set up default.
29298         * modules/math (Makefile.am): Replace new indicators.
29299         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
29300         * tests/test-math.c (main): Test this.
29301         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
29302         * doc/posix-headers/math.texi (math.h): Mention bug.
29303         Reported by Nelson H. F. Beebe and Jim Meyering.
29304
29305 2008-04-11  Bruno Haible  <bruno@clisp.org>
29306
29307         Adapt to future versions of Apple GCC.
29308         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
29309         Reported by Peter O'Gorman <peter@pogma.com>.
29310
29311 2008-04-11  Bruno Haible  <bruno@clisp.org>
29312
29313         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
29314
29315 2008-04-11  Bruno Haible  <bruno@clisp.org>
29316
29317         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
29318
29319         * modules/getaddrinfo-tests (Makefile.am): Define
29320         test_getaddrinfo_LDADD.
29321
29322 2008-04-11  Bruno Haible  <bruno@clisp.org>
29323
29324         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
29325         (init): Fix syntax error.
29326         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
29327         is declared.
29328
29329 2008-04-11  Bruno Haible  <bruno@clisp.org>
29330
29331         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
29332         * modules/glob (Depends-on): Add stdbool.
29333
29334 2008-04-11  Bruno Haible  <bruno@clisp.org>
29335
29336         * lib/trim.c: Include <string.h>.
29337
29338 2008-04-11  Eric Blake  <ebb9@byu.net>
29339
29340         Avoid compile failure on OS/2.
29341         * lib/regex_internal.h (internal_function): Disable optimization
29342         on OS/2 (__EMX__), where it caused compiler error.
29343         Reported by Elbert Pol.
29344
29345 2008-04-11  Bruno Haible  <bruno@clisp.org>
29346
29347         Flush the standard error stream before aborting. Needed on mingw.
29348         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
29349         * tests/test-array_list.c (ASSERT): Likewise.
29350         * tests/test-array_oset.c (ASSERT): Likewise.
29351         * tests/test-avltree_list.c (ASSERT): Likewise.
29352         * tests/test-avltree_oset.c (ASSERT): Likewise.
29353         * tests/test-avltreehash_list.c (ASSERT): Likewise.
29354         * tests/test-binary-io.c (ASSERT): Likewise.
29355         * tests/test-byteswap.c (ASSERT): Likewise.
29356         * tests/test-c-ctype.c (ASSERT): Likewise.
29357         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
29358         * tests/test-c-strcasestr.c (ASSERT): Likewise.
29359         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
29360         * tests/test-c-strstr.c (ASSERT): Likewise.
29361         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
29362         * tests/test-canonicalize.c (ASSERT): Likewise.
29363         * tests/test-carray_list.c (ASSERT): Likewise.
29364         * tests/test-ceilf1.c (ASSERT): Likewise.
29365         * tests/test-ceilf2.c (ASSERT): Likewise.
29366         * tests/test-ceill.c (ASSERT): Likewise.
29367         * tests/test-count-one-bits.c (ASSERT): Likewise.
29368         * tests/test-fbufmode.c (ASSERT): Likewise.
29369         * tests/test-fflush2.c (ASSERT): Likewise.
29370         * tests/test-floorf1.c (ASSERT): Likewise.
29371         * tests/test-floorf2.c (ASSERT): Likewise.
29372         * tests/test-floorl.c (ASSERT): Likewise.
29373         * tests/test-fopen.c (ASSERT): Likewise.
29374         * tests/test-fpending.c (ASSERT): Likewise.
29375         * tests/test-fprintf-posix.c (ASSERT): Likewise.
29376         * tests/test-fpurge.c (ASSERT): Likewise.
29377         * tests/test-freadable.c (ASSERT): Likewise.
29378         * tests/test-freadahead.c (ASSERT): Likewise.
29379         * tests/test-freading.c (ASSERT): Likewise.
29380         * tests/test-freadptr.c (ASSERT): Likewise.
29381         * tests/test-freadptr2.c (ASSERT): Likewise.
29382         * tests/test-freadseek.c (ASSERT): Likewise.
29383         * tests/test-freopen.c (ASSERT): Likewise.
29384         * tests/test-frexp.c (ASSERT): Likewise.
29385         * tests/test-frexpl.c (ASSERT): Likewise.
29386         * tests/test-fseek.c (ASSERT): Likewise.
29387         * tests/test-fseeko.c (ASSERT): Likewise.
29388         * tests/test-fstrcmp.c (ASSERT): Likewise.
29389         * tests/test-ftell.c (ASSERT): Likewise.
29390         * tests/test-ftello.c (ASSERT): Likewise.
29391         * tests/test-func.c (ASSERT): Likewise.
29392         * tests/test-fwritable.c (ASSERT): Likewise.
29393         * tests/test-fwriting.c (ASSERT): Likewise.
29394         * tests/test-getdelim.c (ASSERT): Likewise.
29395         * tests/test-getline.c (ASSERT): Likewise.
29396         * tests/test-i-ring.c (ASSERT): Likewise.
29397         * tests/test-iconv-utf.c (ASSERT): Likewise.
29398         * tests/test-iconv.c (ASSERT): Likewise.
29399         * tests/test-isfinite.c (ASSERT): Likewise.
29400         * tests/test-isnand.c (ASSERT): Likewise.
29401         * tests/test-isnanf.c (ASSERT): Likewise.
29402         * tests/test-isnanl.h (ASSERT): Likewise.
29403         * tests/test-ldexpl.c (ASSERT): Likewise.
29404         * tests/test-linked_list.c (ASSERT): Likewise.
29405         * tests/test-linkedhash_list.c (ASSERT): Likewise.
29406         * tests/test-localename.c (ASSERT): Likewise.
29407         * tests/test-lseek.c (ASSERT): Likewise.
29408         * tests/test-mbscasecmp.c (ASSERT): Likewise.
29409         * tests/test-mbscasestr1.c (ASSERT): Likewise.
29410         * tests/test-mbscasestr2.c (ASSERT): Likewise.
29411         * tests/test-mbscasestr3.c (ASSERT): Likewise.
29412         * tests/test-mbscasestr4.c (ASSERT): Likewise.
29413         * tests/test-mbschr.c (ASSERT): Likewise.
29414         * tests/test-mbscspn.c (ASSERT): Likewise.
29415         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
29416         * tests/test-mbspbrk.c (ASSERT): Likewise.
29417         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
29418         * tests/test-mbsrchr.c (ASSERT): Likewise.
29419         * tests/test-mbsspn.c (ASSERT): Likewise.
29420         * tests/test-mbsstr1.c (ASSERT): Likewise.
29421         * tests/test-mbsstr2.c (ASSERT): Likewise.
29422         * tests/test-mbsstr3.c (ASSERT): Likewise.
29423         * tests/test-memchr2.c (ASSERT): Likewise.
29424         * tests/test-memmem.c (ASSERT): Likewise.
29425         * tests/test-open.c (ASSERT): Likewise.
29426         * tests/test-printf-frexp.c (ASSERT): Likewise.
29427         * tests/test-printf-frexpl.c (ASSERT): Likewise.
29428         * tests/test-printf-posix.c (ASSERT): Likewise.
29429         * tests/test-quotearg.c (ASSERT): Likewise.
29430         * tests/test-rbtree_list.c (ASSERT): Likewise.
29431         * tests/test-rbtree_oset.c (ASSERT): Likewise.
29432         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
29433         * tests/test-round1.c (ASSERT): Likewise.
29434         * tests/test-roundf1.c (ASSERT): Likewise.
29435         * tests/test-roundl.c (ASSERT): Likewise.
29436         * tests/test-signbit.c (ASSERT): Likewise.
29437         * tests/test-sleep.c (ASSERT): Likewise.
29438         * tests/test-snprintf-posix.c (ASSERT): Likewise.
29439         * tests/test-snprintf.c (ASSERT): Likewise.
29440         * tests/test-sprintf-posix.c (ASSERT): Likewise.
29441         * tests/test-stat-time.c (ASSERT): Likewise.
29442         * tests/test-strcasestr.c (ASSERT): Likewise.
29443         * tests/test-strerror.c (ASSERT): Likewise.
29444         * tests/test-striconv.c (ASSERT): Likewise.
29445         * tests/test-striconveh.c (ASSERT): Likewise.
29446         * tests/test-striconveha.c (ASSERT): Likewise.
29447         * tests/test-strsignal.c (ASSERT): Likewise.
29448         * tests/test-strstr.c (ASSERT): Likewise.
29449         * tests/test-strtod.c (ASSERT): Likewise.
29450         * tests/test-trunc1.c (ASSERT): Likewise.
29451         * tests/test-trunc2.c (ASSERT): Likewise.
29452         * tests/test-truncf1.c (ASSERT): Likewise.
29453         * tests/test-truncf2.c (ASSERT): Likewise.
29454         * tests/test-truncl.c (ASSERT): Likewise.
29455         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
29456         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
29457         * tests/test-vasnprintf.c (ASSERT): Likewise.
29458         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
29459         * tests/test-vasprintf.c (ASSERT): Likewise.
29460         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
29461         * tests/test-vprintf-posix.c (ASSERT): Likewise.
29462         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
29463         * tests/test-vsnprintf.c (ASSERT): Likewise.
29464         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
29465         * tests/test-wcwidth.c (ASSERT): Likewise.
29466         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
29467         * tests/test-xprintf-posix.c (ASSERT): Likewise.
29468         * tests/test-xvasprintf.c (ASSERT): Likewise.
29469         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
29470         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
29471         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
29472         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
29473         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
29474         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
29475         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
29476         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
29477         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
29478         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
29479         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
29480         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
29481         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
29482         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
29483         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
29484         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
29485         * tests/unictype/test-block_list.c (ASSERT): Likewise.
29486         * tests/unictype/test-block_of.c (ASSERT): Likewise.
29487         * tests/unictype/test-block_test.c (ASSERT): Likewise.
29488         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
29489         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
29490         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
29491         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
29492         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
29493         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
29494         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
29495         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
29496         * tests/unictype/test-combining.c (ASSERT): Likewise.
29497         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
29498         * tests/unictype/test-digit.c (ASSERT): Likewise.
29499         * tests/unictype/test-mirror.c (ASSERT): Likewise.
29500         * tests/unictype/test-numeric.c (ASSERT): Likewise.
29501         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
29502         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
29503         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
29504         * tests/unictype/test-scripts.c (ASSERT): Likewise.
29505         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
29506         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
29507         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
29508         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
29509         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
29510         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
29511         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
29512         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
29513         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
29514         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
29515         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
29516         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
29517         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
29518         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
29519         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
29520         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
29521         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
29522         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
29523         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
29524         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
29525         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
29526         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
29527         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
29528         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
29529         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
29530         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
29531         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
29532         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
29533         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
29534         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
29535         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
29536         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
29537         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
29538         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
29539         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
29540         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
29541         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
29542         Reported by Eric Blake.
29543
29544 2008-04-11  Bruno Haible  <bruno@clisp.org>
29545
29546         * lib/wchar.in.h: Tweak comment.
29547
29548 2008-04-11  Bruno Haible  <bruno@clisp.org>
29549
29550         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
29551         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
29552         gl_COMMON.
29553         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
29554
29555 2008-04-11  Bruno Haible  <bruno@clisp.org>
29556
29557         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
29558
29559 2008-04-11  Simon Josefsson  <simon@josefsson.org>
29560
29561         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
29562         of attempting to use non-existing /dev/*random.  Based on patch
29563         from Adam Strzelecki <ono@java.pl> in
29564         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
29565
29566 2008-04-08  Bruno Haible  <bruno@clisp.org>
29567
29568         Add tentative support for emx+gcc.
29569         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
29570         * lib/fpurge.c (fpurge): Likewise.
29571         * lib/freadable.c (freadable): Likewise.
29572         * lib/freadahead.c (freadahead): Likewise.
29573         * lib/freading.c (freading): Likewise.
29574         * lib/freadptr.c (freadptr): Likewise.
29575         * lib/freadseek.c (freadptrinc): Likewise.
29576         * lib/fseeko.c (rpl_fseeko): Likewise.
29577         * lib/fseterr.c (fseterr): Likewise.
29578         * lib/fwritable.c (fwritable): Likewise.
29579         * lib/fwriting.c (fwriting): Likewise.
29580         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
29581
29582 2008-04-09  Eric Blake  <ebb9@byu.net>
29583
29584         Avoid some autoconf warnings.
29585         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
29586         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
29587         * m4/afs.m4 (gl_AFS): Likewise.
29588         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
29589         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
29590         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
29591         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
29592         (gl_INTEGER_TYPE_SUFFIX): Likewise.
29593         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
29594         (AC_CHECK_DECLS_ONCE): Likewise.
29595         Rename file...
29596         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
29597         gnulib-tool requires autoconf 2.59 or better.
29598         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
29599
29600 2008-04-08  Eric Blake  <ebb9@byu.net>
29601
29602         Use 'git describe --match' if present (added in git 1.5.5).
29603         * build-aux/git-version-gen: Limit result to tags that match 'v*'
29604         if possible.
29605
29606 2008-04-08  Bruno Haible  <bruno@clisp.org>
29607
29608         Add tentative support for OpenServer.
29609         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
29610         _ptr, _cnt.
29611         * lib/fpurge.c (fpurge): Likewise.
29612         * lib/freadable.c (freadable): Likewise.
29613         * lib/freadahead.c (freadahead): Likewise.
29614         * lib/freading.c (freading): Likewise.
29615         * lib/freadptr.c (freadptr): Likewise.
29616         * lib/freadseek.c (freadptrinc): Likewise.
29617         * lib/fseeko.c (rpl_fseeko): Likewise.
29618         * lib/fseterr.c (fseterr): Likewise.
29619         * lib/fwritable.c (fwritable): Likewise.
29620         * lib/fwriting.c (fwriting): Likewise.
29621         Reported by Roger Cornelius <rac@tenzing.org> and
29622         Brian K. White <brian@aljex.com>.
29623
29624 2008-04-06  Jim Meyering  <meyering@redhat.com>
29625
29626         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
29627
29628 2008-04-06  Bruno Haible  <bruno@clisp.org>
29629
29630         Avoid possible error with non-ASCII bytes in UTF-8 locales.
29631         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
29632         * tests/test-printf-posix.sh: Likewise.
29633         * tests/test-vfprintf-posix.sh: Likewise.
29634         * tests/test-vprintf-posix.sh: Likewise.
29635         * tests/test-xprintf-posix.sh: Likewise.
29636
29637 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29638
29639         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
29640         hide error from 'ls', needed on OS/2.
29641         Report by Elbert Pol <elbert.pol@gmail.com>.
29642
29643 2008-04-04  Eric Blake  <ebb9@byu.net>
29644
29645         Make test-fseeko.c failures meaningful.
29646         * tests/test-fseeko.c: Print line number on failure.
29647         * tests/test-fseek.c: Likewise.
29648         Reported by Nelson H. F. Beebe.
29649
29650         Improve strtod bug detection check.
29651         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
29652         required for Solaris 10.
29653         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
29654
29655 2008-04-04  Bruno Haible  <bruno@clisp.org>
29656
29657         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
29658         by m4/setenv.m4.
29659
29660 2008-04-03  Eric Blake  <ebb9@byu.net>
29661
29662         Ensure sane .version contents.
29663         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
29664         version string.
29665         * build-aux/git-version-gen: Improve documentation.
29666
29667         Make GNU make output nicer.
29668         * top/GNUmakefile [!_have-Makefile]: Add dependency on
29669         MAKECMDGOALS to enforce message for all command line targets.  Set
29670         srcdir for use in maint.mk.
29671
29672         Another maintainer tweak.
29673         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
29674         a target that regenerates version.
29675
29676 2008-04-03  Jim Meyering  <meyering@redhat.com>
29677
29678         vc-list-files: don't cause coreutils "make po-check" failure
29679         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
29680
29681 2008-04-03  Eric Blake  <ebb9@byu.net>
29682
29683         Allow VPATH usage of vc-list-files.
29684         * build-aux/vc-list-files (scriptversion): Add timestamp.
29685         (options): Add --help, --version, -C.
29686         (CVS): Support installed cvsu.
29687
29688 2008-04-02  Bruno Haible  <bruno@clisp.org>
29689
29690         Avoid some "statement with no effect" warnings from gcc.
29691         * tests/test-wctype.c (main): Explicitly ignore unused values.
29692         Reported by Jim Meyering.
29693
29694 2008-04-02  Jim Meyering  <meyering@redhat.com>
29695
29696         Avoid some warnings from "gcc -Wshadow".
29697         * tests/test-frexp.c (exp): Define to a different identifier.
29698         * tests/test-frexpl.c (exp): Likewise.
29699
29700 2008-04-03  Jim Meyering  <meyering@redhat.com>
29701
29702         bootstrap: remove dangling *.[ch] symlinks from lib
29703         * build-aux/bootstrap [dangling symlink removal]: Move find's
29704         -depth option to precede all others, to avoid a warning.
29705         Remove *.[ch] files too, and from "$source_base" (usually lib/).
29706
29707 2008-04-02  Bruno Haible  <bruno@clisp.org>
29708
29709         Avoid some warnings from "gcc -Wshadow".
29710         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
29711         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
29712         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
29713         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
29714         Reported by Jim Meyering.
29715
29716 2008-04-01  Bruno Haible  <bruno@clisp.org>
29717
29718         Fix test to work on IRIX 6.5 with cc.
29719         * tests/test-math.c (numeric_equal): New function.
29720         (main): Use it.
29721
29722 2008-04-01  Bruno Haible  <bruno@clisp.org>
29723
29724         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
29725
29726 2008-04-01  Bruno Haible  <bruno@clisp.org>
29727
29728         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
29729         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
29730         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
29731         (Depends-on): Remove math.
29732
29733         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
29734         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
29735         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
29736         (Depends-on): Remove math.
29737
29738         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
29739         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
29740         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
29741         (Depends-on): Remove math.
29742         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
29743         (Depends-on): Remove math.
29744
29745         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
29746         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
29747         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
29748         (Depends-on): Remove math.
29749         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
29750         (Depends-on): Remove math.
29751
29752         * tests/test-round1.c: Include nan.h.
29753         (main): Use NaNd instead of NAN.
29754         * modules/round-tests (Files): Add tests/nan.h.
29755
29756         * tests/test-trunc1.c: Include nan.h.
29757         (main): Use NaNd instead of NAN.
29758         * modules/trunc-tests (Files): Add tests/nan.h.
29759
29760         * tests/test-roundf1.c: Include nan.h.
29761         (main): Use NaNf instead of NAN.
29762         * modules/roundf-tests (Files): Add tests/nan.h.
29763
29764         * tests/test-truncf1.c: Include nan.h.
29765         (main): Use NaNf instead of NAN.
29766         * modules/truncf-tests (Files): Add tests/nan.h.
29767
29768         * tests/test-ceilf1.c: Include nan.h.
29769         (main): Use NaNf instead of NAN.
29770         * modules/ceilf-tests (Files): Add tests/nan.h.
29771
29772         * tests/test-floorf1.c: Include nan.h.
29773         (main): Use NaNf instead of NAN.
29774         * modules/floorf-tests (Files): Add tests/nan.h.
29775
29776         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
29777         (main): Use NaNf instead of NAN.
29778         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
29779
29780         * tests/test-isnand.c: Include nan.h instead of <math.h>.
29781         (main): Use NaNd instead of NAN.
29782         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
29783
29784         * tests/test-frexp.c: Include nan.h.
29785         (main): Use NaNd instead of NAN.
29786         * modules/frexp-tests (Files): Add tests/nan.h.
29787
29788         * lib/isnan.c: Don't include <math.h>.
29789         (FUNC): Don't use NAN macro.
29790         * modules/isnand-nolibm (Depends-on): Remove math.
29791         * modules/isnanf-nolibm (Depends-on): Remove math.
29792         * modules/isnanl (Depends-on): Remove math.
29793         * modules/isnanl-nolibm (Depends-on): Remove math.
29794
29795         * tests/nan.h: New file.
29796
29797 2008-04-01  Eric Blake  <ebb9@byu.net>
29798
29799         Fix typos.
29800         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
29801         values to be the right type.
29802
29803         For now, cater to gnulib strtod inaccuracies.
29804         * tests/test-strtod.c (main): Allow 1-ulp error on expected
29805         fractional results.  While not as nice from a QoI perspective, it
29806         is a quicker patch than correctly implementing decimal to binary
29807         rounding.
29808
29809 2008-03-31  Eric Blake  <ebb9@byu.net>
29810
29811         Guarantee a definition of NAN.
29812         * lib/math.in.h (NAN): Define if missing.
29813         * tests/test-math.c (main): Test it.
29814         * doc/posix-headers/math.texi (math.h): Document this.
29815         * lib/isnan.c (rpl_isnand): Use it.
29816         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
29817         * tests/test-floorf1.c (NaN): Likewise.
29818         * tests/test-frexp.c (NaN): Likewise.
29819         * tests/test-isnand.c (NaN): Likewise.
29820         * tests/test-isnanf.c (NaN): Likewise.
29821         * tests/test-round1.c (NaN): Likewise.
29822         * tests/test-roundf1.c (NaN): Likewise.
29823         * tests/test-snprintf-posix.h (NaN): Likewise.
29824         * tests/test-sprintf-posix.h (NaN): Likewise.
29825         * tests/test-trunc1.c (NaN): Likewise.
29826         * tests/test-truncf1.c (NaN): Likewise.
29827         * tests/test-vasnprintf-posix.c (NaN): Likewise.
29828         * tests/test-vasprintf-posix.c (NaN): Likewise.
29829         * modules/isnand-nolibm (Depends-on): Add math.
29830         * modules/isnanf-nolibm (Depends-on): Likewise.
29831         * modules/isnanl (Depends-on): Likewise.
29832         * modules/isnanl-nolibm (Depends-on): Likewise.
29833         * modules/snprintf-posix-tests (Depends-on): Likewise.
29834         * modules/sprintf-posix-tests (Depends-on): Likewise.
29835         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
29836         * modules/vsprintf-posix-tests (Depends-on): Likewise.
29837         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
29838         * modules/vasprintf-posix-tests (Depends-on): Likewise.
29839
29840 2008-03-31  Bruno Haible  <bruno@clisp.org>
29841
29842         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
29843         * doc/posix-functions/strtod.texi: Likewise.
29844
29845 2008-03-31  Bruno Haible  <bruno@clisp.org>
29846
29847         * tests/test-strtod.c (main): Don't use C99 syntax.
29848
29849 2008-03-31  Bruno Haible  <bruno@clisp.org>
29850
29851         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
29852         Reported by Eric Blake.
29853
29854 2008-03-31  Jim Meyering  <meyering@redhat.com>
29855
29856         Don't compare actual signbit return values.
29857         * tests/test-strtod.c (main): Rather, compare only their
29858         zero/non-zero nature.
29859
29860 2008-03-31  Eric Blake  <ebb9@byu.net>
29861
29862         More strtod documentation.
29863         * doc/posix-functions/strtod.texi (strtod): Interpret more test
29864         failures as distinct bugs.
29865
29866 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
29867
29868         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
29869         Problem reported by Erik Benada in
29870         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
29871
29872 2008-03-30  Bruno Haible  <bruno@clisp.org>
29873
29874         * tests/test-strtod.c: Add comments about which assertion fails on which
29875         platform.
29876         * doc/posix-functions/strtod.texi: Add info about many more platforms.
29877
29878 2008-03-30  Eric Blake  <ebb9@byu.net>
29879
29880         Test signbit behavior on zeros.
29881         * tests/test-signbit.c (test_signbitf): Add tests for zero.
29882         (test_signbitd, test_signbitl): Likewise.
29883
29884         More strtod touchups.
29885         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
29886         sign of negative underflow, for now.  Use .5, not .1.
29887         * doc/posix-functions/strtod.texi (strtod): Mention these
29888         limitations.
29889         Reported by Jim Meyering.
29890
29891 2008-03-30  Bruno Haible  <bruno@clisp.org>
29892
29893         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
29894         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
29895
29896 2008-03-30  Bruno Haible  <bruno@clisp.org>
29897
29898         Avoid failure when attempting to return empty iconv results on some
29899         platforms.
29900         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
29901         allocation, don't report ENOMEM when the resulting string is empty.
29902
29903 2008-03-30  Bruno Haible  <bruno@clisp.org>
29904
29905         Fix buffer overrun.
29906         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
29907         Don't consider the width for tmp_length. Check count against tmp_length
29908         before doing the padding. Ensure enough allocation during padding.
29909
29910 2008-03-30  Eric Blake  <ebb9@byu.net>
29911
29912         strtod touchups.
29913         * lib/strtod.c (strtod): Avoid compiler warnings.
29914         Reported by Jim Meyering.
29915
29916 2008-03-30  Bruno Haible  <bruno@clisp.org>
29917
29918         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
29919         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
29920         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
29921         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
29922         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
29923         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
29924         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
29925         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
29926
29927         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
29928         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
29929         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
29930         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
29931         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
29932         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
29933         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
29934         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
29935
29936         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
29937         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
29938         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
29939         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
29940         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
29941         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
29942         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
29943         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
29944
29945         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
29946         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
29947
29948         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
29949         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
29950
29951         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
29952         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
29953
29954         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
29955         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
29956         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
29957
29958         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
29959         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
29960         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
29961
29962         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
29963         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
29964         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
29965
29966         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
29967         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
29968         * modules/vasprintf (Depends-on): Add EOVERFLOW.
29969
29970         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
29971         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
29972         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
29973         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
29974         (Depends-on): Add EOVERFLOW.
29975         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
29976         (Depends-on): Add EOVERFLOW.
29977         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
29978         (Depends-on): Add EOVERFLOW.
29979         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
29980         (Depends-on): Add EOVERFLOW.
29981         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
29982         (Depends-on): Add EOVERFLOW.
29983         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
29984         (Depends-on): Add EOVERFLOW.
29985         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
29986         (Depends-on): Add EOVERFLOW.
29987         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
29988         (Depends-on): Add EOVERFLOW.
29989
29990         * lib/sprintf.c (EOVERFLOW): Remove fallback.
29991         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
29992         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
29993
29994         * lib/snprintf.c (EOVERFLOW): Remove fallback.
29995         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
29996         * modules/snprintf (Depends-on): Add EOVERFLOW.
29997
29998         * lib/poll.c (EOVERFLOW): Remove fallback.
29999         * modules/poll (Depends-on): Add EOVERFLOW.
30000
30001         * lib/getugroups.c (EOVERFLOW): Remove fallback.
30002         * modules/getugroups (Depends-on): Add EOVERFLOW.
30003
30004         * lib/getdelim.c (EOVERFLOW): Remove fallback.
30005         * modules/getdelim (Depends-on): Add EOVERFLOW.
30006
30007         * lib/ftell.c (EOVERFLOW): Remove fallback.
30008         * modules/ftell (Depends-on): Add EOVERFLOW.
30009
30010         * lib/fprintf.c (EOVERFLOW): Remove fallback.
30011         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
30012         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
30013
30014         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
30015
30016         * modules/EOVERFLOW-tests: New file.
30017         * tests/test-EOVERFLOW.c: New file.
30018
30019         * modules/EOVERFLOW: New file.
30020         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
30021
30022 2008-03-30  Bruno Haible  <bruno@clisp.org>
30023
30024         Fix bug introduced on 2007-06-10.
30025         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
30026         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
30027
30028 2008-03-30  Bruno Haible  <bruno@clisp.org>
30029
30030         Improve freadseek's efficiency after ungetc.
30031         * lib/freadseek.c: Include freadahead.h.
30032         (freadptrinc): New function, extracted from freadseek.
30033         (freadseek): Use it in a loop. Use freadahead to determine the number
30034         of loop iterations.
30035         * modules/freadseek (Depends-on): Add freadahead.
30036         (configure.ac): Require AC_C_INLINE.
30037
30038 2008-03-30  Bruno Haible  <bruno@clisp.org>
30039
30040         * lib/freadseek.c (freadseek): Don't ignore the return value of
30041         freadptr.
30042
30043 2008-03-29  Eric Blake  <ebb9@byu.net>
30044
30045         Add hex float support.
30046         * modules/strtod (Depends-on): Add c-ctype.
30047         (Link): Mention POW_LIB.
30048         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
30049         whitespace between 'e' and exponent.
30050         * tests/test-strtod.c (main): Enable hex float tests.
30051         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
30052         now provides.
30053
30054         Document various strtod bugs, with some fixes.
30055         * doc/posix-functions/strtod.texi (strtod): Document bugs with
30056         "-0x", "inf", "nan", and hex constants.
30057         * doc/posix-functions/atof.texi (atof): Likewise.
30058         * modules/stdlib (Makefile.am): Support strtod.
30059         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
30060         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
30061         detect additional strtod bugs.
30062         * lib/stdlib.in.h (rpl_strtod): Add declarations.
30063         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
30064         bool where appropriate.  Parse 'inf' and 'nan'.
30065         * tests/test-strtod.c: New file.
30066         * modules/strtod (Depends-on): Add stdbool, stdlib.
30067         (configure.ac): Turn on module indicator.
30068         * modules/strtod-tests: New module.
30069
30070 2008-03-29  Eric Blake  <ebb9@byu.net>
30071
30072         Fix ftell on mingw.
30073         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
30074         * modules/ftell-tests (Depends-on): Add binary-io.
30075         * modules/ftello-tests (Depends-on): Likewise.
30076         * tests/test-ftell.c (main): Enhance test to cover behavior after
30077         ungetc.  Enforce binary mode.
30078         * tests/test-ftello.c (main): Likewise.
30079
30080         Pass test-freadseek on cygwin.
30081         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
30082         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
30083         ungetc buffer.
30084
30085         * tests/test-fflush2.c (main): Fix typo.
30086
30087 2008-03-29  Bruno Haible  <bruno@clisp.org>
30088
30089         * tests/test-fflush2.c (main): Temporarily disable the contents of
30090         this test.
30091         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
30092         Reported by Eric Blake.
30093
30094 2008-03-28  Simon Josefsson  <simon@josefsson.org>
30095
30096         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
30097         (GC_SHA224_DIGEST_SIZE): Add.
30098
30099         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
30100         (gc_hash_digest_length): Likewise.
30101         (gc_hash_buffer): Likewise.
30102
30103 2008-03-25  Bruno Haible  <bruno@clisp.org>
30104
30105         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
30106         detail which gettext release to use.
30107         Reported by Simon Josefsson.
30108
30109 2008-03-26  Jim Meyering  <meyering@redhat.com>
30110
30111         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
30112         * modules/gnumakefile (clean-GNUmakefile): Also, use
30113         test ... && ... || : syntax rather than if-then ... fi.
30114
30115         gnumakefile: Don't double-quote-expand $(VPATH) value.
30116         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
30117
30118 2008-03-24  Eric Blake  <ebb9@byu.net>
30119
30120         Alter GNUmakefile to install into top directory.
30121         * modules/maintainer-makefile: Split, and add dependency...
30122         * modules/gnumakefile: to this new module.
30123         * build-aux/GNUmakefile: Move...
30124         * top/GNUmakefile: ...here.
30125         * build-aux/maint.mk: Move...
30126         * top/maint.mk: ...here.
30127         * MODULES.html.sh (Support for maintaining...): Document new
30128         module.
30129
30130 2008-03-23  Bruno Haible  <bruno@clisp.org>
30131
30132         * gnulib-tool: New options --vc-files, --no-vc-files.
30133         (func_usage): Document them.
30134         (vc_files): New variable.
30135         (func_import): Consider vc_files.
30136         (func_create_testdir): Set vc_files to empty.
30137         Suggested by Jim Meyering and Karl Berry.
30138
30139 2008-03-23  Bruno Haible  <bruno@clisp.org>
30140
30141         Fix regex compilation error on HP-UX 11.
30142         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
30143         * modules/regex (Files): Add m4/mbstate_t.m4.
30144         Reported by Ton Voon <ton.voon@altinity.com>.
30145
30146 2008-03-23  Bruno Haible  <bruno@clisp.org>
30147
30148         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
30149
30150 2008-03-23  Eric Blake  <ebb9@byu.net>
30151             Bruno Haible  <bruno@clisp.org>
30152
30153         Install files from top/ in the destination directory.
30154         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
30155         augmentation also for the files from top/.
30156         (func_import, func_create_testdir): Rewrite file names:
30157         top/filename -> filename.
30158
30159 2008-03-23  Bruno Haible  <bruno@clisp.org>
30160
30161         Tweak "gnulib --version" output.
30162         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
30163
30164 2008-03-23  Bruno Haible  <bruno@clisp.org>
30165
30166         Tweak "gnulib --version" output.
30167         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
30168         rather than contents of ChangeLog, when possible.
30169
30170 2008-03-21  Eric Blake  <ebb9@byu.net>
30171
30172         More --version tweaks.
30173         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
30174         date of last ChangeLog entry.
30175
30176 2008-03-21  Jim Meyering  <meyering@redhat.com>
30177
30178         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
30179
30180 2008-03-20  Eric Blake  <ebb9@byu.net>
30181
30182         VPATH fix.
30183         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
30184
30185 2008-03-20  Simon Josefsson  <simon@josefsson.org>
30186
30187         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
30188         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
30189
30190 2008-03-20  Eric Blake  <ebb9@byu.net>
30191
30192         Sync GNUmakefile with coreutils.
30193         * build-aux/GNUmakefile (have-Makefile): Rename...
30194         (_have-Makefile): ...to this, for namespace consideration.
30195         (GNUmakefile.cfg): Include, if present.
30196         (_autoreconf): Define a default.
30197         (_is-dist-target): New rule for rebuilds to pick up intra-release
30198         version.
30199         (maint-cfg.mk): Rename...
30200         (cfg.mk): ...to this.
30201
30202 2008-03-18  Jim Meyering  <meyering@redhat.com>
30203
30204         New script and module: mktempd
30205         * MODULES.html.sh (maint+release support): Add mktempd.
30206         * build-aux/mktempd: New file.
30207         * modules/mktempd: New file.
30208
30209 2008-03-15  Jim Meyering  <meyering@redhat.com>
30210
30211         Undo last change.
30212         * lib/sha1.c, lib/md5.c: 63 != ~63.
30213         Reported by Andreas Schwab.
30214
30215         sha1.c, md5.c: Hoist a redundant expression.
30216         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
30217         "ctx->buflen" only once, before calling *_process_block.
30218         * lib/md5.c (md5_process_bytes): Likewise.
30219
30220 2008-03-14  Eric Blake  <ebb9@byu.net>
30221
30222         Bump copyright year in files generated by gnulib-tool.
30223         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
30224         gnulib-tool, rather than hard-coding it.
30225
30226         Fix 'gnulib-tool --version' output to work with git.
30227         * gnulib-tool (func_gnulib_dir): New function, extracted from...
30228         (startup): ...here.
30229         (func_version): Use it to invoke git-version-gen, rather than
30230         relying on CVS keyword expansion.  Modernize wording.
30231         (cvsdatestamp, last_checkin_date, version): Kill unused
30232         variables.
30233
30234 2008-03-12  Jim Meyering  <meyering@redhat.com>
30235
30236         Recognize optional cast of the argument to free.
30237         * build-aux/useless-if-before-free: Update regexps.
30238
30239         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
30240
30241 2008-03-11  Bruno Haible  <bruno@clisp.org>
30242
30243         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
30244         by a single package.
30245         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
30246         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
30247         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
30248         Reported by Sam Steingold <sds@gnu.org>.
30249
30250 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
30251
30252         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
30253         repositories.
30254
30255 2008-03-11  Bruno Haible  <bruno@clisp.org>
30256
30257         Avoid conflicts between local macro definitions.
30258         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
30259         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
30260
30261 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
30262             Bruno Haible  <bruno@clisp.org>
30263
30264         Make va_copy work with some version of xlc on AIX 5.1.
30265         * lib/stdarg.in.h: New file.
30266         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
30267         On AIX, use a <stdarg.h> file substitute.
30268         * modules/stdarg (Files): Add lib/stdarg.in.h.
30269         (Depends-on): Add include_next.
30270         (Makefile.am): Build a stdarg.h substitute if requested.
30271         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
30272
30273 2008-03-10  Bruno Haible  <bruno@clisp.org>
30274
30275         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
30276         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
30277         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
30278
30279 2008-03-10  Bruno Haible  <bruno@clisp.org>
30280
30281         * modules/stdlib (Depends-on): Add include_next, remove
30282         absolute-header.
30283
30284 2008-03-09  Bruno Haible  <bruno@clisp.org>
30285
30286         * lib/freadahead.h (freadahead): Document more precisely.
30287         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
30288         the sum of both buffer sizes.
30289         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
30290         * NEWS: Document the change.
30291
30292 2008-03-09  Bruno Haible  <bruno@clisp.org>
30293
30294         Extend freadptr to return also the buffer size.
30295         * lib/freadptr.h (freadptr): Add sizep argument.
30296         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
30297         (freadptr): Add sizep argument. Determine buffer size like freadahead
30298         does.
30299         * tests/test-freadptr.c: Don't include freadahead.h.
30300         (main): Adapt for new calling convention of freadptr.
30301         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
30302         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
30303         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
30304         tests/test-freadptr2.sh.
30305         (Depends): Remove freadahead.
30306         (TESTS): Add test-freadptr2.sh.
30307         (check_PROGRAMS): Add test-freadptr2.
30308
30309 2008-03-09  Bruno Haible  <bruno@clisp.org>
30310
30311         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
30312         Report and solution by Simon Josefsson.
30313
30314 2008-03-06  Bruno Haible  <bruno@clisp.org>
30315
30316         Make fflush after ungetc work on BSD platforms.
30317         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
30318         * tests/test-fflush2.c: New file.
30319         * tests/test-fflush2.sh: New file.
30320         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
30321         tests/test-fflush2.c.
30322         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
30323         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
30324
30325 2008-03-06  Eric Blake  <ebb9@byu.net>
30326
30327         Likewise for ftello.
30328         * modules/ftello (Dependencies): Add extensions.
30329         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
30330
30331 2008-03-06  Bruno Haible  <bruno@clisp.org>
30332
30333         * modules/fseeko (Dependencies): Add extensions.
30334         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
30335         Needed on glibc systems.
30336
30337 2008-03-06  Bruno Haible  <bruno@clisp.org>
30338
30339         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
30340         email address.
30341         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
30342
30343 2008-03-06  Bruno Haible  <bruno@clisp.org>
30344
30345         * users.txt: Add libgnupdf.
30346
30347 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
30348
30349         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
30350         (Header File Substitutes, Function Substitutes,
30351         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
30352         (Build robot for gnulib): Fix typo.
30353
30354 2008-03-06  Bruno Haible  <bruno@clisp.org>
30355
30356         * doc/gnulib-tool.texi (VCS Issues): Small updates.
30357         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
30358
30359 2008-03-06  Bruno Haible  <bruno@clisp.org>
30360
30361         * doc/func.texi: New file, extracted from doc/gnulib.texi.
30362         * doc/gnulib.texi: Include it.
30363
30364 2008-03-06  Simon Josefsson  <simon@josefsson.org>
30365
30366         * modules/func (License): Change license to unlimited; there was
30367         no LGPL parts in the module anyway.
30368
30369 2008-03-06  Simon Josefsson  <simon@josefsson.org>
30370
30371         * modules/__func__: Renamed to modules/func.
30372         * modules/__func__-tests: Renamed to modules/func-tests.
30373         * tests/test-__func__.c: Renamed to tests/test-func.c.
30374         * m4/__func__.m4: Renamed to m4/func.m4.
30375         * doc/gnulib.texi (__func__): Section renamed to func.
30376         Suggested by Eric Blake <ebb9@byu.net>.
30377
30378 2008-03-06  Simon Josefsson  <simon@josefsson.org>
30379
30380         * doc/gnulib.texi (__func__): Use C99 terminology when talking
30381         about __func__.  Make example self-contained.  Suggested by Eric
30382         Blake <ebb9@byu.net>.
30383
30384         * tests/test-__func__.c (main): Avoid extraneous () around __func.
30385         Suggested by Eric Blake <ebb9@byu.net>.
30386
30387 2008-03-06  Simon Josefsson  <simon@josefsson.org>
30388
30389         * modules/__func__: New file.
30390         * modules/__func__-tests: New file.
30391         * tests/test-__func__.c: New file.
30392         * m4/__func__.m4: New file.
30393         * doc/gnulib.texi (__func__): Document __func__ module.
30394
30395 2008-03-05  Simon Josefsson  <simon@josefsson.org>
30396
30397         * modules/byteswap (License): Re-license as LGPLv2+.
30398
30399 2008-03-05  Simon Josefsson  <simon@josefsson.org>
30400
30401         * doc/Makefile: Add pdf target.
30402
30403 2008-03-05  Simon Josefsson  <simon@josefsson.org>
30404
30405         * modules/inline (License): Use 'unlimited', since there are only
30406         *.m4 files in this module.
30407
30408 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
30409             Bruno Haible  <bruno@clisp.org>
30410
30411         Add support for HP C 7.1 on OpenVMS 8.3.
30412         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
30413
30414 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
30415
30416         Update VMS specifics.
30417         * lib/getopt.c [VMS]: Remove include of unixlib.h.
30418
30419 2008-03-02  Jim Meyering  <meyering@redhat.com>
30420
30421         Remove the last dependency on the "free" module.
30422         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
30423         Reported by Bob Proulx.
30424
30425         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
30426
30427         Remove useless "if" tests before free.  Deprecate "free" module.
30428         * doc/posix-functions/free.texi: Mention that this
30429         module is no longer useful.
30430         * modules/free (Notice): Say this module is obsolete.
30431         * modules/readutmp (Depends-on): Remove free.
30432         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
30433         * lib/putenv.c (putenv): Likewise.
30434         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
30435         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
30436         * tests/test-c-strcasestr.c (main): Likewise.
30437         * tests/test-c-strstr.c (main): Likewise.
30438         * tests/test-mbscasestr1.c (main): Likewise.
30439         * tests/test-mbscasestr2.c (main): Likewise.
30440         * tests/test-mbsstr1.c (main): Likewise.
30441         * tests/test-mbsstr2.c (main): Likewise.
30442         * tests/test-memmem.c (main): Likewise.
30443         * tests/test-strcasestr.c (main): Likewise.
30444         * tests/test-striconv.c (main): Likewise.
30445         * tests/test-striconveh.c (main): Likewise.
30446         * tests/test-striconveha.c (main): Likewise.
30447         * tests/test-strstr.c (main): Likewise.
30448
30449         * build-aux/git-version-gen: Adjust a comment and the Usage string.
30450
30451         bootstrap: sync from coreutils again
30452         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
30453
30454 2008-03-01  Jim Meyering  <meyering@redhat.com>
30455
30456         bootstrap: sync from coreutils
30457         * build-aux/bootstrap (update_po_files): Copy a .po file into place
30458         also when the target doesn't exist.
30459
30460 2008-03-01  Eric Blake  <ebb9@byu.net>
30461
30462         Fix bugs in last patch.
30463         * lib/memchr2.c (memchr2): Fix typo.
30464         * tests/test-memchr2.c: Test previous bug, and don't use GNU
30465         extension.
30466         Reported by Bruce Korb.
30467
30468         New module 'memchr2'.
30469         * modules/memchr2: New file.
30470         * modules/memchr2-tests: Likewise.
30471         * lib/memchr2.h: Likewise.
30472         * lib/memchr2.c: Likewise, based on memchr.c.
30473         * tests/test-memchr2.c: New test.
30474         * MODULES.html.sh (String handling): Add memchr2.
30475
30476 2008-02-29  Bruno Haible  <bruno@clisp.org>
30477
30478         * modules/freadseek-tests: New file.
30479         * tests/test-freadseek.sh: New file.
30480         * tests/test-freadseek.c: New file.
30481
30482         New module 'freadseek'.
30483         * modules/freadseek: New file.
30484         * lib/freadseek.h: New file.
30485         * lib/freadseek.c: New file.
30486         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
30487
30488 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
30489
30490         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
30491         wydawca.
30492
30493         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
30494         program_invocation_name and program_invocation_short_name are
30495         present.
30496
30497 2008-02-28  Bruno Haible  <bruno@clisp.org>
30498
30499         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
30500         * tests/test-freadptr.sh: Also test non-seekable stdin.
30501
30502 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
30503
30504         * build-aux/bootstrap (source_base, m4_base)
30505         (doc_base, tests_base): New variables.
30506         (gnulib_tool_options): Do not hardcode base directories, use
30507         the above variables instead.
30508
30509 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
30510
30511         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
30512
30513 2008-02-28  Bruno Haible  <bruno@clisp.org>
30514
30515         * modules/freadptr-tests: New file.
30516         * tests/test-freadptr.sh: New file.
30517         * tests/test-freadptr.c: New file.
30518
30519         New module 'freadptr'.
30520         * modules/freadptr: New file.
30521         * lib/freadptr.h: New file.
30522         * lib/freadptr.c: New file.
30523         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
30524
30525 2008-02-26  Karl Berry  <karl@freefriends.org>
30526
30527         Sync from Libtool:
30528         * libltdl/argz.c (argz_add, argz_count): New functions.
30529         * libltdl/argz.in.h: Declare them.
30530         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
30531
30532 2008-02-22  Bruno Haible  <bruno@clisp.org>
30533
30534         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
30535         is a pointer type.  Needed for HP-UX 10.
30536         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
30537         * doc/posix-functions/gmtime_r.texi: Likewise.
30538         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
30539
30540 2008-02-24  Bruno Haible  <bruno@clisp.org>
30541
30542         * modules/environ-tests: New file.
30543         * tests/test-environ.c: New file.
30544
30545         New module 'environ'.
30546         * modules/environ: New file.
30547         * lib/unistd.in.h (environ): New declaration.
30548         * m4/environ.m4: New file.
30549         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
30550         after use.
30551         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
30552         HAVE_DECL_ENVIRON.
30553         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
30554         HAVE_DECL_ENVIRON.
30555         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
30556         wrong claim that 'environ' is missing on some systems.
30557         * modules/execute (Depends-on): Add environ.
30558         * lib/execute.c (environ): Remove fallback declaration.
30559         * modules/pipe (Depends-on): Add environ.
30560         * lib/pipe.c (environ): Remove fallback declaration.
30561         * modules/setenv (Depends-on): Add environ.
30562         * lib/setenv.c (environ): Remove fallback declaration.
30563         * modules/unsetenv (Depends-on): Add environ.
30564         * lib/unsetenv.c (environ): Remove fallback declaration.
30565         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
30566         m4/environ.m4.
30567         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
30568         (gl_PREREQ_UNSETENV): Likewise.
30569
30570 2008-02-24  Bruno Haible  <bruno@clisp.org>
30571
30572         * doc/posix-functions/environ.texi: Document the MacOS X problem.
30573
30574 2008-02-20  Bob Proulx  <bob@proulx.com>
30575
30576         Enable use of older two part flavor 'git describe'.
30577         * build-aux/git-version-gen: If using the older two part flavor of
30578         git version then recreate the third part now present in the
30579         newer three part flavor of git describe.
30580
30581 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
30582
30583         * lib/fts.c (fts_build): Typo correction to comment.
30584
30585 2008-02-17  Bruno Haible  <bruno@clisp.org>
30586
30587         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
30588         generating no-op conflicts.
30589
30590 2008-02-17  Bruno Haible  <bruno@clisp.org>
30591
30592         Speed up by 10%.
30593         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
30594         result_entries, rather than an index-based loop.
30595
30596 2008-02-17  Bruno Haible  <bruno@clisp.org>
30597
30598         Speed up by 25%.
30599         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
30600         'hashcode_cached'.
30601         (entry_create): New function.
30602         (entry_hashcode): Use the cached hashcode if possible.
30603         (read_changelog_file, try_split_merged_entry): Use entry_create.
30604
30605 2008-02-17  Bruno Haible  <bruno@clisp.org>
30606
30607         Speed up from O(n^2) to O(n) for long ChangeLog files.
30608         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
30609         (read_changelog_file): Change implementation of entries_reversed list
30610         to rbtreehash.
30611         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
30612
30613 2008-02-17  Bruno Haible  <bruno@clisp.org>
30614
30615         New option --split-merged-entry.
30616         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
30617         (find_paragraph_end, try_split_merged_entry): New functions.
30618         (long_options): Add option --split-merged-entry.
30619         (usage): Document option --split-merged-entry.
30620         (main): Implement option --split-merged-entry.
30621         Reported by Eric Blake.
30622
30623 2008-02-17  Bruno Haible  <bruno@clisp.org>
30624
30625         * lib/git-merge-changelog.c: Include c-strstr.h.
30626         (main): Support the "git pull --rebase" situation.
30627         * modules/git-merge-changelog (Depends-on): Add c-strstr.
30628         Reported by Eric Blake.
30629
30630 2008-02-16  Eric Blake  <ebb9@byu.net>
30631
30632         Avoid doubling \ in common case of "c-maybe" quoting style.
30633         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
30634         eliding outer quotes.
30635         * lib/quotearg.h: Document this.
30636         * tests/test-quotearg.c (result_strings, inputs, results_g)
30637         (flag_results, locale_results): Test it by adding a new string to
30638         each test group.
30639         (compare_strings): Test new string.
30640
30641 2008-02-13  Eric Blake  <ebb9@byu.net>
30642
30643         Avoid trigraph quoting in default output.
30644         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
30645         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
30646         unless explicitly requested.
30647         * tests/test-quotearg.c (flag_results, main): Add additional tests.
30648
30649 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
30650
30651         Don't rely on signed integer overflowing to negative value.
30652         * lib/getugroups.c (getugroups): Include <limits.h>.
30653         Instead, compare against INT_MAX, and increment only if the test passes.
30654
30655 2008-02-13  Jim Meyering  <meyering@redhat.com>
30656         and Eric Blake  <ebb9@byu.net>
30657
30658         Avoid shadowing warning and compile errors on Linux.
30659         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
30660         forwarding macros on Linux.
30661         (dcgettext): Define a stub, for Linux.
30662         (results_g, main): Avoid warnings.
30663
30664 2008-02-12  Eric Blake  <ebb9@byu.net>
30665
30666         Silence warning in last patch.
30667         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
30668
30669         Quotearg part 4: add tests, fix c-maybe colon quoting.
30670         * lib/quotearg.h: Improve documentation.
30671         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
30672         escapes when adding outer quotes.  When quoting trigraphs, use
30673         valid C notation.  When quoting NUL, omit extra characters if next
30674         character is not digit.  Alter prototype.
30675         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
30676         callers.
30677         * modules/quotearg-tests: New module.
30678         * tests/test-quotearg.c: New test.
30679
30680 2008-02-07  Eric Blake  <ebb9@byu.net>
30681
30682         Quotearg part 3: add flag to control outer quote elision.
30683         * lib/quotearg.h (c_maybe_quoting_style): New style.
30684         (enum quoting_flags): Better documentation of flags.
30685         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
30686         c-maybe style.
30687         (quotearg_buffer_restyled): Handle new flag to elide outer
30688         quotes.
30689
30690         Quotearg part 2: add flag that can control NUL elision.
30691         * lib/quotearg.h (set_quoting_flags): New prototype.
30692         * lib/quotearg.c (struct quoting_options): Add flag field.
30693         (set_quoting_flags): New function.
30694         (quotearg_buffer_restyled): Add flags parameter.
30695         (quotearg_alloc_mem): Set the flag if length cannot be returned.
30696         (quotearg_n_options): Set the flag, since length cannot be
30697         returned.
30698         (quoting_options_from_style): Default flags correctly.
30699
30700         Quotearg part 1: more wrappers, restore quotearg_char state.
30701         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
30702         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
30703         (quotearg_colon_mem): New wrappers.
30704         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
30705         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
30706         functions.
30707         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
30708         (quotearg_colon_mem): New functions.
30709
30710 2008-02-11  Bruno Haible  <bruno@clisp.org>
30711
30712         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
30713         library in the current directory: it does not work with parallel make.
30714         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30715
30716 2008-02-11  Bruno Haible  <bruno@clisp.org>
30717
30718         * .gitattributes: New file.
30719
30720 2008-02-11  Jim Meyering  <meyering@redhat.com>
30721
30722         useless-if-before-free: Fix reversed exit values.
30723         * build-aux/useless-if-before-free: Use correct values
30724         for EXIT_MATCH and EXIT_NO_MATCH.
30725
30726         * build-aux/useless-if-before-free: Close stdout carefully.
30727
30728 2008-02-10  Bruno Haible  <bruno@clisp.org>
30729
30730         New module 'git-merge-changelog'.
30731         * modules/git-merge-changelog: New file.
30732         * lib/git-merge-changelog.c: New file.
30733
30734 2008-02-10  Jim Meyering  <meyering@redhat.com>
30735
30736         useless-if-before-free: New option: --list (-l).
30737
30738         useless-if-before-free: Don't exit immediately upon open failure.
30739         * build-aux/useless-if-before-free: Exit 2 for errors.
30740         Upon failure to open a file, don't exit immediately.
30741         Rather, just warn and continue with any remaining files.
30742
30743 2008-02-10  Bruno Haible  <bruno@clisp.org>
30744
30745         New abstract list operation 'node_set_value'.
30746         * lib/gl_list.h (gl_list_node_set_value): New function.
30747         (struct gl_list_implementation): New field node_set_value.
30748         * lib/gl_list.c (gl_list_node_set_value): New function.
30749         * lib/gl_array_list.c (gl_array_node_set_value): New function.
30750         (gl_array_list_implementation): Update.
30751         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
30752         (gl_carray_list_implementation): Update.
30753         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
30754         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
30755         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
30756         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
30757         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
30758         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
30759         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
30760         Update.
30761         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
30762         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
30763         (gl_sublist_list_implementation): Update.
30764
30765 2008-02-10  Bruno Haible  <bruno@clisp.org>
30766
30767         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
30768         Needed when ELEMENT is #defined to 'some_type *'.
30769
30770 2008-02-10  Jim Meyering  <meyering@redhat.com>
30771
30772         New script and module: useless-if-before-free
30773         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
30774         * build-aux/useless-if-before-free: New file.
30775         * modules/useless-if-before-free: New file.
30776
30777         * build-aux/gitlog-to-changelog: Use committer date, not author date.
30778
30779         xstrtol_error: Fix typo.
30780         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
30781         s/exit_failure/exit_status/.
30782
30783 2008-02-09  Jim Meyering  <meyering@redhat.com>
30784
30785         New script and module: gitlog-to-changelog
30786         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
30787         * modules/gitlog-to-changelog: New file.
30788         * build-aux/gitlog-to-changelog: New file.
30789
30790 2008-02-08  Jim Meyering  <meyering@redhat.com>
30791
30792         Avoid two "parameter unused" warnings.
30793         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
30794         Mark "st" as used.
30795
30796         Use "git COMMAND", not "git-COMMAND".
30797         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
30798         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
30799         * build-aux/git-version-gen: Use "git status", not "git-status".
30800
30801 2008-02-07  Bruno Haible  <bruno@clisp.org>
30802
30803         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
30804         Avoids a crash on Windows Vista.
30805         Reported by Adam Strzelecki <ono@java.pl> via
30806         Simon Josefsson <simon@josefsson.org>.
30807
30808 2008-02-06  Bruno Haible  <bruno@clisp.org>
30809
30810         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
30811         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
30812         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
30813         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
30814         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
30815         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
30816         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
30817         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
30818         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
30819         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
30820         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
30821         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
30822         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
30823         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30824         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
30825         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
30826         left-adjust flag.
30827         * tests/test-snprintf-posix.h (test_function): Likewise.
30828         * tests/test-sprintf-posix.h (test_function): Likewise.
30829         * tests/test-vasprintf-posix.c (test_function): Likewise.
30830         * doc/posix-functions/fprintf.texi: Update.
30831         * doc/posix-functions/printf.texi: Update.
30832         * doc/posix-functions/snprintf.texi: Update.
30833         * doc/posix-functions/sprintf.texi: Update.
30834         * doc/posix-functions/vfprintf.texi: Update.
30835         * doc/posix-functions/vprintf.texi: Update.
30836         * doc/posix-functions/vsnprintf.texi: Update.
30837         * doc/posix-functions/vsprintf.texi: Update.
30838         Reported by Peter Fales <psfales@alcatel-lucent.com>.
30839
30840 2008-02-06  Bruno Haible  <bruno@clisp.org>
30841
30842         Fix bug introduced on 2008-01-26.
30843         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
30844
30845 2008-02-06  Bruno Haible  <bruno@clisp.org>
30846
30847         Fix bug introduced on 2007-06-10.
30848         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
30849         !NEED_PRINTF_FLAG_ZERO.
30850
30851 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
30852
30853         getloadavg: use libperfstat on AIX5
30854         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
30855
30856 2008-02-03  Bruno Haible  <bruno@clisp.org>
30857
30858         * lib/diffseq.h: Add comments about required #includes.
30859         Reported by Michael Biggs <gnulib@doubleplum.net>.
30860
30861 2008-02-01  Bruno Haible  <bruno@clisp.org>
30862
30863         * users.txt: Add gnuit.
30864
30865 2008-01-31  Bruno Haible  <bruno@clisp.org>
30866
30867         * lib/md4.c (set_uint32): Mark as inline.
30868         * lib/md5.c (set_uint32): Likewise.
30869         * lib/sha1.c (set_uint32): Likewise.
30870         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
30871         * m4/md5.m4 (gl_MD5): Likewise.
30872         * m4/sha1.m4 (gl_SHA1): Likewise.
30873
30874 2008-01-31  Jim Meyering  <meyering@redhat.com>
30875
30876         Use "sizeof VAR", rather than a literal "4".
30877         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
30878         * lib/md4.c (md4_read_ctx): Likewise.
30879         * lib/sha1.c (sha1_read_ctx): Likewise.
30880
30881 2008-01-31  Simon Josefsson  <simon@josefsson.org>
30882
30883         * tests/test-sha1.c: New file, based on test-md5.c.
30884
30885         * modules/crypto/sha1-tests: New file.
30886
30887 2008-01-31  Simon Josefsson  <simon@josefsson.org>
30888
30889         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
30890
30891 2008-01-31  Jim Meyering  <meyering@redhat.com>
30892
30893         Prefer "sizeof v" over the equivalent "4".
30894         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
30895         * lib/md5.c (set_uint32): Likewise.
30896         * lib/sha1.c (set_uint32): Likewise.
30897
30898 2008-01-31  Simon Josefsson  <simon@josefsson.org>
30899
30900         * lib/sha1.c (set_uint32): Mark function as static.
30901
30902 2008-01-31  Simon Josefsson  <simon@josefsson.org>
30903
30904         md2: clarify comments to say that alignment is not required.
30905         * lib/md2.h: Remove warning about alignment in comment.
30906         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
30907         never been required.
30908
30909 2008-01-31  Simon Josefsson  <simon@josefsson.org>
30910
30911         md4: adapt alignment constraint fix from sha1.
30912         * lib/md4.c (set_uint32): New function, from sha1.c
30913         (md4_read_ctx): Use it.
30914         (md4_finish_ctx): Doc fix.
30915         * lib/md4.h: Doc fix.
30916
30917 2008-01-31  Simon Josefsson  <simon@josefsson.org>
30918
30919         md5: adapt alignment constraint fix from sha1.
30920         * lib/md5.c (set_uint32): New function, from sha1.c
30921         (md5_read_ctx): Use it.
30922         (md5_finish_ctx): Doc fix.
30923         * lib/md5.h: Doc fix.
30924
30925 2008-01-30  Peter Palfrader  <weasel@debian.org>
30926
30927         sha1: remove the result buffer alignment constraint
30928         * lib/sha1.c (set_uint32): New function.
30929         (sha1_read_ctx): Rewrite to remove the result buffer alignment
30930         constraint.
30931         (sha1_finish_ctx): Remove comment warning about alignment constraint.
30932         * lib/sha1.h: Likewise.
30933
30934 2008-01-30  Andreas Schwab  <schwab@suse.de>
30935             Bruno Haible  <bruno@clisp.org>
30936
30937         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
30938         correct definition of LDBL_MIN_EXP.
30939
30940 2008-01-30  Karl Berry  <karl@gnu.org>
30941
30942         * config/srclist-update: try to preserve x bit on updates.
30943         * config/srclistvars.sh: update for karl.
30944
30945 2008-01-29  Jim Meyering  <meyering@redhat.com>
30946
30947         vasnprintf.c: Avoid warning about unused label
30948         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
30949         "overflow" label definition and associated code with the
30950         same cpp condition that guards the sole use of that label.
30951
30952 2008-01-26  Bruno Haible  <bruno@clisp.org>
30953
30954         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
30955         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
30956         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
30957         * lib/isnanl-nolibm.h (isnanl): Likewise.
30958         Reported by Paul Eggert <eggert@cs.ucla.edu>.
30959
30960 2008-01-26  Bruno Haible  <bruno@clisp.org>
30961
30962         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
30963         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
30964
30965 2008-01-26  Bruno Haible  <bruno@clisp.org>
30966
30967         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
30968         GCC >= 4.0 built-in.
30969         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
30970
30971 2008-01-26  Bruno Haible  <bruno@clisp.org>
30972
30973         Rename isnan, applicable to 'double' only, to isnand.
30974         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
30975         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
30976         (configure.ac): Update.
30977         (Include): Replace "isnan.h" with "isnand.h".
30978         * m4/isnand.m4: Renamed from m4/isnan.m4.
30979         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
30980         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
30981         instead of isnan.c.
30982         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
30983         instead of HAVE_ISNAN_IN_LIBC.
30984         (isnand): Renamed from isnan.
30985         * lib/isnand.c: New file.
30986         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
30987         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
30988         (Makefile.am): Update.
30989         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
30990         Include isnand.h instead of isnan.h.
30991         (main): Test isnand instead of isnan.
30992         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
30993         isnan-nolibm.
30994         * modules/frexp (Depends-on): Likewise.
30995         * modules/frexp-tests (Depends-on): Likewise.
30996         * modules/frexp-nolibm (Depends-on): Likewise.
30997         * modules/frexp-nolibm-tests (Depends-on): Likewise.
30998         * modules/isfinite (Depends-on): Likewise.
30999         * modules/round-tests (Depends-on): Likewise.
31000         * modules/signbit (Depends-on): Likewise.
31001         * modules/signbit-tests (Depends-on): Likewise.
31002         * modules/snprintf-posix (Depends-on): Likewise.
31003         * modules/sprintf-posix (Depends-on): Likewise.
31004         * modules/trunc-tests (Depends-on): Likewise.
31005         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
31006         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
31007         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
31008         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
31009         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
31010         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
31011         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
31012         * modules/vasnprintf-posix (Depends-on): Likewise.
31013         * modules/vasprintf-posix (Depends-on): Likewise.
31014         * modules/vfprintf-posix (Depends-on): Likewise.
31015         * modules/vsnprintf-posix (Depends-on): Likewise.
31016         * modules/vsprintf-posix (Depends-on): Likewise.
31017         * lib/frexp.c: Include isnand.h instead of isnan.h.
31018         (ISNAN): Set to isnand instead of isnan.
31019         * lib/isfinite.c: Include isnand.h instead of isnan.h.
31020         (gl_isfinited): Use isnand instead of isnan.
31021         * lib/signbitd.c: Include isnand.h instead of isnan.h.
31022         (gl_signbitd): Use isnand instead of isnan.
31023         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
31024         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
31025         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
31026         (main): Use isnand instead of isnan.
31027         * tests/test-round1.c: Include isnand.h.
31028         (main): Use isnand instead of isnan.
31029         * tests/test-round2.c: Include isnand.h instead of isnan.h.
31030         (ISNAN): Set to isnand instead of isnan.
31031         * tests/test-trunc1.c: Include isnand.h.
31032         (main): Use isnand instead of isnan.
31033         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
31034         (equal): Use isnand instead of isnan.
31035         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
31036         isnand-nolibm.
31037         * NEWS: Mention the change.
31038
31039 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
31040             Bruno Haible  <bruno@clisp.org>
31041
31042         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
31043         the GCC builtins for signbits are present and set
31044         REPLACE_SIGNBIT_USING_GCC if so.
31045         * lib/math.in.h (signbit): Define using GCC builtins if
31046         REPLACE_SIGNBIT_USING_GCC is set.
31047         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
31048         REPLACE_SIGNBIT_USING_GCC.
31049         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
31050
31051 2008-01-25  Jim Meyering  <meyering@redhat.com>
31052
31053         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
31054         * lib/poll.c: Include <config.h>, not "config.h".
31055         * tests/test-getaddrinfo.c: Likewise.
31056
31057 2008-01-25  Simon Josefsson  <simon@josefsson.org>
31058
31059         * modules/sockets-tests: New file.
31060
31061 2008-01-24  Simon Josefsson  <simon@josefsson.org>
31062
31063         * modules/sockets: New module, can be used to call WSA_Startup and
31064         WSA_Cleanup when needed.
31065
31066         * lib/sockets.h, lib/sockets.c: New files.
31067
31068         * m4/sockets.m4: New file.
31069
31070         * tests/test-sockets.c: New file.
31071
31072 2008-01-19  Bruno Haible  <bruno@clisp.org>
31073
31074         * doc/posix-headers: Renamed from doc/headers.
31075         * doc/posix-functions: Renamed from doc/functions.
31076         * doc/gnulib.texi: Update.
31077
31078 2008-01-19  Bruno Haible  <bruno@clisp.org>
31079
31080         * doc/glibc-functions/strcasestr.texi: Include contents of
31081         doc/functions/strcasestr.texi, fixing the list of platforms.
31082         * doc/functions/strcasestr.texi: Remove file.
31083
31084 2008-01-19  Bruno Haible  <bruno@clisp.org>
31085
31086         * doc/glibc-functions/memmem.texi: Include contents of
31087         doc/functions/memmem.texi.
31088         * doc/functions/memmem.texi: Remove file.
31089
31090 2008-01-18  Bruno Haible  <bruno@clisp.org>
31091
31092         * doc/glibc-functions/*.texi: New files.
31093         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
31094         to use the new files.
31095
31096 2008-01-17  Bruno Haible  <bruno@clisp.org>
31097
31098         * tests/test-gethostname.c (main): Fix printf statement.
31099
31100 2008-01-17  Simon Josefsson  <simon@josefsson.org>
31101
31102         * modules/gethostname-tests: New file.
31103
31104         * tests/test-gethostname.c: New file.
31105
31106 2008-01-17  Simon Josefsson  <simon@josefsson.org>
31107
31108         * lib/gethostname.c: Include string.h unconditionally, strncpy is
31109         used by the UNAME case.  Reported by Bruno Haible
31110         <bruno@clisp.org>.
31111
31112 2008-01-17  Eric Blake  <ebb9@byu.net>
31113
31114         Convert c-strcasestr to be more efficient.
31115         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
31116         (Depends-on): Add c-strcase, remove malloca, strnlen.
31117         * tests/test-c-strcasestr.c (main): Enhance test.
31118         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
31119
31120 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
31121
31122         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
31123         Use it in creating po/Makevars.
31124
31125 2008-01-15  Simon Josefsson  <simon@josefsson.org>
31126
31127         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
31128         Applications that requires it should initialize libgcrypt
31129         manually.
31130
31131 2008-01-16  Simon Josefsson  <simon@josefsson.org>
31132
31133         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
31134
31135 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
31136
31137         Fix problem with getdate on mingw32 reported by Simon Josefsson
31138         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
31139         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
31140         tzname", when deciding whether to declare tzname.
31141         * lib/strftime.c (tzname): Likewise.
31142
31143 2008-01-15  Bruno Haible  <bruno@clisp.org>
31144
31145         Work around a MacOS X 10.5 bug in frexpl().
31146         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
31147         * doc/functions/frexpl.texi: Document the bug.
31148         Reported by Elias Pipping <pipping@gentoo.org>.
31149
31150 2008-01-14  Eric Blake  <ebb9@byu.net>
31151
31152         Touch up previous patch.
31153         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
31154         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
31155
31156         Convert strcasestr module to use Two-Way algorithm.
31157         * modules/strcasestr-simple: New module, based on the old
31158         strcasestr, but with Two-Way rather than KMP.
31159         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
31160         * lib/string.in.h (rpl_strcasestr): Declare.
31161         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
31162         performance.
31163         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
31164         * modules/string (Makefile.am): Support strcasestr.
31165         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
31166         * modules/strcasestr-tests (Depends-on): Check for alarm.
31167         * tests/test-strcasestr.c: Augment test.
31168         * lib/str-two-way.h: Clean up stray macro.
31169         * NEWS: Document new module.
31170         * MODULES.html.sh (string handling): Likewise.
31171         * doc/functions/strcasestr.texi: New file.
31172         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
31173         here, since it is not a POSIX function.
31174
31175 2008-01-14  Colin Watson  <cjwatson@debian.org>
31176             Bruno Haible  <bruno@clisp.org>
31177
31178         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
31179         works fine; if not, set REPLACE_STRSIGNAL.
31180         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
31181         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
31182         REPLACE_STRSIGNAL.
31183         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
31184         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
31185         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
31186
31187 2008-01-14  Bruno Haible  <bruno@clisp.org>
31188
31189         * modules/strsignal (Include): Change to <string.h>.
31190
31191 2008-01-14  Colin Watson  <cjwatson@debian.org>
31192
31193         * modules/argp (Notice): Add a notice recommending to change
31194         XGETTEXT_OPTIONS.
31195         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
31196
31197 2008-01-13  Colin Watson  <cjwatson@debian.org>
31198
31199         * modules/strsignal-tests: New file.
31200         * tests/test-strsignal.c: New file.
31201
31202         * lib/strsignal.c: New file, from glibc with modifications.
31203         * lib/siglist.h: New file, from glibc with modifications.
31204         * lib/string.in.h (strsignal): New declaration.
31205         * m4/strsignal.m4: New file.
31206         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
31207         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
31208         * modules/strsignal: New file.
31209         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
31210         HAVE_DECL_STRSIGNAL.
31211
31212 2008-01-13  Bruno Haible  <bruno@clisp.org>
31213
31214         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
31215         locale encoding is not ASCII. Needed for OpenBSD 4.0.
31216         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
31217         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
31218
31219 2008-01-13  Bruno Haible  <bruno@clisp.org>
31220
31221         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
31222         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
31223         * lib/argp.h (__attribute__): Likewise.
31224         * lib/c-stack.c (__attribute__): Likewise.
31225         * lib/error.h (__attribute__): Likewise.
31226         * lib/fts.c (__attribute__): Likewise.
31227         * lib/openat.h (__attribute__): Likewise.
31228         * lib/stdio.in.h (__attribute__): Likewise.
31229         * lib/string.in.h (__attribute__): Likewise.
31230         * lib/utimens.c (__attribute__): Likewise.
31231         * lib/vasnprintf.h (__attribute__): Likewise.
31232         * lib/xalloc.h (__attribute__): Likewise.
31233         * lib/xprintf.h (__attribute__): Likewise.
31234         * lib/xstrtol.h (__attribute__): Likewise.
31235         * lib/xvasprintf.h (__attribute__): Likewise.
31236
31237 2008-01-12  Bruno Haible  <bruno@clisp.org>
31238
31239         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
31240         * doc/glibc-headers/a.out.texi: New file.
31241         * doc/glibc-headers/aliases.texi: New file.
31242         * doc/glibc-headers/alloca.texi: New file.
31243         * doc/glibc-headers/ar.texi: New file.
31244         * doc/glibc-headers/argp.texi: New file.
31245         * doc/glibc-headers/argz.texi: New file.
31246         * doc/glibc-headers/byteswap.texi: New file.
31247         * doc/glibc-headers/crypt.texi: New file.
31248         * doc/glibc-headers/endian.texi: New file.
31249         * doc/glibc-headers/envz.texi: New file.
31250         * doc/glibc-headers/err.texi: New file.
31251         * doc/glibc-headers/error.texi: New file.
31252         * doc/glibc-headers/execinfo.texi: New file.
31253         * doc/glibc-headers/fpu_control.texi: New file.
31254         * doc/glibc-headers/fstab.texi: New file.
31255         * doc/glibc-headers/fts.texi: New file.
31256         * doc/glibc-headers/getopt.texi: New file.
31257         * doc/glibc-headers/ieee754.texi: New file.
31258         * doc/glibc-headers/ifaddrs.texi: New file.
31259         * doc/glibc-headers/libintl.texi: New file.
31260         * doc/glibc-headers/mcheck.texi: New file.
31261         * doc/glibc-headers/mntent.texi: New file.
31262         * doc/glibc-headers/obstack.texi: New file.
31263         * doc/glibc-headers/paths.texi: New file.
31264         * doc/glibc-headers/printf.texi: New file.
31265         * doc/glibc-headers/pty.texi: New file.
31266         * doc/glibc-headers/resolv.texi: New file.
31267         * doc/glibc-headers/shadow.texi: New file.
31268         * doc/glibc-headers/sysexits.texi: New file.
31269         * doc/glibc-headers/ttyent.texi: New file.
31270
31271 2008-01-12  Jim Meyering  <meyering@redhat.com>
31272
31273         announce-gen: emit Gnulib's git-based version string.
31274         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
31275         New option --gnulib-version=V, where V is expected to be
31276         the output of running git describe in the gnulib directory.
31277         (get_tool_versions): Request feedback on xdelta.  I suspect it's
31278         not useful, and plan to stop publishing an xdelta file with each
31279         coreutils release.
31280
31281         * build-aux/announce-gen: Also check for lzma-compressed files.
31282
31283 2008-01-11  Bruno Haible  <bruno@clisp.org>
31284
31285         * tests/test-memmem.c (main): Increase maximum allowed time.
31286         * tests/test-strstr.c (main): Likewise.
31287
31288 2008-01-11  Bruno Haible  <bruno@clisp.org>
31289
31290         * doc/functions/memmem.texi: Add more precisions about platforms.
31291         * doc/functions/strstr.texi: Likewise.
31292
31293 2008-01-10  Eric Blake  <ebb9@byu.net>
31294
31295         * m4/strstr.m4: Delete cruft from copy-n-paste.
31296         Reported by Bruno Haible.
31297
31298 2008-01-10  Bruno Haible  <bruno@clisp.org>
31299
31300         Make c-strstr rely on strstr.
31301         * lib/c-strstr.c: Don't include str-kmp.h.
31302         (c_strstr): Define in terms of strstr.
31303         * modules/c-strstr (Files): Remove lib/str-kmp.h.
31304         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
31305
31306 2008-01-10  Bruno Haible  <bruno@clisp.org>
31307
31308         * doc/gnulib.texi (String Functions in C Locale): New section.
31309         * doc/c-ctype.texi: New file.
31310         * doc/c-strcase.texi: New file.
31311         * doc/c-strcaseeq.texi: New file.
31312         * doc/c-strcasestr.texi: New file.
31313         * doc/c-strstr.texi: New file.
31314         * doc/c-strtod.texi: New file.
31315         * doc/c-strtold.texi: New file.
31316
31317 2008-01-10  Eric Blake  <ebb9@byu.net>
31318
31319         * lib/relocatable.h: Fix a comment.
31320
31321 2008-01-10  Eric Blake  <ebb9@byu.net>
31322
31323         Share two-way algorithm.
31324         * lib/str-two-way.h: New file, merged from...
31325         * lib/memmem.c: ...here...
31326         * lib/strstr.c: ...and here.
31327         * modules/memmem (Files): Use it.
31328         * modules/strstr (Files): Likewise.
31329
31330         Avoid quadratic strstr implementations.
31331         * lib/strstr.c: New file.
31332         * m4/strstr.m4: Likewise.
31333         * modules/strstr: Likewise.
31334         * modules/strstr-tests: Likewise.
31335         * tests/test-strstr.c: Likewise.
31336         * lib/string.in.h (rpl_strstr): Declare.
31337         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
31338         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
31339         * modules/string (Makefile.am): Likewise.
31340         * MODULES.html.sh (string handling): Mention new module.
31341         * doc/functions/strstr.texi (strstr): Document the bug.
31342
31343 2008-01-10  Bruno Haible  <bruno@clisp.org>
31344
31345         * lib/relocatable.h (relocate): State whether result is freshly
31346         allocated or not.
31347         * lib/relocatable.c (relocate): Return a freshly allocated string
31348         instead of a pointer to a privately held string.
31349         Reported by Sylvain Beucler <beuc@gnu.org>.
31350
31351 2008-01-10  Colin Watson  <cjwatson@debian.org>
31352
31353         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
31354         s/S_ISNLK/S_ISLNK/.
31355
31356 2008-01-09  Bruno Haible  <bruno@clisp.org>
31357
31358         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
31359         and other files.
31360         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
31361         if it's only a guess.
31362         * modules/memmem: Simplify by depending on memmem-simple.
31363
31364 2008-01-09  Bruno Haible  <bruno@clisp.org>
31365
31366         Work around OpenBSD 4.0 tdelete() bug.
31367         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
31368         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
31369         macros and don't redefine the enum values.
31370         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
31371         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
31372         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
31373
31374 2008-01-09  Bruno Haible  <bruno@clisp.org>
31375
31376         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
31377         (main): Don't perform the tests if setlocale did not install a UTF-8
31378         locale. Needed on OpenBSD 4.0.
31379         * modules/wcwidth-tests (Depends-on): Add localcharset.
31380
31381 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
31382
31383         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
31384         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
31385         * NEWS: announce this.
31386         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
31387
31388 2008-01-09  Simon Josefsson  <simon@josefsson.org>
31389         and Eric Blake  <ebb9@byu.net>
31390
31391         Add memmem-simple module.
31392         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
31393         (gl_FUNC_MEMMEM): Separate performance from presence checks.
31394         * modules/memmem-simple: New file.
31395         * modules/memmem (Description): Tweak.
31396         * MODULES.html.sh (string handling): Mention new module.
31397         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
31398         addressed by memmem-simple.
31399         * NEWS: Document the difference.
31400
31401 2008-01-09  Eric Blake  <ebb9@byu.net>
31402
31403         Give gcc some memmem optimization hints.
31404         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
31405         (strcasestr): Declare as pure.
31406         * modules/memmem (Maintainer): Claim my implementation.
31407
31408 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31409
31410         Support AIX 6.1 and higher.
31411         * build-aux/config.libpath: Likewise.
31412         * build-aux/config.rpath: Likewise.
31413
31414 2008-01-08  Jim Meyering  <meyering@redhat.com>
31415             Bruno Haible  <bruno@clisp.org>
31416
31417         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
31418         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
31419         Reported by Peter Fales in
31420         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
31421
31422 2008-01-08  Bruno Haible  <bruno@clisp.org>
31423
31424         * modules/unictype/category-of (Depends-on): Add
31425         unictype/category-none.
31426         * modules/unictype/category-and-tests (Depends-on): Add
31427         unictype/category-{L,N,Lu,Nd}.
31428         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
31429         * modules/unictype/category-or-tests (Depends-on): Add
31430         unictype/category-{L,N}.
31431         * modules/unictype/category-name-tests (Depends-on): Add
31432         unictype/category-{Z,Nl}.
31433         Reported by Simon Josefsson.
31434
31435 2008-01-08  Bruno Haible  <bruno@clisp.org>
31436
31437         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
31438         convention better.
31439         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
31440         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
31441         Reported by Peter Miller <millerp@canb.auug.org.au>.
31442
31443 2008-01-08  Eric Blake  <ebb9@byu.net>
31444
31445         Rewrite memmem to guarantee linear complexity without malloc.
31446         * lib/memmem.c (memmem): Use Two-Way rather than
31447         Knuth-Morris-Pratt, to allow O(1) space usage.
31448         (critical_factorization, two_way_short_needle)
31449         (two_way_long_needle): New functions.
31450         (knuth_morris_pratt): Delete.
31451         * modules/memmem (Depends-on): No longer need malloca or stdbool.
31452         Add stdint.
31453         * tests/test-memmem.c (main): Add tests for periodic needle and
31454         sublinear performance.
31455         * doc/functions/memmem.texi (memmem): Document other deficiencies
31456         in cygwin and older glibc.
31457
31458 2008-01-08  Bruno Haible  <bruno@clisp.org>
31459
31460         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
31461         augmentation.
31462
31463 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
31464
31465         Add a configure time option: --disable-acl.
31466         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
31467         AC_ARG_ENABLE(acl).
31468
31469 2008-01-06  Simon Josefsson  <simon@josefsson.org>
31470
31471         * tests/test-localename.c: Don't include obsolete "setenv.h".
31472
31473         * modules/localename-tests (Depends-on): Need unsetenv.
31474
31475 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31476
31477         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
31478
31479 2008-01-06  Colin Watson  <cjwatson@debian.org>
31480
31481         * users.txt: Add man-db.
31482
31483 2008-01-07  Bruno Haible  <bruno@clisp.org>
31484
31485         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
31486         previous section name.
31487
31488 2008-01-07  Bruno Haible  <bruno@clisp.org>
31489
31490         * lib/progname.c (set_program_name): Don't strip off a leading
31491         "lt-" prefix outside a .libs directory.
31492         Suggested by Paul Eggert.
31493
31494 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
31495             Bruno Haible  <bruno@clisp.org>
31496
31497         Improve memory cleanup in 'relocatable' module.
31498         * lib/relocatable.h (compute_curr_prefix): Change return type to
31499         'char *'.
31500         * lib/relocatable.c (compute_curr_prefix): Change return type to
31501         'char *'. Free curr_installdir after use.
31502         (relocate): Free curr_prefix_better after use.
31503         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
31504
31505 2008-01-01  Bruno Haible  <bruno@clisp.org>
31506
31507         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
31508         failure on older glibc systems.
31509         Reported by Peter Fales <psfales@alcatel-lucent.com>.
31510
31511 2008-01-05  Eric Blake  <ebb9@byu.net>
31512
31513         Avoid quadratic system memmem.
31514         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
31515         Reported by Ralf Wildenhues.
31516
31517         Fix memmem test for mingw.
31518         * modules/memmem-tests (configure.ac): Check for alarm.
31519         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
31520         it.
31521         * doc/functions/memmem.texi: New file.
31522         * doc/gnulib.texi (Function Substitutes): Add memmem.
31523         Reported by Bruno Haible.
31524
31525 2008-01-04  Bruno Haible  <bruno@clisp.org>
31526
31527         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
31528         Require gl_HEADER_STRINGS_H_DEFAULTS, not
31529         gl_HEADER_STRING_H_DEFAULTS.
31530
31531 2008-01-04  Eric Blake  <ebb9@byu.net>
31532
31533         Shorten duration of memmem test.
31534         * tests/test-memmem.c (main): Use alarm to declare failure if test
31535         is taking too long.
31536         Reported by Ralf Wildenhues.
31537
31538 2007-12-21  Simon Josefsson  <simon@josefsson.org>
31539
31540         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
31541         string, needed by strerror.
31542
31543 2008-01-03  Colin Watson  <cjwatson@debian.org>
31544             Bruno Haible  <bruno@clisp.org>
31545
31546         * doc/gnulib-tool.texi (Localization): New section.
31547
31548 2008-01-02  Bruno Haible  <bruno@clisp.org>
31549
31550         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
31551         variables to 'unsigned char *' type.
31552         Reported by Paul Eggert.
31553
31554 2008-01-02  Jim Meyering  <jim@meyering.net>
31555
31556         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
31557
31558 2007-12-31  Jim Meyering  <jim@meyering.net>
31559
31560         Avoid use of private FTS type name.
31561         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
31562
31563 2007-12-30  Karl Berry  <karl@gnu.org>
31564
31565         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
31566         work around defect in Texinfo and/or the standalone Info browser.
31567
31568 2007-12-30  Bruno Haible  <bruno@clisp.org>
31569
31570         Unify 5 copies of the KMP code.
31571         * lib/str-kmp.h: New file.
31572         * lib/c-strcasestr.c: Include str-kmp.h.
31573         (knuth_morris_pratt): Remove function.
31574         (c_strcasestr): Update.
31575         * lib/c-strstr.c: Include str-kmp.h.
31576         (knuth_morris_pratt): Remove function.
31577         (c_strcasestr): Update.
31578         * lib/mbscasestr.c: Include str-kmp.h.
31579         (knuth_morris_pratt_unibyte): Remove function.
31580         * lib/mbsstr.c: Include str-kmp.h.
31581         (knuth_morris_pratt_unibyte): Remove function.
31582         * lib/strcasestr.c: Include str-kmp.h.
31583         (knuth_morris_pratt): Remove function.
31584         (strcasestr): Update.
31585         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
31586         * modules/c-strstr (Files): Likewise.
31587         * modules/mbscasestr (Files): Likewise.
31588         * modules/mbsstr (Files): Likewise.
31589         * modules/strcasestr (Files): Likewise.
31590         Suggested by Paul Eggert.
31591
31592 2007-12-30  Bruno Haible  <bruno@clisp.org>
31593
31594         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
31595         defined.
31596
31597 2007-12-30  Bruno Haible  <bruno@clisp.org>
31598
31599         * lib/xmalloca.h: Include xalloc.h.
31600         (xnmalloca): New macro.
31601
31602 2007-12-30  Bruno Haible  <bruno@clisp.org>
31603
31604         * lib/malloca.h (nmalloca): New macro.
31605         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
31606         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
31607         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
31608         knuth_morris_pratt_multibyte): Likewise.
31609         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
31610         knuth_morris_pratt_multibyte): Likewise.
31611         * lib/memmem.c (knuth_morris_pratt): Likewise.
31612         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
31613
31614 2007-12-25  Bruno Haible  <bruno@clisp.org>
31615
31616         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
31617         * lib/glob.c: Don't include openat.h.
31618         (link_exists2_p): Add back the code that deals with the
31619         !GLOB_ALTDIRFUNC case.
31620         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
31621         let it do the filename concatenation.
31622         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
31623         * modules/glob (Depends-on): Remove openat.
31624
31625 2007-12-31  Bruno Haible  <bruno@clisp.org>
31626
31627         * modules/dirfd (License): Change to LGPLv2+.
31628         Approved by Jim Meyering.
31629
31630 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
31631
31632         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
31633         when multiplying M by sizeof (size_t).
31634
31635 2007-12-10  Martin Lambers  <marlam@marlam.de>
31636
31637         Override getpagesize on mingw.
31638         * lib/getpagesize.c: New file.
31639         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
31640         * modules/getpagesize (Files): Add lib/getpagesize.c.
31641         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
31642         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31643         REPLACE_GETPAGESIZE.
31644         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
31645
31646 2007-12-25  Bruno Haible  <bruno@clisp.org>
31647
31648         * modules/localcharset (Notice): New field.
31649         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
31650         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
31651
31652 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
31653             Bruno Haible  <bruno@clisp.org>
31654
31655         Avoid using the syntax symbol() in formatted documentation.
31656         * MODULES.html.sh (func_module): When replacing symbol() with a
31657         hyperlink, remove the parentheses. Show an error if some remain.
31658         Recognize and render the '...' syntax.
31659         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
31660         Rework. Add paragraph about GCC's inlining.
31661         * doc/alloca.texi: Likewise.
31662         * doc/error.texi: Remove parentheses from symbol reference.
31663         * doc/gnulib-intro.texi: Likewise.
31664         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
31665         * modules/fnmatch (Description): Reword to say "the ... function".
31666         * modules/full-read (Description): Likewise.
31667         * modules/full-write (Description): Likewise.
31668         * modules/safe-read (Description): Likewise.
31669         * modules/safe-write (Description): Likewise.
31670         * modules/strchrnul (Description): Likewise.
31671         * modules/trim (Description): Likewise.
31672         * modules/error (Description): Remove parentheses from symbol
31673         references.
31674         * modules/verror (Description): Likewise.
31675         Reported by Karl Berry.
31676
31677 2007-12-25  Bruno Haible  <bruno@clisp.org>
31678
31679         Fixup after 2007-10-16 commit.
31680         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
31681
31682 2007-12-24  Bruno Haible  <bruno@clisp.org>
31683
31684         Make --enable-relocatable work with DESTDIR.
31685         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
31686         to compute installdir from destprog.
31687         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
31688         also set the RELOC_DESTDIR variable.
31689         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
31690
31691 2007-12-24  Bruno Haible  <bruno@clisp.org>
31692
31693         Fix link error due to xalloc_die().
31694         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
31695         of xreadlink.
31696         * lib/relocwrapper.c: Update comments.
31697         * build-aux/install-reloc: Remove xreadlink.c from file list.
31698         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
31699         xreadlink.c.
31700         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
31701
31702 2007-12-24  Bruno Haible  <bruno@clisp.org>
31703
31704         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
31705         * lib/setenv.h: Remove file.
31706         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
31707         lib/setenv.h.
31708         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
31709         (Depends-on): Add stdlib.
31710         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
31711         gl_FUNC_UNSETENV.
31712         (Include): Replace setenv.h with <stdlib.h>.
31713         * modules/unsetenv: New file.
31714         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
31715         * lib/unsetenv.c: Include <stdlib.h> first.
31716         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
31717         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
31718         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
31719         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
31720         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
31721         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
31722         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
31723         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
31724         * doc/functions/unsetenv.texi: Update.
31725         * modules/xsetenv (Depends-on): Add unsetenv.
31726         * modules/getdate (Depends-on): Likewise.
31727         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
31728         * lib/xsetenv.c: Don't include setenv.h.
31729         * lib/getdate.y: Likewise.
31730         * lib/relocwrapper.c: Likewise.
31731         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
31732         (Depends-on): Add stdlib.
31733         * NEWS: Mention the changes.
31734         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
31735
31736 2007-12-23  Bruno Haible  <bruno@clisp.org>
31737
31738         * lib/memmem.c (memmem): Use lowercase variable names. Tab
31739         indentation.
31740
31741 2007-12-23  Bruno Haible  <bruno@clisp.org>
31742
31743         * lib/c-strcasestr.c: Add more comments.
31744         * lib/c-strstr.c: Likewise.
31745         * lib/mbscasestr.c: Likewise.
31746         * lib/mbsstr.c: Likewise.
31747         * lib/strcasestr.c: Likewise.
31748         * lib/memmem.c: Likewise.
31749
31750 2007-12-23  Bruno Haible  <bruno@clisp.org>
31751
31752         * tests/test-memmem.c: Include <string.h> first.
31753
31754 2007-12-22  Bruno Haible  <bruno@clisp.org>
31755
31756         * gnulib-tool (func_create_testdir): Change $auxdir while generating
31757         the contents of $testsbase.
31758         Reported by Ralf Wildenhues.
31759
31760 2007-12-22  Bruno Haible  <bruno@clisp.org>
31761
31762         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
31763         two variables local_ldadd_before, local_ldadd_last.
31764
31765 2007-12-20  Eric Blake  <ebb9@byu.net>
31766
31767         Work around circular library issue when cross-compiling.
31768         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
31769         that progname.o does not need to pull in rpl_memcmp.
31770
31771 2007-12-19  Eric Blake  <ebb9@byu.net>
31772
31773         Fix memmem to avoid O(n^2) worst-case complexity.
31774         * lib/memmem.c (knuth_morris_pratt): New function.
31775         (memmem): Use it if first few naive iterations fail.
31776         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
31777         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
31778         * modules/memchr (License): Likewise.
31779         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
31780         malloca.
31781         * tests/test-memmem.c: Rewrite, borrowing ideas from
31782         test-mbsstr1.c; the old version wouldn't even compile!
31783         * modules/memmem-tests: New file.
31784         * lib/string.in.h (rpl_memmem): Add declaration.
31785         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
31786         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
31787         REPLACE_MEMMEM.
31788
31789 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
31790
31791         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
31792         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
31793         before any system include files, and undef after them all.  This
31794         should fix a problem on VMS reported by John E. Malmberg in
31795         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
31796
31797 2007-12-17  Eric Blake  <ebb9@byu.net>
31798
31799         Revert addition of verify, for BSD/OS.
31800         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
31801         can't handle large files, for the sake of obsolete platforms.
31802         * modules/fseeko (Depends-on): Remove verify.
31803         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
31804         * doc/functions/ftello.texi (ftello): Likewise.
31805         * doc/functions/fgetpos.texi (fgetpos): Likewise.
31806         Reported by Larry Jones.
31807
31808 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
31809
31810         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
31811         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
31812
31813 2007-12-17  Jim Meyering  <meyering@redhat.com>
31814
31815         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
31816         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
31817         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
31818         * modules/getcwd (Depends-on): Add openat.
31819         Reported by Petr Salinger.
31820
31821 2007-12-17  Bruno Haible  <bruno@clisp.org>
31822
31823         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
31824         avoid a segmentation fault of the configure test on x86_64 systems.
31825
31826 2007-12-15  Jim Meyering  <meyering@redhat.com>
31827
31828         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
31829
31830 2007-12-13  Eric Blake  <ebb9@byu.net>
31831
31832         Another fseek test.
31833         * tests/test-fseek.c (main): Also test ungetc handling.
31834         * tests/test-fseeko.c (main): Likewise.
31835         * modules/fseeko (Depends-on): Add verify.
31836         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
31837         large.
31838         Reported by Larry Jones.
31839
31840         Fix fseeko on mingw.
31841         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
31842         seek.
31843
31844         Beef up fseek tests.
31845         * tests/test-fseek.c (main): Also test eof handling.
31846         * tests/test-fseeko.c (main): Likewise.
31847         Reported by Larry Jones.
31848
31849 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
31850
31851         Fix fseeko on BSD-based platforms.
31852         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
31853         successful seek.
31854
31855 2007-12-12  Eric Blake  <ebb9@byu.net>
31856
31857         Allow circular dependency of separate libtests.a
31858         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
31859         when use_libtests.
31860
31861 2007-12-11  Eric Blake  <ebb9@byu.net>
31862
31863         Fix bug with -0.0L in previous patch.
31864         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
31865         * tests/test-isnan.c (main): Also test on zeroes.
31866         * tests/test-isnanf.c (main): Likewise.
31867         * tests/test-isnanl.h (main): Likewise.
31868
31869         Detect pseudo-denormals on x86 even when cross-compiling.
31870         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
31871         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
31872         invalid bit patterns that happen to satisfy ==.
31873
31874         Avoid link failures with separate libtests.a.
31875         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
31876         last, to satisfy circular dependencies.
31877
31878 2007-12-11  Eric Blake  <ebb9@byu.net>
31879         and Bruno Haible  <bruno@clisp.org>
31880
31881         Fix OpenBSD 4.0 <float.h> handling of long double.
31882         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
31883         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
31884         * doc/headers/float.texi (float.h): Document OpenBSD bug.
31885
31886 2007-12-11  Jim Meyering  <meyering@redhat.com>
31887
31888         * users.txt: Add libvirt.
31889
31890         Support versions of autoconf prior to 2.59c.
31891         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
31892         if it is not already defined.
31893
31894 2007-12-09  Bruno Haible  <bruno@clisp.org>
31895
31896         Let 'gnulib-tool --import' collect sources needed for the tests in
31897         tests/ rather than in lib/.
31898         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
31899         argument. If true, add rules to generate libtests.a, and put libtests.a
31900         into $(LDADD). Consider source files in subdirectories and set
31901         uses_subdirs.
31902         (func_emit_initmacro_start, func_emit_initmacro_end,
31903         func_emit_initmacro_done): Pass all arguments explicitly.
31904         (func_import): Determine two module lists main_modules,
31905         testsrelated_modules. Determine use_libtests. Determine two variables
31906         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
31907         instead of just sed_transform_lib_file. Determine two variables
31908         main_files and testsrelated_files. Compute 'files' as the union of
31909         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
31910         func_add_or_update. In the generated gnulib-comp.m4, collect the
31911         object files for tests/ in different variables than those for lib/.
31912         Substitute LIBTESTS_LIBDEPS.
31913         (func_create_testdir): Combine the uses_subdirs results from
31914         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
31915
31916 2007-12-09  Bruno Haible  <bruno@clisp.org>
31917
31918         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
31919         the build-aux directory.
31920
31921 2007-12-09  Bruno Haible  <bruno@clisp.org>
31922
31923         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
31924         introduced on 2006-09-09.
31925
31926 2007-12-07  Jim Meyering  <meyering@redhat.com>
31927
31928         Let these macros work also with autoconf-2.59.
31929         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
31930         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
31931         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
31932
31933 2007-12-06  Jim Meyering  <meyering@redhat.com>
31934
31935         Avoid a configure-time syntax error in gl_FUNC_ACL.
31936         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
31937         function in each branch, before testing the cache variable.
31938
31939 2007-12-04  Eric Blake  <ebb9@byu.net>
31940
31941         Make scripts executable.
31942         * build-aux/config.guess: Add execute permissions.
31943         * build-aux/config.sub: Likewise.
31944         * build-aux/gendocs.sh: Likewise.
31945
31946         Fix frexp on mingw.
31947         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
31948         cross-compiling.
31949         * doc/functions/frexp.texi (frexp): Document the bug.
31950
31951         Make cygwin fseeko check more reliable.
31952         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
31953         version numbers, rather than unrelated feature check.
31954         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
31955         * doc/functions/ftello.texi (ftello): Likewise.
31956         Reported by Bruno Haible.
31957
31958         * m4/strerror.m4: Bump version number.
31959
31960 2007-12-03  Bruno Haible  <bruno@clisp.org>
31961
31962         * doc/functions/mprotect.texi: Mention the mingw problem.
31963
31964 2007-12-03  Eric Blake  <ebb9@byu.net>
31965
31966         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
31967         REPLACE_STRERROR is initialized before this macro.
31968
31969 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
31970
31971         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
31972         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
31973         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
31974         put -lsec in even for programs other than 'ls'.  This fixes a problem
31975         for gettext reported by Bruno Haible in
31976         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
31977         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
31978         Add support for Solaris 10.  This isn't efficient, but should get the
31979         job done for now.
31980
31981 2007-12-03  James Youngman  <jay@gnu.org>
31982
31983         * doc/regexprops-generic.texi: change "an close-group" to "a
31984         close-group" and "illegal" to "not allowed".
31985
31986 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31987
31988         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
31989         pr_byname.h. Needed for the rare case when the maintainer has done
31990         "make maintainer-clean" in the source directory and then attempts a
31991         build outside the source directory.
31992         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
31993         scripts_byname.h.
31994
31995 2007-12-02  Martin Lambers <marlam@marlam.de>
31996             Bruno Haible  <bruno@clisp.org>
31997
31998         * lib/getpagesize.h: Remove file.
31999         * lib/unistd.in.h: Include declaration of getpagesize here.
32000         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
32001         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
32002         HAVE_SYS_PARAM_H.
32003         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
32004         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
32005         * modules/getpagesize (Files): Remove lib/getpagesize.h.
32006         (Depends-on): Add unistd.
32007         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
32008         (Include): Use <unistd.h> instead of getpagesize.h.
32009         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
32010         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
32011         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
32012         gl_GETPAGESIZE invocation, already handled by module dependency.
32013         * lib/pagealign_alloc.c: Don't include getpagesize.h.
32014
32015 2007-12-02  Bruno Haible  <bruno@clisp.org>
32016
32017         * modules/strings-tests: New file.
32018         * tests/test-strings.c: New file.
32019
32020         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
32021         * lib/strings.in.h: New file.
32022         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
32023         * m4/strings_h.m4: New file.
32024         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
32025         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
32026         * modules/strings: New file.
32027         * modules/string (Makefile.am): Update.
32028         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
32029         Reported by Karl Berry.
32030
32031 2007-12-01  Eric Blake  <ebb9@byu.net>
32032
32033         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
32034         accomodate fix in cygwin 1.5.25.
32035
32036 2007-12-01  Jim Meyering  <meyering@redhat.com>
32037
32038         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
32039         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
32040         that would inhibit utf8-optimization of a regexp containing line-
32041         or buffer-anchors, e.g., `^', `$'.
32042
32043 2007-11-30  Bruno Haible  <bruno@clisp.org>
32044
32045         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
32046         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
32047         glthread_recursive_lock_init.
32048         * lib/lock.c (glthread_recursive_lock_init)
32049         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
32050         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
32051
32052 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
32053
32054         New function qset_acl, like set_acl but with syscall semantics.
32055         * lib/acl.h (qset_acl): New decl.
32056         * lib/acl.c (qset_acl): New function.
32057         (set_acl): Use new function.  Use more-consistent diagnostics.
32058
32059 2007-11-28  Jim Meyering  <meyering@redhat.com>
32060
32061         * modules/physmem (License): Change from GPL to LGPLv2+.
32062
32063 2007-11-26  Bruno Haible  <bruno@clisp.org>
32064
32065         * lib/vasnprintf.c (decode_long_double): Don't abort if the
32066         'long double' type has excess precision.
32067         Reported by Jim Meyering in
32068         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
32069
32070 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32071
32072         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
32073         Sync from <http://gnu.org/licenses>.
32074         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
32075         with license text from same location.
32076         * doc/maintain.texi, doc/standards.texi:  Sync from
32077         <http://savannah.gnu.org/projects/gnustandards>.
32078
32079 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
32080         and Jim Meyering  <meyering@redhat.com>
32081
32082         Adjust getdate' grammar to accept a slightly more regular language.
32083         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
32084         Before, the former was rejected.
32085         * lib/getdate.y (digits_to_date_time): New function, factored
32086         out of ...
32087         (number): ...here.  Just call digits_to_date_time.
32088         (hybrid): New non-terminal to handle an <unsigned number,
32089         signed relative offset> sequence consistently.
32090
32091 2007-11-18  Jim Meyering  <meyering@redhat.com>
32092
32093         Pull my changes from coreutils:
32094         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
32095         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
32096         use of $gnulib_tool_option_extras, so that it's separated from the
32097         preceding argument.
32098
32099         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
32100         * build-aux/bootstrap (cp_mark_as_generated): Create any required
32101         parent destination directories before copying a file into place.
32102
32103 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
32104
32105         bootstrap: work also with 4-argument variant of AC_INIT
32106         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
32107
32108 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
32109
32110         Port test-getaddrinfo to Solaris.
32111         Problem reported by Bruno Haible in
32112         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
32113         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
32114         explanation of setting 'hints'.
32115         Don't reject an implementation merely because it returns EAI_SERVICE.
32116         (EAI_SERVICE): Define to 0 if not defined.
32117
32118 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
32119
32120         The license of gnu-make and posix-shell is now "GPLed build tool".
32121         * modules/gnu-make (License): Likewise.
32122         * modules/posix-shell (License): Likewise.
32123
32124         New module posix-shell, for determining a POSIX shell
32125         or perhaps something that is close enough to a POSIX shell.
32126         * m4/posix-shell.m4: New file.
32127         * modules/posix-shell: New file.
32128
32129         * MODULES.html.sh: Mention new module.
32130
32131         New module gnu-make, for determining whether we're using GNU Make.
32132         * m4/gnu-make.m4: New file.
32133         * modules/gnu-make: New file.
32134         * MODULES.html.sh: Mention new module.
32135
32136 2007-11-14  Jim Meyering  <meyering@redhat.com>
32137
32138         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
32139         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
32140         use this macro to create a function _definition_.
32141         Remove useless "#undef ARGMATCH_DIE".
32142
32143 2007-11-14  Bruno Haible  <bruno@clisp.org>
32144
32145         * lib/config.charset: Update for OpenBSD 4.1.
32146         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
32147
32148 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
32149
32150         Document 64-bit #if problems in stdint.texi.
32151         * doc/headers/stdint.texi (stdint.h): Mention problems with
32152         64-bit-#if, and how to work around them.
32153
32154         Don't insist on 'long long int' support in the preprocessor.  It
32155         breaks too many things.  For example, PRIdMAX still uses a 'long
32156         long int' format with the latest Sun compiler, even though
32157         HAVE_LONG_LONG_INT isn't defined due to that compiler's
32158         preprocessor problem.  This causes the latest coreutils to dump
32159         core on Solaris 10 sparc with the Sun C compiler.
32160         Instead, fix the 2007-10-16 problem in a different way, by evaluating
32161         the troublesome expressions at configure-time, not at #if-time.
32162         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
32163         preprocessor.
32164         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
32165         compile-time C checks, done at 'configure'-time.
32166         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
32167         * modules/inttypes (Makefile): Substitute the new symbols that
32168         gl_INTTYPES_H now generates.
32169         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
32170
32171 2007-11-12  Bruno Haible  <bruno@clisp.org>
32172
32173         Tests for Unicode character classification functions.
32174
32175         * modules/unictype/bidicategory-byname-tests: New file.
32176         * modules/unictype/bidicategory-name-tests: New file.
32177         * modules/unictype/bidicategory-of-tests: New file.
32178         * modules/unictype/bidicategory-test-tests: New file.
32179         * modules/unictype/block-list-tests: New file.
32180         * modules/unictype/block-of-tests: New file.
32181         * modules/unictype/block-test-tests: New file.
32182         * modules/unictype/category-C-tests: New file.
32183         * modules/unictype/category-Cc-tests: New file.
32184         * modules/unictype/category-Cf-tests: New file.
32185         * modules/unictype/category-Cn-tests: New file.
32186         * modules/unictype/category-Co-tests: New file.
32187         * modules/unictype/category-Cs-tests: New file.
32188         * modules/unictype/category-L-tests: New file.
32189         * modules/unictype/category-Ll-tests: New file.
32190         * modules/unictype/category-Lm-tests: New file.
32191         * modules/unictype/category-Lo-tests: New file.
32192         * modules/unictype/category-Lt-tests: New file.
32193         * modules/unictype/category-Lu-tests: New file.
32194         * modules/unictype/category-M-tests: New file.
32195         * modules/unictype/category-Mc-tests: New file.
32196         * modules/unictype/category-Me-tests: New file.
32197         * modules/unictype/category-Mn-tests: New file.
32198         * modules/unictype/category-N-tests: New file.
32199         * modules/unictype/category-Nd-tests: New file.
32200         * modules/unictype/category-Nl-tests: New file.
32201         * modules/unictype/category-No-tests: New file.
32202         * modules/unictype/category-P-tests: New file.
32203         * modules/unictype/category-Pc-tests: New file.
32204         * modules/unictype/category-Pd-tests: New file.
32205         * modules/unictype/category-Pe-tests: New file.
32206         * modules/unictype/category-Pf-tests: New file.
32207         * modules/unictype/category-Pi-tests: New file.
32208         * modules/unictype/category-Po-tests: New file.
32209         * modules/unictype/category-Ps-tests: New file.
32210         * modules/unictype/category-S-tests: New file.
32211         * modules/unictype/category-Sc-tests: New file.
32212         * modules/unictype/category-Sk-tests: New file.
32213         * modules/unictype/category-Sm-tests: New file.
32214         * modules/unictype/category-So-tests: New file.
32215         * modules/unictype/category-Z-tests: New file.
32216         * modules/unictype/category-Zl-tests: New file.
32217         * modules/unictype/category-Zp-tests: New file.
32218         * modules/unictype/category-Zs-tests: New file.
32219         * modules/unictype/category-and-not-tests: New file.
32220         * modules/unictype/category-and-tests: New file.
32221         * modules/unictype/category-byname-tests: New file.
32222         * modules/unictype/category-name-tests: New file.
32223         * modules/unictype/category-none-tests: New file.
32224         * modules/unictype/category-of-tests: New file.
32225         * modules/unictype/category-or-tests: New file.
32226         * modules/unictype/category-test-withtable-tests: New file.
32227         * modules/unictype/combining-class-tests: New file.
32228         * modules/unictype/ctype-alnum-tests: New file.
32229         * modules/unictype/ctype-alpha-tests: New file.
32230         * modules/unictype/ctype-blank-tests: New file.
32231         * modules/unictype/ctype-cntrl-tests: New file.
32232         * modules/unictype/ctype-digit-tests: New file.
32233         * modules/unictype/ctype-graph-tests: New file.
32234         * modules/unictype/ctype-lower-tests: New file.
32235         * modules/unictype/ctype-print-tests: New file.
32236         * modules/unictype/ctype-punct-tests: New file.
32237         * modules/unictype/ctype-space-tests: New file.
32238         * modules/unictype/ctype-upper-tests: New file.
32239         * modules/unictype/ctype-xdigit-tests: New file.
32240         * modules/unictype/decimal-digit-tests: New file.
32241         * modules/unictype/digit-tests: New file.
32242         * modules/unictype/mirror-tests: New file.
32243         * modules/unictype/numeric-tests: New file.
32244         * modules/unictype/property-alphabetic-tests: New file.
32245         * modules/unictype/property-ascii-hex-digit-tests: New file.
32246         * modules/unictype/property-bidi-arabic-digit-tests: New file.
32247         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
32248         * modules/unictype/property-bidi-block-separator-tests: New file.
32249         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
32250         * modules/unictype/property-bidi-common-separator-tests: New file.
32251         * modules/unictype/property-bidi-control-tests: New file.
32252         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
32253         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
32254         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
32255         * modules/unictype/property-bidi-european-digit-tests: New file.
32256         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
32257         * modules/unictype/property-bidi-left-to-right-tests: New file.
32258         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
32259         * modules/unictype/property-bidi-other-neutral-tests: New file.
32260         * modules/unictype/property-bidi-pdf-tests: New file.
32261         * modules/unictype/property-bidi-segment-separator-tests: New file.
32262         * modules/unictype/property-bidi-whitespace-tests: New file.
32263         * modules/unictype/property-byname-tests: New file.
32264         * modules/unictype/property-combining-tests: New file.
32265         * modules/unictype/property-composite-tests: New file.
32266         * modules/unictype/property-currency-symbol-tests: New file.
32267         * modules/unictype/property-dash-tests: New file.
32268         * modules/unictype/property-decimal-digit-tests: New file.
32269         * modules/unictype/property-default-ignorable-code-point-tests: New file.
32270         * modules/unictype/property-deprecated-tests: New file.
32271         * modules/unictype/property-diacritic-tests: New file.
32272         * modules/unictype/property-extender-tests: New file.
32273         * modules/unictype/property-format-control-tests: New file.
32274         * modules/unictype/property-grapheme-base-tests: New file.
32275         * modules/unictype/property-grapheme-extend-tests: New file.
32276         * modules/unictype/property-grapheme-link-tests: New file.
32277         * modules/unictype/property-hex-digit-tests: New file.
32278         * modules/unictype/property-hyphen-tests: New file.
32279         * modules/unictype/property-id-continue-tests: New file.
32280         * modules/unictype/property-id-start-tests: New file.
32281         * modules/unictype/property-ideographic-tests: New file.
32282         * modules/unictype/property-ids-binary-operator-tests: New file.
32283         * modules/unictype/property-ids-trinary-operator-tests: New file.
32284         * modules/unictype/property-ignorable-control-tests: New file.
32285         * modules/unictype/property-iso-control-tests: New file.
32286         * modules/unictype/property-join-control-tests: New file.
32287         * modules/unictype/property-left-of-pair-tests: New file.
32288         * modules/unictype/property-line-separator-tests: New file.
32289         * modules/unictype/property-logical-order-exception-tests: New file.
32290         * modules/unictype/property-lowercase-tests: New file.
32291         * modules/unictype/property-math-tests: New file.
32292         * modules/unictype/property-non-break-tests: New file.
32293         * modules/unictype/property-not-a-character-tests: New file.
32294         * modules/unictype/property-numeric-tests: New file.
32295         * modules/unictype/property-other-alphabetic-tests: New file.
32296         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
32297         * modules/unictype/property-other-grapheme-extend-tests: New file.
32298         * modules/unictype/property-other-id-continue-tests: New file.
32299         * modules/unictype/property-other-id-start-tests: New file.
32300         * modules/unictype/property-other-lowercase-tests: New file.
32301         * modules/unictype/property-other-math-tests: New file.
32302         * modules/unictype/property-other-uppercase-tests: New file.
32303         * modules/unictype/property-paired-punctuation-tests: New file.
32304         * modules/unictype/property-paragraph-separator-tests: New file.
32305         * modules/unictype/property-pattern-syntax-tests: New file.
32306         * modules/unictype/property-pattern-white-space-tests: New file.
32307         * modules/unictype/property-private-use-tests: New file.
32308         * modules/unictype/property-punctuation-tests: New file.
32309         * modules/unictype/property-quotation-mark-tests: New file.
32310         * modules/unictype/property-radical-tests: New file.
32311         * modules/unictype/property-sentence-terminal-tests: New file.
32312         * modules/unictype/property-soft-dotted-tests: New file.
32313         * modules/unictype/property-space-tests: New file.
32314         * modules/unictype/property-terminal-punctuation-tests: New file.
32315         * modules/unictype/property-test-tests: New file.
32316         * modules/unictype/property-titlecase-tests: New file.
32317         * modules/unictype/property-unassigned-code-value-tests: New file.
32318         * modules/unictype/property-unified-ideograph-tests: New file.
32319         * modules/unictype/property-uppercase-tests: New file.
32320         * modules/unictype/property-variation-selector-tests: New file.
32321         * modules/unictype/property-white-space-tests: New file.
32322         * modules/unictype/property-xid-continue-tests: New file.
32323         * modules/unictype/property-xid-start-tests: New file.
32324         * modules/unictype/property-zero-width-tests: New file.
32325         * modules/unictype/scripts-tests: New file.
32326         * modules/unictype/syntax-c-ident-tests: New file.
32327         * modules/unictype/syntax-c-whitespace-tests: New file.
32328         * modules/unictype/syntax-java-ident-tests: New file.
32329         * modules/unictype/syntax-java-whitespace-tests: New file.
32330         * tests/unictype/test-bidi_byname.c: New file.
32331         * tests/unictype/test-bidi_name.c: New file.
32332         * tests/unictype/test-bidi_of.c: New file.
32333         * tests/unictype/test-bidi_test.c: New file.
32334         * tests/unictype/test-block_list.c: New file.
32335         * tests/unictype/test-block_of.c: New file.
32336         * tests/unictype/test-block_test.c: New file.
32337         * tests/unictype/test-categ_and.c: New file.
32338         * tests/unictype/test-categ_and_not.c: New file.
32339         * tests/unictype/test-categ_byname.c: New file.
32340         * tests/unictype/test-categ_name.c: New file.
32341         * tests/unictype/test-categ_none.c: New file.
32342         * tests/unictype/test-categ_of.c: New file.
32343         * tests/unictype/test-categ_or.c: New file.
32344         * tests/unictype/test-categ_test_withtable.c: New file.
32345         * tests/unictype/test-combining.c: New file.
32346         * tests/unictype/test-decdigit.c: New file.
32347         * tests/unictype/test-digit.c: New file.
32348         * tests/unictype/test-mirror.c: New file.
32349         * tests/unictype/test-numeric.c: New file.
32350         * tests/unictype/test-pr_byname.c: New file.
32351         * tests/unictype/test-pr_test.c: New file.
32352         * tests/unictype/test-predicate-part1.h: New file.
32353         * tests/unictype/test-predicate-part2.h: New file.
32354         * tests/unictype/test-scripts.c: New file.
32355         * tests/unictype/test-sy_c_ident.c: New file.
32356         * tests/unictype/test-sy_java_ident.c: New file.
32357
32358         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
32359         for Unicode 5.0.0.
32360         * tests/unictype/test-categ_Cc.c: Likewise.
32361         * tests/unictype/test-categ_Cf.c: Likewise.
32362         * tests/unictype/test-categ_Cn.c: Likewise.
32363         * tests/unictype/test-categ_Co.c: Likewise.
32364         * tests/unictype/test-categ_Cs.c: Likewise.
32365         * tests/unictype/test-categ_L.c: Likewise.
32366         * tests/unictype/test-categ_Ll.c: Likewise.
32367         * tests/unictype/test-categ_Lm.c: Likewise.
32368         * tests/unictype/test-categ_Lo.c: Likewise.
32369         * tests/unictype/test-categ_Lt.c: Likewise.
32370         * tests/unictype/test-categ_Lu.c: Likewise.
32371         * tests/unictype/test-categ_M.c: Likewise.
32372         * tests/unictype/test-categ_Mc.c: Likewise.
32373         * tests/unictype/test-categ_Me.c: Likewise.
32374         * tests/unictype/test-categ_Mn.c: Likewise.
32375         * tests/unictype/test-categ_N.c: Likewise.
32376         * tests/unictype/test-categ_Nd.c: Likewise.
32377         * tests/unictype/test-categ_Nl.c: Likewise.
32378         * tests/unictype/test-categ_No.c: Likewise.
32379         * tests/unictype/test-categ_P.c: Likewise.
32380         * tests/unictype/test-categ_Pc.c: Likewise.
32381         * tests/unictype/test-categ_Pd.c: Likewise.
32382         * tests/unictype/test-categ_Pe.c: Likewise.
32383         * tests/unictype/test-categ_Pf.c: Likewise.
32384         * tests/unictype/test-categ_Pi.c: Likewise.
32385         * tests/unictype/test-categ_Po.c: Likewise.
32386         * tests/unictype/test-categ_Ps.c: Likewise.
32387         * tests/unictype/test-categ_S.c: Likewise.
32388         * tests/unictype/test-categ_Sc.c: Likewise.
32389         * tests/unictype/test-categ_Sk.c: Likewise.
32390         * tests/unictype/test-categ_Sm.c: Likewise.
32391         * tests/unictype/test-categ_So.c: Likewise.
32392         * tests/unictype/test-categ_Z.c: Likewise.
32393         * tests/unictype/test-categ_Zl.c: Likewise.
32394         * tests/unictype/test-categ_Zp.c: Likewise.
32395         * tests/unictype/test-categ_Zs.c: Likewise.
32396         * tests/unictype/test-ctype_alnum.c: Likewise.
32397         * tests/unictype/test-ctype_alpha.c: Likewise.
32398         * tests/unictype/test-ctype_blank.c: Likewise.
32399         * tests/unictype/test-ctype_cntrl.c: Likewise.
32400         * tests/unictype/test-ctype_digit.c: Likewise.
32401         * tests/unictype/test-ctype_graph.c: Likewise.
32402         * tests/unictype/test-ctype_lower.c: Likewise.
32403         * tests/unictype/test-ctype_print.c: Likewise.
32404         * tests/unictype/test-ctype_punct.c: Likewise.
32405         * tests/unictype/test-ctype_space.c: Likewise.
32406         * tests/unictype/test-ctype_upper.c: Likewise.
32407         * tests/unictype/test-ctype_xdigit.c: Likewise.
32408         * tests/unictype/test-decdigit.h: Likewise.
32409         * tests/unictype/test-digit.h: Likewise.
32410         * tests/unictype/test-numeric.h: Likewise.
32411         * tests/unictype/test-pr_alphabetic.c: Likewise.
32412         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
32413         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
32414         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
32415         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
32416         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
32417         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
32418         * tests/unictype/test-pr_bidi_control.c: Likewise.
32419         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
32420         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
32421         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
32422         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
32423         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
32424         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
32425         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
32426         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
32427         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
32428         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
32429         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
32430         * tests/unictype/test-pr_combining.c: Likewise.
32431         * tests/unictype/test-pr_composite.c: Likewise.
32432         * tests/unictype/test-pr_currency_symbol.c: Likewise.
32433         * tests/unictype/test-pr_dash.c: Likewise.
32434         * tests/unictype/test-pr_decimal_digit.c: Likewise.
32435         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
32436         * tests/unictype/test-pr_deprecated.c: Likewise.
32437         * tests/unictype/test-pr_diacritic.c: Likewise.
32438         * tests/unictype/test-pr_extender.c: Likewise.
32439         * tests/unictype/test-pr_format_control.c: Likewise.
32440         * tests/unictype/test-pr_grapheme_base.c: Likewise.
32441         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
32442         * tests/unictype/test-pr_grapheme_link.c: Likewise.
32443         * tests/unictype/test-pr_hex_digit.c: Likewise.
32444         * tests/unictype/test-pr_hyphen.c: Likewise.
32445         * tests/unictype/test-pr_id_continue.c: Likewise.
32446         * tests/unictype/test-pr_id_start.c: Likewise.
32447         * tests/unictype/test-pr_ideographic.c: Likewise.
32448         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
32449         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
32450         * tests/unictype/test-pr_ignorable_control.c: Likewise.
32451         * tests/unictype/test-pr_iso_control.c: Likewise.
32452         * tests/unictype/test-pr_join_control.c: Likewise.
32453         * tests/unictype/test-pr_left_of_pair.c: Likewise.
32454         * tests/unictype/test-pr_line_separator.c: Likewise.
32455         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
32456         * tests/unictype/test-pr_lowercase.c: Likewise.
32457         * tests/unictype/test-pr_math.c: Likewise.
32458         * tests/unictype/test-pr_non_break.c: Likewise.
32459         * tests/unictype/test-pr_not_a_character.c: Likewise.
32460         * tests/unictype/test-pr_numeric.c: Likewise.
32461         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
32462         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
32463         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
32464         * tests/unictype/test-pr_other_id_continue.c: Likewise.
32465         * tests/unictype/test-pr_other_id_start.c: Likewise.
32466         * tests/unictype/test-pr_other_lowercase.c: Likewise.
32467         * tests/unictype/test-pr_other_math.c: Likewise.
32468         * tests/unictype/test-pr_other_uppercase.c: Likewise.
32469         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
32470         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
32471         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
32472         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
32473         * tests/unictype/test-pr_private_use.c: Likewise.
32474         * tests/unictype/test-pr_punctuation.c: Likewise.
32475         * tests/unictype/test-pr_quotation_mark.c: Likewise.
32476         * tests/unictype/test-pr_radical.c: Likewise.
32477         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
32478         * tests/unictype/test-pr_soft_dotted.c: Likewise.
32479         * tests/unictype/test-pr_space.c: Likewise.
32480         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
32481         * tests/unictype/test-pr_titlecase.c: Likewise.
32482         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
32483         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
32484         * tests/unictype/test-pr_uppercase.c: Likewise.
32485         * tests/unictype/test-pr_variation_selector.c: Likewise.
32486         * tests/unictype/test-pr_white_space.c: Likewise.
32487         * tests/unictype/test-pr_xid_continue.c: Likewise.
32488         * tests/unictype/test-pr_xid_start.c: Likewise.
32489         * tests/unictype/test-pr_zero_width.c: Likewise.
32490         * tests/unictype/test-sy_c_whitespace.c: Likewise.
32491         * tests/unictype/test-sy_java_whitespace.c: Likewise.
32492
32493 2007-11-12  Bruno Haible  <bruno@clisp.org>
32494
32495         Unicode character classification functions.
32496         * lib/unictype.h: New file.
32497         * modules/unictype/base: New file.
32498         * modules/unictype/category-L: New file.
32499         * modules/unictype/category-Lu: New file.
32500         * modules/unictype/category-Ll: New file.
32501         * modules/unictype/category-Lt: New file.
32502         * modules/unictype/category-Lm: New file.
32503         * modules/unictype/category-Lo: New file.
32504         * modules/unictype/category-M: New file.
32505         * modules/unictype/category-Mn: New file.
32506         * modules/unictype/category-Mc: New file.
32507         * modules/unictype/category-Me: New file.
32508         * modules/unictype/category-N: New file.
32509         * modules/unictype/category-Nd: New file.
32510         * modules/unictype/category-Nl: New file.
32511         * modules/unictype/category-No: New file.
32512         * modules/unictype/category-P: New file.
32513         * modules/unictype/category-Pc: New file.
32514         * modules/unictype/category-Pd: New file.
32515         * modules/unictype/category-Ps: New file.
32516         * modules/unictype/category-Pe: New file.
32517         * modules/unictype/category-Pi: New file.
32518         * modules/unictype/category-Pf: New file.
32519         * modules/unictype/category-Po: New file.
32520         * modules/unictype/category-S: New file.
32521         * modules/unictype/category-Sm: New file.
32522         * modules/unictype/category-Sc: New file.
32523         * modules/unictype/category-Sk: New file.
32524         * modules/unictype/category-So: New file.
32525         * modules/unictype/category-Z: New file.
32526         * modules/unictype/category-Zs: New file.
32527         * modules/unictype/category-Zl: New file.
32528         * modules/unictype/category-Zp: New file.
32529         * modules/unictype/category-C: New file.
32530         * modules/unictype/category-Cc: New file.
32531         * modules/unictype/category-Cf: New file.
32532         * modules/unictype/category-Cs: New file.
32533         * modules/unictype/category-Co: New file.
32534         * modules/unictype/category-Cn: New file.
32535         * modules/unictype/category-or: New file.
32536         * modules/unictype/category-of: New file.
32537         * modules/unictype/category-test: New file.
32538         * modules/unictype/category-test-withtable: New file.
32539         * modules/unictype/category-byname: New file.
32540         * modules/unictype/category-none: New file.
32541         * modules/unictype/category-and: New file.
32542         * modules/unictype/category-and-not: New file.
32543         * modules/unictype/category-name: New file.
32544         * modules/unictype/combining-class: New file.
32545         * modules/unictype/category-all: New file.
32546         * modules/unictype/bidicategory-all: New file.
32547         * modules/unictype/bidicategory-byname: New file.
32548         * modules/unictype/bidicategory-name: New file.
32549         * modules/unictype/bidicategory-of: New file.
32550         * modules/unictype/bidicategory-test: New file.
32551         * modules/unictype/decimal-digit: New file.
32552         * modules/unictype/digit: New file.
32553         * modules/unictype/numeric: New file.
32554         * modules/unictype/mirror: New file.
32555         * modules/unictype/property-white-space: New file.
32556         * modules/unictype/property-alphabetic: New file.
32557         * modules/unictype/property-other-alphabetic: New file.
32558         * modules/unictype/property-not-a-character: New file.
32559         * modules/unictype/property-default-ignorable-code-point: New file.
32560         * modules/unictype/property-other-default-ignorable-code-point: New
32561         file.
32562         * modules/unictype/property-deprecated: New file.
32563         * modules/unictype/property-logical-order-exception: New file.
32564         * modules/unictype/property-variation-selector: New file.
32565         * modules/unictype/property-private-use: New file.
32566         * modules/unictype/property-unassigned-code-value: New file.
32567         * modules/unictype/property-uppercase: New file.
32568         * modules/unictype/property-other-uppercase: New file.
32569         * modules/unictype/property-lowercase: New file.
32570         * modules/unictype/property-other-lowercase: New file.
32571         * modules/unictype/property-titlecase: New file.
32572         * modules/unictype/property-soft-dotted: New file.
32573         * modules/unictype/property-id-start: New file.
32574         * modules/unictype/property-other-id-start: New file.
32575         * modules/unictype/property-id-continue: New file.
32576         * modules/unictype/property-other-id-continue: New file.
32577         * modules/unictype/property-xid-start: New file.
32578         * modules/unictype/property-xid-continue: New file.
32579         * modules/unictype/property-pattern-white-space: New file.
32580         * modules/unictype/property-pattern-syntax: New file.
32581         * modules/unictype/property-join-control: New file.
32582         * modules/unictype/property-grapheme-base: New file.
32583         * modules/unictype/property-grapheme-extend: New file.
32584         * modules/unictype/property-other-grapheme-extend: New file.
32585         * modules/unictype/property-grapheme-link: New file.
32586         * modules/unictype/property-bidi-control: New file.
32587         * modules/unictype/property-bidi-left-to-right: New file.
32588         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
32589         * modules/unictype/property-bidi-arabic-right-to-left: New file.
32590         * modules/unictype/property-bidi-european-digit: New file.
32591         * modules/unictype/property-bidi-eur-num-separator: New file.
32592         * modules/unictype/property-bidi-eur-num-terminator: New file.
32593         * modules/unictype/property-bidi-arabic-digit: New file.
32594         * modules/unictype/property-bidi-common-separator: New file.
32595         * modules/unictype/property-bidi-block-separator: New file.
32596         * modules/unictype/property-bidi-segment-separator: New file.
32597         * modules/unictype/property-bidi-whitespace: New file.
32598         * modules/unictype/property-bidi-non-spacing-mark: New file.
32599         * modules/unictype/property-bidi-boundary-neutral: New file.
32600         * modules/unictype/property-bidi-pdf: New file.
32601         * modules/unictype/property-bidi-embedding-or-override: New file.
32602         * modules/unictype/property-bidi-other-neutral: New file.
32603         * modules/unictype/property-hex-digit: New file.
32604         * modules/unictype/property-ascii-hex-digit: New file.
32605         * modules/unictype/property-ideographic: New file.
32606         * modules/unictype/property-unified-ideograph: New file.
32607         * modules/unictype/property-radical: New file.
32608         * modules/unictype/property-ids-binary-operator: New file.
32609         * modules/unictype/property-ids-trinary-operator: New file.
32610         * modules/unictype/property-zero-width: New file.
32611         * modules/unictype/property-space: New file.
32612         * modules/unictype/property-non-break: New file.
32613         * modules/unictype/property-iso-control: New file.
32614         * modules/unictype/property-format-control: New file.
32615         * modules/unictype/property-dash: New file.
32616         * modules/unictype/property-hyphen: New file.
32617         * modules/unictype/property-punctuation: New file.
32618         * modules/unictype/property-line-separator: New file.
32619         * modules/unictype/property-paragraph-separator: New file.
32620         * modules/unictype/property-quotation-mark: New file.
32621         * modules/unictype/property-sentence-terminal: New file.
32622         * modules/unictype/property-terminal-punctuation: New file.
32623         * modules/unictype/property-currency-symbol: New file.
32624         * modules/unictype/property-math: New file.
32625         * modules/unictype/property-other-math: New file.
32626         * modules/unictype/property-paired-punctuation: New file.
32627         * modules/unictype/property-left-of-pair: New file.
32628         * modules/unictype/property-combining: New file.
32629         * modules/unictype/property-composite: New file.
32630         * modules/unictype/property-decimal-digit: New file.
32631         * modules/unictype/property-numeric: New file.
32632         * modules/unictype/property-diacritic: New file.
32633         * modules/unictype/property-extender: New file.
32634         * modules/unictype/property-ignorable-control: New file.
32635         * modules/unictype/property-test: New file.
32636         * modules/unictype/property-byname: New file.
32637         * modules/unictype/property-all: New file.
32638         * modules/unictype/scripts: New file.
32639         * modules/unictype/scripts-all: New file.
32640         * modules/unictype/block-of: New file.
32641         * modules/unictype/block-test: New file.
32642         * modules/unictype/block-list: New file.
32643         * modules/unictype/block-all: New file.
32644         * modules/unictype/syntax-c-whitespace: New file.
32645         * modules/unictype/syntax-java-whitespace: New file.
32646         * modules/unictype/syntax-c-ident: New file.
32647         * modules/unictype/syntax-java-ident: New file.
32648         * modules/unictype/ctype-alnum: New file.
32649         * modules/unictype/ctype-alpha: New file.
32650         * modules/unictype/ctype-cntrl: New file.
32651         * modules/unictype/ctype-digit: New file.
32652         * modules/unictype/ctype-graph: New file.
32653         * modules/unictype/ctype-lower: New file.
32654         * modules/unictype/ctype-print: New file.
32655         * modules/unictype/ctype-punct: New file.
32656         * modules/unictype/ctype-space: New file.
32657         * modules/unictype/ctype-upper: New file.
32658         * modules/unictype/ctype-xdigit: New file.
32659         * modules/unictype/ctype-blank: New file.
32660         * lib/unictype/bidi_byname.c: New file.
32661         * lib/unictype/bidi_name.c: New file.
32662         * lib/unictype/bidi_of.c: New file.
32663         * lib/unictype/bidi_test.c: New file.
32664         * lib/unictype/bitmap.h: New file.
32665         * lib/unictype/block_test.c: New file.
32666         * lib/unictype/blocks.c: New file.
32667         * lib/unictype/categ_C.c: New file.
32668         * lib/unictype/categ_Cc.c: New file.
32669         * lib/unictype/categ_Cf.c: New file.
32670         * lib/unictype/categ_Cn.c: New file.
32671         * lib/unictype/categ_Co.c: New file.
32672         * lib/unictype/categ_Cs.c: New file.
32673         * lib/unictype/categ_L.c: New file.
32674         * lib/unictype/categ_Ll.c: New file.
32675         * lib/unictype/categ_Lm.c: New file.
32676         * lib/unictype/categ_Lo.c: New file.
32677         * lib/unictype/categ_Lt.c: New file.
32678         * lib/unictype/categ_Lu.c: New file.
32679         * lib/unictype/categ_M.c: New file.
32680         * lib/unictype/categ_Mc.c: New file.
32681         * lib/unictype/categ_Me.c: New file.
32682         * lib/unictype/categ_Mn.c: New file.
32683         * lib/unictype/categ_N.c: New file.
32684         * lib/unictype/categ_Nd.c: New file.
32685         * lib/unictype/categ_Nl.c: New file.
32686         * lib/unictype/categ_No.c: New file.
32687         * lib/unictype/categ_P.c: New file.
32688         * lib/unictype/categ_Pc.c: New file.
32689         * lib/unictype/categ_Pd.c: New file.
32690         * lib/unictype/categ_Pe.c: New file.
32691         * lib/unictype/categ_Pf.c: New file.
32692         * lib/unictype/categ_Pi.c: New file.
32693         * lib/unictype/categ_Po.c: New file.
32694         * lib/unictype/categ_Ps.c: New file.
32695         * lib/unictype/categ_S.c: New file.
32696         * lib/unictype/categ_Sc.c: New file.
32697         * lib/unictype/categ_Sk.c: New file.
32698         * lib/unictype/categ_Sm.c: New file.
32699         * lib/unictype/categ_So.c: New file.
32700         * lib/unictype/categ_Z.c: New file.
32701         * lib/unictype/categ_Zl.c: New file.
32702         * lib/unictype/categ_Zp.c: New file.
32703         * lib/unictype/categ_Zs.c: New file.
32704         * lib/unictype/categ_and.c: New file.
32705         * lib/unictype/categ_and_not.c: New file.
32706         * lib/unictype/categ_byname.c: New file.
32707         * lib/unictype/categ_name.c: New file.
32708         * lib/unictype/categ_none.c: New file.
32709         * lib/unictype/categ_of.c: New file.
32710         * lib/unictype/categ_or.c: New file.
32711         * lib/unictype/categ_test.c: New file.
32712         * lib/unictype/combining.c: New file.
32713         * lib/unictype/ctype_alnum.c: New file.
32714         * lib/unictype/ctype_alpha.c: New file.
32715         * lib/unictype/ctype_blank.c: New file.
32716         * lib/unictype/ctype_cntrl.c: New file.
32717         * lib/unictype/ctype_digit.c: New file.
32718         * lib/unictype/ctype_graph.c: New file.
32719         * lib/unictype/ctype_lower.c: New file.
32720         * lib/unictype/ctype_print.c: New file.
32721         * lib/unictype/ctype_punct.c: New file.
32722         * lib/unictype/ctype_space.c: New file.
32723         * lib/unictype/ctype_upper.c: New file.
32724         * lib/unictype/ctype_xdigit.c: New file.
32725         * lib/unictype/decdigit.c: New file.
32726         * lib/unictype/digit.c: New file.
32727         * lib/unictype/identsyntaxmap.h: New file.
32728         * lib/unictype/mirror.c: New file.
32729         * lib/unictype/numeric.c: New file.
32730         * lib/unictype/pr_alphabetic.c: New file.
32731         * lib/unictype/pr_ascii_hex_digit.c: New file.
32732         * lib/unictype/pr_bidi_arabic_digit.c: New file.
32733         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
32734         * lib/unictype/pr_bidi_block_separator.c: New file.
32735         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
32736         * lib/unictype/pr_bidi_common_separator.c: New file.
32737         * lib/unictype/pr_bidi_control.c: New file.
32738         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
32739         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
32740         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
32741         * lib/unictype/pr_bidi_european_digit.c: New file.
32742         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
32743         * lib/unictype/pr_bidi_left_to_right.c: New file.
32744         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
32745         * lib/unictype/pr_bidi_other_neutral.c: New file.
32746         * lib/unictype/pr_bidi_pdf.c: New file.
32747         * lib/unictype/pr_bidi_segment_separator.c: New file.
32748         * lib/unictype/pr_bidi_whitespace.c: New file.
32749         * lib/unictype/pr_byname.c: New file.
32750         * lib/unictype/pr_byname.gperf: New file.
32751         * lib/unictype/pr_combining.c: New file.
32752         * lib/unictype/pr_composite.c: New file.
32753         * lib/unictype/pr_currency_symbol.c: New file.
32754         * lib/unictype/pr_dash.c: New file.
32755         * lib/unictype/pr_decimal_digit.c: New file.
32756         * lib/unictype/pr_default_ignorable_code_point.c: New file.
32757         * lib/unictype/pr_deprecated.c: New file.
32758         * lib/unictype/pr_diacritic.c: New file.
32759         * lib/unictype/pr_extender.c: New file.
32760         * lib/unictype/pr_format_control.c: New file.
32761         * lib/unictype/pr_grapheme_base.c: New file.
32762         * lib/unictype/pr_grapheme_extend.c: New file.
32763         * lib/unictype/pr_grapheme_link.c: New file.
32764         * lib/unictype/pr_hex_digit.c: New file.
32765         * lib/unictype/pr_hyphen.c: New file.
32766         * lib/unictype/pr_id_continue.c: New file.
32767         * lib/unictype/pr_id_start.c: New file.
32768         * lib/unictype/pr_ideographic.c: New file.
32769         * lib/unictype/pr_ids_binary_operator.c: New file.
32770         * lib/unictype/pr_ids_trinary_operator.c: New file.
32771         * lib/unictype/pr_ignorable_control.c: New file.
32772         * lib/unictype/pr_iso_control.c: New file.
32773         * lib/unictype/pr_join_control.c: New file.
32774         * lib/unictype/pr_left_of_pair.c: New file.
32775         * lib/unictype/pr_line_separator.c: New file.
32776         * lib/unictype/pr_logical_order_exception.c: New file.
32777         * lib/unictype/pr_lowercase.c: New file.
32778         * lib/unictype/pr_math.c: New file.
32779         * lib/unictype/pr_non_break.c: New file.
32780         * lib/unictype/pr_not_a_character.c: New file.
32781         * lib/unictype/pr_numeric.c: New file.
32782         * lib/unictype/pr_other_alphabetic.c: New file.
32783         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
32784         * lib/unictype/pr_other_grapheme_extend.c: New file.
32785         * lib/unictype/pr_other_id_continue.c: New file.
32786         * lib/unictype/pr_other_id_start.c: New file.
32787         * lib/unictype/pr_other_lowercase.c: New file.
32788         * lib/unictype/pr_other_math.c: New file.
32789         * lib/unictype/pr_other_uppercase.c: New file.
32790         * lib/unictype/pr_paired_punctuation.c: New file.
32791         * lib/unictype/pr_paragraph_separator.c: New file.
32792         * lib/unictype/pr_pattern_syntax.c: New file.
32793         * lib/unictype/pr_pattern_white_space.c: New file.
32794         * lib/unictype/pr_private_use.c: New file.
32795         * lib/unictype/pr_punctuation.c: New file.
32796         * lib/unictype/pr_quotation_mark.c: New file.
32797         * lib/unictype/pr_radical.c: New file.
32798         * lib/unictype/pr_sentence_terminal.c: New file.
32799         * lib/unictype/pr_soft_dotted.c: New file.
32800         * lib/unictype/pr_space.c: New file.
32801         * lib/unictype/pr_terminal_punctuation.c: New file.
32802         * lib/unictype/pr_test.c: New file.
32803         * lib/unictype/pr_titlecase.c: New file.
32804         * lib/unictype/pr_unassigned_code_value.c: New file.
32805         * lib/unictype/pr_unified_ideograph.c: New file.
32806         * lib/unictype/pr_uppercase.c: New file.
32807         * lib/unictype/pr_variation_selector.c: New file.
32808         * lib/unictype/pr_white_space.c: New file.
32809         * lib/unictype/pr_xid_continue.c: New file.
32810         * lib/unictype/pr_xid_start.c: New file.
32811         * lib/unictype/pr_zero_width.c: New file.
32812         * lib/unictype/scripts.c: New file.
32813         * lib/unictype/sy_c_ident.c: New file.
32814         * lib/unictype/sy_c_whitespace.c: New file.
32815         * lib/unictype/sy_java_ident.c: New file.
32816         * lib/unictype/sy_java_whitespace.c: New file.
32817
32818         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
32819         Unicode 5.0.0.
32820         * lib/unictype/blocks.h: Likewise.
32821         * lib/unictype/categ_C.h: Likewise.
32822         * lib/unictype/categ_Cc.h: Likewise.
32823         * lib/unictype/categ_Cf.h: Likewise.
32824         * lib/unictype/categ_Cn.h: Likewise.
32825         * lib/unictype/categ_Co.h: Likewise.
32826         * lib/unictype/categ_Cs.h: Likewise.
32827         * lib/unictype/categ_L.h: Likewise.
32828         * lib/unictype/categ_Ll.h: Likewise.
32829         * lib/unictype/categ_Lm.h: Likewise.
32830         * lib/unictype/categ_Lo.h: Likewise.
32831         * lib/unictype/categ_Lt.h: Likewise.
32832         * lib/unictype/categ_Lu.h: Likewise.
32833         * lib/unictype/categ_M.h: Likewise.
32834         * lib/unictype/categ_Mc.h: Likewise.
32835         * lib/unictype/categ_Me.h: Likewise.
32836         * lib/unictype/categ_Mn.h: Likewise.
32837         * lib/unictype/categ_N.h: Likewise.
32838         * lib/unictype/categ_Nd.h: Likewise.
32839         * lib/unictype/categ_Nl.h: Likewise.
32840         * lib/unictype/categ_No.h: Likewise.
32841         * lib/unictype/categ_P.h: Likewise.
32842         * lib/unictype/categ_Pc.h: Likewise.
32843         * lib/unictype/categ_Pd.h: Likewise.
32844         * lib/unictype/categ_Pe.h: Likewise.
32845         * lib/unictype/categ_Pf.h: Likewise.
32846         * lib/unictype/categ_Pi.h: Likewise.
32847         * lib/unictype/categ_Po.h: Likewise.
32848         * lib/unictype/categ_Ps.h: Likewise.
32849         * lib/unictype/categ_S.h: Likewise.
32850         * lib/unictype/categ_Sc.h: Likewise.
32851         * lib/unictype/categ_Sk.h: Likewise.
32852         * lib/unictype/categ_Sm.h: Likewise.
32853         * lib/unictype/categ_So.h: Likewise.
32854         * lib/unictype/categ_Z.h: Likewise.
32855         * lib/unictype/categ_Zl.h: Likewise.
32856         * lib/unictype/categ_Zp.h: Likewise.
32857         * lib/unictype/categ_Zs.h: Likewise.
32858         * lib/unictype/categ_of.h: Likewise.
32859         * lib/unictype/combining.h: Likewise.
32860         * lib/unictype/ctype_alnum.h: Likewise.
32861         * lib/unictype/ctype_alpha.h: Likewise.
32862         * lib/unictype/ctype_blank.h: Likewise.
32863         * lib/unictype/ctype_cntrl.h: Likewise.
32864         * lib/unictype/ctype_digit.h: Likewise.
32865         * lib/unictype/ctype_graph.h: Likewise.
32866         * lib/unictype/ctype_lower.h: Likewise.
32867         * lib/unictype/ctype_print.h: Likewise.
32868         * lib/unictype/ctype_punct.h: Likewise.
32869         * lib/unictype/ctype_space.h: Likewise.
32870         * lib/unictype/ctype_upper.h: Likewise.
32871         * lib/unictype/ctype_xdigit.h: Likewise.
32872         * lib/unictype/decdigit.h: Likewise.
32873         * lib/unictype/digit.h: Likewise.
32874         * lib/unictype/mirror.h: Likewise.
32875         * lib/unictype/numeric.h: Likewise.
32876         * lib/unictype/pr_alphabetic.h: Likewise.
32877         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
32878         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
32879         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
32880         * lib/unictype/pr_bidi_block_separator.h: Likewise.
32881         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
32882         * lib/unictype/pr_bidi_common_separator.h: Likewise.
32883         * lib/unictype/pr_bidi_control.h: Likewise.
32884         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
32885         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
32886         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
32887         * lib/unictype/pr_bidi_european_digit.h: Likewise.
32888         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
32889         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
32890         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
32891         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
32892         * lib/unictype/pr_bidi_pdf.h: Likewise.
32893         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
32894         * lib/unictype/pr_bidi_whitespace.h: Likewise.
32895         * lib/unictype/pr_combining.h: Likewise.
32896         * lib/unictype/pr_composite.h: Likewise.
32897         * lib/unictype/pr_currency_symbol.h: Likewise.
32898         * lib/unictype/pr_dash.h: Likewise.
32899         * lib/unictype/pr_decimal_digit.h: Likewise.
32900         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
32901         * lib/unictype/pr_deprecated.h: Likewise.
32902         * lib/unictype/pr_diacritic.h: Likewise.
32903         * lib/unictype/pr_extender.h: Likewise.
32904         * lib/unictype/pr_format_control.h: Likewise.
32905         * lib/unictype/pr_grapheme_base.h: Likewise.
32906         * lib/unictype/pr_grapheme_extend.h: Likewise.
32907         * lib/unictype/pr_grapheme_link.h: Likewise.
32908         * lib/unictype/pr_hex_digit.h: Likewise.
32909         * lib/unictype/pr_hyphen.h: Likewise.
32910         * lib/unictype/pr_id_continue.h: Likewise.
32911         * lib/unictype/pr_id_start.h: Likewise.
32912         * lib/unictype/pr_ideographic.h: Likewise.
32913         * lib/unictype/pr_ids_binary_operator.h: Likewise.
32914         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
32915         * lib/unictype/pr_ignorable_control.h: Likewise.
32916         * lib/unictype/pr_iso_control.h: Likewise.
32917         * lib/unictype/pr_join_control.h: Likewise.
32918         * lib/unictype/pr_left_of_pair.h: Likewise.
32919         * lib/unictype/pr_line_separator.h: Likewise.
32920         * lib/unictype/pr_logical_order_exception.h: Likewise.
32921         * lib/unictype/pr_lowercase.h: Likewise.
32922         * lib/unictype/pr_math.h: Likewise.
32923         * lib/unictype/pr_non_break.h: Likewise.
32924         * lib/unictype/pr_not_a_character.h: Likewise.
32925         * lib/unictype/pr_numeric.h: Likewise.
32926         * lib/unictype/pr_other_alphabetic.h: Likewise.
32927         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
32928         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
32929         * lib/unictype/pr_other_id_continue.h: Likewise.
32930         * lib/unictype/pr_other_id_start.h: Likewise.
32931         * lib/unictype/pr_other_lowercase.h: Likewise.
32932         * lib/unictype/pr_other_math.h: Likewise.
32933         * lib/unictype/pr_other_uppercase.h: Likewise.
32934         * lib/unictype/pr_paired_punctuation.h: Likewise.
32935         * lib/unictype/pr_paragraph_separator.h: Likewise.
32936         * lib/unictype/pr_pattern_syntax.h: Likewise.
32937         * lib/unictype/pr_pattern_white_space.h: Likewise.
32938         * lib/unictype/pr_private_use.h: Likewise.
32939         * lib/unictype/pr_punctuation.h: Likewise.
32940         * lib/unictype/pr_quotation_mark.h: Likewise.
32941         * lib/unictype/pr_radical.h: Likewise.
32942         * lib/unictype/pr_sentence_terminal.h: Likewise.
32943         * lib/unictype/pr_soft_dotted.h: Likewise.
32944         * lib/unictype/pr_space.h: Likewise.
32945         * lib/unictype/pr_terminal_punctuation.h: Likewise.
32946         * lib/unictype/pr_titlecase.h: Likewise.
32947         * lib/unictype/pr_unassigned_code_value.h: Likewise.
32948         * lib/unictype/pr_unified_ideograph.h: Likewise.
32949         * lib/unictype/pr_uppercase.h: Likewise.
32950         * lib/unictype/pr_variation_selector.h: Likewise.
32951         * lib/unictype/pr_white_space.h: Likewise.
32952         * lib/unictype/pr_xid_continue.h: Likewise.
32953         * lib/unictype/pr_xid_start.h: Likewise.
32954         * lib/unictype/pr_zero_width.h: Likewise.
32955         * lib/unictype/scripts.h: Likewise.
32956         * lib/unictype/scripts_byname.gperf: Likewise.
32957         * lib/unictype/sy_c_ident.h: Likewise.
32958         * lib/unictype/sy_c_whitespace.h: Likewise.
32959         * lib/unictype/sy_java_ident.h: Likewise.
32960         * lib/unictype/sy_java_whitespace.h: Likewise.
32961
32962         * lib/unictype/Makefile: New file.
32963         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
32964         glibc.
32965         * lib/unictype/3level.h: New file, copied from glibc.
32966         * lib/unictype/3levelbit.h: New file.
32967
32968 2007-11-11  Bruno Haible  <bruno@clisp.org>
32969
32970         * modules/gperf: New file.
32971         * modules/iconv_open (Depends-on): Add it.
32972         (Makefile.am): Remove the GPERF definition.
32973
32974 2007-11-11  Bruno Haible  <bruno@clisp.org>
32975
32976         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
32977         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
32978
32979 2007-11-11  Bruno Haible  <bruno@clisp.org>
32980
32981         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
32982         (usage): Remove function.
32983
32984 2007-11-11  Bruno Haible  <bruno@clisp.org>
32985
32986         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
32987         gl_FUNC_CEILF_LIBS.
32988         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
32989         gl_FUNC_CEIL_LIBS.
32990         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
32991         gl_FUNC_CEILL_LIBS.
32992         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
32993         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
32994         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
32995
32996 2007-11-11  Bruno Haible  <bruno@clisp.org>
32997
32998         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
32999         roundf were declared but do not exist on functions.
33000         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
33001         roundl were declared but do not exist on functions.
33002         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
33003         HAVE_FLOORL_AND_CEILL, respectively.
33004         Needed for Sun C on Solaris 10.
33005
33006 2007-11-11  Bruno Haible  <bruno@clisp.org>
33007
33008         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
33009         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
33010         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
33011         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
33012         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
33013         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
33014         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
33015         HAVE_DECL_ROUNDF.
33016         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
33017         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
33018         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
33019         of HAVE_DECL_ROUND*.
33020         * modules/math (Makefile.am): Update.
33021
33022 2007-11-10  Bruno Haible  <bruno@clisp.org>
33023
33024         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
33025         ptrdiff_t as m4/intl.m4.
33026
33027 2007-11-10  Jim Meyering  <meyering@redhat.com>
33028
33029         Avoid link failure for the argmatch test.
33030         * tests/test-argmatch.c (usage): Define function to avoid a link
33031         failure: argmatch_die requires a usage function.
33032
33033 2007-11-09  Bruno Haible  <bruno@clisp.org>
33034
33035         * doc/functions/snprintf.texi: Mention BeOS deficiency.
33036         * doc/functions/vsnprintf.texi: Likewise.
33037         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
33038         with a size argument < 2.
33039
33040 2007-11-09  Bruno Haible  <bruno@clisp.org>
33041
33042         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
33043         buffer. Fixes an inefficiency introduced on 2007-11-03.
33044
33045 2007-11-09  Bruno Haible  <bruno@clisp.org>
33046
33047         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
33048         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
33049
33050 2007-11-08  Jim Meyering  <meyering@redhat.com>
33051
33052         Change cache variable name prefix "jm_" to "gl_" everywhere.
33053         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
33054         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
33055         * m4/uptime.m4: s/gl_/jm_/
33056
33057 2007-11-07  Bruno Haible  <bruno@clisp.org>
33058
33059         Update to GNU gettext 0.17.
33060         * m4/intl.m4: Update to GNU gettext 0.17.
33061         * m4/po.m4: Likewise.
33062         * modules/gettext (Files): Remove m4/ulonglong.m4.
33063         (configure.ac): Require gettext infrastructure from version 0.17.
33064
33065 2007-11-06  Bruno Haible  <bruno@clisp.org>
33066
33067         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
33068         symbolic values are not defined in a public header.
33069         * lib/freadable.c (freadable) [QNX]: Likewise.
33070         * lib/freadahead.c (freadahead) [QNX]: Likewise.
33071         * lib/freading.c (freading) [QNX]: Likewise.
33072         * lib/fseterr.c (fseterr) [QNX]: Likewise.
33073         * lib/fwritable.c (fwritable) [QNX]: Likewise.
33074         * lib/fwriting.c (fwriting) [QNX]: Likewise.
33075         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
33076         Reported by Alain Magloire.
33077
33078         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
33079
33080 2007-11-05  Bruno Haible  <bruno@clisp.org>
33081
33082         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
33083         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
33084         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
33085         Reported by Eric Blake.
33086
33087 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33088             Bruno Haible  <bruno@clisp.org>
33089
33090         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
33091         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
33092         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
33093         (malloc): Undefine also before including <stdlib.h>.
33094         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
33095         Needed on OSF/1 4.0.
33096
33097 2007-11-05  Jim Meyering  <meyering@redhat.com>
33098
33099         git-version-gen: sync from coreutils.
33100         * build-aux/git-version-gen: Add comments.
33101         Change the first '-' to '.' in the snapshot version string,
33102         e.g., 6.9-377-08144 -> 6.9.377-08144
33103         Remove first parameter.
33104         Don't declare a version "-dirty" merely because a time
33105         stamp has changed.
33106
33107 2007-11-04  Bruno Haible  <bruno@clisp.org>
33108
33109         * lib/lock.h: Protect all macro definitions containing an 'if'
33110         statement through a "do { ... } while (0)".
33111         * lib/tls.h: Likewise.
33112
33113 2007-11-04  Bruno Haible  <bruno@clisp.org>
33114
33115         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
33116
33117 2007-11-04  Bruno Haible  <bruno@clisp.org>
33118
33119         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
33120         * modules/fprintf-posix (Depends-on): Add nocrash.
33121         * modules/snprintf-posix (Depends-on): Likewise.
33122         * modules/sprintf-posix (Depends-on): Likewise.
33123         * modules/vasnprintf-posix (Depends-on): Likewise.
33124         * modules/vasprintf-posix (Depends-on): Likewise.
33125         * modules/vfprintf-posix (Depends-on): Likewise.
33126         * modules/vsnprintf-posix (Depends-on): Likewise.
33127         * modules/vsprintf-posix (Depends-on): Likewise.
33128         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
33129         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
33130         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
33131         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
33132         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
33133         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
33134         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
33135
33136 2007-11-04  Bruno Haible  <bruno@clisp.org>
33137
33138         * modules/nocrash: New file.
33139         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
33140         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
33141
33142 2007-11-04  Bruno Haible  <bruno@clisp.org>
33143
33144         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
33145         precision handling.
33146         * tests/test-vasprintf-posix.c (test_function): Likewise.
33147         * tests/test-snprintf-posix.h (test_function): Likewise.
33148         * tests/test-sprintf-posix.h (test_function): Likewise.
33149
33150         Fix *printf behaviour for large precisions on mingw and BeOS.
33151         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
33152         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
33153         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
33154         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
33155         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33156         gl_PRINTF_PRECISION and test its result. Invoke
33157         gl_PREREQ_VASNPRINTF_PRECISION.
33158         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33159         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33160         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33161         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33162         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33163         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33164         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33165         * doc/functions/fprintf.texi: Update.
33166         * doc/functions/printf.texi: Update.
33167         * doc/functions/snprintf.texi: Update.
33168         * doc/functions/sprintf.texi: Update.
33169         * doc/functions/vfprintf.texi: Update.
33170         * doc/functions/vprintf.texi: Update.
33171         * doc/functions/vsnprintf.texi: Update.
33172         * doc/functions/vsprintf.texi: Update.
33173
33174 2007-11-04  Bruno Haible  <bruno@clisp.org>
33175
33176         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
33177
33178 2007-11-04  Bruno Haible  <bruno@clisp.org>
33179
33180         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
33181         Reported by Sylvain Beucler <beuc@gnu.org>.
33182
33183 2007-11-03  Bruno Haible  <bruno@clisp.org>
33184
33185         * tests/test-fprintf-posix2.sh: New file.
33186         * tests/test-fprintf-posix2.c: New file.
33187         * modules/fprintf-posix-tests (Files): Add them.
33188         (TESTS): Add test-fprintf-posix2.sh.
33189         (configure.ac): Check for getrlimit and setrlimit.
33190         (check_PROGRAMS): Add test-fprintf-posix2.
33191
33192         * tests/test-printf-posix2.sh: New file.
33193         * tests/test-printf-posix2.c: New file.
33194         * modules/printf-posix-tests (Files): Add them.
33195         (TESTS): Add test-printf-posix2.sh.
33196         (configure.ac): Check for getrlimit and setrlimit.
33197         (check_PROGRAMS): Add test-printf-posix2.
33198
33199         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
33200         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
33201         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
33202         (decode_double): New function, copied from decode_long_double.
33203         (scale10_round_decimal_decoded): New function, extracted from
33204         scale10_round_decimal_long_double.
33205         (scale10_round_decimal_long_double): Use it.
33206         (scale10_round_decimal_double): New function.
33207         (floorlog10): New function.
33208         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
33209         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
33210         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
33211         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33212         gl_PRINTF_ENOMEM and test its result. Invoke
33213         gl_PREREQ_VASNPRINTF_ENOMEM.
33214         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33215         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33216         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33217         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33218         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33219         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33220         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33221         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
33222         * modules/snprintf-posix (Depends-on): Likewise.
33223         * modules/sprintf-posix (Depends-on): Likewise.
33224         * modules/vasnprintf-posix (Depends-on): Likewise.
33225         * modules/vasprintf-posix (Depends-on): Likewise.
33226         * modules/vfprintf-posix (Depends-on): Likewise.
33227         * modules/vsnprintf-posix (Depends-on): Likewise.
33228         * modules/vsprintf-posix (Depends-on): Likewise.
33229         * doc/functions/fprintf.texi: Update.
33230         * doc/functions/printf.texi: Update.
33231         * doc/functions/snprintf.texi: Update.
33232         * doc/functions/sprintf.texi: Update.
33233         * doc/functions/vfprintf.texi: Update.
33234         * doc/functions/vprintf.texi: Update.
33235         * doc/functions/vsnprintf.texi: Update.
33236         * doc/functions/vsprintf.texi: Update.
33237
33238 2007-11-03  Bruno Haible  <bruno@clisp.org>
33239
33240         * modules/frexp-nolibm-tests: New file.
33241
33242         * modules/frexp-nolibm: New file.
33243         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
33244
33245 2007-11-03  Bruno Haible  <bruno@clisp.org>
33246
33247         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
33248         value is C99 compliant.
33249         Needed for OSF/1 5.1.
33250
33251 2007-11-03  Bruno Haible  <bruno@clisp.org>
33252
33253         Fix out-of-memory handling of vasnprintf.
33254         * lib/printf-parse.c: Include <errno.h>.
33255         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
33256         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
33257         is already set.
33258
33259 2007-11-02  Eric Blake  <ebb9@byu.net>
33260
33261         Fix tests on cygwin.
33262         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
33263
33264 2007-11-01  Bruno Haible  <bruno@clisp.org>
33265
33266         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
33267         warning.
33268         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
33269         needed for POSIX compatibility.
33270
33271 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
33272
33273         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
33274         for compatibility with GNU.
33275
33276 2007-11-01  Bruno Haible  <bruno@clisp.org>
33277
33278         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
33279         (putenv): Renamed from rpl_putenv. Change argument type from
33280         'const char *' to 'char *'.
33281         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
33282         of defining putenv in config.h, just set REPLACE_PUTENV.
33283         * modules/putenv (Depends-on): Add stdlib.
33284         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
33285         (Include): Use <stdlib.h>.
33286         * lib/stdlib.in.h (putenv): New declaration.
33287         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
33288         REPLACE_PUTENV.
33289         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
33290         REPLACE_PUTENV.
33291         Needed for MacOS X 10.5.0.
33292         Reported by Peter O'Gorman <peter@pogma.com>.
33293
33294 2007-11-01  Jim Meyering  <meyering@redhat.com>
33295
33296         Treat an empty date string exactly like "0".
33297         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
33298         if the remaining date string (to be parsed) is empty, use "0".
33299         Reported by Mischa Molhoek and discussed in this thread:
33300         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
33301
33302 2007-10-31  Bruno Haible  <bruno@clisp.org>
33303
33304         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
33305         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
33306         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
33307         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
33308         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
33309         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
33310
33311 2007-10-31  Bruno Haible  <bruno@clisp.org>
33312
33313         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
33314         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
33315         (AC_TYPE_LONG_LONG_INT): Use it.
33316         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
33317         it as well.
33318         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
33319         to m4/longlong.m4.
33320         * modules/stdint (Files): Remove m4/ulonglong.m4.
33321         * modules/strtoull (Files): Use m4/longlong.m4 instead of
33322         m4/ulonglong.m4.
33323         * modules/strtoumax (Files): Likewise.
33324
33325 2007-10-30  Bruno Haible  <bruno@clisp.org>
33326
33327         * modules/xvasprintf-posix: New file.
33328         Suggested by Eric Blake.
33329
33330 2007-10-30  Bruno Haible  <bruno@clisp.org>
33331
33332         * modules/xprintf-posix-tests: New file.
33333         * tests/test-xprintf-posix.sh: New file.
33334         * tests/test-xprintf-posix.c: New file.
33335         * tests/test-xfprintf-posix.c: New file.
33336
33337         * modules/xprintf-posix: New file.
33338
33339 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33340
33341         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
33342         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
33343         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
33344
33345 2007-10-29  Bruno Haible  <bruno@clisp.org>
33346
33347         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
33348         contain the special marker '_cv_'.
33349         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
33350         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
33351         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
33352         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
33353         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
33354         Reported by Ralf Wildenhues.
33355
33356 2007-10-29  Bruno Haible  <bruno@clisp.org>
33357
33358         * gnulib-tool (func_import): When --lgpl is not specified, set
33359         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
33360         GPLv3.
33361         Reported by Simon Josefsson.
33362
33363 2007-10-28  Bruno Haible  <bruno@clisp.org>
33364
33365         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
33366         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
33367         HAVE_DECL_ISFINITE.
33368         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
33369         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
33370         HAVE_DECL_ISFINITE.
33371
33372 2007-10-28  Bruno Haible  <bruno@clisp.org>
33373
33374         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
33375         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
33376
33377 2007-10-28  Bruno Haible  <bruno@clisp.org>
33378
33379         Fix link errors with Sun C 5.0 on Solaris 10.
33380         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
33381         function is declared but not present in the compiler's libm.
33382         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
33383         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
33384         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
33385         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
33386         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
33387         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
33388         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
33389         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
33390         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
33391         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
33392         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
33393         HAVE_DECL_FLOORL.
33394
33395 2007-10-28  Bruno Haible  <bruno@clisp.org>
33396
33397         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
33398         gl_FUNC_FLOORL. Cache the result.
33399         (gl_FUNC_FLOORL): Use it.
33400         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
33401         gl_FUNC_CEILL. Cache the result.
33402         (gl_FUNC_CEILL): Use it.
33403
33404         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
33405         gl_FUNC_FLOOR. Cache the result.
33406         (gl_FUNC_FLOOR): Use it.
33407         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
33408         gl_FUNC_CEIL. Cache the result.
33409         (gl_FUNC_CEIL): Use it.
33410
33411         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
33412         gl_FUNC_FLOORF. Cache the result.
33413         (gl_FUNC_FLOORF): Use it.
33414         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
33415         gl_FUNC_CEILF. Cache the result.
33416         (gl_FUNC_CEILF): Use it.
33417
33418 2007-10-28  Bruno Haible  <bruno@clisp.org>
33419
33420         * gnulib-tool: Allow specifying the LGPL version number through
33421         --lgpl=2 or --lgpl=3.
33422         (func_usage): Document --lgpl with argument.
33423         Handle --lgpl=... arguments.
33424         (func_import): Recognize also gl_LGPL calls with an argument. When
33425         --lgpl=2 is used and the module's license is just LGPL, report an
33426         error. Set sed_transform_lib_file according to the lgpl variable. In
33427         the generated files, use --lgpl or gl_LGPL invocations with argument,
33428         if necessary.
33429         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
33430         an LGPv2+ license.
33431         * doc/gnulib-tool.texi (Modified imports): Update explanation of
33432         gl_LGPL macro.
33433
33434 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33435             Bruno Haible  <bruno@clisp.org>
33436
33437         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
33438         (u16_uctomb_aux): Likewise.
33439         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
33440         !HAVE_INLINE.
33441         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
33442
33443 2007-10-28  Bruno Haible  <bruno@clisp.org>
33444
33445         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
33446         Invoke AM_GETTEXT_OPTION if it exists.
33447         * modules/vasprintf: Likewise.
33448         * modules/verror: Likewise.
33449         * modules/xprintf: Likewise.
33450         * modules/xvasprintf: Likewise.
33451
33452 2007-10-27  Ben Pfaff  <blp@gnu.org>
33453
33454         * lib/math.in.h: Define isfinite macro and prototypes for
33455         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
33456         implementations.
33457         * m4/math_h.m4: New substitutions for isfinite module.
33458         * lib/isfinite.c: New file.
33459         * m4/isfinite.m4: New file.
33460         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
33461         * modules/isfinite: New file.
33462         * modules/isfinite-tests: New file.
33463         * tests/tests-isfinite.c: New file.
33464         * doc/functions/isfinite.texi: Mention isfinite module.
33465         * MODULES.html.sh: Mention new module.
33466
33467 2007-10-27  Ben Pfaff  <blp@gnu.org>
33468
33469         Ralf Wildenhues reported that Tru64 4.0D declares the round
33470         functions but does not have definitions.
33471         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
33472         cannot be found in any library, set the output variable to
33473         "missing" instead of "".
33474         * m4/round.m4: Also use our substitute if we cannot find round in
33475         any library, even if it is declared.
33476         * m4/roundf.m4: Likewise for roundf.
33477         * m4/roundl.m4: Likewise for roundl.
33478         * lib/math.in.h: Undefine roundf, round, roundl before defining
33479         their replacements, to allow for hypothetical systems where these
33480         may be defined as macros but not available in libraries.
33481
33482 2007-10-27  Bruno Haible  <bruno@clisp.org>
33483
33484         * doc/gnulib.texi: Invoke @firstparagraphindent.
33485         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
33486         changes in gnulib.
33487         (Source changes): New section.
33488
33489 2007-10-26  Bruno Haible  <bruno@clisp.org>
33490
33491         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
33492         borrowed from autoconf.
33493
33494 2007-10-26  Bruno Haible  <bruno@clisp.org>
33495
33496         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
33497         strerror returned the empty string. Needed on HP-UX 11.00.
33498
33499 2007-10-24  Micah Cowan  <micah@cowan.name>
33500
33501         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
33502         * build-aux/bootstrap: Remove support for now-unnecessary option,
33503         --cvs-user, and envvars CVS_USER, CVS_RSH.
33504
33505 2007-10-24  Jim Meyering  <meyering@redhat.com>
33506
33507         Avoid diagnostics from sha1sum when there is no cached checksum.
33508         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
33509         if the po.s1 file hasn't been created yet.
33510
33511         * build-aux/bootstrap: Sync from coreutils:
33512         2007-10-24  Jim Meyering  <meyering@redhat.com>
33513         Get gnulib from the git repository, not from an obsolete cvs one.
33514         * build-aux/bootstrap: Suggestion from Micah Cowan.
33515         2007-10-04  Jim Meyering  <jim@meyering.net>
33516         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
33517         (update_po_files): Work also when there are no .po files in po/.
33518
33519 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
33520
33521         * README: Append ".git" to git and cg examples.
33522         Problem reported by Benoit Sigoure.
33523
33524 2007-10-23  Micah Cowan  <micah@cowan.name>
33525
33526         * users.txt: Add wget.
33527
33528 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33529
33530         Fix linking of some unistdio tests on FreeBSD.
33531         * modules/unistdio/u16-vsnprintf-tests
33532         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
33533         * modules/unistdio/u16-vsprintf-tests
33534         (test_u16_vsnprintf1_LDADD): Likewise.
33535         * modules/unistdio/u32-vsnprintf-tests
33536         (test_u32_vsnprintf1_LDADD): Likewise.
33537         * modules/unistdio/u32-vsprintf-tests
33538         (test_u32_vsprintf1_LDADD): Likewise.
33539         * modules/unistdio/u8-vsnprintf-tests
33540         (test_u8_vsnprintf1_LDADD): Likewise.
33541         * modules/unistdio/u8-vsprintf-tests
33542         (test_u8_vsprintf1_LDADD): Likewise.
33543         * modules/unistdio/ulc-vsnprintf-tests
33544         (test_ulc_vsnprintf1_LDADD): Likewise.
33545         * modules/unistdio/ulc-vsprintf-tests
33546         (test_ulc_vsprintf1_LDADD): Likewise.
33547
33548         Fix linking of some uniconv tests on FreeBSD.
33549         * modules/uniconv/u16-conv-from-enc-tests
33550         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
33551         * modules/uniconv/u16-conv-to-enc-tests
33552         (test_u16_conv_to_enc_LDADD): Likewise.
33553         * modules/uniconv/u16-strconv-from-enc-tests
33554         (test_u16_strconv_from_enc_LDADD): Likewise.
33555         * modules/uniconv/u16-strconv-to-enc-tests
33556         (test_u16_strconv_to_enc_LDADD): Likewise.
33557         * modules/uniconv/u32-conv-from-enc-tests
33558         (test_u32_conv_from_enc_LDADD): Likewise.
33559         * modules/uniconv/u32-conv-to-enc-tests
33560         (test_u32_conv_to_enc_LDADD): Likewise.
33561         * modules/uniconv/u32-strconv-from-enc-tests
33562         (test_u32_strconv_from_enc_LDADD): Likewise.
33563         * modules/uniconv/u32-strconv-to-enc-tests
33564         (test_u32_strconv_to_enc_LDADD): Likewise.
33565         * modules/uniconv/u8-conv-from-enc-tests
33566         (test_u8_conv_from_enc_LDADD): Likewise.
33567         * modules/uniconv/u8-conv-to-enc-tests
33568         (test_u8_conv_to_enc_LDADD): Likewise.
33569         * modules/uniconv/u8-strconv-from-enc-tests
33570         (test_u8_strconv_from_enc_LDADD): Likewise.
33571         * modules/uniconv/u8-strconv-to-enc-tests
33572         (test_u8_strconv_to_enc_LDADD): Likewise.
33573
33574 2007-10-22  Bruno Haible  <bruno@clisp.org>
33575
33576         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
33577         size.
33578
33579 2007-10-22  Eric Blake  <ebb9@byu.net>
33580
33581         Tweak x*printf documentation.
33582         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
33583         variable name and comments.
33584         Suggested by Bruno Haible.
33585
33586 2007-10-22  Bruno Haible  <bruno@clisp.org>
33587
33588         * lib/acl.c (copy_acl): Fix file name in comment.
33589
33590 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
33591
33592         Fix Tru64 problem with stdbool.h.
33593         * lib/stdbool.in.h (false, true):
33594         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
33595         Don't declare as an enum in this situation; it runs afoul of Tru64.
33596         Problem reported by Steven M. Schweda in
33597         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
33598
33599 2007-10-22  Eric Blake  <ebb9@byu.net>
33600
33601         Also wrap vf?printf.
33602         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
33603         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
33604         (xvprintf, xvfprintf): New functions.
33605
33606 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33607
33608         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
33609         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
33610
33611         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
33612         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
33613
33614 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
33615
33616         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
33617         by Bruno Haible.
33618
33619 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33620
33621         * lib/getloadavg.c
33622         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
33623         Undef `sys' after including sys/table.h, for Tru64 4.0D.
33624
33625         * tests/test-i-ring.c: Work for C89.
33626
33627 2007-10-22  Bruno Haible  <bruno@clisp.org>
33628
33629         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
33630         -1u, in preprocessor expression, so that we don't test for the bug
33631         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
33632         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
33633
33634 2007-10-22  Eric Blake  <ebb9@byu.net>
33635
33636         * tests/test-yesno.sh: Silence stderr during test.
33637
33638 2007-10-22  Simon Josefsson  <simon@josefsson.org>
33639
33640         * modules/crypto/gc-camellia: New file.
33641
33642         * m4/gc-camellia.m4: New file.
33643
33644         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
33645
33646         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
33647
33648 2007-10-22  Simon Josefsson  <simon@josefsson.org>
33649
33650         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
33651         --help to stdout.  Reported by sms@antinode.org (Steven
33652         M. Schweda).
33653
33654 2007-10-22  Simon Josefsson  <simon@josefsson.org>
33655
33656         * users.txt: Fix link to libksba.
33657
33658 2007-10-21  Ben Pfaff  <blp@gnu.org>
33659
33660         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
33661         round.c roundf implementation that depends on floorf and ceilf to
33662         be tested unconditionally.
33663
33664 2007-10-21  Ben Pfaff  <blp@gnu.org>
33665
33666         * m4/check-libm-func.m4: Removed.
33667         * m4/check-math-lib.m4: New file.
33668         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
33669         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
33670         definition and lack of AC_LIBOBJ([roundf]).
33671         * m4/roundl.m4: Ditto, and similarly for roundl.
33672         * modules/round: Reference new m4 file.
33673         * modules/roundf: Ditto.
33674         * modules/roundl: Ditto.
33675         * tests/test-round2.c (main): Use ROUND instead of round.
33676         Bug report from Bruno Haible.
33677
33678 2007-10-21  Bruno Haible  <bruno@clisp.org>
33679
33680         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
33681         context.
33682
33683 2007-10-21  Bruno Haible  <bruno@clisp.org>
33684
33685         * tests/test-wcwidth.c (main): Allow negative result for some control
33686         characters.
33687
33688         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
33689         Needed on OSF/1 5.1.
33690
33691 2007-10-21  Bruno Haible  <bruno@clisp.org>
33692
33693         * tests/test-floorf1.c: Include isnanf.h.
33694         (main): Use isnanf() instead of isnan().
33695         * tests/test-ceilf1.c: Include isnanf.h.
33696         (main): Use isnanf() instead of isnan().
33697         * tests/test-truncf1.c: Include isnanf.h.
33698         (main): Use isnanf() instead of isnan().
33699         * tests/test-roundf1.c: Include isnanf.h.
33700         (main): Use isnanf() instead of isnan().
33701
33702 2007-10-21  Eric Blake  <ebb9@byu.net>
33703
33704         * users.txt: Update URL for m4.
33705
33706 2007-10-21  Bruno Haible  <bruno@clisp.org>
33707
33708         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
33709
33710 2007-10-21  Bruno Haible  <bruno@clisp.org>
33711
33712         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
33713         Git's management files if the CVS files are not present.
33714
33715 2007-10-20  Bruno Haible  <bruno@clisp.org>
33716
33717         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
33718         gcc-3.4.x.
33719
33720 2007-10-20  Ben Pfaff  <blp@gnu.org>
33721
33722         * lib/math.in.h: Declare round, roundf, roundl if we are providing
33723         implementations.
33724         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
33725         * lib/round.c: New file.
33726         * lib/roundf.c: New file.
33727         * lib/roundl.c: New file.
33728         * m4/round.m4: New file.
33729         * m4/roundf.m4: New file.
33730         * m4/roundl.m4: New file.
33731         * m4/check-libm-func-m4: New file.
33732         * modules/math: Replace round, roundf, roundl related @VARS@ in
33733         math.in.h.
33734         * modules/round: New file.
33735         * modules/round-tests: New file.
33736         * modules/roundf: New file.
33737         * modules/roundf-tests: New file.
33738         * modules/roundl: New file.
33739         * modules/roundl-tests: New file.
33740         * tests/test-round1.c: New file.
33741         * tests/test-round2.c: New file.
33742         * tests/test-roundf1.c: New file.
33743         * tests/test-roundf2.c: New file.
33744         * tests/test-roundl.c: New file.
33745         * doc/functions/round.texi: Mention round module.
33746         * doc/functions/roundf.texi: Mention roundf module.
33747         * doc/functions/roundl.texi: Mention roundl module.
33748         * MODULES.html.sh: Mention new modules.
33749         Thanks to Bruno Haible for suggestions.
33750
33751 2007-10-20  Jim Meyering  <meyering@redhat.com>
33752
33753         * lib/xprintf.c: Include <config.h> unconditionally.
33754
33755         Change xprintf's license to GPL.
33756         * modules/xprintf (License): s/LGPL/GPL/, since this module
33757         depends on modules (exit and exitfail) which are GPL.
33758         Suggestion from Bruno Haible.
33759
33760         xprintf fixes.
33761         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
33762         Use a clearer diagnostic.
33763         Patch from Bruno Haible.
33764
33765 2007-10-20  Bruno Haible  <bruno@clisp.org>
33766
33767         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
33768         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
33769         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33770
33771 2007-10-20  Bruno Haible  <bruno@clisp.org>
33772
33773         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
33774         precision in the comparison result > x - 1 or similar.
33775         * tests/test-ceilf2.c (correct_result_p): Likewise.
33776         * tests/test-truncf2.c (correct_result_p): Likewise.
33777         * tests/test-trunc2.c (correct_result_p): Likewise.
33778         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33779
33780 2007-10-20  Bruno Haible  <bruno@clisp.org>
33781
33782         * modules/ceil: New file.
33783         * m4/ceil.m4: New file.
33784         * doc/functions/ceil.texi: Mention the 'ceil' module.
33785
33786 2007-10-20  Bruno Haible  <bruno@clisp.org>
33787
33788         * modules/floor: New file.
33789         * m4/floor.m4: New file.
33790         * doc/functions/floor.texi: Mention the 'floor' module.
33791
33792 2007-10-20  Bruno Haible  <bruno@clisp.org>
33793
33794         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
33795         of %a.
33796         * modules/floorf-tests (Depends-on): Likewise.
33797         * modules/truncf-tests (Depends-on): Likewise.
33798         * modules/trunc-tests (Depends-on): Likewise.
33799         Reported by Ben Pfaff.
33800
33801 2007-10-19  Jim Meyering  <meyering@redhat.com>
33802
33803         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
33804         Don't bother testing specific errno values.  Just test ferror.
33805
33806         New module: xprintf
33807         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
33808
33809 2007-10-19  Bruno Haible  <bruno@clisp.org>
33810
33811         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
33812         syntax.
33813         * modules/javaexec (Makefile.am): Likewise.
33814         * modules/relocatable-prog (Makefile.am): Likewise.
33815         Suggested by Jim Meyering.
33816
33817 2007-10-18  Bruno Haible  <bruno@clisp.org>
33818
33819         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
33820         Reported by Jim Meyering.
33821
33822 2007-10-18  Eric Blake  <ebb9@byu.net>
33823
33824         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
33825
33826 2007-10-18  Bruno Haible  <bruno@clisp.org>
33827
33828         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
33829         the format string into writable memory. Needed in Fortify conditions.
33830
33831 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
33832             Bruno Haible  <bruno@clisp.org>
33833
33834         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
33835         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
33836         * modules/trim (Depends-on): Add mbchar.
33837         (configure.ac): Add gl_FUNC_MBRTOWC.
33838         (Makefile.am): Augment lib_SOURCES.
33839
33840 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
33841
33842         Modify glob.c to use fstatat and dirfd, to simplify it.
33843         Suggested by Eric Blake.
33844         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
33845         Don't include <stdbool.h>; not used.
33846         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
33847         (link_exists_p): Simplify implementation, since we can now assume
33848         dirfd and fstatat.
33849         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
33850
33851 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33852
33853         * gnulib-tool (func_get_dependencies): Fix sed script to
33854         match only tests.
33855
33856 2007-10-17  Bruno Haible  <bruno@clisp.org>
33857
33858         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
33859         allow locale names without encoding suffix.
33860         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
33861         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
33862
33863 2007-10-16  Bruno Haible  <bruno@clisp.org>
33864
33865         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
33866         * lib/getgroups.c (getgroups): Likewise.
33867         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
33868
33869 2007-10-16  Bruno Haible  <bruno@clisp.org>
33870
33871         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
33872         * modules/malloc-posix (License): Likewise.
33873         * modules/realloc-posix (License): Likewise.
33874         * modules/calloc-posix (License): Likewise.
33875         * modules/intprops (License): Change from GPL to LGPL, with
33876         Paul Eggert's approval.
33877
33878 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
33879
33880         Merge glibc changes into lib/glob.c.
33881
33882         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
33883         2007-10-15 04:59:03 UTC.  Here are the changes:
33884
33885         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
33886
33887         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
33888
33889         * lib/glob.c: Add some branch prediction throughout.
33890
33891         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
33892
33893         [BZ #5103]
33894         * lib/glob.c (glob): Recognize patterns starting \/.
33895
33896         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
33897
33898         [BZ #3996]
33899         * lib/glob.c (attribute_hidden): Define if not defined.
33900         (glob): Unescape dirname, filename or username when needed and not
33901         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
33902         is NULL.  Handle unescaped [ in pattern without closing ].
33903         Don't pass GLOB_CHECK down to recursive glob for directories.
33904         (__glob_pattern_type): New function.
33905         (__glob_pattern_p): Implement using __glob_pattern_type.
33906         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
33907         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
33908         Remove unreachable code.
33909
33910         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
33911
33912         * lib/glob.c (glob_in_dir): Add some comments and asserts to
33913         explain why there are no leaks.
33914
33915         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
33916
33917         [BZ #3253]
33918         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
33919         time, rather allocate increasingly bigger arrays of pointers, if
33920         possible with alloca, if too large with malloc.
33921
33922 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
33923
33924         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
33925         Problem reported by H.Merijn Brand in
33926         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
33927         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
33928         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
33929
33930 2007-10-15  Bruno Haible  <bruno@clisp.org>
33931
33932         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
33933         with explicit rpl_ prefix.
33934         * lib/fopen.c (fopen): Likewise.
33935         * lib/freopen.c (freopen): Likewise.
33936         * lib/iconv.c (iconv): Likewise.
33937         * lib/iconv_close.c (iconv_close): Likewise.
33938
33939 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33940
33941         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
33942
33943 2007-10-15  Bruno Haible  <bruno@clisp.org>
33944
33945         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
33946         <stddef.h> instead of <stdlib.h> since we only need NULL.
33947         Reported by Ben Pfaff <blp@cs.stanford.edu>.
33948
33949 2007-10-15  Bruno Haible  <bruno@clisp.org>
33950
33951         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
33952         Replace paragraph talking about LIBOBJS.
33953         Reported by Colin Watson <cjwatson@debian.org>.
33954
33955 2007-10-15  Bruno Haible  <bruno@clisp.org>
33956
33957         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
33958         <stdlib.h> before using NULL.
33959
33960 2007-10-15  Simon Josefsson  <simon@josefsson.org>
33961
33962         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
33963         Reported by Albert Chin <china@thewrittenword.com>.
33964
33965 2007-10-14  Bruno Haible  <bruno@clisp.org>
33966
33967         * modules/iconv_open-utf-tests: New file.
33968         * tests/test-iconv-utf.c: New file.
33969
33970         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
33971         * modules/iconv_open-utf: New file.
33972         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
33973         (iconv, iconv_close): New declarations.
33974         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
33975         be defined.
33976         (iconv_open): Add special handling of conversion between UTF-8 and
33977         UTF-{16,32}{BE,LE}.
33978         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
33979         * lib/iconv_close.c: New file.
33980         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
33981         gl_FUNC_ICONV_OPEN.
33982         (gl_FUNC_ICONV_OPEN): Use it.
33983         (gl_FUNC_ICONV_OPEN_UTF): New macro.
33984         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
33985         and REPLACE_ICONV_UTF.
33986         * modules/iconv_open (Depends-on): Add c-strcase.
33987         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
33988         ICONV_CONST.
33989         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
33990
33991 2007-10-13  Albert Chin  <china@thewrittenword.com>
33992             Bruno Haible  <bruno@clisp.org>
33993
33994         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
33995         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
33996
33997 2007-10-13  Bruno Haible  <bruno@clisp.org>
33998
33999         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
34000         defined, use the ISO C99 inline semantics.
34001         * lib/argp.h (ARGP_EI): Likewise.
34002
34003 2007-10-13  Bruno Haible  <bruno@clisp.org>
34004
34005         Handle 'inline' change in gcc 4.3.0.
34006         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
34007         argp_fmtstream_write, argp_fmtstream_set_lmargin,
34008         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
34009         argp_fmtstream_point): Disable 'extern' declaration if the function
34010         definition is going to be provided inline.
34011         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
34012         semantics, not the ISO C99 inline semantics.
34013         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
34014         'extern' declaration if the function definition is going to be provided
34015         inline.
34016         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
34017         the GNU C inline semantics, not the ISO C99 inline semantics. With
34018         GCC 4.2, avoid a warning.
34019
34020 2007-10-13  Bruno Haible  <bruno@clisp.org>
34021
34022         * lib/freading.h (freading): Enable the use of __freading for
34023         glibc >= 2.7.
34024         * lib/freading.c (freading): Likewise.
34025
34026 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
34027
34028         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
34029         "warning: C99 inline functions are not supported; using GNU89".
34030
34031 2007-10-12  Bruno Haible  <bruno@clisp.org>
34032
34033         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
34034         of 2.
34035         * tests/test-ceilf2.c: New file.
34036         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
34037
34038         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
34039         * modules/ceilf-tests: Update.
34040
34041 2007-10-12  Bruno Haible  <bruno@clisp.org>
34042
34043         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
34044         of 2.
34045         * tests/test-floorf2.c: New file.
34046         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
34047
34048         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
34049         * modules/floorf-tests: Update.
34050
34051 2007-10-12  Bruno Haible  <bruno@clisp.org>
34052
34053         * tests/test-trunc2.c: New file.
34054         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
34055
34056         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
34057         * modules/trunc-tests: Update.
34058
34059 2007-10-12  Bruno Haible  <bruno@clisp.org>
34060
34061         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
34062         of 2.
34063         * tests/test-truncf2.c: New file.
34064         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
34065
34066         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
34067         * modules/truncf-tests: Update.
34068
34069 2007-10-11  Eric Blake  <ebb9@byu.net>
34070
34071         Don't claim strerror is broken on Interix.
34072         * doc/functions/strerror.texi (strerror): Known broken systems are
34073         now Solaris 8, and not Interix.
34074         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
34075         Interix on cross-compile.
34076         Reported by Martin Koeppe in
34077         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
34078
34079 2007-10-11  Bruno Haible  <bruno@clisp.org>
34080
34081         * modules/i-ring-tests: New file.
34082         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
34083         instead of assert.
34084
34085 2007-10-11  Bruno Haible  <bruno@clisp.org>
34086
34087         * modules/filenamecat-tests: New file.
34088         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
34089         * lib/filenamecat.c: Remove test code.
34090
34091 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
34092
34093         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
34094
34095         * lib/strerror.c: Include <string.h> always, to test interface,
34096         and to remove the need for the dummy.
34097         Include intprops.h to compute width instead of doing it ourselves
34098         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
34099         (strerror): Define it to return NULL if there's no system strerror.
34100         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
34101         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
34102         ancient pre-strerror Unix systems well any more.  Saying "unknown
34103         system error" is enough.
34104         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
34105         simpler strerror.c implementation.
34106         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
34107         Simplify the tests to reflect the simpler strerror implementation.
34108         * modules/strerror (Depends-on): Add intprops.
34109
34110 2007-10-09  Eric Blake  <ebb9@byu.net>
34111
34112         Silence test-fpending.
34113         * modules/fpending-tests (Files): Add wrapper script.
34114         * tests/test-fpending.sh: New file.
34115
34116 2007-10-09  Bruno Haible  <bruno@clisp.org>
34117
34118         * MODULES.html.sh (func_module): Don't create a hyperlink for
34119         function names like 'printf_frexp'.
34120         (Misc): Add crc, memxor.
34121         (Characteristics of floating types): New section.
34122         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
34123         isnanf-nolibm, signbit, trunc, truncf, truncl.
34124         (Enhancements for ISO C 99 functions): New subsection Input/output.
34125         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
34126         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
34127         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
34128         (Compatibility checks for POSIX:2001 functions): Add clock-time.
34129         (Enhancements for POSIX:2001 functions): Add chdir-long.
34130         (File system functions): Add areadlink, chdir-safer, read-file.
34131         Remove cycle-check.
34132         (File system as inode set): New section.
34133         (Date and time): Add gethrxtime.
34134         (Multithreading): Add openmp.
34135         (Internationalization functions): Add localename.
34136         (Unicode string functions): Add unistr/u*-mbsnlen.
34137         (Support for maintaining and releasing projects): Add git-version-gen.
34138         (Lone files): Remove directories.
34139
34140 2007-10-08  Ben Pfaff  <blp@gnu.org>
34141
34142         * lib/xmalloca.h: Fix typo in comment.
34143
34144 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
34145
34146         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
34147         when avoiding problems with integer overflow.  Use a portable test
34148         instead.
34149
34150 2007-10-08  Simon Josefsson  <simon@josefsson.org>
34151
34152         * modules/dummy (License): Change to LGPLv2+.
34153         * modules/float (License): Likewise
34154         * modules/realloc (License): Likewise
34155         * modules/stdlib (License): Likewise
34156
34157 2007-10-07  Bruno Haible  <bruno@clisp.org>
34158
34159         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
34160         * floor.c (TWO_MANT_DIG): Likewise.
34161         * ceil.c (TWO_MANT_DIG): Likewise.
34162         Reported by Ben Pfaff.
34163
34164 2007-10-07  Bruno Haible  <bruno@clisp.org>
34165
34166         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
34167         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
34168         * lib/frexp.c (FUNC): Likewise.
34169         * lib/printf-frexp.h (printf_frexp): Likewise.
34170         * lib/printf-frexpl.h (printf_frexpl): Likewise.
34171         * lib/printf-frexp.c (FUNC): Likewise.
34172         Suggested by Jim Meyering.
34173
34174 2007-10-07  Jim Meyering  <meyering@redhat.com>
34175
34176         Make xnanosleep's integer overflow test more robust.
34177         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
34178         so that gcc-4.3.0 doesn't optimize away this test for overflow.
34179
34180 2007-10-07  Bruno Haible  <bruno@clisp.org>
34181
34182         * NEWS: Mention the license change.
34183
34184         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
34185         abbreviations in the modules files.
34186
34187         Change copyright notice from GPLv2+ to GPLv3+.
34188         * README: Change copyright notice.
34189         * MODULES.html.sh: Likewise.
34190         * build-aux/bootstrap.conf: Likewise.
34191         * build-aux/config.libpath: Likewise.
34192         * build-aux/csharpcomp.sh.in: Likewise.
34193         * build-aux/csharpexec.sh.in: Likewise.
34194         * build-aux/install-reloc: Likewise.
34195         * build-aux/javacomp.sh.in: Likewise.
34196         * build-aux/javaexec.sh.in: Likewise.
34197         * build-aux/ldd.sh.in: Likewise.
34198         * build-aux/reloc-ldflags: Likewise.
34199         * build-aux/relocatable.sh.in: Likewise.
34200         * build-aux/x-to-1.in: Likewise.
34201         * check-module: Likewise.
34202         * config/srclistvars.sh: Likewise.
34203         * gnulib-tool: Likewise.
34204         * lib/acl-internal.h: Likewise.
34205         * lib/acl.c: Likewise.
34206         * lib/acl.h: Likewise.
34207         * lib/acl_entries.c: Likewise.
34208         * lib/areadlink-with-size.c: Likewise.
34209         * lib/areadlink.c: Likewise.
34210         * lib/areadlink.h: Likewise.
34211         * lib/argmatch.c: Likewise.
34212         * lib/argmatch.h: Likewise.
34213         * lib/argp-ba.c: Likewise.
34214         * lib/argp-eexst.c: Likewise.
34215         * lib/argp-fmtstream.c: Likewise.
34216         * lib/argp-fmtstream.h: Likewise.
34217         * lib/argp-fs-xinl.c: Likewise.
34218         * lib/argp-help.c: Likewise.
34219         * lib/argp-namefrob.h: Likewise.
34220         * lib/argp-parse.c: Likewise.
34221         * lib/argp-pin.c: Likewise.
34222         * lib/argp-pv.c: Likewise.
34223         * lib/argp-pvh.c: Likewise.
34224         * lib/argp-xinl.c: Likewise.
34225         * lib/argp.h: Likewise.
34226         * lib/at-func.c: Likewise.
34227         * lib/atanl.c: Likewise.
34228         * lib/backupfile.c: Likewise.
34229         * lib/backupfile.h: Likewise.
34230         * lib/basename.c: Likewise.
34231         * lib/binary-io.h: Likewise.
34232         * lib/byteswap.in.h: Likewise.
34233         * lib/c-stack.c: Likewise.
34234         * lib/c-stack.h: Likewise.
34235         * lib/c-strcasestr.c: Likewise.
34236         * lib/c-strcasestr.h: Likewise.
34237         * lib/c-strstr.c: Likewise.
34238         * lib/c-strstr.h: Likewise.
34239         * lib/c-strtod.c: Likewise.
34240         * lib/calloc.c: Likewise.
34241         * lib/canon-host.c: Likewise.
34242         * lib/canon-host.h: Likewise.
34243         * lib/canonicalize-lgpl.c: Likewise.
34244         * lib/canonicalize.c: Likewise.
34245         * lib/canonicalize.h: Likewise.
34246         * lib/ceil.c: Likewise.
34247         * lib/ceilf.c: Likewise.
34248         * lib/ceill.c: Likewise.
34249         * lib/chdir-long.c: Likewise.
34250         * lib/chdir-long.h: Likewise.
34251         * lib/chdir-safer.c: Likewise.
34252         * lib/chdir-safer.h: Likewise.
34253         * lib/chown.c: Likewise.
34254         * lib/classpath.c: Likewise.
34255         * lib/classpath.h: Likewise.
34256         * lib/clean-temp.c: Likewise.
34257         * lib/clean-temp.h: Likewise.
34258         * lib/cloexec.c: Likewise.
34259         * lib/close-stream.c: Likewise.
34260         * lib/closein.c: Likewise.
34261         * lib/closein.h: Likewise.
34262         * lib/closeout.c: Likewise.
34263         * lib/closeout.h: Likewise.
34264         * lib/concat-filename.c: Likewise.
34265         * lib/copy-file.c: Likewise.
34266         * lib/copy-file.h: Likewise.
34267         * lib/count-one-bits.h: Likewise.
34268         * lib/crc.c: Likewise.
34269         * lib/crc.h: Likewise.
34270         * lib/creat-safer.c: Likewise.
34271         * lib/csharpcomp.c: Likewise.
34272         * lib/csharpcomp.h: Likewise.
34273         * lib/csharpexec.c: Likewise.
34274         * lib/csharpexec.h: Likewise.
34275         * lib/cycle-check.c: Likewise.
34276         * lib/cycle-check.h: Likewise.
34277         * lib/diacrit.c: Likewise.
34278         * lib/diacrit.h: Likewise.
34279         * lib/diffseq.h: Likewise.
34280         * lib/dirchownmod.c: Likewise.
34281         * lib/dirent.in.h: Likewise.
34282         * lib/dirfd.c: Likewise.
34283         * lib/dirfd.h: Likewise.
34284         * lib/dirname.c: Likewise.
34285         * lib/dirname.h: Likewise.
34286         * lib/dummy.c: Likewise.
34287         * lib/dup-safer.c: Likewise.
34288         * lib/dup2.c: Likewise.
34289         * lib/eealloc.h: Likewise.
34290         * lib/error.c: Likewise.
34291         * lib/error.h: Likewise.
34292         * lib/euidaccess.c: Likewise.
34293         * lib/exclude.c: Likewise.
34294         * lib/exclude.h: Likewise.
34295         * lib/execute.c: Likewise.
34296         * lib/execute.h: Likewise.
34297         * lib/exitfail.c: Likewise.
34298         * lib/exitfail.h: Likewise.
34299         * lib/expl.c: Likewise.
34300         * lib/fatal-signal.c: Likewise.
34301         * lib/fatal-signal.h: Likewise.
34302         * lib/fbufmode.c: Likewise.
34303         * lib/fbufmode.h: Likewise.
34304         * lib/fchdir.c: Likewise.
34305         * lib/fchmodat.c: Likewise.
34306         * lib/fchownat.c: Likewise.
34307         * lib/fcntl--.h: Likewise.
34308         * lib/fcntl-safer.h: Likewise.
34309         * lib/fcntl.in.h: Likewise.
34310         * lib/fd-safer.c: Likewise.
34311         * lib/fflush.c: Likewise.
34312         * lib/file-has-acl.c: Likewise.
34313         * lib/file-set.c: Likewise.
34314         * lib/file-type.c: Likewise.
34315         * lib/file-type.h: Likewise.
34316         * lib/fileblocks.c: Likewise.
34317         * lib/filemode.c: Likewise.
34318         * lib/filemode.h: Likewise.
34319         * lib/filename.h: Likewise.
34320         * lib/filenamecat.c: Likewise.
34321         * lib/filenamecat.h: Likewise.
34322         * lib/findprog.c: Likewise.
34323         * lib/findprog.h: Likewise.
34324         * lib/float.in.h: Likewise.
34325         * lib/floor.c: Likewise.
34326         * lib/floorf.c: Likewise.
34327         * lib/floorl.c: Likewise.
34328         * lib/fopen-safer.c: Likewise.
34329         * lib/fopen.c: Likewise.
34330         * lib/fpending.c: Likewise.
34331         * lib/fpending.h: Likewise.
34332         * lib/fprintf.c: Likewise.
34333         * lib/fprintftime.h: Likewise.
34334         * lib/fpucw.h: Likewise.
34335         * lib/fpurge.c: Likewise.
34336         * lib/fpurge.h: Likewise.
34337         * lib/freadable.c: Likewise.
34338         * lib/freadable.h: Likewise.
34339         * lib/freadahead.c: Likewise.
34340         * lib/freadahead.h: Likewise.
34341         * lib/freading.c: Likewise.
34342         * lib/freading.h: Likewise.
34343         * lib/free.c: Likewise.
34344         * lib/freopen.c: Likewise.
34345         * lib/frexp.c: Likewise.
34346         * lib/frexpl.c: Likewise.
34347         * lib/fseek.c: Likewise.
34348         * lib/fseterr.c: Likewise.
34349         * lib/fseterr.h: Likewise.
34350         * lib/fstatat.c: Likewise.
34351         * lib/fstrcmp.c: Likewise.
34352         * lib/fstrcmp.h: Likewise.
34353         * lib/fsusage.c: Likewise.
34354         * lib/fsusage.h: Likewise.
34355         * lib/ftell.c: Likewise.
34356         * lib/ftello.c: Likewise.
34357         * lib/fts-cycle.c: Likewise.
34358         * lib/fts.c: Likewise.
34359         * lib/fts_.h: Likewise.
34360         * lib/full-read.c: Likewise.
34361         * lib/full-read.h: Likewise.
34362         * lib/full-write.c: Likewise.
34363         * lib/full-write.h: Likewise.
34364         * lib/fwritable.c: Likewise.
34365         * lib/fwritable.h: Likewise.
34366         * lib/fwriteerror.c: Likewise.
34367         * lib/fwriteerror.h: Likewise.
34368         * lib/fwriting.c: Likewise.
34369         * lib/fwriting.h: Likewise.
34370         * lib/gcd.c: Likewise.
34371         * lib/gcd.h: Likewise.
34372         * lib/getcwd.c: Likewise.
34373         * lib/getdate.h: Likewise.
34374         * lib/getdate.y: Likewise.
34375         * lib/getdomainname.c: Likewise.
34376         * lib/getdomainname.h: Likewise.
34377         * lib/getgroups.c: Likewise.
34378         * lib/gethostname.c: Likewise.
34379         * lib/gethrxtime.c: Likewise.
34380         * lib/gethrxtime.h: Likewise.
34381         * lib/getloadavg.c: Likewise.
34382         * lib/getndelim2.c: Likewise.
34383         * lib/getndelim2.h: Likewise.
34384         * lib/getnline.c: Likewise.
34385         * lib/getnline.h: Likewise.
34386         * lib/getopt.c: Likewise.
34387         * lib/getopt.in.h: Likewise.
34388         * lib/getopt1.c: Likewise.
34389         * lib/getopt_int.h: Likewise.
34390         * lib/getpagesize.h: Likewise.
34391         * lib/getsubopt.c: Likewise.
34392         * lib/gettime.c: Likewise.
34393         * lib/getugroups.c: Likewise.
34394         * lib/getugroups.h: Likewise.
34395         * lib/getusershell.c: Likewise.
34396         * lib/gl_anyavltree_list1.h: Likewise.
34397         * lib/gl_anyavltree_list2.h: Likewise.
34398         * lib/gl_anyhash_list1.h: Likewise.
34399         * lib/gl_anyhash_list2.h: Likewise.
34400         * lib/gl_anylinked_list1.h: Likewise.
34401         * lib/gl_anylinked_list2.h: Likewise.
34402         * lib/gl_anyrbtree_list1.h: Likewise.
34403         * lib/gl_anyrbtree_list2.h: Likewise.
34404         * lib/gl_anytree_list1.h: Likewise.
34405         * lib/gl_anytree_list2.h: Likewise.
34406         * lib/gl_anytree_oset.h: Likewise.
34407         * lib/gl_anytreehash_list1.h: Likewise.
34408         * lib/gl_anytreehash_list2.h: Likewise.
34409         * lib/gl_array_list.c: Likewise.
34410         * lib/gl_array_list.h: Likewise.
34411         * lib/gl_array_oset.c: Likewise.
34412         * lib/gl_array_oset.h: Likewise.
34413         * lib/gl_avltree_list.c: Likewise.
34414         * lib/gl_avltree_list.h: Likewise.
34415         * lib/gl_avltree_oset.c: Likewise.
34416         * lib/gl_avltree_oset.h: Likewise.
34417         * lib/gl_avltreehash_list.c: Likewise.
34418         * lib/gl_avltreehash_list.h: Likewise.
34419         * lib/gl_carray_list.c: Likewise.
34420         * lib/gl_carray_list.h: Likewise.
34421         * lib/gl_linked_list.c: Likewise.
34422         * lib/gl_linked_list.h: Likewise.
34423         * lib/gl_linkedhash_list.c: Likewise.
34424         * lib/gl_linkedhash_list.h: Likewise.
34425         * lib/gl_list.c: Likewise.
34426         * lib/gl_list.h: Likewise.
34427         * lib/gl_oset.c: Likewise.
34428         * lib/gl_oset.h: Likewise.
34429         * lib/gl_rbtree_list.c: Likewise.
34430         * lib/gl_rbtree_list.h: Likewise.
34431         * lib/gl_rbtree_oset.c: Likewise.
34432         * lib/gl_rbtree_oset.h: Likewise.
34433         * lib/gl_rbtreehash_list.c: Likewise.
34434         * lib/gl_rbtreehash_list.h: Likewise.
34435         * lib/gl_sublist.c: Likewise.
34436         * lib/gl_sublist.h: Likewise.
34437         * lib/group-member.c: Likewise.
34438         * lib/group-member.h: Likewise.
34439         * lib/hard-locale.c: Likewise.
34440         * lib/hard-locale.h: Likewise.
34441         * lib/hash-pjw.c: Likewise.
34442         * lib/hash-pjw.h: Likewise.
34443         * lib/hash-triple.c: Likewise.
34444         * lib/hash.c: Likewise.
34445         * lib/hash.h: Likewise.
34446         * lib/human.c: Likewise.
34447         * lib/human.h: Likewise.
34448         * lib/i-ring.c: Likewise.
34449         * lib/i-ring.h: Likewise.
34450         * lib/idcache.c: Likewise.
34451         * lib/imaxabs.c: Likewise.
34452         * lib/imaxdiv.c: Likewise.
34453         * lib/inet_pton.c: Likewise.
34454         * lib/inet_pton.h: Likewise.
34455         * lib/intprops.h: Likewise.
34456         * lib/inttostr.c: Likewise.
34457         * lib/inttostr.h: Likewise.
34458         * lib/inttypes.in.h: Likewise.
34459         * lib/isapipe.c: Likewise.
34460         * lib/isdir.c: Likewise.
34461         * lib/isnan.c: Likewise.
34462         * lib/isnan.h: Likewise.
34463         * lib/isnanf.c: Likewise.
34464         * lib/isnanf.h: Likewise.
34465         * lib/isnanl-nolibm.h: Likewise.
34466         * lib/isnanl.c: Likewise.
34467         * lib/isnanl.h: Likewise.
34468         * lib/javacomp.c: Likewise.
34469         * lib/javacomp.h: Likewise.
34470         * lib/javaexec.c: Likewise.
34471         * lib/javaexec.h: Likewise.
34472         * lib/javaversion.c: Likewise.
34473         * lib/javaversion.h: Likewise.
34474         * lib/javaversion.java: Likewise.
34475         * lib/lbrkprop.h: Likewise.
34476         * lib/lchmod.h: Likewise.
34477         * lib/lchown.c: Likewise.
34478         * lib/ldexpl.c: Likewise.
34479         * lib/linebreak.c: Likewise.
34480         * lib/linebreak.h: Likewise.
34481         * lib/linebuffer.c: Likewise.
34482         * lib/linebuffer.h: Likewise.
34483         * lib/locale.in.h: Likewise.
34484         * lib/logl.c: Likewise.
34485         * lib/long-options.c: Likewise.
34486         * lib/long-options.h: Likewise.
34487         * lib/lstat.c: Likewise.
34488         * lib/lstat.h: Likewise.
34489         * lib/math.in.h: Likewise.
34490         * lib/mbchar.c: Likewise.
34491         * lib/mbchar.h: Likewise.
34492         * lib/mbfile.h: Likewise.
34493         * lib/mbiter.h: Likewise.
34494         * lib/mbscasecmp.c: Likewise.
34495         * lib/mbscasestr.c: Likewise.
34496         * lib/mbschr.c: Likewise.
34497         * lib/mbscspn.c: Likewise.
34498         * lib/mbslen.c: Likewise.
34499         * lib/mbsncasecmp.c: Likewise.
34500         * lib/mbsnlen.c: Likewise.
34501         * lib/mbspbrk.c: Likewise.
34502         * lib/mbspcasecmp.c: Likewise.
34503         * lib/mbsrchr.c: Likewise.
34504         * lib/mbssep.c: Likewise.
34505         * lib/mbsspn.c: Likewise.
34506         * lib/mbsstr.c: Likewise.
34507         * lib/mbstok_r.c: Likewise.
34508         * lib/mbswidth.c: Likewise.
34509         * lib/mbswidth.h: Likewise.
34510         * lib/mbuiter.h: Likewise.
34511         * lib/memcasecmp.c: Likewise.
34512         * lib/memcasecmp.h: Likewise.
34513         * lib/memchr.c: Likewise.
34514         * lib/memcmp.c: Likewise.
34515         * lib/memcoll.c: Likewise.
34516         * lib/memcoll.h: Likewise.
34517         * lib/memcpy.c: Likewise.
34518         * lib/memrchr.c: Likewise.
34519         * lib/mkancesdirs.c: Likewise.
34520         * lib/mkdir-p.c: Likewise.
34521         * lib/mkdir-p.h: Likewise.
34522         * lib/mkdir.c: Likewise.
34523         * lib/mkdirat.c: Likewise.
34524         * lib/mkdtemp.c: Likewise.
34525         * lib/mkstemp-safer.c: Likewise.
34526         * lib/mkstemp.c: Likewise.
34527         * lib/modechange.c: Likewise.
34528         * lib/modechange.h: Likewise.
34529         * lib/mountlist.c: Likewise.
34530         * lib/mountlist.h: Likewise.
34531         * lib/mpsort.c: Likewise.
34532         * lib/nanosleep.c: Likewise.
34533         * lib/obstack.c: Likewise.
34534         * lib/obstack.h: Likewise.
34535         * lib/open-safer.c: Likewise.
34536         * lib/open.c: Likewise.
34537         * lib/openat-die.c: Likewise.
34538         * lib/openat-priv.h: Likewise.
34539         * lib/openat-proc.c: Likewise.
34540         * lib/openat.c: Likewise.
34541         * lib/openat.h: Likewise.
34542         * lib/pagealign_alloc.c: Likewise.
34543         * lib/pagealign_alloc.h: Likewise.
34544         * lib/physmem.c: Likewise.
34545         * lib/physmem.h: Likewise.
34546         * lib/pipe-safer.c: Likewise.
34547         * lib/pipe.c: Likewise.
34548         * lib/pipe.h: Likewise.
34549         * lib/posixtm.c: Likewise.
34550         * lib/posixtm.h: Likewise.
34551         * lib/posixver.c: Likewise.
34552         * lib/printf-frexp.c: Likewise.
34553         * lib/printf-frexp.h: Likewise.
34554         * lib/printf-frexpl.c: Likewise.
34555         * lib/printf-frexpl.h: Likewise.
34556         * lib/printf.c: Likewise.
34557         * lib/progname.c: Likewise.
34558         * lib/progname.h: Likewise.
34559         * lib/progreloc.c: Likewise.
34560         * lib/putenv.c: Likewise.
34561         * lib/quote.c: Likewise.
34562         * lib/quote.h: Likewise.
34563         * lib/quotearg.c: Likewise.
34564         * lib/quotearg.h: Likewise.
34565         * lib/raise.c: Likewise.
34566         * lib/readline.c: Likewise.
34567         * lib/readline.h: Likewise.
34568         * lib/readlink.c: Likewise.
34569         * lib/readtokens.c: Likewise.
34570         * lib/readtokens.h: Likewise.
34571         * lib/readtokens0.c: Likewise.
34572         * lib/readtokens0.h: Likewise.
34573         * lib/readutmp.c: Likewise.
34574         * lib/readutmp.h: Likewise.
34575         * lib/realloc.c: Likewise.
34576         * lib/relocwrapper.c: Likewise.
34577         * lib/rename-dest-slash.c: Likewise.
34578         * lib/rename.c: Likewise.
34579         * lib/rmdir.c: Likewise.
34580         * lib/rpmatch.c: Likewise.
34581         * lib/safe-read.c: Likewise.
34582         * lib/safe-read.h: Likewise.
34583         * lib/safe-write.c: Likewise.
34584         * lib/safe-write.h: Likewise.
34585         * lib/same-inode.h: Likewise.
34586         * lib/same.c: Likewise.
34587         * lib/same.h: Likewise.
34588         * lib/save-cwd.c: Likewise.
34589         * lib/save-cwd.h: Likewise.
34590         * lib/savedir.c: Likewise.
34591         * lib/savedir.h: Likewise.
34592         * lib/savewd.c: Likewise.
34593         * lib/savewd.h: Likewise.
34594         * lib/search.in.h: Likewise.
34595         * lib/setenv.c: Likewise.
34596         * lib/setenv.h: Likewise.
34597         * lib/settime.c: Likewise.
34598         * lib/sh-quote.c: Likewise.
34599         * lib/sh-quote.h: Likewise.
34600         * lib/sig2str.c: Likewise.
34601         * lib/sig2str.h: Likewise.
34602         * lib/signal.in.h: Likewise.
34603         * lib/signbitd.c: Likewise.
34604         * lib/signbitf.c: Likewise.
34605         * lib/signbitl.c: Likewise.
34606         * lib/sigprocmask.c: Likewise.
34607         * lib/sincosl.c: Likewise.
34608         * lib/sleep.c: Likewise.
34609         * lib/sprintf.c: Likewise.
34610         * lib/sqrtl.c: Likewise.
34611         * lib/stat-time.h: Likewise.
34612         * lib/stdio--.h: Likewise.
34613         * lib/stdio-safer.h: Likewise.
34614         * lib/stdlib--.h: Likewise.
34615         * lib/stdlib-safer.h: Likewise.
34616         * lib/stdlib.in.h: Likewise.
34617         * lib/stpcpy.c: Likewise.
34618         * lib/stpncpy.c: Likewise.
34619         * lib/strchrnul.c: Likewise.
34620         * lib/strcspn.c: Likewise.
34621         * lib/strerror.c: Likewise.
34622         * lib/strftime.c: Likewise.
34623         * lib/strftime.h: Likewise.
34624         * lib/striconveh.c: Likewise.
34625         * lib/striconveh.h: Likewise.
34626         * lib/striconveha.c: Likewise.
34627         * lib/striconveha.h: Likewise.
34628         * lib/stripslash.c: Likewise.
34629         * lib/strnlen1.c: Likewise.
34630         * lib/strnlen1.h: Likewise.
34631         * lib/strtod.c: Likewise.
34632         * lib/strtoimax.c: Likewise.
34633         * lib/strtok_r.c: Likewise.
34634         * lib/strtol.c: Likewise.
34635         * lib/strtoll.c: Likewise.
34636         * lib/strtoul.c: Likewise.
34637         * lib/strtoull.c: Likewise.
34638         * lib/sysexits.in.h: Likewise.
34639         * lib/tempname.c: Likewise.
34640         * lib/tempname.h: Likewise.
34641         * lib/timespec.h: Likewise.
34642         * lib/tls.c: Likewise.
34643         * lib/tls.h: Likewise.
34644         * lib/tmpdir.c: Likewise.
34645         * lib/tmpdir.h: Likewise.
34646         * lib/tmpfile-safer.c: Likewise.
34647         * lib/tmpfile.c: Likewise.
34648         * lib/trigl.c: Likewise.
34649         * lib/trigl.h: Likewise.
34650         * lib/trim.c: Likewise.
34651         * lib/trim.h: Likewise.
34652         * lib/trunc.c: Likewise.
34653         * lib/truncf.c: Likewise.
34654         * lib/truncl.c: Likewise.
34655         * lib/tsearch.c: Likewise.
34656         * lib/unicodeio.c: Likewise.
34657         * lib/unicodeio.h: Likewise.
34658         * lib/unistd--.h: Likewise.
34659         * lib/unistd-safer.h: Likewise.
34660         * lib/unistdio/ulc-fprintf.c: Likewise.
34661         * lib/unistdio/ulc-vfprintf.c: Likewise.
34662         * lib/unlinkdir.c: Likewise.
34663         * lib/unlinkdir.h: Likewise.
34664         * lib/unlocked-io.h: Likewise.
34665         * lib/unsetenv.c: Likewise.
34666         * lib/userspec.c: Likewise.
34667         * lib/utime.c: Likewise.
34668         * lib/utimecmp.c: Likewise.
34669         * lib/utimecmp.h: Likewise.
34670         * lib/utimens.c: Likewise.
34671         * lib/verify.h: Likewise.
34672         * lib/verror.c: Likewise.
34673         * lib/verror.h: Likewise.
34674         * lib/version-etc-fsf.c: Likewise.
34675         * lib/version-etc.c: Likewise.
34676         * lib/version-etc.h: Likewise.
34677         * lib/vfprintf.c: Likewise.
34678         * lib/vprintf.c: Likewise.
34679         * lib/vsprintf.c: Likewise.
34680         * lib/w32spawn.h: Likewise.
34681         * lib/wait-process.c: Likewise.
34682         * lib/wait-process.h: Likewise.
34683         * lib/wcwidth.c: Likewise.
34684         * lib/write-any-file.c: Likewise.
34685         * lib/xalloc-die.c: Likewise.
34686         * lib/xalloc.h: Likewise.
34687         * lib/xasprintf.c: Likewise.
34688         * lib/xgetcwd.c: Likewise.
34689         * lib/xgetcwd.h: Likewise.
34690         * lib/xgetdomainname.c: Likewise.
34691         * lib/xgetdomainname.h: Likewise.
34692         * lib/xgethostname.c: Likewise.
34693         * lib/xmalloc.c: Likewise.
34694         * lib/xmalloca.c: Likewise.
34695         * lib/xmalloca.h: Likewise.
34696         * lib/xmemcoll.c: Likewise.
34697         * lib/xnanosleep.c: Likewise.
34698         * lib/xreadlink.c: Likewise.
34699         * lib/xreadlink.h: Likewise.
34700         * lib/xsetenv.c: Likewise.
34701         * lib/xsetenv.h: Likewise.
34702         * lib/xstriconv.c: Likewise.
34703         * lib/xstriconv.h: Likewise.
34704         * lib/xstrndup.c: Likewise.
34705         * lib/xstrndup.h: Likewise.
34706         * lib/xstrtod.c: Likewise.
34707         * lib/xstrtod.h: Likewise.
34708         * lib/xstrtol-error.c: Likewise.
34709         * lib/xstrtol.c: Likewise.
34710         * lib/xstrtol.h: Likewise.
34711         * lib/xtime.h: Likewise.
34712         * lib/xvasprintf.c: Likewise.
34713         * lib/xvasprintf.h: Likewise.
34714         * lib/yesno.c: Likewise.
34715         * lib/yesno.h: Likewise.
34716         * posix-modules: Likewise.
34717         * tests/test-alloca-opt.c: Likewise.
34718         * tests/test-arcfour.c: Likewise.
34719         * tests/test-arctwo.c: Likewise.
34720         * tests/test-argmatch.c: Likewise.
34721         * tests/test-argp-2.sh: Likewise.
34722         * tests/test-argp.c: Likewise.
34723         * tests/test-arpa_inet.c: Likewise.
34724         * tests/test-array_list.c: Likewise.
34725         * tests/test-array_oset.c: Likewise.
34726         * tests/test-atexit.c: Likewise.
34727         * tests/test-avltree_list.c: Likewise.
34728         * tests/test-avltree_oset.c: Likewise.
34729         * tests/test-avltreehash_list.c: Likewise.
34730         * tests/test-base64.c: Likewise.
34731         * tests/test-binary-io.c: Likewise.
34732         * tests/test-byteswap.c: Likewise.
34733         * tests/test-c-ctype.c: Likewise.
34734         * tests/test-c-strcasecmp.c: Likewise.
34735         * tests/test-c-strcasestr.c: Likewise.
34736         * tests/test-c-strncasecmp.c: Likewise.
34737         * tests/test-c-strstr.c: Likewise.
34738         * tests/test-canonicalize-lgpl.c: Likewise.
34739         * tests/test-canonicalize.c: Likewise.
34740         * tests/test-carray_list.c: Likewise.
34741         * tests/test-ceilf.c: Likewise.
34742         * tests/test-ceill.c: Likewise.
34743         * tests/test-count-one-bits.c: Likewise.
34744         * tests/test-crc.c: Likewise.
34745         * tests/test-dirname.c: Likewise.
34746         * tests/test-fbufmode.c: Likewise.
34747         * tests/test-fcntl.c: Likewise.
34748         * tests/test-fflush.c: Likewise.
34749         * tests/test-floorf.c: Likewise.
34750         * tests/test-floorl.c: Likewise.
34751         * tests/test-fopen.c: Likewise.
34752         * tests/test-fprintf-posix.c: Likewise.
34753         * tests/test-fprintf-posix.h: Likewise.
34754         * tests/test-fpurge.c: Likewise.
34755         * tests/test-freadable.c: Likewise.
34756         * tests/test-freadahead.c: Likewise.
34757         * tests/test-freading.c: Likewise.
34758         * tests/test-freopen.c: Likewise.
34759         * tests/test-frexp.c: Likewise.
34760         * tests/test-frexpl.c: Likewise.
34761         * tests/test-fseek.c: Likewise.
34762         * tests/test-fseeko.c: Likewise.
34763         * tests/test-fseterr.c: Likewise.
34764         * tests/test-fstrcmp.c: Likewise.
34765         * tests/test-ftell.c: Likewise.
34766         * tests/test-ftello.c: Likewise.
34767         * tests/test-fwritable.c: Likewise.
34768         * tests/test-fwriting.c: Likewise.
34769         * tests/test-getaddrinfo.c: Likewise.
34770         * tests/test-getpass.c: Likewise.
34771         * tests/test-gettimeofday.c: Likewise.
34772         * tests/test-hmac-md5.c: Likewise.
34773         * tests/test-hmac-sha1.c: Likewise.
34774         * tests/test-iconv.c: Likewise.
34775         * tests/test-iconvme.c: Likewise.
34776         * tests/test-inttypes.c: Likewise.
34777         * tests/test-isnan.c: Likewise.
34778         * tests/test-isnanf.c: Likewise.
34779         * tests/test-isnanl-nolibm.c: Likewise.
34780         * tests/test-isnanl.c: Likewise.
34781         * tests/test-isnanl.h: Likewise.
34782         * tests/test-ldexpl.c: Likewise.
34783         * tests/test-linked_list.c: Likewise.
34784         * tests/test-linkedhash_list.c: Likewise.
34785         * tests/test-locale.c: Likewise.
34786         * tests/test-localename.c: Likewise.
34787         * tests/test-lock.c: Likewise.
34788         * tests/test-lseek.c: Likewise.
34789         * tests/test-malloca.c: Likewise.
34790         * tests/test-math.c: Likewise.
34791         * tests/test-mbscasecmp.c: Likewise.
34792         * tests/test-mbscasestr1.c: Likewise.
34793         * tests/test-mbscasestr2.c: Likewise.
34794         * tests/test-mbscasestr3.c: Likewise.
34795         * tests/test-mbscasestr4.c: Likewise.
34796         * tests/test-mbschr.c: Likewise.
34797         * tests/test-mbscspn.c: Likewise.
34798         * tests/test-mbsncasecmp.c: Likewise.
34799         * tests/test-mbspbrk.c: Likewise.
34800         * tests/test-mbspcasecmp.c: Likewise.
34801         * tests/test-mbsrchr.c: Likewise.
34802         * tests/test-mbsspn.c: Likewise.
34803         * tests/test-mbsstr1.c: Likewise.
34804         * tests/test-mbsstr2.c: Likewise.
34805         * tests/test-mbsstr3.c: Likewise.
34806         * tests/test-md5.c: Likewise.
34807         * tests/test-memmem.c: Likewise.
34808         * tests/test-netinet_in.c: Likewise.
34809         * tests/test-open.c: Likewise.
34810         * tests/test-printf-frexp.c: Likewise.
34811         * tests/test-printf-frexpl.c: Likewise.
34812         * tests/test-printf-posix.c: Likewise.
34813         * tests/test-printf-posix.h: Likewise.
34814         * tests/test-rbtree_list.c: Likewise.
34815         * tests/test-rbtree_oset.c: Likewise.
34816         * tests/test-rbtreehash_list.c: Likewise.
34817         * tests/test-read-file.c: Likewise.
34818         * tests/test-rijndael.c: Likewise.
34819         * tests/test-search.c: Likewise.
34820         * tests/test-signbit.c: Likewise.
34821         * tests/test-sleep.c: Likewise.
34822         * tests/test-snprintf-posix.c: Likewise.
34823         * tests/test-snprintf-posix.h: Likewise.
34824         * tests/test-snprintf.c: Likewise.
34825         * tests/test-sprintf-posix.c: Likewise.
34826         * tests/test-sprintf-posix.h: Likewise.
34827         * tests/test-stat-time.c: Likewise.
34828         * tests/test-stdbool.c: Likewise.
34829         * tests/test-stdint.c: Likewise.
34830         * tests/test-stdio.c: Likewise.
34831         * tests/test-stdlib.c: Likewise.
34832         * tests/test-stpncpy.c: Likewise.
34833         * tests/test-strcasestr.c: Likewise.
34834         * tests/test-striconv.c: Likewise.
34835         * tests/test-striconveh.c: Likewise.
34836         * tests/test-striconveha.c: Likewise.
34837         * tests/test-string.c: Likewise.
34838         * tests/test-sys_select.c: Likewise.
34839         * tests/test-sys_socket.c: Likewise.
34840         * tests/test-sys_stat.c: Likewise.
34841         * tests/test-sys_time.c: Likewise.
34842         * tests/test-sysexits.c: Likewise.
34843         * tests/test-time.c: Likewise.
34844         * tests/test-tls.c: Likewise.
34845         * tests/test-trunc.c: Likewise.
34846         * tests/test-truncf.c: Likewise.
34847         * tests/test-truncl.c: Likewise.
34848         * tests/test-unistd.c: Likewise.
34849         * tests/test-vasnprintf-posix.c: Likewise.
34850         * tests/test-vasnprintf-posix2.c: Likewise.
34851         * tests/test-vasnprintf.c: Likewise.
34852         * tests/test-vasprintf-posix.c: Likewise.
34853         * tests/test-vasprintf.c: Likewise.
34854         * tests/test-verify.c: Likewise.
34855         * tests/test-vfprintf-posix.c: Likewise.
34856         * tests/test-vprintf-posix.c: Likewise.
34857         * tests/test-vsnprintf-posix.c: Likewise.
34858         * tests/test-vsnprintf.c: Likewise.
34859         * tests/test-vsprintf-posix.c: Likewise.
34860         * tests/test-wchar.c: Likewise.
34861         * tests/test-wctype.c: Likewise.
34862         * tests/test-wcwidth.c: Likewise.
34863         * tests/test-xstrtol.c: Likewise.
34864         * tests/test-xvasprintf.c: Likewise.
34865         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
34866         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
34867         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
34868         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
34869         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
34870         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
34871         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
34872         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
34873         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
34874         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
34875         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
34876         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
34877         * tests/uniname/test-uninames.c: Likewise.
34878         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
34879         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
34880         * tests/unistdio/test-u16-printf1.h: Likewise.
34881         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
34882         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
34883         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
34884         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
34885         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
34886         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
34887         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
34888         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
34889         * tests/unistdio/test-u32-printf1.h: Likewise.
34890         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
34891         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
34892         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
34893         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
34894         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
34895         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
34896         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
34897         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
34898         * tests/unistdio/test-u8-printf1.h: Likewise.
34899         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
34900         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
34901         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
34902         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
34903         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
34904         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
34905         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
34906         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
34907         * tests/unistdio/test-ulc-printf1.h: Likewise.
34908         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
34909         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
34910         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
34911         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
34912         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
34913         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
34914         * tests/uniwidth/test-u16-strwidth.c: Likewise.
34915         * tests/uniwidth/test-u16-width.c: Likewise.
34916         * tests/uniwidth/test-u32-strwidth.c: Likewise.
34917         * tests/uniwidth/test-u32-width.c: Likewise.
34918         * tests/uniwidth/test-u8-strwidth.c: Likewise.
34919         * tests/uniwidth/test-u8-width.c: Likewise.
34920         * tests/uniwidth/test-uc_width.c: Likewise.
34921         * config/srclist-update: Likewise.
34922         (fixlicense): Update to GPLv3+.
34923
34924         Change copyright notice from LGPLv2.1+ to LGPLv3+.
34925         * tests/test-tsearch.c: Change copyright notice.
34926
34927         Change copyright notice from LGPLv2.0+ to LGPLv3+.
34928         * lib/c-strcaseeq.h: Change copyright notice.
34929         * lib/streq.h: Likewise.
34930         * lib/uniconv.h: Likewise.
34931         * lib/uniconv/u-conv-from-enc.h: Likewise.
34932         * lib/uniconv/u-conv-to-enc.h: Likewise.
34933         * lib/uniconv/u-strconv-from-enc.h: Likewise.
34934         * lib/uniconv/u-strconv-to-enc.h: Likewise.
34935         * lib/uniconv/u16-conv-from-enc.c: Likewise.
34936         * lib/uniconv/u16-conv-to-enc.c: Likewise.
34937         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
34938         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
34939         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
34940         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
34941         * lib/uniconv/u32-conv-from-enc.c: Likewise.
34942         * lib/uniconv/u32-conv-to-enc.c: Likewise.
34943         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
34944         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
34945         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
34946         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
34947         * lib/uniconv/u8-conv-from-enc.c: Likewise.
34948         * lib/uniconv/u8-conv-to-enc.c: Likewise.
34949         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
34950         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
34951         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
34952         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
34953         * lib/uniname.h: Likewise.
34954         * lib/uniname/uniname.c: Likewise.
34955         * lib/unistdio.h: Likewise.
34956         * lib/unistdio/u-asnprintf.h: Likewise.
34957         * lib/unistdio/u-asprintf.h: Likewise.
34958         * lib/unistdio/u-printf-args.c: Likewise.
34959         * lib/unistdio/u-printf-args.h: Likewise.
34960         * lib/unistdio/u-printf-parse.h: Likewise.
34961         * lib/unistdio/u-snprintf.h: Likewise.
34962         * lib/unistdio/u-sprintf.h: Likewise.
34963         * lib/unistdio/u-vasprintf.h: Likewise.
34964         * lib/unistdio/u-vsnprintf.h: Likewise.
34965         * lib/unistdio/u-vsprintf.h: Likewise.
34966         * lib/unistdio/u16-asnprintf.c: Likewise.
34967         * lib/unistdio/u16-asprintf.c: Likewise.
34968         * lib/unistdio/u16-printf-parse.c: Likewise.
34969         * lib/unistdio/u16-snprintf.c: Likewise.
34970         * lib/unistdio/u16-sprintf.c: Likewise.
34971         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
34972         * lib/unistdio/u16-u16-asprintf.c: Likewise.
34973         * lib/unistdio/u16-u16-snprintf.c: Likewise.
34974         * lib/unistdio/u16-u16-sprintf.c: Likewise.
34975         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
34976         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
34977         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
34978         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
34979         * lib/unistdio/u16-vasnprintf.c: Likewise.
34980         * lib/unistdio/u16-vasprintf.c: Likewise.
34981         * lib/unistdio/u16-vsnprintf.c: Likewise.
34982         * lib/unistdio/u16-vsprintf.c: Likewise.
34983         * lib/unistdio/u32-asnprintf.c: Likewise.
34984         * lib/unistdio/u32-asprintf.c: Likewise.
34985         * lib/unistdio/u32-printf-parse.c: Likewise.
34986         * lib/unistdio/u32-snprintf.c: Likewise.
34987         * lib/unistdio/u32-sprintf.c: Likewise.
34988         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
34989         * lib/unistdio/u32-u32-asprintf.c: Likewise.
34990         * lib/unistdio/u32-u32-snprintf.c: Likewise.
34991         * lib/unistdio/u32-u32-sprintf.c: Likewise.
34992         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
34993         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
34994         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
34995         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
34996         * lib/unistdio/u32-vasnprintf.c: Likewise.
34997         * lib/unistdio/u32-vasprintf.c: Likewise.
34998         * lib/unistdio/u32-vsnprintf.c: Likewise.
34999         * lib/unistdio/u32-vsprintf.c: Likewise.
35000         * lib/unistdio/u8-asnprintf.c: Likewise.
35001         * lib/unistdio/u8-asprintf.c: Likewise.
35002         * lib/unistdio/u8-printf-parse.c: Likewise.
35003         * lib/unistdio/u8-snprintf.c: Likewise.
35004         * lib/unistdio/u8-sprintf.c: Likewise.
35005         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
35006         * lib/unistdio/u8-u8-asprintf.c: Likewise.
35007         * lib/unistdio/u8-u8-snprintf.c: Likewise.
35008         * lib/unistdio/u8-u8-sprintf.c: Likewise.
35009         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
35010         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
35011         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
35012         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
35013         * lib/unistdio/u8-vasnprintf.c: Likewise.
35014         * lib/unistdio/u8-vasprintf.c: Likewise.
35015         * lib/unistdio/u8-vsnprintf.c: Likewise.
35016         * lib/unistdio/u8-vsprintf.c: Likewise.
35017         * lib/unistdio/ulc-asnprintf.c: Likewise.
35018         * lib/unistdio/ulc-asprintf.c: Likewise.
35019         * lib/unistdio/ulc-printf-parse.c: Likewise.
35020         * lib/unistdio/ulc-snprintf.c: Likewise.
35021         * lib/unistdio/ulc-sprintf.c: Likewise.
35022         * lib/unistdio/ulc-vasnprintf.c: Likewise.
35023         * lib/unistdio/ulc-vasprintf.c: Likewise.
35024         * lib/unistdio/ulc-vsnprintf.c: Likewise.
35025         * lib/unistdio/ulc-vsprintf.c: Likewise.
35026         * lib/unistr.h: Likewise.
35027         * lib/unistr/u-cpy-alloc.h: Likewise.
35028         * lib/unistr/u-cpy.h: Likewise.
35029         * lib/unistr/u-endswith.h: Likewise.
35030         * lib/unistr/u-move.h: Likewise.
35031         * lib/unistr/u-set.h: Likewise.
35032         * lib/unistr/u-startswith.h: Likewise.
35033         * lib/unistr/u-stpcpy.h: Likewise.
35034         * lib/unistr/u-stpncpy.h: Likewise.
35035         * lib/unistr/u-strcat.h: Likewise.
35036         * lib/unistr/u-strcpy.h: Likewise.
35037         * lib/unistr/u-strcspn.h: Likewise.
35038         * lib/unistr/u-strdup.h: Likewise.
35039         * lib/unistr/u-strlen.h: Likewise.
35040         * lib/unistr/u-strncat.h: Likewise.
35041         * lib/unistr/u-strncpy.h: Likewise.
35042         * lib/unistr/u-strnlen.h: Likewise.
35043         * lib/unistr/u-strpbrk.h: Likewise.
35044         * lib/unistr/u-strspn.h: Likewise.
35045         * lib/unistr/u-strstr.h: Likewise.
35046         * lib/unistr/u-strtok.h: Likewise.
35047         * lib/unistr/u16-check.c: Likewise.
35048         * lib/unistr/u16-chr.c: Likewise.
35049         * lib/unistr/u16-cmp.c: Likewise.
35050         * lib/unistr/u16-cpy-alloc.c: Likewise.
35051         * lib/unistr/u16-cpy.c: Likewise.
35052         * lib/unistr/u16-endswith.c: Likewise.
35053         * lib/unistr/u16-mblen.c: Likewise.
35054         * lib/unistr/u16-mbsnlen.c: Likewise.
35055         * lib/unistr/u16-mbtouc-aux.c: Likewise.
35056         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
35057         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
35058         * lib/unistr/u16-mbtouc.c: Likewise.
35059         * lib/unistr/u16-mbtoucr.c: Likewise.
35060         * lib/unistr/u16-move.c: Likewise.
35061         * lib/unistr/u16-next.c: Likewise.
35062         * lib/unistr/u16-prev.c: Likewise.
35063         * lib/unistr/u16-set.c: Likewise.
35064         * lib/unistr/u16-startswith.c: Likewise.
35065         * lib/unistr/u16-stpcpy.c: Likewise.
35066         * lib/unistr/u16-stpncpy.c: Likewise.
35067         * lib/unistr/u16-strcat.c: Likewise.
35068         * lib/unistr/u16-strchr.c: Likewise.
35069         * lib/unistr/u16-strcmp.c: Likewise.
35070         * lib/unistr/u16-strcpy.c: Likewise.
35071         * lib/unistr/u16-strcspn.c: Likewise.
35072         * lib/unistr/u16-strdup.c: Likewise.
35073         * lib/unistr/u16-strlen.c: Likewise.
35074         * lib/unistr/u16-strmblen.c: Likewise.
35075         * lib/unistr/u16-strmbtouc.c: Likewise.
35076         * lib/unistr/u16-strncat.c: Likewise.
35077         * lib/unistr/u16-strncmp.c: Likewise.
35078         * lib/unistr/u16-strncpy.c: Likewise.
35079         * lib/unistr/u16-strnlen.c: Likewise.
35080         * lib/unistr/u16-strpbrk.c: Likewise.
35081         * lib/unistr/u16-strrchr.c: Likewise.
35082         * lib/unistr/u16-strspn.c: Likewise.
35083         * lib/unistr/u16-strstr.c: Likewise.
35084         * lib/unistr/u16-strtok.c: Likewise.
35085         * lib/unistr/u16-to-u32.c: Likewise.
35086         * lib/unistr/u16-to-u8.c: Likewise.
35087         * lib/unistr/u16-uctomb-aux.c: Likewise.
35088         * lib/unistr/u16-uctomb.c: Likewise.
35089         * lib/unistr/u32-check.c: Likewise.
35090         * lib/unistr/u32-chr.c: Likewise.
35091         * lib/unistr/u32-cmp.c: Likewise.
35092         * lib/unistr/u32-cpy-alloc.c: Likewise.
35093         * lib/unistr/u32-cpy.c: Likewise.
35094         * lib/unistr/u32-endswith.c: Likewise.
35095         * lib/unistr/u32-mblen.c: Likewise.
35096         * lib/unistr/u32-mbsnlen.c: Likewise.
35097         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
35098         * lib/unistr/u32-mbtouc.c: Likewise.
35099         * lib/unistr/u32-mbtoucr.c: Likewise.
35100         * lib/unistr/u32-move.c: Likewise.
35101         * lib/unistr/u32-next.c: Likewise.
35102         * lib/unistr/u32-prev.c: Likewise.
35103         * lib/unistr/u32-set.c: Likewise.
35104         * lib/unistr/u32-startswith.c: Likewise.
35105         * lib/unistr/u32-stpcpy.c: Likewise.
35106         * lib/unistr/u32-stpncpy.c: Likewise.
35107         * lib/unistr/u32-strcat.c: Likewise.
35108         * lib/unistr/u32-strchr.c: Likewise.
35109         * lib/unistr/u32-strcmp.c: Likewise.
35110         * lib/unistr/u32-strcpy.c: Likewise.
35111         * lib/unistr/u32-strcspn.c: Likewise.
35112         * lib/unistr/u32-strdup.c: Likewise.
35113         * lib/unistr/u32-strlen.c: Likewise.
35114         * lib/unistr/u32-strmblen.c: Likewise.
35115         * lib/unistr/u32-strmbtouc.c: Likewise.
35116         * lib/unistr/u32-strncat.c: Likewise.
35117         * lib/unistr/u32-strncmp.c: Likewise.
35118         * lib/unistr/u32-strncpy.c: Likewise.
35119         * lib/unistr/u32-strnlen.c: Likewise.
35120         * lib/unistr/u32-strpbrk.c: Likewise.
35121         * lib/unistr/u32-strrchr.c: Likewise.
35122         * lib/unistr/u32-strspn.c: Likewise.
35123         * lib/unistr/u32-strstr.c: Likewise.
35124         * lib/unistr/u32-strtok.c: Likewise.
35125         * lib/unistr/u32-to-u16.c: Likewise.
35126         * lib/unistr/u32-to-u8.c: Likewise.
35127         * lib/unistr/u32-uctomb.c: Likewise.
35128         * lib/unistr/u8-check.c: Likewise.
35129         * lib/unistr/u8-chr.c: Likewise.
35130         * lib/unistr/u8-cmp.c: Likewise.
35131         * lib/unistr/u8-cpy-alloc.c: Likewise.
35132         * lib/unistr/u8-cpy.c: Likewise.
35133         * lib/unistr/u8-endswith.c: Likewise.
35134         * lib/unistr/u8-mblen.c: Likewise.
35135         * lib/unistr/u8-mbsnlen.c: Likewise.
35136         * lib/unistr/u8-mbtouc-aux.c: Likewise.
35137         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
35138         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
35139         * lib/unistr/u8-mbtouc.c: Likewise.
35140         * lib/unistr/u8-mbtoucr.c: Likewise.
35141         * lib/unistr/u8-move.c: Likewise.
35142         * lib/unistr/u8-next.c: Likewise.
35143         * lib/unistr/u8-prev.c: Likewise.
35144         * lib/unistr/u8-set.c: Likewise.
35145         * lib/unistr/u8-startswith.c: Likewise.
35146         * lib/unistr/u8-stpcpy.c: Likewise.
35147         * lib/unistr/u8-stpncpy.c: Likewise.
35148         * lib/unistr/u8-strcat.c: Likewise.
35149         * lib/unistr/u8-strchr.c: Likewise.
35150         * lib/unistr/u8-strcmp.c: Likewise.
35151         * lib/unistr/u8-strcpy.c: Likewise.
35152         * lib/unistr/u8-strcspn.c: Likewise.
35153         * lib/unistr/u8-strdup.c: Likewise.
35154         * lib/unistr/u8-strlen.c: Likewise.
35155         * lib/unistr/u8-strmblen.c: Likewise.
35156         * lib/unistr/u8-strmbtouc.c: Likewise.
35157         * lib/unistr/u8-strncat.c: Likewise.
35158         * lib/unistr/u8-strncmp.c: Likewise.
35159         * lib/unistr/u8-strncpy.c: Likewise.
35160         * lib/unistr/u8-strnlen.c: Likewise.
35161         * lib/unistr/u8-strpbrk.c: Likewise.
35162         * lib/unistr/u8-strrchr.c: Likewise.
35163         * lib/unistr/u8-strspn.c: Likewise.
35164         * lib/unistr/u8-strstr.c: Likewise.
35165         * lib/unistr/u8-strtok.c: Likewise.
35166         * lib/unistr/u8-to-u16.c: Likewise.
35167         * lib/unistr/u8-to-u32.c: Likewise.
35168         * lib/unistr/u8-uctomb-aux.c: Likewise.
35169         * lib/unistr/u8-uctomb.c: Likewise.
35170         * lib/unitypes.h: Likewise.
35171         * lib/uniwidth.h: Likewise.
35172         * lib/uniwidth/cjk.h: Likewise.
35173         * lib/uniwidth/u16-strwidth.c: Likewise.
35174         * lib/uniwidth/u16-width.c: Likewise.
35175         * lib/uniwidth/u32-strwidth.c: Likewise.
35176         * lib/uniwidth/u32-width.c: Likewise.
35177         * lib/uniwidth/u8-strwidth.c: Likewise.
35178         * lib/uniwidth/u8-width.c: Likewise.
35179         * lib/uniwidth/width.c: Likewise.
35180
35181 2007-10-07  Bruno Haible  <bruno@clisp.org>
35182
35183         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
35184         The file is still under LGPL (see modules/inttypes).
35185
35186 2007-10-06  Bruno Haible  <bruno@clisp.org>
35187
35188         * modules/trunc (Dependencies): Add 'extensions'.
35189         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
35190         Reported by Ben Pfaff <blp@gnu.org>.
35191
35192 2007-10-06  Bruno Haible  <bruno@clisp.org>
35193
35194         * modules/freopen-tests: New file.
35195         * tests/test-freopen.c: New file.
35196
35197         * modules/fopen-tests: New file.
35198         * tests/test-fopen.c: New file.
35199
35200         * modules/fopen: New file.
35201         * lib/fopen.c: New file.
35202         * m4/fopen.m4: New file.
35203         * modules/freopen: New file.
35204         * lib/freopen.c: New file.
35205         * m4/freopen.m4: New file.
35206         * lib/stdio.in.h (fopen, freopen): New declarations.
35207         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
35208         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
35209         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
35210         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
35211         * doc/functions/fopen.texi: Mention the 'fopen' module.
35212         * doc/functions/freopen.texi: Mention the 'freopen' module.
35213
35214 2007-10-06  Bruno Haible  <bruno@clisp.org>
35215
35216         * modules/open-tests: New file.
35217         * tests/test-open.c: New file.
35218
35219         * modules/open: New file.
35220         * lib/open.c: New file.
35221         * m4/open.m4: New file.
35222         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
35223         lib/open.c does.
35224         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
35225         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
35226         macros.
35227         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
35228         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
35229         REPLACE_OPEN.
35230         * doc/functions/open.texi: Mention the 'open' module.
35231
35232 2007-10-04  Bruno Haible  <bruno@clisp.org>
35233
35234         * modules/ceill-tests: New file.
35235         * tests/test-ceill.c: New file.
35236
35237         * modules/ceill: New file.
35238         * lib/ceill.c: Replace entire file.
35239         * m4/ceill.m4: New file.
35240         * lib/math.in.h (ceill): Replace declaration.
35241         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
35242         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
35243         * doc/functions/ceill.texi: Mention the 'ceill' module.
35244         * modules/mathl (Files): Remove lib/ceill.c.
35245         (Depends-on): Add ceill.
35246
35247 2007-10-04  Bruno Haible  <bruno@clisp.org>
35248
35249         * modules/ceilf-tests: New file.
35250         * tests/test-ceilf.c: New file.
35251
35252         * modules/ceilf: New file.
35253         * lib/ceil.c: New file.
35254         * lib/ceilf.c: New file.
35255         * m4/ceilf.m4: New file.
35256         * lib/math.in.h (ceilf): New declaration.
35257         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
35258         HAVE_DECL_CEILF.
35259         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
35260         HAVE_DECL_CEILF.
35261         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
35262
35263 2007-10-04  Bruno Haible  <bruno@clisp.org>
35264
35265         * modules/floorl-tests: New file.
35266         * tests/test-floorl.c: New file.
35267
35268         * modules/floorl: New file.
35269         * lib/floorl.c: Replace entire file.
35270         * m4/floorl.m4: New file.
35271         * lib/math.in.h (floorl): Replace declaration.
35272         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
35273         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
35274         * doc/functions/floorl.texi: Mention the 'floorl' module.
35275         * modules/mathl (Files): Remove lib/floorl.c.
35276         (Depends-on): Add floorl.
35277
35278 2007-10-04  Bruno Haible  <bruno@clisp.org>
35279
35280         * modules/floorf-tests: New file.
35281         * tests/test-floorf.c: New file.
35282
35283         * modules/floorf: New file.
35284         * lib/floor.c: New file.
35285         * lib/floorf.c: New file.
35286         * m4/floorf.m4: New file.
35287         * lib/math.in.h (floorf): New declaration.
35288         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
35289         HAVE_DECL_FLOORF.
35290         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
35291         HAVE_DECL_FLOORF.
35292         * doc/functions/floorf.texi: Mention the 'floorf' module.
35293
35294 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
35295             Bruno Haible  <bruno@clisp.org>
35296
35297         Advertise for the Git server instead of the CVS server.
35298         * doc/gnulib-intro.texi (Steady Development): Mention the Git
35299         repository instead of the CVS one.
35300         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
35301         about all VCS systems generically.
35302         * doc/gnulib.texi (Introduction): Capitalize `Git'.
35303
35304 2007-10-04  Bruno Haible  <bruno@clisp.org>
35305
35306         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
35307         means.
35308         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
35309
35310 2007-10-04  Bruno Haible  <bruno@clisp.org>
35311
35312         * modules/truncl-tests: New file.
35313         * tests/test-truncl.c: New file.
35314
35315         * modules/truncl: New file.
35316         * lib/truncl.c: New file.
35317         * m4/truncl.m4: New file.
35318         * lib/math.in.h (truncl): New declaration.
35319         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
35320         HAVE_DECL_TRUNCL.
35321         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
35322         HAVE_DECL_TRUNCL.
35323         * doc/functions/truncl.texi: Mention the 'truncl' module.
35324
35325 2007-10-04  Bruno Haible  <bruno@clisp.org>
35326
35327         * modules/truncf-tests: New file.
35328         * tests/test-truncf.c: New file.
35329
35330         * modules/truncf: New file.
35331         * lib/trunc.c: Make paramerizable through USE_* macros.
35332         * lib/truncf.c: New file.
35333         * m4/truncf.m4: New file.
35334         * lib/math.in.h (truncf): New declaration.
35335         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
35336         HAVE_DECL_TRUNCF.
35337         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
35338         HAVE_DECL_TRUNCF.
35339         * doc/functions/truncf.texi: Mention the 'truncf' module.
35340
35341 2007-10-03  Bruno Haible  <bruno@clisp.org>
35342
35343         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
35344         augmentation also for tests modules.
35345         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
35346         * modules/atexit-tests (Makefile.am): Likewise.
35347         * modules/binary-io-tests (Makefile.am): Likewise.
35348         * modules/c-strcase-tests (Makefile.am): Likewise.
35349         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
35350         * modules/canonicalize-tests (Makefile.am): Likewise.
35351         * modules/closein-tests (Makefile.am): Likewise.
35352         * modules/fprintf-posix-tests (Makefile.am): Likewise.
35353         * modules/freadahead-tests (Makefile.am): Likewise.
35354         * modules/fseek-tests (Makefile.am): Likewise.
35355         * modules/fseeko-tests (Makefile.am): Likewise.
35356         * modules/ftell-tests (Makefile.am): Likewise.
35357         * modules/ftello-tests (Makefile.am): Likewise.
35358         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
35359         * modules/isnanl-tests (Makefile.am): Likewise.
35360         * modules/lseek-tests (Makefile.am): Likewise.
35361         * modules/mbscasecmp-tests (Makefile.am): Likewise.
35362         * modules/mbscasestr-tests (Makefile.am): Likewise.
35363         * modules/mbschr-tests (Makefile.am): Likewise.
35364         * modules/mbscspn-tests (Makefile.am): Likewise.
35365         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
35366         * modules/mbspbrk-tests (Makefile.am): Likewise.
35367         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
35368         * modules/mbsrchr-tests (Makefile.am): Likewise.
35369         * modules/mbsspn-tests (Makefile.am): Likewise.
35370         * modules/mbsstr-tests (Makefile.am): Likewise.
35371         * modules/printf-posix-tests (Makefile.am): Likewise.
35372         * modules/snprintf-posix-tests (Makefile.am): Likewise.
35373         * modules/sprintf-posix-tests (Makefile.am): Likewise.
35374         * modules/tsearch-tests (Makefile.am): Likewise.
35375         * modules/uniname/uniname-tests (Makefile.am): Likewise.
35376         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
35377         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
35378         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
35379         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
35380         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
35381         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
35382         * modules/vprintf-posix-tests (Makefile.am): Likewise.
35383         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
35384         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
35385         * modules/xstrtoimax-tests (Makefile.am): Likewise.
35386         * modules/xstrtol-tests (Makefile.am): Likewise.
35387         * modules/xstrtoumax-tests (Makefile.am): Likewise.
35388         * modules/yesno-tests (Makefile.am): Likewise.
35389
35390 2007-10-03  Bruno Haible  <bruno@clisp.org>
35391
35392         * modules/trunc-tests: New file.
35393         * tests/test-trunc.c: New file.
35394
35395         * modules/trunc: New file.
35396         * lib/trunc.c: New file.
35397         * m4/trunc.m4: New file.
35398         * lib/math.in.h (trunc): New declaration.
35399         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
35400         HAVE_DECL_TRUNC.
35401         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
35402         HAVE_DECL_TRUNC.
35403         * doc/functions/trunc.texi: Mention the 'trunc' module.
35404
35405 2007-10-03  Bruno Haible  <bruno@clisp.org>
35406
35407         * tests/test-fpending.c: New file, mostly copied
35408         from coreutils/lib/t-fpending.c.
35409         * modules/fpending-tests: New file.
35410
35411 2007-10-03  Bruno Haible  <bruno@clisp.org>
35412
35413         Port the stdio extensions to QNX (untested).
35414         * lib/fseterr.c (fseterr): Add support for QNX.
35415         * lib/fbufmode.c (fbufmode): Likewise.
35416         * lib/freadable.c (freadable): Likewise.
35417         * lib/fwritable.c (fwritable): Likewise.
35418         * lib/freading.c (freading): Likewise.
35419         * lib/fwriting.c (fwriting): Likewise.
35420         * lib/freadahead.c (freadahed): Likewise.
35421         * lib/fpurge.c (fpurge): Likewise.
35422         * lib/fseeko.c (rpl_fseeko): Likewise.
35423
35424 2007-10-03  Bruno Haible  <bruno@clisp.org>
35425             Jim Meyering  <jim@meyering.net>
35426             Eric Blake  <ebb9@byu.net>
35427
35428         * doc/relocatable.texi: Use @command instead of @program.
35429
35430 2007-10-02  Jim Meyering  <jim@meyering.net>
35431
35432         Perform one more "_.h" -> ".in.h" substitution.
35433         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
35434         instead of unistd_.h here, too.
35435
35436 2007-10-01  Bruno Haible  <bruno@clisp.org>
35437
35438         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
35439         Needed for the alloca-opt module.
35440
35441 2007-09-30  Bruno Haible  <bruno@clisp.org>
35442
35443         * lib/alloca.in.h: Renamed from lib/alloca_.h.
35444         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
35445         alloca_.h.
35446         * lib/argz.in.h: Renamed from lib/argz_.h.
35447         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
35448         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
35449         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
35450         byteswap_.h.
35451         * lib/dirent.in.h: Renamed from lib/dirent_.h.
35452         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
35453         dirent_.h.
35454         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
35455         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
35456         fcntl_.h.
35457         * lib/float.in.h: Renamed from lib/float_.h.
35458         * modules/float (Files, Makefile.am): Use float.in.h instead of
35459         float_.h.
35460         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
35461         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
35462         fnmatch_.h.
35463         * lib/getopt.in.h: Renamed from lib/getopt_.h.
35464         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
35465         getopt_.h.
35466         * lib/glob.in.h: Renamed from lib/glob_.h.
35467         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
35468         * lib/iconv.in.h: Renamed from lib/iconv_.h.
35469         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
35470         iconv_.h.
35471         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
35472         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
35473         inttypes_.h.
35474         * lib/locale.in.h: Renamed from lib/locale_.h.
35475         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
35476         locale_.h.
35477         * lib/math.in.h: Renamed from lib/math_.h.
35478         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
35479         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
35480         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
35481         of netinet_in_.h. Add dependency.
35482         * lib/poll.in.h: Renamed from lib/poll_.h.
35483         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
35484         * lib/search.in.h: Renamed from lib/search_.h.
35485         * modules/search (Files, Makefile.am): Use search.in.h instead of
35486         search_.h.
35487         * lib/signal.in.h: Renamed from lib/signal_.h.
35488         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
35489         _signal.h.
35490         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
35491         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
35492         stdbool_.h.
35493         * lib/stdint.in.h: Renamed from lib/stdint_.h.
35494         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
35495         stdint_.h.
35496         * lib/stdio.in.h: Renamed from lib/stdio_.h.
35497         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
35498         stdio_.h.
35499         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
35500         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
35501         stdlib_.h.
35502         * lib/string.in.h: Renamed from lib/string_.h.
35503         * modules/string (Files, Makefile.am): Use string.in.h instead of
35504         string_.h.
35505         * doc/gnulib-tool.texi (Initial import): Update.
35506         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
35507         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
35508         of sys_select_.h. Add dependency.
35509         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
35510         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
35511         of sys_socket_.h.
35512         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
35513         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
35514         sys_stat_.h.
35515         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
35516         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
35517         sys_time_.h.
35518         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
35519         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
35520         sysexits_.h.
35521         * lib/time.in.h: Renamed from lib/time_.h.
35522         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
35523         * lib/unistd.in.h: Renamed from lib/unistd_.h.
35524         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
35525         unistd_.h.
35526         * lib/wchar.in.h: Renamed from lib/wchar_.h.
35527         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
35528         wchar_.h.
35529         * lib/wctype.in.h: Renamed from lib/wctype_.h.
35530         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
35531         wctype_.h.
35532         * build-aux/bootstrap (slurp): Update.
35533         * lib/.cppi-disable: Update.
35534
35535 2007-09-30  Bruno Haible  <bruno@clisp.org>
35536
35537         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
35538         Needed on BeOS.
35539
35540 2007-09-30  Bruno Haible  <bruno@clisp.org>
35541
35542         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
35543
35544 2007-09-29  Bruno Haible  <bruno@clisp.org>
35545
35546         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
35547
35548 2007-09-29  Bruno Haible  <bruno@clisp.org>
35549
35550         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
35551         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
35552         * build-aux/install-reloc: Compile also areadlink.c.
35553         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
35554
35555 2007-09-29  Bruno Haible  <bruno@clisp.org>
35556
35557         * gnulib-tool (func_emit_initmacro_done): Indentation.
35558
35559 2007-09-29  Bruno Haible  <bruno@clisp.org>
35560
35561         * README: Add CVS checkout update instructions.
35562         Info from Bob Proulx <bob@proulx.com>.
35563
35564 2007-09-28  Eric Blake  <ebb9@byu.net>
35565
35566         Provide move-if-change.
35567         * build-aux/move-if-change: New file, based on best practice
35568         rather than any canonical upstream location.
35569
35570 2007-09-28  Jim Meyering  <jim@meyering.net>
35571
35572         Fix canonicalize loop-detection corner case.
35573         Do not attempt to stat the symlink values stored via seen_triple.
35574         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
35575         on linux-2.6.18, (but not 2.6.22).
35576         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
35577         triple_compare.  The former compares dev,ino,filename, while the latter
35578         would actually stat dirname(filename) when dev and ino were equal.
35579         * lib/hash-triple.c: Install <string.h>.
35580         (STREQ): Define.
35581         (triple_compare_ino_str): New function.
35582         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
35583
35584 2007-09-28  Eric Blake  <ebb9@byu.net>
35585
35586         Enforce that AC_REPLACE_FUNCS files exist.
35587         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
35588         override check for typos.
35589
35590         Fix test-closein on Solaris 10.
35591         * tests/test-closein.c (main): Don't assume stdin can be inherited
35592         closed on all systems.
35593         * tests/test-closein.sh: Likewise.
35594         Reported by Piotr Tarnowski.
35595
35596 2007-09-28  Jim Meyering  <jim@meyering.net>
35597
35598         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
35599
35600 2007-09-27  Jim Meyering  <jim@meyering.net>
35601
35602         canonicalize: Avoid a false-positive cycle failure.
35603         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
35604         Sort.  Remove cycle-check.
35605         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
35606         not cycle-check.h.
35607         (seen_triple): New function.
35608         (canonicalize_filename_mode): Use it instead of cycle-check.
35609         * tests/test-canonicalize.c: Add a test for this bug.
35610         * tests/test-canonicalize.sh: Set up and run the test.
35611
35612         New module, file-set, from coreutils.
35613         * modules/file-set: Define it.
35614         * lib/file-set.c, lib/file-set.h: Implement.
35615
35616         New module, hash-triple, from coreutils.
35617         * modules/hash-triple: Define it.
35618         * lib/hash-triple.c, lib/hash-triple.h: Implement.
35619
35620 2007-09-25  Eric Blake  <ebb9@byu.net>
35621
35622         Fix strerror on Interix.
35623         * lib/string_.h (strerror): Declare replacement.
35624         * doc/functions/strerror.texi (strerror): Document the Interix
35625         shortcoming.
35626         * modules/string (Makefile.am): Support new hooks.
35627         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
35628         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
35629         gl_FUNC_STRERROR_SEPARATE.
35630         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
35631         * lib/strerror.c (rpl_strerror): Provide replacement.
35632         * modules/strerror (Depends-on): Add string.
35633         (configure.ac): Detect use of module.
35634         * tests/test-strerror.c: New file.
35635         * modules/strerror-tests: New test module.
35636         * modules/argp (Depends-on): Add strerror.
35637         * modules/error (Depends-on): Likewise.
35638         Reported by Martin Koeppe.
35639
35640 2007-09-24  Bruno Haible  <bruno@clisp.org>
35641
35642         * README: Update git instructions.
35643
35644 2007-09-24  Eric Blake  <ebb9@byu.net>
35645
35646         Revert fpending breakage from 2007-09-08.
35647         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
35648         __fpending.c.
35649
35650 2007-09-24  Jim Meyering  <jim@meyering.net>
35651
35652         filenamecat.c: Add a test.
35653         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
35654         showing how the function works when DIR is the empty string.
35655
35656 2007-09-21  Simon Josefsson  <simon@josefsson.org>
35657
35658         * tests/test-canonicalize.sh: Turn on executable bit.
35659
35660 2007-09-19  Eric Blake  <ebb9@byu.net>
35661
35662         * README: Update CVS instructions.
35663
35664 2007-09-18  Bruno Haible  <bruno@clisp.org>
35665
35666         * modules/areadlink: New file.
35667         * lib/areadlink.h (areadlink): New declaration.
35668         * lib/areadlink.c: New file, based on lib/xreadlink.c.
35669
35670 2007-09-17  Jim Meyering  <jim@meyering.net>
35671
35672         * lib/savewd.c (ESTALE) [!defined]: Define.
35673         Reported to be required on Interix by Martin Koeppe.
35674
35675 2007-09-17  Bruno Haible  <bruno@clisp.org>
35676
35677         * gnulib-tool (func_version): Use $version.
35678
35679 2007-09-16  Bruno Haible  <bruno@clisp.org>
35680
35681         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
35682         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
35683         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
35684         Reported by Greg Schafer <gschafer@zip.com.au>.
35685
35686 2007-09-15  Bruno Haible  <bruno@clisp.org>
35687
35688         * gnulib-tool (sed): Try a little harder to make bash understand the
35689         alias.
35690         Reported by Bruce Korb <bruce.korb@gmail.com>.
35691
35692 2007-09-13  Eric Blake  <ebb9@byu.net>
35693
35694         * ChangeLog: Remove conflict markers.
35695
35696 2007-09-13  Simon Josefsson  <simon@josefsson.org>
35697
35698         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
35699         Reported by Bruno Haible <bruno@clisp.org>.
35700
35701 2007-09-12  Bruno Haible  <bruno@clisp.org>
35702
35703         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
35704         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
35705         is not defined.
35706
35707 2007-09-12  Eric Blake  <ebb9@byu.net>
35708
35709         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
35710         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
35711         Autoconf definition.
35712         * modules/euidaccess (Depends-on): Add extensions, for
35713         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
35714         * modules/fnmatch (Depends-on): Likewise.
35715         * modules/getaddrinfo (Depends-on): Likewise.
35716         * modules/getdelim (Depends-on): Likewise.
35717         * modules/getline (Depends-on): Likewise.
35718         * modules/getsubopt (Depends-on): Likewise.
35719         * modules/gettext (Depends-on): Likewise.
35720         * modules/group-member (Depends-on): Likewise.
35721         * modules/mbchar (Depends-on): Likewise.
35722         * modules/memmem (Depends-on): Likewise.
35723         * modules/mempcpy (Depends-on): Likewise.
35724         * modules/memrchr (Depends-on): Likewise.
35725         * modules/pagealign_alloc (Depends-on): Likewise.
35726         * modules/readutmp (Depends-on): Likewise.
35727         * modules/stpcpy (Depends-on): Likewise.
35728         * modules/stpncpy (Depends-on): Likewise.
35729         * modules/strchrnul (Depends-on): Likewise.
35730         * modules/strndup (Depends-on): Likewise.
35731         * modules/strsep (Depends-on): Likewise.
35732         * modules/strverscmp (Depends-on): Likewise.
35733         * modules/vasprintf (Depends-on): Likewise.
35734         * modules/wcwidth (Depends-on): Likewise.
35735         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
35736         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
35737         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
35738         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
35739         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
35740         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
35741         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
35742         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
35743         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
35744         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
35745         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
35746         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
35747         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
35748         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
35749         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
35750         * m4/readutmp.m4 (gl_READUTMP): Likewise.
35751         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
35752         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
35753         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
35754         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
35755         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
35756         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
35757         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
35758         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
35759         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
35760         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
35761         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
35762         so that lock.m4 can be used in gettext without extensions module.
35763
35764 2007-09-11  Bruno Haible  <bruno@clisp.org>
35765
35766         * m4/isc-posix.m4: Remove file.
35767         Suggested by Eric Blake.
35768
35769 2007-09-11  Eric Blake  <ebb9@byu.net>
35770
35771         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
35772
35773 2007-09-10  Bruno Haible  <bruno@clisp.org>
35774
35775         * posix-modules: Fix typo in error message.
35776         Reported by Matt <mkraai@beckman.com>.
35777
35778 2007-09-09  Bruno Haible  <bruno@clisp.org>
35779
35780         * doc/functions/getdelim.texi: Update list of platforms lacking the
35781         function.
35782         * doc/functions/getline.texi: Likewise.
35783
35784 2007-09-09  Jim Meyering  <jim@meyering.net>
35785
35786         * lib/hash.c (hash_initialize): Detect calloc failure.
35787         Reported by Bruno Haible.
35788
35789 2007-09-09  Bruno Haible  <bruno@clisp.org>
35790
35791         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
35792         malloc or realloc fails.
35793
35794 2007-09-09  Bruno Haible  <bruno@clisp.org>
35795
35796         * modules/getcwd (Depends-on): Add malloc-posix.
35797         * modules/glob (Depends-on): Likewise.
35798         * modules/putenv (Depends-on): Likewise.
35799         * modules/strdup (Depends-on): Likewise.
35800         * modules/getdelim (Depends-on): Add realloc-posix.
35801         * modules/read-file (Depends-on): Likewise.
35802
35803 2007-09-09  Bruno Haible  <bruno@clisp.org>
35804
35805         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
35806         (gl_FUNC_MALLOC_POSIX): Require it.
35807         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
35808         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
35809         * modules/realloc (Files): Add m4/malloc.m4.
35810         * modules/calloc (Files): Likewise.
35811
35812 2007-09-09  Bruno Haible  <bruno@clisp.org>
35813
35814         * modules/malloc-posix: New file.
35815         * modules/malloc (Depends-on): Add malloc-posix.
35816         * lib/malloc.c: Include errno.h.
35817         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
35818         and a POSIX-compatible malloc into a single function. Set ENOMEM
35819         when returning NULL.
35820         * m4/malloc.m4: New file.
35821         * doc/functions/malloc.texi: Mention the malloc-posix module.
35822         * lib/stdlib_.h (malloc): New declaration.
35823         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
35824         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
35825         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
35826         and HAVE_MALLOC_POSIX.
35827
35828 2007-09-09  Bruno Haible  <bruno@clisp.org>
35829
35830         * modules/realloc-posix: New file.
35831         * modules/realloc (Depends-on): Add realloc-posix.
35832         * lib/realloc.c: Include errno.h.
35833         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
35834         and a POSIX-compatible realloc into a single function. Set ENOMEM
35835         when returning NULL.
35836         * m4/realloc.m4: New file.
35837         * doc/functions/realloc.texi: Mention the realloc-posix module.
35838         * lib/stdlib_.h (realloc): New declaration.
35839         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
35840         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
35841         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
35842         and HAVE_REALLOC_POSIX.
35843
35844 2007-09-09  Bruno Haible  <bruno@clisp.org>
35845
35846         * modules/calloc-posix: New file.
35847         * modules/calloc (Depends-on): Add calloc-posix.
35848         * lib/calloc.c: Include errno.h.
35849         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
35850         and a POSIX-compatible calloc into a single function. Set ENOMEM
35851         when returning NULL.
35852         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
35853         * doc/functions/calloc.texi: Mention the calloc-posix module.
35854         * lib/stdlib_.h (calloc): New declaration.
35855         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
35856         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
35857         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
35858         and HAVE_CALLOC_POSIX.
35859
35860 2007-09-09  Bruno Haible  <bruno@clisp.org>
35861
35862         Allow for modules to show an arbitrary notice.
35863         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
35864         * gnulib-tool: New option --extract-notice.
35865         (func_usage): Document it.
35866         (sed_extract_prog): Update.
35867         (func_get_notice): New function.
35868         (func_modules_notice): New function.
35869         (func_import, func_create_testdir): Invoke it.
35870         Suggested by Jim Meyering.
35871
35872 2007-09-09  Bruno Haible  <bruno@clisp.org>
35873
35874         * gnulib-tool: New options --verbose, --quiet.
35875         (func_usage): Document them.
35876         (verbose): New variable.
35877         (func_execute_command): New function.
35878         (func_import): Don't show the module list and the file list if
35879         $verbose < 0.
35880         (func_create_testdir): Likewise. Use func_execute_command.
35881         (func_create_megatestdir): Use func_execute_command.
35882
35883 2007-09-08  Bruno Haible  <bruno@clisp.org>
35884
35885         * gnulib-tool (func_import): Prefer rsync over wget when available,
35886         for fetching the PO files.
35887
35888 2007-09-08  Bruno Haible  <bruno@clisp.org>
35889
35890         * posix-modules: New file. Portions copied from gnulib-tool.
35891         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
35892
35893 2007-09-08  Jim Meyering  <jim@meyering.net>
35894
35895         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
35896         * lib/fpending.h: Rename from __fpending.h.
35897         * lib/fpending.c: Rename from __fpending.c.
35898         Include "fpending.h", not "__fpending.h".
35899         * lib/__fpending.h, lib/__fpending.c: Remove files.
35900         * modules/fpending (Files): Reflect new file names.
35901         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
35902
35903 2007-09-08  Bruno Haible  <bruno@clisp.org>
35904
35905         * m4/inttypes-h.m4: Remove stub file.
35906
35907 2007-09-07  Simon Josefsson  <simon@josefsson.org>
35908
35909         * doc/headers/stdint.texi: Discuss #include_next issue.
35910
35911 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
35912
35913         * build-aux/bootstrap: Remove obsolete comment about wget --help.
35914
35915 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35916
35917         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
35918         in variable name.
35919
35920 2007-09-03  Jim Meyering  <jim@meyering.net>
35921
35922         New module: git-version-gen.
35923         * modules/git-version-gen: New file.
35924
35925         Import changes from coreutils for bootstrap script.
35926
35927         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
35928
35929         bootstrap: uses rsync to download the .po files
35930         * build-aux/bootstrap (po_download_command_format): New global.
35931         (download_po_files): Use rsync.
35932         (update_po_files): Don't remove .po files after download,
35933         so future rsync runs can take advantage of the copies.
35934
35935         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
35936
35937         Solve the unnecessary-.po-file-regeneration problem once and for all.
35938         * build-aux/bootstrap (download_po_files): New function, renamed from
35939         get_translations.  Now, downloads, but doesn't update LINGUAS.
35940         (update_po_files): New function.
35941
35942         bootstrap: Ignore more.
35943         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
35944         uniwidth to e.g., lib/.gitignore.
35945         (slurp): Handle the sys_stat_.h -> sys mapping, too.
35946
35947         * build-aux/bootstrap: New setting: vc_ignore.
35948         (insert_sorted_if_absent): Create $file if absent.
35949         Adapt to new, possibly empty, list: $vc_ignore.
35950
35951         bootstrap: generate more ignorable names
35952         * build-aux/bootstrap (slurp): When generating ignorable names,
35953         also map .sin to .sed, .gperf to .c, and .y to .c.
35954
35955 2007-09-03  Jim Meyering  <jim@meyering.net>
35956
35957         * build-aux/git-version-gen: New file, from coreutils.  For details, see
35958         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
35959
35960 2007-09-02  Bruno Haible  <bruno@clisp.org>
35961
35962         Fix mis-recognition of 'mcs' on QNX 6.
35963         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
35964         output contains the string "Mono".
35965         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
35966         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
35967
35968 2007-09-01  Bruno Haible  <bruno@clisp.org>
35969
35970         Fix collision between uniwidth/* and linebreak modules.
35971         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
35972         u32_width): Remove declarations.
35973         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
35974         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
35975         streq3, streq2, streq1, streq0): Remove functions.
35976         (STREQ): Remove macro.
35977         (is_cjk_encoding): Remove function.
35978         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
35979         (uc_width, u8_width, u16_width, u32_width): Remove functions.
35980         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
35981         * NEWS: Document the change.
35982
35983 2007-09-01  Bruno Haible  <bruno@clisp.org>
35984
35985         * lib/streq.h: Add double-inclusion guard.
35986
35987 2007-09-01  Karl Berry  <karl@gnu.org>
35988
35989         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
35990
35991 2007-08-28  Jim Meyering  <jim@meyering.net>
35992
35993         Rename mreadlink_with_size to areadlink_with_size.
35994         * NEWS: Document the change.
35995         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
35996         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
35997         * lib/mreadlink.h: Rename this to...
35998         * lib/areadlink.h: ...this.
35999         * modules/mreadlink-with-size: Rename this to...
36000         * modules/areadlink-with-size: ...this.
36001         * lib/canonicalize.c: Reflect the renaming.
36002         * modules/canonicalize: Likewise.
36003
36004 2007-08-26  Bruno Haible  <bruno@clisp.org>
36005
36006         * gnulib-tool (func_import): When deciding which files to remove,
36007         consider also dangling symbolic links.
36008         Reported by Eric Blake.
36009
36010 2007-08-26  Bruno Haible  <bruno@clisp.org>
36011
36012         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
36013
36014 2007-08-23  Simon Josefsson  <simon@josefsson.org>
36015
36016         * lib/readline.c: Don't include getline.h, the prototype is now
36017         found in stdio.h.
36018
36019 2007-08-23  Jim Meyering  <jim@meyering.net>
36020
36021         Getdelim touchup.
36022         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
36023         around the funlockfile call, since funlockfile never sets errno.
36024         Don't set errno upon failed realloc.
36025
36026 2007-08-22  Eric Blake  <ebb9@byu.net>
36027
36028         Getline touchups.
36029         * lib/getdelim.c (getdelim): Revert regression that required *n to
36030         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
36031         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
36032         getdelim, rather than whether implementation is missing.
36033         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
36034         * lib/stdio_.h (getline): Also declare if replacement is
36035         required.
36036         * doc/functions/getdelim.texi: New file.
36037         * doc/functions/getline.texi: Likewise.
36038         * doc/gnulib.texi (Function Substitutes): Add new files.
36039         Reported by Bruno Haible.
36040
36041 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
36042
36043         * users.txt: Add Guile.
36044
36045 2007-08-22  Eric Blake  <ebb9@byu.net>
36046
36047         * tests/test-getdelim.c (main): Use remove, not unlink.
36048         * tests/test-getline.c (main): Likewise.
36049
36050         Move getline and getdelim into stdio.h, per POSIX 200x.
36051         * modules/getline (Files): Remove getline.h.
36052         (Depends-on): Add stdio.
36053         (configure.ac): Add module indicator.
36054         * modules/getdelim (Files): Remove getdelim.h.
36055         (Depends-on): Add stdio.
36056         (configure.ac): Add module indicator.
36057         * modules/stdio (Makefile.am): Work with new indicators.
36058         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
36059         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
36060         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
36061         * lib/getdelim.h: Delete.
36062         * lib/getline.h: Delete.
36063         * lib/stdio_.h (getdelim, getline): Declare.
36064         * modules/getdelim-tests: New module.
36065         * modules/getline-tests: Likewise.
36066         * tests/test-getdelim.c: New file.
36067         * tests/test-getline.c: Likewise.
36068         * NEWS: Document the change.
36069         * lib/getline.c: Update choice of header.
36070         * lib/csharpcomp.c: Likewise.
36071         * lib/getpass.c: Likewise.
36072         * lib/javacomp.c: Likewise.
36073         * lib/javaversion.c: Likewise.
36074         * lib/yesno.c: Likewise.
36075         * lib/getdelim.c: Likewise.
36076         (getdelim): Set errno on failure, and avoid memory leak.
36077
36078 2007-08-19  Bruno Haible  <bruno@clisp.org>
36079
36080         * modules/closein (Depends-on): Add freadahead.
36081         * lib/closein.c: Include freadahead.h.
36082         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
36083         is zero.
36084
36085 2007-08-19  Bruno Haible  <bruno@clisp.org>
36086
36087         * modules/freadahead-tests: New file.
36088         * tests/test-freadahead.sh: New file.
36089         * tests/test-freadahead.c: New file.
36090
36091         * modules/freadahead: New file.
36092         * lib/freadahead.h: New file.
36093         * lib/freadahead.c: New file.
36094         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
36095         fbufmode, fpurge, freadable, fwritable.
36096
36097 2007-08-19  Eric Blake  <ebb9@byu.net>
36098
36099         Test yesno in combination with closein.
36100         * lib/yesno.c (yesno): Document use of stdin.
36101         * modules/yesno-tests (Files): New module.
36102         * tests/test-yesno.c (main): New file.
36103         * tests/test-yesno.sh: Likewise.
36104
36105 2007-08-19  Bruno Haible  <bruno@clisp.org>
36106
36107         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
36108         * lib/fseeko.c (rpl_fseeko): Likewise.
36109         * lib/fseterr.c (fseterr): Likewise.
36110
36111 2007-08-19  Bruno Haible  <bruno@clisp.org>
36112
36113         * tests/test-lseek.c (main): Disable a test for BeOS.
36114         * doc/functions/lseek.texi: Document the BeOS bug.
36115
36116 2007-08-19  Bruno Haible  <bruno@clisp.org>
36117             Eric Blake  <ebb9@byu.net>
36118
36119         * lib/lseek.c: Include <sys/stat.h>.
36120         (rpl_lseek): Add workaround code also for Unix platforms.
36121         Needed for BeOS.
36122         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
36123         * doc/functions/lseek.texi: Document BeOS definiency.
36124
36125 2007-08-18  Bruno Haible  <bruno@clisp.org>
36126
36127         * modules/fstrcmp-tests: New file.
36128         * tests/test-fstrcmp.c: New file.
36129
36130 2007-08-18  Bruno Haible  <bruno@clisp.org>
36131
36132         * modules/fstrcmp: New file, from GNU gettext with modifications.
36133         * lib/fstrcmp.h: New file, from GNU gettext.
36134         * lib/fstrcmp.c: New file, from GNU gettext.
36135         * MODULES.html.sh (String handling): Add fstrcmp.
36136
36137 2007-08-18  Bruno Haible  <bruno@clisp.org>
36138
36139         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
36140         'bool'.
36141         (diag, compareseq): Remove const from the ctxt argument.
36142         (USE_HEURISTIC): Undefine at the end.
36143
36144 2007-08-18  Jim Meyering  <jim@meyering.net>
36145
36146         New file: lib/idcache.h
36147         * NEWS: Mention the addition.
36148         * modules/idcache (Files): Add lib/idcache.h
36149         * lib/idcache.c: Include "idcache.h".
36150         Don't include <sys/types.h>.
36151         Add a FIXME comment.
36152         Move file-scoped "static" declarations to the top.
36153         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
36154
36155 2007-08-17  Bruno Haible  <bruno@clisp.org>
36156         and Paul Eggert  <eggert@cs.ucla.edu>
36157
36158         * MODULES.html.sh: Add diffseq.
36159         * modules/diffseq: New file.
36160         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
36161         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
36162
36163 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
36164
36165         Import changes from coreutils for bootstrap script.
36166
36167         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
36168
36169         * build-aux/bootstrap (slurp): Work even in environments where
36170         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
36171         current code does not slurp files whose names start with ".", and
36172         this looks like it might be a troublesome area.
36173
36174         2007-07-11  Jim Meyering  <jim@meyering.net>
36175
36176         If there's a GPL vN copyright comment, require that N == 3.
36177
36178         2007-07-08  Jim Meyering  <jim@meyering.net>
36179
36180         Run the coreutils-specific code only if tests/Makefile.am.in exists.
36181         * build-aux/bootstrap (mam_template): Move definition out of loop.
36182
36183         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
36184
36185         * build-aux/bootstrap (symlink_to_dir): Rename function from
36186         symlink_to_gnulib.  Add a directory parameter.  Update all
36187         callers.
36188         (cp_mark_as_generated): Also check for -- and link to -- files in
36189         gl/.
36190
36191         2007-07-08  Jim Meyering  <jim@meyering.net>
36192
36193         Adapt to deeper hierarchy in gnulib.
36194         * build-aux/bootstrap (symlink_to_dir): If the destination
36195         directory doesn't exist, create it. This is required at least for
36196         "lib/uniwidth/cjk.h".
36197
36198         2007-05-15  Jim Meyering  <jim@meyering.net>
36199
36200         * build-aux/bootstrap: Now that generated Makefile.am files
36201         are no longer under version control, they must be created at
36202         bootstrap time.
36203
36204 2007-08-14  Ben Pfaff  <blp@gnu.org>
36205
36206         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
36207
36208 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
36209
36210         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
36211         given the changes below.
36212         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
36213         even on hosts that have padding bits beyond the supported 64.
36214
36215 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
36216
36217         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
36218         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
36219         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
36220         depends on it.
36221         (xstrtol_error): Remove.
36222         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
36223         but with a different signature.
36224         (ATTRIBUTE_NORETURN, __attribute__): New macros.
36225         * lib/xstrtol-error.c: Include exitfail.h.
36226         (xstrtol_fatal): New function, with a different signature from the
36227         old xstrtol_error, so that the caller need not worry about passing
36228         in an exit status, or about storage management of the option argument.
36229         (xstrtol_error): Now a static function.  Redo signature to
36230         implement xstrtol_fatal.  Output the correct number of hyphens in
36231         front of the option so that the caller need not worry about
36232         storage management.
36233         (N_): New macro.
36234         (_): Remove; not used now.
36235         * modules/xstrtol: Depend on getopt.
36236         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
36237         of old STRTOL_FATAL_ERROR macro.
36238         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
36239         of test program.
36240         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
36241         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
36242
36243 2007-08-08  Eric Blake  <ebb9@byu.net>
36244
36245         * lib/xstrtol-error.c: Add missing include.
36246
36247         Move xstrtol messages into gnulib domain, when --pobase is used.
36248         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
36249         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
36250         * modules/xstrtol (Files): Distribute new file.
36251         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
36252         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
36253         * tests/test-xstrtol.c: ...into new file.
36254         * tests/test-xstrtoul.c: Also test xstrtoul.
36255         * tests/test-xstrtoimax.c: Also test xstrtoimax.
36256         * tests/test-xstrtoumax.c: Also test xstrtoumax.
36257         * tests/test-xstrtol.sh: Drive the tests.
36258         * tests/test-xstrtoimax.sh: Likewise.
36259         * tests/test-xstrtoumax.sh: Likewise.
36260         * modules/xstrtol-tests: New module.
36261         * modules/xstrtoimax-tests: Likewise.
36262         * modules/xstrtoumax-tests: Likewise.
36263
36264 2007-08-08  Jim Meyering  <jim@meyering.net>
36265
36266         New function: mfile_name_concat.
36267         * lib/filenamecat.c (mfile_name_concat): New function, just like
36268         file_name_concat, but return NULL upon failure rather than exiting
36269         with a diagnostic.
36270         * lib/filenamecat.h: Declare it.
36271
36272 2007-08-07  Bruno Haible  <bruno@clisp.org>
36273
36274         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
36275         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
36276         warning from gcc.
36277         Reported by Eric Blake.
36278
36279 2007-08-07  Simon Josefsson  <simon@josefsson.org>
36280
36281         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
36282         * modules/crypto/arcfour (License): Likewise.
36283         * modules/crypto/des-tests (License): Likewise.
36284         * modules/crypto/gc-arctwo-tests (License): Likewise.
36285         * modules/crypto/gc-des-tests (License): Likewise.
36286         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
36287         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
36288         * modules/crypto/gc-md2-tests (License): Likewise.
36289         * modules/crypto/gc-md4-tests (License): Likewise.
36290         * modules/crypto/gc-md5-tests (License): Likewise.
36291         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
36292         * modules/crypto/gc-rijndael-tests (License): Likewise.
36293         * modules/crypto/gc-sha1-tests (License): Likewise.
36294         * modules/crypto/gc-tests (License): Likewise.
36295         * modules/crypto/hmac-md5 (License): Likewise.
36296         * modules/crypto/hmac-sha1 (License): Likewise.
36297         * modules/crypto/md2-tests (License): Likewise.
36298         * modules/crypto/md4-tests (License): Likewise.
36299         * modules/crypto/md5 (License): Likewise.
36300         * modules/crypto/rijndael (License): Likewise.
36301         * modules/crypto/sha1 (License): Likewise.
36302         * modules/memxor (License): Likewise.
36303
36304 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
36305         and Bruno Haible  <bruno@clisp.org>
36306
36307         * NEWS: Describe interface changes to human, xstrtol.
36308         * lib/human.h: Include <xstrtol.h>.
36309         (human_options): Return enum strtol_error, not int.  Remove
36310         bool arg; take int * instead.
36311         * lib/human.c: Don't include "gettext.h".
36312         (_): Remove; no longer used.
36313         Don't include <xstrtol.h>, since human.h does it.
36314         (human_options): Adjust to abovementioned interface changes.
36315         Do not report error to stderr; that's now the caller's
36316         responsibility.
36317         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
36318         interface change.
36319         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
36320         Str, Argument_type_string.  All uses changed.  Put " argument"
36321         in diagnostics to make them clearer.  Change wording of suffix
36322         message for clarity.
36323         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
36324         Argument_type_string.
36325         (STRTOL_FATAL_WARN): Remove; no longer used.
36326         * modules/human (Depends-on): Remove gettext-h.
36327
36328 2007-08-06  Simon Josefsson  <simon@josefsson.org>
36329
36330         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
36331
36332 2007-07-31  Bruno Haible  <bruno@clisp.org>
36333
36334         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
36335         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
36336         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
36337
36338 2007-07-31  Bruno Haible  <bruno@clisp.org>
36339
36340         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
36341         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
36342
36343 2007-07-30  Bruno Haible  <bruno@clisp.org>
36344
36345         * modules/base64 (License): Use the synonymous term "LGPLv2+".
36346         * modules/c-ctype (License): Likewise.
36347         * modules/c-strcase (License): Likewise.
36348         * modules/check-version (License): Likewise.
36349         * modules/iconv (License): Likewise.
36350         * modules/iconv_open (License): Likewise.
36351         * modules/read-file (License): Likewise.
36352         * modules/striconv (License): Likewise.
36353         * modules/strverscmp (License): Likewise.
36354         * modules/vasprintf (License): Likewise.
36355         * modules/crypto/des (License): Likewise.
36356         * modules/crypto/gc (License): Likewise.
36357         * modules/crypto/gc-arcfour (License): Likewise.
36358         * modules/crypto/gc-arctwo (License): Likewise.
36359         * modules/crypto/gc-des (License): Likewise.
36360         * modules/crypto/gc-hmac-md5 (License): Likewise.
36361         * modules/crypto/gc-hmac-sha1 (License): Likewise.
36362         * modules/crypto/gc-md2 (License): Likewise.
36363         * modules/crypto/gc-md4 (License): Likewise.
36364         * modules/crypto/gc-md5 (License): Likewise.
36365         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
36366         * modules/crypto/gc-random (License): Likewise.
36367         * modules/crypto/gc-rijndael (License): Likewise.
36368         * modules/crypto/gc-sha1 (License): Likewise.
36369         * modules/crypto/md2 (License): Likewise.
36370         * modules/crypto/md4 (License): Likewise.
36371
36372 2007-07-30  Jim Meyering  <jim@meyering.net>
36373
36374         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
36375         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
36376         it has valid stat data.  This bug would cause du not to count the
36377         sizes of inaccessible directories.
36378         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
36379         in <http://bugzilla.redhat.com/250077>.
36380
36381 2007-07-25  Peter O'Gorman  <peter@pogma.com>
36382             Bruno Haible  <bruno@clisp.org>
36383
36384         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
36385         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
36386         #include_next, gives a diagnostic about it, but reports no error in
36387         the exit code.
36388         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
36389
36390 2007-07-24  Ben Pfaff  <blp@gnu.org>
36391
36392         Improve name: "count-one-bits" is better than "popcount".
36393         * MODULES.html.sh: Update name.
36394         * lib/popcount.h: Renamed lib/count-one-bits.h.
36395         (popcount): Renamed count_one_bits.
36396         (popcountl): Renamed count_one_bits_l.
36397         (popcountll): Renamed count_one_bits_ll.
36398         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
36399         * modules/popcount: Renamed module/count-one-bits.
36400         * modules/popcount-tests: Renamed module/count-one-bits-tests.
36401         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
36402
36403 2007-07-23  Ben Pfaff  <blp@gnu.org>
36404
36405         * lib/popcount.h (popcount32): Reduce size of constants, to allow
36406         better code generation, and add U to large constants to avoid
36407         warnings, in non-GCC case.
36408         Suggested by Bruno Haible.
36409
36410 2007-07-23  Ben Pfaff  <blp@gnu.org>
36411
36412         * lib/popcount.h: Use verify_true instead of if...abort.
36413         * modules/popcount: Depend on verify module.
36414         Suggested by Jim Meyering.
36415
36416 2007-07-23  Bruno Haible  <bruno@clisp.org>
36417
36418         * gnulib-tool (func_import): Create a .cvsignore file also when the
36419         directory is not yet in CVS but the toplevel directory is. When
36420         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
36421         Reported by Karl Berry.
36422
36423 2007-07-22  Ben Pfaff  <blp@gnu.org>
36424
36425         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
36426         case.
36427         Suggested by Eric Blake.
36428
36429 2007-07-22  Ben Pfaff  <blp@gnu.org>
36430
36431         New module: popcount.
36432         * MODULES.html.sh: Add popcount.
36433         * modules/popcount: New file.
36434         * modules/popcount-tests: New file.
36435         * tests/test-popcount.c: New file.
36436         * lib/popcount.h: New file.
36437         * m4/popcount.m4: New file.
36438
36439 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
36440
36441         * build-aux/announce-gen: Update to GPLv3.
36442
36443         * build-aux/config.guess: Update from config.
36444
36445 2007-07-21  Bruno Haible  <bruno@clisp.org>
36446
36447         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
36448         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
36449
36450 2007-07-20  Jim Meyering  <jim@meyering.net>
36451
36452         * check-module: Diagnose a self-dependency.
36453
36454 2007-07-19  Bruno Haible  <bruno@clisp.org>
36455
36456         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
36457         empty.
36458         Reported by Eric Blake.
36459
36460 2007-07-18  Bruno Haible  <bruno@clisp.org>
36461
36462         * gnulib-tool: New options --po-base, --po-domain.
36463         (func_usage): Document them.
36464         (pobase, po_domain): New variables.
36465         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
36466         DEFAULT_TEXT_DOMAIN.
36467         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
36468         (func_import): Consider pobase and po_domain. Create a po/ directory.
36469         (func_create_testdir): Set pobase and po_domain to empty.
36470         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
36471         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
36472
36473 2007-07-18  Bruno Haible  <bruno@clisp.org>
36474
36475         * gnulib-tool (func_get_automake_snippet): Synthesize also an
36476         EXTRA_DIST augmentation for files in build-aux/.
36477
36478 2007-07-16  Bruno Haible  <bruno@clisp.org>
36479
36480         * modules/lseek (License): Use the synonymous term "LGPLv2+".
36481         * modules/getdelim (License): Likewise.
36482
36483 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36484
36485         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
36486         * modules/d-type (License): Likewise.
36487         * modules/extensions (License): Likewise.
36488         * modules/fnmatch (License): Likewise.
36489         * modules/fseeko (License): Likewise.
36490         * modules/getaddrinfo (License): Likewise.
36491         * modules/getline (License): Likewise.
36492         * modules/getlogin_r (License): Likewise.
36493         * modules/getpass (License): Likewise.
36494         * modules/gettimeofday (License): Likewise.
36495         * modules/glob (License): Likewise.
36496         * modules/inet_ntop (License): Likewise.
36497         * modules/malloc (License): Likewise.
36498         * modules/malloca (License): Likewise.
36499         * modules/memmem (License): Likewise.
36500         * modules/mempcpy (License): Likewise.
36501         * modules/memset (License): Likewise.
36502         * modules/minmax (License): Likewise.
36503         * modules/mktime (License): Likewise.
36504         * modules/netinet_in (License): Likewise.
36505         * modules/pathmax (License): Likewise.
36506         * modules/poll (License): Likewise.
36507         * modules/regex (License): Likewise.
36508         * modules/snprintf (License): Likewise.
36509         * modules/stdbool (License): Likewise.
36510         * modules/stdint (License): Likewise.
36511         * modules/stdio (License): Likewise.
36512         * modules/strcase (License): Likewise.
36513         * modules/strcasestr (License): Likewise.
36514         * modules/strdup (License): Likewise.
36515         * modules/string (License): Likewise.
36516         * modules/strndup (License): Likewise.
36517         * modules/strnlen (License): Likewise.
36518         * modules/strpbrk (License): Likewise.
36519         * modules/strptime (License): Likewise.
36520         * modules/strsep (License): Likewise.
36521         * modules/sys_select (License): Likewise.
36522         * modules/sys_socket (License): Likewise.
36523         * modules/sys_stat (License): Likewise.
36524         * modules/sys_time (License): Likewise.
36525         * modules/time (License): Likewise.
36526         * modules/time_r (License): Likewise.
36527         * modules/timegm (License): Likewise.
36528         * modules/unistd (License): Likewise.
36529         * modules/vsnprintf (License): Likewise.
36530         * modules/wctype (License): Likewise.
36531
36532 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36533
36534         * modules/argz (License): LGPLv2+.
36535
36536 2007-07-15  Karl Berry  <karl@gnu.org>
36537
36538         * doc/gnulib.texi: revise node structure per new fdl.texi.
36539
36540 2007-07-14  Bruno Haible  <bruno@clisp.org>
36541
36542         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
36543         the output file.
36544         * lib/uniname/uninames.h: Regenerated.
36545
36546 2007-07-14  Karl Berry  <karl@gnu.org>
36547
36548         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
36549         omitting sectioning and index commands.
36550
36551 2007-07-13  Bruno Haible  <bruno@clisp.org>
36552
36553         New gnulib-tool option --more-symlinks.
36554         * gnulib-tool (func_usage): Document --more-symlinks.
36555         (do_copyrights): New variable.
36556         Recognize option --more-symlinks.
36557         (func_import): Don't add a copyright notice transform to
36558         sed_transform_lib_file if do_copyrights is empty.
36559
36560 2007-07-13  Bruno Haible  <bruno@clisp.org>
36561
36562         * lib/vasnprintf.c (decimal_point_char): Define also if
36563         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
36564         && !NEED_PRINTF_DIRECTIVE_A.
36565         Reported by Clemens Koller <clemens.koller@anagramm.de> via
36566         Gary V. Vaughan <gary@gnu.org>.
36567
36568 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
36569
36570         * lib/inttypes_.h: Undo previous change, since it was fixed
36571         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
36572
36573 2007-07-13  Bruno Haible  <bruno@clisp.org>
36574
36575         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
36576         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
36577
36578 2007-07-13  Jim Meyering  <jim@meyering.net>
36579
36580         df: Don't fail for Tru64's "file-on-file mount".
36581         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
36582         so we fall through and use statfs instead.  Details here:
36583         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
36584         Reported by Albert Chin.
36585
36586 2007-07-13  Bruno Haible  <bruno@clisp.org>
36587
36588         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
36589         * modules/configmake (License): Likewise.
36590         * modules/gettext (License): Likewise.
36591         * modules/gettext-h (License): Likewise.
36592         * modules/include_next (License): Likewise.
36593         * modules/link-warning (License): Likewise.
36594         * modules/localcharset (License): Likewise.
36595         * modules/localename (License): Likewise.
36596         * modules/lock (License): Likewise.
36597         * modules/relocatable-lib-lgpl (License): Likewise.
36598         * modules/size_max (License): Likewise.
36599         * modules/vasnprintf (License): Likewise.
36600         * modules/wchar (License): Likewise.
36601         * modules/xsize (License): Likewise.
36602
36603 2007-07-13  Bruno Haible  <bruno@clisp.org>
36604
36605         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
36606         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
36607
36608 2007-07-12  Bruno Haible  <bruno@clisp.org>
36609
36610         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
36611         in the modules files.
36612
36613 2007-07-11  Karl Berry  <karl@gnu.org>
36614
36615         * MODULES.html.sh (func_module): use
36616          sed -e '\|^'"${includefile}"'$|d'
36617          instead of /.../d, to avoid errors on $includefile's containing /.
36618
36619 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
36620
36621         * gnulib-tool (func_import): Avoid duplication of --avoid
36622         statements
36623         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
36624         names to `_' in variable names.
36625
36626 2007-07-10  Eric Blake  <ebb9@byu.net>
36627
36628         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
36629         * NEWS: Document this change.
36630
36631 2007-07-08  Bruno Haible  <bruno@clisp.org>
36632
36633         Update to Unicode 5.0.
36634         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
36635         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
36636         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
36637         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
36638         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
36639         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
36640         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
36641         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
36642         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
36643         U+10A3F, U+1D242..U+1D244.
36644         (nonspacing_table_ind): Update.
36645         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
36646         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
36647
36648 2007-07-08  Bruno Haible  <bruno@clisp.org>
36649
36650         Update to Unicode 5.0.
36651         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
36652         code transform. Extend the name index field of unicode_name_to_code and
36653         unicode_code_to_name from 16 to 24 bits.
36654         * lib/uniname/uniname.c (unicode_character_name,
36655         unicode_name_character): Add the range 0x12xxx to the code transform.
36656         * lib/uniname/uninames.h: Regenerated.
36657         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
36658
36659 2007-07-07  Bruno Haible  <bruno@clisp.org>
36660
36661         * modules/wcwidth-tests: New file.
36662         * tests/test-wcwidth.c: New file.
36663
36664         Work around MacOS X wcwidth() bug.
36665         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
36666         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
36667         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
36668         original wcwidth in non-UTF-8 locales.
36669         * modules/wcwidth (Depends-on): Add localcharset, streq,
36670         uniwidth/width.
36671         * doc/functions/wcwidth.texi: Update.
36672
36673 2007-07-07  Bruno Haible  <bruno@clisp.org>
36674
36675         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
36676         (wcwidth): New declaration.
36677         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
36678         macros.
36679         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
36680         here. Prepare for creating <wchar.h> unconditionally.
36681         * modules/wchar (Depends-on): Add link-warning.
36682         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
36683         REPLACE_WCWIDTH, and GL_LINK_WARNING.
36684         * lib/wcwidth.h: Remove file.
36685         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
36686         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
36687         * modules/wcwidth (Files): Remove lib/wcwidth.h.
36688         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
36689         (Include): Replace wcwidth.h with <wchar.h>.
36690         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
36691         * lib/mbchar.h: Don't include wcwidth.h.
36692         * lib/mbswidth.c: Likewise.
36693         * NEWS: Mention the change.
36694
36695 2007-07-07  Bruno Haible  <bruno@clisp.org>
36696
36697         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
36698         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
36699         definition with an external declaration.
36700         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
36701         defined as a function. Remove AC_C_INLINE requirement.
36702         * modules/wcwidth (Files): Add lib/wcwidth.c.
36703         (Makefile.am): Remove redundant statement.
36704
36705 2007-07-07  Bruno Haible  <bruno@clisp.org>
36706
36707         * MODULES.html.sh (Unicode string functions): Add the new modules.
36708
36709         * tests/uniwidth/test-u32-strwidth.c: New file.
36710         * modules/uniwidth/u32-strwidth-tests: New file.
36711
36712         * lib/uniwidth/u32-strwidth.c: New file.
36713         * modules/uniwidth/u32-strwidth: New file.
36714
36715         * tests/uniwidth/test-u16-strwidth.c: New file.
36716         * modules/uniwidth/u16-strwidth-tests: New file.
36717
36718         * lib/uniwidth/u16-strwidth.c: New file.
36719         * modules/uniwidth/u16-strwidth: New file.
36720
36721         * tests/uniwidth/test-u8-strwidth.c: New file.
36722         * modules/uniwidth/u8-strwidth-tests: New file.
36723
36724         * lib/uniwidth/u8-strwidth.c: New file.
36725         * modules/uniwidth/u8-strwidth: New file.
36726
36727         * tests/uniwidth/test-u32-width.c: New file.
36728         * modules/uniwidth/u32-width-tests: New file.
36729
36730         * lib/uniwidth/u32-width.c: New file.
36731         * modules/uniwidth/u32-width: New file.
36732
36733         * tests/uniwidth/test-u16-width.c: New file.
36734         * modules/uniwidth/u16-width-tests: New file.
36735
36736         * lib/uniwidth/u16-width.c: New file.
36737         * modules/uniwidth/u16-width: New file.
36738
36739         * tests/uniwidth/test-u8-width.c: New file.
36740         * modules/uniwidth/u8-width-tests: New file.
36741
36742         * lib/uniwidth/u8-width.c: New file.
36743         * modules/uniwidth/u8-width: New file.
36744
36745         * tests/uniwidth/test-uc_width.c: New file.
36746         * modules/uniwidth/width-tests: New file.
36747
36748         * lib/uniwidth/width.c: New file, from GNU libiconv.
36749         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
36750         * modules/uniwidth/width: New file.
36751
36752         * lib/uniwidth.h: New file, from GNU libiconv.
36753         * modules/uniwidth/base: New file.
36754
36755 2007-07-07  Bruno Haible  <bruno@clisp.org>
36756
36757         * lib/uniname.h: New file, from GNU gettext.
36758         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
36759         * lib/uniname/uninames.h: New file, from GNU gettext.
36760         * lib/uniname/uniname.c: New file, from GNU gettext.
36761         * tests/uniname/test-uninames.sh: New file.
36762         * tests/uniname/test-uninames.c: New file, from GNU gettext.
36763         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
36764         * modules/uniname/base: New file.
36765         * modules/uniname/uniname: New file.
36766         * modules/uniname/uniname-tests: New file.
36767         * MODULES.html.sh (Unicode string functions): Add the new modules.
36768
36769 2007-07-06  Bruno Haible  <bruno@clisp.org>
36770
36771         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
36772
36773 2007-07-06  Bruno Haible  <bruno@clisp.org>
36774
36775         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
36776         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
36777         includes <cygwin/sys_time.h> which includes <sys/select.h> which
36778         include <sys/time.h>.
36779         Reported by Eric Blake.
36780
36781 2007-07-06  Eric Blake  <ebb9@byu.net>
36782
36783         Fix testing canonicalize on cygwin.
36784         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
36785         Revert patch from 2007-06-19.
36786         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
36787         canonicalize module is also in use.
36788         * tests/test-canonicalize.c: New file.
36789         * tests/test-canonicalize.sh: Likewise.
36790         * modules/canonicalize-tests: Likewise.
36791
36792 2007-07-06  Jim Meyering  <jim@meyering.net>
36793
36794         * lib/getugroups.c (getugroups): Detect getgrent failure.
36795         Adjust comment to reflect reality: this function may return -1.
36796
36797 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
36798
36799         * build-aux/bootstrap (TP_URL,get_translations): Update to use
36800         the new TP address.
36801         (usage): Fix typo
36802         (gnulib_mk): New variable.
36803
36804 2007-07-05  Jim Meyering  <jim@meyering.net>
36805
36806         Don't let endgrent clobber errno, no matter how improbable.
36807         * lib/getugroups.c (getugroups): Save and restore errno around
36808         endgrent call.
36809
36810         Close the group DB even when failing with 2^31 or more members.
36811         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
36812
36813 2007-07-04  Jim Meyering  <jim@meyering.net>
36814
36815         * lib/getugroups.h: New file.
36816         * lib/getugroups.c: Include "getugroups.h".
36817         Remove uses of "register" keyword.
36818         Move local variable, "cp", down into scope where used.
36819         Give "username" parameter the "const" attribute.
36820         * modules/getugroups (Files): Add lib/getugroups.h
36821
36822 2007-07-04  Karl Berry  <karl@gnu.org>
36823
36824         * MODULES.html.sh (func_all_modules): Complete rename of
36825         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
36826
36827 2007-07-02  Bruno Haible  <bruno@clisp.org>
36828
36829         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
36830         mode, when inttypes.h comes from gnulib.
36831         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
36832
36833 2007-07-02  Simon Josefsson  <simon@josefsson.org>
36834
36835         * NEWS: Mention lgpl module name change.
36836
36837         * modules/lgpl-2.1: Renamed from lgpl.
36838
36839         * NEWS: Mention gpl module name change.
36840
36841         * modules/gpl-3.0: New file, based on gpl-2.0.
36842
36843         * modules/gpl-2.0: Renamed from gpl.
36844
36845         * modules/gpl: Fix filename, doc/gpl.texi is now found at
36846         doc/gpl-2.0.texi.
36847
36848 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
36849
36850         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
36851         #define __STDC_LIMIT_MACROS temporarily while including
36852         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
36853         Problem reported by Joel E. Denny in
36854         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
36855
36856 2007-07-01  Bruno Haible  <bruno@clisp.org>
36857
36858         * lib/unistdio.h: New file.
36859         * lib/unistdio/u-asnprintf.h: New file.
36860         * lib/unistdio/u-asprintf.h: New file.
36861         * lib/unistdio/u-printf-args.c: New file.
36862         * lib/unistdio/u-printf-args.h: New file.
36863         * lib/unistdio/u-printf-parse.h: New file.
36864         * lib/unistdio/u-snprintf.h: New file.
36865         * lib/unistdio/u-sprintf.h: New file.
36866         * lib/unistdio/u-vasprintf.h: New file.
36867         * lib/unistdio/u-vsnprintf.h: New file.
36868         * lib/unistdio/u-vsprintf.h: New file.
36869         * lib/unistdio/ulc-asnprintf.c: New file.
36870         * lib/unistdio/ulc-asprintf.c: New file.
36871         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
36872         * lib/unistdio/ulc-printf-parse.c: New file.
36873         * lib/unistdio/ulc-snprintf.c: New file.
36874         * lib/unistdio/ulc-sprintf.c: New file.
36875         * lib/unistdio/ulc-vasnprintf.c: New file.
36876         * lib/unistdio/ulc-vasprintf.c: New file.
36877         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
36878         * lib/unistdio/ulc-vsnprintf.c: New file.
36879         * lib/unistdio/ulc-vsprintf.c: New file.
36880         * lib/unistdio/u8-asnprintf.c: New file.
36881         * lib/unistdio/u8-asprintf.c: New file.
36882         * lib/unistdio/u8-printf-parse.c: New file.
36883         * lib/unistdio/u8-snprintf.c: New file.
36884         * lib/unistdio/u8-sprintf.c: New file.
36885         * lib/unistdio/u8-vasnprintf.c: New file.
36886         * lib/unistdio/u8-vasprintf.c: New file.
36887         * lib/unistdio/u8-vsnprintf.c: New file.
36888         * lib/unistdio/u8-vsprintf.c: New file.
36889         * lib/unistdio/u8-u8-asnprintf.c: New file.
36890         * lib/unistdio/u8-u8-asprintf.c: New file.
36891         * lib/unistdio/u8-u8-snprintf.c: New file.
36892         * lib/unistdio/u8-u8-sprintf.c: New file.
36893         * lib/unistdio/u8-u8-vasnprintf.c: New file.
36894         * lib/unistdio/u8-u8-vasprintf.c: New file.
36895         * lib/unistdio/u8-u8-vsnprintf.c: New file.
36896         * lib/unistdio/u8-u8-vsprintf.c: New file.
36897         * lib/unistdio/u16-asnprintf.c: New file.
36898         * lib/unistdio/u16-asprintf.c: New file.
36899         * lib/unistdio/u16-printf-parse.c: New file.
36900         * lib/unistdio/u16-snprintf.c: New file.
36901         * lib/unistdio/u16-sprintf.c: New file.
36902         * lib/unistdio/u16-vasnprintf.c: New file.
36903         * lib/unistdio/u16-vasprintf.c: New file.
36904         * lib/unistdio/u16-vsnprintf.c: New file.
36905         * lib/unistdio/u16-vsprintf.c: New file.
36906         * lib/unistdio/u16-u16-asnprintf.c: New file.
36907         * lib/unistdio/u16-u16-asprintf.c: New file.
36908         * lib/unistdio/u16-u16-snprintf.c: New file.
36909         * lib/unistdio/u16-u16-sprintf.c: New file.
36910         * lib/unistdio/u16-u16-vasnprintf.c: New file.
36911         * lib/unistdio/u16-u16-vasprintf.c: New file.
36912         * lib/unistdio/u16-u16-vsnprintf.c: New file.
36913         * lib/unistdio/u16-u16-vsprintf.c: New file.
36914         * lib/unistdio/u32-asnprintf.c: New file.
36915         * lib/unistdio/u32-asprintf.c: New file.
36916         * lib/unistdio/u32-printf-parse.c: New file.
36917         * lib/unistdio/u32-snprintf.c: New file.
36918         * lib/unistdio/u32-sprintf.c: New file.
36919         * lib/unistdio/u32-vasnprintf.c: New file.
36920         * lib/unistdio/u32-vasprintf.c: New file.
36921         * lib/unistdio/u32-vsnprintf.c: New file.
36922         * lib/unistdio/u32-vsprintf.c: New file.
36923         * lib/unistdio/u32-u32-asnprintf.c: New file.
36924         * lib/unistdio/u32-u32-asprintf.c: New file.
36925         * lib/unistdio/u32-u32-snprintf.c: New file.
36926         * lib/unistdio/u32-u32-sprintf.c: New file.
36927         * lib/unistdio/u32-u32-vasnprintf.c: New file.
36928         * lib/unistdio/u32-u32-vasprintf.c: New file.
36929         * lib/unistdio/u32-u32-vsnprintf.c: New file.
36930         * lib/unistdio/u32-u32-vsprintf.c: New file.
36931         * tests/unistdio/test-ulc-asnprintf1.c: New file.
36932         * tests/unistdio/test-ulc-asnprintf1.h: New file.
36933         * tests/unistdio/test-ulc-printf1.h: New file.
36934         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
36935         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
36936         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
36937         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
36938         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
36939         * tests/unistdio/test-ulc-vasprintf1.c: New file.
36940         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
36941         * tests/unistdio/test-ulc-vsprintf1.c: New file.
36942         * tests/unistdio/test-u8-asnprintf1.c: New file.
36943         * tests/unistdio/test-u8-asnprintf1.h: New file.
36944         * tests/unistdio/test-u8-printf1.h: New file.
36945         * tests/unistdio/test-u8-vasnprintf1.c: New file.
36946         * tests/unistdio/test-u8-vasnprintf2.c: New file.
36947         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
36948         * tests/unistdio/test-u8-vasnprintf3.c: New file.
36949         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
36950         * tests/unistdio/test-u8-vasprintf1.c: New file.
36951         * tests/unistdio/test-u8-vsnprintf1.c: New file.
36952         * tests/unistdio/test-u8-vsprintf1.c: New file.
36953         * tests/unistdio/test-u16-asnprintf1.c: New file.
36954         * tests/unistdio/test-u16-asnprintf1.h: New file.
36955         * tests/unistdio/test-u16-printf1.h: New file.
36956         * tests/unistdio/test-u16-vasnprintf1.c: New file.
36957         * tests/unistdio/test-u16-vasnprintf2.c: New file.
36958         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
36959         * tests/unistdio/test-u16-vasnprintf3.c: New file.
36960         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
36961         * tests/unistdio/test-u16-vasprintf1.c: New file.
36962         * tests/unistdio/test-u16-vsnprintf1.c: New file.
36963         * tests/unistdio/test-u16-vsprintf1.c: New file.
36964         * tests/unistdio/test-u32-asnprintf1.c: New file.
36965         * tests/unistdio/test-u32-asnprintf1.h: New file.
36966         * tests/unistdio/test-u32-printf1.h: New file.
36967         * tests/unistdio/test-u32-vasnprintf1.c: New file.
36968         * tests/unistdio/test-u32-vasnprintf2.c: New file.
36969         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
36970         * tests/unistdio/test-u32-vasnprintf3.c: New file.
36971         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
36972         * tests/unistdio/test-u32-vasprintf1.c: New file.
36973         * tests/unistdio/test-u32-vsnprintf1.c: New file.
36974         * tests/unistdio/test-u32-vsprintf1.c: New file.
36975         * modules/unistdio/base: New file.
36976         * modules/unistdio/u-printf-args: New file.
36977         * modules/unistdio/ulc-asnprintf: New file.
36978         * modules/unistdio/ulc-asprintf: New file.
36979         * modules/unistdio/ulc-fprintf: New file.
36980         * modules/unistdio/ulc-printf-parse: New file.
36981         * modules/unistdio/ulc-snprintf: New file.
36982         * modules/unistdio/ulc-sprintf: New file.
36983         * modules/unistdio/ulc-vasnprintf: New file.
36984         * modules/unistdio/ulc-vasprintf: New file.
36985         * modules/unistdio/ulc-vfprintf: New file.
36986         * modules/unistdio/ulc-vsnprintf: New file.
36987         * modules/unistdio/ulc-vsprintf: New file.
36988         * modules/unistdio/u8-asnprintf: New file.
36989         * modules/unistdio/u8-asprintf: New file.
36990         * modules/unistdio/u8-printf-parse: New file.
36991         * modules/unistdio/u8-snprintf: New file.
36992         * modules/unistdio/u8-sprintf: New file.
36993         * modules/unistdio/u8-vasnprintf: New file.
36994         * modules/unistdio/u8-vasprintf: New file.
36995         * modules/unistdio/u8-vsnprintf: New file.
36996         * modules/unistdio/u8-vsprintf: New file.
36997         * modules/unistdio/u8-u8-asnprintf: New file.
36998         * modules/unistdio/u8-u8-asprintf: New file.
36999         * modules/unistdio/u8-u8-snprintf: New file.
37000         * modules/unistdio/u8-u8-sprintf: New file.
37001         * modules/unistdio/u8-u8-vasnprintf: New file.
37002         * modules/unistdio/u8-u8-vasprintf: New file.
37003         * modules/unistdio/u8-u8-vsnprintf: New file.
37004         * modules/unistdio/u8-u8-vsprintf: New file.
37005         * modules/unistdio/u16-asnprintf: New file.
37006         * modules/unistdio/u16-asprintf: New file.
37007         * modules/unistdio/u16-printf-parse: New file.
37008         * modules/unistdio/u16-snprintf: New file.
37009         * modules/unistdio/u16-sprintf: New file.
37010         * modules/unistdio/u16-vasnprintf: New file.
37011         * modules/unistdio/u16-vasprintf: New file.
37012         * modules/unistdio/u16-vsnprintf: New file.
37013         * modules/unistdio/u16-vsprintf: New file.
37014         * modules/unistdio/u16-u16-asnprintf: New file.
37015         * modules/unistdio/u16-u16-asprintf: New file.
37016         * modules/unistdio/u16-u16-snprintf: New file.
37017         * modules/unistdio/u16-u16-sprintf: New file.
37018         * modules/unistdio/u16-u16-vasnprintf: New file.
37019         * modules/unistdio/u16-u16-vasprintf: New file.
37020         * modules/unistdio/u16-u16-vsnprintf: New file.
37021         * modules/unistdio/u16-u16-vsprintf: New file.
37022         * modules/unistdio/u32-asnprintf: New file.
37023         * modules/unistdio/u32-asprintf: New file.
37024         * modules/unistdio/u32-printf-parse: New file.
37025         * modules/unistdio/u32-snprintf: New file.
37026         * modules/unistdio/u32-sprintf: New file.
37027         * modules/unistdio/u32-vasnprintf: New file.
37028         * modules/unistdio/u32-vasprintf: New file.
37029         * modules/unistdio/u32-vsnprintf: New file.
37030         * modules/unistdio/u32-vsprintf: New file.
37031         * modules/unistdio/u32-u32-asnprintf: New file.
37032         * modules/unistdio/u32-u32-asprintf: New file.
37033         * modules/unistdio/u32-u32-snprintf: New file.
37034         * modules/unistdio/u32-u32-sprintf: New file.
37035         * modules/unistdio/u32-u32-vasnprintf: New file.
37036         * modules/unistdio/u32-u32-vasprintf: New file.
37037         * modules/unistdio/u32-u32-vsnprintf: New file.
37038         * modules/unistdio/u32-u32-vsprintf: New file.
37039         * modules/unistdio/ulc-asnprintf-tests: New file.
37040         * modules/unistdio/ulc-vasnprintf-tests: New file.
37041         * modules/unistdio/ulc-vasprintf-tests: New file.
37042         * modules/unistdio/ulc-vsnprintf-tests: New file.
37043         * modules/unistdio/ulc-vsprintf-tests: New file.
37044         * modules/unistdio/u8-asnprintf-tests: New file.
37045         * modules/unistdio/u8-vasnprintf-tests: New file.
37046         * modules/unistdio/u8-vasprintf-tests: New file.
37047         * modules/unistdio/u8-vsnprintf-tests: New file.
37048         * modules/unistdio/u8-vsprintf-tests: New file.
37049         * modules/unistdio/u16-asnprintf-tests: New file.
37050         * modules/unistdio/u16-vasnprintf-tests: New file.
37051         * modules/unistdio/u16-vasprintf-tests: New file.
37052         * modules/unistdio/u16-vsnprintf-tests: New file.
37053         * modules/unistdio/u16-vsprintf-tests: New file.
37054         * modules/unistdio/u32-asnprintf-tests: New file.
37055         * modules/unistdio/u32-vasnprintf-tests: New file.
37056         * modules/unistdio/u32-vasprintf-tests: New file.
37057         * modules/unistdio/u32-vsnprintf-tests: New file.
37058         * modules/unistdio/u32-vsprintf-tests: New file.
37059         * MODULES.html.sh (Unicode string functions): Add the new modules.
37060
37061 2007-07-01  Bruno Haible  <bruno@clisp.org>
37062
37063         * lib/sprintf.c (sprintf): Limit the available length estimation,
37064         to avoid address wraparound.
37065         * lib/vsprintf.c (vsprintf): Likewise.
37066         * modules/sprintf-posix (Dependencies): Add stdint.
37067         * modules/vsprintf-posix (Dependencies): Likewise.
37068
37069 2007-07-01  Bruno Haible  <bruno@clisp.org>
37070
37071         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
37072         Windows PATH as well. Conservative double-quoting. Comments.
37073
37074 2007-07-01  Bruno Haible  <bruno@clisp.org>
37075             Eric Blake  <ebb9@byu.net>
37076             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37077
37078         * gnulib-tool (self_abspathname): Fix algorithm to cope with
37079         empty components in $PATH, denoting '.'.
37080
37081 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37082
37083         * gnulib-tool: Fix indentation.
37084         (func_create_megatestdir): Likewise.
37085         Report by Bruno Haible.
37086
37087 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37088
37089         Sync from Automake.
37090         * build-aux/gnupload: Fix shell portability issues with for loops.
37091         Report by Karl Berry.
37092
37093 2007-06-29  Simon Josefsson  <simon@josefsson.org>
37094
37095         * build-aux/maint.mk (POURL): Use translationproject.org.
37096
37097 2007-06-27  Simon Josefsson  <simon@josefsson.org>
37098             Bruno Haible  <bruno@clisp.org>
37099
37100         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
37101         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
37102         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
37103         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
37104         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
37105
37106 2007-06-27  Bruno Haible  <bruno@clisp.org>
37107
37108         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
37109         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
37110
37111 2007-06-26  Karl Berry  <karl@gnu.org>
37112
37113         * MODULES.html.sh: remove xreadlink-with-size.
37114
37115 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
37116
37117         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
37118         method that I hope also handles the double-include problem noted
37119         by Bruno Haible in
37120         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
37121
37122 2007-06-23  Bruno Haible  <bruno@clisp.org>
37123
37124         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
37125         Don't let the 'mostlyclean' target fail if the last subdirectory could
37126         not be removed.
37127         Reported by Karl Berry.
37128
37129 2007-06-23  Bruno Haible  <bruno@clisp.org>
37130
37131         * gnulib-tool (echo): Add a speedier workaround for ksh.
37132         * tests/test-echo.sh: Likewise.
37133
37134 2007-06-23  Bruno Haible  <bruno@clisp.org>
37135
37136         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
37137         * tests/test-echo.sh: Likewise.
37138
37139 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37140
37141         * gnulib-tool (IFS): Initialize early, so we don't set it to
37142         empty later.
37143         (self_abspathname): Rewrite algorithm to set it, reindent.
37144         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
37145         (func_create_megatestdir): Merge some sed scripts.
37146
37147 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
37148
37149         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
37150         exposed by Sun Studio 11 cc on Solaris 8.
37151
37152 2007-06-22  Bruno Haible  <bruno@clisp.org>
37153
37154         * gnulib-tool (echo): Ensure the echo primitive does not interpret
37155         backslashes.
37156         * tests/test-echo.sh: New file.
37157
37158 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37159
37160         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
37161         simplify `sed_replace_build_aux' scripts, they are portable but
37162         echoing them with `echo' is not.
37163         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
37164
37165 2007-06-21  Karl Berry  <karl@gnu.org>
37166
37167         * config/srclist.txt: guess we can't handle the licenses via
37168         srclist at the moment.
37169
37170 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
37171
37172         * MODULES.html.sh: Add include_next.
37173         * modules/include_next: New file.
37174
37175 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
37176
37177         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
37178         INCLUDE_NEXT.
37179         (gl_CHECK_NEXT_HEADERS): New macro.
37180         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
37181         the obsolescent gl_ABSOLUTE_HEADER.
37182         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
37183         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
37184         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
37185         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
37186         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
37187         * m4/math_h.m4 (gl_MATH_H): Likewise.
37188         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
37189         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
37190         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
37191         * m4/stdint.m4 (gl_STDINT_H): Likewise.
37192         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
37193         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
37194         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
37195         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37196         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
37197         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
37198         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
37199         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
37200         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
37201         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
37202         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
37203         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
37204         * m4/inttypes.m4 (gl_INTTYPES_H): Define
37205         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
37206         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
37207         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
37208         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
37209         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
37210         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
37211         * lib/float_.h: Likewise.
37212         * lib/inttypes_.h: Likewise.
37213         * lib/math_.h: Likewise.
37214         * lib/search_.h: Likewise.
37215         * lib/signal_.h: Likewise.
37216         * lib/stdint_.h: Likewise.
37217         * lib/stdio_.h: Likewise.
37218         * lib/stdlib_.h: Likewise.
37219         * lib/string_.h: Likewise.
37220         * lib/sys_stat_.h: Likewise.
37221         * lib/sys_time_.h: Likewise.
37222         * lib/time_.h: Likewise.
37223         * lib/unistd_.h: Likewise.
37224         * lib/wchar_.h: Likewise.
37225         * lib/wctype_.h: Likewise.
37226         * lib/dirent_.h: Likewise.
37227         * lib/iconv_.h: Likewise.
37228         * lib/locale_.h: Likewise.
37229         * lib/netinet_in_.h: Likewise.
37230         * lib/sys_select_.h: Likewise.
37231         * lib/sys_socket_.h: Likewise.
37232         * lib/sysexits_.h: Likewise.
37233         * modules/fcntl (Depends-on): Depend on include_next, not
37234         absolute_header.
37235         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
37236         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
37237         * modules/fchdir: Likewise.
37238         * modules/float: Likewise.
37239         * modules/iconv_open: Likewise.
37240         * modules/inttypes: Likewise.
37241         * modules/locale: Likewise.
37242         * modules/math: Likewise.
37243         * modules/netinet_in: Likewise.
37244         * modules/search: Likewise.
37245         * modules/signal: Likewise.
37246         * modules/stdint: Likewise.
37247         * modules/stdio: Likewise.
37248         * modules/stdlib: Likewise.
37249         * modules/string: Likewise.
37250         * modules/sys_select: Likewise.
37251         * modules/sys_socket: Likewise.
37252         * modules/sys_stat: Likewise.
37253         * modules/sys_time: Likewise.
37254         * modules/sysexits: Likewise.
37255         * modules/time: Likewise.
37256         * modules/unistd: Likewise.
37257         * modules/wchar: Likewise.
37258         * modules/wctype: Likewise.
37259         * modules/sys_stat: Change maintainer to "all".
37260         * modules/unistd: Likewise.
37261
37262 2007-06-20  Karl Berry  <karl@gnu.org>
37263
37264         * config/srclist.txt: track www changes in license files.
37265
37266 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
37267
37268         * build-aux/bootstrap: Remove stray dot.
37269         Make sure build_aux settings are honored when linking
37270         gnulib_extra_files.
37271
37272 2007-06-19  Eric Blake  <ebb9@byu.net>
37273
37274         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
37275         Allow compilation on cygwin.
37276
37277 2007-06-19  Jim Meyering  <jim@meyering.net>
37278
37279         xreadlink-with-size: Remove module.  No longer used.
37280         Ex-callers now use xreadlink or mreadlink-with-size.
37281         * modules/xreadlink-with-size: Remove module.
37282         * lib/xreadlink-with-size.c: Remove file.
37283         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
37284         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
37285         just before the function definition *is* accurate.
37286
37287         Eliminate one way canonicalize_filename_mode could exit.
37288         * lib/canonicalize.c (canonicalize_filename_mode):
37289         Use mreadlink_with_size, not xreadlink_with_size.
37290
37291 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
37292
37293         Detect porting problems to FreeBSD/arm, which has time_t wider than
37294         long int.  Original problem reported for GNU diff by Xin Li in
37295         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
37296         * modules/getdate (Depends-on): Add intprops, verify.
37297         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
37298         is an integer type no wider than long int.
37299
37300 2007-06-18  Jim Meyering  <jim@meyering.net>
37301
37302         New module: mreadlink-with-size.
37303         * MODULES.html.sh: Add mreadlink-with-size.
37304         * modules/mreadlink-with-size: New module
37305         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
37306         not xreadlink-with-size.
37307         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
37308
37309 2007-06-16  Bruno Haible  <bruno@clisp.org>
37310
37311         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
37312         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
37313         Reported by Gary V. Vaughan <gary@gnu.org>.
37314
37315 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
37316
37317         Revamp lchown so that it lives in unistd.h where it belongs.
37318         * lib/lchown.h: Remove.
37319         * lib/dirchownmod.c: Don't include lib/lchown.h.
37320         * lib/fchownat.c: Likewise.
37321         * lib/openat.c: Likewise.
37322         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
37323         does not follow symlinks.
37324         (EOPNOTSUPP): Define if not defined.
37325         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
37326         is defined to 0.
37327         (lchown): New decl.
37328         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
37329         Do not check for lchown decl.
37330         Set REPLACE_LCHOWN.
37331         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
37332         REPLACE_LCHOWN.
37333         * modules/chown: Make it clear it follows symlinks.
37334         * modules/lchown: Make it clear it doesn't follow symlinks.
37335         (Files): Remove lib/lchown.h
37336         (Depends-on): Add unistd.
37337         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
37338         (Include): Include <unistd.h>, not "lchown.h".
37339         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
37340         REPLACE_LCHOWN.
37341
37342 2007-06-15  Jim Meyering  <jim@meyering.net>
37343
37344         Change license (GPL to LGPL) of fsusage and dependents.
37345         * modules/fsusage (License): Change to LGPL.
37346         * modules/full-read (License): Likewise.
37347         * modules/full-write (License): Likewise.
37348         * modules/safe-read (License): Likewise.
37349         * modules/safe-write (License): Likewise.
37350
37351 2007-06-14  Ben Pfaff  <blp@gnu.org>
37352
37353         Missing part of allocsa -> malloca transition.
37354         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
37355         gl_MALLOCA.
37356
37357 2007-06-12  Bruno Haible  <bruno@clisp.org>
37358
37359         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
37360         to ia64, x86_64, i386.
37361         Reported by Eric Blake.
37362
37363 2007-06-12  Bruno Haible  <bruno@clisp.org>
37364
37365         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
37366         cross-compiling to x86_64.
37367
37368 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
37369
37370         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
37371         glitch reported by Ralf Wildenhues in
37372         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
37373
37374         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
37375         Vin Shelton.
37376
37377 2007-06-11  Bruno Haible  <bruno@clisp.org>
37378
37379         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
37380         replacement string.
37381         Reported by Eric Blake.
37382
37383 2007-06-10  Bruno Haible  <bruno@clisp.org>
37384
37385         Prepare vasnprintf code for use with Unicode strings.
37386         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
37387         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
37388         TYPE_U32_STRING.
37389         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
37390         a_u32_string variants.
37391         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
37392         * lib/printf-args.c: Don't include config.h and the specification
37393         header if PRINTF_FETCHARGS is already defined.
37394         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
37395         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
37396         TYPE_U16_STRING, TYPE_U32_STRING.
37397         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
37398         u16_directive, u16_directives, u32_directive, u32_directives): New
37399         types.
37400         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
37401         New declarations.
37402         * lib/printf-parse.c: Don't include config.h and the specification
37403         header if PRINTF_PARSE is already defined. Eliminate the set of
37404         parameters for WIDE_CHAR_VERSION; the user of this file must provide
37405         them now. Include c-ctype.h.
37406         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
37407         directive and CHAR_T_ONLY_ASCII.
37408         * lib/vasnprintf.c: Don't include config.h and the specification header
37409         if VASNPRINTF is already defined.
37410         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
37411         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
37412         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
37413         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
37414         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
37415         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
37416         code accordingly.
37417         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
37418         pad_ourselves also in this case, with the 'c' and 's' directives, and
37419         with a different notion of "width".
37420         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
37421
37422 2007-06-10  Bruno Haible  <bruno@clisp.org>
37423
37424         * modules/unistr/u32-mbsnlen: New file.
37425         * lib/unistr/u32-mbsnlen.c: New file.
37426
37427         * modules/unistr/u16-mbsnlen: New file.
37428         * lib/unistr/u16-mbsnlen.c: New file.
37429
37430         * modules/unistr/u8-mbsnlen: New file.
37431         * lib/unistr/u8-mbsnlen.c: New file.
37432
37433         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
37434         declarations.
37435
37436 2007-06-10  Bruno Haible  <bruno@clisp.org>
37437
37438         * lib/string_.h (mbsnlen): New declaration.
37439         * lib/mbsnlen.c: New file.
37440         * m4/mbsnlen.m4: New file.
37441         * modules/mbsnlen: New file.
37442         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
37443         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
37444         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
37445
37446 2007-06-10  Bruno Haible  <bruno@clisp.org>
37447
37448         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
37449
37450 2007-06-10  Bruno Haible  <bruno@clisp.org>
37451
37452         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
37453         * lib/mbuiter.h: Likewise.
37454
37455 2007-06-10  Bruno Haible  <bruno@clisp.org>
37456
37457         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
37458         declaration.
37459
37460 2007-06-10  Karl Berry  <karl@gnu.org>
37461
37462         * config/srclist.txt: remove gettext entries, Bruno prefers
37463         to update individually.
37464
37465 2007-06-10  Bruno Haible  <bruno@clisp.org>
37466
37467         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
37468         'maxlen'. Ensure only length + width bytes are allocated, not
37469         length + 1 + width.
37470
37471 2007-06-09  Bruno Haible  <bruno@clisp.org>
37472
37473         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
37474         (CHAR_T): Remove macro.
37475         (VASNPRINTF): Update.
37476
37477 2007-06-09  Bruno Haible  <bruno@clisp.org>
37478
37479         * MODULES.html.sh (Unicode string functions): Add the new modules.
37480
37481         * modules/uniconv/u32-conv-to-enc: New file.
37482         * lib/uniconv/u32-conv-to-enc.c: New file.
37483         * modules/uniconv/u32-conv-to-enc-tests: New file.
37484         * tests/uniconv/test-u32-conv-to-enc.c: New file.
37485
37486         * modules/uniconv/u16-conv-to-enc: New file.
37487         * lib/uniconv/u16-conv-to-enc.c: New file.
37488         * lib/uniconv/u-conv-to-enc.h: New file.
37489         * modules/uniconv/u16-conv-to-enc-tests: New file.
37490         * tests/uniconv/test-u16-conv-to-enc.c: New file.
37491
37492         * modules/uniconv/u8-conv-to-enc: New file.
37493         * lib/uniconv/u8-conv-to-enc.c: New file.
37494         * modules/uniconv/u8-conv-to-enc-tests: New file.
37495         * tests/uniconv/test-u8-conv-to-enc.c: New file.
37496
37497         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
37498         u32_conv_to_encoding): New declarations.
37499
37500 2007-06-09  Bruno Haible  <bruno@clisp.org>
37501
37502         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
37503
37504 2007-06-09  Bruno Haible  <bruno@clisp.org>
37505
37506         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
37507         * modules/malloca: Renamed from modules/allocsa, updated.
37508         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
37509         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
37510         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
37511         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
37512         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
37513         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
37514         * modules/xmalloca: Renamed from modules/xallocsa, updated.
37515         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
37516         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
37517         * modules/c-strcasestr (Depends-on): Update.
37518         * lib/c-strcasestr.c: Update.
37519         * modules/c-strstr (Depends-on): Update.
37520         * lib/c-strstr.c: Update.
37521         * modules/canonicalize-lgpl (Depends-on): Update.
37522         * lib/canonicalize-lgpl.c: Update.
37523         * modules/clean-temp (Depends-on): Update.
37524         * lib/clean-temp.c: Update.
37525         * modules/csharpcomp (Depends-on): Update.
37526         * lib/csharpcomp.c: Update.
37527         * modules/csharpexec (Depends-on): Update.
37528         * lib/csharpexec.c: Update.
37529         * modules/javacomp (Depends-on): Update.
37530         * lib/javacomp.c: Update.
37531         * modules/javaexec (Depends-on): Update.
37532         * lib/javaexec.c: Update.
37533         * modules/mbscasestr (Depends-on): Update.
37534         * lib/mbscasestr.c: Update.
37535         * modules/mbsstr (Depends-on): Update.
37536         * lib/mbsstr.c: Update.
37537         * modules/setenv (Depends-on): Update.
37538         * lib/setenv.c: Update.
37539         * modules/strcasestr (Depends-on): Update.
37540         * lib/strcasestr.c: Update.
37541         * modules/striconveha (Depends-on): Update.
37542         * lib/striconveha.c: Update.
37543         * modules/relocatable-prog-wrapper (Files): Update.
37544         * lib/relocwrapper.c: Update.
37545         * build-aux/install-reloc: Update.
37546         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
37547
37548 2007-06-08  Bruno Haible  <bruno@clisp.org>
37549
37550         Port to uClibc.
37551         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
37552         * lib/fpurge.c (fpurge): Likewise.
37553         * lib/freading.c (freading): Likewise.
37554         * lib/fseeko.c (rpl_fseeko): Likewise.
37555         * lib/fseterr.c (fseterr): Likewise.
37556         * lib/fwriting.c (fwriting): Likewise.
37557         * tests/test-fflush.c (main): Avoid a failure on uClibc.
37558
37559 2007-06-08  Bruno Haible  <bruno@clisp.org>
37560
37561         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
37562         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
37563         * modules/gettext (Files): Add m4/intlmacosx.m4.
37564
37565 2007-06-07  Bruno Haible  <bruno@clisp.org>
37566
37567         * modules/localename-tests: New file.
37568         * tests/test-localename.c: New file.
37569
37570         New module 'localename'.
37571         * lib/localename.h: New file.
37572         * lib/localename.c: New file, from GNU gettext.
37573         * m4/localename.m4: New file.
37574         * modules/localename: New file.
37575
37576 2007-06-07  Bruno Haible  <bruno@clisp.org>
37577
37578         Work around the lack of <wchar.h> on some builds of uClibc.
37579         * doc/headers/wchar.texi: Update.
37580         * lib/wchar_.h: Include <wchar.h> only if it exists.
37581         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
37582         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
37583         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
37584         doesn't exist.
37585         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
37586         * modules/mbfile (Depends-on): Add wchar.
37587         * modules/mbiter (Depends-on): Likewise.
37588         * modules/mbuiter (Depends-on): Likewise.
37589         Reported by Simon Josefsson.
37590
37591 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
37592
37593         Work around problem reported by Steven M. Schweda in
37594         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
37595         Tru64 5.1B with the Compaq compiler environment installed declares
37596         an 'isblank' function but does not define it in the C library.
37597         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
37598         * lib/regex_internal.h (isblank): Likewise.
37599         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
37600         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
37601
37602 2007-06-05  Bruno Haible  <bruno@clisp.org>
37603
37604         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
37605         ia64.
37606         * modules/printf-safe: New file.
37607         * modules/fprintf-posix (Depends-on): Add printf-safe.
37608         * modules/printf-posix (Depends-on): Likewise.
37609         * modules/snprintf-posix (Depends-on): Likewise.
37610         * modules/sprintf-posix (Depends-on): Likewise.
37611         * modules/vasnprintf-posix (Depends-on): Likewise.
37612         * modules/vasprintf-posix (Depends-on): Likewise.
37613         * modules/vfprintf-posix (Depends-on): Likewise.
37614         * modules/vprintf-posix (Depends-on): Likewise.
37615         * modules/vsnprintf-posix (Depends-on): Likewise.
37616         * modules/vsprintf-posix (Depends-on): Likewise.
37617         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
37618         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
37619         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
37620         "no" on i386, x86_64, ia64.
37621         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
37622         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
37623         on i386, x86_64, ia64.
37624         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
37625         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
37626         on i386, x86_64, ia64.
37627         * tests/test-vasnprintf-posix.c: Include float.h.
37628         (LDBL80_WORDS): New macro.
37629         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
37630         on i386, x86_64, ia64.
37631         * tests/test-vasprintf-posix.c: Include float.h.
37632         (LDBL80_WORDS): New macro.
37633         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
37634         on i386, x86_64, ia64.
37635         * tests/test-snprintf-posix.c: Include float.h.
37636         * tests/test-sprintf-posix.c: Likewise.
37637         * tests/test-vsnprintf-posix.c: Likewise.
37638         * tests/test-vsprintf-posix.c: Likewise.
37639
37640 2007-06-05  Bruno Haible  <bruno@clisp.org>
37641
37642         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
37643         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
37644         non-IEEE numbers on i386, x86_64, ia64.
37645         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
37646         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
37647         * tests/test-isnanl.h: Include float.h.
37648         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
37649
37650 2007-06-05  Bruno Haible  <bruno@clisp.org>
37651
37652         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
37653         also the %a / %A. Handle the %a / %A code before this extra handling.
37654
37655 2007-06-05  Bruno Haible  <bruno@clisp.org>
37656
37657         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
37658         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
37659
37660 2007-06-05  Bruno Haible  <bruno@clisp.org>
37661
37662         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
37663         typo in variable name.
37664
37665 2007-06-05  Eric Blake  <ebb9@byu.net>
37666
37667         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
37668         Reported by Simon Josefsson.
37669
37670 2007-06-04  Bruno Haible  <bruno@clisp.org>
37671
37672         Avoid test failures on some PowerPC platforms.
37673         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
37674         Define differently for PowerPC.
37675         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
37676         Reported by Gary V. Vaughan <gary@gnu.org>.
37677
37678 2007-06-02  Bruno Haible  <bruno@clisp.org>
37679
37680         Fix test-stdint failure on FreeBSD/ia64.
37681         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
37682         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
37683         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
37684         * doc/headers/stdint.texi: Update.
37685
37686 2007-06-01  Bruno Haible  <bruno@clisp.org>
37687
37688         * tests/test-binary-io.c (main): Pass a third argument to open().
37689         Reported by Gary V. Vaughan <gary@gnu.org>.
37690
37691 2007-06-01  Bruno Haible  <bruno@clisp.org>
37692
37693         * doc/functions/frexpl.texi: Update for mingw.
37694
37695 2007-06-01  Bruno Haible  <bruno@clisp.org>
37696
37697         * tests/test-lseek.c (main): Disable test of errno for invalid third
37698         argument.
37699         * doc/functions/lseek.texi: Update.
37700         Reported by Gary V. Vaughan <gary@gnu.org>.
37701
37702 2007-05-28  Bruno Haible  <bruno@clisp.org>
37703
37704         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
37705
37706 2007-05-31  Eric Blake  <ebb9@byu.net>
37707
37708         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
37709         cross compiling.
37710
37711 2007-05-30  Eric Blake  <ebb9@byu.net>
37712         and Bruno Haible  <bruno@clisp.org>
37713
37714         Work around mingw test failures exposed by m4-1.4.9b.
37715         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
37716         * tests/test-unistd.c: Disable uid_t and git_t tests for the
37717         moment.
37718
37719 2007-05-30  Bruno Haible  <bruno@clisp.org>
37720
37721         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
37722         assuming that they are closed. Needed on HP-UX 11.
37723
37724 2007-05-29  Bruno Haible  <bruno@clisp.org>
37725
37726         Fix a problem with #include_next.
37727         * lib/dirent_.h: Split the double-inclusion guard.
37728         * lib/fcntl_.h: Likewise.
37729         * lib/float_.h: Likewise.
37730         * lib/iconv_.h: Likewise.
37731         * lib/inttypes_.h: Likewise.
37732         * lib/locale_.h: Likewise.
37733         * lib/math_.h: Likewise.
37734         * lib/netinet_in_.h: Likewise.
37735         * lib/search_.h: Likewise.
37736         * lib/signal_.h: Likewise.
37737         * lib/stdint_.h: Likewise.
37738         * lib/stdio_.h: Likewise.
37739         * lib/stdlib_.h: Likewise.
37740         * lib/string_.h: Likewise.
37741         * lib/sys_select_.h: Likewise.
37742         * lib/sys_socket_.h: Likewise.
37743         * lib/sys_stat_.h: Likewise.
37744         * lib/sys_time_.h: Likewise.
37745         * lib/sysexits_.h: Likewise.
37746         * lib/time_.h: Likewise.
37747         * lib/unistd_.h: Likewise.
37748         * lib/wchar_.h: Likewise.
37749         * lib/wctype_.h: Likewise.
37750
37751 2007-05-29  Bruno Haible  <bruno@clisp.org>
37752
37753         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
37754         for the moment.
37755
37756 2007-05-29  Bruno Haible  <bruno@clisp.org>
37757
37758         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
37759         invocation.
37760         Reported by Eric Blake.
37761
37762 2007-05-29  Bruno Haible  <bruno@clisp.org>
37763
37764         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
37765         compiling case.
37766
37767 2007-05-29  Eric Blake  <ebb9@byu.net>
37768             Bruno Haible  <bruno@clisp.org>
37769
37770         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
37771         cross compiles.
37772
37773 2007-05-28  Eric Blake  <ebb9@byu.net>
37774
37775         * modules/closein-tests (test_closein_LDADD): Support test on
37776         cygwin with libtool.
37777
37778 2007-05-28  Bruno Haible  <bruno@clisp.org>
37779
37780         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
37781         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
37782         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
37783         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
37784         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
37785         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
37786         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
37787         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
37788         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
37789
37790 2007-05-28  Eric Blake  <ebb9@byu.net>
37791
37792         Unconditionally include <config.h> in unit tests.
37793         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
37794         * tests/test-allocsa.c, tests/test-arcfour.c,
37795         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
37796         tests/test-array_list.c, tests/test-array_oset.c,
37797         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
37798         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
37799         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
37800         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
37801         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
37802         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
37803         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
37804         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
37805         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
37806         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
37807         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
37808         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
37809         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
37810         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
37811         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
37812         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
37813         test-md5.c, test-memmem.c, test-printf-posix.c,
37814         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
37815         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
37816         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
37817         test-strcasestr.c, test-striconv.c, test-striconveh.c,
37818         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
37819         test-vasnprintf-posix2.c, test-vasnprintf.c,
37820         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
37821         test-vfprintf-posix.c, test-vprintf-posix.c,
37822         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
37823         test-xvasprintf.c: Likewise.
37824
37825 2007-05-28  Bruno Haible  <bruno@clisp.org>
37826
37827         * gnulib-tool (func_import): Remember the --with-tests command-line
37828         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
37829         Reported by Eric Blake.
37830
37831 2007-05-28  Bruno Haible  <bruno@clisp.org>
37832
37833         * modules/ftell-tests: New file.
37834         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
37835         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
37836
37837         * lib/ftell.c: New file.
37838         * modules/ftell: New file.
37839         * m4/ftell.m4: New file.
37840         * doc/functions/ftell.texi: Update.
37841         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
37842         REPLACE_FTELL.
37843         * lib/stdio_.h (rpl_ftell): New declaration.
37844         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
37845         REPLACE_FTELL.
37846
37847 2007-05-28  Eric Blake  <ebb9@byu.net>
37848
37849         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
37850
37851 2007-05-28  Bruno Haible  <bruno@clisp.org>
37852
37853         * modules/fseek-tests: New file.
37854         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
37855         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
37856
37857         * lib/fseek.c: New file.
37858         * modules/fseek: New file.
37859         * m4/fseek.m4: New file.
37860         * doc/functions/fseek.texi: Update.
37861         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
37862         REPLACE_FSEEK.
37863         * lib/stdio_.h (rpl_fseek): New declaration.
37864         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
37865         REPLACE_FSEEK.
37866
37867 2007-05-28  Bruno Haible  <bruno@clisp.org>
37868
37869         * lib/stdio_.h (fflush): More comments.
37870
37871 2007-05-28  Bruno Haible  <bruno@clisp.org>
37872
37873         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
37874         runtime test.
37875
37876 2007-05-28  Eric Blake  <ebb9@byu.net>
37877
37878         Improve lseek module.
37879         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
37880         * lib/unistd_.h (lseek): Scale back link warning message.
37881         * tests/test-lseek.c: Beef up test.
37882         * tests/test-lseek.sh: Exercise more facets of lseek.
37883         Reported by Bruno Haible.
37884
37885 2007-05-28  Bruno Haible  <bruno@clisp.org>
37886
37887         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
37888         to define.
37889
37890 2007-05-27  Bruno Haible  <bruno@clisp.org>
37891
37892         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
37893
37894 2007-05-27  Bruno Haible  <bruno@clisp.org>
37895
37896         * modules/openmp: New file.
37897         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
37898         Noah Misch.
37899
37900 2007-05-26  Bruno Haible  <bruno@clisp.org>
37901
37902         * modules/chdir-long (Depends-on): Add fchdir.
37903         * modules/chdir-safer (Depends-on): Likewise.
37904         * modules/fts (Depends-on): Likewise.
37905         * modules/fts-lgpl (Depends-on): Likewise.
37906         * modules/openat (Depends-on): Likewise.
37907         * modules/savewd (Depends-on): Likewise.
37908
37909 2007-05-24  Eric Blake  <ebb9@byu.net>
37910
37911         Fix lseek on mingw.
37912         * modules/lseek: New module.
37913         * m4/lseek.m4: New file.
37914         * lib/lseek.c: New file.
37915         * modules/lseek-tests: New file.
37916         * tests/test-lseek.c: New file.
37917         * tests/test-lseek.sh: New file.
37918         * MODULES.html.sh: Document lseek module.
37919         * modules/fflush (Depends-on): Add lseek, fseeko.
37920         * modules/fseeko (Depends-on): Likewise.
37921         * modules/ftello (Depends-on): Likewise.
37922         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
37923         broken.
37924         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
37925         broken.
37926         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
37927         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
37928         * lib/ftello.c (rpl_ftello): Likewise.
37929         * tests/test-fseeko.c (main): Test this.
37930         * tests/test-fseeko.sh: Likewise.
37931         * tests/test-ftello.c (main): Likewise.
37932         * tests/test-ftello.sh: Likewise.
37933         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
37934         implies replacing fseek.
37935         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
37936         HAVE_FTELLO.
37937         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
37938         * modules/unistd (Makefile.am): Likewise.
37939         * lib/unistd_.h (lseek): Declare a replacement.
37940         * doc/functions/lseek.texi (lseek): Document this fix.
37941         * doc/functions/fseek.texi (fseek): Likewise.
37942         * doc/functions/ftell.texi (ftell): Likewise.
37943
37944 2007-05-24  Bruno Haible  <bruno@clisp.org>
37945
37946         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
37947         in the printed representation of a NaN.
37948         * tests/test-vasprintf-posix.c (test_function): Likewise.
37949         * tests/test-snprintf-posix.h (test_function): Likewise.
37950         * tests/test-sprintf-posix.h (test_function): Likewise.
37951         Reported by Eric Blake.
37952
37953 2007-05-23  Eric Blake  <ebb9@byu.net>
37954
37955         Fix fseeko/ftello on cygwin 1.5.24.
37956         * doc/functions/fseeko.texi (fseeko): Document the fix.
37957         * doc/functions/ftello.texi (ftello): Document the fix.
37958         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
37959         * doc/functions/stdout.text (stdout): New file.
37960         * doc/functions/stderr.text (stderr): New file.
37961         * doc/gnulib.texi (Function Substitutes): Use new files.
37962         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
37963         prior to 1.7.0.
37964         * tests/test-ftello.c (main): Likewise for ftello.
37965         * tests/test-fseeko.sh: New file.
37966         * tests/test-ftello.sh: New file.
37967         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
37968         with seekable stdin.
37969         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
37970         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
37971         (gl_REPLACE_FSEEKO): New macro.
37972         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
37973         * modules/fseeko (Files): Distribute fseeko.c.
37974         * modules/ftello (Files): Distribute ftello.c.
37975         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
37976         mode.
37977         * lib/ftello.c (rpl_ftello): New file.
37978         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
37979         fseeko, ftello.
37980         (gl_STDIN_LARGE_OFFSET): New macro.
37981         * modules/stdio (Makefile.am): Perform the replacement.
37982         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
37983
37984 2007-05-23  Bruno Haible  <bruno@clisp.org>
37985
37986         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
37987         GNULIB_POSIXCHECK is defined.
37988
37989 2007-05-21  Bruno Haible  <bruno@clisp.org>
37990
37991         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
37992         Check also the output for NaN arguments. When cross-compiling, guess
37993         no on IRIX.
37994         * lib/vasnprintf.c: Update comments.
37995         * tests/test-vasnprintf-posix.c (strisnan): New function.
37996         (test_function): Use it.
37997         * tests/test-vasprintf-posix.c (strisnan): New function.
37998         (test_function): Use it.
37999         * tests/test-snprintf-posix.h (strisnan): New function.
38000         (test_function): Use it.
38001         * tests/test-sprintf-posix.h (strisnan): New function.
38002         (test_function): Use it.
38003         Reported by Eric Blake.
38004
38005 2007-05-20  Bruno Haible  <bruno@clisp.org>
38006
38007         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
38008         numbers that fails on BeOS.
38009         * doc/functions/frexpl.texi: Update.
38010
38011 2007-05-20  Jim Meyering  <jim@meyering.net>
38012
38013         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
38014         forced upon us by glibc-2.6.
38015
38016 2007-05-20  Bruno Haible  <bruno@clisp.org>
38017
38018         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
38019         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
38020         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
38021         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
38022         NEED_PRINTF_INFINITE.
38023         (is_infinitel): New function.
38024         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
38025         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
38026         gl_PREREQ_VASNPRINTF_INFINITE.
38027         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
38028         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
38029         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
38030         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
38031         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
38032         gl_PREREQ_VASNPRINTF_INFINITE.
38033         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
38034         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
38035         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
38036         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
38037         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
38038         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38039         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
38040         * doc/functions/fprintf.texi: Update.
38041         * doc/functions/printf.texi: Update.
38042         * doc/functions/snprintf.texi: Update.
38043         * doc/functions/sprintf.texi: Update.
38044         * doc/functions/vfprintf.texi: Update.
38045         * doc/functions/vprintf.texi: Update.
38046         * doc/functions/vsnprintf.texi: Update.
38047         * doc/functions/vsprintf.texi: Update.
38048
38049 2007-05-20  Bruno Haible  <bruno@clisp.org>
38050
38051         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
38052         was not found in libc.
38053         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
38054
38055 2007-05-20  Bruno Haible  <bruno@clisp.org>
38056
38057         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
38058         printed as "-nan" instead of "nan".
38059         * tests/test-vasprintf-posix.c (test_function): Likewise.
38060         * tests/test-snprintf-posix.h (test_function): Likewise.
38061         * tests/test-sprintf-posix.h (test_function): Likewise.
38062         Needed for HP-UX 11.
38063
38064 2007-05-20  Jim Meyering  <jim@meyering.net>
38065
38066         Fix buggy test for the fchownat-deref bug.
38067         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
38068         symlink required for the run-test.  Without it, this test would
38069         always declare that fchownat doesn't work, and client code would
38070         unnecessarily use the replacement function with fixed libc.
38071         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
38072         Reported by Greg Schafer.
38073
38074 2007-05-19  Bruno Haible  <bruno@clisp.org>
38075
38076         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
38077         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
38078         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
38079         Needed for IRIX 6.5 and Solaris 2.5.1.
38080
38081 2007-05-19  Bruno Haible  <bruno@clisp.org>
38082
38083         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
38084         (test_function): Skip tests involving -0.0 on platforms where
38085         -0.0 = 0.0.
38086         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
38087         (test_function): Skip tests involving -0.0 on platforms where
38088         -0.0 = 0.0.
38089         * tests/test-snprintf-posix.h (have_minus_zero): New function.
38090         (test_function): Skip tests involving -0.0 on platforms where
38091         -0.0 = 0.0.
38092         * tests/test-sprintf-posix.h (have_minus_zero): New function.
38093         (test_function): Skip tests involving -0.0 on platforms where
38094         -0.0 = 0.0.
38095         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
38096         tests.
38097         * tests/test-printf-posix.h (test_function): Likewise.
38098         * tests/test-printf-posix.output: Remove all -0.0 related results.
38099         Needed for IRIX 6.5.
38100
38101 2007-05-19  Bruno Haible  <bruno@clisp.org>
38102
38103         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
38104         printed as "nan0x7fffffff" instead of "nan".
38105         * tests/test-vasprintf-posix.c (test_function): Likewise.
38106         * tests/test-snprintf-posix.h (test_function): Likewise.
38107         * tests/test-sprintf-posix.h (test_function): Likewise.
38108         * tests/test-fprintf-posix.h (NaN): Remove macro.
38109         (test_function): Remove all NaN related tests.
38110         * tests/test-printf-posix.h (NaN): Remove macro.
38111         (test_function): Remove all NaN related tests.
38112         * tests/test-printf-posix.output: Remove all NaN related results.
38113         Needed for IRIX 6.5.
38114
38115 2007-05-19  Bruno Haible  <bruno@clisp.org>
38116
38117         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
38118         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
38119
38120 2007-05-19  Bruno Haible  <bruno@clisp.org>
38121
38122         * lib/float_.h: New file.
38123         * m4/float_h.m4: New file.
38124         * modules/float: New file.
38125         * modules/isnanl (Dependencies): Add float.
38126         * modules/isnanl-nolibm (Dependencies): Likewise.
38127         * modules/mathl (Dependencies): Likewise.
38128         * modules/printf-frexpl (Dependencies): Likewise.
38129         * modules/signbit (Dependencies): Likewise.
38130         * modules/vasnprintf (Dependencies): Likewise.
38131         * doc/headers/float.texi: Update.
38132
38133 2007-05-19  Jim Meyering  <jim@meyering.net>
38134
38135         * lib/utimens.c (gl_futimens): Rename from futimens,
38136         now that glibc-2.6 declares futimens.
38137         * lib/utimens.h: Likewise.
38138
38139 2007-05-19  Bruno Haible  <bruno@clisp.org>
38140
38141         Avoid test failures on mingw.
38142         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
38143         * tests/test-printf-posix.sh: Likewise.
38144         * tests/test-vfprintf-posix.sh: Likewise.
38145         * tests/test-vprintf-posix.sh: Likewise.
38146
38147 2007-05-19  Bruno Haible  <bruno@clisp.org>
38148
38149         Fix *printf result for NaN, Inf, -0.0 on mingw.
38150         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
38151         * lib/vasnprintf.c: Include math.h and isnan.h.
38152         (is_infinite_or_zero): New function.
38153         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
38154         values in the %f, %F, %e, %E, %g, %G directives.
38155         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
38156         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
38157         gl_PRINTF_INFINITE and test its result. Invoke
38158         gl_PREREQ_VASNPRINTF_INFINITE.
38159         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
38160         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
38161         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
38162         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
38163         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
38164         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38165         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
38166         * doc/functions/fprintf.texi: Update.
38167         * doc/functions/printf.texi: Update.
38168         * doc/functions/snprintf.texi: Update.
38169         * doc/functions/sprintf.texi: Update.
38170         * doc/functions/vfprintf.texi: Update.
38171         * doc/functions/vprintf.texi: Update.
38172         * doc/functions/vsnprintf.texi: Update.
38173         * doc/functions/vsprintf.texi: Update.
38174
38175 2007-05-19  Bruno Haible  <bruno@clisp.org>
38176
38177         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
38178         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
38179         Instead of multiplying with 10^k, set extra_zeroes to k.
38180         (scale10_round_long_double): Remove function.
38181
38182 2007-05-18  Bruno Haible  <bruno@clisp.org>
38183
38184         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
38185         introduced on 2007-05-06.
38186
38187 2007-05-18  Bruno Haible  <bruno@clisp.org>
38188
38189         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
38190         %g directives.
38191         * tests/test-vasprintf-posix.c (test_function): Likewise.
38192         * tests/test-snprintf-posix.h (test_function): Likewise.
38193         * tests/test-sprintf-posix.h (test_function): Likewise.
38194
38195 2007-05-18  Bruno Haible  <bruno@clisp.org>
38196
38197         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
38198         (strmatch): New function.
38199         (test_function): Test the %f directive on numbers of various exponents.
38200         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
38201         (strmatch): New function.
38202         (test_function): Test the %f directive on numbers of various exponents.
38203         * tests/test-snprintf-posix.h (strmatch): New function.
38204         (test_function): Test the %f directive on numbers of various exponents.
38205         * tests/test-sprintf-posix.h (strmatch): New function.
38206         (test_function): Test the %f directive on numbers of various exponents.
38207         * tests/test-snprintf-posix.c (SIZEOF): New macro.
38208         * tests/test-sprintf-posix.c (SIZEOF): New macro.
38209         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
38210         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
38211
38212 2007-05-18  Bruno Haible  <bruno@clisp.org>
38213
38214         Add support for 'long double' number output.
38215         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
38216         * lib/vasnprintf.c: Include math.h and float+.h.
38217         (mp_limb_t): New type.
38218         (GMP_LIMB_BITS): New macro.
38219         (mp_twolimb_t): New type.
38220         (GMP_TWOLIMB_BITS): New macro.
38221         (mpn_t): New type.
38222         (multiply, divide, convert_to_decimal, decode_long_double,
38223         scale10_round_long_double, scale10_round_decimal_long_double,
38224         floorlog10l): New functions.
38225         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
38226         for the %f, %F, %e, %E, %g, %G directives.
38227         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
38228         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
38229         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
38230         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
38231         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
38232         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
38233         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
38234         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
38235         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
38236         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38237         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
38238         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
38239         * modules/snprintf-posix (Depends-on): Likewise.
38240         * modules/sprintf-posix (Depends-on): Likewise.
38241         * modules/vasnprintf-posix (Depends-on): Likewise.
38242         * modules/vasprintf-posix (Depends-on): Likewise.
38243         * modules/vfprintf-posix (Depends-on): Likewise.
38244         * modules/vsnprintf-posix (Depends-on): Likewise.
38245         * modules/vsprintf-posix (Depends-on): Likewise.
38246         * modules/vasnprintf (Files): Add lib/float+.h.
38247         * doc/functions/fprintf.texi: Update.
38248         * doc/functions/printf.texi: Update.
38249         * doc/functions/snprintf.texi: Update.
38250         * doc/functions/sprintf.texi: Update.
38251         * doc/functions/vfprintf.texi: Update.
38252         * doc/functions/vprintf.texi: Update.
38253         * doc/functions/vsnprintf.texi: Update.
38254         * doc/functions/vsprintf.texi: Update.
38255
38256 2007-05-18  Bruno Haible  <bruno@clisp.org>
38257
38258         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
38259
38260 2007-05-18  Bruno Haible  <bruno@clisp.org>
38261
38262         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
38263         for printing 64-bit integers. Needed for mingw.
38264
38265 2007-05-18  Bruno Haible  <bruno@clisp.org>
38266
38267         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
38268         gl_FUNC_FREXPL_WORKS.
38269         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
38270
38271 2007-05-18  Bruno Haible  <bruno@clisp.org>
38272
38273         * modules/frexpl-nolibm-tests: New file.
38274
38275         * modules/frexpl-nolibm: New file.
38276         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
38277
38278 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
38279
38280         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
38281         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
38282         GCC 4.2, which otherwise issues a lot of warnings.
38283         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
38284         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
38285         Likewise.
38286         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
38287         * modules/iconv_open (iconv.h): Likewise.
38288         * modules/locale (locale.h): Likewise.
38289         * modules/netinet_in (netinet/in.h): Likewise.
38290         * modules/sys_select (sys_select.h): Likewise.
38291         * modules/sys_socket (sys/socket.h): Likewise.
38292         * modules/sys_stat (sys/stat.h): Likewise.
38293         * modules/sysexits (sysexits.h): Likewise.
38294         * modules/unistd (unistd.h): Likewise.
38295
38296 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38297
38298         * modules/closein-tests (Makefile.am): Distribute
38299         `test-closein.sh'.
38300
38301 2007-05-17  Bruno Haible  <bruno@clisp.org>
38302
38303         * tests/test-printf-posix.output: Renamed from
38304         tests/test-fprintf-posix.out.
38305         * modules/fprintf-posix-tests: Update.
38306         * modules/printf-posix-tests: Update.
38307         * modules/vfprintf-posix-tests: Update.
38308         * modules/vprintf-posix-tests: Update.
38309         * tests/test-fprintf-posix.sh: Update.
38310         * tests/test-printf-posix.sh: Update.
38311         * tests/test-vfprintf-posix.sh: Update.
38312         * tests/test-vprintf-posix.sh: Update.
38313         Reported by Ralf Wildenhues.
38314
38315 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
38316
38317         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
38318         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
38319         GCC 4.2, which otherwise issues a lot of warnings.
38320         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
38321         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
38322         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
38323         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
38324         it should no longer be needed.
38325         * lib/string_.h: Likewise.
38326         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
38327         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
38328         * modules/inttypes (inttypes.h): Likewise.
38329         * modules/math (math.h): Likewise.
38330         * modules/search (search.h): Likewise.
38331         * modules/signal (signal.h): Likewise.
38332         * modules/stdint (stdint.h): Likewise.
38333         * modules/stdio (stdio.h): Likewise.
38334         * modules/stdlib (stdlib.h): Likewise.
38335         * modules/string (string.h): Likewise.
38336         * modules/sys_time (sys/time.h): Likewise.
38337         * modules/time (time.h): Likewise.
38338         * modules/wchar (wchar.h): Likewise.
38339         * modules/wctype (wtype.h): Likewise.
38340
38341 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
38342
38343         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
38344
38345 2007-05-13  Bruno Haible  <bruno@clisp.org>
38346
38347         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
38348         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
38349         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
38350         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
38351         (gl_PREREQ_STRTOK_R): Don't require it here.
38352
38353 2007-05-13  Bruno Haible  <bruno@clisp.org>
38354
38355         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
38356         when used in C++ mode.
38357
38358 2007-05-12  Bruno Haible  <bruno@clisp.org>
38359
38360         * lib/linebuffer.h: Tweak doc.
38361         * lib/linebuffer.c: Likewise.
38362
38363 2007-05-12  James Youngman  <jay@gnu.org>
38364
38365         * lib/linebuffer.c (readlinebuffer_delim): New function,
38366         like readlinebuffer, but use a caller-specified delimiter.
38367         (readlinebuffer): Just call readlinebuffer_delim with '\n'
38368         as the delimiter.
38369         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
38370
38371 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
38372
38373         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
38374         * modules/openat (Files): Remove openat-die.c.
38375         (Depends-on): Add openat-die.
38376         * modules/openat-die: New module.
38377
38378 2007-05-06  Bruno Haible  <bruno@clisp.org>
38379
38380         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
38381         Update with info about Cygwin.
38382         * doc/functions/fprintf.texi: Update.
38383         * doc/functions/printf.texi: Update.
38384         * doc/functions/snprintf.texi: Update.
38385         * doc/functions/sprintf.texi: Update.
38386         * doc/functions/vfprintf.texi: Update.
38387         * doc/functions/vprintf.texi: Update.
38388         * doc/functions/vsnprintf.texi: Update.
38389         * doc/functions/vsprintf.texi: Update.
38390         Reported by Eric Blake.
38391
38392 2007-05-06  Bruno Haible  <bruno@clisp.org>
38393
38394         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
38395         padding ourselves for the floating-point directives.
38396         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
38397         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
38398         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
38399         gl_PRINTF_FLAG_ZERO and test its result. Invoke
38400         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
38401         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
38402         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
38403         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
38404         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
38405         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
38406         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38407         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
38408         * tests/test-snprintf-posix.h (test_function): Also check the width
38409         and some flags in the %f directive.
38410         * tests/test-sprintf-posix.h (test_function): Likewise.
38411         * tests/test-vasnprintf-posix.c (test_function): Likewise.
38412         * tests/test-vasprintf-posix.c (test_function): Likewise.
38413         * doc/functions/fprintf.texi: Update.
38414         * doc/functions/printf.texi: Update.
38415         * doc/functions/snprintf.texi: Update.
38416         * doc/functions/sprintf.texi: Update.
38417         * doc/functions/vfprintf.texi: Update.
38418         * doc/functions/vprintf.texi: Update.
38419         * doc/functions/vsnprintf.texi: Update.
38420         * doc/functions/vsprintf.texi: Update.
38421
38422 2007-05-06  Bruno Haible  <bruno@clisp.org>
38423
38424         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
38425         pass the ' flag character to sprintf or snprintf.
38426         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
38427         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
38428         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
38429         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
38430         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
38431         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
38432         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
38433         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
38434         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
38435         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
38436         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38437         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
38438         * tests/test-snprintf-posix.h (test_function): Also check the grouping
38439         flag.
38440         * tests/test-sprintf-posix.h (test_function): Likewise.
38441         * tests/test-vasnprintf-posix.c (test_function): Likewise.
38442         * tests/test-vasprintf-posix.c (test_function): Likewise.
38443         * doc/functions/fprintf.texi: Update.
38444         * doc/functions/printf.texi: Update.
38445         * doc/functions/snprintf.texi: Update.
38446         * doc/functions/sprintf.texi: Update.
38447         * doc/functions/vfprintf.texi: Update.
38448         * doc/functions/vprintf.texi: Update.
38449         * doc/functions/vsnprintf.texi: Update.
38450         * doc/functions/vsprintf.texi: Update.
38451
38452 2007-05-01  Bruno Haible  <bruno@clisp.org>
38453
38454         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
38455
38456 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
38457
38458         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
38459         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
38460
38461 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
38462
38463         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
38464         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
38465         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
38466
38467 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
38468
38469         * lib/argp-help.c (struct hol_entry): New member `ord'.
38470         (HOL_ENTRY_PTRCMP): Use ord for comparison
38471         (hol_sort): Initialize ord.
38472
38473 2007-05-01  Bruno Haible  <bruno@clisp.org>
38474
38475         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
38476         Reported by Eric Blake.
38477         * doc/gnulib.texi (Function Substitutes): Update.
38478
38479 2007-05-01  Bruno Haible  <bruno@clisp.org>
38480
38481         * doc/functions.texi: Remove file, now redundant through
38482         doc/functions/*.texi.
38483
38484 2007-05-01  Bruno Haible  <bruno@clisp.org>
38485
38486         * modules/argp (Depends-on): Add sleep.
38487
38488 2007-05-01  Bruno Haible  <bruno@clisp.org>
38489
38490         * modules/sleep-tests: New file.
38491         * tests/test-sleep.c: New file.
38492
38493         * modules/sleep: New file.
38494         * lib/sleep.c: New file.
38495         * m4/sleep.m4: New file.
38496         * lib/unistd_.h (sleep): New declaration.
38497         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
38498         HAVE_SLEEP.
38499         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
38500         * doc/functions/sleep.texi: Document the sleep module.
38501
38502 2007-05-01  Bruno Haible  <bruno@clisp.org>
38503
38504         * lib/sigprocmask.h: Remove file.
38505         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
38506         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
38507         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
38508         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
38509         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
38510         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
38511         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
38512         HAVE_SIGSET_T as a shell variable.
38513         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
38514         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
38515         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
38516         (Depends-on): Add signal. Remove verify.
38517         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
38518         (Include): Mention <signal.h> instead of sigprocmask.h.
38519         * NEWS: Mention the change.
38520         * lib/fatal-signal.c: Don't include sigprocmask.h.
38521
38522 2007-05-01  Bruno Haible  <bruno@clisp.org>
38523
38524         * modules/signal: New file.
38525         * lib/signal_.h: New file.
38526         * m4/signal_h.m4: New file.
38527
38528 2007-05-01  Bruno Haible  <bruno@clisp.org>
38529
38530         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
38531         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
38532         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
38533         HAVE_WCTYPE_CTMP_BUG into wctype.h.
38534
38535 2007-05-01  Bruno Haible  <bruno@clisp.org>
38536
38537         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
38538         configure time.
38539         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
38540         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
38541         * modules/sys_stat (Makefile.am): Substitute their values into
38542         sys/stat.h.
38543
38544 2007-05-01  Bruno Haible  <bruno@clisp.org>
38545
38546         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
38547         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
38548         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
38549
38550 2007-05-01  Bruno Haible  <bruno@clisp.org>
38551
38552         * doc/header/assert.texi: Undo last change: don't mention the gnulib
38553         'assert' module here.
38554
38555 2007-05-01  Bruno Haible  <bruno@clisp.org>
38556
38557         * doc/functions/*.texi: New files.
38558         * doc/functions/google-ranking.txt: New file.
38559         * doc/gnulib.texi (Function Substitutes): New chapter.
38560         (ctime, inet_ntoa): Remove sections.
38561         * doc/ctime.texi: Remove file.
38562         * doc/inet_ntoa.texi: Remove file.
38563         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
38564         dependencies.
38565         (%.info): New rule, specifying a --reference-limit.
38566
38567 2007-05-01  Bruno Haible  <bruno@clisp.org>
38568
38569         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
38570
38571 2007-05-01  Bruno Haible  <bruno@clisp.org>
38572
38573         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
38574         the portability of 'mkdir' to mingw systems.
38575
38576 2007-05-01  Bruno Haible  <bruno@clisp.org>
38577
38578         * doc/headers/google-ranking.txt: New file.
38579
38580 2007-04-30  Eric Blake  <ebb9@byu.net>
38581
38582         Prefer fseeko to fseek.
38583         * modules/getpass (Depends-on): Add fseeko.
38584         * lib/getpass.c (getpass): Use fseeko, not fseek.
38585
38586 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
38587
38588         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
38589         assumes the sorting is stable, while most qsort implementations
38590         are not.  Use argument addresses to ensure they never compare as
38591         equal.
38592
38593         * tests/test-argp-2.sh (usage-indent test): Fix output
38594         (func_compare): Restore diff options
38595         * tests/test-argp.c: Restore #include "progname.h"
38596
38597 2007-04-29  Bruno Haible  <bruno@clisp.org>
38598
38599         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
38600         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
38601         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
38602         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38603         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
38604         (configure.ac): Define CHECK_SNPRINTF_POSIX.
38605         (TESTS, check_PROGRAMS): Add test-snprintf.
38606         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
38607         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
38608         (TESTS, check_PROGRAMS): Add test-vsnprintf.
38609         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
38610         assertions that fail on HP-UX, OSF/1, or IRIX.
38611         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
38612
38613 2007-04-29  Bruno Haible  <bruno@clisp.org>
38614
38615         * MODULES.html.sh (posix_functions): Remove 'contents'.
38616
38617 2007-04-29  Karl Berry  <karl@gnu.org>
38618
38619         * config/srclist.txt (gendocs_template_min): new entry.
38620
38621 2007-04-29  Bruno Haible  <bruno@clisp.org>
38622
38623         Work around fpurge bug on BSD systems.
38624         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
38625         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
38626         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
38627         fpurge to rpl_fpurge if the system already has this function.
38628         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
38629         the case where the system already has this function. Correct invariants
38630         on BSD systems.
38631         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
38632         BSD systems.
38633
38634 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
38635
38636         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
38637         proposed by Sven Verdoolaege.
38638
38639         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
38640         options.
38641         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
38642         (usage and help tests): Update
38643
38644 2007-04-29  Bruno Haible  <bruno@clisp.org>
38645
38646         * tests/test-fflush.c (main): Use a file of size 17, not 10.
38647         Print more information in case of failure. Disable a test on BeOS.
38648
38649 2007-04-29  Bruno Haible  <bruno@clisp.org>
38650
38651         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
38652         This helps debugging on systems on which no gdb is available.
38653
38654 2007-04-29  Bruno Haible  <bruno@clisp.org>
38655
38656         * lib/freading.h: Improve comments.
38657         * lib/fwriting.h: Likewise.
38658         * tests/test-freading.c (main): Don't check freading immediately after
38659         repositioning. Needed for glibc.
38660
38661 2007-04-29  Bruno Haible  <bruno@clisp.org>
38662
38663         * lib/freading.c (freading): Trivial simplification.
38664
38665 2007-04-28  Bruno Haible  <bruno@clisp.org>
38666
38667         * tests/test-fwriting.c (main): Also test the interaction between
38668         fflush and fwriting.
38669         * modules/fwriting-tests (Depends-on): Add fflush.
38670
38671         * tests/test-freading.c (main): Also test the interaction between
38672         fflush and freading.
38673         * modules/freading-tests (Depends-on): Add fflush.
38674
38675 2007-04-28  Bruno Haible  <bruno@clisp.org>
38676
38677         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
38678         fseeko and ftello.
38679         Suggested by Eric Blake.
38680
38681 2007-04-28  Jim Meyering  <jim@meyering.net>
38682
38683         Avoid false-negative in gl_STDINT_H's C99 conformance test.
38684         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
38685         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
38686
38687 2007-04-27  Eric Blake  <ebb9@byu.net>
38688
38689         * doc/headers/assert.texi (assert.h): Document assert module use.
38690
38691 2007-04-27  Bruno Haible  <bruno@clisp.org>
38692
38693         * doc/headers/*.texi: New files.
38694         * doc/gnulib.texi (Header File Substitutes): New chapter.
38695         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
38696         dependencies.
38697         (standards.info ,standards.html, standards.dvi): Update dependencies.
38698         (mostlyclean, clean): New targets.
38699
38700 2007-04-27  Bruno Haible  <bruno@clisp.org>
38701
38702         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
38703         * modules/sysexits (Files, Makefile.am): Update.
38704
38705         * lib/sys_socket_.h: Renamed from lib/socket_.h.
38706         * modules/sys_socket (Files, Makefile.am): Update.
38707
38708         * lib/sys_stat_.h: Renamed from lib/stat_.h.
38709         * modules/sys_stat (Files, Makefile.am): Update.
38710
38711 2007-04-27  Eric Blake  <ebb9@byu.net>
38712
38713         * lib/freading.h: Improve comments.
38714         * lib/fwriting.h: Likewise.
38715         * lib/fflush.c: Likewise.
38716
38717         Fix closein for mingw.
38718         * modules/closein-tests: Add tests for closein.
38719         * tests/test-closein.c: New file.
38720         * tests/test-closein.sh: Likewise.
38721         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
38722         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
38723
38724 2007-04-27  Bruno Haible  <bruno@clisp.org>
38725
38726         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
38727         version is < 6.
38728         * lib/math_.h [__DECC]: Likewise.
38729         * lib/stdio_.h [__DECC]: Likewise.
38730         * lib/stdlib_.h [__DECC]: Likewise.
38731         * lib/string_.h [__DECC]: Likewise.
38732         * lib/time_.h [__DECC]: Likewise.
38733         * lib/wchar_.h [__DECC]: Likewise.
38734         * lib/wctype_.h [__DECC]: Likewise.
38735
38736 2007-04-27  Bruno Haible  <bruno@clisp.org>
38737
38738         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
38739
38740 2007-04-27  Bruno Haible  <bruno@clisp.org>
38741
38742         * lib/fflush.c: Add comments.
38743         * modules/fpurge-tests (Depends-on): Add fflush.
38744         * modules/freadable-tests (Depends-on): Likewise.
38745         * modules/fwritable-tests (Depends-on): Likewise.
38746
38747 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
38748
38749         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
38750         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
38751         Report by Bruno Haible <bruno@clisp.org>.
38752
38753 2007-04-26  Eric Blake  <ebb9@byu.net>
38754
38755         Fix fflush on mingw.
38756         * modules/fflush (Depends-on): Add freading.
38757         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
38758         but unread data.
38759
38760 2007-04-26  Eric Blake  <ebb9@byu.net>
38761         and Bruno Haible  <bruno@clisp.org>
38762
38763         Implement freading and fwriting.
38764         * lib/freading.c: New file.
38765         * lib/freading.h: Likewise.
38766         * m4/freading.m4: Likewise.
38767         * modules/freading: Likewise.
38768         * modules/freading-tests: Likewise.
38769         * tests/test-freading.c: Likewise.
38770         * lib/fwriting.c: New file.
38771         * lib/fwriting.h: Likewise.
38772         * m4/fwriting.m4: Likewise.
38773         * modules/fwriting: Likewise.
38774         * modules/fwriting-tests: Likewise.
38775         * tests/test-fwriting.c: Likewise.
38776         * MODULES.html.sh (File stream based Input/Output): Mention them.
38777
38778 2007-04-26  Bruno Haible  <bruno@clisp.org>
38779
38780         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
38781         'long' when we assume it.
38782         Suggested by Eric Blake.
38783
38784 2007-04-26  Bruno Haible  <bruno@clisp.org>
38785
38786         Ensure fseeko, ftello are declared on glibc systems.
38787         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
38788         * modules/fseeko (configure.ac-early): Likewise.
38789         * modules/ftello (configure.ac-early): Likewise.
38790         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
38791         AC_FUNC_FSEEKO for this.
38792         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
38793         (gl_CHECK_FSEEKO): Remove macro.
38794
38795 2007-04-26  Bruno Haible  <bruno@clisp.org>
38796
38797         * tests/test-fflush.c (main): Also check the ftell result after
38798         fflush and fseek/fseeko.
38799         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
38800         file descriptor position cache in the stream.
38801         * lib/fseeko.c (rpl_fseeko): Likewise.
38802
38803 2007-04-26  Bruno Haible  <bruno@clisp.org>
38804
38805         * modules/fflush-tests (Depends-on): Add fseeko.
38806
38807 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
38808             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38809
38810         * lib/argz_.h: ensure error_t definition is obtained in same
38811         mechanism system argz.h would have.
38812         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
38813         argz facilities are known bad.  Err on the side of caution if
38814         cross-compiling.
38815
38816 2007-04-25  Eric Blake  <ebb9@byu.net>
38817
38818         * lib/fpurge.c (includes): Use stdlib.h for free.
38819         * tests/test-fflush.c (main): Also test fflush-fseeko.
38820
38821 2007-04-25  Bruno Haible  <bruno@clisp.org>
38822
38823         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
38824         * lib/fseeko.c: New file.
38825         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
38826         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
38827         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
38828         gl_FUNC_FSEEKO.
38829         (gl_FUNC_FSEEKO): Invoke it.
38830         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
38831         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
38832         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
38833
38834 2007-04-25  Bruno Haible  <bruno@clisp.org>
38835
38836         * modules/fflush (Depends-on): Add ftello.
38837
38838 2007-04-25  Bruno Haible  <bruno@clisp.org>
38839
38840         * modules/ftello-tests: New file.
38841         * tests/test-ftello.c: New file.
38842
38843         * modules/ftello: New file.
38844         * m4/ftello.m4: New file.
38845         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
38846         HAVE_FTELLO.
38847         * lib/stdio_.h (ftello): New declaration.
38848         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
38849         HAVE_FTELLO.
38850
38851 2007-04-25  Bruno Haible  <bruno@clisp.org>
38852
38853         * modules/fseeko-tests: New file.
38854         * tests/test-fseeko.c: New file.
38855
38856         * modules/fseeko: New file.
38857         * m4/fseeko.m4: New file.
38858         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
38859         HAVE_FSEEKO.
38860         * lib/stdio_.h (fseeko): New declaration.
38861         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
38862         HAVE_FSEEKO.
38863
38864 2007-04-25  Bruno Haible  <bruno@clisp.org>
38865
38866         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
38867
38868 2007-04-25  Bruno Haible  <bruno@clisp.org>
38869
38870         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
38871         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
38872         * tests/test-unistd.c: Likewise.
38873         * tests/test-fcntl.c: Likewise.
38874
38875 2007-04-23  Eric Blake  <ebb9@byu.net>
38876
38877         * lib/fflush.c: Fix missing include.
38878         Reported by Bruno Haible.
38879
38880 2007-04-23  Bruno Haible  <bruno@clisp.org>
38881
38882         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
38883         Reported by Eric Blake.
38884
38885 2007-04-23  Bruno Haible  <bruno@clisp.org>
38886
38887         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
38888
38889 2007-04-23  Bruno Haible  <bruno@clisp.org>
38890
38891         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
38892
38893 2007-04-23  Bruno Haible  <bruno@clisp.org>
38894
38895         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
38896         Needed on HP-UX 11.
38897
38898 2007-04-16  Eric Blake  <ebb9@byu.net>
38899
38900         Make fflush rely on fpurge.
38901         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
38902         open coding all variants.
38903         * modules/fflush (Depends-on): Add fpurge and unistd.
38904         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
38905         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
38906
38907         Fix --with-tests compilation on cygwin.
38908         * modules/argmatch-tests (Makefile.am): List gnulib library first
38909         in LDADD.
38910         * modules/argp-tests (Makefile.am): Likewise.
38911         * modules/array-list-tests (Makefile.am): Likewise.
38912         * modules/array-oset-tests (Makefile.am): Likewise.
38913         * modules/avltree-list-tests (Makefile.am): Likewise.
38914         * modules/avltree-oset-tests (Makefile.am): Likewise.
38915         * modules/avltreehash-list-tests (Makefile.am): Likewise.
38916         * modules/carray-list-tests (Makefile.am): Likewise.
38917         * modules/dirname-tests (Makefile.am): Likewise.
38918         * modules/frexp-tests (Makefile.am): Likewise.
38919         * modules/isnanl-tests (Makefile.am): Likewise.
38920         * modules/linked-list-tests (Makefile.am): Likewise.
38921         * modules/linkedhash-list-tests (Makefile.am): Likewise.
38922         * modules/lock-tests (Makefile.am): Likewise.
38923         * modules/rbtree-list-tests (Makefile.am): Likewise.
38924         * modules/rbtree-oset-tests (Makefile.am): Likewise.
38925         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
38926         * modules/tls-tests (Makefile.am): Likewise.
38927         * modules/tsearch-tests (Makefile.am): Likewise.
38928         * modules/xvasprintf-tests (Makefile.am): Likewise.
38929
38930         Fix fpurge for cygwin.
38931         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
38932         value.
38933         * modules/fpurge-tests (Depends-on): Clean up trash.
38934
38935 2007-04-16  Simon Josefsson  <simon@josefsson.org>
38936
38937         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
38938
38939         * m4/autobuild.m4: Re-indent.
38940
38941 2007-04-13  Bruno Haible  <bruno@clisp.org>
38942
38943         * modules/fpurge-tests: New file.
38944         * tests/test-fpurge.c: New file.
38945
38946         * modules/fpurge: New file.
38947         * lib/fpurge.h: New file.
38948         * lib/fpurge.c: New file.
38949         * m4/fpurge.m4: New file.
38950
38951 2007-04-13  Bruno Haible  <bruno@clisp.org>
38952
38953         * modules/fbufmode-tests: New file.
38954         * tests/test-fbufmode.c: New file.
38955
38956         * modules/fbufmode: New file.
38957         * lib/fbufmode.h: New file.
38958         * lib/fbufmode.c: New file.
38959         * m4/fbufmode.m4: New file.
38960
38961 2007-04-13  Bruno Haible  <bruno@clisp.org>
38962
38963         * modules/fwritable-tests: New file.
38964         * tests/test-fwritable.c: New file.
38965
38966         * modules/fwritable: New file.
38967         * lib/fwritable.h: New file.
38968         * lib/fwritable.c: New file.
38969         * m4/fwritable.m4: New file.
38970
38971 2007-04-13  Bruno Haible  <bruno@clisp.org>
38972
38973         * modules/freadable-tests: New file.
38974         * tests/test-freadable.c: New file.
38975
38976         * modules/freadable: New file.
38977         * lib/freadable.h: New file.
38978         * lib/freadable.c: New file.
38979         * m4/freadable.m4: New file.
38980
38981 2007-04-13  Bruno Haible  <bruno@clisp.org>
38982
38983         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
38984         MOSTLYCLEANFILES.
38985
38986 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
38987
38988         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
38989         gzip bootstrap.conf to avoid dragging in i18n machinery.
38990         (gnulib_tool_option): Use it.
38991
38992 2007-04-13  Bruno Haible  <bruno@clisp.org>
38993
38994         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
38995         %F directives.
38996         * tests/test-vasprintf-posix.c (test_function): Likewise.
38997         * tests/test-snprintf-posix.h (test_function): Likewise.
38998         * tests/test-sprintf-posix.h (test_function): Likewise.
38999         * tests/test-fprintf-posix.h (test_function): Likewise.
39000         * tests/test-printf-posix.h (test_function): Likewise.
39001         * tests/test-fprintf-posix.out: Likewise.
39002
39003 2007-04-13  Bruno Haible  <bruno@clisp.org>
39004
39005         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
39006         * modules/tls-tests (configure.ac): Likewise.
39007         Reported by Arto C. Nirkko <anirkko@insel.ch>.
39008
39009 2007-04-13  Bruno Haible  <bruno@clisp.org>
39010
39011         * lib/tls.c (glthread_tls_get): Fix return type.
39012         Patch by Arto C. Nirkko <anirkko@insel.ch>.
39013
39014 2007-04-12  Eric Blake  <ebb9@byu.net>
39015
39016         * modules/gettime (Depends-on): Remove gettime.
39017         Reported by Dmitry V. Levin.
39018
39019 2007-04-12  Bruno Haible  <bruno@clisp.org>
39020
39021         * modules/fflush (Include): Mention <stdio.h>.
39022         * modules/strtoimax (Include): Mention <inttypes.h>.
39023         * modules/strtoumax (Include): Likewise.
39024
39025 2007-04-12  Eric Blake  <ebb9@byu.net>
39026
39027         * .cvsignore: New file.
39028         * .gitignore: Likewise.
39029
39030 2007-04-12  Bruno Haible  <bruno@clisp.org>
39031
39032         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
39033         not before, since $(LDADD) often contains libgnu.a.
39034         * modules/striconv-tests (test_striconv_LDADD): Likewise.
39035         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
39036         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
39037         Needed on Cygwin.
39038
39039 2007-04-12  Eric Blake  <ebb9@byu.net>
39040
39041         Work around glibc's failure to flush stdin on fclose.
39042         * lib/closein.c (close_stdin): Flush stdin before closing.
39043
39044         Work around glibc's failure to reset seekable stdin on exit.
39045         * modules/closein: New module.
39046         * lib/closein.c: New file.
39047         * lib/closein.h: Likewise.
39048         * m4/closein.m4: Likewise.
39049         * MODULES.html.sh (File stream based Input/Output): Document it.
39050
39051 2007-04-12  Simon Josefsson  <simon@josefsson.org>
39052
39053         * gnulib-tool: Rename generated 'autobuild' script to
39054         'do-autobuild' in --create-megatestdir output.
39055
39056         * doc/gnulib.texi (Build robot for gnulib): Fix.
39057
39058 2007-04-12  Simon Josefsson  <simon@josefsson.org>
39059
39060         * modules/sysexits (Depends-on): Add absolute-header.
39061
39062 2007-04-12  Eric Blake  <ebb9@byu.net>
39063
39064         No need to preserve errno on success.
39065         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
39066         Reported by Bruno Haible.
39067
39068 2007-04-12  Simon Josefsson  <simon@josefsson.org>
39069
39070         * MODULES.html.sh (Support for maintaining and releasing
39071         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
39072
39073 2007-04-12  Simon Josefsson  <simon@josefsson.org>
39074
39075         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
39076
39077 2007-04-12  Simon Josefsson  <simon@josefsson.org>
39078
39079         * modules/autobuild: New module.
39080
39081         * m4/autobuild.m4: New file.
39082
39083 2007-04-11  Bruno Haible  <bruno@clisp.org>
39084
39085         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
39086         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
39087         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
39088         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
39089         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39090         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
39091         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
39092         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
39093         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
39094         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
39095         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
39096         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
39097         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
39098         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
39099         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
39100         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
39101         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
39102         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
39103         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
39104         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
39105         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
39106         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
39107         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
39108         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
39109         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
39110         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
39111         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
39112         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
39113         Reported by Eric Blake.
39114
39115 2007-04-11  Bruno Haible  <bruno@clisp.org>
39116
39117         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
39118
39119 2007-04-10  Bruno Haible  <bruno@clisp.org>
39120
39121         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
39122         for NaN and Infinity. Needed on FreeBSD 6.1.
39123         * tests/test-vasnprintf-posix.c (test_function): Undo last change
39124         regarding results for "%010a" of Infinity and NaN.
39125         * tests/test-vasprintf-posix.c (test_function): Likewise.
39126         * tests/test-snprintf-posix.h (test_function): Likewise.
39127         * tests/test-sprintf-posix.h (test_function): Likewise.
39128         * tests/test-fprintf-posix.h (test_function): Likewise.
39129         * tests/test-printf-posix.h (test_function): Likewise.
39130         * tests/test-fprintf-posix.out: Likewise.
39131
39132 2007-04-10  Bruno Haible  <bruno@clisp.org>
39133
39134         * modules/locale-tests: New file.
39135         * tests/test-locale.c: New file.
39136
39137         * modules/locale: New file.
39138         * lib/locale_.h: New file.
39139         * m4/locale_h.m4: New file.
39140
39141 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
39142             Bruno Haible  <bruno@clisp.org>
39143
39144         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
39145         be determined, test for availability of the copysignf, copysign,
39146         copysignl functions.
39147         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
39148         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
39149         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
39150
39151 2007-04-09  Eric Blake  <ebb9@byu.net>
39152
39153         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
39154         * modules/stdio (Makefile.am): Support fflush.
39155         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
39156         * modules/fflush: New file.
39157         * lib/fflush.c: Likewise.
39158         * m4/fflush.m4: Likewise.
39159         * modules/fflush-tests: New test.
39160         * tests/test-fflush.c: Likewise.
39161         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
39162
39163 2007-04-06  Bruno Haible  <bruno@clisp.org>
39164
39165         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
39166         (VASNPRINTF): Use signbit for faster determination whether to print a
39167         minus sign.
39168         * modules/vasnprintf (Files): Remove lib/float+.h.
39169         * modules/fprintf-posix (Depends-on): Add signbit.
39170         * modules/snprintf-posix (Depends-on): Likewise.
39171         * modules/sprintf-posix (Depends-on): Likewise.
39172         * modules/vasnprintf-posix (Depends-on): Likewise.
39173         * modules/vasprintf-posix (Depends-on): Likewise.
39174         * modules/vfprintf-posix (Depends-on): Likewise.
39175         * modules/vsnprintf-posix (Depends-on): Likewise.
39176         * modules/vsprintf-posix (Depends-on): Likewise.
39177
39178 2007-04-06  Bruno Haible  <bruno@clisp.org>
39179
39180         * tests/test-frexp.c (main): Test also the sign bit of zero results.
39181         * tests/test-frexpl.c (main): Likewise.
39182         * tests/test-ldexpl.c (main): Likewise.
39183         * modules/frexp-tests (Depends-on): Add signbit.
39184         * modules/frexpl-tests (Depdends-on): Likewise.
39185         * modules/ldexpl-tests (Depdends-on): Likewise.
39186
39187 2007-04-06  Bruno Haible  <bruno@clisp.org>
39188
39189         * modules/signbit-tests: New file.
39190         * tests/test-signbit.c: New file.
39191
39192         * modules/signbit: New file.
39193         * lib/signbitf.c: New file.
39194         * lib/signbitd.c: New file.
39195         * lib/signbitl.c: New file.
39196         * m4/signbit.m4: New file.
39197         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
39198         (signbit): New macro.
39199         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
39200         REPLACE_SIGNBIT.
39201         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
39202         REPLACE_FREXPL into math.h.
39203
39204 2007-04-06  Bruno Haible  <bruno@clisp.org>
39205
39206         * modules/isnanf-nolibm-tests: New file.
39207         * tests/test-isnanf.c: New file.
39208
39209         * modules/isnanf-nolibm: New file.
39210         * lib/isnanf.h: New file.
39211         * lib/isnanf.c: New file.
39212         * lib/isnan.c: Consider the USE_FLOAT macro.
39213         * m4/isnanf.m4: New file.
39214
39215 2007-04-06  Bruno Haible  <bruno@clisp.org>
39216
39217         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
39218         (Link): New section.
39219
39220         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
39221
39222 2007-04-06  Bruno Haible  <bruno@clisp.org>
39223
39224         Assume the 'long double' type.
39225         * m4/longdouble.m4: Remove file.
39226         * config/srclist.txt: Don't mention longdouble.m4.
39227         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
39228         * lib/float+.h: Likewise.
39229         * lib/frexp.c: Likewise.
39230         * lib/printf-args.h: Likewise.
39231         * lib/printf-args.c: Likewise.
39232         * lib/printf-frexp.c: Likewise.
39233         * lib/printf-parse.c: Likewise.
39234         * lib/vasnprintf.c: Likewise.
39235         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
39236         * m4/intl.m4: Likewise.
39237         * m4/isnanl.m4: Likewise.
39238         * m4/printf.m4: Likewise.
39239         * m4/printf-frexpl.m4: Likewise.
39240         * m4/vasnprintf.m4: Likewise.
39241         * modules/allocsa (Files): Remove m4/longdouble.m4.
39242         * modules/gettext (Files): Likewise.
39243         * modules/relocatable-prog-wrapper (Files): Likewise.
39244         * modules/vasnprintf (Files): Likewise.
39245         * modules/isnanl (Files): Likewise.
39246         (Include): Simplify.
39247         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
39248         (Include): Simplify.
39249         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
39250         (Include): Simplify.
39251         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
39252         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
39253         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
39254         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
39255         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
39256         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
39257         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
39258         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
39259         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
39260         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
39261         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
39262         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
39263         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
39264         * tests/test-isnanl.c: Likewise.
39265         * tests/test-snprintf-posix.h: Likewise.
39266         * tests/test-sprintf-posix.h: Likewise.
39267         * tests/test-vasnprintf-posix.c: Likewise.
39268         * tests/test-vasnprintf-posix2.c: Likewise.
39269         * tests/test-vasprintf-posix.c: Likewise.
39270
39271 2007-04-06  Bruno Haible  <bruno@clisp.org>
39272
39273         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
39274         * lib/math_.h [__DECC]: Include the overridden include file through
39275         #include_next, outside the double-inclusion guard.
39276         * lib/stdio_.h [__DECC]: Likewise.
39277         * lib/stdlib_.h [__DECC]: Likewise.
39278         * lib/string_.h [__DECC]: Likewise.
39279         * lib/time_.h [__DECC]: Likewise.
39280         * lib/wchar_.h [__DECC]: Likewise.
39281         * lib/wctype_.h [__DECC]: Likewise.
39282         * lib/inttypes_.h [__DECC]: Likewise.
39283         Reported by Albert Chin <china@thewrittenword.com> in
39284         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
39285
39286 2007-04-04  Eric Blake  <ebb9@byu.net>
39287
39288         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
39289         1.5.x.
39290
39291 2007-04-04  Bruno Haible  <bruno@clisp.org>
39292
39293         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
39294         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
39295
39296 2007-04-04  Bruno Haible  <bruno@clisp.org>
39297
39298         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
39299         results for "%010a" of Infinity and NaN.
39300         * tests/test-vasprintf-posix.c (test_function): Likewise.
39301         * tests/test-snprintf-posix.h (test_function): Likewise.
39302         * tests/test-sprintf-posix.h (test_function): Likewise.
39303         * tests/test-fprintf-posix.h (test_function): Remove these tests.
39304         * tests/test-printf-posix.h (test_function): Likewise.
39305         * tests/test-fprintf-posix.out: Update.
39306         Needed for FreeBSD 6.1.
39307
39308 2007-04-04  Bruno Haible  <bruno@clisp.org>
39309
39310         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
39311         directly used by the gnulib modules nor by gnulib-tool.
39312
39313 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
39314
39315         * DEPENDENCIES: Give overall description of version dependency
39316         desirability.  Use more-typical names for apps.
39317         Add shell, coreutils, diffutils, grep, tar, gzip.
39318
39319 2007-04-04  Simon Josefsson  <simon@josefsson.org>
39320
39321         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
39322
39323 2007-04-04  Karl Berry  <karl@gnu.org>
39324
39325         * MODULES.html.sh (func_module): missing '.
39326
39327 2007-04-03  Bruno Haible  <bruno@clisp.org>
39328
39329         * modules/argmatch-tests (Makefile.am): New variable
39330         test_argmatch_LDADD.
39331         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
39332         * modules/array-list-tests (Makefile.am): New variable
39333         test_array_list_LDADD.
39334         * modules/array-oset-tests (Makefile.am): New variable
39335         test_array_oset_LDADD.
39336         * modules/avltree-list-tests (Makefile.am): New variable
39337         test_avltree_list_LDADD.
39338         * modules/avltree-oset-tests (Makefile.am): New variable
39339         test_avltree_oset_LDADD.
39340         * modules/avltreehash-list-tests (Makefile.am): New variable
39341         test_avltreehash_list_LDADD.
39342         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
39343         test_canonicalize_lgpl_LDADD.
39344         * modules/carray-list-tests (Makefile.am): New variable
39345         test_carray_list_LDADD.
39346         * modules/dirname-tests (Makefile.am): New variable
39347         test_dirname_LDADD.
39348         * modules/linked-list-tests (Makefile.am): New variable
39349         test_linked_list_LDADD.
39350         * modules/linkedhash-list-tests (Makefile.am): New variable
39351         test_linkedhash_list_LDADD.
39352         * modules/rbtree-list-tests (Makefile.am): New variable
39353         test_rbtree_list_LDADD.
39354         * modules/rbtree-oset-tests (Makefile.am): New variable
39355         test_rbtree_oset_LDADD.
39356         * modules/rbtreehash-list-tests (Makefile.am): New variable
39357         test_rbtreehash_list_LDADD.
39358         * modules/xvasprintf-tests (Makefile.am): New variable
39359         test_xvasprintf_LDADD.
39360         Reported by Eric Blake.
39361
39362 2007-04-03  Eric Blake  <ebb9@byu.net>
39363
39364         * DEPENDENCIES: Weaken m4 requirements.
39365
39366 2007-04-03  Bruno Haible  <bruno@clisp.org>
39367
39368         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
39369         * modules/isnanl-tests (configure.ac): Likewise.
39370
39371 2007-04-03  Ben Pfaff  <blp@gnu.org>
39372
39373         * modules/iconv_open: Add $(srcdir)/ to source directory
39374         references in Makefile fragments that call gperf, to fix VPATH
39375         builds.
39376
39377 2007-04-03  Bruno Haible  <bruno@clisp.org>
39378
39379         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
39380         * lib/ldexpl.c: Undo last change.
39381
39382 2007-04-03  Bruno Haible  <bruno@clisp.org>
39383
39384         * modules/printf-frexpl (Depends-on): Undo last change.
39385         (Files): Add m4/ldexpl.m4.
39386
39387 2007-04-03  Bruno Haible  <bruno@clisp.org>
39388
39389         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
39390         * modules/isnanl (Link): New section.
39391
39392         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
39393         * modules/frexp (Link): New section.
39394
39395         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
39396         * modules/frexpl (Link): New section.
39397
39398         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
39399         * modules/ldexpl (Link): New section.
39400
39401 2007-04-03  Bruno Haible  <bruno@clisp.org>
39402
39403         * modules/TEMPLATE-EXTENDED: New file.
39404         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
39405
39406 2007-04-03  Bruno Haible  <bruno@clisp.org>
39407
39408         * DEPENDENCIES: New file.
39409         Suggested by Simon Josefsson.
39410
39411 2007-04-03  Bruno Haible  <bruno@clisp.org>
39412
39413         * doc/gnulib.texi: Escape @.
39414
39415 2007-04-03  James Youngman  <jay@gnu.org>
39416         and Paul Eggert  <eggert@cs.ucla.edu>
39417
39418         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
39419         birthtime on all systems that have birthtime, not just those which
39420         use st_birthtimensec rather than st_birthtim.  Putting zero in
39421         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
39422         that the birth time is not available for files on an NFS mount.
39423
39424 2007-04-03  Simon Josefsson  <simon@josefsson.org>
39425
39426         * modules/memxor: Move back from crypto/, suggested by Bruno.
39427         * modules/crypto/hmac-sha1: Fix memxor dependency.
39428
39429         * modules/crypto/gc: Moved from ../.
39430
39431 2007-04-02  Eric Blake  <ebb9@byu.net>
39432
39433         * lib/ldexpl.c (includes): Avoid libm.
39434
39435         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
39436
39437 2007-04-02  Bruno Haible  <bruno@clisp.org>
39438
39439         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
39440         on IRIX.
39441
39442 2007-04-02  Bruno Haible  <bruno@clisp.org>
39443
39444         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
39445         x86 or x86_64 platforms running MacOS X.
39446         Reported by Ryan Schmidt <@ryandesign.com>.
39447
39448 2007-04-02  Bruno Haible  <bruno@clisp.org>
39449
39450         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
39451         i386.
39452
39453 2007-04-01  Simon Josefsson  <simon@josefsson.org>
39454
39455         * modules/crypto/arcfour: Moved from ../.
39456         * modules/crypto/arcfour-tests: Moved from ../.
39457         * modules/crypto/arctwo: Moved from ../.
39458         * modules/crypto/arctwo-tests: Moved from ../.
39459         * modules/crypto/des: Moved from ../.
39460         * modules/crypto/des-tests: Moved from ../.
39461         * modules/crypto/gc-arcfour: Moved from ../.
39462         * modules/crypto/gc-arcfour-tests: Moved from ../.
39463         * modules/crypto/gc-arctwo: Moved from ../.
39464         * modules/crypto/gc-arctwo-tests: Moved from ../.
39465         * modules/crypto/gc-des: Moved from ../.
39466         * modules/crypto/gc-des-tests: Moved from ../.
39467         * modules/crypto/gc-hmac-md5: Moved from ../.
39468         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
39469         * modules/crypto/gc-hmac-sha1: Moved from ../.
39470         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
39471         * modules/crypto/gc-md2: Moved from ../.
39472         * modules/crypto/gc-md2-tests: Moved from ../.
39473         * modules/crypto/gc-md4: Moved from ../.
39474         * modules/crypto/gc-md4-tests: Moved from ../.
39475         * modules/crypto/gc-md5: Moved from ../.
39476         * modules/crypto/gc-md5-tests: Moved from ../.
39477         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
39478         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
39479         * modules/crypto/gc-random: Moved from ../.
39480         * modules/crypto/gc-rijndael: Moved from ../.
39481         * modules/crypto/gc-rijndael-tests: Moved from ../.
39482         * modules/crypto/gc-sha1: Moved from ../.
39483         * modules/crypto/gc-sha1-tests: Moved from ../.
39484         * modules/crypto/gc-tests: Moved from ../.
39485         * modules/crypto/hmac-md5: Moved from ../.
39486         * modules/crypto/hmac-md5-tests: Moved from ../.
39487         * modules/crypto/hmac-sha1: Moved from ../.
39488         * modules/crypto/hmac-sha1-tests: Moved from ../.
39489         * modules/crypto/md2: Moved from ../.
39490         * modules/crypto/md2-tests: Moved from ../.
39491         * modules/crypto/md4: Moved from ../.
39492         * modules/crypto/md4-tests: Moved from ../.
39493         * modules/crypto/md5: Moved from ../.
39494         * modules/crypto/md5-tests: Moved from ../.
39495         * modules/crypto/memxor: Moved from ../.
39496         * modules/crypto/rijndael: Moved from ../.
39497         * modules/crypto/rijndael-tests: Moved from ../.
39498         * modules/crypto/sha1: Moved from ../.
39499
39500 2007-03-30  James Youngman  <jay@gnu.org>
39501
39502         * tests/test-stat-time.c (prepare_test): use chmod() rather than
39503         rename() to change the ctime of a file (because ctime is unaffected
39504         by rename on jfs2 on AIX 5.1).
39505         (main): Start by doing cleanup, in case a previous run failed leaving
39506         test files behind.
39507
39508 2007-03-31  Bruno Haible  <bruno@clisp.org>
39509
39510         Support old proprietary implementations of iconv.
39511         * modules/iconv_open: New file.
39512         * lib/iconv_.h: New file.
39513         * m4/iconv_h.m4: New file.
39514         * lib/iconv_open.c: New file.
39515         * lib/iconv_open-aix.gperf: New file.
39516         * lib/iconv_open-hpux.gperf: New file.
39517         * lib/iconv_open-irix.gperf: New file.
39518         * lib/iconv_open-osf.gperf: New file.
39519         * m4/iconv_open.m4: New file.
39520         * modules/linebreak (Depends-on): Add iconv_open.
39521         * modules/striconv (Depends-on): Likewise.
39522         * modules/striconveh (Depends-on): Likewise.
39523         * modules/unicodeio (Depends-on): Likewise.
39524         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
39525         (iconv_t)(-1).
39526         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
39527         conversion if cd is (iconv_t)(-1).
39528         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
39529         is not possible.
39530
39531 2007-03-31  Bruno Haible  <bruno@clisp.org>
39532
39533         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
39534         work on Solaris either. Protect also second use of "autodetect_jp".
39535
39536 2007-03-31  Bruno Haible  <bruno@clisp.org>
39537
39538         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
39539         the function is not present.
39540
39541 2007-03-31  Bruno Haible  <bruno@clisp.org>
39542
39543         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
39544         the function is not present.
39545
39546 2007-03-31  Bruno Haible  <bruno@clisp.org>
39547
39548         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
39549         a bug in HP-UX iconv_open().
39550
39551 2007-03-31  Bruno Haible  <bruno@clisp.org>
39552
39553         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
39554         (Mathematics <math.h>): New section, add fpieee.
39555         (Input/output <stdio.h>): Add fseterr.
39556         (Mathematics <math.h>): New section, add printf-frexp.
39557         (Container data structures): Add sublist.
39558         (Core language properties): Add fpucw, inline.
39559         (Functions for greatest-width integer types <inttypes.h>): Add
39560         imaxabs, imaxdiv, inttypes.
39561         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
39562         isnanl-nolibm, ldexp.
39563         (Mathematics <math.h>): New section, add printf-frexpl.
39564         (Support for systems lacking POSIX:2001): Add fprintf-posix,
39565         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
39566         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
39567         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
39568         (Unicode string functions): Add unistr/u*-mbtoucr.
39569         (Java): Add javacomp-script, javaexec-script.
39570         (C#): Add csharpcomp-script, csharpexec-script.
39571         (Support for building libraries and executables): Add havelib,
39572         relocatable-*.
39573         (Support for maintaining and releasing projects): Renamed from
39574         'Support for maintaining and release projects'. Add announce-gen.
39575
39576 2007-03-31  Bruno Haible  <bruno@clisp.org>
39577
39578         * README: Talk primarily about git.
39579         (git and CVS): Renamed from CVS.
39580         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
39581         gnulib is available through git.
39582         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
39583
39584 2007-03-30  Bruno Haible  <bruno@clisp.org>
39585
39586         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
39587         * lib/poll_.h: Likewise.
39588         * lib/stat_.h: Likewise.
39589         * lib/sys_time_.h: Likewise.
39590         * lib/sysexit_.h: Likewise.
39591         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
39592         * lib/stdbool_.h: Likewise.
39593         * lib/byteswap_.h: Add double-inclusion guard.
39594
39595 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
39596
39597         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
39598
39599 2007-03-30  Karl Berry  <karl@gnu.org>
39600
39601         * config/srclist-update: double space after USA in the license
39602         substitution, since that's how it's usually (?) written.
39603
39604 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
39605
39606         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
39607         reported by Bruno Haible.
39608
39609 2007-03-29  Bruno Haible  <bruno@clisp.org>
39610
39611         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
39612         a bug in AIX iconv().
39613
39614 2007-03-29  Bruno Haible  <bruno@clisp.org>
39615
39616         * modules/ldexpl-tests: New file.
39617         * tests/test-ldexpl.c: New file.
39618
39619 2007-03-29  Bruno Haible  <bruno@clisp.org>
39620
39621         * lib/ldexpl.c: Include fpucw.h.
39622         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
39623         multiplication.
39624         * modules/ldexpl (Depends-on): Add fpucw.
39625
39626 2007-03-29  Bruno Haible  <bruno@clisp.org>
39627
39628         * modules/ldexpl: New file.
39629         * m4/ldexpl.m4: New file.
39630         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
39631         set.
39632         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
39633         REPLACE_LDEXPL.
39634         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
39635         REPLACE_LDEXPL.
39636         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
39637         gl_FUNC_LDEXPL_WORKS.
39638         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
39639         * modules/mathl (Files): Remove lib/ldexpl.c.
39640         (Depends-on): Add ldexpl.
39641
39642 2007-03-29  Bruno Haible  <bruno@clisp.org>
39643
39644         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
39645
39646 2007-03-29  Bruno Haible  <bruno@clisp.org>
39647
39648         * tests/test-striconveh.c (main): Don't assume that a direct conversion
39649         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
39650         and possibly also HP-UX.
39651         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
39652         work on AIX, IRIX, HP-UX, OSF/1.
39653         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
39654         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
39655         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
39656         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
39657         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
39658         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
39659
39660 2007-03-29  Bruno Haible  <bruno@clisp.org>
39661
39662         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
39663
39664 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
39665
39666         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
39667         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
39668
39669 2007-03-29  Eric Blake  <ebb9@byu.net>
39670
39671         * lib/acl-internal.h: Remove redundant include.
39672         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
39673         Cygwin when a file is locked.
39674
39675 2007-03-29  Bruno Haible  <bruno@clisp.org>
39676
39677         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
39678         file.
39679         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
39680
39681 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
39682
39683         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
39684         try to remove a parent directory if the child couldn't be removed
39685         (except for the first rmdir, which could fail because the child
39686         doesn't exist).  Problem reported by Jeff Blaine in
39687         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
39688
39689 2007-03-28  Bruno Haible  <bruno@clisp.org>
39690
39691         * lib/striconveh.c (utf8conv_carefully): New function.
39692         (mem_cd_iconveh_internal): Invoke it.
39693
39694 2007-03-28  Bruno Haible  <bruno@clisp.org>
39695
39696         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
39697         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
39698         input.
39699         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
39700         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
39701         unistr/u8-uctomb.
39702
39703 2007-03-28  Bruno Haible  <bruno@clisp.org>
39704
39705         * modules/unistr/u8-mbtoucr: New file.
39706         * lib/unistr/u8-mbtoucr.c: New file.
39707         * modules/unistr/u16-mbtoucr: New file.
39708         * lib/unistr/u16-mbtoucr.c: New file.
39709         * modules/unistr/u16-mbtoucr: New file.
39710         * lib/unistr/u16-mbtoucr.c: New file.
39711         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
39712
39713 2007-03-27  Simon Josefsson  <simon@josefsson.org>
39714             Bruno Haible  <bruno@clisp.org>
39715
39716         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
39717         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
39718         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
39719
39720         * m4/stdio_h.m4: Add stubs for vasprintf too.
39721
39722         * modules/stdio: Support vasprintf in sed command.
39723
39724         * modules/vasprintf: Depend on stdio for prototypes.  Remove
39725         vasprintf.h.  Add stdio module indicator.
39726
39727         * lib/stdio_.h: Declare asprintf and vasprintf, based on
39728         vasprintf.h.
39729
39730         * lib/vasprintf.h: File removed.
39731
39732         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
39733         * lib/vasprintf.c: Ditto.
39734         * lib/xvasprintf.c: Ditto.
39735         * tests/test-vasprintf-posix.c: Ditto.
39736         * tests/test-vasprintf.c: Ditto.
39737
39738 2007-03-27  Bruno Haible  <bruno@clisp.org>
39739
39740         Make vasnprintf multithread-safe.
39741         * lib/vasnprintf.c (decimal_point_char): New function.
39742         (VASNPRINTF): Use it.
39743         Suggested by Simon Josefsson.
39744
39745 2007-03-27  Eric Blake  <ebb9@byu.net>
39746
39747         Support sub-second birthtime on cygwin.
39748         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
39749         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
39750         (get_stat_birthtime): Also work with st_birthtim.
39751
39752 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
39753
39754         * lib/stat-time.h (USE_BIRTHTIME): Remove.
39755         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
39756         (get_stat_birthtime_ns): Do not try to use "spare" fields.
39757         (get_stat_birthtime_ns): Simplify compile-time tests.
39758         (get_stat_birthtime): Change the API to look like
39759         get_stat_mtime etc., except return a negative tv_nsec on error.
39760         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
39761         Don't check for "spare" fields.
39762         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
39763         or for struct stat.st_birthtime, as these tests aren't used.
39764         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
39765
39766 2007-03-27  Bruno Haible  <bruno@clisp.org>
39767
39768         * lib/stat-time.h: Include <sys/stat.h>.
39769
39770 2007-03-27  James Youngman  <jay@gnu.org>
39771
39772         * lib/stat-time.h (get_stat_birthtime): New function for
39773           retrieving st_birthtime as provided by UFS2 (hence *BSD).
39774         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
39775           and its variants.
39776         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
39777         * modules/stat-time-test: New file.
39778         * tests/test-stat-time.c: New test, devised by Bruno Haible.
39779
39780 2007-03-26  Bruno Haible  <bruno@clisp.org>
39781
39782         Better support of signalling NaNs.
39783         * lib/atanl.c: Include isnanl.h.
39784         (atanl): Perform test for NaN at the beginning of the function and
39785         through a call to isnanl.
39786         * lib/cosl.c: Include isnanl.h.
39787         (cosl): Perform test for NaN at the beginning of the function and
39788         through a call to isnanl.
39789         * lib/ldexpl.c: Include isnanl.h.
39790         (ldexpl): Perform test for NaN through a call to isnanl.
39791         * lib/logl.c: Include isnanl.h.
39792         (logl): Perform test for NaN at the beginning of the function and
39793         through a call to isnanl.
39794         * lib/sinl.c: Include isnanl.h.
39795         (sinl): Perform test for NaN at the beginning of the function and
39796         through a call to isnanl.
39797         * lib/sqrtl.c: Include isnanl.h.
39798         (sqrtl): Perform test for NaN at the beginning of the function and
39799         through a call to isnanl.
39800         * lib/tanl.c: Include isnanl.h.
39801         (tanl): Perform test for NaN at the beginning of the function and
39802         through a call to isnanl.
39803         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
39804         * modules/mathl (Depends-on): Add isnanl.
39805
39806 2007-03-26  Eric Blake  <ebb9@byu.net>
39807
39808         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
39809         regression in logic sense of previous patch.
39810
39811 2007-03-26  Bruno Haible  <bruno@clisp.org>
39812
39813         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
39814         unportable shell command "if ! ...".
39815         Reported by Ralf Wildenhues.
39816
39817 2007-03-25  Bruno Haible  <bruno@clisp.org>
39818
39819         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
39820         <sysexits.h> file, and only add EX_CONFIG.
39821         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
39822         absolute file name and whether it is sufficient. Substitute also
39823         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
39824         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
39825         ABSOLUTE_SYSEXITS_H into sysexits.h.
39826
39827 2007-03-25  Bruno Haible  <bruno@clisp.org>
39828
39829         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
39830         hints is NULL.
39831
39832 2007-03-25  Bruno Haible  <bruno@clisp.org>
39833
39834         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
39835         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
39836
39837 2007-03-25  Bruno Haible  <bruno@clisp.org>
39838
39839         * lib/vasnprintf.c: Include langinfo.h.
39840         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
39841         multithread-safe.
39842         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
39843         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
39844         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39845         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39846         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39847         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39848         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39849         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
39850         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39851         Reported by Simon Josefsson.
39852
39853 2007-03-25  Bruno Haible  <bruno@clisp.org>
39854
39855         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
39856         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
39857         * modules/vasnprintf (Depends-on): Add stdint.
39858
39859 2007-03-25  Bruno Haible  <bruno@clisp.org>
39860
39861         * modules/fpieee: New file.
39862         * m4/fpieee.m4: New file.
39863         * modules/isnan-nolibm (Depends-on): Add fpieee.
39864         * modules/isnanl-nolibm (Depends-on): Add fpieee.
39865         * modules/isnanl (Depends-on): Add fpieee.
39866
39867 2007-03-25  Bruno Haible  <bruno@clisp.org>
39868
39869         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
39870
39871 2007-03-25  Bruno Haible  <bruno@clisp.org>
39872
39873         Avoid test failures on IRIX 6.5.
39874         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
39875         (main): Use it.
39876         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
39877         macros.
39878         (main): Use them.
39879
39880 2007-03-25  Bruno Haible  <bruno@clisp.org>
39881
39882         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
39883         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
39884         exists but doesn't work.
39885         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
39886         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
39887         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
39888         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
39889
39890 2007-03-25  Bruno Haible  <bruno@clisp.org>
39891
39892         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
39893         returns inf. Needed on IRIX 6.5.
39894
39895 2007-03-25  Bruno Haible  <bruno@clisp.org>
39896
39897         * tests/test-frexpl.c: Include isnanl-nolibm.h.
39898         (main): Use isnanl instead of x != x idiom.
39899         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
39900
39901         * tests/test-frexp.c: Include isnan.h.
39902         (main): Use isnan instead of x != x idiom.
39903         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
39904
39905 2007-03-25  Bruno Haible  <bruno@clisp.org>
39906
39907         * tests/test-frexp.c (NaN): New function/macro.
39908         (main): Use it instead of 0.0 / 0.0.
39909         * tests/test-isnan.c (NaN): New function/macro.
39910         (main): Use it instead of 0.0 / 0.0.
39911         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
39912         (test_function): Use it instead of 0.0 / 0.0.
39913         * tests/test-vasprintf-posix.c (NaN): New function/macro.
39914         (test_function): Use it instead of 0.0 / 0.0.
39915         * tests/test-snprintf-posix.h (NaN): New function/macro.
39916         (test_function): Use it instead of 0.0 / 0.0.
39917         * tests/test-sprintf-posix.h (NaN): New function/macro.
39918         (test_function): Use it instead of 0.0 / 0.0.
39919         * tests/test-fprintf-posix.h (NaN): New function/macro.
39920         (test_function): Use it instead of 0.0 / 0.0.
39921         * tests/test-printf-posix.h (NaN): New function/macro.
39922         (test_function): Use it instead of 0.0 / 0.0.
39923
39924         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
39925
39926 2007-03-25  Bruno Haible  <bruno@clisp.org>
39927
39928         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
39929
39930 2007-03-25  Bruno Haible  <bruno@clisp.org>
39931
39932         * lib/regexec.c (merge_state_with_log): Make static.
39933
39934 2007-03-25  Bruno Haible  <bruno@clisp.org>
39935
39936         * lib/trigl.c (kernel_rem_pio2): Make static.
39937
39938 2007-03-25  Bruno Haible  <bruno@clisp.org>
39939
39940         * lib/sincosl.c (sincosl_table): Make static.
39941
39942 2007-03-25  Bruno Haible  <bruno@clisp.org>
39943
39944         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
39945         if the compiler does not support C99.
39946
39947 2007-03-25  Bruno Haible  <bruno@clisp.org>
39948
39949         * modules/time (Makefile.am): Ensure all rule action lines start with a
39950         tab.
39951
39952 2007-03-24  Bruno Haible  <bruno@clisp.org>
39953
39954         * modules/tsearch-tests: New file.
39955         * tests/test-tsearch.sh: New file.
39956         * tests/test-tsearch.c: New file, mostly copied from glibc.
39957
39958         * modules/search-tests: New file.
39959         * tests/test-search.c: New file.
39960
39961         * modules/search: New file.
39962         * lib/search_.h: New file, incorporating lib/tsearch.h.
39963         * m4/search_h.m4: New file.
39964         * lib/tsearch.h: Remove file.
39965         * lib/tsearch.c: Include search.h instead of tsearch.h.
39966         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
39967         HAVE_TSEARCH.
39968         * modules/tsearch (Files): Remove lib/tsearch.h.
39969         (Depends-on): Add search.
39970         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
39971         (Include): Change tsearch.h into search.h.
39972
39973 2007-03-24  Bruno Haible  <bruno@clisp.org>
39974
39975         * modules/fpucw: New file.
39976         * lib/fpucw.h: New file.
39977         * lib/frexp.c: Include fpucw.h.
39978         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
39979         (FUNC): Use them.
39980         * lib/printf-frexp.c: Include fpucw.h.
39981         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
39982         (FUNC): Use them.
39983         * lib/vasnprintf.c: Include fpucw.h.
39984         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
39985         'long double' calculations.
39986         * tests/test-frexpl.c: Include fpucw.h.
39987         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
39988         * tests/test-printf-frexpl.c: Include fpucw.h.
39989         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
39990         * modules/frexpl (Depends-on): Add fpucw.
39991         * modules/printf-frexpl (Depends-on): Likewise.
39992         * modules/fprintf-posix (Depends-on): Likewise.
39993         * modules/snprintf-posix (Depends-on): Likewise.
39994         * modules/sprintf-posix (Depends-on): Likewise.
39995         * modules/vasnprintf-posix (Depends-on): Likewise.
39996         * modules/vasprintf-posix (Depends-on): Likewise.
39997         * modules/vfprintf-posix (Depends-on): Likewise.
39998         * modules/vsnprintf-posix (Depends-on): Likewise.
39999         * modules/vsprintf-posix (Depends-on): Likewise.
40000         * modules/frexpl-tests (Depends-on): Likewise.
40001         * modules/printf-frexpl-tests (Depends-on): Likewise.
40002
40003 2007-03-24  Bruno Haible  <bruno@clisp.org>
40004
40005         * lib/float+.h: New file.
40006         * lib/isnan.c: Include float+.h.
40007         (SIZE): New macro.
40008         (FUNC): Compare only SIZE bytes of the value.
40009         * lib/vasnprintf.c: Include float+.h.
40010         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
40011         SIZEOF_LDBL or SIZEOF_DBL bytes.
40012         * modules/isnan-nolibm (Files): Add lib/float+.h.
40013         * modules/isnanl-nolibm (Files): Add lib/float+.h.
40014         * modules/isnanl (Files): Add lib/float+.h.
40015         * modules/vasnprintf (Files): Add lib/float+.h.
40016
40017 2007-03-24  Bruno Haible  <bruno@clisp.org>
40018
40019         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
40020         include isnanl-nolibm.h.
40021
40022 2007-03-24  Bruno Haible  <bruno@clisp.org>
40023
40024         * tests/test-read-file.c (main): Don't produce spurious output for
40025         expected situations. Make the test fail if it encountered unexpected
40026         results.
40027
40028 2007-03-24  Bruno Haible  <bruno@clisp.org>
40029
40030         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
40031         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
40032
40033 2007-03-24  Bruno Haible  <bruno@clisp.org>
40034
40035         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
40036
40037 2007-03-24  Bruno Haible  <bruno@clisp.org>
40038
40039         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
40040         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
40041
40042         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
40043         * modules/utf8-ucs4: Turn into a symbolic link to module
40044         unistr/u8-mbtouc.
40045
40046         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
40047         utf8-ucs4-unsafe.
40048         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
40049         unistr/u8-mbtouc-unsafe.
40050
40051         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
40052         * modules/utf16-ucs4: Turn into a symbolic link to module
40053         unistr/u16-mbtouc.
40054
40055         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
40056         utf16-ucs4-unsafe.
40057         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
40058         unistr/u16-mbtouc-unsafe.
40059
40060         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
40061         * modules/ucs4-utf8: Turn into a symbolic link to module
40062         unistr/u8-ubtomb.
40063
40064         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
40065         * modules/ucs4-utf16: Turn into a symbolic link to module
40066         unistr/u16-ubtomb.
40067
40068 2007-03-24  Bruno Haible  <bruno@clisp.org>
40069
40070         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
40071         Enable the function only if HAVE_INLINE.
40072         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
40073         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
40074         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
40075         Enable the function only if HAVE_INLINE.
40076         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
40077         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
40078         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
40079         Enable the function only if HAVE_INLINE.
40080         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
40081         Enable the function only if HAVE_INLINE.
40082         * modules/utf8-ucs4: Update.
40083         * modules/utf8-ucs4-unsafe: Update.
40084         * modules/utf16-ucs4: Update.
40085         * modules/utf16-ucs4-unsafe: Update.
40086         * modules/ucs4-utf8: Update.
40087         * modules/ucs4-utf16: Update.
40088
40089 2007-03-24  Bruno Haible  <bruno@clisp.org>
40090
40091         * lib/utf8-ucs4.h: Remove file.
40092         * lib/utf8-ucs4-unsafe.h: Remove file.
40093         * lib/utf16-ucs4.h: Remove file.
40094         * lib/utf16-ucs4-unsafe.h: Remove file.
40095         * lib/ucs4-utf8.h: Remove file.
40096         * lib/ucs4-utf16.h: Remove file.
40097         * lib/unistr.h: Include their previous contents.
40098         * m4/utf-ucs4.m4: Remove file.
40099         * m4/ucs4-utf.m4: Remove file.
40100         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
40101         (Depends-on): Add unistr/base.
40102         (configure.ac): Remove gl_UTF_UCS4.
40103         (Makefile.am): Update.
40104         (Include): Change to unistr.h.
40105         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
40106         (Depends-on): Add unistr/base.
40107         (configure.ac): Remove gl_UTF_UCS4.
40108         (Makefile.am): Update.
40109         (Include): Change to unistr.h.
40110         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
40111         (Depends-on): Add unistr/base.
40112         (configure.ac): Remove gl_UTF_UCS4.
40113         (Makefile.am): Update.
40114         (Include): Change to unistr.h.
40115         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
40116         (Depends-on): Add unistr/base.
40117         (configure.ac): Remove gl_UTF_UCS4.
40118         (Makefile.am): Update.
40119         (Include): Change to unistr.h.
40120         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
40121         (Depends-on): Add unistr/base.
40122         (configure.ac): Remove gl_UCS4_UTF.
40123         (Makefile.am): Update.
40124         (Include): Change to unistr.h.
40125         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
40126         (Depends-on): Add unistr/base.
40127         (configure.ac): Remove gl_UCS4_UTF.
40128         (Makefile.am): Update.
40129         (Include): Change to unistr.h.
40130         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
40131         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
40132         utf8-ucs4-unsafe.h.
40133         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
40134         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
40135         utf16-ucs4-unsafe.h.
40136         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
40137         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
40138         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
40139         * lib/unistr/u8-strchr.c: Likewise.
40140         * lib/unistr/u8-strrchr.c: Likewise.
40141         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
40142         * lib/unistr/u16-strchr.c: Likewise.
40143         * lib/unistr/u16-strrchr.c: Likewise.
40144         * lib/striconveh.c: Update.
40145         * lib/linebreak.c: Update.
40146
40147 2007-03-24  Bruno Haible  <bruno@clisp.org>
40148
40149         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
40150         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
40151
40152 2007-03-22  Bruno Haible  <bruno@clisp.org>
40153
40154         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
40155
40156 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
40157
40158         * MODULES.html.sh (File system functions): New module write-any-file.
40159         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
40160         * m4/write-any-file.m4: New files.
40161
40162 2007-03-23  Eric Blake  <ebb9@byu.net>
40163
40164         * gnulib-tool: Rearrange space-tab sequences, since some editors
40165         like to eat them.
40166
40167 2007-03-23  Eric Blake  <ebb9@byu.net>
40168
40169         * lib/version-etc.c (version_etc_va): Update license wording to
40170         be more concise.  Recommended by Richard Stallman.
40171
40172 2007-03-22  Bruno Haible  <bruno@clisp.org>
40173
40174         * lib/poll.c (MSG_PEEK): New fallback definition.
40175
40176 2007-03-22  Bruno Haible  <bruno@clisp.org>
40177
40178         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
40179         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
40180         (main): Update.
40181         Fixes a compilation error on BeOS.
40182
40183 2007-03-22  Bruno Haible  <bruno@clisp.org>
40184
40185         * modules/frexpl-tests: New file.
40186         * tests/test-frexpl.c: New file.
40187
40188         * modules/frexpl: New file.
40189         * m4/frexpl.m4: New file.
40190         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
40191         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
40192         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
40193         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
40194         (Depends-on): Add frexpl. Remove isnanl-nolibm.
40195         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
40196
40197 2007-03-22  Bruno Haible  <bruno@clisp.org>
40198
40199         * lib/frexpl.c: Share code with lib/frexp.c.
40200         * modules/mathl (Files): Add lib/frexp.c.
40201         (Depends-on): Add isnanl-nolibm.
40202
40203 2007-03-22  Bruno Haible  <bruno@clisp.org>
40204
40205         * modules/printf-frexp (Files): Add m4/frexp.m4.
40206         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
40207         only if the found frexp function actually works.
40208
40209 2007-03-22  Bruno Haible  <bruno@clisp.org>
40210
40211         * lib/frexp.c: Remove older implementation that uses divisions.
40212
40213 2007-03-21  Bruno Haible  <bruno@clisp.org>
40214
40215         * modules/frexp-tests: New file.
40216         * tests/test-frexp.c: New file.
40217
40218         * modules/frexp: New file.
40219         * lib/frexp.c: New file.
40220         * m4/frexp.m4: New file.
40221         * lib/math_.h (frexp): New declaration.
40222         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
40223         REPLACE_FREXP.
40224         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
40225
40226 2007-03-21  Bruno Haible  <bruno@clisp.org>
40227
40228         * modules/isnanl-tests: New file.
40229         * tests/test-isnanl.c: New file.
40230
40231         * modules/isnanl: New file.
40232         * lib/isnanl.h: New file.
40233         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
40234         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
40235         gl_FUNC_ISNANL_WORKS.
40236         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
40237         New macros.
40238
40239 2007-03-21  Bruno Haible  <bruno@clisp.org>
40240
40241         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
40242         lib/isnanl.h.
40243         (Include): Update.
40244         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
40245         * lib/vasnprintf.c: Update.
40246         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
40247         tests/test-isnanl.h, remove tests/test-isnanl.c.
40248         (Makefile.am): Update.
40249         * tests/test-isnanl-nolibm.c: New file.
40250         * tests/test-isnanl.h: New file.
40251         * tests/test-isnanl.c: Remove file.
40252
40253 2007-03-21  Jim Meyering  <jim@meyering.net>
40254
40255         When trying to open ".", treat ESTALE like EACCES.
40256         * lib/savewd.c (savewd_save): Resort to forking not just upon
40257         failure with EACCES, but also when errno is ESTALE.
40258
40259 2007-03-20  Bruno Haible  <bruno@clisp.org>
40260
40261         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
40262         Needed on AIX 5.1. Reported by Matthew Woehlke.
40263
40264 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
40265
40266         Suggestions by Bruno Haible:
40267         * lib/acl-internal.h: Include "gettext.h" rather than rolling
40268         our own.
40269         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
40270         * modules/acl (Depends-on): Add gettext.
40271
40272 2007-03-19  Bruno Haible  <bruno@clisp.org>
40273
40274         * modules/iconvme: Remove file.
40275         * lib/iconvme.h: Remove file.
40276         * lib/iconvme.c: Remove file.
40277         * m4/iconvme.m4: Remove file.
40278
40279 2007-03-19  Bruno Haible  <bruno@clisp.org>
40280
40281         * doc/relocatable-maint.texi: Break long shell script line.
40282         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
40283
40284 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
40285
40286         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
40287         handle file_has_acl.
40288         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
40289         * lib/acl.c: Move header inclusions and related macro defns into
40290         lib/acl-internal.h.
40291         (S_ISLNK): Remove defn, since that's now done for us.
40292         (file_has_acl): Move to lib/file-has-acl.c.
40293         Call acl_trivial if available.  This is the crucial part of the fix.
40294         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
40295         shared within the library.  Rewrite a bit, partly to make it compatible
40296         with the GNU coding style.
40297         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
40298         Remove unnecessary double-quotes.
40299         Don't test for acl_to_text; the build will catch that.
40300         Replace acl_entries if it doesn't exist and it is needed.
40301         Check for -lsec and acl_trivial (as used on Solaris 10).
40302         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
40303         lib/file-has-acl.c.
40304         (Depends-on): Add sys_stat, for S_ISLNK.
40305
40306 2007-03-19  Ben Pfaff  <blp@gnu.org>
40307
40308         * doc/gnulib.texi: Fix typos.
40309         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
40310
40311 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
40312
40313         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
40314         If size is zero here, buf must be zero.
40315
40316 2007-03-19  Simon Josefsson  <simon@josefsson.org>
40317
40318         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
40319         <bruno@clisp.org>.
40320
40321 2007-03-18  Bruno Haible  <bruno@clisp.org>
40322
40323         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
40324         Suggested by Eric Blake.
40325
40326 2007-03-18  Ben Pfaff  <blp@gnu.org>
40327
40328         * doc/relocatable.texi: Recommend using as prefix a directory
40329         that does not exist and will never be created.  Based on
40330         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
40331         and others.
40332
40333 2007-03-17  Bruno Haible  <bruno@clisp.org>
40334
40335         * lib/fchownat.c: Include lchown.h.
40336
40337 2007-03-17  Bruno Haible  <bruno@clisp.org>
40338
40339         Fix endless loop when the given allocated size was > INT_MAX.
40340         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
40341         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
40342         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
40343         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
40344         * lib/sprintf.c (sprintf): Likewise.
40345
40346 2007-03-17  Bruno Haible  <bruno@clisp.org>
40347
40348         * tests/test-argp-2.sh (func_compare): Output a context diff.
40349
40350 2007-03-17  Bruno Haible  <bruno@clisp.org>
40351
40352         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
40353         locale's decimal-point character.
40354
40355 2007-03-17  Bruno Haible  <bruno@clisp.org>
40356
40357         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
40358         before comparing it. Needed because on some platforms (e.g. x86) a
40359         'long double' occupies less bytes than sizeof (long double).
40360
40361 2007-03-17  Bruno Haible  <bruno@clisp.org>
40362
40363         * tests/test-crc.c (main): Make printf statements 64-bit clean.
40364         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
40365         * tests/test-getaddrinfo.c (simple): Likewise.
40366         * tests/test-read-file.c (main): Likewise.
40367
40368 2007-03-17  Bruno Haible  <bruno@clisp.org>
40369
40370         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
40371
40372 2007-03-17  Bruno Haible  <bruno@clisp.org>
40373
40374         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
40375         unused variable.
40376
40377 2007-03-17  Bruno Haible  <bruno@clisp.org>
40378
40379         * tests/test-c-strcasecmp.c: Include c-strcase.h.
40380         * tests/test-c-strncasecmp.c: Likewise.
40381
40382 2007-03-17  Bruno Haible  <bruno@clisp.org>
40383
40384         * modules/stdlib (Depends-on): Add unistd.
40385         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
40386         Needed for MacOS X 10.3.
40387
40388 2007-03-17  Bruno Haible  <bruno@clisp.org>
40389
40390         * lib/unistr/u-strdup.h: Include <stdlib.h>.
40391
40392 2007-03-17  Bruno Haible  <bruno@clisp.org>
40393
40394         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
40395
40396 2007-03-17  Bruno Haible  <bruno@clisp.org>
40397
40398         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
40399         to reflect files copied from gnulib (with or without modifications).
40400         Suggested by Jim Meyering.
40401
40402 2007-03-17  Eric Blake  <ebb9@byu.net>
40403
40404         * NEWS: Document stdlib change from 2007-02-18.
40405
40406 2007-03-17  Jim Meyering  <jim@meyering.net>
40407
40408         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
40409         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
40410         someone uses a name containing shell meta-characters.
40411         Reported by Alfred M. Szmidt.
40412
40413         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
40414
40415 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
40416
40417         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
40418         and copy gettext configuration files only if configure.ac contains
40419         a use of AM_GNU_GETTEXT_VERSION.
40420
40421 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
40422
40423         * build-aux/bootstrap (gnulib_name): New variable.
40424         (gnulib_tool_options): Use it.
40425
40426 2007-03-13  Simon Josefsson  <simon@josefsson.org>
40427
40428         * tests/test-des.c: Use new namespace.
40429
40430 2007-03-15  Bruno Haible  <bruno@clisp.org>
40431
40432         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
40433         Reported by James Youngman <jay@gnu.org>.
40434
40435 2007-03-15  Bruno Haible  <bruno@clisp.org>
40436
40437         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
40438         declared prototype. Needed with cc on OSF/1 5.1.
40439
40440 2007-03-15  Bruno Haible  <bruno@clisp.org>
40441
40442         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
40443         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
40444         (struct gl_list_implementation): Add dispose_fn argument to the
40445         'create_empty', 'create' methods.
40446         (struct gl_list_impl_base): Add field 'dispose_fn'.
40447         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
40448         argument.
40449         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
40450         dispose_fn argument.
40451         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
40452         dispose_fn on the dropped values.
40453         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
40454         dispose_fn argument.
40455         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
40456         dropped values.
40457         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
40458         (gl_tree_remove_node): Call dispose_fn on the dropped value.
40459         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
40460         (gl_tree_remove_node): Call dispose_fn on the dropped value.
40461         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
40462         argument.
40463         (gl_tree_list_free): Call dispose_fn on the dropped values.
40464         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
40465         the dropped values.
40466         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
40467         Add dispose_fn argument.
40468         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
40469         Call dispose_fn on the dropped values.
40470         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
40471         Add dispose_fn argument.
40472         (gl_sublist_create): Initialize the 'dispose_fn' field.
40473         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
40474         * tests/test-array_list.c (main): Update.
40475         * tests/test-carray_list.c (main): Update.
40476         * tests/test-avltree_list.c (main): Update.
40477         * tests/test-rbtree_list.c (main): Update.
40478         * tests/test-avltreehash_list.c (main): Update.
40479         * tests/test-rbtreehash_list.c (main): Update.
40480         * tests/test-linked_list.c (main): Update.
40481         * tests/test-linkedhash_list.c (main): Update.
40482         * tests/test-array_oset.c (main): Update.
40483
40484 2007-03-15  Bruno Haible  <bruno@clisp.org>
40485
40486         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
40487         (gl_oset_create_empty): Add dispose_fn argument.
40488         (struct gl_oset_implementation): Add dispose_fn argument to
40489         'create_empty' method.
40490         (struct gl_oset_impl_base): Add dispose_fn field.
40491         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
40492         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
40493         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
40494         values.
40495         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
40496         (gl_tree_oset_free): Call dispose_fn on the dropped values.
40497         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
40498         dropped value.
40499         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
40500         dropped value.
40501         * tests/test-array_oset.c (main): Update.
40502         * tests/test-avltree_oset.c (main): Update.
40503         * tests/test-rbtree_oset.c (main): Update.
40504         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
40505
40506 2007-03-13  Bruno Haible  <bruno@clisp.org>
40507
40508         * tests/test-stdbool.c (i): Update after last patch.
40509
40510 2007-03-12  Bruno Haible  <bruno@clisp.org>
40511
40512         * lib/quotearg.c: Include <wctype.h> early, before the definition of
40513         the iswprint macro. Needed on Solaris 2.5.1.
40514
40515 2007-03-12  Bruno Haible  <bruno@clisp.org>
40516
40517         * tests/test-printf-frexp.c (main): Declare x as volatile.
40518
40519 2007-03-12  Simon Josefsson  <simon@josefsson.org>
40520
40521         * doc/gnulib.texi (Build robot for gnulib): New section.
40522
40523 2007-03-12  Jim Meyering  <jim@meyering.net>
40524
40525         * build-aux/bootstrap: New file.
40526         * build-aux/bootstrap.conf: New file, from coreutils.
40527
40528 2007-03-11  Bruno Haible  <bruno@clisp.org>
40529
40530         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
40531
40532 2007-03-12  Simon Josefsson  <simon@josefsson.org>
40533
40534         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
40535         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
40536         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
40537
40538 2007-03-11  Bruno Haible  <bruno@clisp.org>
40539
40540         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
40541         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
40542
40543 2007-03-11  Bruno Haible  <bruno@clisp.org>
40544
40545         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
40546         formula. Needed for SunPRO C 5.0.
40547
40548 2007-03-11  Bruno Haible  <bruno@clisp.org>
40549
40550         * modules/long-options (Depends-on): Add getopt.
40551
40552 2007-03-11  Bruno Haible  <bruno@clisp.org>
40553
40554         * modules/modechange (Depends-on): Add stdbool.
40555
40556 2007-03-11  Bruno Haible  <bruno@clisp.org>
40557
40558         * modules/i-ring (Depends-on): Add stdbool.
40559
40560 2007-03-11  Bruno Haible  <bruno@clisp.org>
40561
40562         * modules/gc-des (Depends-on): Add stdbool.
40563
40564 2007-03-11  Bruno Haible  <bruno@clisp.org>
40565
40566         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
40567
40568 2007-03-11  Bruno Haible  <bruno@clisp.org>
40569
40570         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
40571
40572 2007-03-11  Bruno Haible  <bruno@clisp.org>
40573
40574         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
40575
40576 2007-03-11  Bruno Haible  <bruno@clisp.org>
40577
40578         * lib/vasnprintf.c (sprintf): Undefine.
40579
40580 2007-03-11  Bruno Haible  <bruno@clisp.org>
40581
40582         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
40583         initializers in SunPRO C and Compaq C compilers.
40584
40585 2007-03-11  Bruno Haible  <bruno@clisp.org>
40586
40587         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
40588         decrementing code ANSI C compliant.
40589
40590 2007-03-11  Bruno Haible  <bruno@clisp.org>
40591
40592         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
40593         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
40594
40595 2007-03-11  Bruno Haible  <bruno@clisp.org>
40596
40597         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
40598         <stdbool.h> substitute doesn't pass.
40599
40600 2007-03-11  Bruno Haible  <bruno@clisp.org>
40601
40602         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
40603
40604 2007-03-11  Bruno Haible  <bruno@clisp.org>
40605
40606         * gnulib-tool (func_create_megatestdir): Create also an autobuild
40607         script, for submission to autobuild.josefsson.org.
40608
40609 2007-03-10  Bruno Haible  <bruno@clisp.org>
40610
40611         * modules/canonicalize-lgpl-tests: New file.
40612         * tests/test-canonicalize-lgpl.sh: New file.
40613         * tests/test-canonicalize-lgpl.c: New file.
40614
40615         * modules/c-strcase-tests: New file.
40616         * tests/test-c-strcase.sh: New file.
40617         * tests/test-c-strcasecmp.c: New file.
40618         * tests/test-c-strncasecmp.c: New file.
40619
40620         * modules/atexit-tests: New file.
40621         * tests/test-atexit.sh: New file.
40622         * tests/test-atexit.c: New file.
40623
40624 2007-03-10  Bruno Haible  <bruno@clisp.org>
40625
40626         * tests/test-binary-io.sh: Use temporary filenames that are not so
40627         likely to clash with those of other tests (in a parallel make).
40628         * tests/test-binary-io.c: Likewise.
40629
40630 2007-03-10  Bruno Haible  <bruno@clisp.org>
40631
40632         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
40633         fallback; use #error instead.
40634         Suggested by Simon Josefsson.
40635
40636 2007-03-10  Bruno Haible  <bruno@clisp.org>
40637
40638         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
40639         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
40640         first and the last.
40641
40642 2007-03-10  Bruno Haible  <bruno@clisp.org>
40643
40644         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
40645
40646 2007-03-10  Bruno Haible  <bruno@clisp.org>
40647
40648         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
40649         "make distcheck".
40650         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
40651         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
40652         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
40653
40654 2007-03-10  Bruno Haible  <bruno@clisp.org>
40655
40656         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
40657         variable.
40658         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
40659         variable.
40660
40661 2007-03-09  Eric Blake  <ebb9@byu.net>
40662         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
40663
40664         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
40665         types are not being provided by gnulib.
40666         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
40667         types are supported.
40668
40669 2007-03-10  Bruno Haible  <bruno@clisp.org>
40670
40671         * lib/stdio_.h (__attribute__): New macro.
40672         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
40673         vsprintf): Specify __attribute__ __format__ for GCC.
40674         Suggested by Eric Blake.
40675
40676 2007-03-09  Bruno Haible  <bruno@clisp.org>
40677
40678         * modules/printf-posix-tests: New file.
40679         * tests/test-printf-posix.sh: New file.
40680         * tests/test-printf-posix.c: New file.
40681
40682         * modules/printf-posix: New file.
40683         * lib/printf.c: New file.
40684         * m4/printf-posix-rpl.m4: New file.
40685         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
40686         REPLACE_PRINTF.
40687         * lib/stdio_.h (printf): New declaration.
40688         (format, __format__, ____printf____, ____scanf____, ____strftime____,
40689         ____strfmon____): New macros.
40690         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
40691         REPLACE_PRINTF.
40692
40693 2007-03-09  Bruno Haible  <bruno@clisp.org>
40694
40695         * tests/test-vasnprintf-posix2.sh: New file.
40696         * tests/test-vasnprintf-posix2.c: New file.
40697         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
40698         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
40699         (Makefile.am): Activate test-vasnprintf-posix2.sh.
40700
40701         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
40702         a locale dependent decimal point, rather than always '.'.
40703
40704 2007-03-09  Eric Blake  <ebb9@byu.net>
40705
40706         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
40707         spite of platforms like Tandem/NSK that define it to -1.
40708
40709 2007-03-08  Bruno Haible  <bruno@clisp.org>
40710
40711         * modules/vprintf-posix-tests: New file.
40712         * tests/test-vprintf-posix.sh: New file.
40713         * tests/test-vprintf-posix.c: New file.
40714         * tests/test-printf-posix.h: New file.
40715
40716         * modules/vprintf-posix: New file.
40717         * lib/vprintf.c: New file.
40718         * m4/vprintf-posix.m4: New file.
40719         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
40720         REPLACE_VPRINTF.
40721         * lib/stdio_.h (vprintf): New declaration.
40722         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
40723         REPLACE_VPRINTF.
40724
40725 2007-03-08  Bruno Haible  <bruno@clisp.org>
40726
40727         * modules/fprintf-posix-tests: New file.
40728         * tests/test-fprintf-posix.sh: New file.
40729         * tests/test-fprintf-posix.c: New file.
40730
40731         * modules/fprintf-posix: New file.
40732         * lib/fprintf.c: New file.
40733         * m4/fprintf-posix.m4: New file.
40734         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
40735         REPLACE_FPRINTF.
40736         * lib/stdio_.h (fprintf): New declaration.
40737         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
40738         REPLACE_FPRINTF.
40739
40740 2007-03-08  Bruno Haible  <bruno@clisp.org>
40741
40742         * modules/vfprintf-posix-tests: New file.
40743         * tests/test-vfprintf-posix.sh: New file.
40744         * tests/test-vfprintf-posix.c: New file.
40745         * tests/test-fprintf-posix.h: New file.
40746         * tests/test-fprintf-posix.out: New file.
40747
40748         * modules/vfprintf-posix: New file.
40749         * lib/vfprintf.c: New file.
40750         * m4/vfprintf-posix.m4: New file.
40751         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
40752         REPLACE_VFPRINTF.
40753         * lib/stdio_.h (vfprintf): New declaration.
40754         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
40755         REPLACE_VFPRINTF.
40756
40757 2007-03-08  Bruno Haible  <bruno@clisp.org>
40758
40759         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
40760
40761 2007-03-08  Bruno Haible  <bruno@clisp.org>
40762
40763         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
40764         instead of 'expr' invocations.
40765         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40766         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40767         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40768         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40769         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40770         Suggested by Paul Eggert.
40771
40772 2007-03-08  Bruno Haible  <bruno@clisp.org>
40773
40774         * modules/fseterr-tests: New file.
40775         * tests/test-fseterr.c: New file.
40776
40777         * modules/fseterr: New file.
40778         * lib/fseterr.h: New file.
40779         * lib/fseterr.c: New file.
40780
40781 2007-03-08  Bruno Haible  <bruno@clisp.org>
40782
40783         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
40784         * lib/getopt_.h: Likewise.
40785         * lib/mbswidth.h: Likewise.
40786         * lib/setenv.h: Likewise.
40787         * lib/vasnprintf.h: Likewise.
40788         * lib/vasprintf.h: Likewise.
40789         * lib/verror.h: Likewise.
40790         * lib/xsetenv.h: Likewise.
40791         * lib/xvasprintf.h: Likewise.
40792
40793 2007-03-08  Jim Meyering  <jim@meyering.net>
40794
40795         * users.txt: Add parted.
40796
40797         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
40798
40799 2007-03-07  Bruno Haible  <bruno@clisp.org>
40800
40801         * m4/printf.m4: Make the shell script snippets copy&pastable.
40802
40803 2007-03-02  Bruno Haible  <bruno@clisp.org>
40804
40805         * lib/netinet_in_.h: New file.
40806         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
40807         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
40808         * modules/netinet_in (Files): Add lib/netinet_in_.h.
40809         (Depends-on): Add absolute-header.
40810         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
40811         into netinet/in.h.
40812
40813 2007-03-03  Bruno Haible  <bruno@clisp.org>
40814
40815         * lib/sys_select_.h: New file.
40816         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
40817         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
40818         * modules/sys_select (Files): Add lib/sys_select_.h.
40819         (Depends-on): Add absolute-header.
40820         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
40821         into sys/select.h.
40822
40823 2007-03-02  Bruno Haible  <bruno@clisp.org>
40824
40825         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
40826         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
40827         values.
40828         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
40829         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
40830         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
40831         * modules/sys_socket (Depends-on): Add absolute-header.
40832         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
40833         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
40834         (Include): Remove requirement of inclusion of <sys/types.h>.
40835
40836 2007-03-02  Bruno Haible  <bruno@clisp.org>
40837
40838         * lib/byteswap_.h (bswap_32): Fix formula.
40839
40840 2007-03-06  Bruno Haible  <bruno@clisp.org>
40841
40842         * modules/sprintf-posix-tests: New file.
40843         * tests/test-sprintf-posix.c: New file.
40844
40845         * modules/sprintf-posix: New file.
40846         * lib/sprintf.c: New file.
40847         * m4/sprintf-posix.m4: New file.
40848         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
40849         REPLACE_SPRINTF.
40850         * lib/stdio_.h (sprintf): New declaration.
40851         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
40852         REPLACE_SPRINTF.
40853
40854 2007-03-06  Bruno Haible  <bruno@clisp.org>
40855
40856         * modules/vsprintf-posix-tests: New file.
40857         * tests/test-vsprintf-posix.c: New file.
40858         * tests/test-sprintf-posix.h: New file.
40859
40860         * modules/vsprintf-posix: New file.
40861         * lib/vsprintf.c: New file.
40862         * m4/vsprintf-posix.m4: New file.
40863         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
40864         REPLACE_VSPRINTF.
40865         * lib/stdio_.h (vsprintf): New declaration.
40866         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
40867         REPLACE_VSPRINTF.
40868
40869 2007-03-06  Bruno Haible  <bruno@clisp.org>
40870
40871         * modules/vsnprintf (Depend-on): Remove minmax.
40872
40873 2007-03-06  Bruno Haible  <bruno@clisp.org>
40874
40875         * modules/snprintf-posix-tests: New file.
40876         * tests/test-snprintf-posix.c: New file.
40877
40878         * modules/snprintf-posix: New file.
40879         * m4/snprintf-posix.m4: New file.
40880         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
40881         gl_FUNC_SNPRINTF.
40882         (gl_FUNC_SNPRINTF): Invoke it.
40883         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
40884         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
40885         is set.
40886         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
40887
40888 2007-03-06  Bruno Haible  <bruno@clisp.org>
40889
40890         * modules/vsnprintf-posix-tests: New file.
40891         * tests/test-vsnprintf-posix.c: New file.
40892         * tests/test-snprintf-posix.h: New file.
40893
40894         * modules/vsnprintf-posix: New file.
40895         * m4/vsnprintf-posix.m4: New file.
40896         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
40897         gl_FUNC_VSNPRINTF.
40898         (gl_FUNC_VSNPRINTF): Invoke it.
40899         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
40900         * lib/stdio_.h (vsnprintf): Define as a replacement if
40901         REPLACE_VSNPRINTF is set.
40902         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
40903
40904 2007-03-06  Bruno Haible  <bruno@clisp.org>
40905
40906         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
40907         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
40908
40909 2007-03-06  Bruno Haible  <bruno@clisp.org>
40910
40911         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
40912         (asinl): Declare also if HAVE_DECL_ASINL is set.
40913         (atanl): Declare also if HAVE_DECL_ATANL is set.
40914         (ceill): Declare also if HAVE_DECL_CEILL is set.
40915         (cosl): Declare also if HAVE_DECL_COSL is set.
40916         (expl): Declare also if HAVE_DECL_EXPL is set.
40917         (floorl): Declare also if HAVE_DECL_FLOORL is set.
40918         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
40919         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
40920         (logl): Declare also if HAVE_DECL_LOGL is set.
40921         (sinl): Declare also if HAVE_DECL_SINL is set.
40922         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
40923         (tanl): Declare also if HAVE_DECL_TANL is set.
40924         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
40925         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
40926         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
40927         declaration of frexpl, ldexpl.
40928         * modules/printf-frexpl (Depends-on): Add math.
40929         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
40930
40931 2007-03-05  Bruno Haible  <bruno@clisp.org>
40932
40933         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
40934         frexpl and ldexpl are declared.
40935         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
40936
40937 2007-03-05  Bruno Haible  <bruno@clisp.org>
40938
40939         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
40940         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
40941
40942 2007-03-05  Bruno Haible  <bruno@clisp.org>
40943
40944         * lib/stdio_.h: Include <stddef.h>.
40945
40946 2007-03-05  Bruno Haible  <bruno@clisp.org>
40947
40948         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
40949
40950 2007-03-05  Bruno Haible  <bruno@clisp.org>
40951
40952         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
40953         NetBSD 4, from Ralf Wildenhues.
40954
40955 2007-03-04  Bruno Haible  <bruno@clisp.org>
40956
40957         * lib/vasprintf.h: Update #if logic for the case when the functions
40958         exist but are overridden.
40959
40960 2007-03-04  Bruno Haible  <bruno@clisp.org>
40961
40962         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
40963         implementations: glibc-2.4 and MacOS X 10.3.
40964         * tests/test-vasnprintf-posix.c (test_function): Test also the case
40965         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
40966         * tests/test-vasprintf-posix.c (test_function): Likewise.
40967
40968 2007-03-04  Bruno Haible  <bruno@clisp.org>
40969
40970         * modules/vasprintf-posix-tests: New file.
40971         * tests/test-vasprintf-posix.c: New file.
40972
40973         * modules/vasprintf-posix: New file.
40974         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
40975         defined.
40976         * m4/vasprintf-posix.m4: New file.
40977         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
40978         gl_FUNC_VASPRINTF.
40979         (gl_FUNC_VASPRINTF): Invoke it.
40980         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
40981         here.
40982         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
40983
40984 2007-03-04  Bruno Haible  <bruno@clisp.org>
40985
40986         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
40987         REPLACE_GETTIMEOFDAY.
40988         * modules/sys_time (Makefile.am): Likewise.
40989         * m4/sys_time_h.m4: Likewise.
40990         * m4/gettimeofday.m4: Likewise.
40991
40992 2007-03-04  Bruno Haible  <bruno@clisp.org>
40993
40994         * modules/vasnprintf-posix-tests: New file.
40995         * tests/test-vasnprintf-posix.c: New file.
40996
40997         * modules/vasnprintf-posix: New file.
40998         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
40999         printf-frexpl.h.
41000         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
41001         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
41002         REPLACE_VASNPRINTF is defined.
41003         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
41004         gl_FUNC_VASNPRINTF.
41005         (gl_FUNC_VASNPRINTF): Invoke it.
41006         * m4/vasnprintf-posix.m4: New file.
41007         * m4/printf.m4: New file.
41008
41009 2007-03-04  Bruno Haible  <bruno@clisp.org>
41010
41011         Compile progreloc.c only if --enable-relocatable is specified.
41012         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
41013         if --enable-relocatable was specified.
41014         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
41015         lib_SOURCES.
41016
41017 2007-03-04  Jim Meyering  <jim@meyering.net>
41018
41019         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
41020         Use it consistently, rather than enumerating errno constants.
41021
41022 2007-03-04  Bruno Haible  <bruno@clisp.org>
41023
41024         * modules/xvasprintf-tests: New file.
41025         * tests/test-xvasprintf.c: New file.
41026
41027         * modules/vasprintf-tests: New file.
41028         * tests/test-vasprintf.c: New file.
41029
41030         * modules/vasnprintf-tests: New file.
41031         * tests/test-vasnprintf.c: New file.
41032
41033         * modules/vsnprintf-tests: New file.
41034         * tests/test-vsnprintf.c: New file.
41035
41036         * modules/snprintf-tests: New file.
41037         * tests/test-snprintf.c: New file.
41038
41039 2007-03-04  Bruno Haible  <bruno@clisp.org>
41040
41041         Compile relocatable.c only if --enable-relocatable is specified.
41042         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
41043         gl_RELOCATABLE_LIBRARY.
41044         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
41045         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
41046         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
41047         gl_RELOCATABLE_LIBRARY.
41048         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
41049         (Makefile.am): Remove lib_SOURCES.
41050         * modules/relocatable-lib-lgpl (configure.ac): Invoke
41051         gl_RELOCATABLE_LIBRARY.
41052         (Makefile.am): Remove lib_SOURCES.
41053         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
41054         always.
41055         * modules/relocatable-prog-wrapper (configure.ac): Invoke
41056         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
41057
41058 2007-03-04  Bruno Haible  <bruno@clisp.org>
41059
41060         * modules/argmatch-tests: New file.
41061         * tests/test-argmatch.c: New file.
41062
41063         * tests/test-allocsa.c (main): Halve the number of loop runs.
41064
41065         * modules/alloca-opt-tests: New file.
41066         * tests/test-alloca-opt.c: New file.
41067
41068 2007-03-04  Jim Meyering  <jim@meyering.net>
41069
41070         Work around difference between Linux ACLs and Solaris 10 ZFS.
41071         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
41072         for EINVAL.
41073
41074 2007-03-03  Bruno Haible  <bruno@clisp.org>
41075
41076         * modules/relocatable-prog (Depends-on): Add back progreloc's
41077         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
41078
41079 2007-03-03  Bruno Haible  <bruno@clisp.org>
41080
41081         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
41082         * modules/relocatable-lib: New file.
41083
41084 2007-03-03  Bruno Haible  <bruno@clisp.org>
41085
41086         * modules/relocatable-prog: Renamed from modules/relocatable.
41087         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
41088
41089 2007-03-03  Bruno Haible  <bruno@clisp.org>
41090
41091         * modules/relocatable-script (Files): Add doc/relocatable.texi,
41092         m4/relocatable-lib.m4.
41093         (Depends-on): Remove 'relocatable'.
41094         (configure.ac): Add gl_RELOCATABLE_NOP.
41095
41096 2007-03-03  Bruno Haible  <bruno@clisp.org>
41097
41098         * modules/relocatable-prog-wrapper: New file.
41099         * modules/relocatable (Depends-on): Add it. Remove all other
41100         dependencies except progname.
41101         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
41102
41103         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
41104         (gl_FUNC_STRERROR): Nop.
41105         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
41106
41107         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
41108         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
41109
41110         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
41111         (gl_FUNC_READLINK): Update.
41112
41113         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
41114
41115 2007-03-03  Bruno Haible  <bruno@clisp.org>
41116
41117         * lib/xreadlink.c: Include <unistd.h> unconditionally.
41118         * modules/xreadlink (Depends-on): Add unistd.
41119         * modules/xreadlink-with-size (Depends-on): Likewise.
41120
41121 2007-03-03  Bruno Haible  <bruno@clisp.org>
41122
41123         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
41124         extracted from gt_FUNC_SETENV.
41125         (gt_FUNC_SETENV): Remove macro.
41126         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
41127         remove gt_FUNC_SETENV.
41128
41129 2007-03-03  Bruno Haible  <bruno@clisp.org>
41130
41131         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
41132         ENABLE_RELOCATABLE here.
41133         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
41134
41135 2007-03-03  Bruno Haible  <bruno@clisp.org>
41136
41137         * modules/rbtreehash-list-tests (Depends-on): Add progname.
41138         * tests/test-rbtreehash_list.c: Include progname.h.
41139         (main): Call set_program_name.
41140
41141         * modules/rbtree-oset-tests (Depends-on): Add progname.
41142         * tests/test-rbtree_oset.c: Include progname.h.
41143         (main): Call set_program_name.
41144
41145         * modules/rbtree-list-tests (Depends-on): Add progname.
41146         * tests/test-rbtree_list.c: Include progname.h.
41147         (main): Call set_program_name.
41148
41149         * modules/linked-list-tests (Depends-on): Add progname.
41150         * tests/test-linked_list.c: Include progname.h.
41151         (main): Call set_program_name.
41152
41153 2007-03-03  Bruno Haible  <bruno@clisp.org>
41154
41155         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
41156         All uses of __restrict changed to _Restrict_.
41157         * lib/glob_.h (__restrict): Remove macro.
41158
41159 2007-03-02  Bruno Haible  <bruno@clisp.org>
41160
41161         * modules/gettext (configure.ac): Require gettext infrastructure
41162         from version 0.16.1.
41163
41164 2007-03-02  Bruno Haible  <bruno@clisp.org>
41165
41166         * modules/linkedhash-list-tests (Depends-on): Add progname.
41167         * tests/test-linkedhash_list.c: Include progname.h.
41168         (main): Call set_program_name.
41169
41170         * modules/carray-list-tests (Depends-on): Add progname.
41171         * tests/test-carray_list.c: Include progname.h.
41172         (main): Call set_program_name.
41173
41174         * modules/avltreehash-list-tests (Depends-on): Add progname.
41175         * tests/test-avltreehash_list.c: Include progname.h.
41176         (main): Call set_program_name.
41177
41178         * modules/avltree-oset-tests (Depends-on): Add progname.
41179         * tests/test-avltree_oset.c: Include progname.h.
41180         (main): Call set_program_name.
41181
41182         * modules/avltree-list-tests (Depends-on): Add progname.
41183         * tests/test-avltree_list.c: Include progname.h.
41184         (main): Call set_program_name.
41185
41186         * modules/array-oset-tests (Depends-on): Add progname.
41187         * tests/test-array_oset.c: Include progname.h.
41188         (main): Call set_program_name.
41189
41190         * modules/array-list-tests (Depends-on): Add progname.
41191         * tests/test-array_list.c: Include progname.h.
41192         (main): Call set_program_name.
41193
41194         * modules/argp-tests (Depends-on): Add progname.
41195         * tests/test-argp.c: Include argp.h first. Include progname.h.
41196         (main): Call set_program_name.
41197
41198 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
41199
41200         * doc/gnulib-tool.texi (Initial import): Reword description of
41201         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
41202         limited effect even if defined after the first system include.
41203
41204 2007-03-01  Bruno Haible  <bruno@clisp.org>
41205
41206         * build-aux/config.libpath: Update to libtool-1.5.22.
41207         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41208
41209 2007-03-01  Bruno Haible  <bruno@clisp.org>
41210
41211         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
41212         foo_CFLAGS.
41213         Reported by Ralf Wildenhues.
41214
41215 2007-03-01  Bruno Haible  <bruno@clisp.org>
41216
41217         * build-aux/install-reloc: Remove object files left over by some
41218         compilers.
41219         Reported by Ralf Wildenhues.
41220
41221 2007-03-01  Bruno Haible  <bruno@clisp.org>
41222
41223         * build-aux/install-reloc: Break long lines.
41224
41225 2007-03-01  Bruno Haible  <bruno@clisp.org>
41226
41227         * doc/relocatable.texi: Document that it may not work on OpenBSD.
41228         Reported by Ralf Wildenhues.
41229
41230 2007-03-01  Bruno Haible  <bruno@clisp.org>
41231
41232         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
41233         include ordering constraints.
41234
41235 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
41236
41237         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
41238         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
41239         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
41240         as another example.
41241         * lib/time_.h: Fix misspelling.
41242         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
41243         Require gl_HEADER_TIME_H_DEFAULTS.
41244         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
41245         * m4/time_r.m4 (gl_TIME_R): Likewise.
41246         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
41247
41248 2007-03-01  Bruno Haible  <bruno@clisp.org>
41249
41250         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
41251         * m4/utimens.m4 (gl_UTIMENS): Likewise.
41252
41253 2007-03-01  Jim Meyering  <jim@meyering.net>
41254
41255         * modules/xreadlink (Maintainer): Add my name.
41256         * modules/xreadlink-with-size (Depends-on): Alphabetize.
41257
41258 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
41259             Bruno Haible  <bruno@clisp.org>
41260
41261         * build-aux/install-reloc: Compile also c-ctype.c.
41262         * build-aux/relocatable.sh.in: New file.
41263         * doc/relocatable.texi: New file.
41264         * doc/relocatable-maint.texi: New file.
41265         * doc/gnulib.texi: Include relocatable-maint.texi.
41266         * lib/progreloc.c: Include unistd.h unconditionally.
41267         * lib/relocwrapper.c: Include unistd.h unconditionally.
41268         Include c-ctype.h.
41269         (add_dotbin): Use c_tolower.
41270         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
41271         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
41272         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
41273         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
41274         to m4/relocatable-lib.m4.
41275         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
41276         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
41277         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
41278         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
41279         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
41280         * modules/relocatable: New file.
41281         * modules/relocatable-lib: New file.
41282         * modules/relocatable-script: New file.
41283
41284 2007-02-28  Bruno Haible  <bruno@clisp.org>
41285
41286         Import --enable-relocatable infrastructure.
41287         * build-aux/config.libpath: New file, from GNU gettext.
41288         * build-aux/install-reloc: New file, from GNU gettext.
41289         * build-aux/reloc-ldflags: New file, from GNU gettext.
41290         * lib/relocatable.h: New file, from GNU gettext.
41291         * lib/relocatable.c: New file, from GNU gettext.
41292         * lib/relocwrapper.c: New file, from GNU gettext.
41293         * m4/relocatable.m4: New file, from GNU gettext.
41294
41295 2007-02-28  Bruno Haible  <bruno@clisp.org>
41296
41297         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
41298
41299         * modules/xreadlink: New file, from GNU gettext with modifications.
41300         * lib/xreadlink.c: New file, from GNU gettext.
41301         * lib/xreadlink.h: Add comments.
41302         (xreadlink): New declaration.
41303
41304         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
41305         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
41306         lib/xreadlink-with-size.c.
41307         (configure.ac): Remove gl_XREADLINK invocation.
41308         (Makefile.am): Augment lib_SOURCES.
41309         * m4/xreadlink.m4: Remove file.
41310         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
41311         (xreadlink_with_size): Renamed from xreadink.
41312         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
41313         * modules/canonicalize (Depends-on): Replace xreadlink with
41314         xreadlink-with-size.
41315         * lib/canonicalize.c (canonicalize_filename_mode): Update.
41316
41317 2007-02-25  Jim Meyering  <jim@meyering.net>
41318
41319         * build-aux/announce-gen: When complaining about excess arguments,
41320         list them.
41321
41322 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
41323
41324         * README: Document signed integer overflow situation more
41325         accurately.
41326
41327 2007-02-25  Bruno Haible  <bruno@clisp.org>
41328
41329         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
41330         'a' or 'A' conversion.
41331
41332 2007-02-25  Bruno Haible  <bruno@clisp.org>
41333
41334         * modules/filename: Renamed from modules/pathname.
41335         (Files): Replace lib/pathname.h with lib/filename.h. Replace
41336         lib/concatpath.c with lib/concat-filename.c.
41337         (Makefile.am): Update.
41338         (Include): Replace pathname.h with filename.h.
41339         * lib/filename.h: Renamed from lib/pathname.h.
41340         (concatenated_filename): Renamed from concatenated_pathname.
41341         * lib/concat-filename.c: Renamed from lib/concatpath.c.
41342         (concatenated_filename): Renamed from concatenated_pathname.
41343         * lib/findprog.c: Include filename.h instead of pathname.h.
41344         (find_in_path): Update.
41345         * lib/javacomp.c: Include filename.h instead of pathname.h.
41346         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
41347         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
41348         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
41349         is_oldgcj_14_13_usable, is_javac_usable): Update.
41350         * lib/javaexec.c: Include filename.h instead of pathname.h.
41351         (execute_java_class): Update.
41352         * modules/findprog: Update.
41353         * modules/javacomp: Update.
41354         * modules/javaexec: Update.
41355         * MODULES.html.sh (File system functions): Add 'filename', remove
41356         'pathname'.
41357
41358 2007-02-25  Bruno Haible  <bruno@clisp.org>
41359
41360         * modules/printf-frexpl-tests: New file.
41361         * tests/test-printf-frexpl.c: New file.
41362
41363         * modules/printf-frexpl: New file.
41364         * lib/printf-frexpl.h: New file.
41365         * lib/printf-frexpl.c: New file.
41366         * m4/printf-frexpl.m4: New file.
41367
41368 2007-02-25  Bruno Haible  <bruno@clisp.org>
41369
41370         * modules/printf-frexp-tests: New file.
41371         * tests/test-printf-frexp.c: New file.
41372
41373         * modules/printf-frexp: New file.
41374         * lib/printf-frexp.h: New file.
41375         * lib/printf-frexp.c: New file.
41376         * m4/printf-frexp.m4: New file.
41377
41378 2007-02-25  Bruno Haible  <bruno@clisp.org>
41379
41380         Assume automake >= 1.10 for the tests.
41381         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
41382         * modules/arctwo-tests: Likewise.
41383         * modules/argp-tests: Likewise.
41384         * modules/avltree-list-tests: Likewise.
41385         * modules/avltree-oset-tests: Likewise.
41386         * modules/avltreehash-list-tests: Likewise.
41387         * modules/carray-list-tests: Likewise.
41388         * modules/crc-tests: Likewise.
41389         * modules/des-tests: Likewise.
41390         * modules/gc-arcfour-tests: Likewise.
41391         * modules/gc-arctwo-tests: Likewise.
41392         * modules/gc-des-tests: Likewise.
41393         * modules/gc-hmac-md5-tests: Likewise.
41394         * modules/gc-hmac-sha1-tests: Likewise.
41395         * modules/gc-md2-tests: Likewise.
41396         * modules/gc-md4-tests: Likewise.
41397         * modules/gc-md5-tests: Likewise.
41398         * modules/gc-pbkdf2-sha1-tests: Likewise.
41399         * modules/gc-rijndael-tests: Likewise.
41400         * modules/gc-sha1-tests: Likewise.
41401         * modules/gc-tests: Likewise.
41402         * modules/getaddrinfo-tests: Likewise.
41403         * modules/hmac-md5-tests: Likewise.
41404         * modules/hmac-sha1-tests: Likewise.
41405         * modules/linked-list-tests: Likewise.
41406         * modules/linkedhash-list-tests: Likewise.
41407         * modules/lock-tests: Likewise.
41408         * modules/md2-tests: Likewise.
41409         * modules/md4-tests: Likewise.
41410         * modules/md5-tests: Likewise.
41411         * modules/rbtree-list-tests: Likewise.
41412         * modules/rbtree-oset-tests: Likewise.
41413         * modules/rbtreehash-list-tests: Likewise.
41414         * modules/read-file-tests: Likewise.
41415         * modules/rijndael-tests: Likewise.
41416         * modules/stdint-tests: Likewise.
41417         * modules/tls-tests: Likewise.
41418
41419 2007-02-24  Bruno Haible  <bruno@clisp.org>
41420
41421         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
41422         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
41423         function; instead check whether isnan with a double argument links.
41424         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
41425         function; instead check whether isnan with a 'long double' argument
41426         links.
41427         Reported by Eric Blake <ebb9@byu.net>.
41428
41429 2007-02-24  Bruno Haible  <bruno@clisp.org>
41430
41431         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
41432         defined.
41433         * lib/isnanl.c: Remove all code. Just include isnan.c.
41434         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
41435
41436 2007-02-25  Jim Meyering  <jim@meyering.net>
41437
41438         Avoid conflicting types for 'unsetenv' on FreeBSD.
41439         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
41440         conflicting with FreeBSD's (5.0 and 6.1) function declaration
41441         in stdlib.h.
41442
41443 2007-02-24  Bruno Haible  <bruno@clisp.org>
41444
41445         * modules/isnanl-nolibm-tests: New file.
41446         * tests/test-isnanl.c: New file.
41447
41448         * modules/isnanl-nolibm: New file.
41449         * lib/isnanl.h: New file.
41450         * lib/isnanl.c: New file.
41451         * m4/isnanl.m4: New file.
41452
41453 2007-02-24  Bruno Haible  <bruno@clisp.org>
41454
41455         * modules/isnan-nolibm-tests: New file.
41456         * tests/test-isnan.c: New file.
41457
41458         * modules/isnan-nolibm: New file.
41459         * lib/isnan.h: New file.
41460         * lib/isnan.c: New file.
41461         * m4/isnan.m4: New file.
41462
41463 2007-02-24  Bruno Haible  <bruno@clisp.org>
41464
41465         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
41466         assume that an exponent fits in 20 bits.
41467
41468 2007-02-24  Jim Meyering  <jim@meyering.net>
41469
41470         * m4/regex.m4: Update the description of the configure-time option,
41471         --without-included-regex, to state accurately what the defaults are,
41472         and perhaps to give people an idea why using this option is risky.
41473
41474 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
41475
41476         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
41477         loops on small arguments.  This attempts to avoid the problem
41478         Bruno Haible reported for AIX 4.3.2 in
41479         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
41480
41481 2007-02-23  Bruno Haible  <bruno@clisp.org>
41482
41483         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
41484         Needed for help2man.
41485
41486 2007-02-23  Karl Berry  <karl@gnu.org>
41487
41488         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
41489         exists, foo.h should be cvs-ignored, not committed.
41490
41491 2007-02-23  Eric Blake  <ebb9@byu.net>
41492
41493         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
41494         * lib/stat-time.h (includes): Likewise.
41495         * lib/utimecmp.c (includes): Likewise.
41496         * lib/utimens.h (includes): Likewise.
41497         * lib/getdate.y (includes): Also include "timespec.h" for use
41498         internal to the module.
41499         * modules/utimens (Depends-on): Revert yesterday's patch.
41500         * modules/nanosleep (Depends-on): Add missing dependency.
41501
41502 2007-02-22  Bruno Haible  <bruno@clisp.org>
41503
41504         * lib/glob.c: Don't include getlogin_r.h.
41505
41506 2007-02-22  Jim Meyering  <jim@meyering.net>
41507
41508         * modules/utimens (Depends-on): Add timespec, required for
41509         utimens.h's inclusion of timespec.h.
41510
41511 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
41512
41513         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
41514         long unreadable paths in GNU/Linux.  Problem reported by Andreas
41515         Schwab in
41516         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
41517         I'll try to think of a better way to fix the Solaris problem.
41518
41519         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
41520         like glibc; on Solaris 10, it fails with errno == EINVAL.
41521         POSIX says the behavior is unspecified if the first argument is NULL,
41522         so play it safe and never pass NULL to the system getcwd.
41523
41524 2007-02-21  Jim Meyering  <jim@meyering.net>
41525
41526         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
41527         of gettimeofday.  It would conflict with the one now always
41528         provided via sys_time_.h.  Reported by Matthew Woehlke, as
41529         an IRIX 6.5 build failure.
41530
41531 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
41532
41533         Minor fixups to port to Solaris 10 with Sun C 5.8.
41534         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
41535         * modules/getcwd (Depends-on): Add dirfd.
41536         * lib/putenv.c (putenv): #undef it.
41537         (rpl_putenv): New decl.
41538         (malloc, free): Include <stdlib.h> rather than prototyping separately.
41539
41540 2007-02-20  Bruno Haible  <bruno@clisp.org>
41541
41542         * modules/stdio-tests: New file.
41543         * tests/test-stdio.c: New file.
41544
41545         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
41546         (Depends-on): Add stdio.
41547         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
41548         (Include): Use <stdio.h> instead of vsnprintf.h.
41549         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
41550         HAVE_DECL_VSNPRINTF.
41551         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
41552
41553         * modules/snprintf (Files): Remove lib/snprintf.h.
41554         (Depends-on): Add stdio.
41555         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
41556         (Include): Use <stdio.h> instead of snprintf.h.
41557         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
41558         HAVE_DECL_SNPRINTF.
41559         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
41560         * lib/getaddrinfo.c: Likewise.
41561
41562         * modules/stdio: New file.
41563         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
41564         * lib/snprintf.h: Remove file.
41565         * lib/vsnprintf.h: Remove file.
41566         * lib/.cppi-disable: Remove snprintf.h.
41567         * m4/stdio_h.m4: New file.
41568         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
41569
41570 2007-02-20  Jim Meyering  <jim@meyering.net>
41571
41572         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
41573         used by e.g., mingw.  From Bruno Haible.
41574
41575 2007-02-19  Bruno Haible  <bruno@clisp.org>
41576
41577         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
41578         warnings.
41579         Reported by Ben Pfaff <blp@cs.stanford.edu>.
41580
41581 2007-02-19  Bruno Haible  <bruno@clisp.org>
41582
41583         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
41584         from mingw users.
41585
41586 2007-02-19  Bruno Haible  <bruno@clisp.org>
41587
41588         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
41589         warnings.
41590         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
41591
41592 2007-02-19  Jim Meyering  <jim@meyering.net>
41593
41594         Don't use FD after a successful "fdopendir (fd)".
41595         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
41596         Reset it by calling dirfd on the just-obtained DIR*.
41597
41598         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
41599         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
41600
41601 2007-02-18  Bruno Haible  <bruno@clisp.org>
41602
41603         * lib/readlink.c: Include <unistd.h>.
41604         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
41605         HAVE_READLINK.
41606         * modules/readlink (Depends-on): Add unistd.
41607         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41608         (Include): Add <unistd.h>.
41609
41610         * lib/getlogin_r.h: Remove file.
41611         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
41612         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
41613         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
41614         HAVE_DECL_GETLOGIN_R.
41615         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
41616         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41617         (Include): Use <unistd.h> instead of getlogin_r.h.
41618
41619         * lib/getcwd.h: Remove file.
41620         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
41621         * lib/xgetcwd.c: Likewise.
41622         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
41623         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
41624         * modules/getcwd (Files): Remove lib/getcwd.h.
41625         (Depends-on): Add unistd.
41626         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41627         (Include): Use <unistd.h> instad of getcwd.h.
41628
41629         * lib/ftruncate.c: Include <unistd.h> first.
41630         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
41631         Set HAVE_FTRUNCATE.
41632         * modules/ftruncate (Depends-on): Add unistd.
41633         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41634
41635         * lib/fchdir.c: Include <unistd.h> first.
41636         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
41637         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
41638         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
41639         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41640         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
41641
41642         * lib/dup2.c: Include <unistd.h> first.
41643         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
41644         HAVE_DUP2.
41645         * modules/dup2 (Depends-on): Add unistd.
41646         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41647
41648         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
41649         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
41650         REPLACE_CHOWN. Don't define chown as a macro here.
41651         * modules/chown (Depends-on): Add unistd.
41652         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41653
41654         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
41655         Add definition for GL_LINK_WARNING.
41656         (chown, dup2): New declarations.
41657         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
41658         link warning.
41659         (ftruncate): New declaration.
41660         (getcwd): New declaration, taken from old getcwd.h.
41661         (getlogin_r): New declaration, taken from old getlogin_r.h.
41662         (readlink): New declaration.
41663         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
41664         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
41665         (gl_PREREQ_UNISTD): Remove macro.
41666         (gl_UNISTD_MODULE_INDICATOR): New macro.
41667         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
41668         many new variables. Don't set UNISTD_H.
41669         * modules/unistd (Description): Change.
41670         (Depends-on): Add link-warning.
41671         (configure.ac): Update.
41672         (Makefile.am): Create unistd.h always. Substitute many new variables
41673         into it.
41674
41675 2007-02-18  Bruno Haible  <bruno@clisp.org>
41676
41677         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
41678         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
41679         HAVE_GETSUBOPT.
41680         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
41681         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
41682         * lib/getsubopt.h: Remove file.
41683         * modules/getsubopt (Files): Remove lib/getsubopt.h.
41684         (Depends-on): Add stdlib.
41685         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41686         (Includes): Use <stdlib.h> instead of getsubopt.h.
41687         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
41688         Set HAVE_GETSUBOPT.
41689         * lib/getsubopt.c: Don't include getsubopt.h.
41690
41691 2007-02-18  Bruno Haible  <bruno@clisp.org>
41692
41693         * modules/fchdir (Depends-on): Add dup2.
41694
41695 2007-02-18  Bruno Haible  <bruno@clisp.org>
41696
41697         * lib/stdlib_.h: Handle glibc's special invocation convention
41698         specially.
41699
41700 2007-02-18  Bruno Haible  <bruno@clisp.org>
41701
41702         * modules/stdlib-tests: New file.
41703         * tests/test-stdlib.c: New file.
41704
41705         * modules/mkstemp (Files): Remove lib/mkstemp.h.
41706         (Depends-on): Add stdlib.
41707         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41708         (Includes): Use <stdlib.h> instead of mkstemp.h.
41709         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
41710         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
41711         * lib/mkstemp.c: Don't include mkstemp.h.
41712         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
41713         * lib/stdlib--.h: Don't include mkstemp.h.
41714
41715         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
41716         (Depends-on): Add stdlib.
41717         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41718         (Includes): Use <stdlib.h> instead of mkdtemp.h.
41719         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
41720         HAVE_MKDTEMP.
41721         * lib/mkdtemp.c: Don't include mkdtemp.h.
41722         * lib/clean-temp.c: Don't include mkdtemp.h.
41723
41724         * modules/exit (Files): Remove lib/exit.h.
41725         (Depends-on): Add stdlib.
41726         (Makefile.am): Remove lib_SOURCES.
41727         (Include): Use <stdlib.h> instead of exit.h.
41728         * lib/argmatch.c: Don't include exit.h.
41729         * lib/execute.c: Likewise.
41730         * lib/pagealign_alloc.c: Likewise.
41731         * lib/pipe.c: Likewise.
41732         * lib/wait-process.c: Likewise.
41733         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
41734         * lib/exitfail.c: Likewise.
41735         * lib/savewd.c: Likewise.
41736         * lib/xsetenv.c: Likewise.
41737
41738         * modules/stdlib: New file.
41739         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
41740         and extra comments about mkstemp().
41741         * lib/exit.h: Remove file.
41742         * lib/mkdtemp.h: Remove file.
41743         * lib/mkstemp.h: Remove file.
41744         * m4/stdlib_h.m4: New file.
41745         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
41746
41747 2007-02-18  Bruno Haible  <bruno@clisp.org>
41748
41749         * modules/math-tests: New file.
41750         * tests/test-math.c: New file.
41751
41752         * modules/math: New file.
41753         * modules/mathl (Files): Remove lib/mathl.h.
41754         (Depends-on): Add math.
41755         (Makefile.am): Don't mention mathl.h.
41756         (Include): Use <math.h> instead of mathl.h.
41757         * lib/math_.h: New file.
41758         * lib/mathl.h: Remove file.
41759         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
41760         mathl.h.
41761         * lib/asinl.c: Likewise.
41762         * lib/atanl.c: Likewise.
41763         * lib/ceill.c: Likewise.
41764         * lib/cosl.c: Likewise.
41765         * lib/expl.c: Likewise.
41766         * lib/floorl.c: Likewise.
41767         * lib/frexpl.c: Likewise.
41768         * lib/ldexpl.c: Likewise.
41769         * lib/logl.c: Likewise.
41770         * lib/sincosl.c: Likewise.
41771         * lib/sinl.c: Likewise.
41772         * lib/sqrtl.c: Likewise.
41773         * lib/tanl.c: Likewise.
41774         * lib/trigl.c: Likewise.
41775         * m4/math_h.m4: New file.
41776         * MODULES.html.sh (Mathematics): Add math.
41777
41778 2007-02-17  Bruno Haible  <bruno@clisp.org>
41779
41780         * modules/wctype-tests: New file.
41781         * tests/test-wctype.c: New file.
41782
41783         * modules/wchar-tests: New file.
41784         * tests/test-wchar.c: New file.
41785
41786         * modules/unistd-tests: New file.
41787         * tests/test-unistd.c: New file.
41788
41789         * modules/time-tests: New file.
41790         * tests/test-time.c: New file.
41791
41792         * modules/sysexits-tests: New file.
41793         * tests/test-sysexits.c: New file.
41794
41795         * modules/sys_time-tests: New file.
41796         * tests/test-sys_time.c: New file.
41797
41798         * modules/sys_stat-tests: New file.
41799         * tests/test-sys_stat.c: New file.
41800
41801         * modules/sys_socket-tests: New file.
41802         * tests/test-sys_socket.c: New file.
41803
41804         * modules/sys_select-tests: New file.
41805         * tests/test-sys_select.c: New file.
41806
41807         * modules/string-tests: New file.
41808         * tests/test-string.c: New file.
41809
41810         * modules/stdbool-tests: New file.
41811         * tests/test-stdbool.c: New file.
41812
41813         * modules/netinet_in-tests: New file.
41814         * tests/test-netinet_in.c: New file.
41815
41816         * modules/inttypes-tests: New file.
41817         * tests/test-inttypes.c: New file.
41818
41819         * modules/fcntl-tests: New file.
41820         * tests/test-fcntl.c: New file.
41821
41822         * modules/byteswap-tests: New file.
41823         * tests/test-byteswap.c: New file.
41824
41825         * modules/arpa_inet-tests: New file.
41826         * tests/test-arpa_inet.c: New file.
41827
41828 2007-02-17  Bruno Haible  <bruno@clisp.org>
41829
41830         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
41831         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
41832         if the corresponding module is not enabled. Emit link warnings if
41833         the function is used nevertheless.
41834         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
41835         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
41836         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
41837         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
41838         * modules/inttypes (Depends-on): Add link-warning.
41839         (Makefile.am): Copy the contents of build-aux/link-warning.h into
41840         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
41841         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
41842         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
41843         * modules/imaxdiv (configure.ac): Likewise.
41844         * modules/strtoimax (configure.ac): Likewise.
41845         * modules/strtoumax (configure.ac): Likewise.
41846
41847 2007-02-17  Bruno Haible  <bruno@clisp.org>
41848
41849         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
41850         gl_STRING_MODULE_INDICATOR_DEFAULTS.
41851         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
41852         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
41853
41854 2007-02-17  Bruno Haible  <bruno@clisp.org>
41855
41856         * modules/link-warning: New file.
41857         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
41858         * lib/string_.h (GL_LINK_WARNING): Remove definition.
41859         * modules/string (Depends-on): Add link-warning.
41860         (Makefile.am): Copy the contents of build-aux/link-warning.h into
41861         string.h.
41862         * MODULES.html.sh (Support for building libraries and executables): Add
41863         link-warning.
41864
41865 2007-02-17  Bruno Haible  <bruno@clisp.org>
41866
41867         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
41868         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
41869         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
41870         long lines.
41871
41872 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
41873             Bruno Haible  <bruno@clisp.org>
41874
41875         * modules/tmpfile: New file.
41876         * lib/tmpfile.c: New file.
41877         * m4/tmpfile.m4: New file.
41878         * MODULES.html.sh (func_all_modules): New section "Input/output".
41879
41880 2007-02-15  Bruno Haible  <bruno@clisp.org>
41881
41882         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
41883         (supports_delete_on_close): New function.
41884         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
41885
41886 2007-02-14  Bruno Haible  <bruno@clisp.org>
41887
41888         * modules/mbspcasecmp-tests: New file.
41889         * tests/test-mbspcasecmp.sh: New file.
41890         * tests/test-mbspcasecmp.c: New file.
41891
41892         New module mbspcasecmp.
41893         * modules/mbspcasecmp: New file.
41894         * lib/mbspcasecmp.c: New file.
41895         * lib/string_.h (strncasecmp): Change warning message.
41896         (mbspcasecmp): New declaration.
41897         * m4/mbspcasecmp.m4: New file.
41898         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
41899         GNULIB_MBSPCASECMP.
41900         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
41901         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
41902
41903 2007-02-14  Bruno Haible  <bruno@clisp.org>
41904
41905         * modules/mbsncasecmp-tests: New file.
41906         * tests/test-mbsncasecmp.sh: New file.
41907         * tests/test-mbsncasecmp.c: New file.
41908
41909         New module mbsncasecmp.
41910         * modules/mbsncasecmp: New file.
41911         * lib/mbsncasecmp.c: New file.
41912         * lib/string_.h (mbsncasecmp): New declaration.
41913         * m4/mbsncasecmp.m4: New file.
41914         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
41915         GNULIB_MBSNCASECMP.
41916         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
41917         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
41918
41919 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
41920
41921         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
41922         Verify that it doesn't overlap with our flags.
41923         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
41924         do not have the desired effect in multibyte locales; instead, use
41925         mbscasecmp.
41926         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
41927         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
41928         we don't require GNU fnmatch ourselves (if our users require it, they
41929         should do so explicitly).
41930
41931         Fix regex code so it doesn't rely on strcasecmp.
41932         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
41933         Otherwise, include gnulib's langinfo.h.
41934         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
41935         undesirable behavior in non-C locales.  Instead, rely on localecharset.
41936         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
41937         * modules/regex (FILES): Remove m4/codeset.m4.
41938         (Depends-on): Add localcharset.  Remove strcase.
41939
41940 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41941
41942         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
41943         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
41944
41945 2007-02-13  Bruno Haible  <bruno@clisp.org>
41946
41947         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
41948         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41949
41950 2007-02-12  Bruno Haible  <bruno@clisp.org>
41951
41952         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
41953         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
41954         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
41955         time warning rather than a link error.
41956
41957 2007-02-12  Bruno Haible  <bruno@clisp.org>
41958
41959         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
41960         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
41961         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41962
41963 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
41964
41965         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
41966         args, not 2.
41967
41968 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
41969
41970         New module 'time', so that apps can include <time.h> as per
41971         POSIX and GNU instead of separate include files like time_r.h
41972         and timegm.h.  This implementation tries out a simpler approach
41973         for replacing decls in standard include files (as compared to
41974         the string module), somewhat as an experiment.
41975
41976         * config/srclist.txt: Comment out mktime.c for now.
41977         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
41978         since it doesn't apply any more.  Use generic wording instead.
41979         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
41980         'time'.
41981         * lib/time_.h, m4/time_h.m4, modules/time: New files.
41982         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
41983         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
41984         Don't include <sys/types.h>; no longer needed since we assume C89.
41985         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
41986         * lib/strftime.c: Likewise.
41987         * lib/time_r.c: Likewise.
41988         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
41989         * lib/nanosleep.c: Include <time.h> first, to check interface.
41990         * lib/strptime.c: Likewise.
41991         * lib/time_r.c: Likewise.
41992         * lib/timegm.c: Likewise.
41993         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
41994         needed.
41995         * lib/timegm.c: Don't include timegm.h; no longer needed.
41996         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
41997         time.h now handles any problems in that area.
41998         (struct timespec, nanosleep): Remove; time.h now arranges for these.
41999         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
42000         that time.h defines struct timespec.
42001         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
42002         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
42003         handles that.
42004         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
42005         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
42006         needed.  Set REPLACE_LOCALTIME.
42007         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
42008         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
42009         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
42010         nanosleep; time_h.m4 now does that.  Don't require
42011         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
42012         module handles this now.
42013         * modules/getdate (Depends-on): Remove timespec.  Add time.
42014         * modules/nanosleep (Depends-on): Likewise.
42015         * modules/stat-time (Depends-on): Likewise.
42016         * modules/nanosleep (Include): Include time.h, not timespec.h.
42017         * modules/strptime (Files): Remove lib/strptime.h.
42018         (Depends-on): Add extensions, time.
42019         (Include): Include time.h, not strptime.h.
42020         * modules/time_r (Files): Remove lib/time_r.h.
42021         (Depends-on): Add time.
42022         (Include): Include time.h, not time_r.h.
42023         * modules/timegm: Likewise.
42024         * modules/timespec (Description): Now does timespec-related decls
42025         of our own, instead of struct timespec itself.
42026         (Depends-on): Add time; remove extensions.
42027         (Maintainer): Add self.
42028         * modules/utimecmp (Depends-on): Add time; remove timespec.
42029         * modules/utimens (Depends-on): Likewise.
42030         * modules/xnanosleep (Depends-on): Likewise.
42031
42032 2007-02-11  Bruno Haible  <bruno@clisp.org>
42033
42034         * lib/c-strstr.c: Include allocsa.h.
42035         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
42036         * lib/c-strcasestr.c: Include allocsa.h.
42037         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
42038         * lib/strcasestr.c: Include allocsa.h.
42039         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
42040         * lib/mbsstr.c: Include allocsa.h.
42041         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
42042         allocsa/freesa instead of malloc/free.
42043         * lib/mbscasestr.c: Include allocsa.h.
42044         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
42045         allocsa/freesa instead of malloc/free.
42046         * modules/c-strstr (Depends-on): Add allocsa.
42047         * modules/c-strcasestr (Depends-on): Likewise.
42048         * modules/strcasestr (Depends-on): Likewise.
42049         * modules/mbsstr (Depends-on): Likewise.
42050         * modules/mbscasestr (Depends-on): Likewise.
42051
42052 2007-02-11  Bruno Haible  <bruno@clisp.org>
42053
42054         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
42055
42056         * modules/mbsspn-tests: New file.
42057         * tests/test-mbsspn.sh: New file.
42058         * tests/test-mbsspn.c: New file.
42059
42060 2007-02-11  Bruno Haible  <bruno@clisp.org>
42061
42062         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
42063
42064         * modules/mbspbrk-tests: New file.
42065         * tests/test-mbspbrk.sh: New file.
42066         * tests/test-mbspbrk.c: New file.
42067
42068 2007-02-11  Bruno Haible  <bruno@clisp.org>
42069
42070         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
42071         unneeded cast.
42072
42073         * modules/mbscspn-tests: New file.
42074         * tests/test-mbscspn.sh: New file.
42075         * tests/test-mbscspn.c: New file.
42076
42077 2007-02-11  Bruno Haible  <bruno@clisp.org>
42078
42079         * modules/mbscasecmp-tests: New file.
42080         * tests/test-mbscasecmp.sh: New file.
42081         * tests/test-mbscasecmp.c: New file.
42082
42083 2007-02-11  Bruno Haible  <bruno@clisp.org>
42084
42085         Ensure O(n) worst-case complexity of mbscasestr.
42086         * lib/mbscasestr.c: Include stdbool.h.
42087         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
42088         functions.
42089         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
42090         the bookkeeping indicates that it's worth it.
42091         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
42092
42093         * modules/mbscasestr-tests: New file.
42094         * tests/test-mbscasestr1.c: New file.
42095         * tests/test-mbscasestr2.sh: New file.
42096         * tests/test-mbscasestr2.c: New file.
42097         * tests/test-mbscasestr3.sh: New file.
42098         * tests/test-mbscasestr3.c: New file.
42099         * tests/test-mbscasestr4.sh: New file.
42100         * tests/test-mbscasestr4.c: New file.
42101         * m4/locale-tr.m4: New file.
42102
42103 2007-02-11  Bruno Haible  <bruno@clisp.org>
42104
42105         Ensure O(n) worst-case complexity of mbsstr.
42106         * lib/mbsstr.c: Include stdbool.h.
42107         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
42108         functions.
42109         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
42110         bookkeeping indicates that it's worth it.
42111         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
42112
42113         * modules/mbsstr-tests: New file.
42114         * tests/test-mbsstr1.c: New file.
42115         * tests/test-mbsstr2.sh: New file.
42116         * tests/test-mbsstr2.c: New file.
42117         * tests/test-mbsstr3.sh: New file.
42118         * tests/test-mbsstr3.c: New file.
42119         * m4/locale-fr.m4: New file.
42120
42121 2007-02-11  Bruno Haible  <bruno@clisp.org>
42122
42123         * lib/mbsrchr.c (mbsrchr): Fix bug.
42124
42125         * modules/mbsrchr-tests: New file.
42126         * tests/test-mbsrchr.sh: New file.
42127         * tests/test-mbsrchr.c: New file.
42128
42129 2007-02-11  Bruno Haible  <bruno@clisp.org>
42130
42131         * lib/mbschr.c (mbschr): Fix bug.
42132
42133         * modules/mbschr-tests: New file.
42134         * tests/test-mbschr.sh: New file.
42135         * tests/test-mbschr.c: New file.
42136         * m4/locale-zh.m4: New file.
42137
42138 2007-02-11  Bruno Haible  <bruno@clisp.org>
42139
42140         Support for copying multibyte string iterators.
42141         * lib/mbiter.h: Include <string.h>.
42142         (mbiter_multi_copy): New function.
42143         (mbi_copy): New macro.
42144         * lib/mbuiter.h: Include <string.h>.
42145         (mbuiter_multi_copy): New function.
42146         (mbui_copy): New macro.
42147
42148 2007-02-11  Bruno Haible  <bruno@clisp.org>
42149
42150         New module mbslen.
42151         * modules/mbslen: New file.
42152         * lib/mbslen.c: New file.
42153         * lib/string_.h (mbslen): New declaration.
42154         * m4/mbslen.m4: New file.
42155         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
42156         GNULIB_MBSLEN.
42157         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
42158         * MODULES.html.sh (Internationalization functions): Add mbslen.
42159
42160 2007-02-11  Bruno Haible  <bruno@clisp.org>
42161
42162         Ensure O(n) worst-case complexity of strcasestr substitute.
42163         * lib/strcasestr.c: Include stdbool.h.
42164         (knuth_morris_pratt): New function.
42165         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
42166         bookkeeping indicates that it's worth it.
42167         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
42168
42169         * modules/strcasestr-tests: New file.
42170         * tests/test-strcasestr.c: New file.
42171
42172 2007-02-11  Bruno Haible  <bruno@clisp.org>
42173
42174         Ensure O(n) worst-case complexity of c_strcasestr.
42175         * lib/c-strcasestr.c: Include stdbool.h, string.h.
42176         (knuth_morris_pratt): New function.
42177         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
42178         the bookkeeping indicates that it's worth it.
42179         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
42180
42181         * modules/c-strcasestr-tests: New file.
42182         * tests/test-c-strcasestr.c: New file.
42183
42184 2007-02-11  Bruno Haible  <bruno@clisp.org>
42185
42186         Ensure O(n) worst-case complexity of c_strstr.
42187         * lib/c-strstr.c: Include stdbool.h, string.h.
42188         (knuth_morris_pratt): New function.
42189         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
42190         bookkeeping indicates that it's worth it.
42191         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
42192
42193         * lib/c-strstr.c: Complete rewrite for maintainability.
42194
42195         * modules/c-strstr-tests: New file.
42196         * tests/test-c-strstr.c: New file.
42197
42198 2007-02-11  Bruno Haible  <bruno@clisp.org>
42199
42200         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
42201         5.2.1 and earlier, whereby \055 was treated just like the range
42202         delimiter '-'.
42203         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
42204
42205 2007-02-08  Bruno Haible  <bruno@clisp.org>
42206
42207         * modules/regex (Depends-on): Add stdbool.
42208         Reported by Dalibor Topic <robilad@kaffe.org>.
42209
42210 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
42211
42212         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
42213         Prefer returning from main to exiting from it.
42214         Remove unnecessary parens after sizeof.
42215
42216 2007-02-05  Bruno Haible  <bruno@clisp.org>
42217
42218         New module mbssep.
42219         * modules/mbssep: New file.
42220         * lib/mbssep.c: New file.
42221         * lib/string_.h (strsep): Add a conditional link warning.
42222         (mbssep): New declaration.
42223         * m4/mbssep.m4: New file.
42224         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
42225         GNULIB_MBSSEP.
42226         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
42227         * MODULES.html.sh (Internationalization functions): Add mbssep.
42228
42229 2007-02-05  Bruno Haible  <bruno@clisp.org>
42230
42231         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
42232         Optimize search in case of 1 delimiter.
42233
42234 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
42235
42236         * lib/acl.h: Include sys/types.h before sys/acl.h.
42237
42238 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
42239
42240         Merge upstream fix for glibc bugzilla #3957:
42241
42242         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
42243
42244         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
42245         bit for RE_HAT_LISTS_NOT_NEWLINE.
42246         (build_charclass_op): Remove bogus comment.
42247
42248 2007-02-05  Simon Josefsson  <simon@josefsson.org>
42249
42250         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
42251
42252 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
42253
42254         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
42255         * lib/memmem.c [!defined _LIBC]: Include config.h.
42256
42257 2007-02-04  Bruno Haible  <bruno@clisp.org>
42258
42259         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
42260         warning message.
42261
42262 2007-02-04  Bruno Haible  <bruno@clisp.org>
42263
42264         New module mbstok_r.
42265         * modules/mbstok_r: New file.
42266         * lib/mbstok_r.c: New file.
42267         * lib/string_.h (strtok_r): Change argument names to match the
42268         comments. Add a conditional link warning.
42269         (mbstok_r): New declaration.
42270         * m4/mbstok_r.m4: New file.
42271         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
42272         GNULIB_MBSTOK_R.
42273         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
42274         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
42275
42276 2007-02-04  Bruno Haible  <bruno@clisp.org>
42277
42278         New module mbsspn.
42279         * modules/mbsspn: New file.
42280         * lib/mbsspn.c: New file.
42281         * lib/string_.h (strspn): Add a conditional link warning.
42282         (mbsspn): New declaration.
42283         * m4/mbsspn.m4: New file.
42284         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
42285         GNULIB_MBSSPN.
42286         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
42287         * MODULES.html.sh (Internationalization functions): Add mbsspn.
42288
42289 2007-02-04  Bruno Haible  <bruno@clisp.org>
42290
42291         New module mbspbrk.
42292         * modules/mbspbrk: New file.
42293         * lib/mbspbrk.c: New file.
42294         * lib/string_.h (strpbrk): Add a conditional link warning.
42295         (mbspbrk): New declaration.
42296         * m4/mbspbrk.m4: New file.
42297         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
42298         GNULIB_MBSPBRK.
42299         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
42300         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
42301
42302 2007-02-04  Bruno Haible  <bruno@clisp.org>
42303
42304         New module mbscspn.
42305         * modules/mbscspn: New file.
42306         * lib/mbscspn.c: New file.
42307         * lib/string_.h (strcspn): Add a conditional link warning.
42308         (mbscspn): New declaration.
42309         * m4/mbscspn.m4: New file.
42310         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
42311         GNULIB_MBSCSPN.
42312         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
42313         * MODULES.html.sh (Internationalization functions): Add mbscspn.
42314
42315 2007-02-04  Bruno Haible  <bruno@clisp.org>
42316
42317         New module mbscasestr, reduced goal of strcasestr.
42318         * modules/mbscasestr: New file.
42319         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
42320         (mbscasestr): Renamed from strcasestr.
42321         * lib/strcasestr.c: Don't include mbuiter.h.
42322         (strcasestr): Remove support for multibyte locales.
42323         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
42324         Change the conditional link warning.
42325         (mbscasestr): New declaration.
42326         * m4/mbscasestr.m4: New file.
42327         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
42328         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
42329         REPLACE_STRCASESTR.
42330         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
42331         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
42332         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
42333         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
42334         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
42335         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
42336         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
42337         (Depends-on): Remove mbuiter.
42338         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
42339
42340 2007-02-04  Bruno Haible  <bruno@clisp.org>
42341
42342         Simplify handling of strncasecmp.
42343         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
42344         the conditional link warning.
42345         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
42346         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
42347         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
42348         * modules/strcase (configure.ac): Don't invoke
42349         gl_STRING_MODULE_INDICATOR.
42350         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
42351
42352 2007-02-04  Bruno Haible  <bruno@clisp.org>
42353
42354         New module mbscasecmp, reduced goal of strcasecmp.
42355         * modules/mbscasecmp: New file.
42356         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
42357         (mbscasecmp): Renamed from strcasecmp.
42358         * lib/strcasecmp.c: Don't include mbuiter.h.
42359         (strcasecmp): Remove support for multibyte locales.
42360         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
42361         Change the conditional link warning.
42362         (mbscasecmp): New declaration.
42363         * m4/mbscasecmp.m4: New file.
42364         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
42365         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
42366         REPLACE_STRCASECMP.
42367         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
42368         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
42369         GNULIB_MBSCASECMP.
42370         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
42371         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
42372         * modules/strcase (Files): Remove m4/mbrtowc.m4.
42373         (Depends-on): Remove mbuiter.
42374         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
42375
42376 2007-02-04  Bruno Haible  <bruno@clisp.org>
42377
42378         New module mbsstr. Remove module strstr.
42379         * modules/mbsstr: New file.
42380         * modules/strstr: Remove file.
42381         * lib/mbsstr.c: Renamed from lib/strstr.c.
42382         (mbsstr): Renamed from strstr.
42383         * lib/string_.h (strstr): Remove declaration. Change the conditional
42384         link warning.
42385         (mbsstr): New declaration.
42386         * m4/mbsstr.m4: New file.
42387         * m4/strstr.m4: Remove file.
42388         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
42389         REPLACE_STRSTR.
42390         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
42391         Don't initialize GNULIB_STRSTR.
42392         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
42393         substitute GNULIB_STRSTR and REPLACE_STRSTR.
42394         * MODULES.html.sh (Internationalization functions): Add mbsstr.
42395         (Support for systems lacking ANSI C 89): Remove strstr.
42396
42397 2007-02-04  Bruno Haible  <bruno@clisp.org>
42398
42399         New module mbsrchr.
42400         * modules/mbsrchr: New file.
42401         * lib/mbsrchr.c: New file.
42402         * lib/string_.h (strrchr): Add a conditional link warning.
42403         (mbsrchr): New declaration.
42404         * m4/mbsrchr.m4: New file.
42405         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
42406         GNULIB_MBSRCHR.
42407         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
42408         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
42409
42410 2007-02-04  Bruno Haible  <bruno@clisp.org>
42411
42412         New module mbschr.
42413         * modules/mbschr: New file.
42414         * lib/mbschr.c: New file.
42415         * lib/string_.h (strchr): Add a conditional link warning.
42416         (mbschr): New declaration.
42417         * m4/mbschr.m4: New file.
42418         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
42419         GNULIB_MBSCHR.
42420         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
42421         * MODULES.html.sh (Internationalization functions): Add mbschr.
42422
42423 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
42424
42425         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
42426
42427         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
42428
42429 2007-02-04  Bruno Haible  <bruno@clisp.org>
42430
42431         New module description section 'configure.ac-early'.
42432         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
42433         (func_get_autoconf_early_snippet): New function.
42434         (func_import, func_create_testdir): Use it. Remove special cases for
42435         modules 'extensions' and 'lock'.
42436         * modules/extensions (configure.ac-early): Require
42437         gl_USE_SYSTEM_EXTENSIONS.
42438         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
42439
42440 2007-02-04  Bruno Haible  <bruno@clisp.org>
42441
42442         Make use of gcj-4.3's -fsource and -ftarget option.
42443         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
42444         and if so try the options -fsource and -ftarget.
42445         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
42446         source_version, ftarget_option, target_version arguments.
42447         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
42448         (is_envjavac_oldgcj_14_14_usable): Renamed from
42449         is_envjavac_gcj_14_14_usable.
42450         (is_envjavac_oldgcj_14_13_usable): Renamed from
42451         is_envjavac_gcj_14_13_usable.
42452         (is_gcj_present): Update.
42453         (is_gcj_43, is_gcj43_usable): New functions.
42454         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
42455         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
42456         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
42457         try the options -fsource and -ftarget.
42458
42459 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
42460
42461         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
42462         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
42463         larger value.
42464
42465 2007-02-03  Jim Meyering  <jim@meyering.net>
42466
42467         Give tools a better chance to allocate space for very large buffers.
42468         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
42469
42470         Make pwd and readlink work also when run with an unreadable parent dir
42471         on systems with openat support.
42472         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
42473         provided getcwd function, even when we have openat support.
42474         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
42475
42476 2007-02-02  Bruno Haible  <bruno@clisp.org>
42477
42478         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
42479         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
42480         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
42481         portability problems if one of these functions is only used on specific
42482         platforms.
42483         Reported by Paul Eggert.
42484
42485 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
42486
42487         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
42488         is causing more trouble than it's curing.
42489         * lib/regex_internal.h (__mempcpy): Remove.
42490         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
42491         (and make the code a tad smaller to boot).
42492         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
42493
42494 2007-02-02  Jim Meyering  <jim@meyering.net>
42495
42496         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
42497         section, not in the Makefile.am: one.
42498
42499 2007-02-02  Eric Blake  <ebb9@byu.net>
42500
42501         * lib/strchrnul.c: Always include config.h first.
42502
42503         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
42504         gnulib strstr is not necessary here.
42505
42506 2007-02-02  Simon Josefsson  <simon@josefsson.org>
42507
42508         * m4/socklen.m4: Fix typo.
42509
42510 2007-02-02  Eric Blake  <ebb9@byu.net>
42511
42512         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
42513         * modules/netinet_in (Makefile.am): Likewise.
42514
42515 2007-02-01  Bruno Haible  <bruno@clisp.org>
42516
42517         * lib/string_.h (GL_LINK_WARNING): New macro.
42518         (strcasecmp, strstr, strcasestr): If provided by the system,
42519         conditionally define as a macro that leads to a warning instead of to
42520         an error.
42521         (strncasecmp): Conditionally define as a macro that leads to a warning.
42522
42523 2007-02-01  Karl Berry  <karl@gnu.org>
42524
42525         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
42526
42527 2007-02-01  Bruno Haible  <bruno@clisp.org>
42528
42529         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
42530         renamings.
42531
42532 2007-02-01  Eric Blake  <ebb9@byu.net>
42533
42534         * modules/regex (Depends-on): Revert dependence on mempcpy.
42535         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
42536         module's definition of mempcpy.
42537         Reported by Paul Eggert.
42538
42539 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
42540
42541         * lib/string_.h: If the gnulib module XYZ is not present, undefine
42542         the symbol XYZ before redefining it.  This fixes a problem with
42543         programs that don't use XYZ, when compiled on systems that define
42544         XYZ to something else.
42545
42546 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
42547
42548         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
42549         occurs when "mkdir -m foo" creates a setgid directory that is (1)
42550         writeable to group or other and (2) is intended to have a special
42551         mode bit that is set or cleared.  In such a case, the directory
42552         should be neither group- nor other-writeable until the special
42553         mode bits are right.
42554
42555 2007-01-31  Eric Blake  <ebb9@byu.net>
42556
42557         * modules/mountlist (Depends-on): Add strstr.
42558
42559         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
42560         bug.
42561         * modules/string (Makefile.am): Remove redundant replacement.
42562         * modules/regex (Depends-on): Add mempcpy.
42563
42564 2007-01-31  Bruno Haible  <bruno@clisp.org>
42565
42566         New module description field 'Link'.
42567         * gnulib-tool (func_usage): Document --extract-link-directive.
42568         (sed_extract_prog): Recognize 'Link' directive.
42569         (func_get_link_directive): New function.
42570         (func_import): Show summary of link directives.
42571         Handle --extract-link-directive option.
42572         * modules/acl (Link): New section.
42573         * modules/clock-time (Link): New section.
42574         * modules/euidaccess (Link): New section.
42575         * modules/gettext (Link): New section.
42576         * modules/iconv (Link): New section.
42577         * modules/lock (Link): New section.
42578         * modules/nanosleep (Link): New section.
42579         * modules/readline (Link): New section.
42580
42581 2007-01-27  Bruno Haible  <bruno@clisp.org>
42582
42583         Enforce the use of gnulib modules for unportable <string.h> functions.
42584         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
42585         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
42586         (gl_HEADER_STRING_H_BODY): Require it.
42587         * lib/string_.h: If the gnulib module XYZ is not present, redefine
42588         the symbol XYZ to one that gives a link error.
42589         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
42590         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
42591         * modules/mempcpy (configure.ac): Likewise.
42592         * modules/memrchr (configure.ac): Likewise.
42593         * modules/stpcpy (configure.ac): Likewise.
42594         * modules/stpncpy (configure.ac): Likewise.
42595         * modules/strcase (configure.ac): Likewise.
42596         * modules/strcasestr (configure.ac): Likewise.
42597         * modules/strchrnul (configure.ac): Likewise.
42598         * modules/strdup (configure.ac): Likewise.
42599         * modules/strndup (configure.ac): Likewise.
42600         * modules/strnlen (configure.ac): Likewise.
42601         * modules/strpbrk (configure.ac): Likewise.
42602         * modules/strsep (configure.ac): Likewise.
42603         * modules/strstr (configure.ac): Likewise.
42604         * modules/strtok_r (configure.ac): Likewise.
42605
42606 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
42607
42608         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
42609
42610 2007-01-30  Jim Meyering  <jim@meyering.net>
42611
42612         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
42613
42614 2007-01-29  Bruno Haible  <bruno@clisp.org>
42615
42616         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
42617         * lib/execute.c: Likewise.
42618         * lib/pipe.c: Likewise.
42619         * lib/printf-args.h: Likewise.
42620         * lib/printf-args.c: Likewise.
42621         * lib/printf-parse.c: Likewise.
42622         * lib/vasnprintf.c: Likewise.
42623
42624 2007-01-29  Eric Blake  <ebb9@byu.net>
42625
42626         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
42627         declaration.
42628
42629 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
42630
42631         * lib/strptime.h (strptime): Use 'restrict' for args where
42632         POSIX requires this.
42633         * lib/strptime.c (strptime): Likewise.
42634         Change license notice from LGPL to GPL, since gnulib-tool will
42635         change this as needed.
42636         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
42637         defined.
42638         Include "strptime.h" first, to check interface.
42639         Do not #undef _LIBC and _NL_CURRENT.
42640         Do not include <stdlib.h>; no longer needed.
42641         Include "time_r.h" and declare ptime_locale_status
42642         only if _LIBC is not defined.
42643         (__P): Remove unused macro.
42644         (match_string): Bring back glibc version, but use it only if _LIBC
42645         is defined.
42646         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
42647         Remove unnecessary assertion and abort() call.
42648         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
42649         * m4/strptime.m4: Fix serial number comment.
42650         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
42651         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
42652         (Depends-on): Add time_r.
42653
42654 2007-01-29  Bruno Haible  <bruno@clisp.org>
42655
42656         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42657         strptime.
42658         * modules/strptime (Depends-on): Add stdbool.
42659         * lib/strptime.h: Include <time.h> always. Add comments.
42660
42661 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
42662
42663         * modules/strptime: New file.
42664         * lib/strptime.h: New file.
42665         * lib/strptime.c: New file.
42666         * m4/strptime.m4: New file.
42667
42668 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
42669
42670         * MODULES.html.sh: New module mpsort.
42671         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
42672
42673         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
42674         a circularity problem with HP-UX ia64 reported by Bob Proulx in
42675         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
42676         All uses changed.
42677         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
42678         All uses changed.
42679         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
42680         to _Restrict_.
42681         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
42682         the parameter matches the prototype.
42683
42684 2007-01-28  Jim Meyering  <jim@meyering.net>
42685
42686         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
42687         sys/time.h here, reverting that part of the previous patch:
42688         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
42689
42690 2007-01-28  Bruno Haible  <bruno@clisp.org>
42691
42692         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
42693         value of $(SYS_TIME_H).
42694         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
42695         remove it conditionally, too. [added by Jim Meyering]
42696         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
42697         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
42698         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
42699         GETTIMEOFDAY_REPLACEMENT to 1.
42700
42701 2007-01-28  Bruno Haible  <bruno@clisp.org>
42702
42703         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
42704         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
42705         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
42706         Set UNISTD_H instead of UNISTD_H2.
42707         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
42708
42709 2007-01-28  Bruno Haible  <bruno@clisp.org>
42710
42711         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
42712         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
42713
42714 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42715
42716         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
42717         (func_create_testdir): Ensure C locale for `grep' and `tr'
42718         character ranges.
42719         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
42720         ACLOCAL_AMFLAGS parsing state machine.
42721
42722 2007-01-27  Bruno Haible  <bruno@clisp.org>
42723
42724         * modules/unistr/base: Update.
42725
42726 2007-01-27  Bruno Haible  <bruno@clisp.org>
42727
42728         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
42729         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
42730         * modules/unistr/u32-mbtouc-unsafe: Renamed from
42731         modules/unistr/u32-mbtouc.
42732         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
42733         * lib/unistr.h: Update.
42734         * lib/linebreak.c: Update.
42735         * modules/unistr/u32-mbtouc: Renamed from
42736         modules/unistr/u32-mbtouc-safe.
42737         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
42738         * lib/unistr.h: Update.
42739         * lib/unistr/u32-to-u8.c: Update.
42740         * lib/unistr/u32-to-u16.c: Update.
42741
42742 2007-01-27  Bruno Haible  <bruno@clisp.org>
42743
42744         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
42745         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
42746         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
42747         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
42748         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
42749         * modules/unistr/u16-mbtouc-unsafe: Renamed from
42750         modules/unistr/u16-mbtouc.
42751         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
42752         * lib/unistr.h: Update.
42753         * lib/linebreak.c: Update.
42754         * modules/linebreak: Update.
42755         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
42756         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
42757         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
42758         * modules/unistr/u16-mbtouc: Renamed from
42759         modules/unistr/u16-mbtouc-safe.
42760         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
42761         * lib/unistr.h: Update.
42762         * lib/unistr/u16-to-u8.c: Update.
42763         * modules/unistr/u16-to-u8: Update.
42764         * lib/unistr/u16-to-u32.c: Update.
42765         * modules/unistr/u16-to-u32: Update.
42766
42767 2007-01-27  Bruno Haible  <bruno@clisp.org>
42768
42769         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
42770         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
42771         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
42772         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
42773         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
42774         * modules/unistr/u8-mbtouc-unsafe: Renamed from
42775         modules/unistr/u8-mbtouc.
42776         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
42777         * lib/unistr.h: Update.
42778         * lib/striconveh.c: Update.
42779         * modules/striconveh: Update.
42780         * lib/linebreak.c: Update.
42781         * modules/linebreak: Update.
42782         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
42783         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
42784         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
42785         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
42786         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
42787         * lib/unistr.h: Update.
42788         * lib/striconveh.c: Update.
42789         * modules/striconveh: Update.
42790         * lib/unistr/u8-to-u16.c: Update.
42791         * modules/unistr/u8-to-u16: Update.
42792         * lib/unistr/u8-to-u32.c: Update.
42793         * modules/unistr/u8-to-u32: Update.
42794
42795 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42796
42797         Sync from Libtool.
42798         * lib/argz.c: Do not include strings.h nor memory.h, include
42799         string.h unconditionally.  Patch by Simon Josefsson.
42800
42801 2007-01-27  Bruno Haible  <bruno@clisp.org>
42802
42803         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
42804         from gl_HEADER_STRING_H_BODY.
42805         (gl_HEADER_STRING_H_BODY): Require it.
42806         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
42807         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
42808         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
42809         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
42810         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
42811         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
42812         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
42813         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
42814         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
42815         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
42816         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
42817         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
42818         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
42819         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
42820         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
42821
42822 2007-01-27  Bruno Haible  <bruno@clisp.org>
42823
42824         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
42825         check_PROGRAMS into noinst_PROGRAMS.
42826         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
42827         check_PROGRAMS in this case.
42828         (func_import): Set for_test to false.
42829         (func_create_testdir): Set for_test to true.
42830
42831 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
42832             Bruno Haible  <bruno@clisp.org>
42833
42834         * modules/strcasestr (Files): Remove lib/strcasestr.h.
42835         (Depends-on): Add string.
42836         (Includes): Use <string.h> instead of strcasestr.h.
42837         * modules/string (Makefile.am): Also substitute the value of
42838         REPLACE_STRCASESTR.
42839         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
42840         assume strcasestr is declared in <string.h> not <strings.h>. Also
42841         set REPLACE_STRCASESTR.
42842         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
42843         REPLACE_STRCASESTR.
42844         * lib/strcasestr.h: Remove file.
42845         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
42846         * lib/string_.h (strcasestr): New declaration.
42847
42848 2007-01-27  Bruno Haible  <bruno@clisp.org>
42849
42850         * lib/string_.h: Use 'extern'.
42851
42852 2007-01-27  Jim Meyering  <jim@meyering.net>
42853
42854         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
42855         of set-but-not-used local, "q".
42856
42857         * lib/mempcpy.c: Include <config.h> before <string.h>.
42858         This fixes a compilation error on HP-UX, due to the system's
42859         "restrict"-using mempcpy prototype.
42860
42861 2007-01-26  Bruno Haible  <bruno@clisp.org>
42862
42863         Small optimization.
42864         * lib/javacomp.c: Include c-strstr.h.
42865          (is_envjavac_gcj): Use c_strstr instead of strstr.
42866         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
42867
42868 2007-01-26  Bruno Haible  <bruno@clisp.org>
42869
42870         * MODULES.html.sh (Unicode string functions): Add the new modules.
42871
42872         * modules/uniconv/u32-strconv-to-locale: New file.
42873         * lib/uniconv/u32-strconv-to-locale.c: New file.
42874
42875         * modules/uniconv/u16-strconv-to-locale: New file.
42876         * lib/uniconv/u16-strconv-to-locale.c: New file.
42877
42878         * modules/uniconv/u8-strconv-to-locale: New file.
42879         * lib/uniconv/u8-strconv-to-locale.c: New file.
42880
42881         * modules/uniconv/u32-strconv-from-locale: New file.
42882         * lib/uniconv/u32-strconv-from-locale.c: New file.
42883
42884         * modules/uniconv/u16-strconv-from-locale: New file.
42885         * lib/uniconv/u16-strconv-from-locale.c: New file.
42886
42887         * modules/uniconv/u8-strconv-from-locale: New file.
42888         * lib/uniconv/u8-strconv-from-locale.c: New file.
42889
42890         * modules/uniconv/u32-strconv-to-enc: New file.
42891         * lib/uniconv/u32-strconv-to-enc.c: New file.
42892         * modules/uniconv/u32-strconv-to-enc-tests: New file.
42893         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
42894
42895         * modules/uniconv/u16-strconv-to-enc: New file.
42896         * lib/uniconv/u16-strconv-to-enc.c: New file.
42897         * lib/uniconv/u-strconv-to-enc.h: New file.
42898         * modules/uniconv/u16-strconv-to-enc-tests: New file.
42899         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
42900
42901         * modules/uniconv/u8-strconv-to-enc: New file.
42902         * lib/uniconv/u8-strconv-to-enc.c: New file.
42903         * modules/uniconv/u8-strconv-to-enc-tests: New file.
42904         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
42905
42906         * modules/uniconv/u32-strconv-from-enc: New file.
42907         * lib/uniconv/u32-strconv-from-enc.c: New file.
42908         * modules/uniconv/u32-strconv-from-enc-tests: New file.
42909         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
42910
42911         * modules/uniconv/u16-strconv-from-enc: New file.
42912         * lib/uniconv/u16-strconv-from-enc.c: New file.
42913         * modules/uniconv/u16-strconv-from-enc-tests: New file.
42914         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
42915
42916         * modules/uniconv/u8-strconv-from-enc: New file.
42917         * lib/uniconv/u8-strconv-from-enc.c: New file.
42918         * lib/uniconv/u-strconv-from-enc.h: New file.
42919         * modules/uniconv/u8-strconv-from-enc-tests: New file.
42920         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
42921
42922         * modules/uniconv/u32-conv-from-enc: New file.
42923         * lib/uniconv/u32-conv-from-enc.c: New file.
42924         * modules/uniconv/u32-conv-from-enc-tests: New file.
42925         * tests/uniconv/test-u32-conv-from-enc.c: New file.
42926
42927         * modules/uniconv/u16-conv-from-enc: New file.
42928         * lib/uniconv/u16-conv-from-enc.c: New file.
42929         * lib/uniconv/u-conv-from-enc.h: New file.
42930         * modules/uniconv/u16-conv-from-enc-tests: New file.
42931         * tests/uniconv/test-u16-conv-from-enc.c: New file.
42932
42933         * modules/uniconv/u8-conv-from-enc: New file.
42934         * lib/uniconv/u8-conv-from-enc.c: New file.
42935         * modules/uniconv/u8-conv-from-enc-tests: New file.
42936         * tests/uniconv/test-u8-conv-from-enc.c: New file.
42937
42938         * modules/uniconv/base: New file.
42939         * lib/uniconv.h: New file.
42940
42941 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
42942
42943         * doc/gnulib-tool.texi (Initial import): Update to match current
42944         behavior with strdup module.
42945         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
42946         * lib/memmem.h: Remove; all uses removed.  This is now done
42947         by <string.h>.
42948         * lib/mempcpy.h: Likewise.
42949         * lib/memrchr.h: Likewise.
42950         * lib/stpcpy.h: Likewise.
42951         * lib/stpncpy.h: Likewise.
42952         * lib/strcase.h: Likewise.
42953         * lib/strchrnul.h: Likewise.
42954         * lib/strdup.h: Likewise.
42955         * lib/strndup.h: Likewise.
42956         * lib/strnlen.h: Likewise.
42957         * lib/strpbrk.h: Likewise.
42958         * lib/strsep.h: Likewise.
42959         * lib/strstr.h: Likewise.
42960         * lib/strtok_r.h: Likewise.
42961         * lib/string_.h: New file.
42962         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
42963         Rely on <string.h> instead.
42964         * lib/canon-host.c: Likewise.
42965         * lib/chdir-long.c: Likewise.
42966         * lib/concatpath.c: Likewise.
42967         * lib/exclude.c: Likewise.
42968         * lib/fchdir.c: Likewise.
42969         * lib/getaddrinfo.c: Likewise.
42970         * lib/getcwd.c: Likewise.
42971         * lib/getsubopt.c: Likewise.
42972         * lib/glob.c: Likewise.
42973         * lib/hard-locale.c: Likewise.
42974         * lib/iconvme.c: Likewise.
42975         * lib/javacomp.c: Likewise.
42976         * lib/mempcpy.c: Likewise.
42977         * lib/memrchr.c: Likewise.
42978         * lib/regex_internal.h: Likewise.
42979         * lib/stpncpy.c: Likewise.
42980         * lib/strcasecmp.c: Likewise.
42981         * lib/strchrnul.c: Likewise.
42982         * lib/strdup.c: Likewise.
42983         * lib/striconv.c: Likewise.
42984         * lib/striconveh.c: Likewise.
42985         * lib/striconveha.c: Likewise.
42986         * lib/strncasecmp.c: Likewise.
42987         * lib/strndup.c: Likewise.
42988         * lib/strnlen.c: Likewise.
42989         * lib/strsep.c: Likewise.
42990         * lib/strstr.c: Likewise.
42991         * lib/strtok_r.c: Likewise.
42992         * lib/userspec.c: Likewise.
42993         * lib/w32spawn.h: Likewise.
42994         * lib/xstrndup.c: Likewise.
42995         * lib/mountlist.c (strstr): Remove decl.
42996         * m4/string_h.m4: New file.
42997         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
42998         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
42999         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
43000         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
43001         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
43002         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
43003         Set REPLACE_STRCASECMP if necessary.
43004         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
43005         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
43006         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
43007         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
43008         HAVE_DECL_STRDUP if necessary.
43009         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
43010         since gl_FUNC_STRNDUP does that now.
43011         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
43012         Check for decl here...
43013         (gl_PREREQ_STRNLEN): ... not here.
43014         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
43015         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
43016         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
43017         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
43018         necessary.
43019         * modules/string: New file.
43020         * modules/memmem (Files): Remove special-purpose include file.
43021         (Depends-on): Add string.
43022         (Include): Include <string.h>, not the removed file.
43023         * modules/mempcpy: Likewise.
43024         * modules/memrchr: Likewise.
43025         * modules/stpcpy: Likewise.
43026         * modules/stpncpy: Likewise.
43027         * modules/strcase: Likewise.
43028         * modules/strchrnul: Likewise.
43029         * modules/strdup: Likewise.
43030         * modules/strndup: Likewise.
43031         * modules/strnlen: Likewise.
43032         * modules/strpbrk: Likewise.
43033         * modules/strsep: Likewise.
43034         * modules/strstr: Likewise.
43035         * modules/strtok_r: Likewise.
43036         * tests/test-dirname.c: Don't include "strdup.h", since
43037         <string.h> now suffices.
43038         * tests/test-memmem.c: Don't include "memmem.h", since
43039         <string.h> now suffices.
43040
43041 2007-01-25  Bruno Haible  <bruno@clisp.org>
43042
43043         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
43044         *resultp is 0.
43045
43046         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
43047         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
43048         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
43049         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
43050
43051         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
43052         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
43053         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
43054         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
43055         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
43056         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
43057
43058 2007-01-24  Bruno Haible  <bruno@clisp.org>
43059
43060         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
43061         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
43062         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
43063         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
43064         gl_FUNC_FTS_CORE.
43065         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
43066         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
43067         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
43068         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
43069         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
43070         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
43071         gl_FUNC_FCHOWNAT.
43072         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
43073         gl_FUNC_STRFTIME.
43074         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
43075         Reported by Ralf Wildenhues.
43076
43077 2007-01-24  Bruno Haible  <bruno@clisp.org>
43078
43079         Drop AC_REQUIRE calls that are redundant with the module dependencies.
43080         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
43081         gl_GETADDRINFO.
43082         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
43083         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
43084         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
43085
43086 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
43087
43088         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
43089         Don't use 'exit'; just return from 'main'.
43090         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
43091
43092         * lib/fnmatch_.h: Readjust white space and comments to match
43093         glibc, to avoid spurious diffs.
43094
43095 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
43096
43097         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
43098         2004-12-01 change by Jakub Jelinek, since this code won't compile
43099         if !LIBC.  Problem reported by Bob Proulx.
43100
43101 2007-01-23  Bruno Haible  <bruno@clisp.org>
43102
43103         * lib/striconveh.c: Include c-strcaseeq.h.
43104         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
43105         * modules/striconveh (Depends-on): Add c-strcaseeq.
43106
43107 2007-01-23  Bruno Haible  <bruno@clisp.org>
43108
43109         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
43110
43111         * modules/c-strcaseeq: New file.
43112         * lib/c-strcaseeq.h: New file.
43113
43114         * modules/streq: New file.
43115         * lib/streq.h: New file.
43116
43117 2007-01-23  Bruno Haible  <bruno@clisp.org>
43118
43119         * modules/striconveha-tests: New file.
43120         * tests/test-striconveha.c: New file.
43121
43122         * lib/striconveha.h: Include <stdbool.h>.
43123         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
43124         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
43125         (mem_iconveha_notranslit): Renamed from mem_iconveha.
43126         (mem_iconveha): New function.
43127         (str_iconveha_notranslit): Renamed from str_iconveha.
43128         (str_iconveha): New function.
43129         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
43130         c-strcase.
43131
43132 2007-01-23  Bruno Haible  <bruno@clisp.org>
43133
43134         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
43135         encodings without forgiving before trying any encoding with handler.
43136         (str_iconveha): Try all encodings without forgiving before trying any
43137         encoding with handler.
43138
43139 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
43140
43141         Import the following changes from libc.
43142
43143         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
43144
43145         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
43146
43147         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
43148
43149         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
43150         normal_bracket label.
43151
43152         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
43153
43154         [BZ #361]
43155         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
43156         to normal_bracket after fetching the next character.
43157
43158 2007-01-22  Bruno Haible  <bruno@clisp.org>
43159
43160         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
43161         argument.
43162         * lib/striconveh.c (iconv_carefully_1): New function.
43163         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
43164         argument.
43165         (str_cd_iconveh): Update.
43166         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
43167         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
43168         * tests/test-striconveh.c (MAGIC): New macro.
43169         (new_offsets): New function.
43170         (main): Test call with and without offsets.
43171
43172 2007-01-22  Bruno Haible  <bruno@clisp.org>
43173
43174         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
43175         * modules/sys_select (Makefile.am): Likewise.
43176         * modules/sys_socket (Makefile.am): Likewise.
43177         * modules/sys_time (Makefile.am): Likewise.
43178
43179 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
43180
43181         * modules/gettimeofday (License): Change from GPL to LGPL, since
43182         gettimeofday is a library function.
43183
43184 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43185
43186         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
43187
43188 2007-01-21  Bruno Haible  <bruno@clisp.org>
43189
43190         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
43191
43192 2007-01-21  Bruno Haible  <bruno@clisp.org>
43193
43194         * modules/striconveha: New file.
43195         * lib/striconveha.h: New file.
43196         * lib/striconveha.c: New file.
43197         * MODULES.html.sh (Internationalization functions): Add striconveha.
43198         * lib/striconv.c (str_iconv): Optimize the case of an empty input
43199         string.
43200         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
43201
43202 2007-01-21  Bruno Haible  <bruno@clisp.org>
43203
43204         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
43205         * lib/striconveh.c (str_iconveh): Likewise.
43206
43207 2007-01-21  Bruno Haible  <bruno@clisp.org>
43208
43209         * lib/striconveh.h (mem_iconveh): New declaration.
43210         * lib/striconveh.c (mem_iconveh): New function.
43211         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
43212
43213 2007-01-21  Bruno Haible  <bruno@clisp.org>
43214
43215         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
43216
43217         * lib/striconveh.h (mem_cd_iconveh): Change specification.
43218         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
43219         original result buffer.
43220         (str_cd_iconveh): Update.
43221         * tests/test-striconveh.c (main): Update.
43222
43223         * lib/striconv.h (mem_cd_iconv): Change specification.
43224         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
43225         result buffer.
43226         (str_cd_iconv): Update.
43227         * tests/test-striconv.c (main): Update.
43228
43229 2007-01-21  Bruno Haible  <bruno@clisp.org>
43230
43231         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
43232
43233 2007-01-20  Jim Meyering  <jim@meyering.net>
43234
43235         * lib/userspec.c (parse_with_separator): If a user or group string
43236         starts with "+", skip the corresponding name-to-ID look-up, since
43237         such a look-up must fail: user and group names may not include "+".
43238
43239 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
43240
43241         * lib/poll.c: Include sys/time.h and time.h unconditionally,
43242         since we now assume the sys_time module.
43243         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
43244         check for sys/time.h; no longer needed.
43245         * modules/poll (Depends-on): Depend on sys_time.
43246
43247 2007-01-18  Bruno Haible  <bruno@clisp.org>
43248
43249         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
43250         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
43251
43252         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
43253         gettimeofday.
43254
43255         * tests/test-gettimeofday.c: Include <time.h>.
43256         (dummy): Remove variable.
43257
43258         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
43259         gl_HEADER_SYS_TIME_H.
43260         (gl_HEADER_SYS_TIME_H): New macro.
43261
43262         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
43263         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
43264         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
43265         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
43266         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
43267         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
43268         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
43269         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
43270         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
43271         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
43272         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
43273
43274         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
43275         last change; it caused a compilation error when cross-compiling to
43276         Cygwin.
43277
43278 2007-01-18  Jim Meyering  <jim@meyering.net>
43279
43280         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
43281         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
43282         than the race-prone "test -d sys || mkdir sys".
43283         (configure.ac): Use AC_PROG_MKDIR_P.
43284         * modules/sys_select: Likewise.
43285         * modules/sys_socket: Likewise.
43286         * modules/sys_time: Likewise.
43287
43288 2007-01-18  Eric Blake  <ebb9@byu.net>
43289
43290         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
43291         replace gettimeofday.
43292         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
43293         name, to avoid infinite recursion.
43294
43295 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
43296
43297         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
43298         module sys_time.
43299         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
43300         assume timespec.h defines struct timeval.
43301         * lib/settime.c: Likewise.
43302         * lib/utimens.c: Likewise.
43303         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
43304         since we now assume the gettimeofday module.
43305         * lib/tempname.c (__gen_tempname): Likewise.
43306         * lib/gettimeofday.h: Remove.
43307         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
43308         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
43309         Include <time.h>, for 'time()'.
43310         (localtime_buffer_addr): Also use this workaround if
43311         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
43312         to simplify the uses.  All uses changed.
43313         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
43314         that #undef is inside {}, and 'const' follows type name consistently.
43315         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
43316         (gettimeofday): Do not use the maximum possible value for
43317         tv->tv_usec, since that might break usages other than ls.c.
43318         Instead, we'll leave ls.c alone.  This undoes today's patch
43319         by Bruno.  Add a compile-time warning for 1s-clock resolution;
43320         we've never observed the problem but might as well keep the
43321         canary.
43322         * lib/nanosleep.c: Include timespec.h first, for interface check.
43323         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
43324         now assume the sys_time module.
43325         * lib/tempname.c: Likewise.
43326         * lib/timespec.h: Likewise.
43327         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
43328         needed.
43329         * lib/strftime.c: Likewise.
43330         * lib/timespec.h: Likewise.
43331         * lib/posixtm.c: Include posixtm.h first, for interface check.
43332         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
43333         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
43334         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
43335         * lib/sys_time_.h: New file.
43336         * lib/timespec.h (struct timespec): Use long int, not long.
43337         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
43338         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
43339         Remove obsolescent call to AC_HEADER_TIME.
43340         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
43341         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
43342         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
43343         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
43344         Likewise.
43345         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
43346         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
43347         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
43348         into the sys_time module.  Check for gettimeofday just once.
43349         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
43350         for gettimeofday signature to just check the signature.  Merely
43351         compile it, since linking doesn't test signature.  Improve test for
43352         whether gettimeofday.o is actually needed.
43353         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
43354         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
43355         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
43356         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
43357         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
43358         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
43359         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
43360         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
43361         than worrying about sys/time.h.
43362         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
43363         Don't bother worrying about TIME_WITH_SYS_TIME.
43364         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
43365         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
43366         * m4/sys_time_h.m4: New file.
43367         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
43368         Don't include sys/time.h.  Return from main rather than exiting.
43369         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
43370         all uses changed.
43371         * modules/gethrxtime (Depends-on): Add sys_time.
43372         * modules/gettime (Depends-on): Likewise.
43373         * modules/gettimeofday (Depends-on): Likewise.
43374         * modules/nanosleep (Depends-on): Likewise.
43375         * modules/settime (Depends-on): Likewise.
43376         * modules/tempname (Depends-on): Likewise.
43377         * modules/utimens (Depends-on): Likewise.
43378         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
43379         (Include:) Change back to <sys/time.h>.
43380         (Maintainer:) Add self.
43381         * modules/sys_time: New file.
43382         * modules/tempname (Depends-on): Add gettimeofday.
43383         * tests/test-gettimeofday.c: Include <sys/time.h>
43384         rather than gettimeofday.h.
43385
43386 2007-01-17  Bruno Haible  <bruno@clisp.org>
43387
43388         * gnulib-tool (func_get_license): Revert last patch. Instead, let
43389         the license default to GPL.
43390         (func_create_testdir): Don't complain if a module is LGPL and its
43391         tests module depends on GPLed modules.
43392
43393 2007-01-17  Bruno Haible  <bruno@clisp.org>
43394
43395         * lib/gettimeofday.c (gettimeofday): Add code for the case
43396         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
43397         maximum possible value for tv->tv_usec, rather than the minimum one.
43398
43399 2005-10-08  Martin Lambers  <marlam@marlam.de>
43400 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
43401 2007-01-16  Bruno Haible  <bruno@clisp.org>
43402
43403         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
43404         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
43405         gl_FUNC_GETTIMEOFDAY.
43406         (Include): Add gettimeofday.h.
43407         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
43408         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
43409         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
43410         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
43411         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
43412         * lib/gettimeofday.h: New file.
43413         * lib/gettimeofday.c: Include <sys/timeb.h>.
43414         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
43415         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
43416         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
43417         fall back on time().
43418
43419         * tests/test-gettimeofday.c: New file.
43420         * modules/gettimeofday-tests: New file.
43421
43422 2007-01-16  Eric Blake  <ebb9@byu.net>
43423
43424         * modules/fnmatch (Depends-on): Depend on wchar.
43425         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
43426         * m4/fnmatch.m4: Likewise.
43427         * modules/mbchar (Makefile.am): Assume <wchar.h>.
43428         * m4/mbchar.m4: Likewise.
43429         * modules/mbswidth (Depends-on): Depend on wchar.
43430         * lib/mbswidth.c: Assume <wchar.h>.
43431         * m4/mbswidth.m4: Likewise.
43432         * modules/quotearg (Depends-on): Depend on wchar.
43433         * lib/quotearg.c: Assume <wchar.h>.
43434         * m4/quotearg.m4: Likewise.
43435         * modules/regex (Depends-on): Depend on wchar.
43436         * lib/regex_internal.h: Assume <wchar.h>.
43437         * m4/regex.m4: Likewise.
43438         * modules/stdint (Depends-on): Depend on wchar.
43439         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
43440         * m4/stdint.m4: Likewise.
43441         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
43442         * modules/strftime (Depends-on): Depend on wchar.
43443         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
43444         * modules/strtol (Depends-on): Depend on wchar.
43445         * lib/strtol.c: Assume <wchar.h>.
43446         * modules/wcwidth (Depends-on): Depend on wchar.
43447         * lib/wcwidth.h: Assume <wchar.h>.
43448         * m4/wcwidth.m4: Likewise.
43449
43450 2007-01-16  Bruno Haible  <bruno@clisp.org>
43451
43452         * modules/csharpexec-script: New, created from...
43453         * modules/csharpexec: ... this.
43454
43455 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
43456
43457         * modules/javaexec-script: New, created from...
43458         * modules/javaexec: ... this.
43459
43460 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43461
43462         * modules/poll (Dependencies): Add sys_select.
43463
43464 2007-01-15  Jim Meyering  <jim@meyering.net>
43465
43466         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
43467         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
43468         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
43469         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
43470
43471 2007-01-15  Bruno Haible  <bruno@clisp.org>
43472
43473         * modules/striconveh: New file.
43474         * lib/striconveh.h: New file.
43475         * lib/striconveh.c: New file.
43476         * MODULES.html.sh (Internationalization functions): Add striconveh.
43477
43478         * modules/striconveh-tests: New file.
43479         * tests/test-striconveh.c: New file.
43480
43481 2007-01-15  Bruno Haible  <bruno@clisp.org>
43482
43483         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
43484         not from GNU libiconv or GNU libc.
43485
43486 2007-01-15  Bruno Haible  <bruno@clisp.org>
43487
43488         * doc/gnulib-intro.texi (Copyright): Explain the different license
43489         terms for module descriptions, autoconf macros, tests, documentation.
43490
43491 2007-01-14  Bruno Haible  <bruno@clisp.org>
43492
43493         * modules/striconv-tests: New file.
43494         * tests/test-striconv.c: New file.
43495
43496 2007-01-14  Bruno Haible  <bruno@clisp.org>
43497
43498         * modules/iconv-tests: New file.
43499         * tests/test-iconv.c: New file.
43500
43501 2007-01-14  Bruno Haible  <bruno@clisp.org>
43502
43503         * gnulib-tool (func_get_license): For test modules, use the license of
43504         the main module.
43505
43506 2007-01-14  Bruno Haible  <bruno@clisp.org>
43507
43508         * modules/iconv (Include): Clarify that <iconv.h> can only be included
43509         if iconv is found to exist.
43510
43511 2007-01-14  Bruno Haible  <bruno@clisp.org>
43512
43513         * modules/c-ctype-tests: New file.
43514         * tests/test-c-ctype.c: New file.
43515
43516 2007-01-14  Bruno Haible  <bruno@clisp.org>
43517
43518         * modules/binary-io-tests: New file.
43519         * tests/test-binary-io.sh: New file.
43520         * tests/test-binary-io.c: New file.
43521
43522 2007-01-14  Bruno Haible  <bruno@clisp.org>
43523
43524         * modules/array-oset-tests: New file.
43525         * tests/test-array_oset.c: New file.
43526
43527 2007-01-14  Bruno Haible  <bruno@clisp.org>
43528
43529         * modules/array-list-tests: New file.
43530         * tests/test-array_list.c: New file.
43531
43532 2007-01-14  Bruno Haible  <bruno@clisp.org>
43533
43534         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
43535         and make.
43536         Reported by Simon Josefsson in
43537         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
43538
43539 2007-01-14  Bruno Haible  <bruno@clisp.org>
43540
43541         * modules/allocsa-tests: New file.
43542         * tests/test-allocsa.c: New file.
43543
43544 2007-01-14  Bruno Haible  <bruno@clisp.org>
43545
43546         * modules/fchdir (Depends-on): Add absolute-header.
43547         * modules/unistd (Depends-on): Likewise.
43548
43549 2006-12-30  Bruno Haible  <bruno@clisp.org>
43550
43551         * modules/fchdir: New file.
43552         * modules/unistd (Files): Add lib/unistd_.h.
43553         (Makefile.am): Generate unistd.h from unistd_.h.
43554         * lib/fchdir.c: New file.
43555         * lib/dirent_.h: New file.
43556         * lib/unistd_.h: New file.
43557         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
43558         * m4/fchdir.m4: New file.
43559         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
43560         (gl_HEADER_UNISTD): Invoke it.
43561         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
43562         function.
43563         * lib/backupfile.c (opendir, closedir): Undefine.
43564         * lib/chown.c (open, close): Undefine.
43565         * lib/clean-temp.c (open, close): Undefine.
43566         * lib/copy-file.c (open, close): Undefine.
43567         * lib/execute.c (open, close): Undefine.
43568         * lib/fsusage.c (open, close): Undefine.
43569         * lib/gc-gnulib.c (open, close): Undefine.
43570         * lib/getcwd.c (opendir, closedir): Undefine.
43571         * lib/glob.c (opendir, closedir): Undefine.
43572         * lib/javacomp.c (open, close): Undefine.
43573         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
43574         * lib/openat-proc.c (open, close): Undefine.
43575         * lib/pagealign_alloc.c (open, close): Undefine.
43576         * lib/pipe.c (open, close): Undefine.
43577         * lib/progreloc.c (open, close): Undefine.
43578         * lib/savedir.c (opendir, closedir): Undefine.
43579         * lib/utime.c (open, close): Undefine.
43580         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
43581
43582 2007-01-10  Bruno Haible  <bruno@clisp.org>
43583
43584         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
43585
43586 2007-01-12  Eric Blake  <ebb9@byu.net>
43587
43588         Provide a robust <wchar.h>.  Further simplifications are now
43589         possible in other modules, but not included here.
43590         * modules/wchar: New module.
43591         * m4/wchar.m4: New file.
43592         * lib/wchar_.h: Likewise.
43593         * modules/mbchar (Depends-on): Depend on wchar, as the first use
43594         of the new module.
43595         * MODULES.html.sh (Extended multibyte and wide character utilities):
43596         New section.
43597
43598 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
43599
43600         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
43601         to a reasonable default for memory allocation.
43602         (xreadlink): Don't allocate a huge buffer, to work around a buggy
43603         file system that reports garbage st_size values for symlinks.
43604         Problem reported by Liyang Hu.
43605
43606 2007-01-11  Simon Josefsson  <simon@josefsson.org>
43607
43608         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
43609         Emacs .#* auto-save files).
43610
43611 2007-01-11  Bruno Haible  <bruno@clisp.org>
43612
43613         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
43614         directory.
43615
43616 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
43617
43618         Use @...@ consistently in lib/wctype_.h.
43619         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
43620         on it being set to 1 or 0.
43621         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
43622         go back to AC_SUBSTing it.
43623         * modules/wctype (Makefile.am): Undo previous change.
43624
43625 2007-01-10  Eric Blake  <ebb9@byu.net>
43626
43627         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
43628         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
43629         * modules/wctype (Makefile.am): Likewise.
43630         Reported by Chris McGuire.
43631
43632 2007-01-10  Jim Meyering  <jim@meyering.net>
43633
43634         fts.c: a small readability/maintainability improvement
43635         * lib/fts.c (fts_read): Make this code slightly more readable and
43636         maintainable by hoisting the "sp->fts_cur = p" assignments to
43637         immediately follow the statements that set P.  Derived from
43638         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
43639
43640 2007-01-10  Eric Blake  <ebb9@byu.net>
43641
43642         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
43643         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
43644         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
43645         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
43646         Reported by Chris McGuire.
43647
43648 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43649
43650         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
43651         in sed script.
43652
43653 2007-01-09  Bruno Haible  <bruno@clisp.org>
43654
43655         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
43656         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
43657         variables.
43658         (func_module): Use them.
43659
43660 2007-01-09  Bruno Haible  <bruno@clisp.org>
43661
43662         * modules/unistr/base: New file.
43663         * lib/unistr.h: New file.
43664
43665         * modules/unistr/u8-to-u16: New file.
43666         * lib/unistr/u8-to-u16.c: New file.
43667
43668         * modules/unistr/u8-to-u32: New file.
43669         * lib/unistr/u8-to-u32.c: New file.
43670
43671         * modules/unistr/u16-to-u8: New file.
43672         * lib/unistr/u16-to-u8.c: New file.
43673
43674         * modules/unistr/u16-to-u32: New file.
43675         * lib/unistr/u16-to-u32.c: New file.
43676
43677         * modules/unistr/u32-to-u8: New file.
43678         * lib/unistr/u32-to-u8.c: New file.
43679
43680         * modules/unistr/u32-to-u16: New file.
43681         * lib/unistr/u32-to-u16.c: New file.
43682
43683         * modules/unistr/u8-check: New file.
43684         * modules/unistr/u16-check: New file.
43685         * modules/unistr/u32-check: New file.
43686         * lib/unistr/u8-check.c: New file.
43687         * lib/unistr/u16-check.c: New file.
43688         * lib/unistr/u32-check.c: New file.
43689
43690         * modules/unistr/u8-chr: New file.
43691         * modules/unistr/u16-chr: New file.
43692         * modules/unistr/u32-chr: New file.
43693         * lib/unistr/u8-chr.c: New file.
43694         * lib/unistr/u16-chr.c: New file.
43695         * lib/unistr/u32-chr.c: New file.
43696
43697         * modules/unistr/u8-cmp: New file.
43698         * modules/unistr/u16-cmp: New file.
43699         * modules/unistr/u32-cmp: New file.
43700         * lib/unistr/u8-cmp.c: New file.
43701         * lib/unistr/u16-cmp.c: New file.
43702         * lib/unistr/u32-cmp.c: New file.
43703
43704         * modules/unistr/u8-cpy: New file.
43705         * modules/unistr/u16-cpy: New file.
43706         * modules/unistr/u32-cpy: New file.
43707         * lib/unistr/u8-cpy.c: New file.
43708         * lib/unistr/u16-cpy.c: New file.
43709         * lib/unistr/u32-cpy.c: New file.
43710         * lib/unistr/u-cpy.h: New file.
43711
43712         * modules/unistr/u8-cpy-alloc: New file.
43713         * modules/unistr/u16-cpy-alloc: New file.
43714         * modules/unistr/u32-cpy-alloc: New file.
43715         * lib/unistr/u8-cpy-alloc.c: New file.
43716         * lib/unistr/u16-cpy-alloc.c: New file.
43717         * lib/unistr/u32-cpy-alloc.c: New file.
43718         * lib/unistr/u-cpy-alloc.h: New file.
43719
43720         * modules/unistr/u8-endswith: New file.
43721         * modules/unistr/u16-endswith: New file.
43722         * modules/unistr/u32-endswith: New file.
43723         * lib/unistr/u8-endswith.c: New file.
43724         * lib/unistr/u16-endswith.c: New file.
43725         * lib/unistr/u32-endswith.c: New file.
43726         * lib/unistr/u-endswith.h: New file.
43727
43728         * modules/unistr/u8-mblen: New file.
43729         * modules/unistr/u16-mblen: New file.
43730         * modules/unistr/u32-mblen: New file.
43731         * lib/unistr/u8-mblen.c: New file.
43732         * lib/unistr/u16-mblen.c: New file.
43733         * lib/unistr/u32-mblen.c: New file.
43734
43735         * modules/unistr/u8-mbtouc: New file.
43736         * modules/unistr/u16-mbtouc: New file.
43737         * modules/unistr/u32-mbtouc: New file.
43738         * lib/unistr/u8-mbtouc.c: New file.
43739         * lib/unistr/u16-mbtouc.c: New file.
43740         * lib/unistr/u32-mbtouc.c: New file.
43741
43742         * modules/unistr/u8-mbtouc-safe: New file.
43743         * modules/unistr/u16-mbtouc-safe: New file.
43744         * modules/unistr/u32-mbtouc-safe: New file.
43745         * lib/unistr/u8-mbtouc-safe.c: New file.
43746         * lib/unistr/u16-mbtouc-safe.c: New file.
43747         * lib/unistr/u32-mbtouc-safe.c: New file.
43748
43749         * modules/unistr/u8-move: New file.
43750         * modules/unistr/u16-move: New file.
43751         * modules/unistr/u32-move: New file.
43752         * lib/unistr/u8-move.c: New file.
43753         * lib/unistr/u16-move.c: New file.
43754         * lib/unistr/u32-move.c: New file.
43755         * lib/unistr/u-move.h: New file.
43756
43757         * modules/unistr/u8-next: New file.
43758         * modules/unistr/u16-next: New file.
43759         * modules/unistr/u32-next: New file.
43760         * lib/unistr/u8-next.c: New file.
43761         * lib/unistr/u16-next.c: New file.
43762         * lib/unistr/u32-next.c: New file.
43763
43764         * modules/unistr/u8-prev: New file.
43765         * modules/unistr/u16-prev: New file.
43766         * modules/unistr/u32-prev: New file.
43767         * lib/unistr/u8-prev.c: New file.
43768         * lib/unistr/u16-prev.c: New file.
43769         * lib/unistr/u32-prev.c: New file.
43770
43771         * modules/unistr/u8-set: New file.
43772         * modules/unistr/u16-set: New file.
43773         * modules/unistr/u32-set: New file.
43774         * lib/unistr/u8-set.c: New file.
43775         * lib/unistr/u16-set.c: New file.
43776         * lib/unistr/u32-set.c: New file.
43777         * lib/unistr/u-set.h: New file.
43778
43779         * modules/unistr/u8-startswith: New file.
43780         * modules/unistr/u16-startswith: New file.
43781         * modules/unistr/u32-startswith: New file.
43782         * lib/unistr/u8-startswith.c: New file.
43783         * lib/unistr/u16-startswith.c: New file.
43784         * lib/unistr/u32-startswith.c: New file.
43785         * lib/unistr/u-startswith.h: New file.
43786
43787         * modules/unistr/u8-stpcpy: New file.
43788         * modules/unistr/u16-stpcpy: New file.
43789         * modules/unistr/u32-stpcpy: New file.
43790         * lib/unistr/u8-stpcpy.c: New file.
43791         * lib/unistr/u16-stpcpy.c: New file.
43792         * lib/unistr/u32-stpcpy.c: New file.
43793         * lib/unistr/u-stpcpy.h: New file.
43794
43795         * modules/unistr/u8-stpncpy: New file.
43796         * modules/unistr/u16-stpncpy: New file.
43797         * modules/unistr/u32-stpncpy: New file.
43798         * lib/unistr/u8-stpncpy.c: New file.
43799         * lib/unistr/u16-stpncpy.c: New file.
43800         * lib/unistr/u32-stpncpy.c: New file.
43801         * lib/unistr/u-stpncpy.h: New file.
43802
43803         * modules/unistr/u8-strcat: New file.
43804         * modules/unistr/u16-strcat: New file.
43805         * modules/unistr/u32-strcat: New file.
43806         * lib/unistr/u8-strcat.c: New file.
43807         * lib/unistr/u16-strcat.c: New file.
43808         * lib/unistr/u32-strcat.c: New file.
43809         * lib/unistr/u-strcat.h: New file.
43810
43811         * modules/unistr/u8-strchr: New file.
43812         * modules/unistr/u16-strchr: New file.
43813         * modules/unistr/u32-strchr: New file.
43814         * lib/unistr/u8-strchr.c: New file.
43815         * lib/unistr/u16-strchr.c: New file.
43816         * lib/unistr/u32-strchr.c: New file.
43817
43818         * modules/unistr/u8-strcmp: New file.
43819         * modules/unistr/u16-strcmp: New file.
43820         * modules/unistr/u32-strcmp: New file.
43821         * lib/unistr/u8-strcmp.c: New file.
43822         * lib/unistr/u16-strcmp.c: New file.
43823         * lib/unistr/u32-strcmp.c: New file.
43824
43825         * modules/unistr/u8-strcpy: New file.
43826         * modules/unistr/u16-strcpy: New file.
43827         * modules/unistr/u32-strcpy: New file.
43828         * lib/unistr/u8-strcpy.c: New file.
43829         * lib/unistr/u16-strcpy.c: New file.
43830         * lib/unistr/u32-strcpy.c: New file.
43831         * lib/unistr/u-strcpy.h: New file.
43832
43833         * modules/unistr/u8-strcspn: New file.
43834         * modules/unistr/u16-strcspn: New file.
43835         * modules/unistr/u32-strcspn: New file.
43836         * lib/unistr/u8-strcspn.c: New file.
43837         * lib/unistr/u16-strcspn.c: New file.
43838         * lib/unistr/u32-strcspn.c: New file.
43839         * lib/unistr/u-strcspn.h: New file.
43840
43841         * modules/unistr/u8-strdup: New file.
43842         * modules/unistr/u16-strdup: New file.
43843         * modules/unistr/u32-strdup: New file.
43844         * lib/unistr/u8-strdup.c: New file.
43845         * lib/unistr/u16-strdup.c: New file.
43846         * lib/unistr/u32-strdup.c: New file.
43847         * lib/unistr/u-strdup.h: New file.
43848
43849         * modules/unistr/u8-strlen: New file.
43850         * modules/unistr/u16-strlen: New file.
43851         * modules/unistr/u32-strlen: New file.
43852         * lib/unistr/u8-strlen.c: New file.
43853         * lib/unistr/u16-strlen.c: New file.
43854         * lib/unistr/u32-strlen.c: New file.
43855         * lib/unistr/u-strlen.h: New file.
43856
43857         * modules/unistr/u8-strmblen: New file.
43858         * modules/unistr/u16-strmblen: New file.
43859         * modules/unistr/u32-strmblen: New file.
43860         * lib/unistr/u8-strmblen.c: New file.
43861         * lib/unistr/u16-strmblen.c: New file.
43862         * lib/unistr/u32-strmblen.c: New file.
43863
43864         * modules/unistr/u8-strmbtouc: New file.
43865         * modules/unistr/u16-strmbtouc: New file.
43866         * modules/unistr/u32-strmbtouc: New file.
43867         * lib/unistr/u8-strmbtouc.c: New file.
43868         * lib/unistr/u16-strmbtouc.c: New file.
43869         * lib/unistr/u32-strmbtouc.c: New file.
43870
43871         * modules/unistr/u8-strncat: New file.
43872         * modules/unistr/u16-strncat: New file.
43873         * modules/unistr/u32-strncat: New file.
43874         * lib/unistr/u8-strncat.c: New file.
43875         * lib/unistr/u16-strncat.c: New file.
43876         * lib/unistr/u32-strncat.c: New file.
43877         * lib/unistr/u-strncat.h: New file.
43878
43879         * modules/unistr/u8-strncmp: New file.
43880         * modules/unistr/u16-strncmp: New file.
43881         * modules/unistr/u32-strncmp: New file.
43882         * lib/unistr/u8-strncmp.c: New file.
43883         * lib/unistr/u16-strncmp.c: New file.
43884         * lib/unistr/u32-strncmp.c: New file.
43885
43886         * modules/unistr/u8-strncpy: New file.
43887         * modules/unistr/u16-strncpy: New file.
43888         * modules/unistr/u32-strncpy: New file.
43889         * lib/unistr/u8-strncpy.c: New file.
43890         * lib/unistr/u16-strncpy.c: New file.
43891         * lib/unistr/u32-strncpy.c: New file.
43892         * lib/unistr/u-strncpy.h: New file.
43893
43894         * modules/unistr/u8-strnlen: New file.
43895         * modules/unistr/u16-strnlen: New file.
43896         * modules/unistr/u32-strnlen: New file.
43897         * lib/unistr/u8-strnlen.c: New file.
43898         * lib/unistr/u16-strnlen.c: New file.
43899         * lib/unistr/u32-strnlen.c: New file.
43900         * lib/unistr/u-strnlen.h: New file.
43901
43902         * modules/unistr/u8-strpbrk: New file.
43903         * modules/unistr/u16-strpbrk: New file.
43904         * modules/unistr/u32-strpbrk: New file.
43905         * lib/unistr/u8-strpbrk.c: New file.
43906         * lib/unistr/u16-strpbrk.c: New file.
43907         * lib/unistr/u32-strpbrk.c: New file.
43908         * lib/unistr/u-strpbrk.h: New file.
43909
43910         * modules/unistr/u8-strrchr: New file.
43911         * modules/unistr/u16-strrchr: New file.
43912         * modules/unistr/u32-strrchr: New file.
43913         * lib/unistr/u8-strrchr.c: New file.
43914         * lib/unistr/u16-strrchr.c: New file.
43915         * lib/unistr/u32-strrchr.c: New file.
43916
43917         * modules/unistr/u8-strspn: New file.
43918         * modules/unistr/u16-strspn: New file.
43919         * modules/unistr/u32-strspn: New file.
43920         * lib/unistr/u8-strspn.c: New file.
43921         * lib/unistr/u16-strspn.c: New file.
43922         * lib/unistr/u32-strspn.c: New file.
43923         * lib/unistr/u-strspn.h: New file.
43924
43925         * modules/unistr/u8-strstr: New file.
43926         * modules/unistr/u16-strstr: New file.
43927         * modules/unistr/u32-strstr: New file.
43928         * lib/unistr/u8-strstr.c: New file.
43929         * lib/unistr/u16-strstr.c: New file.
43930         * lib/unistr/u32-strstr.c: New file.
43931         * lib/unistr/u-strstr.h: New file.
43932
43933         * modules/unistr/u8-strtok: New file.
43934         * modules/unistr/u16-strtok: New file.
43935         * modules/unistr/u32-strtok: New file.
43936         * lib/unistr/u8-strtok.c: New file.
43937         * lib/unistr/u16-strtok.c: New file.
43938         * lib/unistr/u32-strtok.c: New file.
43939         * lib/unistr/u-strtok.h: New file.
43940
43941         * modules/unistr/u8-uctomb: New file.
43942         * modules/unistr/u16-uctomb: New file.
43943         * modules/unistr/u32-uctomb: New file.
43944         * lib/unistr/u8-uctomb.c: New file.
43945         * lib/unistr/u16-uctomb.c: New file.
43946         * lib/unistr/u32-uctomb.c: New file.
43947
43948         * MODULES.html.sh (Unicode string functions): Add the new modules.
43949
43950 2007-01-08  Bruno Haible  <bruno@clisp.org>
43951
43952         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
43953         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
43954         subdirectories.
43955
43956 2007-01-08  Karl Berry  <karl@gnu.org>
43957
43958         * doc/error.texi: mention that main() fns must set program_name
43959         when progname is used.
43960
43961 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
43962
43963         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
43964         WCTYPE_H is empty, for the benefit of builds from non-distclean
43965         directories.  Problem reported by Eric Blake in
43966         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
43967
43968 2007-01-08  Bruno Haible  <bruno@clisp.org>
43969
43970         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
43971         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
43972         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
43973         PROVIDE_CANONICALIZE_FILENAME_MODE.
43974         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
43975
43976 2007-01-08  Bruno Haible  <bruno@clisp.org>
43977
43978         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
43979         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
43980         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
43981         * lib/fts.c: Likewise.
43982         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
43983
43984 2006-12-25  Bruno Haible  <bruno@clisp.org>
43985
43986         * modules/utf8-ucs4-safe: New file.
43987         * lib/utf8-ucs4-safe.h: New file.
43988         * lib/unistr/utf8-ucs4-safe.c: New file.
43989
43990         * modules/utf16-ucs4-safe: New file.
43991         * lib/utf16-ucs4-safe.h: New file.
43992         * lib/unistr/utf16-ucs4-safe.c: New file.
43993
43994         * MODULES.html.sh (Unicode string functions): Add the new modules.
43995
43996 2007-01-08  Bruno Haible  <bruno@clisp.org>
43997
43998         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
43999         (Depends-on): Add unitypes.
44000         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
44001         (u8_mbtouc_aux): Move out to separate file.
44002         (u8_mbtouc): Use ucs4_t, uint8_t types.
44003         * lib/unistr/utf8-ucs4.c: New file.
44004
44005         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
44006         (Depends-on): Add unitypes.
44007         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
44008         (u16_mbtouc_aux): Move out to separate file.
44009         (u16_mbtouc): Use ucs4_t, uint16_t types.
44010         * lib/unistr/utf16-ucs4.c: New file.
44011
44012         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
44013         (Depends-on): Add unitypes.
44014         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
44015         (u8_uctomb_aux): Move out to separate file.
44016         (u8_uctomb): Use ucs4_t, uint8_t types.
44017         * lib/unistr/ucs4-utf8.c: New file.
44018
44019         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
44020         (Depends-on): Add unitypes.
44021         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
44022         (u16_uctomb_aux): Move out to separate file.
44023         (u16_uctomb): Use ucs4_t, uint16_t types.
44024         * lib/unistr/ucs4-utf16.c: New file.
44025
44026 2006-12-25  Bruno Haible  <bruno@clisp.org>
44027
44028         * modules/unitypes: New file.
44029         * lib/unitypes.h: New file.
44030         * MODULES.html.sh (func_all_modules): New section "Unicode string
44031         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
44032         this section. Add unitypes.
44033
44034 2007-01-08  Bruno Haible  <bruno@clisp.org>
44035
44036         Avoid variable names that conflict with those from libtool.
44037         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
44038         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
44039         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
44040         library_names_spec to acl_library_names_spec, hardcode_* to
44041         acl_hardcode_*.
44042         Reported by Ralf Wildenhues.
44043
44044 2007-01-08  Bruno Haible  <bruno@clisp.org>
44045
44046         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
44047         definition.
44048         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
44049         definition.
44050         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
44051         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
44052         definition.
44053         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
44054         definition.
44055         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
44056         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
44057         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
44058         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
44059         definition.
44060         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
44061         definition.
44062         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
44063         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
44064         GC_USE_<algorithm>.
44065         * lib/gc-libgcrypt.c: Likewise.
44066         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
44067         * modules/gc-arctwo (configure.ac): Likewise.
44068         * modules/gc-des (configure.ac): Likewise.
44069         * modules/gc-hmac-md5 (configure.ac): Likewise.
44070         * modules/gc-hmac-sha1 (configure.ac): Likewise.
44071         * modules/gc-md2 (configure.ac): Likewise.
44072         * modules/gc-md4 (configure.ac): Likewise.
44073         * modules/gc-md5 (configure.ac): Likewise.
44074         * modules/gc-random (configure.ac): Likewise.
44075         * modules/gc-rijndael (configure.ac): Likewise.
44076         * modules/gc-sha1 (configure.ac): Likewise.
44077
44078 2007-01-08  Bruno Haible  <bruno@clisp.org>
44079
44080         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
44081         macro definition.
44082         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
44083         definition.
44084         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
44085         definition.
44086         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
44087         * modules/fcntl-safer (configure.ac): Likewise.
44088         * modules/fopen-safer (configure.ac): Likewise.
44089         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
44090         GNULIB_FWRITEERROR macro definition.
44091
44092 2007-01-08  Bruno Haible  <bruno@clisp.org>
44093
44094         * m4/gnulib-common.m4: New file.
44095         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
44096         (func_get_filelist): Add m4/gnulib-common.m4.
44097
44098 2007-01-08  Bruno Haible  <bruno@clisp.org>
44099
44100         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
44101         command.
44102
44103 2007-01-08  Jim Meyering  <jim@meyering.net>
44104
44105         Use a more robust test for a "can't happen" condition.
44106         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
44107         narrowed the st_size value.  Presuming the "can't happen" condition
44108         is true, that narrowing could conceivably convert an invalid st_size
44109         value into a valid one.  Instead, use a change based on Matthew
44110         Woehlke's original patch.
44111
44112         Slight readability improvement: use an assert-like macro
44113         in place of literal "abort ()" uses.
44114         * lib/fts.c (fts_assert): Define.
44115         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
44116         Use this macro instead of a bare 'abort'.
44117
44118 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
44119
44120         Don't worry about using IRIX 5.3's wctype.h broken definitions;
44121         simply work around them.
44122         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
44123         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
44124         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
44125         declaring.
44126         Don't bother to define as macros, since the standard doesn't require it.
44127         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
44128         longer worry about IRIX 5.3.
44129         (HAVE_WCTYPE_CTMP_BUG): Remove.
44130
44131 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
44132
44133         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
44134         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
44135         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
44136         Problems reported by Georg Schwarz for IRIX 5.3.
44137
44138         * gnulib-tool (autoconf_minversion): Take the maximum version number
44139         found, not the minimum.  Problem reported by James Youngman.
44140
44141 2007-01-03  Karl Berry  <karl@gnu.org>
44142
44143         * doc/error.texi: new file, explaining interaction with progname.
44144         * doc/gnulib.texi: include it.  Update copyright.
44145
44146 2007-01-03  Simon Josefsson  <simon@josefsson.org>
44147
44148         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
44149         AC_CANONICAL_HOST, to improve autobuild outputs.
44150
44151 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
44152             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
44153
44154         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
44155         sockets, server sockets, and other file descriptors.  Count errors
44156         to compute the return value.  Reorder the code a bit to be easier
44157         to follow.  Don't set event bits that were not requested (except
44158         POLLERR and POLLHUP).
44159
44160 2007-01-01  Bruno Haible  <bruno@clisp.org>
44161
44162         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
44163
44164 2007-01-03  Jim Meyering  <jim@meyering.net>
44165
44166         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
44167
44168 2007-01-02  Bruno Haible  <bruno@clisp.org>
44169
44170         * modules/settime (Include): Require timespec.h.
44171         * modules/nanosleep (Include): Likewise.
44172
44173 2007-01-01  Bruno Haible  <bruno@clisp.org>
44174
44175         * gnulib-tool (func_emit_copyright_notice): Bump year.
44176         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
44177
44178 2007-01-01  Bruno Haible  <bruno@clisp.org>
44179
44180         Improve support for OpenBSD.
44181         * build-aux/config.rpath (libname_spec): Export.
44182         (library_names_spec): New variable. Export.
44183         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
44184         library_names_spec from the config.rpath output. Locate shared library
44185         through the name pattern in library_names_spec.
44186
44187 2007-01-01  Eric Blake  <ebb9@byu.net>
44188
44189         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
44190
44191 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
44192
44193         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
44194         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
44195         assume the C locale, and avoid an "eval" that could cause trouble.
44196         Problem with SORT reported by Bob Proulx.
44197
44198         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
44199         Define.  Trivial patch from Henning Nielsen Lund, originally
44200         sent to bug-grep@gnu.org today.
44201
44202 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
44203
44204         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
44205         struct stat.  Problem reported by Henning Nielsen Lund.
44206         * lib/acl.c: Include acl.h first, to check interface.  Don't
44207         bother to include sys/types.h and sys/stat.h again.
44208
44209 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
44210
44211         Import the following change from libc; problem reported by
44212         Sven Verdoolaege.
44213
44214         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
44215
44216         [BZ #1373]
44217         * lib/argp.h: Remove __NTH for __argp_usage inline function.
44218
44219 2006-12-28  Jim Meyering  <jim@meyering.net>
44220
44221         * build-aux/announce-gen: Do not assume that the package
44222         builds any of tar.gz, tar.bz2, and .xdelta files.
44223         Suggestion from Simon Josefsson.
44224
44225 2006-12-28  Simon Josefsson  <simon@josefsson.org>
44226
44227         * modules/announce-gen: New file.
44228
44229 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
44230
44231         * lib/mbchar.h: Just include <wctype.h>; the wctype module
44232         handles its gotchas now.
44233         * lib/mbswidth.c: Likewise.
44234         * lib/wcwidth.h: Likewise.
44235         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
44236         and iswcntrl; the wctype module does this stuff now.
44237         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
44238         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
44239         * modules/mbchar (Depends-on): Add wctype.
44240         * modules/mbswidth (Depends-on): Likewise.
44241         * modules/wcwidth (Depends-on): Likewise.
44242
44243 2006-12-27  Eric Blake  <ebb9@byu.net>
44244
44245         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
44246         module uses more than what <wctype.h> is required to provide.
44247
44248 2006-12-26  Eric Blake  <ebb9@byu.net>
44249
44250         * gnulib-tool (sed_extract_prog): Avoid space-tab.
44251
44252 2006-12-26  Eric Blake  <ebb9@byu.net>
44253
44254         * modules/absolute-header: New module.
44255         * modules/fcntl (Depends-on): Depend on it.
44256         * modules/inttypes (Depends-on): Likewise.
44257         * modules/stdint (Depends-on): Likewise.
44258         * modules/sys_stat (Depends-on): Likewise.
44259         * modules/wctype (Depends-on): Likewise.
44260         * MODULES.html.sh (Support for building libraries and
44261         executables): Document it.
44262
44263 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
44264
44265         * gnulib-tool (SED): Remove, undoing previous change.
44266         The problem was that it broke coreutils on Solaris, because
44267         "sed --posix" leaked into a makefile.
44268         (sed): New alias, if 'alias' and GNU sed.
44269
44270 2006-12-24  Jim Meyering  <jim@meyering.net>
44271
44272         Work around an fchownat bug in glibc-2.4:
44273         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
44274         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
44275         in spite of the -P option.
44276         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
44277         New macros.
44278         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
44279         * modules/openat (Files): Add lib/fchownat.c.
44280         * lib/openat.c (fchownat): Don't define here.  Move to...
44281         * lib/fchownat.c: ...this new file.
44282
44283 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
44284
44285         Fix bug reported by Bruno Haible in
44286         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
44287         where quotearg.c didn't compile on Mac OS X 10.2 because it
44288         lacks <wchar.h> and wint_t.
44289         * lib/wctype_.h (__wctype_wint_t): New type.
44290         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
44291         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
44292         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
44293         Arg is now of type __wctype_wint_t, not wint_t.
44294         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
44295         substitute HAVE_WINT_T.
44296         * modules/wctype (Files): Add m4/wint_t.m4.
44297         (wctype.h): Substitute HAVE_WINT_T.
44298
44299 2006-12-23  Bruno Haible  <bruno@clisp.org>
44300
44301         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
44302
44303 2006-12-23  Bruno Haible  <bruno@clisp.org>
44304
44305         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
44306         S_ISLNK.
44307         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
44308         mingw.
44309
44310 2006-12-22  Bruno Haible  <bruno@clisp.org>
44311
44312         * lib/copy-file.c: Include acl.h.
44313         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
44314         Close the file descriptors only after being done with copy_acl.
44315         * modules/copy-file (Depends-on): Add acl.
44316
44317 2006-12-22  Bruno Haible  <bruno@clisp.org>
44318
44319         * gnulib-tool (SED): New variable.
44320         Use $SED instead of sed everywhere.
44321
44322 2006-12-22  Bruno Haible  <bruno@clisp.org>
44323
44324         * modules/no-c++: New file.
44325         * m4/no-c++.m4: New file.
44326         * MODULES.html.sh (Support for building libraries and executables):
44327         Add no-c++.
44328
44329 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
44330
44331         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
44332         Include <limits.h>, and use its INT_MAX to rewrite the
44333         j loop so that it does not overflow 'int'.  Problem reported by
44334         Ralf Wildenhues in
44335         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
44336         Play it safe by shifting left by 1 rather than multiplying by 2,
44337         as GCC is less likely to optimize this away when the value
44338         is signed (when it assumes overflow leads to undefined behavior).
44339         Also, don't assume time_t uses two's complement.
44340
44341 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
44342
44343         * MODULES.html.sh: New module wctype.
44344         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
44345         * lib/fnmatch.c: Don't bother to include <wchar.h> before
44346         <wctype.h>, since the new wctype module should fix this.
44347         * lib/quotearg.c: Include <wctype.h> unconditionally, since
44348         the wctype module should arrange for it.
44349         * lib/regex_internal.h: Likewise.
44350         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
44351         since the wctype module should handle this now.
44352         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
44353         * modules/fnmatch (Depends-on): Add wctype.
44354         * modules/quotearg (Depends-on): Likewise.
44355         * modules/regex (Depends-on): Likewise.
44356
44357 2006-12-19  Bruno Haible  <bruno@clisp.org>
44358
44359         * lib/strdup.h [C++]: Wrap definitions in extern "C".
44360         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
44361
44362 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44363
44364         * modules/savewd (Depends-on): Fix dependency on fcntl.
44365
44366 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
44367
44368         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
44369         conforms to C99, rather than relying on the user's environment
44370         setting of STDINT_H.
44371
44372 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
44373         and Eric Blake  <ebb9@byu.net>
44374
44375         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
44376         This is more consistent with the other defines here.
44377         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
44378         Port to z/OS.  Problem reported by Paul Gilmartin.
44379         Change local vars to use gl_ prefix rather than ac_.
44380         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
44381         with other defines.
44382         * modules/double-slash-root: New module.
44383         * modules/dirname (Files): Remove m4/double-slash-root.m4.
44384         (Depends-on): Add double-slash-root.
44385         * MODULES.html.sh (File system functions): Mention new module.
44386
44387 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
44388
44389         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
44390         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
44391         This is for the benefit of gzip, which doesn't do i18n.
44392
44393 2006-12-12  Jim Meyering  <jim@meyering.net>
44394
44395         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
44396         Reported by Andreas Schwab <schwab@suse.de>.
44397
44398 2006-12-12  Bruno Haible  <bruno@clisp.org>
44399
44400         Merge these changes.
44401         2006-09-05  Bruno Haible  <bruno@clisp.org>
44402         * lib/iconvme.c (iconv_string): No need to save and restore errno when
44403         iconv_alloc succeeded.
44404         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
44405         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
44406         test for " && dest " at the end - dest is always != NULL there. Call
44407         iconv with 4xNULL arguments initially, to reset the state. Call iconv
44408         with 2xNULL arguments, also to flush the state storage. Handle the
44409         IRIX iconv behaviour. Realloc the final result, to throw away unused
44410         memory.
44411
44412 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
44413
44414         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
44415         and fchmodat unconditionally, since glibc 2.4 has them.
44416         Problem reported by Arkadiusz Miskiewicz.
44417
44418 2006-12-10  Bruno Haible  <bruno@clisp.org>
44419
44420         * gnulib-tool (func_import): Show the include files only for those
44421         modules that are copied and specified.
44422         Reported by Karl Berry.
44423
44424 2006-12-08  Jim Meyering  <jim@meyering.net>
44425
44426         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
44427         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
44428
44429         * build-aux/announce-gen: Add two new options, both optional:
44430         --bootstrap-tools=TOOL_LIST
44431               a comma-separated list of tools, e.g.,
44432               autoconf,automake,bison,gnulib
44433         --gnulib-snapshot-date=DATE
44434               if gnulib is in the bootstrap tool list,
44435               then report this as the snapshot date.
44436               If not specified, use the current date/time.
44437               If you specify a date here, be sure it's UTC.
44438
44439 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44440
44441         * tests/test-argp-2.sh: Fix test to match actual output.
44442         (func_compare): Fix sed script to be portable.
44443
44444 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
44445
44446         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
44447         workaround for this case.  It is not autoconfigured now; offhand
44448         it's hard to see how to autoconfigure it.
44449
44450 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
44451
44452         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
44453         a directory that is about to be chowned.  Such a directory's
44454         initial file permissions should permit the owner only and this
44455         should not be changed until after the chown, since the group and
44456         other bits would be incorrect if they granted permission before
44457         the chown.
44458
44459         Fix porting problem for iswctype reported by Georg Schwarz in:
44460         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
44461         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
44462         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
44463         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
44464         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
44465
44466 2006-12-03  Jim Meyering  <jim@meyering.net>
44467
44468         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
44469         p->fts_statp may not yet be defined.
44470         (fts_read): Instead, set it in the caller, once p->fts_statp is
44471         sure to be defined, and corresponds to a top-level directory.
44472         This bug made du -x fail.  Here's the coreutils test case:
44473         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
44474         Reported by Mike Frysinger.
44475
44476 2006-12-01  Jim Meyering  <jim@meyering.net>
44477
44478         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
44479         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
44480         Reported by Simon Josefsson.
44481
44482 2006-11-30  Jim Meyering  <jim@meyering.net>
44483
44484         * m4/warning.m4: Use the all-permissive copyright notice
44485         recommended by RMS (rather than LGPL).
44486         * m4/vararrays.m4: Likewise.
44487         * m4/flexmember.m4: Likewise.
44488
44489 2006-11-29  Bruno Haible  <bruno@clisp.org>
44490
44491         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
44492         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
44493         using +=.
44494         Reported by Simon Josefsson <simon@josefsson.org>.
44495
44496 2006-11-28  James Youngman <jay@gnu.org>
44497
44498         * README: Advise users that they might find the bug-gnulib@gnu.org
44499         and autotools-announce@gnu.org mailing lists useful.
44500
44501 2006-11-28  Bruno Haible  <bruno@clisp.org>
44502
44503         * m4/ptrdiff_max.m4: Remove file.
44504
44505 2006-11-21  Bruno Haible  <bruno@clisp.org>
44506
44507         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
44508         _AC_COMPUTE_INT.
44509         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
44510         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
44511         _AC_COMPUTE_INT.
44512         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
44513         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
44514         _AC_COMPUTE_INT.
44515         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
44516
44517 2006-11-28  Jim Meyering  <jim@meyering.net>
44518
44519         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
44520         warning from "gcc -Wshadow" about shadowing the builtin.
44521
44522 2006-11-27  Bruno Haible  <bruno@clisp.org>
44523
44524         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
44525         _AC_COMPUTE_INT.
44526         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
44527
44528 2006-11-27  Bruno Haible  <bruno@clisp.org>
44529             Paul Eggert  <eggert@cs.ucla.edu>
44530
44531         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
44532
44533 2006-11-26  Bruno Haible  <bruno@clisp.org>
44534
44535         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
44536         noinst_LTLIBRARIES.
44537
44538 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
44539             Bruno Haible  <bruno@clisp.org>
44540
44541         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
44542         if compiling with "gcc -ansi".
44543
44544 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
44545
44546         Fix some incompatibilities with gcc -ansi -pedantic.
44547         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
44548         if compiling pedantically with GCC, unless it's C99 or later.
44549         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
44550         it mishandles gcc -ansi -pedantic as well.
44551         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
44552         if gcc -pedantic.
44553         * lib/regexec.c (check_node_accept_bytes): Don't use auto
44554         initializers for struct if -pedantic, unless it's C99 or later.
44555
44556 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
44557
44558         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
44559         Don't close an fd more than once. Identical atimes indicate
44560         success, not failure.
44561
44562 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
44563
44564         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
44565
44566 2006-11-23  Jim Meyering  <jim@meyering.net>
44567
44568         * build-aux/announce-gen: New file.  From coreutils.
44569
44570 2006-11-22  Jim Meyering  <jim@meyering.net>
44571
44572         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
44573         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
44574         (fts_read): Use a temporary to narrow the overused st_size member
44575         before using it in a switch statement.  Reported by Matthew Woehlke.
44576
44577         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
44578         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
44579
44580 2006-11-20  Bruno Haible  <bruno@clisp.org>
44581
44582         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
44583         changequote instead of pairs of brackets.
44584         Reported by Andreas Schwab <schwab@suse.de>.
44585
44586 2006-11-21  Jim Meyering  <jim@meyering.net>
44587
44588         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
44589         so as to remain compatible with older compilers.
44590         Patch from Michael Deutschmann.
44591
44592 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
44593
44594         * MODULES.html.sh (File system functions): Add openat.
44595
44596         * lib/openat.h (rpl_fstatat): New macro, if
44597         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
44598         (fstatat): Define to rpl_fstatat under the same conditions,
44599         unless COMPILING_FSTATAT.
44600         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
44601         seems to have the bug.
44602         * lib/fstatat.c: New file.
44603         * modules/openat (Files): Add it.
44604
44605 2006-11-20  Bruno Haible  <bruno@clisp.org>
44606
44607         * Makefile: New file.
44608
44609 2006-11-20  Jim Meyering  <jim@meyering.net>
44610
44611         The beginnings of syntax-related checks for gnulib.
44612         * lib/Makefile: New file.
44613         * lib/t-idcache: New script.  Ensure that the two halves of
44614         idcache.c stay in sync.
44615
44616         * lib/idcache.c: Adjust comments in user- and group- portions to
44617         be more accurate, and to be consistent with one another.
44618
44619 2006-11-20  Jim Meyering  <jim@meyering.net>
44620
44621         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
44622         continue using the flexible array member (thus, this module performs
44623         half as many malloc calls), with the addition that...
44624         (getgroup, getuser): Consistently record a non-match via an empty
44625         "name" string, and map an empty string match to a NULL return value.
44626         * modules/idcache (Depends-on): Re-add flexmember.
44627
44628         * lib/idcache.c (getuser): Remove all uses of the register keyword.
44629         (getuidbyname, getgroup, getgidbyname): Likewise.
44630
44631         Use cleaner syntax: NULL rather than 0.
44632         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
44633
44634 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
44635
44636         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
44637         It mishandled the case where the group was missing.
44638         Problem reported by Greg Schafer.
44639         * modules/idcache: Likewise.
44640
44641 2006-11-18  Jim Meyering  <jim@meyering.net>
44642
44643         * check-module (%exempt_header): Add exception for some
44644         conditionally-included headers.
44645
44646         * modules/i-ring (Depends-on): Add verify.
44647         (License): Change to LGPL.
44648
44649 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
44650
44651         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
44652         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
44653         and inttostr.h.  Use snprintf rather than uinttostr, so that
44654         LGPLed code doesn't depend on GPLed.
44655
44656 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
44657
44658         * modules/inline (License): Change from GPL to LGPL.
44659
44660 2006-11-17  Jim Meyering  <jim@meyering.net>
44661
44662         * modules/d-type (License): Switch to LGPL.
44663
44664 2006-11-15  Bruno Haible  <bruno@clisp.org>
44665
44666         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
44667
44668 2006-11-15  Eric Blake  <ebb9@byu.net>
44669
44670         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
44671         the module dependency.
44672
44673 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44674             Bruno Haible  <bruno@clisp.org>
44675
44676         * gnulib-tool (func_create_testdir): Add license consistency check.
44677
44678 2006-11-15  Eric Blake  <ebb9@byu.net>
44679
44680         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
44681         random "(cached)" in configure output.
44682
44683 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44684
44685         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
44686         test for conforming inttypes.h is both announced and cached.
44687
44688         * MODULES.html.sh (seen_modules, seen_files): New variables.
44689         (func_module): Rewrite to use a few less gnulib-tool and sed
44690         invocations.  Avoid a couple of quadratic algorithms for ...
44691         (missed_modules, missed_files): ... these, with ...
44692         (func_append, func_tmpdir): ... these new functions, from
44693         gnulib-tool.  Analogously, install traps for cleanup.
44694
44695         * tests/test-gc.c (main): Remove unused variables.
44696         * tests/test-read-file.c: Include stdlib.h, for 'free'.
44697
44698 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
44699
44700         * modules/inttostr (License): Change to LGPL.
44701
44702 2006-11-14  Eric Blake  <ebb9@byu.net>
44703
44704         * modules/tempname (License): Change to LGPL.
44705
44706 2006-11-14  Eric Blake  <ebb9@byu.net>
44707
44708         * doc/functions.texi (Function Portability): *printf functions on
44709         Cygwin now understand all POSIX size specifiers.
44710
44711 2006-11-14  Bruno Haible  <bruno@clisp.org>
44712
44713         * modules/c-ctype (License): Change to LGPL.
44714
44715 2006-11-12  Bruno Haible  <bruno@clisp.org>
44716
44717         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
44718         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
44719         for GNOME libraries, for which the include files are installed in
44720         subdirectories of $prefix/include.
44721
44722 2006-11-12  Bruno Haible  <bruno@clisp.org>
44723
44724         * m4/lib-link.m4: Require at least autoconf-2.54.
44725         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
44726         name to underscores for the --with option.
44727
44728 2006-11-13  Bruno Haible  <bruno@clisp.org>
44729
44730         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
44731         the tests directory.
44732         Reported by Ralf Wildenhues.
44733
44734 2006-11-13  Bruno Haible  <bruno@clisp.org>
44735
44736         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
44737         (func_emit_initmacro_end): Undo the override here.
44738         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
44739         Works around the famous automake error in coreutils.
44740
44741 2006-11-13  Eric Blake  <ebb9@byu.net>
44742
44743         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
44744         element, not its node.
44745
44746 2006-11-12  Bruno Haible  <bruno@clisp.org>
44747
44748         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
44749         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
44750
44751 2006-11-12  Bruno Haible  <bruno@clisp.org>
44752
44753         * gnulib-tool: New option --local-symlink.
44754         (func_usage): Document it.
44755         (lsymbolic): New variable.
44756         (func_import, func_create_testdir): If --symlink was not specified,
44757         test whether --local-symlink was specified and the file comes from
44758         the local_gnulib_dir.
44759
44760 2006-11-12  Bruno Haible  <bruno@clisp.org>
44761
44762         * gnulib-tool (func_ln): New function.
44763         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
44764
44765 2006-11-12  Bruno Haible  <bruno@clisp.org>
44766
44767         Finish support for source files in subdirectories.
44768         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
44769         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
44770         AUTOMAKE_OPTIONS.
44771         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
44772
44773 2006-11-12  Bruno Haible  <bruno@clisp.org>
44774
44775         * gnulib-tool (func_get_automake_snippet): Synthesize also an
44776         EXTRA_lib_SOURCES augmentation.
44777         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
44778
44779 2006-11-12  Jim Meyering  <jim@meyering.net>
44780
44781         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
44782         file descriptors.  This also averts a failure on systems with
44783         native openat support when a traversed directory lacks "x" access.
44784         * lib/fts_.h: Include "i-ring.h"
44785         (struct FTS) [fts_fd_ring]: New member.
44786         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
44787         (FCHDIR): Add parentheses.
44788         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
44789         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
44790         When descending, rather than simply closing the previous
44791         fts_cwd_fd value, push that file descriptor onto the ring.
44792         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
44793         (fts_open): Initialize the new fd_ring member.
44794         (fts_close): Clear the ring.
44795         (fts_safe_changedir): When possible, use our new fd_ring to skip
44796         the diropen and fstat and dev/ino comparison that would normally
44797         accompany a virtual `chdir ("..")'.
44798
44799         * modules/fts (Depends-on): Add i-ring.
44800         * modules/i-ring: New module.
44801         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
44802         * m4/i-ring.m4: New file.
44803
44804 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44805
44806         * gnulib-tool (func_create_testdir): Fix replacement of
44807         `build-aux' in configure.ac.  Run autotools in gltests
44808         subdirectory.
44809         (func_create_testdir, func_create_megatestdir, test): There is
44810         no need for '--force' in most autotool invocations in a new
44811         tree.  Actually fail the whole test if any of the tools, or the
44812         configure or make stages fail.
44813
44814         Sync from Automake.
44815         * build-aux/gnupload: Revert last change.  Add pointer to upload
44816         instructions of the GNU Maintenance Instructions.
44817         Suggestion by Karl Berry.
44818
44819 2006-11-10  Jim Meyering  <jim@meyering.net>
44820
44821         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
44822
44823 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
44824
44825         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
44826         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
44827         (bind_textdomain_codeset) [! ENABLE_NLS]:
44828         Evaluate all the arguments.  That way, callers get compatible behavior
44829         if the arguments have side effects.  Also, it avoids some GCC
44830         diagnostics in some cases; Joel E. Denny reported problems when Bison
44831         was configured with --enable-gcc-warnigs.
44832
44833 2006-11-10  Jim Meyering  <jim@meyering.net>
44834
44835         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
44836         relevant options in CFLAGS (like -O, -fno-inline) are taken into
44837         account.
44838
44839 2006-11-10  Jim Meyering  <jim@meyering.net>
44840
44841         * modules/inline: New file/module.
44842         * modules/xalloc (Files): Remove m4/inline.m4.
44843         (Depends-on): Add inline, instead.
44844         * modules/oset: Likewise.
44845         * modules/list: Likewise.
44846
44847 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
44848
44849         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
44850         Problem reported by Matthew Woehlke.
44851
44852 2006-11-09  Bruno Haible  <bruno@clisp.org>
44853
44854         * lib/tempname.c (gen_tempname): Remove variant that invokes
44855         __gen_tempname.
44856         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
44857         __gen_tempname.
44858
44859 2006-11-08  Bruno Haible  <bruno@clisp.org>
44860
44861         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
44862         to 'yes' instead of 'cross-compiling'.
44863
44864 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
44865
44866         * lib/quotearg.h (quotearg_free): New decl.
44867         * lib/quotearg.c (quotearg_free): New function.
44868         (slot0, nslots, slotvec0, slotvec):
44869         Now file-scope so that quotearg_free can get at them.
44870
44871 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44872
44873         Sync from Automake.
44874         * build-aux/gnupload: Add missing 'gnu' to example URL.
44875         Report by Karl Berry.
44876
44877 2006-11-08  Bruno Haible  <bruno@clisp.org>
44878
44879         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
44880         Suggested by Paul Eggert.
44881
44882 2006-11-08  Jim Meyering  <jim@meyering.net>
44883
44884         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
44885         It's already included if !_LIBC.
44886         (fts_safe_changedir): Add a comment.
44887
44888 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
44889
44890         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
44891         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
44892         Matthew Woehlke.
44893
44894         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
44895         definitions up, to avoid colliding with change below.
44896         (static_inline) [HAVE_INLINE]: New macro.
44897         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
44898         Provide extern decls when !HAVE_INLINE.  Do not define unless
44899         static_inline is defined, either by us or by xmalloc.c.  Use
44900         static_inline rather than static inline.
44901         (XCALLOC): Optimize sizeof(T) = 1 case.
44902         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
44903
44904 2006-11-07  Bruno Haible  <bruno@clisp.org>
44905
44906         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
44907         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
44908         AC_C_INLINE.
44909         * modules/xalloc (Files): Add m4/inline.m4.
44910
44911 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44912
44913         * README: Fix typo.
44914         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
44915         (Miscellanous Notes): ...from this.
44916
44917 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
44918
44919         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
44920         Mention that offsetof should be used instead of sizeof.
44921         From Bruno Haible.
44922
44923 2006-11-07  Bruno Haible  <bruno@clisp.org>
44924
44925         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
44926
44927 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
44928
44929         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
44930         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
44931         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
44932         (gl_tree_add_before, gl_tree_add_after):
44933         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
44934         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
44935         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
44936         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
44937         (gl_linked_add_after, gl_linked_add_at): Likewise.
44938         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
44939         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
44940         (gl_tree_add_before, gl_tree_add_after): Likewise.
44941         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
44942         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
44943         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
44944
44945 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44946
44947         * lib/gl_oset.h: Use C comment style, not C++ comment style.
44948
44949 2006-11-06  Bruno Haible  <bruno@clisp.org>
44950
44951         * m4/inline.m4: New file.
44952         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
44953         * modules/list (Files): Add m4/inline.m4.
44954         * modules/oset (Files): Likewise.
44955
44956 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
44957
44958         * lib/idcache.c: Include <stddef.h>, for offsetof.
44959         (struct userid.name): Change from char * to a flexible array member.
44960         All uses changed.
44961         * modules/idcache (Depends-on): Add flexmember.
44962
44963         * MODULES.html.sh (Core language properties): New module flexmember.
44964         * modules/flexmember, m4/flexmember.m4: New files.
44965
44966         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
44967         inline functions that are identical with the old xnmalloc_inline,
44968         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
44969         that we can avoid some unnecessary integer multiplications and
44970         divisions in the common case where the element size is known at
44971         compile time.
44972         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
44973         needed.
44974         (xnboundedmalloc): Remove.
44975         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
44976         arguments, for consistency with rest of this header.
44977         (xcharalloc): Rewrite using XNMALLOC.
44978         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
44979         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
44980         versions have been moved to lib/xalloc.h and renamed to be the
44981         non-*_inline versions.
44982         (xmalloc, xrealloc): Implement without reference to the xnmalloc
44983         and xnrealloc functions, since those functions are now inline and
44984         now call us.
44985         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
44986         renaming described above.
44987         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
44988         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
44989         captures the dependency in AC_C_INLINE.
44990
44991         New module canonicalize-lgpl, proposed by Charles Wilson in
44992         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
44993         with a few small changes afterwards.
44994         * MODULES.html.sh (File system functions): New module
44995         canonicalize-lgpl.
44996         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
44997         and canonicalize_file_name.
44998         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
44999         * modules/canonicalize-lgpl: New files.
45000
45001 2006-11-05  Bruno Haible  <bruno@clisp.org>
45002
45003         * gnulib-tool (func_import, func_create_testdir): Create directories
45004         also for files in subdirectories of lib/.
45005
45006 2006-11-05  Bruno Haible  <bruno@clisp.org>
45007
45008         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
45009         ANSI C compliant.
45010
45011 2006-11-03  Bruno Haible  <bruno@clisp.org>
45012
45013         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
45014         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
45015         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
45016         (xnboundedmalloc): New inline function.
45017         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
45018         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
45019         xmalloc.
45020         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
45021         xmalloc.
45022         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
45023         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
45024         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
45025         xmalloc.
45026         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
45027         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
45028         xmalloc.
45029         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
45030         gl_tree_add_after): Use XMALLOC instead of xmalloc.
45031         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
45032         xmalloc.
45033         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
45034         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
45035         gl_tree_add_after): Use XMALLOC instead of xmalloc.
45036         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
45037         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
45038         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
45039         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
45040
45041 2006-11-03  Bruno Haible  <bruno@clisp.org>
45042
45043         * lib/c-ctype.h [C++]: Define functions without name mangling.
45044         * lib/fwriteerror.h [C++]: Likewise.
45045         * lib/gcd.h [C++]: Likewise.
45046         * lib/linebreak.h [C++]: Likewise.
45047
45048 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
45049
45050         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
45051         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
45052         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
45053         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
45054         Check for functions and headers just once.
45055         Check for declaration of canonicalize_file_name.
45056         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
45057
45058 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
45059
45060         * gnulib-tool (func_import): Fix typo in actioncmd.
45061
45062 2006-11-02  Bruno Haible  <bruno@clisp.org>
45063
45064         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
45065         newline sequence in the Makefile.am snippet as a space, like "make"
45066         does.
45067         Reported by Roger Persson <perrog@gmail.com>.
45068
45069 2006-11-01  Bruno Haible  <bruno@clisp.org>
45070
45071         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
45072         already declared in <string.h>.
45073         * lib/strcase.h (strncasecmp): Don't declare it if yes.
45074
45075 2006-11-01  Bruno Haible  <bruno@clisp.org>
45076
45077         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
45078         * lib/strcase.h: Include <string.h>.
45079         (strcasecmp): Define to rpl_strcasecmp here.
45080
45081 2006-11-01  Bruno Haible  <bruno@clisp.org>
45082
45083         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
45084
45085 2006-11-01  Eric Blake  <ebb9@byu.net>
45086
45087         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
45088
45089         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
45090
45091 2006-10-29  Bruno Haible  <bruno@clisp.org>
45092
45093         Make it compile in C++ mode.
45094         * lib/full-write.c (full_rw): Add a cast.
45095
45096 2006-11-01  Bruno Haible  <bruno@clisp.org>
45097
45098         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
45099         be POSIX compliant.
45100         Reported by Roger Persson <perrog@gmail.com>.
45101
45102 2006-11-01  Eric Blake  <ebb9@byu.net>
45103
45104         * lib/getopt_.h: Fix comments.
45105
45106 2006-10-31  Eric Blake  <ebb9@byu.net>
45107
45108         * modules/tmpdir (Depends-on): Add sys_stat.
45109         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
45110         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
45111         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
45112         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
45113         tempname.
45114
45115 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
45116
45117         Avoid some C++ diagnostics reported by Bruno Haible.
45118         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
45119         xmalloc.
45120         (quotearg_alloc): Use xcharalloc rather than xmalloc.
45121         (struct slotvec): Move to top level.
45122         (quotearg_n_options): Rewrite to avoid xmalloc.
45123         * lib/xalloc.h (xcharalloc): New function.
45124         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
45125         [defined __cplusplus]: Add function template that provides result
45126         type propagation.  This part of the change is from Bruno Haible.
45127
45128 2006-10-29  Bruno Haible  <bruno@clisp.org>
45129
45130         Make it compile in C++ mode.
45131         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
45132         * lib/strnlen1.c (strnlen1): Cast memchr result.
45133         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
45134         * lib/clean-temp.c (string_equals, string_hash): Add casts.
45135         (create_temp_dir): Rename local variable 'template'.
45136         (compile_csharp_using_sscli): Add cast.
45137         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
45138         * lib/findprog.c (find_in_path): Likewise.
45139         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
45140         * lib/wait-process.c (register_slave_subprocess): Likewise.
45141
45142 2006-10-22  Bruno Haible  <bruno@clisp.org>
45143
45144         * modules/tsearch: New file.
45145         * lib/tsearch.h: New file.
45146         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
45147         * m4/tsearch.m4: New file.
45148         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
45149
45150 2006-10-29  Eric Blake  <ebb9@byu.net>
45151
45152         * lib/arcfour.c: Assume config.h.
45153         * lib/arctwo.c: Likewise.
45154         * lib/base64.c: Likewise.
45155         * lib/check-version.c: Likewise.
45156         * lib/crc.c: Likewise.
45157         * lib/des.c: Likewise.
45158         * lib/gc-gnulib.c: Likewise.
45159         * lib/gc-libgcrypt.c: Likewise.
45160         * lib/gc-pbkdf2-sha1.c: Likewise.
45161         * lib/getaddrinfo.c: Likewise.
45162         * lib/getdelim.c: Likewise.
45163         * lib/getline.c: Likewise.
45164         * lib/hmac-md5.c: Likewise.
45165         * lib/hmac-sha1.c: Likewise.
45166         * lib/iconvme.c: Likewise.
45167         * lib/md2.c: Likewise.
45168         * lib/md4.c: Likewise.
45169         * lib/memxor.c: Likewise.
45170         * lib/read-file.c: Likewise.
45171         * lib/readline.c: Likewise.
45172         * lib/rijndael-alg-fst.c: Likewise.
45173         * lib/rijndael-api-fst.c: Likewise.
45174         * lib/xgetdomainname.c: Likewise.
45175
45176 2006-10-28  Eric Blake  <ebb9@byu.net>
45177
45178         * lib/xstrndup.c: Assume config.h.
45179
45180 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
45181
45182         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
45183         stat-macros.h is now for our own macros, whereas stat_h is for
45184         macros in the <sys/stat.h> name space.
45185         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
45186         (STAT_MACROS_H): Remove.
45187         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
45188         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
45189         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
45190         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
45191         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
45192         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
45193         Move these macros to ...
45194         * lib/stat_.h: here.  Don't include stat-macros.h.
45195         * lib/canonicalize.c: Don't include stat-macros.h.
45196         * lib/chown.c: Likewise.
45197         * lib/euidaccess.c: Likewise.
45198         * lib/file-type.c: Likewise.
45199         * lib/filemode.c: Likewise.
45200         * lib/glob.c: Likewise.
45201         * lib/isapipe.c: Likewise.
45202         * lib/lchown.c: Likewise.
45203         * lib/lstat.c: Likewise.
45204         * lib/mkdir-p.c: Likewise.
45205         * lib/rmdir.c: Likewise.
45206         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
45207         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
45208         unless mkdir isn't declared, to speed up 'configure'.
45209         Always create sys/stat.h, since it's unlikely any real sys/stat.h
45210         would define all the S_* symbols.
45211         * modules/canonicalize (Depends-on):
45212         Depend on sys_stat, not stat-macros.
45213         * modules/chown: Likewise.
45214         * modules/euidaccess: Likewise.
45215         * modules/filemode: Likewise.
45216         * modules/file-type: Likewise.
45217         * modules/glob: Likewise.
45218         * modules/isapipe: Likewise.
45219         * modules/lchown: Likewise.
45220         * modules/lstat: Likewise.
45221         * modules/mkancesdirs: Likewise.
45222         * modules/rmdir: Likewise.
45223         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
45224         * modules/modechange: Likewise.
45225         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
45226         (configure.ac): Remove gl_STAT_MACROS.
45227         * modules/sys_stat (Depends-on): Remove stat-macros.
45228
45229 2006-10-27  Bruno Haible  <bruno@clisp.org>
45230
45231         * m4/signed.m4: Remove file.
45232         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
45233         invocation.
45234         * modules/vasnprintf (Files): Remove m4/signed.m4.
45235
45236 2006-10-27  Bruno Haible  <bruno@clisp.org>
45237
45238         Update to GNU gettext 0.16.
45239         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
45240         m4/inttypes-h.m4, m4/signed.m4.
45241         * m4/gettext.m4: Update to GNU gettext 0.16.
45242         * m4/intl.m4: New file, from GNU gettext.
45243         * m4/intldir.m4: New file, from GNU gettext.
45244         * config/srclist.txt: Update
45245
45246 2006-10-27  Eric Blake  <ebb9@byu.net>
45247
45248         * MODULES.html.sh: Document tempname.
45249         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
45250         dependencies.
45251         (Files): Move lib/tempname.c...
45252         * modules/tempname: ...to this new module.
45253         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
45254         (gl_PREREQ_TEMPNAME): Move...
45255         * m4/tempname.m4: ...to this new file.
45256         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
45257         * modules/sys_stat (Depends-on): Add stat-macros.
45258         * lib/stat_.h (includes): Pick up stat macros.
45259         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
45260         if stat macros are broken.
45261         * lib/tempname.c (includes): No need to include "stat-macros.h".
45262         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
45263         (direxists, __path_search) [!_LIBC]: Don't compile these in
45264         gnulib; the tmpdir module covers that.
45265         * lib/tempname.h: New file.
45266
45267 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
45268
45269         * COPYING: Explain how gnulib-tool converts licence headers.
45270         Almost all wording by Eric Blake.
45271
45272 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
45273
45274         * lib/mbchar.h (is_basic_table): Make read-only.
45275         * lib/mbchar.c (is_basic_table): Likewise.
45276         Reported by John Darrington.
45277
45278 2006-10-25  Bruno Haible  <bruno@clisp.org>
45279
45280         * lib/progname.h (set_program_name): Undefine before defining.
45281
45282 2006-10-25  Bruno Haible  <bruno@clisp.org>
45283
45284         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
45285         false for non-gcc C++ compilers.
45286         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
45287
45288 2006-10-24  Bruno Haible  <bruno@clisp.org>
45289
45290         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
45291         iconv implementations like Irix iconv.
45292
45293 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
45294
45295         * modules/vararrays: New file.
45296         * m4/vararrays.m4: New file, taken from diffutils.
45297         * MODULES.html.sh: New module vararrays.
45298
45299 2006-10-24  Karl Berry  <karl@gnu.org>
45300
45301         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
45302         Don't call GNU Unix.
45303
45304 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45305
45306         * users.txt: Add Libtool.
45307
45308         Sync from Libtool:
45309
45310         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
45311
45312         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
45313         to gnulib's policy of including config.h unconditionally.
45314
45315 2006-10-24  Bruno Haible  <bruno@clisp.org>
45316
45317         * modules/wcwidth (Files): Add m4/wint_t.m4.
45318         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
45319         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
45320
45321 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
45322
45323         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
45324         to pacify GCC with some -W flags enabled.  Problem reported by
45325         Bruno Haible.
45326
45327 2006-10-24  Jim Meyering  <jim@meyering.net>
45328
45329         * MODULES.html.sh: Remove uinttostr.  It's not a module.
45330         Reported by Karl Berry.
45331
45332 2006-10-23  Bruno Haible  <bruno@clisp.org>
45333
45334         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
45335
45336 2006-10-24  Bruno Haible  <bruno@clisp.org>
45337
45338         * lib/gl_list.h: Use C comment style, not C++ comment style.
45339
45340 2006-10-23  Eric Blake  <ebb9@byu.net>
45341
45342         * lib/getaddrinfo.c (includes): Add missing include.
45343
45344 2006-10-23  Bruno Haible  <bruno@clisp.org>
45345             Paul Eggert  <eggert@cs.ucla.edu>
45346
45347         Ability to rename obstack_free.
45348         * lib/obstack.h (__obstack_free): New macro. Declare instead of
45349         obstack_free.
45350         (obstack_free): Invoke the __obstack_free macro.
45351         * lib/obstack.c (obstack_free): Use __obstack_free macro.
45352
45353 2006-10-23  Bruno Haible  <bruno@clisp.org>
45354             Paul Eggert  <eggert@cs.ucla.edu>
45355
45356         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
45357         __argc, __argv from the declaration. (They are defined as macros on
45358         mingw.)
45359
45360 2006-10-22  Bruno Haible  <bruno@clisp.org>
45361
45362         * doc/gnulib-intro.texi: New file.
45363         * doc/gnulib.texi: Include it.
45364
45365 2006-10-21  Bruno Haible  <bruno@clisp.org>
45366
45367         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
45368         "Introduction", "Miscellanous Notes", "Particular Modules".
45369
45370 2006-10-21  Bruno Haible  <bruno@clisp.org>
45371
45372         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45373         Change mostlyclean-local rule to avoid sh syntax error from bash
45374         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
45375
45376 2006-10-23  Jim Meyering  <jim@meyering.net>
45377
45378         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
45379         in place of snprintf.
45380
45381         * modules/inttostr (Files): Add lib/uinttostr.c.
45382         * lib/uinttostr.c (inttostr): New file/function.
45383         * lib/inttostr.h (uinttostr): Declare.
45384         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
45385         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
45386         Add uinttostr.
45387         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
45388
45389 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
45390
45391         * lib/canonicalize.c (ELOOP): Define if not already defined.
45392         Problem reported by Bruno Haible in
45393         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
45394
45395 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
45396
45397         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
45398         Problem reported by Perry Smith and Ville Laurikari.
45399
45400         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
45401         uses.
45402
45403 2006-10-19  Bruno Haible  <bruno@clisp.org>
45404
45405         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
45406         for mingw.
45407
45408 2006-10-19  Bruno Haible  <bruno@clisp.org>
45409
45410         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
45411         Needed for mingw.
45412
45413 2006-10-19  Bruno Haible  <bruno@clisp.org>
45414
45415         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
45416
45417 2006-10-19  Bruno Haible  <bruno@clisp.org>
45418
45419         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
45420         it.
45421
45422 2006-10-19  Bruno Haible  <bruno@clisp.org>
45423
45424         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
45425         invocation.
45426
45427 2006-10-19  Bruno Haible  <bruno@clisp.org>
45428
45429         * gnulib-tool (func_create_testdir): Don't include ftruncate and
45430         mountlist by default.
45431
45432 2006-10-16  Bruno Haible  <bruno@clisp.org>
45433
45434         * lib/c-strstr.c: Include c-strstr.h.
45435
45436 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
45437
45438         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
45439         in a slash.
45440
45441 2006-10-18  Bruno Haible  <bruno@clisp.org>
45442
45443         * lib/lock.h [C++]: Wrap definitions in extern "C".
45444
45445 2006-10-18  Bruno Haible  <bruno@clisp.org>
45446
45447         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
45448         gl_LIBOBJS list.
45449
45450 2006-10-18  Bruno Haible  <bruno@clisp.org>
45451
45452         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
45453
45454 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
45455
45456         * lib/xstrtol.h: Include gettext.h.
45457         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
45458         Problem reported by Eric Blake.
45459         * modules/xstrtol (Depends-on): Add gettext-h.
45460
45461 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
45462
45463         * lib/strftime.c (advance): New macro.
45464         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
45465         incomplete type, so you can't add 0 to it.  Problem and patch
45466         reported by Eelco Dolstra for dietlibc.
45467
45468 2006-10-18  Jim Meyering  <jim@meyering.net>
45469
45470         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
45471         type for a local, and rename it: s/up/user_proc/.
45472
45473 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
45474
45475         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
45476         READ_UTMP_USER_PROCESS.
45477         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
45478
45479 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
45480
45481         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
45482         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
45483
45484 2006-10-17  Eric Blake  <ebb9@byu.net>
45485
45486         * lib/sigprocmask.c (sigprocmask): Fix typo.
45487
45488         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
45489
45490         * modules/clean-temp (Makefile.am): Don't add to make output...
45491         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
45492         config.h.
45493
45494 2006-10-17  Bruno Haible  <bruno@clisp.org>
45495
45496         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
45497         differently if DEFAULT_TEXT_DOMAIN is set.
45498
45499 2006-10-16  Bruno Haible  <bruno@clisp.org>
45500
45501         * lib/clean-temp.c: Include fwriteerror.h.
45502
45503 2006-10-16  Bruno Haible  <bruno@clisp.org>
45504
45505         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
45506
45507 2006-10-16  Bruno Haible  <bruno@clisp.org>
45508
45509         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
45510         * lib/sigprocmask.h: Include <sys/types.h>.
45511         (sigset_t): Use the system's definition if present.
45512
45513 2006-10-17  Eric Blake  <ebb9@byu.net>
45514
45515         * lib/xvasprintf.c (includes): Assume config.h.
45516         * lib/xasprintf.c (includes): Likewise.
45517
45518 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
45519
45520         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
45521         at least as wide as intmax_t.
45522
45523 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
45524
45525         (Imported from Automake.)
45526         * build-aux/gnupload: Update to version 1.1 of directive file.
45527
45528 2006-10-16  Eric Blake  <ebb9@byu.net>
45529
45530         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
45531         match Automake 1.10a.
45532
45533 2006-10-14  Bruno Haible  <bruno@clisp.org>
45534
45535         * modules/sigprocmask: New file.
45536         * lib/sigprocmask.h: New file.
45537         * lib/sigprocmask.c: New file.
45538         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
45539         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
45540         request sigprocmask.o.
45541         (gl_PREREQ_SIGPROCMASK): New macro.
45542         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
45543         (Depends-on): Add sigprocmask.
45544         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
45545         gt_SIGNALBLOCKING. Test for 'raise' only once.
45546         * lib/fatal-signal.c: Include sigprocmask.h.
45547         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
45548         unblock_fatal_signals): Define always.
45549         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45550         sigprocmask.
45551
45552 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
45553
45554         Sync from Automake.
45555         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
45556         which incorrectly sets the mode of an existing destination
45557         directory.  In some cases the unpatched install-sh could do the
45558         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
45559         system.  We hope this is rare in practice, but it's clearly worth
45560         fixing.  Problem reported by Alex Unleashed in
45561         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
45562         Also, don't bother to check for -m bugs unless we're using -m;
45563         suggested by Stepan Kasal.
45564
45565 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45566
45567         Sync from Automake.
45568         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
45569         `-c' flag, so they appear at the same position as in %FASTDEP%
45570         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
45571         which ignores unknown options only after the first non-option.
45572         Bug report against M4 by Nelson H. F. Beebe.
45573
45574 2006-10-13  Jim Meyering  <jim@meyering.net>
45575
45576         Fix a bug in yesterday's change.
45577         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
45578         p->fts_statp->st_dev would be used uninitialized.
45579         Ensures that we always call fts_stat on the very first entry.
45580         Miklos Szeredi reported that find -xdev stopped working.
45581
45582 2006-10-12  Bruno Haible  <bruno@clisp.org>
45583
45584         * gnulib-tool (func_get_automake_snippet): Append an automatically
45585         computed EXTRA_DIST augmentation.
45586         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
45587         * modules/alloca-opt (Makefile.am): Likewise.
45588         * modules/allocsa (Makefile.am): Likewise.
45589         * modules/arcfour (Makefile.am): Likewise.
45590         * modules/arctwo (Makefile.am): Likewise.
45591         * modules/argmatch (Makefile.am): Likewise.
45592         * modules/argz (Makefile.am): Likewise.
45593         * modules/atexit (Makefile.am): Likewise.
45594         * modules/backupfile (Makefile.am): Likewise.
45595         * modules/byteswap (Makefile.am): Likewise.
45596         * modules/c-strtod (Makefile.am): Likewise.
45597         * modules/c-strtold (Makefile.am): Likewise.
45598         * modules/calloc (Makefile.am): Likewise.
45599         * modules/canon-host (Makefile.am): Likewise.
45600         * modules/canonicalize (Makefile.am): Likewise.
45601         * modules/chdir-long (Makefile.am): Likewise.
45602         * modules/chdir-safer (Makefile.am): Likewise.
45603         * modules/check-version (Makefile.am): Likewise.
45604         * modules/chown (Makefile.am): Likewise.
45605         * modules/cloexec (Makefile.am): Likewise.
45606         * modules/close-stream (Makefile.am): Likewise.
45607         * modules/closeout (Makefile.am): Likewise.
45608         * modules/crc (Makefile.am): Likewise.
45609         * modules/csharpexec (Makefile.am): Likewise.
45610         * modules/cycle-check (Makefile.am): Likewise.
45611         * modules/des (Makefile.am): Likewise.
45612         * modules/dev-ino (Makefile.am): Likewise.
45613         * modules/dirfd (Makefile.am): Likewise.
45614         * modules/dirname (Makefile.am): Likewise.
45615         * modules/dup2 (Makefile.am): Likewise.
45616         * modules/eealloc (Makefile.am): Likewise.
45617         * modules/error (Makefile.am): Likewise.
45618         * modules/euidaccess (Makefile.am): Likewise.
45619         * modules/exclude (Makefile.am): Likewise.
45620         * modules/exitfail (Makefile.am): Likewise.
45621         * modules/fcntl-safer (Makefile.am): Likewise.
45622         * modules/fcntl (Makefile.am): Likewise.
45623         * modules/file-type (Makefile.am): Likewise.
45624         * modules/fileblocks (Makefile.am): Likewise.
45625         * modules/filemode (Makefile.am): Likewise.
45626         * modules/filenamecat (Makefile.am): Likewise.
45627         * modules/fnmatch (Makefile.am): Likewise.
45628         * modules/fopen-safer (Makefile.am): Likewise.
45629         * modules/fpending (Makefile.am): Likewise.
45630         * modules/fprintftime (Makefile.am): Likewise.
45631         * modules/free (Makefile.am): Likewise.
45632         * modules/fsusage (Makefile.am): Likewise.
45633         * modules/ftruncate (Makefile.am): Likewise.
45634         * modules/fts (Makefile.am): Likewise.
45635         * modules/gc-arcfour (Makefile.am): Likewise.
45636         * modules/gc-des (Makefile.am): Likewise.
45637         * modules/gc-hmac-md5 (Makefile.am): Likewise.
45638         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
45639         * modules/gc-md4 (Makefile.am): Likewise.
45640         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
45641         * modules/gc-sha1 (Makefile.am): Likewise.
45642         * modules/gc (Makefile.am): Likewise.
45643         * modules/getaddrinfo (Makefile.am): Likewise.
45644         * modules/getcwd (Makefile.am): Likewise.
45645         * modules/getdelim (Makefile.am): Likewise.
45646         * modules/getdomainname (Makefile.am): Likewise.
45647         * modules/getgroups (Makefile.am): Likewise.
45648         * modules/gethostname (Makefile.am): Likewise.
45649         * modules/gethrxtime (Makefile.am): Likewise.
45650         * modules/getline (Makefile.am): Likewise.
45651         * modules/getloadavg (Makefile.am): Likewise.
45652         * modules/getlogin_r (Makefile.am): Likewise.
45653         * modules/getndelim2 (Makefile.am): Likewise.
45654         * modules/getopt (Makefile.am): Likewise.
45655         * modules/getpagesize (Makefile.am): Likewise.
45656         * modules/getpass-gnu (Makefile.am): Likewise.
45657         * modules/getpass (Makefile.am): Likewise.
45658         * modules/getsubopt (Makefile.am): Likewise.
45659         * modules/gettime (Makefile.am): Likewise.
45660         * modules/gettimeofday (Makefile.am): Likewise.
45661         * modules/getugroups (Makefile.am): Likewise.
45662         * modules/getusershell (Makefile.am): Likewise.
45663         * modules/glob (Makefile.am): Likewise.
45664         * modules/group-member (Makefile.am): Likewise.
45665         * modules/hard-locale (Makefile.am): Likewise.
45666         * modules/hash (Makefile.am): Likewise.
45667         * modules/hmac-md5 (Makefile.am): Likewise.
45668         * modules/hmac-sha1 (Makefile.am): Likewise.
45669         * modules/human (Makefile.am): Likewise.
45670         * modules/idcache (Makefile.am): Likewise.
45671         * modules/imaxabs (Makefile.am): Likewise.
45672         * modules/imaxdiv (Makefile.am): Likewise.
45673         * modules/inet_ntop (Makefile.am): Likewise.
45674         * modules/inet_pton (Makefile.am): Likewise.
45675         * modules/intprops (Makefile.am): Likewise.
45676         * modules/inttostr (Makefile.am): Likewise.
45677         * modules/inttypes (Makefile.am): Likewise.
45678         * modules/isapipe (Makefile.am): Likewise.
45679         * modules/javaversion (Makefile.am): Likewise.
45680         * modules/lchmod (Makefile.am): Likewise.
45681         * modules/lchown (Makefile.am): Likewise.
45682         * modules/localcharset (Makefile.am): Likewise.
45683         * modules/long-options (Makefile.am): Likewise.
45684         * modules/lstat (Makefile.am): Likewise.
45685         * modules/malloc (Makefile.am): Likewise.
45686         * modules/mathl (Makefile.am): Likewise.
45687         * modules/mbchar (Makefile.am): Likewise.
45688         * modules/md2 (Makefile.am): Likewise.
45689         * modules/md4 (Makefile.am): Likewise.
45690         * modules/md5 (Makefile.am): Likewise.
45691         * modules/memcasecmp (Makefile.am): Likewise.
45692         * modules/memchr (Makefile.am): Likewise.
45693         * modules/memcmp (Makefile.am): Likewise.
45694         * modules/memcoll (Makefile.am): Likewise.
45695         * modules/memcpy (Makefile.am): Likewise.
45696         * modules/memmem (Makefile.am): Likewise.
45697         * modules/memmove (Makefile.am): Likewise.
45698         * modules/mempcpy (Makefile.am): Likewise.
45699         * modules/memrchr (Makefile.am): Likewise.
45700         * modules/memset (Makefile.am): Likewise.
45701         * modules/memxor (Makefile.am): Likewise.
45702         * modules/mkancesdirs (Makefile.am): Likewise.
45703         * modules/mkdir-p (Makefile.am): Likewise.
45704         * modules/mkdir (Makefile.am): Likewise.
45705         * modules/mkdtemp (Makefile.am): Likewise.
45706         * modules/mkstemp (Makefile.am): Likewise.
45707         * modules/mktime (Makefile.am): Likewise.
45708         * modules/modechange (Makefile.am): Likewise.
45709         * modules/mountlist (Makefile.am): Likewise.
45710         * modules/nanosleep (Makefile.am): Likewise.
45711         * modules/obstack (Makefile.am): Likewise.
45712         * modules/openat (Makefile.am): Likewise.
45713         * modules/pagealign_alloc (Makefile.am): Likewise.
45714         * modules/pathmax (Makefile.am): Likewise.
45715         * modules/physmem (Makefile.am): Likewise.
45716         * modules/poll (Makefile.am): Likewise.
45717         * modules/posixtm (Makefile.am): Likewise.
45718         * modules/posixver (Makefile.am): Likewise.
45719         * modules/putenv (Makefile.am): Likewise.
45720         * modules/quote (Makefile.am): Likewise.
45721         * modules/quotearg (Makefile.am): Likewise.
45722         * modules/raise (Makefile.am): Likewise.
45723         * modules/read-file (Makefile.am): Likewise.
45724         * modules/readline (Makefile.am): Likewise.
45725         * modules/readlink (Makefile.am): Likewise.
45726         * modules/readtokens (Makefile.am): Likewise.
45727         * modules/readutmp (Makefile.am): Likewise.
45728         * modules/realloc (Makefile.am): Likewise.
45729         * modules/regex (Makefile.am): Likewise.
45730         * modules/rename-dest-slash (Makefile.am): Likewise.
45731         * modules/rename (Makefile.am): Likewise.
45732         * modules/rijndael (Makefile.am): Likewise.
45733         * modules/rmdir (Makefile.am): Likewise.
45734         * modules/rpmatch (Makefile.am): Likewise.
45735         * modules/safe-read (Makefile.am): Likewise.
45736         * modules/safe-write (Makefile.am): Likewise.
45737         * modules/same-inode (Makefile.am): Likewise.
45738         * modules/same (Makefile.am): Likewise.
45739         * modules/save-cwd (Makefile.am): Likewise.
45740         * modules/savedir (Makefile.am): Likewise.
45741         * modules/setenv (Makefile.am): Likewise.
45742         * modules/settime (Makefile.am): Likewise.
45743         * modules/sha1 (Makefile.am): Likewise.
45744         * modules/sig2str (Makefile.am): Likewise.
45745         * modules/snprintf (Makefile.am): Likewise.
45746         * modules/stat-macros (Makefile.am): Likewise.
45747         * modules/stat-time (Makefile.am): Likewise.
45748         * modules/stdbool (Makefile.am): Likewise.
45749         * modules/stdint (Makefile.am): Likewise.
45750         * modules/stdlib-safer (Makefile.am): Likewise.
45751         * modules/stpcpy (Makefile.am): Likewise.
45752         * modules/stpncpy (Makefile.am): Likewise.
45753         * modules/strcase (Makefile.am): Likewise.
45754         * modules/strcasestr (Makefile.am): Likewise.
45755         * modules/strchrnul (Makefile.am): Likewise.
45756         * modules/strcspn (Makefile.am): Likewise.
45757         * modules/strdup (Makefile.am): Likewise.
45758         * modules/strerror (Makefile.am): Likewise.
45759         * modules/strftime (Makefile.am): Likewise.
45760         * modules/strndup (Makefile.am): Likewise.
45761         * modules/strnlen (Makefile.am): Likewise.
45762         * modules/strpbrk (Makefile.am): Likewise.
45763         * modules/strsep (Makefile.am): Likewise.
45764         * modules/strstr (Makefile.am): Likewise.
45765         * modules/strtod (Makefile.am): Likewise.
45766         * modules/strtoimax (Makefile.am): Likewise.
45767         * modules/strtok_r (Makefile.am): Likewise.
45768         * modules/strtol (Makefile.am): Likewise.
45769         * modules/strtoll (Makefile.am): Likewise.
45770         * modules/strtoul (Makefile.am): Likewise.
45771         * modules/strtoull (Makefile.am): Likewise.
45772         * modules/strtoumax (Makefile.am): Likewise.
45773         * modules/strverscmp (Makefile.am): Likewise.
45774         * modules/sys_socket (Makefile.am): Likewise.
45775         * modules/sys_stat (Makefile.am): Likewise.
45776         * modules/sysexits (Makefile.am): Likewise.
45777         * modules/time_r (Makefile.am): Likewise.
45778         * modules/timegm (Makefile.am): Likewise.
45779         * modules/timespec (Makefile.am): Likewise.
45780         * modules/tmpfile-safer (Makefile.am): Likewise.
45781         * modules/trim (Makefile.am): Likewise.
45782         * modules/unistd-safer (Makefile.am): Likewise.
45783         * modules/unlinkdir (Makefile.am): Likewise.
45784         * modules/unlocked-io (Makefile.am): Likewise.
45785         * modules/userspec (Makefile.am): Likewise.
45786         * modules/utime (Makefile.am): Likewise.
45787         * modules/utimecmp (Makefile.am): Likewise.
45788         * modules/utimens (Makefile.am): Likewise.
45789         * modules/vasnprintf (Makefile.am): Likewise.
45790         * modules/vasprintf (Makefile.am): Likewise.
45791         * modules/vsnprintf (Makefile.am): Likewise.
45792         * modules/xalloc (Makefile.am): Likewise.
45793         * modules/xgetcwd (Makefile.am): Likewise.
45794         * modules/xnanosleep (Makefile.am): Likewise.
45795         * modules/xreadlink (Makefile.am): Likewise.
45796         * modules/xstrtod (Makefile.am): Likewise.
45797         * modules/xstrtol (Makefile.am): Likewise.
45798         * modules/xstrtold (Makefile.am): Likewise.
45799         * modules/yesno (Makefile.am): Likewise.
45800         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
45801
45802 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
45803
45804         * modules/error (Makefile.am): Distribute files through
45805         EXTRA_DIST, not lib_SOURCES.
45806
45807 2006-10-12  Eric Blake  <ebb9@byu.net>
45808
45809         * modules/error (Makefile.am): Distribute files in /lib.
45810         * modules/obstack (Makefile.am): Likewise.
45811
45812 2006-10-12  Bruno Haible  <bruno@clisp.org>
45813
45814         * modules/acl (Makefile.am): Distribute all files in lib/ through
45815         EXTRA_DIST.
45816         * modules/arcfour (Makefile.am): Likewise.
45817         * modules/arctwo (Makefile.am): Likewise.
45818         * modules/argmatch (Makefile.am): Likewise.
45819         * modules/argz (Makefile.am): Likewise.
45820         * modules/atexit (Makefile.am): Likewise.
45821         * modules/backupfile (Makefile.am): Likewise.
45822         * modules/c-strtod (Makefile.am): Likewise.
45823         * modules/c-strtold (Makefile.am): Likewise.
45824         * modules/calloc (Makefile.am): Likewise.
45825         * modules/canon-host (Makefile.am): Likewise.
45826         * modules/canonicalize (Makefile.am): Likewise.
45827         * modules/chdir-long (Makefile.am): Likewise.
45828         * modules/chdir-safer (Makefile.am): Likewise.
45829         * modules/check-version (Makefile.am): Likewise.
45830         * modules/chown (Makefile.am): Likewise.
45831         * modules/cloexec (Makefile.am): Likewise.
45832         * modules/close-stream (Makefile.am): Likewise.
45833         * modules/closeout (Makefile.am): Likewise.
45834         * modules/crc (Makefile.am): Likewise.
45835         * modules/cycle-check (Makefile.am): Likewise.
45836         * modules/des (Makefile.am): Likewise.
45837         * modules/dirfd (Makefile.am): Likewise.
45838         * modules/dirname (Makefile.am): Likewise.
45839         * modules/dup2 (Makefile.am): Likewise.
45840         * modules/euidaccess (Makefile.am): Likewise.
45841         * modules/exclude (Makefile.am): Likewise.
45842         * modules/exitfail (Makefile.am): Likewise.
45843         * modules/fcntl-safer (Makefile.am): Likewise.
45844         * modules/file-type (Makefile.am): Likewise.
45845         * modules/fileblocks (Makefile.am): Likewise.
45846         * modules/filemode (Makefile.am): Likewise.
45847         * modules/filenamecat (Makefile.am): Likewise.
45848         * modules/fnmatch (Makefile.am): Likewise.
45849         * modules/fopen-safer (Makefile.am): Likewise.
45850         * modules/fpending (Makefile.am): Likewise.
45851         * modules/fprintftime (Makefile.am): Likewise.
45852         * modules/free (Makefile.am): Likewise.
45853         * modules/fsusage (Makefile.am): Likewise.
45854         * modules/ftruncate (Makefile.am): Likewise.
45855         * modules/fts (Makefile.am): Likewise.
45856         * modules/gc (Makefile.am): Likewise.
45857         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
45858         * modules/getaddrinfo (Makefile.am): Likewise.
45859         * modules/getcwd (Makefile.am): Likewise.
45860         * modules/getdelim (Makefile.am): Likewise.
45861         * modules/getdomainname (Makefile.am): Likewise.
45862         * modules/getgroups (Makefile.am): Likewise.
45863         * modules/gethostname (Makefile.am): Likewise.
45864         * modules/gethrxtime (Makefile.am): Likewise.
45865         * modules/getline (Makefile.am): Likewise.
45866         * modules/getloadavg (Makefile.am): Likewise.
45867         * modules/getlogin_r (Makefile.am): Likewise.
45868         * modules/getopt (Makefile.am): Likewise.
45869         * modules/getpass (Makefile.am): Likewise.
45870         * modules/getpass-gnu (Makefile.am): Likewise.
45871         * modules/getsubopt (Makefile.am): Likewise.
45872         * modules/gettime (Makefile.am): Likewise.
45873         * modules/gettimeofday (Makefile.am): Likewise.
45874         * modules/getugroups (Makefile.am): Likewise.
45875         * modules/getusershell (Makefile.am): Likewise.
45876         * modules/glob (Makefile.am): Likewise.
45877         * modules/group-member (Makefile.am): Likewise.
45878         * modules/hard-locale (Makefile.am): Likewise.
45879         * modules/hash (Makefile.am): Likewise.
45880         * modules/hmac-md5 (Makefile.am): Likewise.
45881         * modules/hmac-sha1 (Makefile.am): Likewise.
45882         * modules/human (Makefile.am): Likewise.
45883         * modules/idcache (Makefile.am): Likewise.
45884         * modules/imaxabs (Makefile.am): Likewise.
45885         * modules/imaxdiv (Makefile.am): Likewise.
45886         * modules/inet_ntop (Makefile.am): Likewise.
45887         * modules/inet_pton (Makefile.am): Likewise.
45888         * modules/inttostr (Makefile.am): Likewise.
45889         * modules/isapipe (Makefile.am): Likewise.
45890         * modules/lchown (Makefile.am): Likewise.
45891         * modules/long-options (Makefile.am): Likewise.
45892         * modules/lstat (Makefile.am): Likewise.
45893         * modules/malloc (Makefile.am): Likewise.
45894         * modules/mathl (Makefile.am): Likewise.
45895         * modules/mbchar (Makefile.am): Likewise.
45896         * modules/md2 (Makefile.am): Likewise.
45897         * modules/md4 (Makefile.am): Likewise.
45898         * modules/md5 (Makefile.am): Likewise.
45899         * modules/memcasecmp (Makefile.am): Likewise.
45900         * modules/memchr (Makefile.am): Likewise.
45901         * modules/memcmp (Makefile.am): Likewise.
45902         * modules/memcoll (Makefile.am): Likewise.
45903         * modules/memcpy (Makefile.am): Likewise.
45904         * modules/memmem (Makefile.am): Likewise.
45905         * modules/memmove (Makefile.am): Likewise.
45906         * modules/mempcpy (Makefile.am): Likewise.
45907         * modules/memrchr (Makefile.am): Likewise.
45908         * modules/memset (Makefile.am): Likewise.
45909         * modules/memxor (Makefile.am): Likewise.
45910         * modules/mkancesdirs (Makefile.am): Likewise.
45911         * modules/mkdir (Makefile.am): Likewise.
45912         * modules/mkdir-p (Makefile.am): Likewise.
45913         * modules/mkdtemp (Makefile.am): Likewise.
45914         * modules/mkstemp (Makefile.am): Likewise.
45915         * modules/mktime (Makefile.am): Likewise.
45916         * modules/modechange (Makefile.am): Likewise.
45917         * modules/mountlist (Makefile.am): Likewise.
45918         * modules/nanosleep (Makefile.am): Likewise.
45919         * modules/openat (Makefile.am): Likewise.
45920         * modules/pagealign_alloc (Makefile.am): Likewise.
45921         * modules/physmem (Makefile.am): Likewise.
45922         * modules/poll (Makefile.am): Likewise.
45923         * modules/posixtm (Makefile.am): Likewise.
45924         * modules/posixver (Makefile.am): Likewise.
45925         * modules/putenv (Makefile.am): Likewise.
45926         * modules/quote (Makefile.am): Likewise.
45927         * modules/quotearg (Makefile.am): Likewise.
45928         * modules/raise (Makefile.am): Likewise.
45929         * modules/read-file (Makefile.am): Likewise.
45930         * modules/readline (Makefile.am): Likewise.
45931         * modules/readlink (Makefile.am): Likewise.
45932         * modules/readtokens (Makefile.am): Likewise.
45933         * modules/readutmp (Makefile.am): Likewise.
45934         * modules/realloc (Makefile.am): Likewise.
45935         * modules/regex (Makefile.am): Likewise.
45936         * modules/rename (Makefile.am): Likewise.
45937         * modules/rename-dest-slash (Makefile.am): Likewise.
45938         * modules/rijndael (Makefile.am): Likewise.
45939         * modules/rmdir (Makefile.am): Likewise.
45940         * modules/rpmatch (Makefile.am): Likewise.
45941         * modules/safe-read (Makefile.am): Likewise.
45942         * modules/safe-write (Makefile.am): Likewise.
45943         * modules/same (Makefile.am): Likewise.
45944         * modules/save-cwd (Makefile.am): Likewise.
45945         * modules/savedir (Makefile.am): Likewise.
45946         * modules/setenv (Makefile.am): Likewise.
45947         * modules/settime (Makefile.am): Likewise.
45948         * modules/sha1 (Makefile.am): Likewise.
45949         * modules/sig2str (Makefile.am): Likewise.
45950         * modules/snprintf (Makefile.am): Likewise.
45951         * modules/stdlib-safer (Makefile.am): Likewise.
45952         * modules/stpcpy (Makefile.am): Likewise.
45953         * modules/stpncpy (Makefile.am): Likewise.
45954         * modules/strcase (Makefile.am): Likewise.
45955         * modules/strcasestr (Makefile.am): Likewise.
45956         * modules/strchrnul (Makefile.am): Likewise.
45957         * modules/strcspn (Makefile.am): Likewise.
45958         * modules/strdup (Makefile.am): Likewise.
45959         * modules/strerror (Makefile.am): Likewise.
45960         * modules/strftime (Makefile.am): Likewise.
45961         * modules/strndup (Makefile.am): Likewise.
45962         * modules/strnlen (Makefile.am): Likewise.
45963         * modules/strpbrk (Makefile.am): Likewise.
45964         * modules/strsep (Makefile.am): Likewise.
45965         * modules/strstr (Makefile.am): Likewise.
45966         * modules/strtod (Makefile.am): Likewise.
45967         * modules/strtoimax (Makefile.am): Likewise.
45968         * modules/strtok_r (Makefile.am): Likewise.
45969         * modules/strtol (Makefile.am): Likewise.
45970         * modules/strtoll (Makefile.am): Likewise.
45971         * modules/strtoul (Makefile.am): Likewise.
45972         * modules/strtoull (Makefile.am): Likewise.
45973         * modules/strtoumax (Makefile.am): Likewise.
45974         * modules/strverscmp (Makefile.am): Likewise.
45975         * modules/time_r (Makefile.am): Likewise.
45976         * modules/timegm (Makefile.am): Likewise.
45977         * modules/tmpfile-safer (Makefile.am): Likewise.
45978         * modules/unistd-safer (Makefile.am): Likewise.
45979         * modules/unlinkdir (Makefile.am): Likewise.
45980         * modules/userspec (Makefile.am): Likewise.
45981         * modules/utime (Makefile.am): Likewise.
45982         * modules/utimecmp (Makefile.am): Likewise.
45983         * modules/utimens (Makefile.am): Likewise.
45984         * modules/vasnprintf (Makefile.am): Likewise.
45985         * modules/vasprintf (Makefile.am): Likewise.
45986         * modules/vsnprintf (Makefile.am): Likewise.
45987         * modules/xalloc (Makefile.am): Likewise.
45988         * modules/xgetcwd (Makefile.am): Likewise.
45989         * modules/xnanosleep (Makefile.am): Likewise.
45990         * modules/xreadlink (Makefile.am): Likewise.
45991         * modules/xstrtod (Makefile.am): Likewise.
45992         * modules/xstrtol (Makefile.am): Likewise.
45993         * modules/xstrtold (Makefile.am): Likewise.
45994         * modules/yesno (Makefile.am): Likewise.
45995
45996 2006-10-12  Jim Meyering  <jim@meyering.net>
45997
45998         * m4/getloadavg.m4: Revert the change below.
45999
46000         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
46001         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
46002         fail with a symlink, which is what coreutils' ./bootstrap now
46003         creates by default.
46004
46005 2006-10-12  Bruno Haible  <bruno@clisp.org>
46006
46007         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
46008         mingw.
46009         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
46010         MSVC and mingw explicitly.
46011
46012 2006-10-11  Simon Josefsson  <jas@extundo.com>
46013             Bruno Haible  <bruno@clisp.org>
46014
46015         Add support for multiple gnulib-tool invocations in the scope of a
46016         single configure.ac file.
46017         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
46018         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
46019         with the same contents as the _LIBADD variable.
46020         (func_emit_initmacro_start, func_emit_initmacro_end,
46021         func_emit_initmacro_done): New functions.
46022         (func_import, func_create_testdir): Invoke them. Allow the identifiers
46023         gl_LIBOBJS and gl_LTLIBOBJS.
46024
46025 2006-10-11  Bruno Haible  <bruno@clisp.org>
46026
46027         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
46028         (func_create_testdir): Don't create po/Makefile.am, don't invoke
46029         autoreconf. Instead, invoke autopoint explicitly but move back the
46030         *.m4 files from gnulib.
46031
46032 2006-10-11  Bruno Haible  <bruno@clisp.org>
46033
46034         * gnulib-tool (func_usage): Make module names after --create-testdir
46035         optional.
46036         (func_create_testdir): If no module was specified, use nearly all
46037         modules.
46038
46039 2006-10-12  Jim Meyering  <jim@meyering.net>
46040
46041         Big performance improvement for fts-based tools that use FTS_NOSTAT.
46042         Avoid spurious inode-mismatch problems on non-POSIX file systems.
46043         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
46044         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
46045         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
46046         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
46047         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
46048         (fts_set_stat_required): New function.
46049         (fts_open): Defer the calls to fts_stat, if possible or requested.
46050         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
46051         into fts_stat itself.
46052         (fts_read): Perform any required (deferred) fts_stat call.
46053         (fts_build): Likewise, for the directory we're about to open and read.
46054         In the readdir loop, carefully decide whether each entry will require
46055         an eventual call to fts_stat, using dirent.d_type info if available.
46056         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
46057         a command line argument into this function.  Update all callers.
46058         Map a return value of FTS_DOT to FTS_D for a command line argument.
46059         * modules/fts (Depends-on): Add d-type.  Alphabetize.
46060         Thanks to Miklos Szeredi for his tenacity and for the initial
46061         bug report about "find" failing on a FUSE-based file system.
46062
46063         * lib/fts.c (fts_open): Use consistent indentation.
46064
46065 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
46066
46067         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
46068         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
46069         reported by Jim Meyering.  All uses of cache variables renamed
46070         to match Autoconf's.
46071         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
46072         the other one.
46073
46074         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
46075         Fix misspelling in diagnostic.
46076
46077 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
46078
46079         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
46080         defined.  Problem reported by Matthew Woehlke.
46081
46082         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
46083         Add support for Tandem NonStop R series.
46084         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
46085         Use new macro.
46086
46087         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
46088         (has_trailing_slash): Omit size arg; all callers changed.
46089         Omit 'inline', since it doesn't help performance and we'd
46090         need to configure it.
46091         Don't count //, ///, etc. as having a trailing slash.
46092         As a side effect, this removes a C99ism reported by Matthew Woehlke.
46093         (rpl_rename_dest_slash): On failure, use rename's errno rather
46094         than (in some cases) an incorrect or junk errno.
46095         Simplify code by removing need to compute length; this does
46096         cause it to make two passes instead of one over the file name,
46097         but it's worth it.
46098
46099         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
46100         change, since Autoconf's version may no longer be appropriate now
46101         that we are using CVS Autoconf's version.  Add support for Tandem.
46102
46103 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
46104             Bruno Haible  <bruno@clisp.org>
46105
46106         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
46107         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
46108         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
46109         gl_AC_TYPE_LONG_LONG.
46110
46111         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
46112         instead of HAVE_LONG_LONG.
46113         * lib/printf-args.c (printf_fetchargs): Likewise.
46114         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
46115         * lib/vasnprintf.c (VASNPRINTF): Likewise.
46116         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
46117         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
46118         gl_AC_TYPE_LONG_LONG.
46119
46120 2006-10-11  Bruno Haible  <bruno@clisp.org>
46121
46122         * m4/longlong.m4: Add comments.
46123         * m4/ulonglong.m4: Likewise.
46124
46125 2006-10-10  Bruno Haible  <bruno@clisp.org>
46126
46127         Make it possible to #define stpcpy, strdup to aliases.
46128         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
46129         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
46130
46131 2006-10-10  Bruno Haible  <bruno@clisp.org>
46132
46133         Make it possible to #define gcd to an alias.
46134         * lib/gcd.c: Include config.h.
46135
46136 2006-10-10  Bruno Haible  <bruno@clisp.org>
46137
46138         Make it possible to #define c_isascii to an alias.
46139         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
46140         defined. Undefine the macros before defining them, to avoid gcc
46141         warnings.
46142         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
46143         define NO_C_CTYPE_MACROS early.
46144
46145 2006-10-10  Bruno Haible  <bruno@clisp.org>
46146
46147         Make it possible to #define set_program_name to an alias.
46148         * lib/progname.c: Don't undefine set_program_name; instead, undefine
46149         ENABLE_RELOCATABLE early.
46150
46151 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
46152
46153         Port to Tandem NSK OSS, which has 64-bit signed int but at most
46154         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
46155         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
46156         More generally, don't assume that 64-bit signed int is available
46157         if unsigned int is, and vice versa.
46158         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
46159         unsigned symbols, not on their signed counterparts.
46160         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
46161         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
46162         (UINT64_C, UINTMAX_C):
46163         Likewise.
46164         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
46165         unsigned counterparts.
46166         (Have_long_long, Unsigned): New macros.
46167         (Int): Renamed from INT.
46168         (strtoimax): Use the new macros.
46169         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
46170         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
46171         * modules/inttypes (inttypes.h): Substitute
46172         HAVE_UNSIGNED_LONG_LONG_INT.
46173         * modules/stdint (stdint.h): Likewise.
46174         (Files): Add m4/ulonglong.m4.
46175
46176 2006-10-10  Bruno Haible  <bruno@clisp.org>
46177
46178         Fix a gcc -Wshadow warning.
46179         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
46180         to 'bucket'.
46181         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
46182         gl_linked_indexof_from_to): Likewise.
46183         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
46184         Likewise.
46185         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
46186         Likewise.
46187         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
46188         Reported by Eric Blake.
46189
46190 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
46191
46192         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
46193         for NetBSD.  Problem reported by Bruno Haible.
46194
46195 2006-10-09  Jim Meyering  <jim@meyering.net>
46196
46197         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
46198         Patch from Bruno Haible.
46199
46200 2006-10-09  Jim Meyering  <jim@meyering.net>
46201
46202         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
46203         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
46204         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
46205
46206 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
46207
46208         Don't include <config.h> twice; this doesn't work in some cases,
46209         e.g., when config.h has "#define intmax_t long long int" and
46210         we include <config.h>, <inttypes.h>, <config.h> in that order.
46211         Problem reported by Matthew Woehlke in:
46212         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
46213         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
46214         * lib/fts-cycle.c: Don't include config.h.
46215         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
46216         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
46217         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
46218         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
46219         inttypes.h.
46220         * lib/xstrtoumax.c: Likewise.
46221         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
46222         __strtol and the like, so that this module is more like its siblings.
46223         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
46224         Remove; no longer needed now that we assume gnulib inttypes.h.
46225
46226 2006-10-08  Bruno Haible  <bruno@clisp.org>
46227
46228         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
46229         option.
46230
46231 2006-10-07  Jim Meyering  <jim@meyering.net>
46232
46233         * modules/inttypes (inttypes.h): Revert what seems to have been
46234         an inadvertent part of today's change: use "|", not "/" in the
46235         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
46236
46237 2006-10-07  Bruno Haible  <bruno@clisp.org>
46238
46239         * modules/sublist: New file.
46240
46241 2006-10-07  Bruno Haible  <bruno@clisp.org>
46242
46243         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
46244         * modules/argz (argz.h): Likewise.
46245         * modules/arpa_inet (arpa/inet.h): Likewise.
46246         * modules/byteswap (byteswap.h): Likewise.
46247         * modules/configmake (configmake.h): Likewise.
46248         * modules/fcntl (fcntl.h): Likewise.
46249         * modules/fnmatch (fnmatch.h): Likewise.
46250         * modules/getopt (getopt.h): Likewise.
46251         * modules/glob (glob.h): Likewise.
46252         * modules/inttypes (inttypes.h): Likewise.
46253         * modules/netinet_in (netinet/in.h): Likewise.
46254         * modules/poll (poll.h): Likewise.
46255         * modules/stdbool (stdbool.h): Likewise.
46256         * modules/stdint (stdint.h): Likewise.
46257         * modules/sys_select (sys/select.h): Likewise.
46258         * modules/sys_socket (sys/socket.h): Likewise.
46259         * modules/sys_stat (sys/stat.h): Likewise.
46260         * modules/sysexits (sysexits.h): Likewise.
46261         * modules/unistd (unistd.h): Likewise.
46262         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
46263         Add a "DO NOT EDIT" comment to the generated file.
46264         (func_import): Likewise for gnulib-comp.m4.
46265
46266 2006-10-07  Bruno Haible  <bruno@clisp.org>
46267
46268         * lib/gl_sublist.h: New file.
46269         * lib/gl_sublist.c: New file.
46270
46271 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
46272
46273         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
46274         name (relative to the original working directory) and the file
46275         name component (relative to the temporary working directory).  All
46276         callers changed.
46277         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
46278         * lib/mkdir-p.c (make_dir_parents): Likewise.
46279         * lib/mkdir-p.h (make_dir_parents): Likewise.
46280
46281 2006-10-06  Eric Blake  <ebb9@byu.net>
46282
46283         Define several macros for use by the clean-temp module.
46284         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
46285         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
46286         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
46287
46288         * lib/clean-temp.h (close_stream_temp): New declaration.
46289         * lib/clean-temp.c (includes): Pull in headers according to what
46290         other modules are in use.
46291         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
46292
46293 2006-10-06  Bruno Haible  <bruno@clisp.org>
46294
46295         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
46296         instead of fopen, fwriteerror.
46297
46298 2006-10-06  Bruno Haible  <bruno@clisp.org>
46299
46300         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
46301         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
46302         int.
46303         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
46304         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
46305         Return an error indicator.
46306         Suggested by Eric Blake.
46307
46308 2006-10-06  Bruno Haible  <bruno@clisp.org>
46309
46310         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
46311         Reported by Eric Blake.
46312
46313 2006-10-06  Bruno Haible  <bruno@clisp.org>
46314
46315         * modules/closeout (Description): Mention stderr too.
46316
46317 2006-10-06  Bruno Haible  <bruno@clisp.org>
46318         and Paul Eggert  <eggert@cs.ucla.edu>
46319
46320         * lib/closeout.c (close_stdout): Also close stderr.
46321         * lib/closeout.h: Update comment.
46322
46323 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
46324
46325         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
46326         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
46327         * lib/dirchownmod.c: Include lchown.h.
46328         * lib/lchown.c: Don't include files that lchown.h now includes.
46329         Don't declare chown, since lchown.h now does that.
46330         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
46331         (lchown): Define to rpl_chown if lchown is declared but
46332         does not exist.  Declare using a prototype if lchown is not
46333         declared.  Add a copyright notice.
46334         * lib/mkstemp.h: Include <unistd.h>.
46335         * lib/openat.c: Include lchown.h.
46336
46337         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
46338         we now test for that separately.
46339         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
46340         rather than O_NOFOLLOW, when testing whether it's possible to
46341         avoid a race condition reliably.
46342         * lib/savewd.c (savewd_chdir): Likewise.
46343
46344         Remove macros that are no longer needed now that stdint.h is
46345         reliable.
46346         * lib/fsusage.c (UINTMAX_MAX): Remove.
46347         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
46348         * lib/utimecmp.c (SIZE_MAX): Remove.
46349
46350         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
46351
46352         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
46353         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
46354         O_NOATIME works.
46355
46356 2006-10-05  Bruno Haible  <bruno@clisp.org>
46357
46358         * lib/gl_list.h (gl_sortedlist_search_from_to,
46359         gl_sortedlist_indexof_from_to): New declarations.
46360         (gl_list_implementation): New fields sortedlist_search_from_to,
46361         sortedlist_indexof_from_to.
46362         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
46363         inline functions.
46364         * lib/gl_list.c (gl_sortedlist_search_from_to,
46365         gl_sortedlist_indexof_from_to): New functions.
46366         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
46367         function.
46368         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
46369         (gl_array_sortedlist_search_from_to): New function.
46370         (gl_array_list_implementation): Update.
46371         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
46372         function.
46373         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
46374         (gl_carray_sortedlist_search_from_to): New function.
46375         (gl_carray_list_implementation): Update.
46376         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
46377         gl_linked_sortedlist_indexof_from_to): New functions.
46378         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
46379         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
46380         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
46381         gl_tree_sortedlist_indexof_from_to): New functions.
46382         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
46383         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
46384         Update.
46385         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
46386         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
46387         Update.
46388
46389 2006-10-05  Bruno Haible  <bruno@clisp.org>
46390
46391         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
46392         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
46393         (struct gl_list_implementation): Add fields search_from_to,
46394         indexof_from_to. Remove fields search, indexof.
46395         (gl_list_search): Use the search_from_to method.
46396         (gl_list_search_from, gl_list_search_from_to): New functions.
46397         (gl_list_indexof): Use the indexof_from_to method.
46398         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
46399         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
46400         (gl_list_search_from, gl_list_search_from_to): New functions.
46401         (gl_list_indexof): Use the indexof_from_to method.
46402         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
46403         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
46404         gl_array_indexof. Add start_index, end_index arguments.
46405         (gl_array_search_from_to): Renamed from gl_array_search. Add
46406         start_index, end_index arguments.
46407         (gl_array_remove, gl_array_list_implementation): Update.
46408         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
46409         gl_carray_indexof. Add start_index, end_index arguments.
46410         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
46411         start_index, end_index arguments.
46412         (gl_carray_remove, gl_carray_list_implementation): Update.
46413         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
46414         gl_linked_search. Add start_index, end_index arguments.
46415         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
46416         start_index, end_index arguments.
46417         (gl_linked_remove): Update.
46418         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
46419         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
46420         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
46421         field to 'size_t'.
46422         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
46423         gl_tree_search. Add start_index, end_index arguments.
46424         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
46425         start_index, end_index arguments.
46426         (gl_tree_remove): Update.
46427         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
46428         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
46429         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
46430         function.
46431         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
46432         gl_tree_search. Add start_index, end_index arguments.
46433         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
46434         start_index, end_index arguments.
46435         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
46436         Update.
46437         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
46438
46439 2006-10-05  Bruno Haible  <bruno@clisp.org>
46440
46441         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
46442
46443         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
46444         fwriteerror_temp): New declarations.
46445         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
46446         (descriptors): New variable.
46447         (cleanup): First, close the descriptors.
46448         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
46449         fclose_temp, fwriteerror_temp): New functions.
46450
46451 2006-10-04  Jim Meyering  <jim@meyering.net>
46452
46453         * lib/fts.c (fts_open): Tiny comment change.
46454
46455 2006-10-04  Bruno Haible  <bruno@clisp.org>
46456
46457         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
46458         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
46459         gl_LOCK_BODY.
46460         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
46461         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
46462         gl_LOCK_EARLY_BODY.
46463         (gl_LOCK): Require gl_LOCK_BODY.
46464
46465 2006-10-04  Bruno Haible  <bruno@clisp.org>
46466
46467         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
46468         (gl_oset_search_atleast): New declaration.
46469         (struct gl_oset_implementation): Add field 'search_atleast'.
46470         (gl_oset_search_atleast): New inline function.
46471         * lib/gl_oset.c (gl_oset_search_atleast): New function.
46472         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
46473         (gl_array_oset_implementation): Update.
46474         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
46475         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
46476         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
46477
46478 2006-10-04  Bruno Haible  <bruno@clisp.org>
46479
46480         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
46481
46482 2006-10-03  Bruno Haible  <bruno@clisp.org>
46483
46484         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
46485         from gl_avltreehash_list_implementation.
46486
46487 2006-10-03  Bruno Haible  <bruno@clisp.org>
46488
46489         * lib/gl_oset.c (gl_oset_add): Fix return type.
46490
46491 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
46492
46493         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
46494
46495 2006-10-02  Eric Blake  <ebb9@byu.net>
46496
46497         * modules/strnlen (Depends-on): Add extensions.
46498
46499 2006-10-02  Eric Blake  <ebb9@byu.net>
46500
46501         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
46502         definition in 2.60+.
46503
46504 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
46505
46506         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
46507         checks.
46508
46509 2006-10-02  Bruno Haible  <bruno@clisp.org>
46510
46511         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
46512         to the AUTOMAKE_OPTIONS.
46513         Reported by Jim Meyering.
46514
46515 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
46516
46517         Work around bug in Solaris 10 /proc file system:
46518         /proc/self/fd/NNN/.. isn't the parent directory of
46519         the directory whose file descriptor is NNN.  This needs to
46520         be worked around at run time, not compile time, since a
46521         program might be built on Solaris 8, where things work, and
46522         run on Solaris 10.
46523         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
46524         to use the following interface instead:
46525         (OPENAT_BUFFER_SIZE): New macro.
46526         (openat_proc_name): New function.
46527         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
46528         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
46529         Likewise.
46530         * lib/openat-proc.c: New file.
46531         * modules/openat (Files): Add lib/openat-proc.c.
46532         (Depends-on): Add same-inode, stdbool.
46533         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
46534
46535 2006-09-29  Bruno Haible  <bruno@clisp.org>
46536
46537         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
46538         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
46539         argument. Set stdout_closed before testing for ferror, not after.
46540         (fwriteerror, fwriteerror_no_ebadf): New functions.
46541
46542 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46543
46544         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
46545
46546 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
46547
46548         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
46549         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
46550
46551 2006-09-28  Jim Meyering  <jim@meyering.net>
46552
46553         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
46554         Include <unistd.h>.
46555
46556 2006-09-28  Bruno Haible  <bruno@clisp.org>
46557
46558         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
46559         * modules/linkedhash-list (Depends-on): Likewise.
46560         * modules/rbtreehash-list (Depends-on): Likewise.
46561
46562 2006-09-28  Bruno Haible  <bruno@clisp.org>
46563
46564         * lib/strndup.h: Simplify the redefinition of strndup.
46565         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
46566         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
46567
46568 2006-09-28  Bruno Haible  <bruno@clisp.org>
46569
46570         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
46571         * lib/gl_linkedhash_list.c: Likewise.
46572         * lib/gl_rbtreehash_list.c: Likewise.
46573
46574 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
46575
46576         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
46577         getaddrinfo.
46578
46579         * lib/__fpending.h: Don't include <stdio_ext.h> unless
46580         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
46581         it causes <stdio_ext.h> to cause a compile-time error.
46582         Problem reported by Nelson H. F. Beebe.
46583         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
46584         of HAVE_DECL___PENDING.
46585
46586         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
46587         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
46588         declaration.
46589
46590 2006-09-27  Jim Meyering  <jim@meyering.net>
46591
46592         This file could end up with a definition for a function
46593         named __strndup, rather than rpl_strndup on a system with
46594         incomplete weak_alias support.
46595         * lib/strndup.c (strndup): Rename from __strndup.
46596         Remove #defines that used to map __strndup to strndup.
46597         Don't use K&R prototypes.
46598         Remove LIBC-related code, since this file is not sync'd with glibc.
46599         * lib/strndup.h: Revamp, accordingly.
46600         * m4/strndup.m4: Modernize.
46601
46602 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
46603
46604         * modules/savewd (Depends-on): Add 'raise'.
46605         * lib/savewd.c: Include <signal.h>, for 'raise'.
46606
46607 2006-09-26  Jim Meyering  <jim@meyering.net>
46608
46609         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
46610         when we detect Darwin 8.7.0's acl_get_file bug.
46611         Rearrange to perform the new (below) run-test while $LIBS
46612         contains any acl-related library.  Set USE_ACL at the end.
46613         (gl_ACL_GET_FILE): New function.
46614
46615 2006-09-26  Eric Blake  <ebb9@byu.net>
46616
46617         * lib/verror.c: Include <config.h> unconditionally.
46618
46619 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
46620
46621         * modules/clock-time (Maintainer): Add self.
46622         * modules/getlogin_r (Depends-on): Add extensions.
46623
46624 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46625
46626         * modules/clock-time: New module.
46627         * modules/nanosleep (Depends-on): Add clock-time.
46628         * modules/gethrxtime (Depends-on): Likewise.
46629         * modules/gettime (Depends-on): Likewise.
46630         * modules/settime (Depends-on): Likewise.
46631
46632         * modules/fts-lgpl: Depend on openat.
46633         * modules/mkancesdirs: Depend on savewd.
46634         * modules/mkdir-p: Likewise.
46635
46636 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46637
46638         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
46639
46640         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
46641         `gl_have_arbitrary_file_name_length_limit' to
46642         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
46643         actually works between configure runs.
46644
46645 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46646             Bruno Haible  <bruno@clisp.org>
46647
46648         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
46649
46650 2006-09-25  Jim Meyering  <jim@meyering.net>
46651
46652         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
46653         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
46654
46655 2006-09-25  Eric Blake  <ebb9@byu.net>
46656
46657         * gnulib-tool (func_import, func_create_testdir): Fix typos in
46658         exec's in 2006-09-18 patch when shuffling fds.
46659
46660 2006-09-25  Bruno Haible  <bruno@clisp.org>
46661
46662         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
46663         Reported by Jim Meyering.
46664
46665 2006-09-24  Jim Meyering  <jim@meyering.net>
46666
46667         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
46668         compare a pointer against a literal "0".  That caused failures with
46669         at least HP-UX's hpcc.
46670
46671 2006-09-22  Simon Josefsson  <jas@extundo.com>
46672
46673         * modules/gc-sha1:
46674         * modules/gc-md4:
46675         * modules/gc-hmac-sha1:
46676         * modules/gc-hmac-md5:
46677         * modules/gc-des:
46678         * modules/gc-arcfour: Distribute more files.
46679
46680 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46681
46682         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
46683         (gl_linked_iterator_from_to): Initialize struct completely.
46684         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
46685         (gl_tree_iterator_from_to): Likewise
46686         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
46687         * lib/gl_array_list.c [lint] (gl_array_iterator)
46688         (gl_array_iterator_from_to): Likewise.
46689         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
46690         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
46691         (gl_carray_iterator_from_to): Likewise.
46692
46693         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
46694         * lib/md4.c (md4_process_block): Remove unused variable.
46695         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
46696         parentheses for clarity.
46697
46698 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46699
46700         * modules/bison-i18n (Depends-on): Add gettext.
46701
46702 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46703
46704         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
46705         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
46706         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
46707         also add missing comma that caused broken test.
46708         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
46709         stdlib.h, for `abort'.
46710         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
46711         variables.
46712         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
46713         include unistd.h if present, for `rmdir'.
46714         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
46715         variables.
46716         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
46717         in the process include standard headers for prototypes.
46718         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
46719         gets declared on GNU/Linux.
46720         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
46721         unistd.h, for `rmdir'.
46722         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
46723
46724         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
46725         always true.
46726         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
46727
46728         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
46729
46730 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46731
46732         * gnulib-tool (func_version): Create output all at once.  This
46733         may help avoid triggering unnecessary SIGPIPEs, and at any
46734         rate it doesn't hurt.
46735
46736 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46737             Bruno Haible  <bruno@clisp.org>
46738
46739         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
46740         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
46741         * m4/signed.m4 (bh_C_SIGNED): Likewise.
46742
46743         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
46744         (gl_FUNC_VASPRINTF): Invoke it.
46745
46746 2006-09-22  Bruno Haible  <bruno@clisp.org>
46747
46748         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
46749         getloadavg.c as first argument.
46750
46751 2006-09-22  Bruno Haible  <bruno@clisp.org>
46752
46753         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
46754         at the beginning of the gl_INIT macro.
46755         * modules/getloadavg (configure.ac): Pass $gl_source_base to
46756         gl_GETLOADAVG.
46757
46758 2006-09-22  Bruno Haible  <bruno@clisp.org>
46759
46760         * gnulib-tool (func_create_megatestdir): Don't include the config-h
46761         module.
46762         Suggested by Ralf Wildenhues.
46763
46764 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
46765
46766         Import this patch from libc:
46767
46768         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
46769
46770         * lib/regex_internal.c (re_string_reconstruct): Handle
46771         offset < pstr->valid_raw_len && pstr->offsets_needed case.
46772         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
46773         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
46774         re_string_context_at.
46775
46776         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
46777         now requires it.
46778         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
46779         gl_REGEX now does it for us.
46780         (gl_REGEX): Add test taken from
46781         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
46782
46783         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
46784         Check that large offsets work.  Modernize Autoconf usages.
46785         Prefer "yes" to mean a good thing rather than a bad.
46786         Don't put "#define mkstemp" in config.h, as this might interfere
46787         with standard system headers that "#define mkstemp mkstemp64".
46788
46789         * modules/mkstemp (Depends-on): Add extensions, so that
46790         mkstemp is visible on some platforms.
46791         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
46792         (Include): Change to "mkstemp.h" from <stdlib.h>.
46793         (Files): Add mkstemp.h.
46794
46795         * lib/mkstemp.h: New file, since some standard headers
46796         #define mkstemp.
46797         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
46798         Include "mkstemp.h".
46799         Make the _LIBC code resemble glibc original more,
46800         e.g., use K&R style.
46801         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
46802         (mkstemp): Remove, since mkstemp.h does this for us.
46803         * lib/stdlib--.h: Include mkstemp.h.
46804
46805         Import this patch from libc:
46806
46807         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
46808
46809         * lib/tempname.c (__gen_tempname): Change attempts_min
46810         into a macro.  Use preprocessor to decide how to initialize
46811         attempts [Coverity CID 67].
46812
46813 2006-09-20  Bruno Haible  <bruno@clisp.org>
46814
46815         * lib/mkdtemp.c: Import from libc.
46816         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
46817                 * sysdeps/posix/tempname.c (__gen_tempname): Change
46818                 attempts_min into a macro.  Use preprocessor to decide how to
46819                 initialize attempts [Coverity CID 67].
46820         2001-11-27  Paul Eggert  <eggert@twinsun.com>
46821                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
46822                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
46823
46824 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46825
46826         * gnulib-tool (func_exit): New function, to allow to pass the
46827         exit status portably through the trap.  Use everywhere.
46828         (--help, --version): Signal a write error.
46829         (trap): catch SIGPIPE, for write errors.
46830         Exit at the end of the trap, with the correct exit status.
46831
46832 2006-09-19  Karl Berry  <karl@gnu.org>
46833
46834         * doc/gnulib.texi: note about the license texinfo files.
46835
46836 2006-09-19  Eric Blake  <ebb9@byu.net>
46837
46838         * gnulib-tool: Avoid space-tab.
46839
46840 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
46841
46842         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
46843         that prevented coreutils 6.1 from building.  Problem reported
46844         by Petter Reinholdtsen.
46845
46846 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
46847
46848         * gnulib-tool (avoidlist): Fix typo that broke options like
46849         --avoid=lock that are used by coreutils bootstrap.
46850
46851 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
46852
46853         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
46854         more systematically.
46855
46856 2006-09-18  Jim Meyering  <jim@meyering.net>
46857
46858         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
46859
46860 2006-09-18  Bruno Haible  <bruno@clisp.org>
46861
46862         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
46863
46864 2006-09-18  Bruno Haible  <bruno@clisp.org>
46865
46866         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
46867         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
46868         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
46869         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
46870         * m4/gettext.m4: Require autoconf >= 2.52.
46871         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
46872         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
46873         of gl_cv_header_inttypes_h.
46874
46875 2006-09-18  Bruno Haible  <bruno@clisp.org>
46876
46877         * lib/javaversion.c: Include configmake.h.
46878
46879 2006-09-18  Bruno Haible  <bruno@clisp.org>
46880
46881         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
46882         avoid that the while loops be executed in a subshell.
46883
46884 2006-09-18  Bruno Haible  <bruno@clisp.org>
46885
46886         * MODULES.html.sh (func_module): Break long lines.
46887         Suggested by Bruce Korb <bkorb@gnu.org>.
46888
46889 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46890
46891         Speed up by a factor of 1.12.
46892         * gnulib-tool (nl): New variable.
46893         (func_import): Rewrite include directive extraction to only read each
46894         directive once.
46895
46896 2006-09-17  Bruno Haible  <bruno@clisp.org>
46897
46898         * modules/javaversion (Makefile.am): Remove DEFS setting.
46899         (Depends-on): Add configmake, for PKGDATADIR definition.
46900
46901 2006-09-17  Bruno Haible  <bruno@clisp.org>
46902
46903         * gnulib-tool (func_create_testdir): Rewrite all files at once.
46904
46905 2006-09-17  Bruno Haible  <bruno@clisp.org>
46906
46907         * gnulib-tool (func_append): New function, stolen from libtool.m4.
46908         (func_modules_transitive_closure, func_modules_add_dummy,
46909         func_modules_to_filelist, func_import, func_create_testdir,
46910         func_create_megatestdir, ...): Use it wherever possible.
46911         Suggested by Ralf Wildenhues.
46912
46913 2006-09-16  Karl Berry  <karl@gnu.org>
46914
46915         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
46916         to avoid sectioning errors.
46917         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
46918         [ifinfo]: blank line after @center-ed titles.
46919         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
46920         Spell FSF address consistently with others.
46921         (These changes approved by rms.)
46922
46923 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46924
46925         Speed up by a factor of 1.61.
46926         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
46927         already checked module names again.
46928
46929 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46930
46931         Speed up by a factor of 1.13.
46932         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
46933         for new_files, and the input to func_add_or_update.
46934
46935 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46936
46937         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
46938         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
46939
46940 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
46941
46942         * modules/mkancesdirs (Depends-on): Add fcntl.
46943         * modules/savewd: New file.
46944         * MODULES.html.sh (File system functions): Add savewd.
46945
46946         * modules/configmake (Makefile.am): Add support for the
46947         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
46948
46949 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
46950
46951         * m4/savewd.m4: New file.
46952
46953 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
46954
46955         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
46956         (dirchownmod): New arg FD.  All callers changed.
46957         Use FD rather than opening the directory ourself, as opening is
46958         now the caller's responsibility.
46959         * lib/dirchownmod.h: Likewise.
46960         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
46961         hosts that require <sys/types.h> before <sys/stat.h>.  Include
46962         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
46963         (test_dir): Remove.
46964         (mkancesdirs): Return length of prefix of FILE that has already
46965         been made, or -2 if there is a child doing the work.  Redo
46966         algorithm so that it is O(N) rather than O(N**2).  Optimize away
46967         ".", and treat ".." specially since it might stray back into
46968         already-created areas.  Use a subprocess if necessary.  New arg
46969         WD; all users changed.  MAKE_DIR function should now return 1
46970         if it creates a directory that is not readable.  Return -2 if
46971         a child process is spun off.
46972         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
46973         Adjust signature to match code.
46974         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
46975         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
46976         all users changed.
46977         * lib/savewd.c, lib/savewd.h: New files.
46978
46979 2006-09-15  Jim Meyering  <jim@meyering.net>
46980
46981         * modules/rename-dest-slash: New module.
46982         * MODULES.html.sh (posix_compat): Add it here.
46983
46984         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
46985
46986 2006-09-15  Jim Meyering  <jim@meyering.net>
46987
46988         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
46989         file.
46990
46991         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
46992
46993 2006-09-15  Jim Meyering  <jim@meyering.net>
46994
46995         * lib/rename-dest-slash.c (has_trailing_slash): Use
46996         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
46997         (rpl_rename_dest_slash): Perform the cheaper trailing slash
46998         test before testing whether SRC is a directory.
46999         Suggestions from Bruno Haible.
47000
47001         Avoid a warning about an unused variable.
47002         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
47003         into the #ifdef block where it's used.
47004
47005         * lib/rename-dest-slash.c: New file.
47006
47007 2006-09-14  Bruno Haible  <bruno@clisp.org>
47008
47009         * lib/allocsa.c: Include <config.h> unconditionally.
47010         * lib/asnprintf.c: Likewise.
47011         * lib/asprintf.c: Likewise.
47012         * lib/c-strcasecmp.c: Likewise.
47013         * lib/c-strcasestr.c: Likewise.
47014         * lib/c-strncasecmp.c: Likewise.
47015         * lib/c-strstr.c: Likewise.
47016         * lib/classpath.c: Likewise.
47017         * lib/clean-temp.c: Likewise.
47018         * lib/concatpath.c: Likewise.
47019         * lib/copy-file.c: Likewise.
47020         * lib/csharpcomp.c: Likewise.
47021         * lib/csharpexec.c: Likewise.
47022         * lib/execute.c: Likewise.
47023         * lib/fatal-signal.c: Likewise.
47024         * lib/findprog.c: Likewise.
47025         * lib/fwriteerror.c: Likewise.
47026         * lib/gl_array_list.c: Likewise.
47027         * lib/gl_array_oset.c: Likewise.
47028         * lib/gl_avltree_list.c: Likewise.
47029         * lib/gl_avltree_oset.c: Likewise.
47030         * lib/gl_avltreehash_list.c: Likewise.
47031         * lib/gl_carray_list.c: Likewise.
47032         * lib/gl_linked_list.c: Likewise.
47033         * lib/gl_linkedhash_list.c: Likewise.
47034         * lib/gl_list.c: Likewise.
47035         * lib/gl_oset.c: Likewise.
47036         * lib/gl_rbtree_list.c: Likewise.
47037         * lib/gl_rbtree_oset.c: Likewise.
47038         * lib/gl_rbtreehash_list.c: Likewise.
47039         * lib/imaxabs.c: Likewise.
47040         * lib/imaxdiv.c: Likewise.
47041         * lib/javacomp.c: Likewise.
47042         * lib/javaexec.c: Likewise.
47043         * lib/javaversion.c: Likewise.
47044         * lib/linebreak.c: Likewise.
47045         * lib/localcharset.c: Likewise.
47046         * lib/lock.c: Likewise.
47047         * lib/mbchar.c: Likewise.
47048         * lib/mbswidth.c: Likewise.
47049         * lib/mkdtemp.c: Likewise.
47050         * lib/pipe.c: Likewise.
47051         * lib/printf-args.c: Likewise.
47052         * lib/printf-parse.c: Likewise.
47053         * lib/progname.c: Likewise.
47054         * lib/progreloc.c: Likewise.
47055         * lib/readlink.c: Likewise.
47056         * lib/sh-quote.c: Likewise.
47057         * lib/stpcpy.c: Likewise.
47058         * lib/stpncpy.c: Likewise.
47059         * lib/strcasecmp.c: Likewise.
47060         * lib/strcasestr.c: Likewise.
47061         * lib/strcspn.c: Likewise.
47062         * lib/striconv.c: Likewise.
47063         * lib/strncasecmp.c: Likewise.
47064         * lib/strnlen1.c: Likewise.
47065         * lib/strstr.c: Likewise.
47066         * lib/strtok_r.c: Likewise.
47067         * lib/tls.c: Likewise.
47068         * lib/tmpdir.c: Likewise.
47069         * lib/unicodeio.c: Likewise.
47070         * lib/unsetenv.c: Likewise.
47071         * lib/vasnprintf.c: Likewise.
47072         * lib/vasprintf.c: Likewise.
47073         * lib/wait-process.c: Likewise.
47074         * lib/xallocsa.c: Likewise.
47075         * lib/xsetenv.c: Likewise.
47076         * lib/xstriconv.c: Likewise.
47077
47078 2006-09-13  Simon Josefsson  <jas@extundo.com>
47079
47080         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
47081         that internally, suggested by Ralf Wildenhues
47082         <Ralf.Wildenhues@gmx.de>.
47083
47084 2006-09-13  Simon Josefsson  <jas@extundo.com>
47085
47086         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
47087         @LIBOBJS@.
47088         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47089
47090 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
47091
47092         * lib/_fpending.c: Include <config.h> unconditionally, since we no
47093         longer worry about uses that don't define HAVE_CONFIG_H.
47094         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
47095         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
47096         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
47097         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
47098         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
47099         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
47100         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
47101         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
47102         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
47103         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
47104         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
47105         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
47106         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
47107         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
47108         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
47109         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
47110         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
47111         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
47112         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
47113         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
47114         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
47115         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
47116         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
47117         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
47118         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
47119         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
47120         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
47121         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
47122         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
47123         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
47124         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
47125         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
47126         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
47127         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
47128         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
47129         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
47130         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
47131         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
47132         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
47133         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
47134         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
47135         Likewise.
47136
47137 2006-09-13  Eric Blake  <ebb9@byu.net>
47138
47139         * lib/getopt.c: Fix typo in last commit.
47140
47141 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
47142
47143         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
47144         dgettext.
47145
47146 2006-09-12  Jim Meyering  <jim@meyering.net>
47147
47148         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
47149         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
47150         Reported by Nelson H. F. Beebe.
47151
47152 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
47153
47154         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
47155         program_invocation_name and program_invocation_short_name are
47156         initialized.
47157         * lib/argp-namefrob.h: Move declarations of program_invocation_name
47158         and program_invocation_short_name to argp.h, so they are visible
47159         to user programs.
47160         * lib/argp.h: Likewise
47161
47162 2006-09-10  Bruno Haible  <bruno@clisp.org>
47163
47164         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
47165         m4/inttypes_h.m4, m4/uintmax_t.m4.
47166
47167 2006-09-10  Bruno Haible  <bruno@clisp.org>
47168
47169         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
47170         gl_AC_TYPE_UINTMAX_T.
47171
47172 2006-09-10  Bruno Haible  <bruno@clisp.org>
47173
47174         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
47175
47176 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
47177
47178         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
47179         convention.  Text proposed by Bruno Haible.
47180         (struct argp_option): Document the use of N_() wrappers.
47181
47182         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
47183         '\v', and translate the two parts separately, instead of feeding
47184         the whole string to gettext.  This allows to exclude
47185         '\v' from the strings visible to the translator by writing doc
47186         strings as N_("..") "\v" N_("..").
47187
47188 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
47189
47190         * config/srclist.txt: Undo latest change; the bug was fixed.
47191
47192 2006-09-09  Bruno Haible  <bruno@clisp.org>
47193
47194         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
47195         assignments if building a library without libtool.
47196         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
47197         in func_emit_lib_Makefile_am.
47198         (func_import): When building a static library libfoo.a, arrange to
47199         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
47200         (func_create_testdir): Likewise.
47201         * modules/gc (configure.ac, Makefile.am): If building statically,
47202         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
47203         * modules/iconvme (configure.ac, Makefile.am): Likewise.
47204         * modules/striconv (configure.ac, Makefile.am): Likewise.
47205         Based on a suggestion by Ralf Wildenhues.
47206
47207 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
47208
47209         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
47210         Check for unistd.h too, since Autoconf doesn't assume POSIX.
47211         Also:
47212
47213         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
47214         Add year_2050_test to catch glibc bug 2821
47215         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
47216
47217         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
47218         Prefer #ifdef to #if.
47219
47220         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
47221         Return from 'main' instead of calling 'exit'.
47222
47223 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
47224
47225         * lib/mktime.c (guess_time_tm): Fix bug where mktime
47226         returned the maximum time_t value rather than (time_t) -1.
47227         Problem originally reported by William Bardwell
47228         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
47229
47230         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
47231         Moved to here ...
47232         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
47233         ... from here.
47234
47235 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
47236
47237         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
47238         2821 is fixed.
47239
47240 2006-09-08  Jim Meyering  <jim@meyering.net>
47241
47242         Don't make generated files read-only.  That would bother too many
47243         people.  However, do retain the ability to work when targets are
47244         read-only: remove the destination and temporary files before writing
47245         them (when generated via sed or echo), or by using the -f option for
47246         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
47247         * modules/alloca-opt, modules/argz, modules/arpa_inet:
47248         * modules/byteswap, modules/configmake, modules/fcntl:
47249         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
47250         * modules/localcharset, modules/netinet_in, modules/poll:
47251         * modules/stdbool, modules/stdint, modules/sys_select:
47252         * modules/sys_socket, modules/sys_stat, modules/sysexits:
47253
47254 2006-09-08  Jim Meyering  <jim@meyering.net>
47255
47256         Avoid new build failure on FreeBSD 6.0.
47257         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
47258         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
47259         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
47260
47261 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47262
47263         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
47264
47265 2006-09-07  Jim Meyering  <jim@meyering.net>
47266
47267         Fix global typo in last change: use chmod u-w, not chmod u-x.
47268         Spotted by Paul Eggert and Bruce Korb.
47269         * modules/alloca-opt, modules/argz, modules/arpa_inet:
47270         * modules/byteswap, modules/configmake, modules/fcntl:
47271         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
47272         * modules/localcharset, modules/netinet_in, modules/poll:
47273         * modules/stdbool, modules/stdint, modules/sys_select:
47274         * modules/sys_socket, modules/sys_stat, modules/sysexits:
47275
47276 2006-09-06  Jim Meyering  <jim@meyering.net>
47277
47278         Make generated files be read-only.
47279         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
47280         Ensure that each generated file is now read-only.
47281         * modules/argz: Likewise.
47282         * modules/arpa_inet: Likewise.
47283         * modules/byteswap: Likewise.
47284         * modules/configmake: Likewise.
47285         * modules/fcntl: Likewise.
47286         * modules/fnmatch: Likewise.
47287         * modules/getopt: Likewise.
47288         * modules/glob: Likewise.
47289         * modules/inttypes: Likewise.
47290         * modules/netinet_in: Likewise.
47291         * modules/poll: Likewise.
47292         * modules/stdbool: Likewise.
47293         * modules/stdint: Likewise.
47294         * modules/sys_select: Likewise.
47295         * modules/sys_socket: Likewise.
47296         * modules/sys_stat: Likewise.
47297         * modules/sysexits: Likewise.
47298         * modules/localcharset: Same as above, but continue using temporary
47299         file named "t-$@" (why different?) rather than the "$@-t" used
47300         everywhere else.
47301
47302         * modules/sysexits (Makefile.am): Replace literal occurrences
47303         of "sysexit.h" more readable, and more consistent, "$@".
47304
47305 2006-09-06  Bruno Haible  <bruno@clisp.org>
47306
47307         * modules/striconv: New file.
47308         * modules/xstriconv: New file.
47309         * MODULES.html.sh (Internationalization functions): Add striconv,
47310         xstriconv.
47311
47312 2006-09-06  Bruno Haible  <bruno@clisp.org>
47313
47314         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
47315         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
47316         not using libtool correctly.
47317
47318 2006-09-06  Bruno Haible  <bruno@clisp.org>
47319
47320         * lib/striconv.h: New file.
47321         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
47322         iconvstring.c.
47323         * lib/xstriconv.h: New file.
47324         * lib/xstriconv.c: New file.
47325
47326 2006-09-06  Bruno Haible  <bruno@clisp.org>
47327
47328         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
47329         lib_..._LDFLAGS.
47330
47331 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47332
47333         * lib/argz_.h: Sync from Libtool.
47334
47335         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
47336                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
47337
47338         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
47339
47340 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
47341
47342         * modules/trim: New file.
47343
47344 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
47345
47346         * lib/trim.h: New file.
47347         * lib/trim.c: New file.
47348
47349 2006-09-05  Bruno Haible  <bruno@clisp.org>
47350
47351         * MODULES.html.sh (String handling): Add trim.
47352
47353 2006-09-04  Karl Berry  <karl@gnu.org>
47354
47355         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
47356         until next release.
47357
47358 2006-09-03  Bruno Haible  <bruno@clisp.org>
47359
47360         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
47361         correctly.
47362
47363 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
47364
47365         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
47366         not gl_GETLOADAVG.  Omit unneeded semicolons.
47367         Problems reported by Ralf Wildenhues in
47368         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
47369         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
47370         at the end, which is the usual gnulib style.
47371
47372         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
47373         of doing all the work ourselves.
47374         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
47375         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
47376
47377 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
47378
47379         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
47380         Problem reported by Ralf Wildenhues in
47381         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
47382
47383         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
47384         HAVE_STRUCT_STATFS_F_FSTYPENAME.
47385
47386 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
47387
47388         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
47389         yesterday's patch by changing test -n to test -z.
47390
47391 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
47392
47393         * modules/getloadavg (Files): Add m4/getloadavg.m4.
47394         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
47395         the former is now obsolescent.
47396
47397         * modules/chdir-long (Depends-on): Add fcntl.
47398
47399 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
47400
47401         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
47402         obsolescent, and programs should use gnulib instead.
47403         * m4/getloadavg.m4: New file, with contents taken from Autoconf
47404         but with prefixes changed.
47405
47406 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
47407
47408         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
47409         or stdbool.h, because they might not exist while configuring.
47410
47411         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
47412         Don't include unistd.h or limits.h; not needed, since chdir-long.h
47413         does that for us.
47414         (O_DIRECTORY): Remove.
47415
47416 2006-08-31  Eric Blake  <ebb9@byu.net>
47417
47418         * gnulib-tool: Don't let emacs change spaces to TAB.
47419
47420 2006-08-31  Bruno Haible  <bruno@clisp.org>
47421
47422         * gnulib-tool: When calling func_import more than once, do it in a
47423         subshell.
47424         Reported by Eric Blake <ebb9@byu.net>.
47425
47426 2006-08-31  Bruno Haible  <bruno@clisp.org>
47427
47428         * gnulib-tool (nl): Remove variable.
47429         (sed_transform_lib_file): Use more robust test for config-h module.
47430         (func_import): Fix typo in 2006-08-25 patch.
47431
47432 2006-08-31  Bruno Haible  <bruno@clisp.org>
47433
47434         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
47435         specified, augment Makefile.am variables instead of assigning them.
47436
47437 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
47438
47439         Work around a bug in both the Linux and SunOS 64-bit kernels:
47440         nanosleep mishandles sleeps for longer than 2**31 seconds.
47441         Problem reported by Frank v Waveren in
47442         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
47443         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
47444         Check for nanosleep bug.
47445         (LIB_NANOSLEEP): Append clock_gettime library if needed.
47446
47447 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
47448
47449         Work around a bug in both the Linux and SunOS 64-bit kernels:
47450         nanosleep mishandles sleeps for longer than 2**31 seconds.
47451         Problem reported by Frank v Waveren in
47452         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
47453         * lib/nanosleep.c (BILLION): New constant.
47454         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
47455         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
47456         implementation.
47457
47458 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
47459
47460         * modules/nanosleep (Depends-on): Add gettime.
47461
47462 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
47463         and Simon Josefsson  <jas@extundo.com>
47464         and Oskar Liljeblad  <oskar@osk.mine.nu>
47465
47466         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
47467         * gnulib-tool (func_import): New license type 'unmodifiable license
47468         text'.
47469         * modules/fdl: Use it.  Longer description.
47470         * module/gpl, module/lgpl: New files.
47471
47472 2006-08-30  Jim Meyering  <jim@meyering.net>
47473
47474         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
47475         shadowing the parameter.
47476
47477 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47478
47479         Sync from Libtool:
47480
47481         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47482
47483         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
47484         sharing with gnulib.  Report by Eric Blake.
47485
47486 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
47487
47488         * modules/isapipe: New file.
47489         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
47490
47491 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
47492
47493         * modules/configmake (Makefile.am): Add a comment, and omit
47494         the CONFIGMAKE_ prefix from generated macro names.  Suggested
47495         by Bruno Haible.
47496
47497 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
47498
47499         * m4/isapipe.m4: New file.
47500
47501 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
47502
47503         * lib/isapipe.c, lib/isapipe.h: New files.
47504
47505 2006-08-29  Jim Meyering  <jim@meyering.net>
47506
47507         * modules/configmake (Makefile.am): Make configmake.h depend on
47508         Makefile.  Otherwise, a stale configmake.h could hang around.
47509
47510 2006-08-29  Eric Blake  <ebb9@byu.net>
47511
47512         * lib/error.c (error_at_line, print_errno_message): Match libc, after
47513         resolution of upstream bug 3044.
47514
47515 2006-08-29  Bruno Haible  <bruno@clisp.org>
47516
47517         * modules/localcharset (Depends-on): Add configmake.
47518         (Makefile.am): Remove setting of LIBDIR through DEFS.
47519
47520 2006-08-29  Bruno Haible  <bruno@clisp.org>
47521
47522         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
47523         defined.
47524
47525 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
47526
47527         * modules/fcntl: New file.
47528         * modules/chdir-safer (Depends-on): Add fcntl.
47529         * modules/fts: Likewise.
47530         * modules/mkdir-p: Likewise.
47531
47532         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
47533         This undoes the most recent change, since we're now addressing the
47534         problem in a different way.
47535
47536         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
47537         into output, since the output might be called Makefile.am even
47538         if $makefile_name is something different.
47539         (func_import): Use $makefile_am rather than
47540         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
47541         empty.
47542
47543         * modules/inttypes (Files): Add m4/inttypes-h.m4.
47544
47545 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
47546
47547         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
47548         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
47549         recent change to stdint.m4, since we're now addressing the problem in a
47550         different way.
47551
47552 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
47553
47554         * m4/fcntl_h.m4: New file.
47555
47556 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
47557
47558         * lib/fcntl_.h: New file.
47559         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
47560         the fcntl module.
47561         * lib/dirchownmod.c: Likewise.
47562         * lib/fts.c: Likewise.
47563
47564         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
47565         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
47566         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
47567         just before including <inttypes.h>, to avoid circular inclusion.
47568
47569 2006-08-28  Jim Meyering  <jim@meyering.net>
47570
47571         * doc/visibility.texi: Actually read and correct the grammar of the
47572         sentence affected by yesterday's change.
47573
47574 2006-08-28  Eric Blake  <ebb9@byu.net>
47575
47576         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
47577         needs wrapper.
47578
47579 2006-08-28  Eric Blake  <ebb9@byu.net>
47580
47581         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
47582
47583 2006-08-28  Eric Blake  <ebb9@byu.net>
47584
47585         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
47586
47587 2006-08-28  Bruno Haible  <bruno@clisp.org>
47588
47589         * modules/c-strstr: New file, from GNU gettext.
47590         * MODULES.html.sh (String handling): Add c-strstr.
47591
47592 2006-08-28  Bruno Haible  <bruno@clisp.org>
47593
47594         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
47595         macros.
47596         Reported by Eric Blake.
47597
47598 2006-08-28  Bruno Haible  <bruno@clisp.org>
47599
47600         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
47601         (VASNPRINTF): Return a string of length > INT_MAX without failing.
47602         * lib/vasprintf.c: Include errno.h, limits.h.
47603         (EOVERFLOW): New fallback definition.
47604         (vasprintf): Test here whether the string length is > INT_MAX.
47605         * lib/vsnprintf.c: Include errno.h, limits.h.
47606         (EOVERFLOW): New fallback definition.
47607         (vsnprintf): Fix bug when generated string was too long for the buffer.
47608         Test here whether the string length is > INT_MAX.
47609
47610 2006-08-28  Bruno Haible  <bruno@clisp.org>
47611
47612         * lib/inttypes_.h (SCNX*): Remove definitions.
47613         Reported by Eric Blake.
47614
47615 2006-08-28  Bruno Haible  <bruno@clisp.org>
47616
47617         * lib/c-strstr.h: New file, from GNU gettext.
47618         * lib/c-strstr.c: New file, from GNU gettext.
47619
47620 2006-08-28  Bruno Haible  <bruno@clisp.org>
47621
47622         * gnulib-tool: Reorder some statements.
47623
47624 2006-08-28  Bruno Haible  <bruno@clisp.org>
47625
47626         * gnulib-tool: New option --makefile-name.
47627         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
47628         $makefile_name.
47629         (func_import): Write $makefile_name to the cache file, and read it from
47630         there unless explicitly specified. Use $makefile_name as file name
47631         instead of Makefile.am. Adjust the recommendations accordingly.
47632
47633 2006-08-28  Bruno Haible  <bruno@clisp.org>
47634
47635         * gnulib-tool (func_verify_module): Check against misapplying patch.
47636
47637 2006-08-28  Bruno Haible  <bruno@clisp.org>
47638
47639         * gnulib-tool (func_relativize, func_relconcat): New functions.
47640         Give an error if --local-dir is given with --update.
47641         Remove trailing slashes from $local_gnulib_dir.
47642         (func_import): Store the relativized $local_gnulib_dir in
47643         gnulib-cache.m4, and read it from there if not specified explicitly.
47644
47645 2006-08-28  Bruno Haible  <bruno@clisp.org>
47646
47647         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
47648         is the current directory. Respect also $local_gnulib_dir.
47649
47650 2006-08-28  Bruno Haible  <bruno@clisp.org>
47651             Simon Josefsson  <jas@extundo.com>
47652
47653         BeOS portability.
47654         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
47655
47656 2006-08-27  Jim Meyering  <jim@meyering.net>
47657
47658         * doc/visibility.texi: Remove duplicate word: "pointer".
47659
47660 2006-08-26  Bruno Haible  <bruno@clisp.org>
47661
47662         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
47663         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
47664         (Makefile.am): Create inttypes.h from inttypes_.h.
47665         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
47666
47667         * modules/imaxabs: New file.
47668
47669         * modules/imaxdiv: New file.
47670
47671 2006-08-26  Bruno Haible  <bruno@clisp.org>
47672
47673         * m4/inttypes.m4: New file.
47674         * m4/_inttypes_h.m4: Remove file.
47675         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
47676         PRI_MACROS_BROKEN.
47677         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
47678
47679         * m4/imaxabs.m4: New file.
47680
47681         * m4/imaxdiv.m4: New file.
47682
47683 2006-08-26  Bruno Haible  <bruno@clisp.org>
47684
47685         * lib/inttypes_.h: New file.
47686         * lib/inttypes.h: Remove file.
47687         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
47688
47689         * lib/imaxabs.c: New file.
47690
47691         * lib/imaxdiv.c: New file.
47692
47693 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
47694
47695         New config-h module, so that "make" output needn't be cluttered
47696         by -DHAVE_CONFIG_H.
47697         * MODULES.html.sh (Support for building libraries and executables):
47698         Add config-h.
47699         * modules/config-h: New file.
47700         * gnulib-tool (nl, sed_transform_lib_file): New vars.
47701         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
47702         the config-h module is used.
47703
47704         New configmake module, so that "make" output needn't be cluttered
47705         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
47706         * MODULES.html.sh (Support for building libraries and executables):
47707         Add configmake.
47708         * modules/configmake: New file.
47709
47710 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
47711
47712         * m4/config-h.m4: New file.
47713
47714 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
47715
47716         * config/srclist.txt: Add elisp-comp.
47717
47718 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
47719
47720         * MODULES.html.sh (Support for building libraries and executables):
47721         Add elisp-comp.
47722         * build-aux/elisp-comp: New file.
47723         * modules/elisp-comp: New file.
47724
47725 2006-08-24  Bruno Haible  <bruno@clisp.org>
47726
47727         * gnulib-tool (func_create_testdir): Use non-default values of
47728         sourcebase and m4base.
47729
47730 2006-08-24  Bruno Haible  <bruno@clisp.org>
47731
47732         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
47733         HTML structure.
47734
47735 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
47736
47737         * modules/openat (Depends-on): Add lchown.
47738
47739 2006-08-23  Bruno Haible  <bruno@clisp.org>
47740
47741         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
47742         of gl_LOCK_EARLY instead of gl_LOCK.
47743
47744 2006-08-23  Bruno Haible  <bruno@clisp.org>
47745
47746         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
47747         on OSF/1 to no.
47748         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
47749
47750 2006-08-23  Bruno Haible  <bruno@clisp.org>
47751
47752         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
47753         as unusable.
47754
47755         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
47756         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
47757         (gl_LOCK): New macro.
47758
47759 2006-08-22  Simon Josefsson  <jas@extundo.com>
47760
47761         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
47762         to md5 module.
47763
47764 2006-08-22  Simon Josefsson  <jas@extundo.com>
47765
47766         * MODULES.html.sh: Add "Support for maintaining and release
47767         projects".
47768
47769         * build-aux/gnupload: New file, from coreutils.
47770
47771 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
47772
47773         Avoid the need for AC_LIBSOURCES in m4 macros.
47774         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
47775         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
47776         * modules/check-version (EXTRA_DIST): Add check-version.h.
47777         * modules/crc (EXTRA_DIST): Add crc.h.
47778         * modules/des (EXTRA_DIST): Add des.h.
47779         * modules/gc (EXTRA_DIST): Add gc.h.
47780         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
47781         * modules/getline (EXTRA_DIST): Add getline.h.
47782         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
47783         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
47784         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
47785         * modules/md2 (EXTRA_DIST): Add md2.h.
47786         * modules/md4 (EXTRA_DIST): Add md4.h.
47787         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
47788         * modules/read-file (EXTRA_DIST): Add read-file.h.
47789         * modules/readline (EXTRA_DIST): Add readline.h.
47790         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
47791         rijndael-api-fst.h.
47792
47793 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
47794
47795         * m4/rijndael.m4 (gl_ARCFOUR):
47796         * m4/arctwo.m4 (gl_ARCTWO):
47797         * m4/check-version.m4 (gl_CHECK_VERSION):
47798         * m4/crc.m4 (gl_CRC):
47799         * m4/des.m4 (gl_DES):
47800         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
47801         * m4/gc.m4 (gl_GC):
47802         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
47803         * m4/getline.m4 (gl_FUNC_GETLINE):
47804         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
47805         * m4/hmac-md5.m4 (gl_HMAC_MD5):
47806         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
47807         * m4/md2.m4 (gl_MD2):
47808         * m4/md4.m4 (gl_MD4):
47809         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
47810         * m4/read-file.m4 (gl_FUNC_READ_FILE):
47811         * m4/readline.m4 (gl_FUNC_READLINE):
47812         * m4/rijndael.m4 (gl_RIJNDAEL):
47813         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
47814         to get the necessary .h files and whatnot.
47815
47816 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
47817
47818         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
47819         gnulib rather than the other way around.
47820         * config/srclistvars.sh (COREUTILS): Remove.
47821
47822 2006-08-22  Jim Meyering  <jim@meyering.net>
47823
47824         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
47825
47826         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
47827
47828 2006-08-22  Eric Blake  <ebb9@byu.net>
47829
47830         * modules/regexprops-generic: New file.
47831         * MODULES.html.sh (Support for building documentation): List it.
47832
47833 2006-08-22  Eric Blake  <ebb9@byu.net>
47834
47835         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
47836         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
47837         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
47838         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
47839
47840 2006-08-22  Bruno Haible  <bruno@clisp.org>
47841
47842         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
47843         and lib_LTLIBRARIES like the other lib_* variables.
47844
47845 2006-08-22  Bruno Haible  <bruno@clisp.org>
47846
47847         * build-aux/x-to-1.in: New file, from GNU gettext.
47848
47849 2006-08-22  Bruno Haible  <bruno@clisp.org>
47850
47851         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
47852         <utmpx.h> exists.
47853
47854 2006-08-22  Bruno Haible  <bruno@clisp.org>
47855
47856         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
47857         <utmpx.h> exists.
47858
47859 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
47860
47861         BeOS portability.
47862         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
47863         exist.
47864         Problem reported by Bruno Haible.
47865
47866 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
47867
47868         Avoid the need for AC_LIBSOURCES in m4 macros.
47869         * modules/acl (EXTRA_DIST): Add acl.h.
47870         * modules/argmatch (Files): Add m4/argmatch.m4.
47871         (configure.ac): Add gl_ARGMATCH.
47872         (EXTRA_DIST): Renamed from lib_SOURCES, for
47873         consistency with the other modules.  Remove argmatch.c.
47874         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
47875         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
47876         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
47877         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
47878         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
47879         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
47880         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
47881         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
47882         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
47883         * modules/closeout (EXTRA_DIST): Add closeout.h.
47884         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
47885         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
47886         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
47887         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
47888         dirname.h; remove basename.c and stripslash.c.
47889         * modules/exclude (EXTRA_DIST): Add exclude.h.
47890         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
47891         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
47892         * modules/file-type (EXTRA_DIST): Add file-type.h.
47893         * modules/filemode (EXTRA_DIST): Add filemode.h.
47894         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
47895         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
47896         * modules/fpending (EXTRA_DIST): Add __fpending.h.
47897         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
47898         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
47899         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
47900         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
47901         * modules/getdate (EXTRA_DIST): Add getdate.c.
47902         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
47903         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
47904         * modules/getpass (EXTRA_DIST): Add getpass.h.
47905         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
47906         * modules/group-member (EXTRA_DIST): Add group-member.h.
47907         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
47908         * modules/hash (EXTRA_DIST): Add hash.h.
47909         * modules/human (EXTRA_DIST): Add human.h.
47910         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
47911         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
47912         * modules/lchown (EXTRA_DIST): Add lchown.h.
47913         * modules/long-options (EXTRA_DIST): Add long-options.h.
47914         * modules/lstat (EXTRA_DIST): Add lstat.h.
47915         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
47916         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
47917         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
47918         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
47919         * modules/memxor (EXTRA_DIST): Add memxor.h.
47920         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
47921         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
47922         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
47923         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
47924         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
47925         * modules/physmem (EXTRA_DIST): Add physmem.h.
47926         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
47927         * modules/posixver (EXTRA_DIST): Add posixver.h.
47928         * modules/quote (EXTRA_DIST): Add quote.h.
47929         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
47930         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
47931         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
47932         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
47933         regex_internal.h regexec.c.
47934         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
47935         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
47936         * modules/same (EXTRA_DIST): Add same.h.
47937         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
47938         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
47939         * modules/savedir (EXTRA_DIST): Add savedir.h.
47940         * modules/sha1 (EXTRA_DIST): Add sha1.h.
47941         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
47942         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
47943         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
47944         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
47945         * modules/strdup (EXTRA_DIST): Add strdup.h.
47946         * modules/strftime (EXTRA_DIST): Add strftime.h.
47947         * modules/strndup (EXTRA_DIST): Add strndup.h.
47948         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
47949         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
47950         * modules/time_r (EXTRA_DIST): Add time_r.h.
47951         * modules/timespec (EXTRA_DIST): Add timespec.h.
47952         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
47953         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
47954         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
47955         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
47956         * modules/userspec (EXTRA_DIST): Add userspec.h.
47957         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
47958         * modules/utimens (EXTRA_DIST): Add utimens.h.
47959         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
47960         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
47961         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
47962         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
47963         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
47964         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
47965         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
47966         * modules/yesno (EXTRA_DIST): Add yesno.h.
47967
47968 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
47969
47970         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
47971
47972         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
47973         * m4/dev-ino.m4, same-inode.m4: Remove.
47974
47975         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
47976         * m4/acl.m4 (AC_FUNC_ACL):
47977         * m4/backupfile.m4 (gl_BACKUPFILE):
47978         * m4/c-strtod.m4 (gl_C99_STRTOLD):
47979         * m4/canon-host.m4 (gl_CANON_HOST):
47980         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
47981         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
47982         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
47983         * m4/cloexec.m4 (gl_CLOEXEC):
47984         * m4/close-stream.m4 (gl_CLOSE_STREAM):
47985         * m4/closeout.m4 (gl_CLOSEOUT):
47986         * m4/dirfd.m4 (gl_FUNC_DIRFD):
47987         * m4/dirname.m4 (gl_DIRNAME):
47988         * m4/exclude.m4 (gl_EXCLUDE):
47989         * m4/exitfail.m4 (gl_EXITFAIL):
47990         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
47991         * m4/file-type.m4 (gl_FILE_TYPE):
47992         * m4/filemode.m4 (gl_FILEMODE):
47993         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
47994         * m4/fpending.m4 (gl_FUNC_FPENDING):
47995         * m4/fprintftime.m4 (gl_FPRINTFTIME):
47996         * m4/fts.m4 (gl_FUNC_FTS):
47997         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
47998         * m4/getdate.m4 (gl_GETDATE):
47999         * m4/gethrxtime.m4 (gl_GETHRXTIME):
48000         * m4/getpagesize.m4 (gl_GETPAGESIZE):
48001         * m4/getpass.m4 (gl_FUNC_GETPASS):
48002         * m4/gettime.m4 (gl_GETTIME):
48003         * m4/getugroups.m4 (gl_GETUGROUPS):
48004         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
48005         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
48006         * m4/hard-locale.m4 (gl_HARD_LOCALE):
48007         * m4/hash.m4 (gl_HASH):
48008         * m4/idcache.m4 (gl_IDCACHE):
48009         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
48010         * m4/lchown.m4 (gl_FUNC_LCHOWN):
48011         * m4/long-options.m4 (gl_LONG_OPTIONS):
48012         * m4/lstat.m4 (gl_FUNC_LSTAT):
48013         * m4/md5.m4 (gl_MD5):
48014         * m4/memcasecmp.m4 (gl_MEMCASECMP):
48015         * m4/memcoll.m4 (gl_MEMCOLL):
48016         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
48017         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
48018         * m4/memxor.m4 (gl_MEMXOR):
48019         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
48020         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
48021         * m4/modechange.m4 (gl_MODECHANGE):
48022         * m4/mountlist.m4 (gl_MOUNTLIST):
48023         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
48024         * m4/openat.m4 (gl_FUNC_OPENAT):
48025         * m4/pathmax.m4 (gl_PATHMAX):
48026         * m4/physmem.m4 (gl_PHYSMEM):
48027         * m4/posixtm.m4 (gl_POSIXTM):
48028         * m4/posixver.m4 (gl_POSIXVER):
48029         * m4/quote.m4 (gl_QUOTE):
48030         * m4/quotearg.m4 (gl_QUOTEARG):
48031         * m4/readtokens.m4 (gl_READTOKENS):
48032         * m4/readutmp.m4 (gl_READUTMP):
48033         * m4/regex.m4 (gl_REGEX):
48034         * m4/safe-read.m4 (gl_SAFE_READ):
48035         * m4/safe-write.m4 (gl_SAFE_WRITE):
48036         * m4/same.m4 (gl_SAME):
48037         * m4/save-cwd.m4 (gl_SAVE_CWD):
48038         * m4/savedir.m4 (gl_SAVEDIR):
48039         * m4/settime.m4 (gl_SETTIME):
48040         * m4/sha1.m4 (gl_SHA1):
48041         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
48042         * m4/stat-macros.m4 (gl_STAT_MACROS):
48043         * m4/stat-time.m4 (gl_STAT_TIME):
48044         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
48045         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
48046         * m4/strdup.m4 (gl_FUNC_STRDUP):
48047         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
48048         * m4/strndup.m4 (gl_FUNC_STRNDUP):
48049         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
48050         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
48051         * m4/time_r.m4 (gl_TIME_R):
48052         * m4/timespec.m4 (gl_TIMESPEC):
48053         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
48054         * m4/unlinkdir.m4 (gl_UNLINKDIR):
48055         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
48056         * m4/userspec.m4 (gl_USERSPEC):
48057         * m4/utimecmp.m4 (gl_UTIMECMP):
48058         * m4/utimens.m4 (gl_UTIMENS):
48059         * m4/xalloc.m4 (gl_XALLOC):
48060         * m4/xgetcwd.m4 (gl_XGETCWD):
48061         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
48062         * m4/xreadlink.m4 (gl_XREADLINK):
48063         * m4/xstrtod.m4 (gl_XSTRTOD):
48064         * m4/yesno.m4 (gl_YESNO):
48065         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
48066         to get the necessary .h files and whatnot.
48067
48068 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
48069             Bruno Haible  <bruno@clisp.org>
48070
48071         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
48072         /bin/sh understanding of '!' conditional negation.
48073
48074 2006-08-21  Jim Meyering  <jim@meyering.net>
48075
48076         * modules/openat (Depends-on): Really alphabetize.
48077
48078         * modules/acl (Depends-on): Add error and quote.
48079
48080         * check-module (find_included_lib_files): Add at-func.c to the
48081         ok-to-include-more-than-once white list.
48082
48083         * modules/openat (Depends-on): Add lstat.  Alphabetize.
48084
48085 2006-08-21  Bruno Haible  <bruno@clisp.org>
48086
48087         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48088         Emit a pkgdata_DATA variable only if some snippets add contents to it.
48089         Reported by Martin Lambers <marlam@marlam.de>.
48090
48091 2006-08-21  Bruno Haible  <bruno@clisp.org>
48092
48093         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
48094         specify an installation location, don't emit a noinst_LIBRARIES or
48095         noinst_LTLIBRARIES assignment.
48096
48097 2006-08-21  Bruno Haible  <bruno@clisp.org>
48098
48099         BeOS portability.
48100         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
48101         BeOS has mbrtowc() but no <wctype.h>.
48102
48103 2006-08-21  Bruno Haible  <bruno@clisp.org>
48104
48105         BeOS portability.
48106         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
48107         exist.
48108
48109 2006-08-21  Bruno Haible  <bruno@clisp.org>
48110
48111         BeOS portability.
48112         * lib/mbchar.h: Include <wctype.h> only if it exists.
48113
48114 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
48115
48116         Remove files that are no longer needed by their respective modules.
48117         * m4/obstack.m4: Remove.
48118         * m4/strerror_r.m4: Remove.
48119         * m4/uint32_t.m4: Remove.
48120         * m4/uintptr_t.m4: Remove.
48121         * m4/ullong_max.m4: Remove.
48122         * m4/xstrtoimax.m4: Remove.
48123         * m4/xstrtoumax.m4: Remove.
48124
48125         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
48126         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
48127         dependencies now capture this.
48128
48129         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
48130         Do not use AC_LIBSOURCES, since gnulib modules now do this.
48131         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
48132         * m4/human.m4 (gl_HUMAN): Likewise.
48133         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
48134         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
48135
48136         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
48137
48138         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
48139         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
48140         stdint.
48141         * m4/human.m4 (gl_HUMAN): Likewise.
48142         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
48143         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
48144         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
48145         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
48146         * m4/xstrtol (gl_XSTRTOL): Likewise.
48147
48148         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
48149         AC_TYPE_LONG_LONG_INT.
48150         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
48151         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
48152         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
48153         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
48154
48155         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
48156         on stdbool.
48157
48158         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
48159         (gl_PREREQ_XSTRTOUL): Remove.
48160
48161         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
48162
48163         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
48164         mode.
48165
48166 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
48167
48168         Add and change modules to make it easier for coreutils to use
48169         gnulib-tool.
48170         * modules/backupfile (Files): Remove m4/d-ino.m4.
48171         (Depends-on): Add d-ino.
48172         * modules/cycle-check (Depends-on): Add stdint.
48173         (lib_SOURCES): Add cycle-check.h.
48174         * modules/d-ino: New module.
48175         * modules/d-type: New module.
48176         * modules/error (Files): Remove m4/strerror_r.m4.
48177         * modules/filemode (Files): Add m4/st_dm_mode.m4.
48178         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
48179         m4/inttypes_h.m4, m4/uintmax_t.m4.
48180         (Depends-on): Add stdint.
48181         (lib_SOURCES): Add fsusage.h.
48182         * modules/getcwd (Files): Remove d-ino.m4.
48183         (Depends-on): Add d-ino.
48184         * modules/getndelim2 (Depends-on): Add stdint.
48185         * modules/glob (Files): Remove m4/d-type.m4.
48186         (Depends-on): Add d-type.
48187         * modules/host-os: New module.
48188         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
48189         m4/inttypes_h.m4, m4/uintmax_t.m4.
48190         * Depends-on: Add stdint.
48191         (lib_SOURCES): Add human.h.
48192         * modules/inttostr (Files): Remove m4/intmax_t.m4,
48193         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
48194         m4/uintmax_t.m4, m4/ulonglong.m4.
48195         (Depends-on): Add stdint.
48196         (EXTRA_DIST): Add inttostr.h.
48197         * modules/lchmod: New module.
48198         * modules/link-follow: New module.
48199         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
48200         (Depends-on): Add lchmod.
48201         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
48202         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
48203         (Depends-on): Add stdint.
48204         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
48205         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
48206         (Depends-on): Add stdint.
48207         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
48208         * modules/perl: New module.
48209         * modules/regex (Depends-on): Add stdint.
48210         * modules/rmdir-errno: New module.
48211         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
48212         m4/intmax_t.m4.
48213         (Depends-on): Add stdint.
48214         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
48215         m4/uintmax_t.m4.
48216         (Depends-on): Add stdint.
48217         * modules/unlink-busy: New module.
48218         * modules/utimecmp (Depends-on): Add stdint.
48219         * modules/uptime: New module.
48220         * modules/winsz-ioctl: New module.
48221         * modules/winsz-termios: New module.
48222         * modules/xnanosleep (Depends-on): Add nanosleep.
48223         * modules/ullong_max: Remove.
48224         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
48225         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
48226         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
48227         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
48228         (Depends-on): Add inttypes.
48229         (lib_SOURCES): Add xstrtol.h.
48230         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
48231         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
48232         * MODULES.html.sh: Move 'assert' into the assert section.
48233         Move 'dummy' into the linking section.
48234         Remove ullong_max.
48235         Add section for compatibility checks for POSIX:2001 functions,
48236         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
48237         winsz-ioctl, and winsz-termios into it.
48238         Add lchmod.
48239         Add top-level Misc section and put host-os, perl, and uptime
48240         into it.
48241
48242 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
48243
48244         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
48245         now assume the stdint module.  Do not include inttypes.h.
48246         * lib/fsusage.h: Likewise.
48247         * lib/getndelim2.c: Likewise.
48248         * lib/human.h: Likewise.
48249         * lib/inttostr.h: Likewise.
48250         * lib/obstack.c: Likewise.
48251         * lib/regex_internal.h: Likewise.
48252         * lib/tempname.c: Likewise.
48253         * lib/utimecmp.c: Likewise.
48254         * lib/xstrtol.h: Likewise.
48255
48256         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
48257
48258         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
48259         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
48260         * lib/xtime.h: Likewise.
48261
48262 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
48263
48264         * modules/openat (Files): Add lib/fchmodat.c.
48265         Fixes problem reported by Jay Youngman.
48266
48267 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
48268
48269         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
48270         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
48271
48272 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
48273             Bruno Haible  <bruno@clisp.org>
48274
48275         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
48276         and is a script that invokes bison. Tighten the code. Add comments.
48277
48278 2006-08-18  Jim Meyering  <jim@meyering.net>
48279
48280         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
48281         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
48282         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
48283         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
48284
48285 2006-08-18  Bruno Haible  <bruno@clisp.org>
48286
48287         * modules/bison-i18n: New file.
48288         * MODULES.html.sh (Internationalization functions): Add it.
48289
48290 2006-08-18  Bruno Haible  <bruno@clisp.org>
48291
48292         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
48293         sys/statvfs.h. When getmntinfo was found, check its declaration and
48294         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
48295
48296 2006-08-18  Bruno Haible  <bruno@clisp.org>
48297
48298         * m4/bison-i18n.m4: New file, from bison.
48299
48300 2006-08-18  Bruno Haible  <bruno@clisp.org>
48301
48302         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
48303         (ME_DUMMY): Treat "kernfs" as a dummy.
48304         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
48305
48306 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
48307
48308         Update from coreutils.
48309
48310         2006-08-15  Jim Meyering  <jim@meyering.net>
48311
48312         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
48313
48314         2006-01-17  Jim Meyering  <jim@meyering.net>
48315
48316         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
48317
48318         2006-01-11  Jim Meyering  <jim@meyering.net>
48319
48320         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
48321         Check for the lchmod function.
48322
48323 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
48324
48325         Update from coreutils.
48326
48327         * lib/__fpending.h: Add copyright notice.
48328         * lib/fprintftime.h: Likewise.
48329         * lib/savedir.c: Use (C) in copyright notice.
48330         * lib/savedir.h: Likewise.
48331
48332         2006-08-15  Jim Meyering  <jim@meyering.net>
48333
48334         * lib/at-func.c: New file, with the logic of all emulated at-functions.
48335         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
48336         in support of the EXPECTED_ERRNO macro.
48337         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
48338         definitions.  Instead, define the appropriate symbols and include
48339         "at-func.c".
48340         * lib/mkdirat.c (mkdirat): Likewise.
48341         * lib/fchmodat.c (fchmodat): Likewise.
48342         (ENOSYS): Remove definition.
48343         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
48344         it.  Don't include "unistd--.h" -- it wasn't ever used.
48345
48346         2006-01-17  Jim Meyering  <jim@meyering.net>
48347
48348         Rewrite fts.c not to change the current working directory,
48349         by using openat, fstatat, fdopendir, etc..
48350
48351         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
48352         (HAVE_OPENAT_SUPPORT): Define.
48353         [_LIBC] (fchdir): Don't undef or define; no longer used.
48354         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
48355         Now, this `function' always succeeds, and consumes its file descriptor
48356         parameter -- so callers must not close such FDs.  Update callers.
48357         (diropen_fd, opendirat, cwd_advance_fd): New functions.
48358         (diropen): Add parameter, SP.  Adjust all callers.
48359         Implement using diropen_fd, rather than open.
48360         (fts_open): Initialize new member, fts_cwd_fd.
48361         Remove fts_rft-setting code.
48362         (fts_close): Close fts_cwd_fd, if necessary.
48363         (__opendir2): Define in terms of opendir or opendirat,
48364         depending on whether the FST_NOCHDIR flag is set.
48365         (fts_build): Since fts_safe_changedir consumes its FD, and since
48366         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
48367         and close the dup'd file descriptor upon failure.
48368         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
48369         (fts_safe_changedir): Tweak semantics to reflect that this function
48370         now calls cwd_advance_fd and hence consumes its FD argument.
48371         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
48372         [struct FTS] (fts_rft): Remove now-unused member.
48373         [struct FTS] (fts_cycle.state): Improve comment.
48374
48375         * lib/openat.c (openat_needs_fchdir): New function.
48376         * lib/openat.h (openat_needs_fchdir): Declare it.
48377
48378 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
48379
48380         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
48381         Problem and fix reported by Pádraig Brady in
48382         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
48383
48384 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
48385
48386         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
48387
48388 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
48389
48390         * lib/memcoll.c (memcoll): Optimize for the common case where the
48391         arguments are bytewise equal.
48392
48393 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
48394
48395         * doc/regexprops-generic.texi: Add a copyright notice.
48396
48397 2006-08-15  Bruno Haible  <bruno@clisp.org>
48398
48399         * modules/tmpdir (License): Change to LGPL.
48400
48401 2006-08-15  Bruno Haible  <bruno@clisp.org>
48402
48403         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
48404         module.
48405
48406 2006-08-14  Simon Josefsson  <jas@extundo.com>
48407
48408         * config/srclist.txt: Add gnupload.
48409
48410 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
48411
48412         Change copyright notice from LGPL 2 to GPL 2, since that's the
48413         standard form used in the gnulib repository.
48414         * tests/test-lock.c: Likewise.
48415         * tests/test-stdint.c: Likewise.
48416         * tests/test-tls.c: Likewise.
48417
48418         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
48419         prelude-manager.  User shorter URLs for GNU projects, without '?'.
48420         Add copyright notice.
48421
48422         * check-module: Add copyright notice.  Output a copyright
48423         notice if "--version" is specified.
48424         * modules/COPYING: New file.
48425         * tests/test-getaddrinfo.c: Add copyright notice.
48426         * tests/test-verify.c: Likewise.
48427
48428 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
48429
48430         Change copyright notice from LGPL 2 to GPL 2, since that's the
48431         standard form used in the gnulib repository.
48432         * lib/lock.c: LGPL -> GPL.
48433         * lib/lock.h: Likewise.
48434         * lib/strnlen1.c: Likewise.
48435         * lib/strnlen1.h: Likewise.
48436         * lib/tls.c: Likewise.
48437         * lib/tls.h: Likewise.
48438         * lib/tmpdir.c: Likewise.
48439
48440         * lib/TODO: Remove; this belongs only in coreutils.
48441
48442 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
48443
48444         Add copyright notices to long-enough files that lack them, since
48445         otherwise the files aren't clearly free.  Use the same notice that
48446         getdate.texi already uses.
48447         * doc/alloca-opt.texi: Add copyright notice.
48448         * doc/alloca.texi: Likewise.
48449         * doc/ctime.texi: Likewise.
48450         * doc/functions.texi: Likewise.
48451         * doc/gcd.texi: Likewise.
48452         * doc/gnulib-tool.texi: Likewise.
48453         * doc/inet_ntoa.texi: Likewise.
48454         * doc/visibility.texi: Likewise.
48455
48456         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
48457         * doc/quote.texi: Add copyright notice.
48458
48459         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
48460         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
48461         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
48462         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
48463         is now obsolete, and give a pointer to the Sun list.
48464         Add copyright notice.
48465
48466 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
48467
48468         * config/srclistvars.sh: Add copyright notice.
48469
48470 2006-08-14  Eric Blake  <ebb9@byu.net>
48471
48472         Import the following change from libc:
48473
48474         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
48475
48476         Upstream bug 2997.
48477         * lib/misc/error.c: Add space between program name and message if file
48478         name is missing.
48479
48480 2006-08-12  Karl Berry  <karl@gnu.org>
48481
48482         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
48483         remove, these originate in gnulib now.
48484
48485 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48486
48487         * doc/Makefile (standards.info standards.html standards.dvi):
48488         Also depend on make-stds.texi.
48489
48490 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
48491
48492         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
48493         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
48494
48495         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
48496         in wchar_t.  Problem reported by Eric Blake.
48497
48498         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
48499         LEN is smaller than SIZE.  Suggested by Bruno Haible.
48500         Also, help the compiler to keep LEN in a register.
48501
48502 2006-08-11  Eric Blake  <ebb9@byu.net>
48503
48504         * users.txt: Sort.  Add tar.
48505
48506 2006-08-11  Bruno Haible  <bruno@clisp.org>
48507
48508         * users.txt: New file.
48509
48510 2006-08-11  Bruno Haible  <bruno@clisp.org>
48511
48512         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
48513         before <wchar.h>. Needed for OSF/1 and BSD/OS.
48514
48515 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
48516
48517         * modules/snprintf (Depends-on): Remove minmax.
48518         (Maintainer): Add self and Bruno.
48519
48520 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
48521
48522         * lib/.cppi-disable: Add snprintf.h, socket_.h.
48523         * lib/snprintf.c: Include <errno.h> and <limits.h>.
48524         (EOVERFLOW): Define if the system does not.
48525         Do not include "minmax.h"; it wasn't used.
48526         (snprintf): Don't assume size_t promotes to an unsigned type.
48527         Fix bug when generated string was too long for the buffer: the
48528         buffer's contents are supposed to be the initial prefix of the
48529         output.  Don't assume vasnprintf returns EOVERFLOW if the size
48530         exceeds INT_MAX; do the check ourselves.
48531
48532         Import the following changes from libc:
48533
48534         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
48535
48536         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
48537         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
48538         set wc to the byte which couldn't be converted.
48539         (re_string_reconstruct): Don't clear valid_raw_len before calling
48540         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
48541         tip_context using re_string_context_at.
48542
48543         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
48544
48545         * lib/posix/regex.h: g++ still cannot handled [restrict].
48546
48547         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
48548
48549         * lib/posix/regex.h: Remove special handling for VMS.
48550
48551 2006-08-10  Jim Meyering  <jim@meyering.net>
48552
48553         * modules/same-inode: New module.
48554         * modules/dev-ino: New module.
48555         * modules/cycle-check: Depend on these modules, rather than simply
48556         including their .h files.
48557         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
48558         required via m4/cycle-check.m4.
48559         * modules/same: Depend on new same-inode module, rather than
48560         including same-inode.h.
48561         * modules/chdir-safer: New file.
48562
48563         * modules/chown (Depends-on): Add stat-macros.
48564
48565 2006-08-10  Jim Meyering  <jim@meyering.net>
48566
48567         * m4/cycle-check.m4: New file.
48568         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
48569         * m4/dev-ino.m4, m4/same-inode.m4: New files.
48570
48571 2006-08-10  Eric Blake  <ebb9@byu.net>
48572
48573         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
48574         in from original proposal.
48575
48576 2006-08-10  Eric Blake  <ebb9@byu.net>
48577         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
48578
48579         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
48580         namespace.
48581
48582 2006-08-10  Bruno Haible  <bruno@clisp.org>
48583
48584         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
48585         as well.
48586
48587 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
48588
48589         Sync from coreutils.
48590
48591         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
48592
48593         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
48594         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
48595
48596 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
48597
48598         * modules/restrict: Remove; no longer needed now that we assume
48599         Autoconf 2.59 or later.
48600         * MODULES.html.sh: Remove 'restrict'.
48601         * modules/argp (Depends-on): Remove 'restrict'.
48602         * modules/base64 (Depends-on): Likewise.
48603         * modules/gc (Depends-on): Likewise.
48604         * modules/getaddrinfo (Depends-on): Likewise.
48605         * modules/glob (Depends-on): Likewise.
48606         * modules/inet_ntop (Depends-on): Likewise.
48607         * modules/inet_pton (Depends-on): Likewise.
48608         * modules/memxor (Depends-on): Likewise.
48609         * modules/regex (Depends-on): Likewise.
48610         * modules/strtok_r (Depends-on): Likewise.
48611         * modules/time_r (Depends-on): Likewise.
48612
48613 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
48614
48615         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
48616         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
48617         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
48618         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
48619         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
48620         * m4/memxor.m4 (gl_MEMXOR): Likewise.
48621         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
48622         gl_C_RESTRICT replaced by AC_C_RESTRICT.
48623
48624         Merge from coreutils.
48625         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
48626         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
48627         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
48628         * m4/time_r.m4 (gl_TIME_R): Likewise.
48629
48630 2006-08-09  Karl Berry  <karl@gnu.org>
48631
48632         * config/srclist.txt: no more gettext-tools, per Bruno.
48633
48634 2006-08-08  Eric Blake  <ebb9@byu.net>
48635
48636         * modules/verror: New module.
48637         * MODULES.html.sh: Document it.
48638
48639 2006-08-08  Eric Blake  <ebb9@byu.net>
48640
48641         * lib/verror.h, lib/verror.c: New files.
48642
48643 2006-08-08  Eric Blake  <ebb9@byu.net>
48644
48645         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
48646         verror_at_line output complies with GNU Coding Standards even when
48647         file is NULL.
48648
48649 2006-08-07  Bruno Haible  <bruno@clisp.org>
48650
48651         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
48652         versions of AIX.
48653         Reported by Ralf Wildenhues.
48654
48655 2006-08-07  Bruno Haible  <bruno@clisp.org>
48656
48657         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
48658         in an AC_DEFUN. Needed so that the autoconf snippets can use
48659         AC_REQUIRE.
48660
48661 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48662
48663         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48664         Initialize pkgdata_DATA.
48665         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
48666         overriding it.
48667
48668 2006-08-06  Eric Blake  <ebb9@byu.net>
48669
48670         * lib/error.h: Fold in some upstream changes from glibc.
48671         * lib/error.c: Likewise.
48672
48673 2006-08-04  Bruno Haible  <bruno@clisp.org>
48674
48675         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48676         Make the mostlyclean-local rule depend on mostlyclean-generic.
48677         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
48678
48679 2006-07-31  Bruno Haible  <bruno@clisp.org>
48680
48681         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
48682         <stdlib.h>, <string.h>.
48683
48684 2006-07-30  Bruno Haible  <bruno@clisp.org>
48685
48686         * modules/readlink (License): Change to LGPL.
48687
48688 2006-07-30  Bruno Haible  <bruno@clisp.org>
48689
48690         * modules/javaversion (Makefile.am): Distribute javaversion.java and
48691         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
48692         set PKGDATADIR to point to it.
48693
48694 2006-07-30  Bruno Haible  <bruno@clisp.org>
48695
48696         * modules/csharpexec (configure.ac): Comment out macro invocation.
48697         * modules/javaexec (configure.ac): Likewise.
48698         * modules/javacomp-script (configure.ac): Likewise.
48699
48700         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
48701
48702 2006-07-30  Bruno Haible  <bruno@clisp.org>
48703
48704         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
48705         linked-list.
48706
48707 2006-07-30  Bruno Haible  <bruno@clisp.org>
48708
48709         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
48710
48711 2006-07-30  Bruno Haible  <bruno@clisp.org>
48712
48713         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48714         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
48715         get removed.
48716
48717 2006-07-29  Bruno Haible  <bruno@clisp.org>
48718
48719         Make it possible for gnulib-tool to work with locally modified or
48720         augmented gnulib repositories.
48721         * gnulib-tool (func_usage): Document --local-dir option.
48722         (local_gnulib_dir): New variable.
48723         Handle --local-dir option.
48724         (func_lookup_file): New function.
48725         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
48726         (func_get_description, func_get_filelist, func_get_description,
48727         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
48728         func_get_automake_snippet, func_get_include_directive,
48729         func_get_license, func_get_maintainer): Use func_lookup_file.
48730         (func_import, func_create_testdir): Use func_lookup_file.
48731
48732 2006-07-29  Bruno Haible  <bruno@clisp.org>
48733
48734         * modules/setenv (Depends-on): Add unistd.
48735
48736 2006-07-29  Bruno Haible  <bruno@clisp.org>
48737
48738         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
48739
48740 2006-07-29  Bruno Haible  <bruno@clisp.org>
48741
48742         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
48743
48744 2006-07-29  Bruno Haible  <bruno@clisp.org>
48745
48746         * gnulib-tool (import, update): If there is no Makefile.am, look at
48747         aclocal.m4, instead of bailing out.
48748
48749 2006-07-29  Bruno Haible  <bruno@clisp.org>
48750
48751         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
48752         Categorize the options by when they are useful.
48753
48754 2006-07-29  Bruno Haible  <bruno@clisp.org>
48755
48756         * gnulib-tool (func_usage): Document option --no-libtool.
48757         Handle option --no-libtool.
48758         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
48759         for changed semantics of $libtool variable.
48760         (func_import): Likewise. If libtool is not used, show this through
48761         an option --no-libtool.
48762         (func_create_testdir): Update.
48763
48764 2006-07-29  Bruno Haible  <bruno@clisp.org>
48765
48766         * gnulib-tool (func_import): Extend error message about missing
48767         --doc-base.
48768
48769 2006-07-29  Bruno Haible  <bruno@clisp.org>
48770
48771         * gnulib-tool (func_import): Don't create the $docbase directory if
48772         there is no file to store there.
48773
48774 2006-07-29  Bruno Haible  <bruno@clisp.org>
48775
48776         * gnulib-tool (autoconf_minversion): If a --dir option is given and
48777         relevant, look for configure.ac there, not in the current directory.
48778         Also use a simple search for AC_PREREQ, not "autoconf --trace".
48779
48780 2006-07-29  Bruno Haible  <bruno@clisp.org>
48781
48782         * gnulib-tool (SORT): New variable.
48783         (func_usage): Undocument --assume-autoconf option.
48784         Remove --assume-autoconf option handling.
48785         (autoconf_minversion): Determine from the contents of configure.ac.
48786         (func_import): Remove autoconf_minversion handling.
48787         Suggested by Eric Blake.
48788
48789 2006-07-29  Bruno Haible  <bruno@clisp.org>
48790
48791         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
48792
48793 2006-07-29  Bruno Haible  <bruno@clisp.org>
48794
48795         * config/srclist.txt (*setenv.[ch]): Remove rules.
48796
48797 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48798
48799         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
48800
48801 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48802
48803         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
48804         arpa/inet.h.
48805
48806 2006-07-28  Simon Josefsson  <jas@extundo.com>
48807
48808         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
48809         * modules/inet_pton (Depends-on): Likewise.
48810
48811 2006-07-28  Simon Josefsson  <jas@extundo.com>
48812
48813         * m4/netinet_in_h.m4: New file.
48814
48815 2006-07-28  Simon Josefsson  <jas@extundo.com>
48816
48817         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
48818         #include's.
48819
48820 2006-07-28  Simon Josefsson  <jas@extundo.com>
48821
48822         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
48823         #include's.
48824
48825 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
48826
48827         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
48828         setgid on directories only if they set these bits.
48829         * lib/modechange.h: Remove obsolete comment about masks.
48830
48831 2006-07-28  Eric Blake  <ebb9@byu.net>
48832
48833         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
48834         macro expansion.
48835
48836 2006-07-28  Bruno Haible  <bruno@clisp.org>
48837
48838         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
48839
48840 2006-07-28  Bruno Haible  <bruno@clisp.org>
48841
48842         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
48843
48844 2006-07-28  Bruno Haible  <bruno@clisp.org>
48845
48846         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
48847         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
48848         Define fallbacks.
48849         Avoids link error on FreeBSD 4.x.
48850         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
48851
48852         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
48853         encoding.
48854         * lib/mbswidth.c (iswcntrl): Likewise.
48855
48856 2006-07-27  Bruno Haible  <bruno@clisp.org>
48857
48858         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
48859         test.
48860
48861 2006-07-27  Bruno Haible  <bruno@clisp.org>
48862
48863         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
48864         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
48865         defined.
48866
48867 2006-07-26  Eric Blake  <ebb9@byu.net>
48868
48869         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
48870
48871 2006-07-26  Eric Blake  <ebb9@byu.net>
48872
48873         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
48874         like mingw that lack mkstemp.
48875         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
48876         avoid compilation warning on mingw.
48877
48878 2006-07-26  Bruno Haible  <bruno@clisp.org>
48879
48880         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
48881         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
48882         INT_FAST*_MIN, INTPTR_MIN.
48883
48884 2006-07-25  Bruno Haible  <bruno@clisp.org>
48885
48886         * modules/version-etc (Depends-on): Add stdarg.
48887
48888 2006-07-25  Bruno Haible  <bruno@clisp.org>
48889
48890         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
48891         complex commands.
48892
48893 2006-07-25  Bruno Haible  <bruno@clisp.org>
48894
48895         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
48896         defined in <stdarg.h> or config.h.
48897
48898 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
48899
48900         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
48901         (gl_STDIO_SAFER): Remove.
48902
48903 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
48904
48905         * MODULES.html.sh (File stream based Input/Output):
48906         Add fopen-safer, tmpfile-safer; remove stdio-safer.
48907         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
48908         * modules/fopen-safer, modules/tmpfile-safer: New files.
48909         * modules/stdio-safer: Remove.
48910
48911 2006-07-24  Bruno Haible  <bruno@clisp.org>
48912
48913         * modules/tmpdir: New file.
48914         * MODULES.html.sh (File system functions): Add it.
48915
48916 2006-07-24  Bruno Haible  <bruno@clisp.org>
48917
48918         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
48919         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
48920
48921 2006-07-24  Bruno Haible  <bruno@clisp.org>
48922
48923         * modules/clean-temp: New file.
48924
48925 2006-07-24  Bruno Haible  <bruno@clisp.org>
48926
48927         * m4/tmpdir.m4: New file, from GNU gettext.
48928
48929 2006-07-24  Bruno Haible  <bruno@clisp.org>
48930
48931         * lib/tmpdir.h: New file, from GNU gettext.
48932         * lib/tmpdir.c: New file, from GNU gettext.
48933
48934 2006-07-24  Bruno Haible  <bruno@clisp.org>
48935
48936         * lib/clean-temp.h: New file, from GNU gettext.
48937         * lib/clean-temp.c: New file, from GNU gettext.
48938
48939 2006-07-23  Eric Blake  <ebb9@byu.net>
48940
48941         * modules/stdio-safer (Files): Add tmpfile-safer.c.
48942         (Depends-on): Add binary-io.
48943
48944 2006-07-23  Eric Blake  <ebb9@byu.net>
48945
48946         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
48947
48948 2006-07-23  Eric Blake  <ebb9@byu.net>
48949
48950         * lib/tmpfile-safer.c: New file.
48951         * lib/stdio-safer.h (fopen_safer): Add prototype.
48952         * lib/stdio--.h (tmpfile): Make safer.
48953
48954 2006-07-23  Bruno Haible  <bruno@clisp.org>
48955
48956         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
48957         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
48958         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
48959         gl_linked_remove_at): Use it.
48960
48961 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48962         and Simon Josefsson <jas@extundo.com>
48963
48964         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
48965
48966         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
48967
48968 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
48969
48970         * modules/close-stream: New file.
48971         * modules/closeout (Description): Make it clear that it exits
48972         with a diagnostic on error.
48973         (Depends-on): Add close-stream.  Remove fpending, stdbool.
48974         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
48975
48976 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
48977
48978         * m4/close-stream.m4: New file.
48979
48980 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
48981
48982         * lib/close-stream.c, lib/close-stream.h: New files.
48983
48984 2006-07-22  Bruno Haible  <bruno@clisp.org>
48985
48986         Merge from GNU gettext 0.15.
48987
48988         2006-05-01  Bruno Haible  <bruno@clisp.org>
48989
48990                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
48991
48992         2006-07-22  Bruno Haible  <bruno@clisp.org>
48993
48994                 * modules/javaversion: New file.
48995                 * MODULES.html.sh (Java): Add javaversion.
48996
48997         2006-03-12  Bruno Haible  <bruno@clisp.org>
48998
48999                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
49000
49001         2005-12-04  Bruno Haible  <bruno@clisp.org>
49002
49003                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
49004                 (untested).
49005
49006         2006-06-21  Bruno Haible  <bruno@clisp.org>
49007
49008                 Avoid warnings from recent versions of mcs.
49009                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
49010                 -o, -L, -r any more. Use options documented since mcs-1.0
49011                 instead. Similarly for -g.
49012
49013         2005-12-04  Bruno Haible  <bruno@clisp.org>
49014
49015                 * build-aux/csharpcomp.sh.in: Suffix for resources is
49016                 .resources, not .resource.
49017
49018         2005-07-09  Bruno Haible  <bruno@clisp.org>
49019
49020                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
49021                 add a .dll suffix.
49022                 Reported by Mark Junker <mjscod@gmx.de>.
49023
49024         2006-07-22  Bruno Haible  <bruno@clisp.org>
49025
49026                 * modules/gettext: Upgrade to gettext-0.15.
49027                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
49028                 m4/visibility.m4.
49029                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
49030
49031 2006-07-22  Bruno Haible  <bruno@clisp.org>
49032
49033         Merge from GNU gettext 0.15.
49034
49035         2006-03-25  Bruno Haible  <bruno@clisp.org>
49036
49037                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
49038
49039         2006-07-21  Bruno Haible  <bruno@clisp.org>
49040
49041                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
49042                 "1.1".
49043
49044         2006-05-09  Bruno Haible  <bruno@clisp.org>
49045
49046                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
49047                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
49048                 for the conftestver execution.
49049
49050         2006-05-01  Bruno Haible  <bruno@clisp.org>
49051
49052                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
49053                 optional target-version argument. Verify that the compiler
49054                 groks source of the specified source-version, or add -source
49055                 option as necessary. Verify that the compiler produces
49056                 bytecode in the specified target-version, or add -target and
49057                 -source options as necessary. Make the result of the test
49058                 available as variable CONF_JAVAC. Also log error output in
49059                 config.log.
49060
49061         2006-03-11  Bruno Haible  <bruno@clisp.org>
49062
49063                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
49064
49065         2006-05-09  Bruno Haible  <bruno@clisp.org>
49066
49067                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
49068                 CLASSPATH_SEPARATOR to a semicolon.
49069
49070         2006-03-12  Bruno Haible  <bruno@clisp.org>
49071
49072                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
49073                 available as variable CONF_JAVA, for subsequent autoconf
49074                 tests. Also log error output in config.log.
49075
49076         2006-07-19  Bruno Haible  <bruno@clisp.org>
49077
49078                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
49079                 that getline works on glibc2 systems. Needed to avoid trouble
49080                 in relocatable.c.
49081                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
49082
49083         2005-12-04  Bruno Haible  <bruno@clisp.org>
49084
49085                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
49086                 launcher (untested).
49087
49088         2005-12-04  Bruno Haible  <bruno@clisp.org>
49089
49090                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
49091
49092         2006-07-22  Bruno Haible  <bruno@clisp.org>
49093
49094                 * gettext.m4: Update from GNU gettext-0.15.
49095                 * nls.m4: Likewise.
49096                 * po.m4: Likewise.
49097                 * inttypes-pri.m4: Likewise.
49098                 * inttypes-h.m4: Renamed from inttypes.m4.
49099                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
49100
49101 2006-07-22  Bruno Haible  <bruno@clisp.org>
49102
49103         Merge from GNU gettext 0.15.
49104
49105         2005-07-05  Bruno Haible  <bruno@clisp.org>
49106
49107                 * printf-args.c (printf_fetchargs): Work around broken
49108                 definition of wint_t on mingw.
49109
49110         2005-02-12  Bruno Haible  <bruno@clisp.org>
49111
49112                 * xallocsa.h: Add extern "C" for C++.
49113
49114         2006-05-17  Bruno Haible  <bruno@clisp.org>
49115
49116                 Cygwin portability.
49117                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
49118
49119         2006-04-30  Bruno Haible  <bruno@clisp.org>
49120
49121                 * progreloc.c: Include <mach-o/dyld.h> if available.
49122                 (find_executable): Use _NSGetExecutablePath when possible.
49123
49124         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
49125
49126                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
49127                 function.
49128
49129         2005-12-29  Bruno Haible  <bruno@clisp.org>
49130
49131                 * progreloc.c (set_program_name_and_installdir): Fix
49132                 compilation error.
49133
49134         2005-12-04  Bruno Haible  <bruno@clisp.org>
49135
49136                 Cygwin portability.
49137                 * progreloc.c: Include <windows.h> also on Cygwin.
49138                 (find_executable): Add support for Cygwin.
49139                 (set_program_name_and_installdir): Handle also platforms with
49140                 nonempty EXEEXT.
49141
49142         2006-07-11  Bruno Haible  <bruno@clisp.org>
49143
49144                 * javacomp.c: Fix a comment.
49145                 Reported by Jim Meyering.
49146
49147         2006-04-30  Bruno Haible  <bruno@clisp.org>
49148
49149                 * javacomp.h (compile_java_class): Add source_version,
49150                 target_version arguments.
49151                 * javacomp.c: Rewritten to choose only a compiler that
49152                 respects the specified source_version and target_version.
49153
49154         2006-06-27  Bruno Haible  <bruno@clisp.org>
49155
49156                 Assume correct S_ISDIR macro.
49157                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
49158
49159         2006-07-22  Bruno Haible  <bruno@clisp.org>
49160
49161                 * javaversion.h: New file, from GNU gettext.
49162                 * javaversion.c: New file, from GNU gettext.
49163                 * javaversion.java: New file, from GNU gettext.
49164                 * javaversion.class: New file, from GNU gettext.
49165
49166         2006-05-17  Bruno Haible  <bruno@clisp.org>
49167
49168                 Cygwin portability.
49169                 * javaexec.c (execute_java_class): Test for jview program
49170                 also on Cygwin.
49171
49172         2006-04-09  Bruno Haible  <bruno@clisp.org>
49173
49174                 * fatal-signal.c: Don't include string.h.
49175                 (at_fatal_signal): Use a copying loop instead of memcpy.
49176
49177         2005-12-04  Bruno Haible  <bruno@clisp.org>
49178
49179                 * csharpexec.c: Add support for 'clix' launcher (untested).
49180                 (execute_csharp_using_sscli): New function.
49181                 (execute_csharp_program): Call it.
49182
49183         2006-06-21  Bruno Haible  <bruno@clisp.org>
49184
49185                 Avoid warnings from recent versions of mcs.
49186                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
49187                 -o, -L, -r any more. Use options documented since mcs-1.0
49188                 instead. Similarly for -g.
49189
49190         2005-07-09  Bruno Haible  <bruno@clisp.org>
49191
49192                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
49193                 add a .dll suffix.
49194                 Reported by Mark Junker <mjscod@gmx.de>.
49195
49196         2006-06-17  Bruno Haible  <bruno@clisp.org>
49197
49198                 * config.charset: Update for NetBSD 3.0.
49199
49200         2006-05-17  Bruno Haible  <bruno@clisp.org>
49201
49202                 Cygwin portability.
49203                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
49204
49205         2006-05-16  Bruno Haible  <bruno@clisp.org>
49206
49207                 * localcharset.c [CYGWIN]: Include <windows.h>.
49208                 (get_charset_aliases): For Cygwin, return the same CPxxx
49209                 aliases list as under WIN32.
49210                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
49211                 the environment variables. Fall back to GetACP().
49212
49213         2006-04-05  Bruno Haible  <bruno@clisp.org>
49214
49215                 * config.charset: Update Juan Manuel Guerrero's address.
49216
49217         2005-02-12  Bruno Haible  <bruno@clisp.org>
49218
49219                 * allocsa.h: Add extern "C" for C++.
49220
49221         2005-02-10  Bruno Haible  <bruno@clisp.org>
49222
49223                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
49224                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
49225
49226         2006-07-22  Bruno Haible  <bruno@clisp.org>
49227
49228                 * gettext.h: Update to GNU gettext-0.15.
49229
49230 2006-07-22  Bruno Haible  <bruno@clisp.org>
49231
49232         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
49233         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
49234         lib-prefix.m4, longdouble.m4, ssize_t.m4.
49235
49236 2006-07-21  Eric Blake  <ebb9@byu.net>
49237
49238         * modules/stdlib-safer: New file.
49239         * MODULES.html.sh (File stream based Input/Output): Add
49240         stdlib-safer.
49241
49242 2006-07-21  Eric Blake  <ebb9@byu.net>
49243
49244         * lib/stdlib-safer.h: New file from coreutils, required by
49245         stdlib--.h.
49246
49247 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
49248
49249         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
49250
49251 2006-07-20  Bruno Haible  <bruno@clisp.org>
49252
49253         * gnulib-tool: Recognize new option --assume-autoconf.
49254         (autoconf_minversion): New variable.
49255         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
49256
49257 2006-07-20  Bruno Haible  <bruno@clisp.org>
49258
49259         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
49260
49261 2006-07-19  Derek R. Price  <derek@ximbiot.com>
49262
49263         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
49264         Reindent and repaginate.
49265
49266 2006-07-19  Derek Price  <derek@ximbiot.com>
49267
49268         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
49269         Correct grammar.
49270
49271 2006-07-17  Bruno Haible  <bruno@clisp.org>
49272
49273         * modules/list: New file.
49274         * modules/array-list: New file.
49275         * modules/carray-list, modules/carray-list-tests: New files.
49276         * modules/linked-list, modules/linked-list-tests: New files.
49277         * modules/avltree-list, modules/avltree-list-tests: New files.
49278         * modules/rbtree-list, modules/rbtree-list-tests: New files.
49279         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
49280         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
49281         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
49282         * modules/oset: New file.
49283         * modules/array-oset: New file.
49284         * modules/avltree-oset, modules/avltree-oset-tests: New files.
49285         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
49286         * tests/test-carray_list.c: New file.
49287         * tests/test-linked_list.c: New file.
49288         * tests/test-avltree_list.c: New file.
49289         * tests/test-rbtree_list.c: New file.
49290         * tests/test-linkedhash_list.c: New file.
49291         * tests/test-avltreehash_list.c: New file.
49292         * tests/test-rbtreehash_list.c: New file.
49293         * tests/test-avltree_oset.c: New file.
49294         * tests/test-rbtree_oset.c: New file.
49295         * MODULES.html.sh (Container data structures): New section.
49296
49297 2006-07-17  Bruno Haible  <bruno@clisp.org>
49298
49299         * m4/gl_list.m4: New file.
49300
49301 2006-07-17  Bruno Haible  <bruno@clisp.org>
49302
49303         * lib/gl_list.h: New file.
49304         * lib/gl_list.c: New file.
49305         * lib/gl_array_list.h: New file.
49306         * lib/gl_array_list.c: New file.
49307         * lib/gl_carray_list.h: New file.
49308         * lib/gl_carray_list.c: New file.
49309         * lib/gl_linked_list.h: New file.
49310         * lib/gl_linked_list.c: New file.
49311         * lib/gl_anylinked_list1.h: New file.
49312         * lib/gl_anylinked_list2.h: New file.
49313         * lib/gl_avltree_list.h: New file.
49314         * lib/gl_avltree_list.c: New file.
49315         * lib/gl_anyavltree_list1.h: New file.
49316         * lib/gl_anyavltree_list2.h: New file.
49317         * lib/gl_rbtree_list.h: New file.
49318         * lib/gl_rbtree_list.c: New file.
49319         * lib/gl_anyrbtree_list1.h: New file.
49320         * lib/gl_anyrbtree_list2.h: New file.
49321         * lib/gl_anytree_list1.h: New file.
49322         * lib/gl_anytree_list2.h: New file.
49323         * lib/gl_linkedhash_list.h: New file.
49324         * lib/gl_linkedhash_list.c: New file.
49325         * lib/gl_anyhash_list1.h: New file.
49326         * lib/gl_anyhash_list2.h: New file.
49327         * lib/gl_avltreehash_list.h: New file.
49328         * lib/gl_avltreehash_list.c: New file.
49329         * lib/gl_rbtreehash_list.h: New file.
49330         * lib/gl_rbtreehash_list.c: New file.
49331         * lib/gl_anytreehash_list1.h: New file.
49332         * lib/gl_anytreehash_list2.h: New file.
49333
49334         * lib/gl_oset.h: New file.
49335         * lib/gl_oset.c: New file.
49336         * lib/gl_array_oset.h: New file.
49337         * lib/gl_array_oset.c: New file.
49338         * lib/gl_avltree_oset.h: New file.
49339         * lib/gl_avltree_oset.c: New file.
49340         * lib/gl_rbtree_oset.h: New file.
49341         * lib/gl_rbtree_oset.c: New file.
49342         * lib/gl_anytree_oset.h: New file.
49343
49344 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
49345
49346         * m4/mkancesdirs.m4: New file.
49347         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
49348         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
49349         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
49350         it.
49351
49352 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
49353
49354         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
49355         * lib/mkancesdirs.h: New files.
49356         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
49357         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
49358         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
49359         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
49360         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
49361         callers changed.  Revamp internals significantly, by not
49362         attempting to create directories that are temporarily more
49363         permissive than the final results.  Do not attempt to use
49364         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
49365         This removes some race conditions, fixes some bugs, and simplifies
49366         things.  Use new dirchownmod function to do owner and mode changes.
49367         * lib/mkdir-p.h: Likewise.
49368         * lib/modechange.c (octal_to_mode): New function.
49369         (struct mode_change): New member mentioned.
49370         (make_node_op_equals): New arg mentioned.  All callers changed.
49371         (mode_compile): Keep track of which mode bits the user has explicitly
49372         mentioned.
49373         (mode_adjust): New arg DIR, so that we implement the X op correctly.
49374         New arg PMODE_BITS, to keep track of which mode bits the user
49375         mentioned; it treats S_ISUID and S_ISGID speciall.
49376         All callers changed.
49377         * lib/modechange.h: Likewise.
49378
49379 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
49380
49381         * MODULES.html.sh: Add mkancestors.
49382         * modules/mkancesdirs: New module.
49383         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
49384         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
49385         The chdir-safer and afs files are now orphans; I'll remove them
49386         unless someone speaks up.
49387         Add lib/dirchownmod.c, lib/dirchownmod.h.
49388         (Depends-on): Remove alloca, chown, save-cwd, dirname.
49389         Add lchown, mkancesdirs.
49390         (Maintainer): Add self.
49391
49392 2006-07-15  Karl Berry  <karl@gnu.org>
49393
49394         * gnulib-tool: help message wording/arrangement.
49395
49396 2006-07-14  Simon Josefsson  <jas@extundo.com>
49397
49398         * doc/gnulib.texi (Libtool and Windows): New section.
49399
49400 2006-07-12  Simon Josefsson  <jas@extundo.com>
49401
49402         * modules/gendocs (License): Fix license, approved by Karl.
49403
49404 2006-07-12  Eric Blake  <ebb9@byu.net>
49405
49406         * MODULES.html.sh: Add gendocs.
49407
49408 2006-07-11  Eric Blake  <ebb9@byu.net>
49409
49410         * modules/fdl: New module, to install doc/fdl.texi.
49411         * MODULES.html.sh: Add new section for documentation modules.
49412         * gnulib-tool: Avoid space-tab.
49413         (--doc-base): New option, to manage files from doc.
49414
49415 2006-07-11  Eric Blake  <ebb9@byu.net>
49416
49417         * m4/absolute-header.m4: Fix comments to match recent change.
49418
49419 2006-07-11  Eric Blake  <ebb9@byu.net>
49420
49421         * gnulib-tool: List --doc-base before --tests-base.
49422
49423 2006-07-11  Derek R. Price  <derek@ximbiot.com>
49424
49425         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
49426
49427 2006-07-11  Bruno Haible  <bruno@clisp.org>
49428
49429         * README: Mention where to put documentation.
49430
49431 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49432
49433         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
49434
49435 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
49436
49437         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
49438         to stdint.m4.
49439
49440 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
49441
49442         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
49443         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
49444         "no/such/file/stdint.h" when there is no such file, so that
49445         the resulting C code can be parsed by dodgy compilers.
49446         Problems reported by Bob Proulx.
49447
49448 2006-07-10  Derek R. Price  <derek@ximbiot.com>
49449
49450         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
49451         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
49452         macros into the GNU _D_EXACT_NAMLEN.
49453         * lib/savedir.c:  Likewise.
49454         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
49455
49456 2006-07-10  Derek R. Price  <derek@ximbiot.com>
49457         and Paul Eggert  <eggert@cs.ucla.edu>
49458
49459         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
49460         * m4/savedir.m4:
49461         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
49462         macros into the GNU _D_EXACT_NAMLEN.
49463
49464 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
49465
49466         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
49467         around the absolute name, to work around a problem with the HP-UX
49468         11.23 native C compiler, reported by Bob Proulx.
49469
49470 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
49471
49472         * doc/maintain.texi, make-stds.texi: Sync from
49473         <http://savannah.gnu.org/projects/gnustandards>.
49474
49475 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
49476
49477         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
49478
49479 2006-07-09  Jim Meyering  <jim@meyering.net>
49480
49481         * m4/glob.m4: Remove a doubled word in a comment.
49482
49483 2006-07-09  Jim Meyering  <jim@meyering.net>
49484
49485         * lib/argp-pv.c: Remove a doubled word in a comment.
49486         * lib/check-version.c (check_version): Likewise.
49487         * lib/javacomp.c (compile_java_class): Likewise.
49488
49489 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
49490
49491         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
49492         for the benefit of people using Autoconf 2.60.  If you want to
49493         support older Autoconf versions you can copy m4/onceonly_2_57.m4
49494         (or m4/onceonly.m4, if pre-2.57) manually.
49495
49496 2006-07-08  Jim Meyering  <jim@meyering.net>
49497
49498         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
49499         comment.
49500         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
49501         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
49502         comment.
49503
49504 2006-07-08  Jim Meyering  <jim@meyering.net>
49505
49506         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
49507
49508 2006-07-07  Simon Josefsson  <jas@extundo.com>
49509
49510         * tests/test-crc.c: Change expected crc value, the test vector
49511         were probably computed using the old broken crc.c?
49512
49513 2006-07-06  Simon Josefsson  <jas@extundo.com>
49514
49515         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
49516         now the canonical place for the M4 file).
49517
49518         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
49519         from the sys_socket dependency now.
49520
49521         * modules/inet_pton (Files): Ditto.
49522
49523         * modules/inet_ntop (Files): Ditto.
49524
49525 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
49526
49527         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
49528         not gl_PREREQ_GETUSERSHELL.
49529
49530 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49531
49532         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
49533         with only one argument, for Autoconf 2.60.
49534         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
49535         expand to nothing, so add a shell command to avoid syntax error.
49536         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
49537
49538 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49539
49540         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
49541
49542 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
49543
49544         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
49545         no longer needed.  Check for isblank decl.
49546         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
49547         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
49548         of existence.
49549
49550 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
49551
49552         * lib/getloadavg.c: Use __VMS, not VMS.
49553         * lib/getopt.c: Likewise.
49554         * lib/getpagesize.h: Likewise.
49555         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
49556         and probably does not work.
49557
49558 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
49559
49560         * lib/.cppi-disable: Add wcwidth.
49561         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
49562         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
49563         (ISGRAPH): Remove.  All uses changed to isgraph.
49564         (FOLD) [!defined _LIBC]: Remove special case.
49565         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
49566         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
49567         HAVE_ISBLANK.
49568         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
49569         case.
49570
49571 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
49572
49573         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
49574         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
49575         brackets.  Other minor changes to suppress some compiler
49576         warnings.
49577
49578 2006-07-06  Derek R. Price  <derek@ximbiot.com>
49579         and Paul Eggert  <eggert@cs.ucla.edu>
49580
49581         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
49582         of invoking obsolescent AC_HEADER_DIRENT macro.
49583         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
49584         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
49585         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
49586         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
49587         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
49588         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
49589         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
49590         * m4/readdir.m4: Remove; no longer needed.
49591
49592 2006-07-06  Derek R. Price  <derek@ximbiot.com>
49593         and Paul Eggert  <eggert@cs.ucla.edu>
49594
49595         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
49596         Don't worry about this obsolete case any more.
49597         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
49598         directories.
49599         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
49600         worry about this obsolete case any more.
49601         * lib/fts.c: Likewise.
49602         * lib/getcwd.c: Likewise.
49603         * lib/glob.h: Likewise.
49604         * lib/savedir.c: Likewise.
49605
49606 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
49607
49608         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
49609         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
49610         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
49611         needed.
49612         All uses removed.
49613         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
49614         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
49615         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
49616         needed.
49617         * m4/getdate.m4 (gl_GETDATE): Likewise.
49618         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
49619         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
49620         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
49621         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
49622         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
49623         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
49624         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
49625         needed.
49626
49627 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
49628
49629         * lib/memcasecmp.c: Include <limits.h>.
49630         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
49631         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
49632         Don't assume isdigit succeeds only on '0' through '9'.
49633
49634 2006-07-05  Eric Blake  <ebb9@byu.net>
49635
49636         * modules/getaddrinfo (Depends-on): Add snprintf.
49637
49638 2006-07-05  Eric Blake  <ebb9@byu.net>
49639
49640         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
49641         to avoid 'header present but could not be compiled' on cygwin.
49642
49643 2006-07-05  Eric Blake  <ebb9@byu.net>
49644
49645         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
49646         missing from netdb.h.
49647         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
49648
49649 2006-07-05  Derek R. Price  <derek@ximbiot.com>
49650
49651         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
49652         no longer needed.
49653         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
49654         * m4/getdate.m4 (gl_GETDATE): Likewise.
49655         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
49656         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
49657         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
49658         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
49659         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
49660
49661 2006-07-05  Derek R. Price  <derek@ximbiot.com>
49662
49663         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
49664         All uses of is_space replaced by isspace.
49665         * lib/exit.h: Don't talk about STDC_HEADERS.
49666         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
49667         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
49668         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
49669         replaced by isprint etc.
49670         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
49671         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
49672         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
49673         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
49674         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
49675         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
49676
49677 2006-07-05  Bruno Haible  <bruno@clisp.org>
49678
49679         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
49680         the function exists, before testing against AIX.
49681         Reported by Martin Lambers <marlam@marlam.de>.
49682
49683 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
49684
49685         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
49686         From Mark D. Baushke.
49687
49688 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
49689
49690         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
49691         to the absolute name, not just one, to bypass Sun C 5.8's
49692         "warning: #include of /usr/include/... may be non-portable".
49693
49694 2006-07-04  Eric Blake  <ebb9@byu.net>
49695
49696         * modules/dirname-tests: New test module.
49697         * tests/test-dirname.c: New file, replacing dirname.c
49698         TEST_DIRNAME section that was recently deleted.
49699
49700 2006-07-04  Bruno Haible  <bruno@clisp.org>
49701
49702         Assume ANSI C header files and <ctype.h> functions.
49703         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
49704         (mbsnwidth): Use isprint, iscntrl instead.
49705
49706 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
49707
49708         Merge from coreutils.
49709         * MODULES.html.sh: Add xstrtold.
49710         * modules/xstrtold: New file.
49711         * modules/cycle-check (Files): Add lib/same-inode.h.
49712         * modules/dirname (Files): Add m4/double-slash-root.m4.
49713         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
49714         * modules/mkdir-p (Files): Add lib/same-inode.h.
49715         * modules/same (Files): Add lib/same-inode.h.
49716
49717 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
49718
49719         * m4/absolute-header.m4: Renamed from full-header-path.m4.
49720         This is to keep the terminology clean; POSIX talks about
49721         "absolute pathnames", not "full pathnames", but the GNU
49722         Coding Standards say to use "path" for something else;
49723         so use "absolute" to keep both sides happy.
49724         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
49725         Set gl_absolute_header, not gl_full_header_path.
49726         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
49727         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
49728         All uses changed.
49729
49730         Merge from coreutils.
49731
49732         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
49733
49734         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
49735         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
49736         want to require the building of c-strtod.o.
49737         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
49738         needs -lm directly.
49739         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
49740
49741         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
49742
49743         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
49744         --as-needed option if available.  Problem reported by Albert Chin in
49745         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
49746         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
49747         cc merely issues a bunch of annoying warnings for --as-needed
49748         (this problem was reported by Bob Proulx).  Also, try linking with
49749         -lm to detect a bug in binutils 2.16 (this problem was reported
49750         by Ralf Wildenhues).
49751
49752         2006-06-18  Jim Meyering  <jim@meyering.net>
49753
49754         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
49755         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
49756         macro.
49757         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
49758         also check for glibc-2.4's abort-inducing bug.
49759
49760         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
49761         Low-probability clean-up should be to use rmdir to get rid of
49762         the just-created directory, not unlink.
49763
49764         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
49765         configure fail, and request a bug report to inform us about it.
49766         Add a comment that, barring reports to the contrary, in 2007 we'll
49767         assume ftruncate is universally available.
49768
49769         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
49770
49771         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
49772
49773         2006-03-12  Jim Meyering  <jim@meyering.net>
49774
49775         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
49776         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
49777         * m4/same.m4 (gl_SAME): Likewise.
49778         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
49779
49780         2006-03-11  Eric Blake  <ebb9@byu.net>
49781
49782         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
49783         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
49784         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
49785         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
49786
49787 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
49788
49789         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
49790         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
49791         reported by Mark D. Baushke, one in
49792         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
49793
49794         Merge from coreutils.
49795
49796         * lib/.cppi-disable: Add stdint_.h.
49797         * lib/.cvsignore: Add stdint.h.
49798
49799         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
49800
49801         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
49802         both double and long double versions.
49803         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
49804         * lib/xstrtold.c: New file.
49805         * lib/xstrtod.h (xstrtold): New decl.
49806
49807         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
49808
49809         * lib/filemode.c (setst): Remove.
49810         (strmode): Rewrite to avoid setst.  This makes the code shorter,
49811         (arguably) clearer, and the generated code is a bit smaller on my
49812         Debian GNU/Linux stable x86 host.
49813
49814         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
49815
49816         * lib/filemode.c: Include "filemode.h" first, to test the interface.
49817         Assume that filemode.h includes sys/types.h and sys/stat.h.
49818         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
49819         (ftypelet): Reorder to put common cases first, for efficiency.
49820         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
49821         to do 'M'.
49822         (strmode): Renamed from mode_string, and now stores 12 bytes instead
49823         of 10, for compatibility with FreeBSD.  All callers changed.
49824         (filemodestring): Now stores 12 bytes instead of 10, and sets file
49825         types that can't be deduced solely from st_mode.  First arg is now a
49826         const pointer.
49827         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
49828         (strmode): Renamed from mode_string.
49829         (filemodestring): New decl.
49830         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
49831         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
49832         needed.
49833         (S_ISPORT, S_ISWHT): New macros, if not already defined.
49834
49835         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
49836
49837         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
49838         fsusage.h now does that.  Include fsusage.h first, to test interface.
49839         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
49840         at most one method (the old code could have generated decls that
49841         didn't conform to C89, not that this was ever exercised).
49842         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
49843
49844         2006-03-19  Jim Meyering  <jim@meyering.net>
49845
49846         Work even in a chroot where d_ino values for entries in "/"
49847         don't match the stat.st_ino values for the same names.
49848         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
49849         number, iterate through all entries again, using lstat instead.
49850         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
49851         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
49852
49853         * lib/getcwd.c (__getcwd): Clarify a comment.
49854         Use memcpy in place of a call to strcpy.
49855
49856         2006-03-12  Jim Meyering  <jim@meyering.net>
49857
49858         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
49859         matches that of the current directory (which we're about to chdir ".."
49860         out of), then save the dev-ino of the parent, instead.
49861
49862         * lib/same-inode.h (SAME_INODE): New file/macro.
49863         * lib/chdir-safer.c (SAME_INODE): Remove definition.
49864         Include "same-inode.h", instead.
49865         * lib/same.c: Likewise.
49866         * lib/cycle-check.h: Include "same-inode.h".
49867         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
49868         * lib/cycle-check.c (SAME_INODE): Remove definition.
49869         * lib/root-dev-ino.h: Include "same-inode.h".
49870
49871         2006-03-11  Eric Blake  <ebb9@byu.net>
49872
49873         * lib/same.c (same_name): s/base_name/last_component/
49874         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
49875         * lib/filenamecat.c (file_name_concat): Likewise.
49876
49877         2006-03-11  Eric Blake  <ebb9@byu.net>,
49878                     Paul Eggert  <eggert@cs.ucla.edu>
49879
49880         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
49881         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
49882         drive prefix.
49883         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
49884         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
49885         (last_component): New method.
49886         * lib/dirname.c (dir_len): Determine when drive letters need a
49887         subsequent slash.  Preserve // when it is special.
49888         (dir_name): Don't append dot when drive letter is absolute.
49889         [TEST_DIRNAME]: Move into a full-blown gnulib test.
49890         * lib/basename.c (base_name): New semantics - malloc the result.
49891         Preserve // when it is special.  Preserve relative files that look
49892         like drive letters.
49893         (base_len): Preserve // when it is special.
49894         (last_component): New method, similar to old base_name semantics.
49895         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
49896         base_name.  Strip redundant slashes from ///.
49897
49898 2006-07-03  Jim Meyering  <jim@meyering.net>
49899
49900         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
49901         macro is used before the first cycle_check call.
49902
49903 2006-07-03  Eric Blake  <ebb9@byu.net>
49904
49905         * modules/dirname (Depends-on): Add xstrndup.
49906
49907 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
49908
49909         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
49910         test cases, so that config.log is a bit easier to follow.
49911
49912 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
49913
49914         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
49915         both are 64 bits, since this seems to be the tradition, and this
49916         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
49917         we ever run into a host that prefers long long to long in this
49918         case, we'll need another configure-time test.  Problem reported by
49919         Jim Meyering.
49920
49921 2006-07-02  Eric Blake  <ebb9@byu.net>
49922
49923         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
49924
49925 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
49926
49927         * modules/inttypes (Depends-on): No longer depends on stdint.
49928         * modules/stdint (Description): Say more about assumptions.
49929         Say that the fast types might differ.  Say macros are used.
49930         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
49931         (Makefile.am): Revise list of substituted symbols to match
49932         new stdint.m4.
49933         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
49934         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
49935         * tests/test-stdint.c (verify_same_types)
49936         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
49937         the code conforms to C99/C89.
49938         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
49939         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
49940
49941 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
49942
49943         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
49944         but fix a bug, by requiring at least 64 bits.
49945         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
49946         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
49947         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
49948         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
49949
49950         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
49951         changes.  Make 2.59 a prerequisite.  Check and substitute for
49952         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
49953         inttypes.h.  Do not use special include files; just use the
49954         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
49955         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
49956         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
49957         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
49958         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
49959         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
49960         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
49961         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
49962         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
49963         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
49964         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
49965         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
49966         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
49967         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
49968         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
49969         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
49970         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
49971         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
49972         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
49973         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
49974         WINT_MAX.  Check for C99 conformance more strictly, by detecting
49975         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
49976         not check for things that C99 does not require, e.g., int8_t.  If
49977         a test isn't needed unless <stdint.h> isn't working, and is
49978         unlikely to be needed for any other reason, then don't do it
49979         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
49980         size_t, since we assume C89 freestanding at least.  Do not check
49981         for sig_atomic_t, wchar_t, or wint_t, since the code now does
49982         the right thing even if the types are not defined.  Instead use:
49983         (gl_STDINT_TYPE_PROPERTIES): New macro.
49984         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
49985         testing whether <sys/types.h> clashes, as Autoconf does this for
49986         us now.  All uses removed.
49987         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
49988         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
49989         (gl_CHECK_TYPE_SAME):
49990         Remove; no longer needed.
49991         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
49992         exists, since we'll return 0 anyway in that case.
49993         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
49994
49995 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
49996
49997         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
49998         possible collision with system files.
49999         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
50000         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
50001         WCHAR_MIN and WCHAR_MAX in this case.
50002         (<stddef.h>): Do not include; no longer needed.
50003         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
50004         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
50005         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
50006         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
50007         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
50008         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
50009         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
50010         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
50011         !defined(__c99))]: Include in this case too, since it's harmless
50012         now.
50013         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
50014         dangerous to do so.
50015         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
50016         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
50017         (_STDINT_MIN, _STDINT_MAX): New macros.
50018         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
50019         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
50020         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
50021         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
50022         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
50023         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
50024         macros, not typedefs; this simplifies things quite a bit.
50025         Use long int for all types narrower than int64_t.
50026         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
50027         Define in terms of long long int or int64_t or long int,
50028         not int64_t or int32_t.  This saves some compile-time testing.
50029         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
50030         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
50031         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
50032         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
50033         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
50034         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
50035         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
50036         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
50037         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
50038         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
50039         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
50040         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
50041         undef any previous version and define our own version, for
50042         simplicity and consistency with the new macros for types.
50043         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
50044         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
50045         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
50046         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
50047         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
50048         @WINT_T_SUFFIX@ to keep things simple here.
50049         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
50050         Simplify by assuming typical 8/16/32/64 host, since we're
50051         already doing that elsewhere anyway.
50052         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
50053         and assume long long int is 64 bits if available.  This
50054         speeds up 'configure'.
50055
50056 2006-07-01  Eric Blake  <ebb9@byu.net>
50057
50058         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
50059         Reported by Andreas Buening.
50060
50061 2006-07-01  Eric Blake  <ebb9@byu.net>
50062
50063         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
50064
50065 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
50066
50067         * lib/getaddrinfo.c: fixed typo
50068
50069 2006-06-29  Jim Meyering  <jim@meyering.net>
50070
50071         * modules/strftime (Maintainer): Add my name, since with the
50072         FPRINTFTIME changes strftime.c has forked from glibc.
50073
50074 2006-06-29  Eric Blake  <ebb9@byu.net>
50075
50076         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
50077
50078 2006-06-29  Eric Blake  <ebb9@byu.net>
50079
50080         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
50081
50082 2006-06-29  Eric Blake  <ebb9@byu.net>
50083
50084         * lib/stat_.h: New file.
50085
50086 2006-06-29  Eric Blake  <ebb9@byu.net>
50087
50088         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
50089         unused static function.
50090
50091 2006-06-29  Eric Blake  <ebb9@byu.net>
50092
50093         * doc/functions.texi (Function Portability): Document missing lstat
50094         on mingw.
50095
50096 2006-06-29  Eric Blake  <ebb9@byu.net>
50097
50098         * MODULES.html.sh: Add sys_stat.
50099         * modules/sys_stat: New module.
50100         * modules/mkstemp (Depends-on): Add sys_stat.
50101
50102 2006-06-29  Derek R. Price  <derek@ximbiot.com>
50103
50104         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
50105
50106 2006-06-29  Derek R. Price  <derek@ximbiot.com>
50107
50108         * m4/c-bs-a.m4: Removed.
50109
50110 2006-06-29  Derek R. Price  <derek@ximbiot.com>
50111
50112         * lib/strftime.c: Assume strftime() exists.
50113
50114 2006-06-29  Derek Price  <derek@ximbiot.com>
50115
50116         * modules/c-bs-a: Removed - \a is C89.
50117         * MODULES.html.sh: Remove c-bs-a.
50118
50119 2006-06-29  Bruno Haible  <bruno@clisp.org>
50120
50121         * modules/wcwidth (License): Change to LGPL.
50122
50123 2006-06-28  Simon Josefsson  <jas@extundo.com>
50124
50125         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
50126         on _WIN32.
50127
50128         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
50129         getnameinfo.
50130
50131 2006-06-28  Simon Josefsson  <jas@extundo.com>
50132
50133         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
50134
50135 2006-06-28  Simon Josefsson  <jas@extundo.com>
50136
50137         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
50138         functions there.  It will succeed on Windows XP, but on Windows
50139         2000 and (presumably) earlier, it will fail, and use the internal
50140         re-implementation.
50141         (use_win32_p): New function.
50142         (getaddrinfo): Use strtoul on servname, to support numeric ports.
50143         Support AI_NUMERICSERV to disable getservbyname.
50144         (getnameinfo): New function, only supports
50145         NI_NUMERICHOST|NI_NUMERICSERV for now.
50146
50147         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
50148         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
50149         getnameinfo.
50150
50151 2006-06-28  Eric Blake  <ebb9@byu.net>
50152
50153         * modules/wcwidth: New file.
50154         * modules/mbchar (Depends-on): Add wcwidth.
50155         * modules/mbswidth (Depends-on): Add wcwidth.
50156         * MODULES.html.sh: Add wcwidth.
50157
50158 2006-06-28  Eric Blake  <ebb9@byu.net>
50159
50160         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
50161         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
50162
50163 2006-06-28  Eric Blake  <ebb9@byu.net>
50164
50165         * lib/xvasprintf.h: Fix comments.
50166
50167 2006-06-28  Eric Blake  <ebb9@byu.net>
50168
50169         * lib/mbchar.h (wcwidth): Include wcwidth.h.
50170         * lib/mbswidth.c (wcwidth): Move from here...
50171         * lib/wcwidth.h: ...to this new file.
50172
50173 2006-06-28  Derek R. Price  <derek@ximbiot.com>
50174
50175         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
50176
50177         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
50178         it's obsolete.
50179         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
50180
50181 2006-06-28  Derek R. Price  <derek@ximbiot.com>
50182
50183         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
50184         Autoconf 2.60 says this stuff was obsolete.
50185
50186 2006-06-28  Bruno Haible  <bruno@clisp.org>
50187
50188         * modules/wcwidth (Files): Add m4/wchar_t.m4.
50189
50190 2006-06-28  Bruno Haible  <bruno@clisp.org>
50191
50192         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
50193         gt_TYPE_WCHAR_T.
50194
50195 2006-06-28  Bruno Haible  <bruno@clisp.org>
50196
50197         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
50198         declaration for wcwidth.
50199         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
50200
50201 2006-06-28  Bruno Haible  <bruno@clisp.org>
50202
50203         * lib/mkdtemp.c [MINGW]: Include <io.h>.
50204         (mkdir): Define using _mkdir.
50205
50206 2006-06-28  Bruno Haible  <bruno@clisp.org>
50207
50208         * lib/getaddrinfo.h: Fix POSIX URL.
50209         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
50210         _WIN32.
50211         (use_win32_p): Make static.
50212         (getaddrinfo): Reject service name if it is empty or does not consist
50213         solely of decimal digits, or if its value is > 65535.
50214         (getnameinfo): Remove useless casts.
50215
50216 2006-06-27  Simon Josefsson  <jas@extundo.com>
50217
50218         * modules/sys_select: New file, suggested by Bruno Haible, Paul
50219         Eggert and Martin Lambers.
50220
50221 2006-06-27  Simon Josefsson  <jas@extundo.com>
50222
50223         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
50224         Eggert and Martin Lambers.
50225
50226 2006-06-27  Bruno Haible  <bruno@clisp.org>
50227
50228         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
50229         result to 0, not to empty.
50230         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
50231
50232 2006-06-27  Bruno Haible  <bruno@clisp.org>
50233
50234         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
50235
50236 2006-06-26  Simon Josefsson  <jas@extundo.com>
50237
50238         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
50239         present.
50240
50241 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
50242
50243         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
50244         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
50245         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
50246
50247 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
50248
50249         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
50250
50251 2006-06-26  Bruno Haible  <bruno@clisp.org>
50252
50253         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
50254
50255 2006-06-26  Bruno Haible  <bruno@clisp.org>
50256
50257         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
50258
50259 2006-06-26  Bruno Haible  <bruno@clisp.org>
50260
50261         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
50262         SGI C compiler in pre-C99 mode.
50263         Suggested by Mark D. Baushke and Larry Jones.
50264
50265 2006-06-26  Bruno Haible  <bruno@clisp.org>
50266
50267         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
50268         WCHAR_MAX.
50269         Reported by Mark D. Baushke and Larry Jones.
50270
50271 2006-06-26  Bruno Haible  <bruno@clisp.org>
50272
50273         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
50274         in pre-C99 mode.
50275         Suggested by Mark D. Baushke and Larry Jones.
50276
50277 2006-06-23  Simon Josefsson  <jas@extundo.com>
50278             Bruno Haible  <bruno@clisp.org>
50279
50280         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
50281         Emit mostlyclean-local rule.
50282         (func_emit_tests_Makefile_am): Likewise.
50283         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
50284
50285 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
50286
50287         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
50288
50289 2006-06-23  Bruno Haible  <bruno@clisp.org>
50290
50291         * tests/test-stdint.c: Update to match ISO C 99 Technical
50292         Corrigendum 1.
50293
50294 2006-06-23  Bruno Haible  <bruno@clisp.org>
50295
50296         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
50297
50298 2006-06-23  Bruno Haible  <bruno@clisp.org>
50299
50300         * lib/stdint_.h: Treat IRIX like OpenBSD.
50301
50302 2006-06-23  Bruno Haible  <bruno@clisp.org>
50303
50304         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
50305         ISO C 99 Technical Corrigendum 1.
50306
50307 2006-06-22  Simon Josefsson  <jas@extundo.com>
50308
50309         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
50310         MinGW.
50311
50312 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
50313
50314         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
50315         needed.  Some compiler complained about some of them.  Problem reported
50316         by Larry Jones in
50317         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
50318
50319 2006-06-21  Simon Josefsson  <jas@extundo.com>
50320
50321         * tests/test-getaddrinfo.c: New file.
50322
50323         * modules/getaddrinfo-tests: New file.
50324
50325         * MODULES.html.sh: Add inet_pton.
50326
50327         * modules/inet_pton: New file.
50328
50329 2006-06-21  Simon Josefsson  <jas@extundo.com>
50330
50331         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
50332         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
50333         of using the (limited) gnulib implementation on Windows XP.
50334
50335         * m4/inet_pton.m4: New file.
50336
50337 2006-06-21  Simon Josefsson  <jas@extundo.com>
50338
50339         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
50340         variable.
50341
50342         * lib/socket_.h: Don't define WINVER.
50343
50344         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
50345         slightly modified to work in gnulib.
50346
50347 2006-06-21  Simon Josefsson  <jas@extundo.com>
50348
50349         * doc/gnulib.texi (Windows sockets): Add.
50350
50351 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
50352
50353         * lib/read-file.c (fread_file): Start with buffer allocation of
50354         0 bytes rather than 1 byte; this simplifies the code.
50355         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
50356         code to free buffer and save/restore errno.
50357         (internal_read_file): Remove unused local.
50358
50359 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
50360
50361         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
50362         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
50363         Problem reported by Denis Excoffier in
50364         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
50365
50366 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50367
50368         * modules/sys_socket, modules/socklen: Include sys/types since
50369         FreeBSD 4.x's sys/socket.h needs it.
50370
50371 2006-06-19  Simon Josefsson  <jas@extundo.com>
50372
50373         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
50374
50375 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
50376
50377         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
50378
50379 2006-06-19  Bruno Haible  <bruno@clisp.org>
50380
50381         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
50382         and FULL_PATH_INTTYPES_H in angle brackets.
50383         Reported by Mark D. Baushke <mdb@gnu.org>.
50384
50385 2006-06-17  Eric Blake  <ebb9@byu.net>
50386
50387         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
50388         errno.
50389
50390 2006-06-17  Bruno Haible  <bruno@clisp.org>
50391
50392         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
50393         <sys/inttypes.h>.
50394
50395 2006-06-17  Bruno Haible  <bruno@clisp.org>
50396
50397         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
50398         whether errno is declared. Assume <errno.h> declares errno.
50399
50400 2006-06-17  Bruno Haible  <bruno@clisp.org>
50401
50402         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
50403
50404 2006-06-17  Bruno Haible  <bruno@clisp.org>
50405
50406         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
50407         problem on Solaris 2.5.1.
50408
50409 2006-06-16  Eric Blake  <ebb9@byu.net>
50410
50411         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
50412         * lib/unicodeio.c [!defined errno]: Likewise.
50413         * lib/strtol.c [!defined errno]: Likewise.
50414         * lib/strtod.c [!defined errno]: Likewise.
50415
50416 2006-06-15  Eric Blake  <ebb9@byu.net>
50417
50418         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
50419
50420 2006-06-15  Eric Blake  <ebb9@byu.net>
50421
50422         * config/srclist.txt (ssize_t.m4): Lose sync.
50423
50424 2006-06-15  Bruno Haible  <bruno@clisp.org>
50425
50426         * modules/stdint (Files): Include m4/full-header-path.m4,
50427         m4/size_max.m4, m4/wchar_t.m4.
50428         (Makefile.am): Many more substitutions.
50429         * modules/stdint-tests: New file.
50430         * tests/test-stdint.c: New file.
50431
50432 2006-06-15  Bruno Haible  <bruno@clisp.org>
50433
50434         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
50435         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
50436         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
50437         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
50438         gl_CHECK_TYPE_SAME): New macros.
50439
50440 2006-06-15  Bruno Haible  <bruno@clisp.org>
50441
50442         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
50443
50444 2006-06-15  Bruno Haible  <bruno@clisp.org>
50445
50446         * lib/stdint_.h: Rewritten to be fully auto-configured.
50447         Fixes bug on HP-UX/IA64.
50448
50449 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
50450
50451         * lib/getdate.y (__attribute__): Don't define if already defined.
50452         Problem reported by Larry Jones.
50453         * lib/utimens.c (__attribute__): Likewise.
50454
50455 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
50456
50457         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
50458         reported by Andreas Schwab.
50459
50460 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50461             Bruno Haible  <bruno@clisp.org>
50462
50463         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
50464         check for the declaration of strnlen and a run test that exposes the
50465         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
50466         rpl_strndup.
50467
50468 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50469             Bruno Haible  <bruno@clisp.org>
50470
50471         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
50472
50473 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50474
50475         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
50476         compile test, for Tru64 4.0D.
50477
50478 2006-05-28  Karl Berry  <karl@gnu.org>
50479
50480         * config/srclist.txt (printf-args.c): lose sync.
50481
50482 2006-05-26  Martin Lambers  <marlam@marlam.de>
50483
50484         * lib/getpass.c: Updates the test for the native W32 API, and adds
50485         missing includes, thus fixing compilation warnings.
50486
50487 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
50488
50489         * lib/exclude.c (exclude_fnmatch): New function.
50490         (excluded_file_name): Call exclude_fnmatch.
50491         * lib/exclude.h (excluded_file_name): New prototype
50492
50493 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
50494
50495         * lib/tempname.c (small_open, large_open): New macros.
50496         (__open, __open64) [!_LIBC]: Remove.
50497         (__gen_tempname): Use small_open and large_open instead of __open
50498         and __open64.  This fixes a portability bug on HP-UX 11.11i
50499         reported by Simon Wing-Tang in
50500         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
50501
50502 2006-05-24  Bruno Haible  <bruno@clisp.org>
50503
50504         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
50505         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
50506         Reported by Thorsten Maerz <torte@netztorte.de> via
50507         Aaron Stone <aaron@serendipity.cx>.
50508
50509 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
50510
50511         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
50512         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
50513         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
50514         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
50515         not really conditional on the cache.
50516         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
50517
50518 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
50519
50520         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
50521         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
50522         (my_usleep): Don't mishandle maximum value.
50523
50524 2006-05-19  Jim Meyering  <jim@meyering.net>
50525
50526         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
50527
50528 2006-05-17  Bruno Haible  <bruno@clisp.org>
50529
50530         Cygwin portability.
50531         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
50532
50533 2006-05-17  Bruno Haible  <bruno@clisp.org>
50534
50535         * lib/stdint_.h: Fix recognition of Cygwin.
50536
50537 2006-05-15  Bruno Haible  <bruno@clisp.org>
50538
50539         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
50540         on libtool patch by Ralf Wildenhues.
50541
50542 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
50543
50544         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
50545         test for C99 conformance; (bool) 0.5 is an integer constant
50546         expression, but (bool) -0.5 is not.  Problem reported by Fedor
50547         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
50548
50549 2006-05-11  Simon Josefsson  <jas@extundo.com>
50550
50551         * m4/xvasprintf.m4: Fix obvious typo.
50552
50553 2006-05-11  Jim Meyering  <jim@meyering.net>
50554
50555         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
50556         James Lemley.
50557
50558 2006-05-10  Simon Josefsson  <jas@extundo.com>
50559
50560         * lib/md4.c: Typo fix, update copyright years.
50561         (K1, K2): Don't use L because it turn computations into 64-bit on
50562         64-bit platforms.
50563
50564 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
50565
50566         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
50567         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
50568         unwanted sign propagation, e.g., on hosts with 64-bit int.
50569         There still are some problems with reeelly weird theoretical hosts
50570         (e.g., 33-bit int) but it's not worth worrying about now.
50571         * lib/sha1.c (rol): Likewise.
50572         (K1, K2, K3, K4): Remove unnecessary L suffix.
50573
50574 2006-05-10  Bruno Haible  <bruno@clisp.org>
50575
50576         * lib/des.c: Cast to avoid warnings.
50577
50578 2006-05-09  Bruno Haible  <bruno@clisp.org>
50579
50580         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
50581         (Depends-on): Depend also on xsize, stdarg.
50582         (configure.ac): Add gl_XVASPRINTF.
50583
50584 2006-05-09  Bruno Haible  <bruno@clisp.org>
50585
50586         * m4/xvasprintf.m4: New file.
50587
50588 2006-05-09  Bruno Haible  <bruno@clisp.org>
50589
50590         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
50591         (EOVERFLOW): Define fallback value.
50592         (xstrcat): New function.
50593         (xvasprintf): Recognize the special case of a string concatenation.
50594
50595 2006-05-08  Eric Blake  <ebb9@byu.net>
50596
50597         * gnulib-tool (func_version): Base copyright year on CVS date.
50598         (func_emit_copyright_notice): New function.
50599         (func_emit_lib_Makefile_am): Use it.
50600         (func_emit_tests_Makefile_am): Likewise.
50601         (func_import): Likewise.
50602
50603 2006-05-08  Bruno Haible  <bruno@clisp.org>
50604
50605         * modules/stdarg: New file.
50606         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
50607
50608 2006-05-08  Bruno Haible  <bruno@clisp.org>
50609
50610         * m4/stdarg.m4: New file, from GNU gettext.
50611
50612 2006-05-08  Bruno Haible  <bruno@clisp.org>
50613
50614         * config/srclist.txt (build-aux/config.rpath): different from latest
50615         release.
50616
50617 2006-05-08  Bruno Haible  <bruno@clisp.org>
50618
50619         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
50620
50621 2006-05-05  Jim Meyering  <jim@meyering.net>
50622
50623         * m4/warning.m4: New file, derived from bison's file by the same name.
50624
50625 2006-05-03  Bruno Haible  <bruno@clisp.org>
50626
50627         * lib/stdint_.h: Shorter URL.
50628         * lib/inttypes.h: Likewise.
50629
50630 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
50631
50632         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
50633
50634 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
50635
50636         * lib/verify.h: Document the internals better.  Most of this change
50637         was written by Bruno Haible.
50638
50639 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
50640
50641         * doc/verify.texi: New file, partly based on a proposal by
50642         Bruno Haible.
50643
50644 2006-05-02  Bruno Haible  <bruno@clisp.org>
50645
50646         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
50647         test from here...
50648         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
50649
50650 2006-04-29  Bruno Haible  <bruno@clisp.org>
50651
50652         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
50653         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
50654
50655 2006-04-29  Bruno Haible  <bruno@clisp.org>
50656
50657         * gnulib-tool: Make --update option actually work.
50658
50659 2006-04-29  Bruno Haible  <bruno@clisp.org>
50660
50661         * doc/gcd.texi: New file.
50662         * doc/gnulib.texi: Include it.
50663
50664 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
50665
50666         * lib/getdate.y (get_date): When adding relative date, start with the
50667         initial time, not with the result of the first mktime call.
50668
50669 2006-04-25  Bruno Haible  <bruno@clisp.org>
50670
50671         * gnulib-tool (func_import): Output the include directives in three
50672         blocks, sorted separately.
50673         Reported by Ben Pfaff <blp@cs.stanford.edu>.
50674
50675 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
50676
50677         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
50678         to define main with arguments, for C++.  Reported by Eric Blake.
50679         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
50680         Prefer 'int main ()' to 'int main (void)', for C++.
50681         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
50682         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
50683         for 'main', for C99 and C++.
50684
50685 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
50686
50687         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
50688         Don't assume that exit status -1 is valid.
50689         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
50690         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
50691         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
50692         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
50693         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
50694         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
50695         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
50696         functions can be used without declaring them, or that you can
50697         exit with status -1.
50698         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
50699
50700 2006-04-24  Karl Berry  <karl@gnu.org>
50701
50702         * config/srclist.txt (longdouble.m4): sync lost.
50703
50704 2006-04-24  Eric Blake  <ebb9@byu.net>
50705
50706         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
50707
50708 2006-04-24  Bruno Haible  <bruno@clisp.org>
50709
50710         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
50711         poll() implementation in AIX.
50712         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50713
50714 2006-04-24  Bruno Haible  <bruno@clisp.org>
50715
50716         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
50717         assigned exactly once.
50718
50719 2006-04-23  Claudio Fontana  <claudio@gnu.org>
50720             Bruno Haible  <bruno@clisp.org>
50721
50722         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
50723         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
50724         for AM_CPPFLAGS.
50725
50726 2006-04-23  Bruno Haible  <bruno@clisp.org>
50727
50728         * modules/copy-file: Depend on unistd.
50729         * modules/execute: Likewise.
50730         * modules/fatal-signal: Likewise.
50731         * modules/findprog: Likewise.
50732         * modules/mkdtemp : Likewise.
50733         * modules/pipe: Likewise.
50734         * modules/wait-process: Likewise.
50735
50736 2006-04-23  Bruno Haible  <bruno@clisp.org>
50737
50738         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
50739         condition was already detected.
50740         Reported by Ben Pfaff <blp@cs.stanford.edu>.
50741
50742 2006-04-23  Bruno Haible  <bruno@clisp.org>
50743
50744         * lib/copy-file.c: Include <unistd.h> unconditionally.
50745         * lib/execute.c: Likewise.
50746         * lib/fatal-signal.c: Likewise.
50747         * lib/findprog.c: Likewise.
50748         * lib/mkdtemp.c: Likewise.
50749         * lib/pipe.h: Likewise.
50750         * lib/pipe.c: Likewise.
50751         * lib/wait-process.h: Likewise.
50752
50753 2006-04-23  Bruno Haible  <bruno@clisp.org>
50754
50755         * gnulib-tool (func_usage): Fix --import description. Document
50756         --update.
50757         (func_import): Create temporary file in a temporary directory, if
50758         --dry-run is specified. Silence errors from 'grep' when there are no
50759         m4 files in $m4dir.
50760         (func_create_testdir): Silence errors from 'grep' when there are no
50761         m4 files in $m4dir.
50762         Reported by Karl Berry <karl@freefriends.org>.
50763
50764 2006-04-20  Bruno Haible  <bruno@clisp.org>
50765
50766         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
50767         one argument, so that the code will be portable to Autoconf 2.60.
50768         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
50769         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
50770         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
50771
50772 2006-04-19  Derek Price  <derek@ximbiot.com>
50773             Eric Blake  <ebb9@byu.net>
50774
50775         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
50776         rather than "/full/path.h".  Update comment to match.  Shorten &
50777         generalize m4_translit call via AS_TR_CPP.
50778
50779 2006-04-19  Derek Price  <derek@ximbiot.com>
50780             Eric Blake  <ebb9@byu.net>
50781
50782         * lib/inttypes.h: Correct grammar in comment.
50783
50784 2006-04-18  Derek Price  <derek@ximbiot.com>
50785             Paul Eggert  <eggert@cs.ucla.edu>
50786
50787         * modules/inttypes: New file.
50788         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
50789
50790 2006-04-18  Derek Price  <derek@ximbiot.com>
50791             Paul Eggert  <eggert@cs.ucla.edu>
50792
50793         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
50794         New files.
50795
50796 2006-04-18  Derek Price  <derek@ximbiot.com>
50797             Paul Eggert  <eggert@cs.ucla.edu>
50798
50799         * lib/inttypes.h: New file.
50800         * lib/strtoimax.c: Assume <inttypes.h>.
50801
50802 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
50803
50804         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
50805         isn't mounted.  Problem reported by Kir Kolyshkin.
50806
50807 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
50808
50809         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
50810         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
50811         Derek R. Price.
50812         * lib/regex.h (RE_DUP_MAX): Update comment to match current
50813         implementation.
50814
50815 2006-04-12  Eric Blake  <ebb9@byu.net>
50816
50817         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
50818         is now done automatically by the corresponding Autoconf macro.
50819
50820 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
50821
50822         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
50823         time_r.h.
50824
50825 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
50826
50827         Merge regex changes from libc, removing some of our
50828         POSIX-conformance changes that were rejected and redoing them in a
50829         less-intrusive way.
50830
50831         * lib/regcomp.c (re_compile_internal, init_dfa):
50832         Length arg is now size_t, not Idx.  All uses changed.
50833         (peek_token): Forward decl now says internal_function.
50834         (__re_error_msgid, __re_error_msgid_idx):
50835         Now static rather than extern with attribute_hidden.
50836         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
50837         For some reason libc prefers K&R style defns for external functions.
50838         (regerror) [!defined _LIBC]: Likewise.
50839         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
50840         (seek_collating_symbol_entry, lookup_collation_sequence_value):
50841         (build_range_exp, build_collating_symbol):
50842         Use K&R-style defn.
50843         (re_compile_fastmap): Use '\0' to memset, not 0.
50844         (utf8_sb_map): Make the calculations more obvious.
50845         (init_dfa, parse_bracket_exp, build_charclass_op):
50846         Call calloc and cast result, as glibc does.
50847         (init_word_char, fetch_token, peek_token, peek_token_bracket):
50848         (build_range_exp, build_collating_symbol):
50849         Now internal functions.
50850
50851         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
50852
50853         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
50854         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
50855         Don't depend on VMS; depend on __VMS instead, for POSIX
50856         namespace cleanness.
50857         (regoff_t): Define to ssize_t, not long int.
50858
50859         Remove the REG_ macros named below.  Instead, make the old names
50860         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
50861         __USE_GNU_REGEX.
50862         (REG_BACKSLASH_ESCAPE_IN_LISTS):
50863         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
50864         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
50865         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
50866         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
50867         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
50868         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
50869         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
50870         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
50871         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
50872         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
50873         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
50874         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
50875         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
50876         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
50877         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
50878         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
50879         (REG_NREGS):
50880         Remove.  All uses replaced by the old RE_* names.
50881         (RE_BACKSLASH_ESCAPE_IN_LISTS):
50882         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
50883         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
50884         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
50885         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
50886         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
50887         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
50888         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
50889         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
50890         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
50891         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
50892         Don't bother having these macros be independent of each others'
50893         values, since they no longer exist in the POSIX name space.
50894
50895         Rename the following member names back to their old names,
50896         unless !__USE_GNU_REGEX.  All uses changed back.
50897         (buffer): Renamed from re_buffer.
50898         (allocated): Renamed from re_allocated.
50899         (used): Renamed from re_used.
50900         (syntax): Renamed from re_syntax.
50901         (fastmap): Renamed from re_fastmap.
50902         (translate): Renamed from re_translate.
50903         (can_be_null): Renamed from re_can_be_null.
50904         (regs_allocated): Renamed from re_regs_allocated.
50905         (fastmap_accurate): Renamed from re_fastmap_accurate.
50906         (no_sub): Renamed from re_no_sub.
50907         (not_bol): Renamed from re_not_bol.
50908         (not_eol): Renamed from re_not_eol.
50909         (newline_anchor): Renamed from re_newline_anchor.
50910         (num_regs): Renamed from rm_num_regs.
50911         (start): Renamed from rm_start.
50912         (end): Renamed from rm_end.
50913
50914         (free_state): Move up a bit.
50915
50916         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
50917         #define to be empty.
50918         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
50919         when that is what is intended.
50920         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
50921         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
50922         (MAX): New macro.
50923         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
50924         All uses changed back to re_malloc, etc.  It's now the caller's
50925         responsibility to check for overflow; all callers changed.
50926         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
50927         (re_x2nrealloc): Remove.
50928         (free_state): Remove decl.
50929
50930         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
50931         (re_set_registers, re_exec):
50932         Use K&R-style defn.
50933
50934         2006-01-31  Roland McGrath  <roland@redhat.com>
50935
50936         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
50937         Reported by Mike Frysinger <vapier@gentoo.org>.
50938
50939         2006-01-15  Andreas Jaeger  <aj@suse.de>
50940
50941         [BZ #1950]
50942         * lib/regex_internal.c (re_string_reconstruct): Adjust for
50943         build_wcs_upper_buffer change.
50944         (build_wcs_upper_buffer): Change return type.
50945
50946         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
50947
50948         * lib/regex_internal.h: Include <stdint.h> if available.
50949
50950         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
50951
50952         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
50953
50954         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
50955
50956         * lib/regcomp.c: Adjust for changed secondary hash function.
50957
50958         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
50959
50960         * lib/regex.h: Pretty printing.
50961         Clean up namespace a bit.
50962
50963         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
50964
50965         * lib/regexec.c (update_cur_sifted_state, check_arrival,
50966         check_arrival_add_next_nodes): Avoid using uninitialized variable.
50967
50968         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
50969                     Ulrich Drepper  <drepper@redhat.com>
50970
50971         [BZ #1302]
50972         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
50973         changed.
50974         (bitset_word_t): Renamed from bitset_word.  All uses changed.
50975
50976         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
50977
50978         [BZ #281]
50979         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
50980         * lib/regcomp.c: Remove unnecessary uses of
50981         unsigned RE_TRANSLATE_TYPE.
50982         * lib/regex_internal.h: Likewise.
50983         * lib/regex_internal.c: Likewise.
50984         * lib/regexec.c: Likewise.
50985         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
50986
50987         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
50988
50989         * lib/regexec.c (find_recover_state): Remove unnecessary
50990         initialization.
50991         (transit_state_bkref): Make DFA a const pointer.
50992         (get_subexp): Likewise.
50993         (check_arrival): Likewise.
50994         (update_cur_sifted_state): Likewise.
50995         (re_search_internal): Likewise.
50996         (prune_impossible_nodes): Likewise.
50997         (acquire_init_state_context): Likewise.
50998         (proceed_next_node): Likewise.
50999         (set_regs): Likewise.
51000         (free_fail_stack_return): Likewise.
51001         (check_arrival_expand_ecl): Mark DFA parameter as const.
51002         (check_arrival_expand_ecl_sub): Likewise.
51003         (check_subexp_limits): Likewise.
51004         (sub_epsilon_src_nodes):  Likewise.
51005         (add_epsilon_src_nodes):  Likewise.
51006         (merge_state_array): Likewise.
51007         (update_regs): Likewise.
51008         (build_trtable): Likewise.
51009         (sift_states_backward): Mark MCTX parameter as const.
51010         (build_sifted_states): Likewise.
51011         (update_cur_sifted_state): Likewise.
51012         (sift_states_mkref): Likewise.
51013         (check_arrival_expand_ecl): Mark eclosure as const.
51014         (check_dst_limits_calc_pos_1): Likewise.
51015         * lib/regex_internal.h (re_match_context_t): Make dfa a const
51016         pointer.
51017
51018         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
51019
51020         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
51021         (transit_state_sb): Likewise.
51022         (transit_state_mb): Likewise.
51023         (sift_states_iter_mb): Likewise.
51024         (check_arrival_add_next_nodes): Likewise.
51025         (check_node_accept_bytes): Change first parameter to pointer-to-const.
51026         [_LIBC] (re_search_2_stub): Use mempcpy.
51027
51028         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
51029         mbrtowc for very simple UTF-8 case.
51030
51031         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
51032         a pointer-to-const.
51033         (re_acquire_state_context): Likewise.
51034         * lib/regex_internal.h: Adjust prototypes.
51035
51036         * lib/regex.c: Prevent using C++ compilers.
51037
51038         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
51039         (re_acquire_state_context): Likewise.
51040
51041 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
51042
51043         * modules/regex (Depends-on): Add ssize_t.
51044
51045 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
51046
51047         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
51048         translation table.
51049
51050 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
51051
51052         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
51053
51054 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
51055             Bruno Haible  <bruno@clisp.org>
51056
51057         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
51058         <sys/types.h> and <inttypes.h>.
51059
51060 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51061
51062         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
51063         `__error_t_defined', so argp.h will not typedef the former.
51064
51065 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
51066
51067         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
51068         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
51069         glibc names.  Even if glibc is changed to conform to POSIX, the
51070         traditional names will be available anyway, since regex depends on
51071         the extensions module.  Also, fix a longstanding typo in the
51072         implementation of Spencer ERE test #75 from grep 2.3.  Problems
51073         reported by Emanuele Giaquinta.  Also, change sense of cached
51074         variable, so that the message makes sense.
51075
51076 2006-03-24  Simon Josefsson  <jas@extundo.com>
51077
51078         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
51079         including some doc fixes.
51080         (base64_encode_alloc): Fix +1 bug on allocation failures.
51081
51082 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51083
51084         * lib/base64.c (base64_encode): Do not read past end of array with
51085         unsanitized input on systems with CHAR_BIT > 8.
51086
51087 2006-03-24  Eric Blake  <ebb9@byu.net>
51088
51089         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
51090
51091 2006-03-22  Karl Berry  <karl@gnu.org>
51092
51093         * config/srclist.txt (*setenv.[ch]): get from coreutils.
51094         * config/srclistvars.sh (COREUTILS): new var.
51095
51096 2006-03-17  Jim Meyering  <jim@meyering.net>
51097
51098         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
51099         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
51100
51101 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
51102
51103         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
51104         no longer needs it.  Instead, check that regoff_t is as least
51105         as wide as ptrdiff_t.
51106
51107         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
51108         so that our regex.h stays compatible with the installed regex.
51109         This is helpful for installers who configure --without-included-regex.
51110         Problem reported by Emanuele Giaquinta.
51111
51112 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
51113
51114         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
51115         Typedef to long int, not to off_, as POSIX will likely change
51116         in that direction.
51117
51118 2006-03-15  Eric Blake  <ebb9@byu.net>
51119
51120         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
51121
51122 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
51123
51124         * lib/argp-help.c (validate_uparams): Fix typo
51125         * lib/argp-parse.c (argp_default_options): Consistently begin help
51126         messages with a lowercase letter.
51127
51128 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
51129
51130         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
51131         overrun buffers and shouldn't be used (much as gets shouldn't be
51132         used).
51133         * lib/time_r.c (asctime_r, ctime_r): Likewise.
51134
51135 2006-03-08  Simon Josefsson  <jas@extundo.com>
51136
51137         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
51138         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51139
51140 2006-03-08  Simon Josefsson  <jas@extundo.com>
51141
51142         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
51143         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51144
51145 2006-03-08  Simon Josefsson  <jas@extundo.com>
51146
51147         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
51148         signal that configure disabled the device.
51149
51150 2006-03-08  Simon Josefsson  <jas@extundo.com>
51151
51152         * build-aux/maint.mk: Fix refresh-po, to handle no translated
51153         languages.
51154
51155 2006-03-07  Simon Josefsson  <jas@extundo.com>
51156
51157         * modules/getopt (Depends-on): Add unistd.
51158
51159         * modules/unistd: New file.
51160
51161 2006-03-07  Simon Josefsson  <jas@extundo.com>
51162
51163         * modules/gc-random: New file.
51164
51165 2006-03-07  Simon Josefsson  <jas@extundo.com>
51166
51167         * m4/unistd_h.m4: New file.
51168
51169 2006-03-07  Simon Josefsson  <jas@extundo.com>
51170
51171         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
51172         test to be side-effect free by storing the result in the cache
51173         variable gl_cv_lib_readline, and moving the assignment of
51174         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
51175         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51176
51177 2006-03-07  Simon Josefsson  <jas@extundo.com>
51178
51179         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
51180         error on missing devices (the functions will return an error).
51181
51182         * m4/gc.m4: Move random stuff to gc-random.m4
51183
51184 2006-03-07  Simon Josefsson  <jas@extundo.com>
51185
51186         * lib/unistd_.h: New file.
51187
51188 2006-03-07  Simon Josefsson  <jas@extundo.com>
51189
51190         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
51191
51192 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
51193
51194         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
51195         Problem reported by Juan Manuel Guerrero.
51196
51197 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
51198
51199         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
51200         the unistd module.
51201         * lib/getlogin_r.c: Likewise.
51202         * lib/getlogin_r.h: Likewise.
51203         * lib/glob.c: Likewise.
51204         * lib/pagealign_alloc.c: Likewise.
51205         * lib/unistd_.h: Remove; no longer needed.
51206
51207 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
51208
51209         * MODULES.html.sh (Support for systems lacking POSIX:2001):
51210         Add unistd.
51211         * modules/c-stack (Depends-on): Add unistd.
51212         * modules/getlogin_r: Likewise.
51213         * modules/glob: Likewise.
51214         * modules/pagealign_alloc: Likewise.
51215         * modules/unistd (Files): Remove lib/unistd_.h.
51216         (EXTRA_DIST): Remove.
51217         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
51218         need unistd_.h.
51219         (MOSTLYCLEANFILES): Remove unistd.h-t.
51220
51221 2006-03-03  Simon Josefsson  <jas@extundo.com>
51222
51223         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
51224
51225 2006-03-03  Simon Josefsson  <jas@extundo.com>
51226
51227         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
51228         libidn and bison.
51229
51230 2006-03-03  Simon Josefsson  <jas@extundo.com>
51231
51232         * build-aux/maint.mk: Add indent target.
51233
51234 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
51235
51236         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
51237         our replacement poll.h in any case, to avoid a differing
51238         declaration from a system header.  Seen on AIX.
51239
51240 2006-03-01  Simon Josefsson  <jas@extundo.com>
51241
51242         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
51243         <kasal@ucw.cz>.
51244
51245 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
51246
51247         * modules/gettime (Depends-on): Add extensions module.
51248         * modules/nanosleep (Depends-on): Likewise.
51249         * modules/settime (Depends-on): Likewise.
51250
51251 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
51252
51253         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
51254         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
51255         pedantically.
51256         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
51257         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
51258
51259         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
51260         not "==".  Reported by Ralf Wildenhues.
51261
51262 2006-03-01  Karl Berry  <karl@gnu.org>
51263
51264         * doc/Copyright/request-*: new files, synced from gnuorg.
51265
51266 2006-03-01  Karl Berry  <karl@gnu.org>
51267
51268         * config/srclist.txt (Copyright/*): new entries.
51269
51270 2006-02-28  Simon Josefsson  <jas@extundo.com>
51271
51272         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
51273
51274 2006-02-27  Simon Josefsson  <jas@extundo.com>
51275
51276         * lib/base64.h: Indent #define's.  From Jim Meyering
51277         <jim@meyering.net>.
51278
51279 2006-02-27  Jim Meyering  <jim@meyering.net>
51280
51281         Revert the change of 2006-02-24, so these files can continue
51282         to be sync'd from gettext.
51283         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
51284         of `config.h'.
51285
51286 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
51287
51288         * modules/intprops: New file.
51289         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
51290         Add intprops.
51291         * modules/getloadavg (Files): Remove lib/intprops.h.
51292         (Depends-on): Add intprops.
51293         * modules/human: Likewise.
51294         * modules/inttostr: Likewise.
51295         * modules/openat: Likewise.
51296         * modules/sig2str: Likewise.
51297         * modules/userspec: Likewise.
51298         * modules/utimecmp: Likewise.
51299         * modules/xnanosleep: Likewise.
51300         * modules/xstrtol: Likewise.
51301
51302 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
51303
51304         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
51305         * modules/lock-tests (TESTS): Use $(EXEEXT).
51306         * modules/tls-tests: Likewise.
51307         * modules/argp-tests: Likewise.
51308         (check_PROGRAMS): New var, replacing...
51309         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
51310
51311 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51312
51313         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
51314         `config.h'.
51315
51316 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
51317
51318         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
51319
51320 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51321
51322         Sync from coreutils.
51323         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
51324         gl_CHDIR_SAFER.
51325
51326 2006-02-22  Jim Meyering  <jim@meyering.net>
51327
51328         Sync from coreutils.
51329         * m4/chdir-safer.m4: New file.
51330
51331 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
51332
51333         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
51334         AT_FDCWD exceeds INT_MAX.
51335         * lib/openat.h (AT_FDCWD): Likewise.
51336
51337 2006-02-17  Eric Blake  <address@hidden>
51338
51339         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
51340
51341 2006-02-16  Simon Josefsson  <jas@extundo.com>
51342
51343         * modules/getaddrinfo (Depends-on): Add sys_socket.
51344
51345 2006-02-15  Simon Josefsson  <jas@extundo.com>
51346
51347         * build-aux/maint.mk: Add dsyntax-check rule.
51348
51349 2006-02-15  Eric Blake  <ebb9@byu.net>
51350
51351         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
51352         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
51353         'present but cannot compile' warnings on cygwin.
51354         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
51355         use ws2tcpip.h if sys/socket.h works.
51356         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
51357         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
51358
51359 2006-02-14  Simon Josefsson  <jas@extundo.com>
51360
51361         * modules/maintainer-makefile (Files): Rename.
51362
51363         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
51364         and (the local) Makefile.cfg to maint-cfg.mk.
51365
51366         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
51367         to the latter.
51368
51369         * modules/maintainer-makefile: New module.
51370
51371         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
51372         severaly stripped to make it possible to build it up from scratch
51373         with reliable tests.
51374
51375         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
51376         fixes to permit overriding the default actions when configure and
51377         makefile are not available.
51378
51379 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
51380
51381         Sync from coreutils.
51382         * modules/lstat (Depends-on): Don't depend on xalloc.
51383         (License): Change from GPL to LGPL, since this is now simply a
51384         replacement for a libc function.
51385
51386 2006-02-14  Jim Meyering  <jim@meyering.net>
51387
51388         Sync from coreutils.
51389
51390         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
51391         failure on deficient systems, and simplify gnulib lgpl dependencies.
51392         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
51393         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
51394
51395         * lib/xalloc-die.c: Remove unused definition of N_.
51396
51397 2006-02-14  Jim Meyering  <jim@meyering.net>
51398
51399         Sync from coreutils.
51400         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
51401         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
51402         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
51403         double-quote uses of that variable, to accommodate the rare case in
51404         which getmntent is available in none of the libraries checked.  This
51405         happens at least on FreeBSD 5.0.
51406
51407 2006-02-13  Simon Josefsson  <jas@extundo.com>
51408
51409         * gnulib-tool (Usage): Fix --import, from
51410         karl@freefriends.org (Karl Berry).
51411
51412 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
51413
51414         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
51415
51416 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
51417
51418         * lib/argp-namefrob.h: Restore changes accidentally lost during the
51419         "autoupdate" on 2005-12-12.
51420
51421 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
51422
51423         * modules/closeout (Depends-on): Remove atexit.
51424
51425 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
51426
51427         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
51428         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
51429
51430 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
51431
51432         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
51433         __EXTENSIONS__ if this causes compilation to fail.  Problem
51434         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
51435         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
51436
51437 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
51438
51439         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
51440         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
51441         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
51442         All uses changed.
51443
51444 2006-01-26  Simon Josefsson  <jas@extundo.com>
51445
51446         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
51447         prototype is visible on mingw32.
51448
51449         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
51450         for mingw32.
51451
51452         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
51453         mingw32).
51454
51455 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
51456
51457         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
51458         attempt to open for write; this always fails, at least on POSIX
51459         hosts.  This reinstates the 2006-01-09 change, which was
51460         inadvertently removed.
51461
51462 2006-01-26  Bruno Haible  <bruno@clisp.org>
51463
51464         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
51465         Reported by Paul Eggert.
51466
51467 2006-01-26  Bruno Haible  <bruno@clisp.org>
51468             Paul Eggert  <eggert@cs.ucla.edu>
51469
51470         * lib/stdbool_.h (_Bool)
51471         [(! (defined __cplusplus || defined __BEOS__)
51472           && !defined __GNUC__
51473           && !(defined __HP_cc || defined __xlc__
51474                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
51475                || defined __sgi))]:
51476         #define to signed char in these cases too; this simplifies
51477         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
51478         etc., separately) and makes it more conservative.
51479
51480 2006-01-25  Simon Josefsson  <jas@extundo.com>
51481
51482         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
51483         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
51484         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
51485
51486 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
51487
51488         * lib/argp-namefrob.h: Bugfix. Remove stray #
51489
51490 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
51491
51492         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
51493         so that we test the test.
51494         Check for yet another HP-UX cc bug involving *bool |= bool.
51495
51496 2006-01-25  Karl Berry  <karl@gnu.org>
51497
51498         * config/srclist.txt (vasnprintf.c): sync lost.
51499
51500 2006-01-25  Jim Meyering  <jim@meyering.net>
51501
51502         Sync from the stable (b5) branch of coreutils:
51503
51504         * lib/fts.c (fts_children): Don't let close() clobber errno from
51505         failed fchdir().
51506
51507         * lib/fts.c (fts_stat): When following a symlink-to-directory,
51508         don't necessarily interpret stat-fails+lstat-succeeds as indicating
51509         a dangling symlink.  That can also happen at least for ELOOP.
51510         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
51511         FYI, this bug predates the inclusion of fts.c in coreutils.
51512
51513         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
51514         in their own block, so pre-c99 compilers don't object.
51515
51516         Avoid the double-free (first in fts_read, second in fts_close) that
51517         would occur when an `active' directory is made inaccessible (e.g.,
51518         via chmod a-x) during a traversal.
51519         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
51520         before returning.  Reproduce this failure by
51521         mkdir -p a/b; cd a; chmod a-x . b
51522         Reported by Stavros Passas.
51523
51524 2006-01-25  Jim Meyering  <jim@meyering.net>
51525
51526         * lib/fileblocks.c: Remove more useless parentheses.
51527         * lib/readutmp.h: Likewise.
51528
51529 2006-01-25  Bruno Haible  <bruno@clisp.org>
51530
51531         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
51532         warnings.
51533         Reported by Paul Eggert.
51534
51535 2006-01-25  Bruno Haible  <bruno@clisp.org>
51536
51537         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
51538         rid of a trap command. For Solaris sh.
51539         Reported by Mark D. Baushke <mdb@gnu.org>.
51540
51541 2006-01-24  Simon Josefsson  <jas@extundo.com>
51542
51543         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
51544         Bruno.
51545
51546 2006-01-24  Karl Berry  <karl@gnu.org>
51547
51548         * config/srclist.txt (argp-namefrob.h): sync lost.
51549
51550 2006-01-24  Jim Meyering  <jim@meyering.net>
51551
51552         * modules/openat (Files): Add lib/intprops.h.
51553         From Mark D. Baushke.
51554
51555 2006-01-24  Jim Meyering  <jim@meyering.net>
51556
51557         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
51558         Reported by Mark D. Baushke.
51559
51560 2006-01-24  Jim Meyering  <jim@meyering.net>
51561
51562         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
51563
51564 2006-01-24  Bruno Haible  <bruno@clisp.org>
51565
51566         * modules/strnlen (Maintainer): Change from glibc to all.
51567
51568 2006-01-24  Bruno Haible  <bruno@clisp.org>
51569
51570         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
51571         Patch by Paul Eggert.
51572
51573 2006-01-24  Bruno Haible  <bruno@clisp.org>
51574
51575         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
51576         already has it.
51577         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
51578         2005-11-26.
51579
51580         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
51581         'signed char' to avoid problems with the built-in _Bool type.
51582         Reported by Paul Eggert on 2005-11-26.
51583
51584 2006-01-24  Bruno Haible  <bruno@clisp.org>
51585
51586         * gnulib-tool (func_import): Avoid constructing complicated sed
51587         expressions inside backquote.
51588         Report and solution by Mark D. Baushke <mdb@gnu.org>.
51589
51590 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
51591
51592         These changes imported from libc.
51593         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
51594         test and two separate function calls.
51595         * lib/strndup.c (__strndup): Add libc_hidden_def.
51596
51597 2006-01-23  Simon Josefsson  <jas@extundo.com>
51598
51599         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
51600         Remove the test_*_SOURCES variable: automake infers it by default.
51601         * modules/tls-tests: Likewise.
51602
51603 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
51604
51605         Work around porting bugs reported by Dieter in
51606         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
51607         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
51608         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
51609         Include "getopt.h" first, to check interface.
51610         (getenv): Declare only if defined HAVE_DECL_GETENV &&
51611         !HAVE_DECL_GETENV.
51612         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
51613         (__strndup): Revert to K&R-style function dfns, the glibc style.
51614         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
51615         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
51616         Include strnlen.h first, to get prototype properly.
51617         (strnlen): Renamed from __strnlen.
51618         Remove weak alias.
51619
51620 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
51621
51622         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
51623
51624 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
51625
51626         * config/srclist.txt: Adjust to reflect glibc reorganization.
51627         This affects only comments.
51628
51629 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
51630
51631          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
51632          Reported by Bruce Korb <bkorb@gnu.org>.
51633
51634 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
51635
51636         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
51637         to pacify gcc -Wswitch-default.
51638
51639 2006-01-22  Bruno Haible  <bruno@clisp.org>
51640
51641         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
51642         temporary buffer for sprintf, take into account the precision also
51643         for 'd', 'i', 'u', 'o', 'x', 'X'.
51644
51645 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
51646
51647         * modules/argp-tests: New module
51648         * tests/test-argp.c: New file
51649         * tests/test-argp-2.sh: New file
51650
51651 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
51652
51653         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
51654         (__argp_base_name): Removed
51655         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
51656         typo.
51657         (__argp_base_name): Provide macro definition or extern declaration
51658         depending on the configuration
51659
51660 2006-01-20  Simon Josefsson  <jas@extundo.com>
51661
51662         * modules/inet_ntop (Depends-on): Depend on sys_socket.
51663
51664 2006-01-20  Simon Josefsson  <jas@extundo.com>
51665
51666         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
51667
51668 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
51669
51670         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
51671         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
51672         Suggested by Bruno Haible.
51673
51674 2006-01-20  Karl Berry  <karl@gnu.org>
51675
51676         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
51677         until changes propagate, I guess.
51678
51679 2006-01-19  Simon Josefsson  <jas@extundo.com>
51680
51681         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
51682
51683 2006-01-19  Simon Josefsson  <jas@extundo.com>
51684
51685         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
51686
51687 2006-01-19  Simon Josefsson  <jas@extundo.com>
51688
51689         * gnulib-tool: Set check_PROGRAMS.
51690
51691         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
51692         modules/des-tests, modules/gc-arcfour-tests,
51693         modules/gc-arctwo-tests, modules/gc-des-tests,
51694         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
51695         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
51696         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
51697         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
51698         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
51699         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
51700         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
51701         test_*_SOURCES.
51702
51703 2006-01-18  Simon Josefsson  <jas@extundo.com>
51704
51705         * modules/socklen (Depends-on): Depend on sys_socket.
51706
51707 2006-01-18  Simon Josefsson  <jas@extundo.com>
51708
51709         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
51710         modules/des-tests, modules/gc-arcfour-tests,
51711         modules/gc-arctwo-tests, modules/gc-des-tests,
51712         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
51713         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
51714         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
51715         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
51716         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
51717         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
51718         $(EXEEXT) to automake TESTS variable, for mingw32.
51719
51720 2006-01-17  Simon Josefsson  <jas@extundo.com>
51721
51722         * modules/socklen (Include): Need sys/socket.h.
51723
51724 2006-01-17  Bruno Haible  <bruno@clisp.org>
51725
51726         * modules/ssize_t (Include): Add <sys/types.h>.
51727
51728 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
51729
51730         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
51731         it's not portable and it doesn't work with cross-compiles.
51732         Problem reported by Bruno Haible.  Fix missing-$ typo in
51733         'test "gl_cv_ignore_unused_libraries" ...' that prevented
51734         -zignore from being used with Sun's C compiler.
51735
51736 2006-01-12  Simon Josefsson  <jas@extundo.com>
51737
51738         * lib/base64.c: Fix warning, reported by Bruno Haible
51739         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
51740
51741 2006-01-12  Bruno Haible  <bruno@clisp.org>
51742
51743         * modules/ldd: New file.
51744         * build-aux/ldd.sh.in: New file.
51745         * MODULES.html.sh (Support for building libraries and executables): Add
51746         ldd.
51747
51748 2006-01-12  Bruno Haible  <bruno@clisp.org>
51749
51750         * m4/ldd.m4: New file.
51751
51752 2006-01-12  Bruno Haible  <bruno@clisp.org>
51753
51754         * gnulib-tool (func_import, func_create_testdir): Don't go into an
51755         endless loop while replacing $auxdir with build-aux.
51756
51757 2006-01-11  Simon Josefsson  <jas@extundo.com>
51758
51759         * lib/stdint_.h (SIZE_MAX): Add missing (.
51760
51761 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
51762
51763         Sync from coreutils.
51764         * lib/md5.c: Fix commentary typos.
51765         (alignof, UNALIGNED_P): No need for a GCC-specific version.
51766         * lib/md5.h (__attribute__): Remove; unused.
51767         * lib/sha1.c: Fix commentary to match md5 better.
51768         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
51769         so that we don't need to worry about alignment.  All uses changed.
51770         This merges the 2005-10-28 md5 change into sha1.
51771
51772 2006-01-11  Jim Meyering  <jim@meyering.net>
51773
51774         Sync from coreutils.
51775         * lib/md5.c (OP): Fix spacing.
51776
51777 2006-01-11  Bruno Haible  <bruno@clisp.org>
51778
51779         Ensure automatic ordering between gl_LOCK and gl_ARGP.
51780         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
51781         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
51782
51783 2006-01-11  Bruno Haible  <bruno@clisp.org>
51784
51785         Ensure automatic ordering between gl_LOCK and gl_ARGP.
51786         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
51787         the "early" section as well.
51788
51789 2006-01-11  Bruno Haible  <bruno@clisp.org>
51790
51791         Avoid "ar: no archive members specified" error on MacOS X.
51792         * gnulib-tool (func_modules_add_dummy): New function.
51793         (func_import, func_create_testdir): Invoke it.
51794
51795 2006-01-11  Bruno Haible  <bruno@clisp.org>
51796
51797         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
51798         with $auxdir in AC_CONFIG_FILES statements.
51799
51800 2006-01-11  Bruno Haible  <bruno@clisp.org>
51801
51802         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51803         Initialize also noinst_HEADERS to empty.
51804
51805 2006-01-11  Bruno Haible  <bruno@clisp.org>
51806
51807         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
51808         variables.
51809         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
51810         autoreconf.
51811
51812 2006-01-11  Bruno Haible  <bruno@clisp.org>
51813
51814         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
51815         overridable by the user.
51816         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51817
51818 2006-01-10  Simon Josefsson  <jas@extundo.com>
51819
51820         * modules/sys_socket: New file.
51821
51822 2006-01-10  Simon Josefsson  <jas@extundo.com>
51823
51824         * m4/sys_socket_h.m4: New file.
51825
51826 2006-01-10  Simon Josefsson  <jas@extundo.com>
51827
51828         * lib/socket_.h: New file.
51829
51830 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
51831
51832         * modules/readutmp (Maintainer): Add myself.
51833
51834 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
51835
51836         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
51837         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
51838         People who are still concerned with buggy memcmp implementations
51839         can invoke gl_FUNC_MEMCMP themselves.
51840
51841 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
51842
51843         * lib/regex_internal.h (BITSET_WORD_BITS):
51844         Work around a bug in 64-bit PGC (before version 6.1-2), where the
51845         preprocessor mishandles large unsigned values as if they were signed.
51846         Problem reported by Claudio Fontana in
51847         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
51848
51849 2006-01-10  Jim Meyering  <jim@meyering.net>
51850
51851         Avoid the double-free (first in fts_read, second in fts_close) that
51852         would occur when an `active' directory is made inaccessible (e.g.,
51853         via chmod a-x) during a traversal.
51854         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
51855         before returning.  Reproduce this failure by
51856         mkdir -p a/b; cd a; chmod a-x . b
51857         Reported by Stavros Passas.
51858
51859         Sync from coreutils.
51860         * lib/sha1.c: Tweak grammar in a comment.
51861
51862 2006-01-10  Jim Meyering  <jim@meyering.net>
51863
51864         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
51865         Patch by Joerg Sonnenberger.
51866
51867 2006-01-10  Bruno Haible  <bruno@clisp.org>
51868
51869         * modules/readutmp: Depend on module free.
51870         * modules/strtok_r: Depend on module restrict.
51871
51872 2006-01-10  Bruno Haible  <bruno@clisp.org>
51873
51874         * modules/gettext (configure.ac): Add an invocation of
51875         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
51876
51877 2006-01-10  Bruno Haible  <bruno@clisp.org>
51878
51879         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
51880         Reported by Werner Lemberg <wl@gnu.org>.
51881
51882 2006-01-10  Bruno Haible  <bruno@clisp.org>
51883
51884         * lib/localcharset.c: Update from GNU gettext.
51885
51886 2006-01-10  Bruno Haible  <bruno@clisp.org>
51887
51888         * lib/argp.h (__const): Remove macro. Use const instead.
51889         * lib/argp-fmtstream.h (__const): Likewise.
51890         * lib/glob_.h (__const): Remove macro.
51891         * lib/glob-libc.h: Use const instead of __const.
51892
51893 2006-01-10  Bruno Haible  <bruno@clisp.org>
51894
51895         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
51896         variable.
51897         Needed to avoid an automake error regarding the 'gettext' module.
51898
51899 2006-01-09  Simon Josefsson  <jas@extundo.com>
51900
51901         * modules/inet_ntop (Depends-on): Add restrict.
51902
51903 2006-01-09  Simon Josefsson  <jas@extundo.com>
51904
51905         * modules/gc-rijndael-tests (License): Put under LGPL.
51906
51907         * modules/gc-des-tests (License): Likewise.
51908
51909         * modules/gc-arcfour-tests (License): Likewise.
51910
51911         * modules/gc-arctwo-tests (License): Likewise.
51912
51913         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
51914
51915         * modules/gc-hmac-sha1-tests (Files): Likewise.
51916
51917         * modules/gc-hmac-md5-tests (License): Likewise.
51918
51919         * modules/gc-sha1-tests (License): Likewise.
51920
51921         * modules/gc-md5-tests (License): Likewise.
51922
51923         * modules/gc-md4-tests (License): Likewise.
51924
51925         * modules/gc-md2-tests (License): Likewise.
51926
51927         * modules/gc-tests (License): Likewise.
51928
51929         * modules/des-tests (License): Likewise.
51930
51931         * modules/md4-tests (License): Likewise.
51932
51933         * modules/md2-tests (License): Likewise.
51934
51935 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
51936
51937         Sync from coreutils:
51938
51939         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
51940         * modules/lib-ignore: New file.
51941         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
51942         chdir-safer.m4, lchmod.m4.
51943         * modules/openat: Add mkdirat.c, openat-priv.h.
51944
51945 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
51946
51947         Sync from coreutils.
51948         * m4/lib-ignore.m4: New file.
51949         * m4/lchmod.m4: New file.
51950
51951 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
51952
51953         Sync from coreutils.
51954         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
51955         for write access: POSIX says that must fail.
51956         * lib/fts.c (diropen): Likewise.
51957         * lib/save-cwd.c (save_cwd): Likewise.
51958         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
51959         well, for minor improvements on hosts that lack O_DIRECTORY.
51960         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
51961         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
51962         Fall back on chown if open failed with EACCES.
51963
51964         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
51965         Report an error at compile-time if only a 1-second nominal clock
51966         resolution is found.
51967
51968         * lib/lchmod.h: New file.
51969         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
51970         (make_dir_parents): Use lchown rather than chown, and
51971         lchmod rather than chmod.
51972
51973         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
51974         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
51975         "proc" reported by n0dalus.
51976
51977         * lib/mountlist.c: Include <limits.h>.
51978         (dev_from_mount_options)
51979         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
51980         New function.  It no longer assumes "dev=" has the System V meaning
51981         on Linux (since it doesn't).  It also parses "dev=" more carefully.
51982         (read_file_system_list)
51983         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
51984         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
51985         dev= in that case.
51986
51987         * lib/posixtm.h (PDS_PRE_2000): New macro.
51988         * lib/posixtm.c (year): Arg is now syntax_bits rather than
51989         allow_century.  All usages changed.  Reject dates outside the range
51990         1969-1999 if PDS_PRE_2000 is used.
51991
51992 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
51993
51994         Sync from coreutils.
51995         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
51996         (Time of day items): Mention the possibility of leap seconds.
51997         Problem reported by Dr. David Alan Gilbert.
51998
51999 2006-01-09  Jim Meyering  <jim@meyering.net>
52000
52001         Sync from coreutils.
52002
52003         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
52004
52005         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
52006
52007         * lib/modechange.c (mode_compile): Reject an invalid mode string
52008         that starts with an octal digit.  From Andreas Gruenbacher.
52009
52010         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
52011         and dup to open_safer and dup_safer, respectively.
52012         (openat_permissive): Fix typo in comment.
52013
52014         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
52015         "gettext.h"; either no longer needed or are guaranteed by openat.h.
52016         (_): Remove; no longer needed.
52017         (openat): Renamed from rpl_openat; no need for rpl_openat
52018         since openat.h renames openat for us.
52019         Replace most of the body with a call to openat_permissive,
52020         to avoid duplicate code.
52021         Port to (probably hypothetical) environments were mode_t is
52022         wider than int.
52023         (openat_permissive): Require mode arg, so that we can check
52024         types better.  Put it just after flags.  Change cwd failure
52025         indicator from pointer-to-bool to pointer-to-errno-value.
52026         All callers changed.
52027         Invoke openat_save_fail and/or openat_restore_fail if
52028         cwd_errno is null, so that openat can call us.
52029         (openat_permissive, fdopendir, fstatat, unlinkat):
52030         Simplify errno handling to avoid some duplicate code,
52031         as it's OK to set errno on success.
52032         * lib/openat.h: Revamp code so that function macros depend on
52033         __OPENAT_PREFIX only, not also on AT_FDCWD.
52034         (openat_ro): Remove.  Caller changed to use openat_permissive.
52035         (openat_permissive): Now a macro, if not a function.
52036         (openat_restore_fail, openat_save_fail): Now always functions,
52037         since mkdirat needs them even if __OPENAT_PREFIX is defined.
52038
52039         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
52040         and openat.c.
52041         * lib/mkdirat.c: Include openat-priv.h.
52042         Remove definitions of macros defined therein.
52043         * lib/openat.c: Likewise.
52044
52045         * lib/mkdirat.c (mkdirat): New file and function.
52046         * lib/openat.h (mkdirat): Declare.
52047
52048         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
52049
52050         * lib/openat.h (openat_permissive): Declare.
52051         (openat_ro): Define.
52052
52053         * lib/openat.c (EXPECTED_ERRNO): New macro.
52054         (openat_permissive): New function -- used in remove.c rewrite.
52055         (all functions): Set errno just before returning, only if there
52056         was an actual failure.
52057         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
52058
52059         Emulate openat-family functions using Linux's procfs, if possible.
52060         Idea and some code based on Ulrich Drepper's glibc changes.
52061
52062         * lib/openat.c: (BUILD_PROC_NAME): New macro.
52063         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
52064         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
52065         before falling back on save_cwd and restore_cwd.
52066         (fdopendir, fstatat, unlinkat): Likewise.
52067
52068         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
52069         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
52070
52071         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
52072         as second argument to va_arg.  Otherwise, some versions of gcc
52073         warn that `if this code is reached, the program will abort'.
52074
52075 2006-01-09  Jim Meyering  <jim@meyering.net>
52076
52077         Sync from coreutils.
52078         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
52079         Require openat-priv.h.
52080
52081 2006-01-09  Bruno Haible  <bruno@clisp.org>
52082
52083         * modules/strnlen (Include): Use strnlen.h.
52084
52085 2006-01-09  Bruno Haible  <bruno@clisp.org>
52086
52087         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
52088
52089 2006-01-09  Bruno Haible  <bruno@clisp.org>
52090
52091         * lib/sysexit_.h (EX_OK): New macro.
52092         Suggested by Martin Lambers <marlam@marlam.de>.
52093
52094 2006-01-09  Bruno Haible  <bruno@clisp.org>
52095
52096         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
52097         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
52098
52099 2006-01-09  Bruno Haible  <bruno@clisp.org>
52100
52101         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
52102         numbers.
52103
52104 2006-01-09  Bruno Haible  <bruno@clisp.org>
52105
52106         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
52107         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
52108         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
52109         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
52110
52111 2006-01-09  Bruno Haible  <bruno@clisp.org>
52112
52113         * build-aux/javacomp.sh.in: New file, moved from lib/.
52114         * modules/javacomp-script (Files): Update.
52115         (configure.ac): Add AC_CONFIG_FILES invocation.
52116         (EXTRA_DIST): Remove variable.
52117
52118         * build-aux/javaexec.sh.in: New file, moved from lib/.
52119         * modules/javaexec (Files): Update.
52120         (configure.ac): Add AC_CONFIG_FILES invocation.
52121         (EXTRA_DIST): Remove javaexec.sh.in.
52122
52123         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
52124         * modules/csharpcomp-script (Files): Update.
52125         (configure.ac): Add AC_CONFIG_FILES invocation.
52126         (EXTRA_DIST): Remove variable.
52127
52128         * build-aux/csharpexec.sh.in: New file, moved from lib/.
52129         * modules/csharpexec (Files): Update.
52130         (configure.ac): Add AC_CONFIG_FILES invocation.
52131         (EXTRA_DIST): Remove csharpexec.sh.in.
52132
52133 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
52134
52135         Sync from coreutils.
52136
52137         Add POSIX ACL support
52138         * lib/acl.h (copy_acl, set_acl): Add declarations.
52139         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
52140         systems other than Linux.
52141         (chmod_or_fchmod): New function: use fchmod when possible,
52142         and chmod otherwise.
52143         (file_has_acl): Add a POSIX ACL implementation, with a
52144         Linux-specific subcase.
52145         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
52146         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
52147         acls are unsupported.
52148         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
52149         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
52150         are unsupported.
52151
52152 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
52153
52154         Sync from coreutils.
52155         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
52156
52157 2006-01-07  Bruno Haible  <bruno@clisp.org>
52158
52159         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
52160         gl_EARLY.
52161
52162 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
52163
52164         * lib/strftime.c (tzname): Don't declare if it is already #defined.
52165         Problem reported for Mingw by Mark Junker.
52166
52167 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
52168
52169         * README: Gnulib normally doesn't generate a tarball.
52170
52171 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
52172
52173         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
52174         long int, not int, for nanosecond counts, so that people who are
52175         used to POSIX struct timespec won't be surprised.  Reported by Jim
52176         Meyering.
52177
52178 2005-12-28  Bruno Haible  <bruno@clisp.org>
52179
52180         * build-aux/config.rpath: Update from GNU gettext.
52181
52182 2005-12-16  Jim Meyering  <jim@meyering.net>
52183
52184         * modules/fprintftime: New module.
52185         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
52186
52187 2005-12-16  Jim Meyering  <jim@meyering.net>
52188
52189         * m4/fprintftime.m4: New file.
52190
52191 2005-12-16  Jim Meyering  <jim@meyering.net>
52192
52193         * lib/fprintftime.c, lib/fprintftime.h: New files.
52194
52195 2005-12-15  Simon Josefsson  <jas@extundo.com>
52196
52197         * modules/socklen (configure.ac): Fix M4 macro name, to align with
52198         new m4/socklen.m4.
52199
52200 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
52201
52202         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
52203         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
52204
52205 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
52206
52207         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
52208         * lib/argp-help.c (fill_in_uparams): Check if the constructed
52209         struct uparams is valid. Fall back to the default values if it is
52210         not.
52211
52212 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
52213
52214         * modules/argp (Files): Add argp-pin.c
52215         (Depends-on): dirname
52216         (lib_SOURCES): Add argp-pin.c
52217
52218 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
52219
52220         * m4/argp.m4:  Check if program_invocation_name and
52221         program_invocation_short_name are declared and define appropriate
52222         macros if they are not.
52223
52224 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
52225
52226         * lib/argp-help.c (__argp_base_name): New function
52227         (__argp_short_program_name): Rewrite using __argp_base_name
52228         * lib/argp-namefrob.h: Define program_invocation_name and
52229         program_invocation_short_name if requested
52230         (__argp_base_name): Add prototype
52231         * lib/argp-parse.c (argp_def): Use gettext wrappers
52232         (argp_default_parser): Use __argp_base_name
52233         * lib/argp-pin.c: New file. Defines program_invocation_name and
52234         program_invocation_short_name on systems that lack them.
52235
52236 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
52237
52238         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
52239         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
52240         porting problem reported by Georg Schwarz in
52241         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
52242
52243 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
52244
52245         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
52246         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
52247         porting problem reported by Georg Schwarz in
52248         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
52249
52250 2005-12-05  Bruno Haible  <bruno@clisp.org>
52251
52252         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
52253         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
52254         Reported by Mark Junker <mjscod@gmx.de>.
52255
52256 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
52257
52258         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
52259         Use implementation from Albert Chin, with some
52260         comments/corrections by Stepan Kasal and myself.
52261
52262 2005-12-02  Bruno Haible  <bruno@clisp.org>
52263
52264         * gnulib-tool (func_import): Accept GPLed build tool modules when
52265         --lgpl is given.
52266         * modules/csharpcomp-script: New file.
52267         * modules/csharpcomp: Depend on it.
52268         * modules/javacomp-script: New file.
52269         * modules/javacomp: Depend on it.
52270         Suggested by Simon Josefsson.
52271
52272 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
52273
52274         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
52275         statement, to work around an HP-UX 10.20 compiler bug reported by
52276         Peter O'Gorman.
52277
52278 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
52279
52280         * modules/savedir (Depends-on): Add openat.
52281
52282 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
52283
52284         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
52285         (uintmax_t) [defined uintmax_t]: Do not declare.
52286         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
52287         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
52288         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
52289         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
52290         sake of portability to weird hosts that C allows (though we don't
52291         know of any practical examples).
52292
52293         * lib/savedir.h (fdsavedir): New decl.
52294         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
52295         contains most of the former guts of savedir.
52296         (savedir): Use savedirstream.
52297         Include "openat.h".
52298
52299 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
52300
52301         * modules/obstack (Files): Add m4/ulonglong.m4.
52302         Problem reported by Davide Angelocola.
52303
52304 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
52305
52306         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
52307         coreutils no longer futzes with rounding modes.
52308
52309 2005-11-14  Jim Meyering  <jim@meyering.net>
52310
52311         * lib/mkstemp-safer.c: Include <config.h>, required for possible
52312         replacement of mkstemp.
52313
52314 2005-11-10  Simon Josefsson  <jas@extundo.com>
52315
52316         * lib/readline.c: Remove EOL.
52317
52318 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
52319
52320         * modules/gethrxtime (Depends-on): Add gettime.
52321
52322 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
52323
52324         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
52325         or gettimeofday; no longer needed.
52326
52327 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
52328
52329         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
52330         time business.
52331         (gethrxtime) [! (HAVE_NANOUPTIME
52332         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
52333         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
52334         our own approximation.
52335
52336 2005-11-08  Eric Blake  <ebb9@byu.net>
52337
52338         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
52339
52340 2005-11-08  Eric Blake  <ebb9@byu.net>
52341
52342         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
52343
52344 2005-11-04  Bruno Haible  <bruno@clisp.org>
52345
52346         * gnulib-tool: Implement --update mode.
52347
52348 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
52349
52350         Fix porting problem reported by Theodoros V. Kalamatianos.
52351         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
52352         Don't assume that futimes failing means we must fail.
52353
52354 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
52355
52356         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
52357         variables to suggest the intended function of the PATH_MAX check.
52358
52359 2005-10-30  Kean Johnston  <jkj@sco.com>
52360
52361         Trivial changes to support SCO systems.
52362         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
52363         as PATH_MAX.
52364         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
52365         where __ptr is null when no I/O is pending.
52366
52367 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
52368
52369         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
52370         leave errno alone.  Problem reported by Dmitry V. Levin.
52371
52372 2005-10-28  Simon Josefsson  <jas@extundo.com>
52373
52374         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
52375         Test more.
52376
52377         * tests/test-gc-md2.c, tests/test-md2.c: New files.
52378
52379         * modules/md2, modules/md2-tests: New files.
52380
52381 2005-10-28  Simon Josefsson  <jas@extundo.com>
52382
52383         * m4/inet_ntop.m4: More tests.
52384
52385         * m4/gc-md2.m4, md2.m4: New file.
52386
52387 2005-10-28  Simon Josefsson  <jas@extundo.com>
52388
52389         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
52390         "restrict" keywords, as per POSIX.  Protect the function
52391         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
52392         Don't use K&R prototypes.  Check the sprintf return values.
52393         Re-define EAFNOSUPPORT if not present.  Indent.
52394
52395         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
52396         suggested by Bruno Haible <bruno@clisp.org>.
52397
52398         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
52399
52400         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
52401
52402         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
52403         libgcrypt).
52404
52405         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
52406
52407         * lib/md2.h, lib/md2.c: New files.
52408
52409 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
52410
52411         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
52412         errno alone.  Problem reported by Frederic Jolliton.
52413
52414 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
52415
52416         * modules/verify (License): Change from GPL to LGPL.  This is a
52417         tiny module and there are apparently near-equivalents that are
52418         under the BSD license.
52419
52420 2005-10-24  Simon Josefsson  <jas@extundo.com>
52421
52422         * modules/sha1: Relicense to LGPL.
52423
52424 2005-10-24  Simon Josefsson  <jas@extundo.com>
52425
52426         * lib/md4.h: Shrink buffer size, now that we changed the type.
52427
52428 2005-10-23  Simon Josefsson  <jas@extundo.com>
52429
52430         * gnulib-tool (func_import): Fix --tests-base.
52431
52432 2005-10-22  Simon Josefsson  <jas@extundo.com>
52433
52434         * modules/arcfour (Depends-on): Need stdint.
52435
52436 2005-10-22  Simon Josefsson  <jas@extundo.com>
52437
52438         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
52439         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
52440
52441 2005-10-22  Simon Josefsson  <jas@extundo.com>
52442
52443         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
52444         suggested by Bruno Haible <bruno@clisp.org>.
52445
52446 2005-10-22  Simon Josefsson  <jas@extundo.com>
52447
52448         * lib/crc.h: Include stddef.h, for size_t.
52449
52450 2005-10-22  Simon Josefsson  <jas@extundo.com>
52451
52452         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
52453         arcfour_context struct (simplify test vector testing in GNU
52454         Shishi).
52455
52456 2005-10-21  Simon Josefsson  <jas@extundo.com>
52457
52458         * modules/des, modules/des-tests: New files.
52459
52460         * modules/gc-des, modules/gc-des-tests: New files.
52461
52462         * tests/test-des.c, tests/test-gc-des.c: New file.
52463
52464 2005-10-21  Simon Josefsson  <jas@extundo.com>
52465
52466         * modules/arctwo, modules/arctwo-tests: New files.
52467
52468         * tests/test-arctwo.c: New file.
52469
52470         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
52471
52472         * tests/test-gc-arctwo.c: New file.
52473
52474 2005-10-21  Simon Josefsson  <jas@extundo.com>
52475
52476         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
52477         Bruno Haible <bruno@clisp.org>.
52478
52479         * m4/gc-des.m4: New file.
52480
52481 2005-10-21  Simon Josefsson  <jas@extundo.com>
52482
52483         * m4/arctwo.m4: New file.
52484
52485         * m4/gc-arctwo.m4: New file.
52486
52487 2005-10-21  Simon Josefsson  <jas@extundo.com>
52488
52489         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
52490         block.
52491
52492 2005-10-21  Simon Josefsson  <jas@extundo.com>
52493
52494         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
52495         <bruno@clisp.org>.
52496
52497         * lib/hmac-sha1.c (hmac_sha1): Likewise.
52498
52499         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
52500         Bruno Haible <bruno@clisp.org>.
52501
52502         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
52503         <bruno@clisp.org>.
52504
52505 2005-10-21  Simon Josefsson  <jas@extundo.com>
52506
52507         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
52508
52509 2005-10-21  Simon Josefsson  <jas@extundo.com>
52510
52511         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
52512
52513 2005-10-21  Simon Josefsson  <jas@extundo.com>
52514
52515         * lib/des.h, lib/des.c: New files.
52516
52517         * lib/gc-gnulib.c: Support DES.c
52518
52519 2005-10-21  Simon Josefsson  <jas@extundo.com>
52520
52521         * lib/arctwo.h, lib/arctwo.c: New files.
52522
52523         * lib/gc-gnulib.c: Support ARCTWO.
52524
52525 2005-10-21  Simon Josefsson  <jas@extundo.com>
52526
52527         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
52528         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52529
52530 2005-10-21  Simon Josefsson  <jas@extundo.com>
52531
52532         * gnulib-tool (func_import, func_create_testdir): Define automake
52533         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
52534         Makefile.am snippet),
52535         suggested by Bruno Haible <bruno@clisp.org>.
52536
52537         * modules/gc (Makefile.am): Use it.
52538
52539 2005-10-21  Bruno Haible  <bruno@clisp.org>
52540
52541         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
52542         patch.
52543
52544 2005-10-19  Simon Josefsson  <jas@extundo.com>
52545
52546         * tests/test-gc-rijndael.c: New file.
52547
52548         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
52549
52550 2005-10-19  Simon Josefsson  <jas@extundo.com>
52551
52552         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
52553         interface too.
52554
52555 2005-10-19  Simon Josefsson  <jas@extundo.com>
52556
52557         * tests/test-gc-arcfour.c: New file.
52558
52559         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
52560
52561 2005-10-19  Simon Josefsson  <jas@extundo.com>
52562
52563         * modules/gc-md4, modules/gc-md4-tests: New file.
52564
52565         * tests/test-gc-md4.c: New file.
52566
52567 2005-10-19  Simon Josefsson  <jas@extundo.com>
52568
52569         * m4/gc-md4.m4: New file.
52570
52571 2005-10-19  Simon Josefsson  <jas@extundo.com>
52572
52573         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
52574         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
52575         <kasal@ucw.cz>.
52576
52577 2005-10-19  Simon Josefsson  <jas@extundo.com>
52578
52579         * m4/gc-arcfour.m4: New file.
52580
52581         * m4/gc-rijndael.m4: New file.
52582
52583 2005-10-19  Simon Josefsson  <jas@extundo.com>
52584
52585         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
52586
52587 2005-10-19  Simon Josefsson  <jas@extundo.com>
52588
52589         * lib/gc-gnulib.c: Support ARCFOUR.
52590
52591 2005-10-19  Simon Josefsson  <jas@extundo.com>
52592
52593         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
52594         support.
52595
52596         * lib/gc.h: Add ECB enum type.
52597
52598         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
52599
52600 2005-10-18  Simon Josefsson  <jas@extundo.com>
52601
52602         * tests/test-md5.c: New file.
52603
52604         * modules/md5-tests: New file.
52605
52606 2005-10-18  Simon Josefsson  <jas@extundo.com>
52607
52608         * tests/test-md4.c: New file.
52609
52610         * modules/md4, modules/md4-tests: New files.
52611
52612 2005-10-18  Simon Josefsson  <jas@extundo.com>
52613
52614         * m4/md4.m4: New file.
52615
52616 2005-10-18  Simon Josefsson  <jas@extundo.com>
52617
52618         * lib/md4.h, lib/md4.c: New files, based on md5.?.
52619
52620 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
52621
52622         * gnulib-tool (func_create_testdir): Omit the second check whether
52623         BUILT_SOURCES in nonempty.
52624
52625 2005-10-17  Simon Josefsson  <jas@extundo.com>
52626
52627         * tests/test-rijndael.c: New file.
52628
52629 2005-10-17  Simon Josefsson  <jas@extundo.com>
52630
52631         * modules/sha1: Depend on stdint instead of md5.
52632
52633         * modules/md5: Depend on stdint, remove uint32_t.
52634
52635 2005-10-17  Simon Josefsson  <jas@extundo.com>
52636
52637         * modules/gc-sha1-tests: New file.
52638
52639         * tests/test-gc-sha1.c: New file.
52640
52641 2005-10-17  Simon Josefsson  <jas@extundo.com>
52642
52643         * m4/md5.m4: Remove call to uint32_t.m4.
52644
52645 2005-10-17  Simon Josefsson  <jas@extundo.com>
52646
52647         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
52648
52649         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
52650         md5.h.
52651
52652         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
52653
52654         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
52655
52656 2005-10-17  Simon Josefsson  <jas@extundo.com>
52657
52658         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
52659
52660 2005-10-17  Simon Josefsson  <jas@extundo.com>
52661
52662         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
52663
52664 2005-10-17  Simon Josefsson  <jas@extundo.com>
52665
52666         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
52667
52668         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
52669
52670 2005-10-17  Bruno Haible  <bruno@clisp.org>
52671
52672         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
52673         that it can also be used in a test.
52674
52675 2005-10-16  Bruno Haible  <bruno@clisp.org>
52676
52677         * gnulib-tool (func_emit_tests_Makefile_am): Also define
52678         TESTS_ENVIRONMENT, so that individual tests can augment it.
52679
52680         * gnulib-tool (func_create_testdir): Use an intermediate target for
52681         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
52682         macros, like $(ALLOCA_H), which cannot be passed through the command
52683         line.
52684
52685 2005-10-15  Simon Josefsson  <jas@extundo.com>
52686
52687         * modules/rijndael-tests: New file.
52688
52689         * modules/rijndael: New file.
52690
52691 2005-10-15  Simon Josefsson  <jas@extundo.com>
52692
52693         * m4/rijndael.m4: New file.
52694
52695 2005-10-15  Simon Josefsson  <jas@extundo.com>
52696
52697         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
52698
52699         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
52700
52701 2005-10-14  Simon Josefsson  <jas@extundo.com>
52702
52703         * tests/test-arcfour.c: New file.
52704
52705         * modules/arcfour, modules/arcfour-tests: New files.
52706
52707 2005-10-14  Simon Josefsson  <jas@extundo.com>
52708
52709         * m4/arcfour.m4: New file.
52710
52711 2005-10-14  Simon Josefsson  <jas@extundo.com>
52712
52713         * lib/arcfour.h, lib/arcfour.c: New files.
52714
52715 2005-10-14  Roland McGrath  <roland@redhat.com>
52716
52717         Import from libc.  [BZ #1331]
52718         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
52719         macro argument.
52720         Reported by Matej Vela <vela@debian.org>.
52721
52722 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
52723
52724         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
52725         include <wchar.h>; no longer needed.
52726
52727 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
52728
52729         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
52730
52731 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
52732         and  Ulrich Drepper  <drepper@redhat.com>
52733
52734         Import from libc.
52735         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
52736         instead of inline stream orientation test and two separate
52737         function calls.  Pay no attention to USE_IN_LIBIO.
52738
52739 2005-10-13  Simon Josefsson  <jas@extundo.com>
52740
52741         * modules/gc-hmac-md5-tests: New file.
52742
52743         * tests/test-gc-hmac-sha1.c: New file.
52744
52745         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
52746
52747         * modules/gc-hmac-md5-tests: New file.
52748
52749         * tests/test-gc-md5.c: New file.
52750
52751         * modules/gc-md5-tests: New file.
52752
52753 2005-10-13  Simon Josefsson  <jas@extundo.com>
52754
52755         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
52756         Move memory allocation outside of loop.
52757
52758 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
52759
52760         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
52761         intermediate directory is in a read-only file system.  Problem
52762         reported by Eric Blake.
52763
52764 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
52765
52766         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
52767
52768 2005-10-12  Simon Josefsson  <jas@extundo.com>
52769
52770         * tests/test-hmac-sha1.c: New file.
52771
52772         * modules/hmac-sha1-tests: New file.
52773
52774         * modules/hmac-sha1: New file.
52775
52776 2005-10-12  Simon Josefsson  <jas@extundo.com>
52777
52778         * modules/gc-sha1: New file.
52779
52780 2005-10-12  Simon Josefsson  <jas@extundo.com>
52781
52782         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
52783
52784         * tests/test-gc-pbkdf2-sha1.c: New file.
52785
52786 2005-10-12  Simon Josefsson  <jas@extundo.com>
52787
52788         * modules/gc-md5, modules/gc-hmac-md5: New files.
52789
52790         * modules/gc (Files): Remove md5, memxor and hmac files.
52791
52792 2005-10-12  Simon Josefsson  <jas@extundo.com>
52793
52794         * m4/gc-pbkdf2-sha1.m4: New file.
52795
52796         * m4/gc-hmac-sha1.m4: New file.
52797
52798         * m4/gc-sha1: New file.
52799
52800         * m4/hmac-sha1.m4: New file.
52801
52802 2005-10-12  Simon Josefsson  <jas@extundo.com>
52803
52804         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
52805
52806         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
52807
52808 2005-10-12  Simon Josefsson  <jas@extundo.com>
52809
52810         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
52811         suggested by Bruno Haible <bruno@clisp.org>.
52812
52813 2005-10-12  Simon Josefsson  <jas@extundo.com>
52814
52815         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
52816
52817 2005-10-12  Simon Josefsson  <jas@extundo.com>
52818
52819         * lib/gc-pbkdf2-sha1.c: New file.
52820
52821         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
52822
52823 2005-10-12  Simon Josefsson  <jas@extundo.com>
52824
52825         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
52826
52827         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
52828
52829 2005-10-12  Simon Josefsson  <jas@extundo.com>
52830
52831         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
52832         GC_USE_HMAC_MD5, respectively.
52833
52834         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
52835         (gc_md5): Fix typo.
52836
52837         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
52838
52839         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
52840
52841         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
52842
52843 2005-10-12  Bruno Haible  <bruno@clisp.org>
52844
52845         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
52846         Reported by Stepan Kasal <kasal@ucw.cz>.
52847
52848 2005-10-11  Simon Josefsson  <jas@extundo.com>
52849
52850         * tests/test-crc.c: New file.
52851
52852         * modules/crc, modules/crc-tests: New files.
52853
52854 2005-10-11  Simon Josefsson  <jas@extundo.com>
52855
52856         * m4/crc.m4: New file.
52857
52858 2005-10-11  Simon Josefsson  <jas@extundo.com>
52859
52860         * lib/gc.h: Add gc_hash and gc_hash_buffer.
52861
52862         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
52863
52864         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
52865
52866 2005-10-11  Simon Josefsson  <jas@extundo.com>
52867
52868         * lib/crc.h, lib/crc.c: New files.
52869
52870         * lib/gc.h (gc_hash_buffer): Add doc.
52871
52872 2005-10-11  Bruno Haible  <bruno@clisp.org>
52873
52874         * modules/c-strcasestr: New file.
52875         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
52876
52877 2005-10-11  Bruno Haible  <bruno@clisp.org>
52878
52879         * modules/c-strcase: New file.
52880         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
52881
52882 2005-10-11  Bruno Haible  <bruno@clisp.org>
52883
52884         * lib/strcasecmp.c: Include limits.h.
52885         (strcasecmp): Avoid integer overflow on exotic platforms.
52886         * lib/strncasecmp.c: Include limits.h.
52887         (strncasecmp): Avoid integer overflow on exotic platforms.
52888         Reported by Paul Eggert.
52889
52890 2005-10-11  Bruno Haible  <bruno@clisp.org>
52891
52892         * lib/c-strcasestr.h: New file, from GNU gettext.
52893         * lib/c-strcasestr.c: New file, from GNU gettext.
52894
52895 2005-10-11  Bruno Haible  <bruno@clisp.org>
52896
52897         * lib/c-strcase.h: New file, from GNU gettext.
52898         * lib/c-strcasecmp.c: New file, from GNU gettext.
52899         * lib/c-strncasecmp.c: New file, from GNU gettext.
52900
52901 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
52902
52903         * modules/mempcpy (License): GPL -> LGPL.
52904         * modules/strchrnul (License): Likewise.
52905         * modules/sysexits (License): Likewise.
52906
52907 2005-10-08  Simon Josefsson  <jas@extundo.com>
52908
52909         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
52910
52911 2005-10-07  Simon Josefsson  <jas@extundo.com>
52912
52913         * m4/memxor.m4: Remove gl_C_RESTRICT call.
52914
52915 2005-10-06  Simon Josefsson  <jas@extundo.com>
52916
52917         * tests/test-hmac-md5.c: New file.
52918
52919         * modules/hmac-md5-tests: New file.
52920
52921         * modules/hmac-md5: New file.
52922
52923 2005-10-06  Simon Josefsson  <jas@extundo.com>
52924
52925         * m4/hmac-md5.m4: New file.
52926
52927         * m4/memxor.m4: Require gl_C_RESTRICT.
52928
52929 2005-10-06  Simon Josefsson  <jas@extundo.com>
52930
52931         * lib/memxor.c (memxor): Avoid casts and warnings.
52932
52933 2005-10-06  Simon Josefsson  <jas@extundo.com>
52934
52935         * lib/hmac-md5.c: New file.
52936
52937         * lib/hmac.h: New file.
52938
52939 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
52940
52941         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
52942         promotes to int, not unsigned int, to catch the AIX 5.3
52943         compiler bug.
52944
52945 2005-10-05  Simon Josefsson  <jas@extundo.com>
52946
52947         * modules/memxor: New file.
52948
52949         * modules/iconv (Files): Move config.rpath to havelib, it is used
52950         there.
52951
52952         * modules/havelib (Files): Add config.rpath.
52953
52954 2005-10-05  Simon Josefsson  <jas@extundo.com>
52955
52956         * m4/memxor.m4: New file.
52957
52958 2005-10-05  Simon Josefsson  <jas@extundo.com>
52959
52960         * lib/memxor.c (memxor): Fix compiler error.
52961
52962         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
52963         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
52964
52965         * lib/memxor.h, lib/memxor.c: New files.
52966
52967         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
52968         we assume all systems have it, suggested by Jim Meyering
52969         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
52970         any systems lack sys/socket.h; mingw32 is known to lack it, but we
52971         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
52972         same reasons.
52973
52974 2005-10-05  Simon Josefsson  <jas@extundo.com>
52975
52976         * config/srclist.txt: Add glibc bug 1423 for md5.h.
52977
52978 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
52979
52980         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
52981         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
52982         needed, since the source code now assumes these .h files.
52983
52984 2005-10-05  Derek Price  <derek@ximbiot.com>
52985
52986         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
52987
52988 2005-10-05  Bruno Haible  <bruno@clisp.org>
52989
52990         * modules/stdint (License): Change to LGPL.
52991
52992 2005-10-04  Simon Josefsson  <jas@extundo.com>
52993
52994         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
52995         D. Baushke" <mdb@gnu.org>.
52996
52997 2005-10-04  Bruno Haible  <bruno@clisp.org>
52998
52999         * lib/verify.h (verify_true): Provide alternative definition for C++.
53000
53001 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
53002
53003         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
53004         (SSIZE_MAX): New macro, if not already defined.
53005         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
53006         than 2 GiB.
53007
53008 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
53009
53010         Sync from coreutils.
53011         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
53012         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
53013         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
53014         ULLONG_MAX doesn't work with 2.7.2.1.
53015
53016 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
53017
53018         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
53019         From Ben Pfaff.
53020
53021         * modules/exclude (Depends-on): Depend on verify.
53022         * modules/strtoimax (Depends-on): Likewise.
53023         * modules/utimecmp (Depends-on): Likewise.
53024
53025 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
53026
53027         * lib/exclude.c: Include verify.h.
53028         (verify): Remove.  All callers changed to use verify.h's version.
53029         * lib/strtoimax.c: Likewise.
53030         * lib/utimecmp.c: Likewis.e
53031
53032         Sync from coreutils.
53033         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
53034         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
53035         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
53036         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
53037         bother returning ENOSYS if settimeofday or stime fails; just let
53038         them return whatever errno they want to return.
53039         * lib/utimens.c: Include unistd.h, for dup2.
53040         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
53041         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
53042
53043 2005-10-02  Jim Meyering  <jim@meyering.net>
53044
53045         Sync from coreutils.
53046         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
53047         from glibc-2.2.5 that fails for read-only files.
53048
53049 2005-10-02  Jim Meyering  <jim@meyering.net>
53050
53051         Sync from coreutils.
53052         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
53053         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
53054         `#if HAVE_CONFIG_H'.
53055         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
53056         Remove AT_FDCWD test.
53057         Do not consume the fd unless successful.
53058         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
53059         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
53060         block, so that we don't even try to compile it if settimeofday is
53061         available.  This works around a compilation failure on OSF1 V5.1,
53062         due to stime requiring a `long int*' while tv_sec is `int'.
53063
53064 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
53065
53066         Sync from coreutils.
53067         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
53068         against `yes', rather than just testing for nonempty.
53069
53070 2005-10-01  Simon Josefsson  <jas@extundo.com>
53071
53072         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
53073         and Darwin.
53074
53075         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
53076         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
53077         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
53078         freeaddrinfo and gai_strerror are declared by the POSIX headers.
53079         Check if struct addrinfo is declared.
53080
53081 2005-10-01  Simon Josefsson  <jas@extundo.com>
53082
53083         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
53084         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
53085         AI_* and EAI_* definitions.  Protect function declarations.
53086
53087 2005-10-01  Jim Meyering  <jim@meyering.net>
53088
53089         Sync from coreutils.
53090
53091         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
53092         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
53093         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
53094         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
53095         in the inet and nsl libraries.  Required on Solaris 5.7.
53096
53097 2005-10-01  Jim Meyering  <jim@meyering.net>
53098
53099         Sync from coreutils.
53100         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
53101         in the inet and nsl libraries.  Required on Solaris 5.7.
53102
53103 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
53104
53105         * lib/getdelim.c (getdelim): Remove unused variables.
53106
53107 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
53108
53109         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
53110         so that the code works even with ancient cpp.  Portability problem
53111         with GCC 2.7.2.1 reported by Thomas M.Ott.
53112
53113 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
53114
53115         * modules/regex (Depends-on): Add strcase.
53116
53117         * modules/gethostname (Licence): Change from GPL to LGPL, since
53118         gethostname.c is a trivial implementation of a standard library
53119         function.
53120         * modules/poll (License): Change from GPL to LGPL, since it's
53121         derived from LGPL code.
53122
53123 2005-09-27  Jim Meyering  <jim@meyering.net>
53124
53125         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
53126         HAVE_CONFIG_H.
53127
53128         * lib/intprops.h (signed_type_or_expr__): Define.
53129         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
53130         for unsigned types.
53131
53132 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
53133
53134         * lib/verify.h (verify_expr): Remove, replacing with:
53135         (verify_true): New macro that returns true instead of void.
53136         (verify_type__): Remove.
53137         (verify): Use verify_true rather than verify_type__.
53138
53139 2005-09-26  Bruno Haible  <bruno@clisp.org>
53140
53141         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
53142         is necessary.
53143         (lib_SOURCES): Remove mbchar.c.
53144         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
53145         (Files): Add m4/mbrtowc.m4.
53146         * modules/mbiter: Likewise.
53147         * modules/mbuiter: Likewise.
53148
53149 2005-09-26  Bruno Haible  <bruno@clisp.org>
53150
53151         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
53152         compile mbchar.c if they are not both present.
53153         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
53154         * m4/mbiter.m4 (gl_MBITER): Likewise.
53155         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
53156         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
53157         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
53158
53159 2005-09-25  Jim Meyering  <jim@meyering.net>
53160
53161         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
53162         also uses socklen_t.
53163
53164 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
53165
53166         * lib/utimens.c (ENOSYS): Define if not already defined.
53167         (futimens): Support having a null PATH if the file descriptor
53168         is nonnegative.
53169
53170         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
53171         Remove.
53172         (__attribute): Define to empty unless GCC 3.1 or later.
53173         This works around a core dump on OpenBSD 3.4, which has GCC
53174         2.95.3, which dumps core when given __attribute__(()).  It also
53175         simplifies other tests, since we really don't want to bother with
53176         worrying about which ancient version of GCC supported what.
53177         Original problem reported by Yoann Vandoorselaere, with part of
53178         the fix suggested by Derek Price.
53179
53180 2005-09-24  Jim Meyering  <jim@meyering.net>
53181
53182         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
53183         so we can once again use a positive bitfield width of 1 -- now we
53184         don't have to explain why we were using a bitfield width of 2.
53185
53186 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
53187
53188         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
53189         and similarly for the other external symbols.  Problem reported
53190         by James Gallager.
53191
53192         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
53193         bug reported by Jim Meyering.
53194
53195         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
53196         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
53197         not needed, since socklen is a prerequisite module.
53198
53199 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
53200
53201         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
53202         Problem reported by Eric Blake.
53203         (getaddrinfo): Initialize se so that it's not garbage.
53204         Redo internal storage allocation so that it doesn't make unportable
53205         assumptions about alignment.
53206         Fix a memory leak.
53207
53208         * lib/utimens.c (futimens): Use futimesat if available.
53209         Prefer it to futimes since it doesn't have the futimes bug.
53210
53211         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
53212         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
53213         Instead, declare a function that returns a pointer to an array,
53214         and use verify_type__ to declare the size of the array.
53215         Problem and germ of a solution reported by Bruno Haible.
53216         (verify_type__): Use 2, not 1, for bitfield size, to avoid
53217         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
53218
53219 2005-09-23  Jim Meyering  <jim@meyering.net>
53220
53221         Sync from coreutils.
53222         Correct build failure (socklen_t not defined) on at least
53223         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
53224         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
53225
53226 2005-09-23  Jim Meyering  <jim@meyering.net>
53227
53228         * modules/getaddrinfo (Depends-on): Add socklen.
53229
53230 2005-09-23  Bruno Haible  <bruno@clisp.org>
53231
53232         * tests/test-verify.c: New file.
53233
53234 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
53235
53236         Sync from coreutils.
53237
53238         * modules/argmatch (Depends-on): Add verify.
53239         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
53240         unistd-safer.
53241         * modules/save-cwd (Depends-on): Likewise.
53242
53243         * modules/openat (Files): Add lib/openat-die.c.
53244         (Depends-on): Remove error, exitfail.
53245         Add dirname.
53246
53247         * modules/verify: New file.
53248         * MODULES.html.sh (Diagnostics <assert.h>): New section,
53249         with "verify" module.
53250
53251 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
53252
53253         Sync from coreutils.
53254
53255         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
53256         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
53257         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
53258         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
53259         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
53260         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
53261         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
53262         Don't bother checking for string.h, stdlib.h, unistd.h.
53263         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
53264         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
53265         module's job.
53266         * m4/jm-macros.m4 (gl_MACROS): Likewise.
53267         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
53268
53269         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
53270         (gl_GETDATE): Use it.
53271
53272         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
53273
53274 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
53275
53276         Sync from coreutils.
53277
53278         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
53279         stat-time.h.
53280         * lib/argmatch.h: Include verify.h
53281         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
53282         (ARGMATCH_ASSERT): Remove; unused.
53283         * lib/canonicalize.c: Assume STDC_HEADERS.
53284         * lib/exclude.c: Include "strcase.h".
53285         * lib/regex_internal.h [!defined _LIBC]: Likewise.
53286         * lib/getusershell.c: Include stdio--.h rather than stdio.h
53287         and stdio-safer.h.
53288         (getusershell): Call fopen, not fopen_safer.
53289         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
53290         Do not include unistd-safer.h.
53291         (save_cwd): Don't call fd_safer; no longer needed
53292         now that we include fcntl--.h.
53293
53294         * lib/getdate.y (relative_time): New type.
53295         (RELATIVE_TIME_0): New constant.
53296         (parser_control): Use relative_time instead of doing it ourselves.
53297         (%union): Add new relative_time rel member.
53298         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
53299         Now typeless.
53300         (relunit, relunit_snumber): Now of type rel.
53301         (zone, rel, relunit, get_date): Adjust to above changes.
53302
53303         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
53304         Do not include unistd-safer.h.
53305         (getloadavg): Don't call fd_safer; no longer needed
53306         now that we include fcntl--.h.
53307
53308         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
53309         (make_dir_parents): Treat ENOSYS like EEXIST.
53310
53311         Improve quality of diagnostics on restore_cwd failure.
53312         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
53313         (make_dir_parents): Last arg is now int * (for errno), not bool *.
53314         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
53315         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
53316         each time through the loop.  Do not diagnose restore_cwd failure;
53317         that is the caller's job (and perhaps the caller does not care).
53318
53319         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
53320         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
53321         If the file already exists but is not a directory, don't bother
53322         to try to make its parents.
53323         Close potential file descriptor leak if we can't chdir("/") (!).
53324         Don't always return true if chdir($PWD) fails; return true only
53325         if the requested action was done successfully (except for the
53326         chdir($PWD)).
53327         Don't log final directory unless we actually made it.
53328         Refactor to avoid duplicate code to fix up permissions.
53329         Don't attempt to fix up parent permissions if chdir($PWD) fails.
53330
53331         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
53332         to make it a bit faster and (I hope) clearer.
53333         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
53334         Fix bug in formats like %2N.
53335
53336         * lib/verify.h: New file.
53337
53338 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
53339
53340         Sync from coreutils.
53341         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
53342
53343 2005-09-22  Jim Meyering  <jim@meyering.net>
53344
53345         Sync from coreutils.
53346
53347         * m4/lstat.m4 (gl_FUNC_LSTAT):
53348         Use AC_LIBSOURCES to require lstat.c and lstat.h.
53349         Remove obsolete comment.
53350         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
53351         * m4/xstrtod.m4: Likewise.
53352
53353         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
53354
53355 2005-09-22  Jim Meyering  <jim@meyering.net>
53356
53357         Sync from coreutils.
53358
53359         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
53360
53361         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
53362         the .tm_year member, since otherwise gcc-4.0 would now warn about
53363         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
53364
53365         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
53366         order to avoid an unsuppressible warning from gcc on 64-bit systems.
53367
53368         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
53369         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
53370         when run in a time zone for which daylight savings time is in effect
53371         for the starting date.
53372
53373         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
53374         stop us from restricting permissions of just-created absolute-named
53375         directories.
53376         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
53377         to restore initial working directory.
53378         * lib/mkdir-p.c (make_dir_parents): New parameter:
53379         different_working_dir, to tell caller if/when we change the working
53380         directory and are unable to return to the initial one.
53381         * lib/mkdir-p.h (make_dir_parents): Update prototype.
53382         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
53383         `return false'.  This fixes a bug introduced on 2004-07-30.
53384
53385         * lib/openat.c (fdopendir): Be sure to close the supplied
53386         file descriptor before returning.  This makes our replacement
53387         implementation a little closer to Solaris's, where fdopendir
53388         ties the file descriptor to the returned DIR* pointer.
53389         * lib/openat.c (unlinkat): New function.
53390         * lib/openat.h (unlinkat): Add prototype.
53391         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
53392         (openat_restore_fail): Rename from openat_restore_die.
53393         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
53394
53395         Provide an alternative to exiting immediately upon save_cwd or
53396         restore_cwd failure.  Now, an application can arrange e.g.,
53397         to perform a longjump in that case.
53398         * lib/openat.c: Include dirname.h.
53399         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
53400         (rpl_openat, fdopendir, fstatat): Call openat_save_die
53401         and openat_restore_die rather than calling error directly.
53402         Don't include "error.h" or "exitfail.h"; they're no longer needed.
53403
53404         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
53405         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
53406         define.
53407
53408         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
53409         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
53410                             int utc, int nanoseconds);
53411         Background:
53412         date should not have to allocate a megabyte of virtual memory to
53413         handle a format argument like +%1048575T.  When implemented with
53414         strftime, it must allocate such a buffer, use strftime to fill it
53415         in, print it, then free it.
53416         With fprintftime, it simply prints everything and exits.
53417         With no need for memory allocation, that's one fewer way to fail.
53418         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
53419         optional field width, not before, so we accept %9:z, not %:9z.
53420         (my_strftime): Be sure to use L_('x') for literals.
53421
53422         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
53423         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
53424         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
53425         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
53426         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
53427         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
53428         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
53429         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
53430         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
53431         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
53432         * lib/xgethostname.c, lib/xreadlink.c:
53433         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
53434
53435         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
53436         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
53437         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
53438         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
53439         and don't include <sys/file.h>).
53440
53441 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
53442
53443         Sync from coreutils.
53444
53445         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
53446         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
53447         [!LDAV_DONE]: Avoid unused variable warning.
53448
53449 2005-09-21  Bruno Haible  <bruno@clisp.org>
53450
53451         * lib/unicodeio.h (unicode_to_mb): New declaration.
53452
53453 2005-09-20  Derek Price  <derek@ximbiot.com>
53454
53455         * lib/getaddrinfo.c: Don't include <netdb.h> included from
53456         getaddrinfo.h.
53457
53458 2005-09-20  Bruno Haible  <bruno@clisp.org>
53459
53460         * gnulib-tool: Remove trailing slashes from the values specified for
53461         --source-base, --m4-base, --tests-base, --aux-dir.
53462         Suggested by Simon Josefsson <jas@extundo.com>.
53463
53464 2005-09-20  Bruno Haible  <bruno@clisp.org>
53465
53466         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
53467         func_modules_to_filelist, func_import, func_create_testdir): Make all
53468         sorting results locale-independent, so that gnulib-cache.m4 doesn't
53469         change when gnulib-tool is invoked in a different locale.
53470
53471 2005-09-19  Simon Josefsson  <jas@extundo.com>
53472
53473         * m4/socklen.m4: Fix typo.
53474
53475 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53476
53477         Use a consistent style for including <config.h>.
53478         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
53479         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
53480         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
53481         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
53482         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
53483         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
53484         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
53485         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
53486         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
53487         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
53488         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
53489         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
53490         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
53491         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
53492         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
53493         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
53494         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
53495         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
53496         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
53497         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
53498         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
53499         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
53500         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
53501         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
53502         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
53503         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
53504         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
53505         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
53506         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
53507         lib/xstrtoumax.c, lib/yesno.c:
53508         Standardize inclusion of config.h.
53509         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
53510         lib/inttostr.h:  Removed inclusion of config.h from header files.
53511         * lib/inttostr.c:  Adjusted in-tree users.
53512         * lib/timespec.h: Remove superfluous warning to include config.h.
53513         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
53514         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
53515         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
53516         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
53517         config.h with HAVE_CONFIG_H.
53518
53519 2005-09-19  Jim Meyering  <jim@meyering.net>
53520
53521         * modules/pathmax (License): Change to LGPL.
53522
53523 2005-09-19  Derek Price  <derek@ximbiot.com>
53524
53525         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
53526
53527 2005-09-19  Bruno Haible  <bruno@clisp.org>
53528
53529         * gnulib-tool (import): Provide default for --tests-base.
53530
53531 2005-09-19  Bruno Haible  <bruno@clisp.org>
53532
53533         * doc/quote.texi: New file, extracted from gnulib.texi.
53534         * doc/ctime.texi: New file, extracted from gnulib.texi.
53535         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
53536         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
53537         * doc/gnulib.texi: Include them.
53538
53539 2005-09-18  Bruno Haible  <bruno@clisp.org>
53540
53541         Portability fix.
53542         * gnulib-tool (func_readlink): New function.
53543         (func_ln_if_changed): Use it.
53544
53545 2005-09-18  Bruno Haible  <bruno@clisp.org>
53546
53547         * gnulib-tool: Support --with-tests also with --import.
53548         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
53549         (func_import): Use variables $testsbase and $inctests. Emit a
53550         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
53551         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
53552         SUBDIRS += $testsdir.
53553         (func_create_testdir): Update.
53554
53555 2005-09-18  Bruno Haible  <bruno@clisp.org>
53556
53557         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
53558         instead of $dry_run.
53559         (func_cp_if_changed, func_mv_if_changed): Remove functions.
53560         (func_ln_if_changed): Don't handle dry-run here.
53561         (func_import): In dry-run mode, detect more precisely which actions
53562         would be performed, and don't use "...ing" verbs.
53563
53564 2005-09-18  Bruno Haible  <bruno@clisp.org>
53565
53566         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
53567         (func_import): Use join on two temporary files instead of three nested
53568         loops, in order to determine which files are new or old.
53569
53570 2005-09-18  Bruno Haible  <bruno@clisp.org>
53571
53572         * gnulib-tool (func_import): Comment out code that spits out the
53573         new files with --dry-run.
53574
53575 2005-09-18  Bruno Haible  <bruno@clisp.org>
53576
53577         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
53578
53579 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
53580
53581         * lib/stat-time.h: New file.
53582         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
53583         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
53584         in a different way.
53585         (timespec_cmp): New function.
53586         * lib/utimecmp.c: Include stat-time.h.
53587         (SYSCALL_RESOLUTION): Depend on whether various struct stat
53588         members exist, not on the obsolescent ST_MTIM_NSEC.
53589         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
53590
53591 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
53592
53593         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
53594
53595 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
53596
53597         * MODULES.html.sh (File system functions): Add stat-time.
53598         * modules/stat-time: New file.
53599         * modules/timespec (Files): Remove m4/st_mtim.m4; this
53600         is now done in a different way, by the stat-time module.
53601         * modules/utimecmp (Depends-on): Add stat-time.
53602
53603 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
53604
53605         * m4/st_mtim.m4: Remove.  Superseded by...
53606         * m4/stat-time.m4: New file.
53607         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
53608         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
53609
53610 2005-09-15  Derek Price  <derek@ximbiot.com>
53611
53612         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
53613
53614 2005-09-15  Derek Price  <derek@ximbiot.com>
53615
53616         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
53617         * lib/regex_internal.c: Ditto, using this...
53618         (__GNUC_PREREQ): ...new macro.
53619         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
53620         using...
53621         (__GNUC_PREREQ): ...this new macro.
53622
53623         * lib/strstr.h: Include string.h. Define strstr as a macro here.
53624
53625 2005-09-15  Derek Price  <derek@ximbiot.com>
53626             Paul Eggert  <eggert@cs.ucla.edu>
53627
53628         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
53629         changes, consolidating in...
53630         * lib/regex_internal.h: ...this file.
53631
53632 2005-09-13  Jim Meyering  <jim@meyering.net>
53633
53634         * lib/canon-host.c: Filter through gnu indent and reword comments
53635         slightly.
53636         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
53637
53638 2005-09-13  Derek Price  <derek@ximbiot.com>
53639
53640         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
53641         failure.
53642         Reported by Jim Meyering  <jim@meyering.net>.
53643
53644 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
53645
53646         * lib/base64.c: Typo.
53647         (base64_encode): Put b64str in initialized data section.
53648
53649 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
53650
53651         Merge glibc and coreutils changes into gnulib, plus a few
53652         extra fixes.
53653         * lib/md5.c: Use #error rather than a string.
53654         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
53655         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
53656         (__attribute__): Define to empty for non recent-GCC.
53657         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
53658         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
53659         Renamed from their non-__ counterparts, with new macros replacing
53660         them if not _LIBC.  Add __THROW attribute.
53661         (rol): Remove.
53662         (struct md5_ctx): Align buffer if using GCC.
53663         * lib/sha1.h (struct sha1_ctx): Likewise.
53664         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
53665         The old name was backwards.
53666         (NOTSWAP): Remove; not used.
53667         (rol): New macro, moved here from md5.h.
53668         (sha1_process_block): Remove a FIXME that doesn't make sense.
53669
53670 2005-09-12  Derek Price  <derek@ximbiot.com>
53671
53672         Return usable errors from canon-host.
53673         * lib/canon-host.h: New file.
53674         * lib/canon-host.c (canon_host): Wrap...
53675         (canon_host_r): ...this new function, which now relies exclusively on
53676         getaddrinfo.
53677         (ch_strerror): New function.
53678         (last_cherror): New global.
53679         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
53680         interface.
53681         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
53682         void *.
53683         (freeaddrinfo): Free ai->ai_canonname when set.
53684
53685 2005-09-12  Derek Price  <derek@ximbiot.com>
53686
53687         Make canon-host require getaddrinfo.
53688         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
53689         AC_LIBSOURCE canon-host.h.  Call...
53690         (gl_PREREQ_CANON_HOST): ...this new function, which requires
53691         gl_GETADDRINFO.
53692         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
53693
53694 2005-09-12  Derek Price  <derek@ximbiot.com>
53695
53696         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
53697         LGPL.
53698         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
53699
53700 2005-09-12  Derek Price  <derek@ximbiot.com>
53701
53702         * lib/gai_strerror.c: Include config.h when available.  Include
53703         getaddrinfo.h before other headers to test interface.
53704         Reported by Larry Jones <lawrence.jones@ugs.com>.
53705
53706 2005-09-12  Derek Price  <derek@ximbiot.com>
53707             Paul Eggert  <eggert@cs.ucla.edu>
53708
53709         * modules/glob (Files): Add glob-libc.h.
53710
53711 2005-09-12  Derek Price  <derek@ximbiot.com>
53712             Paul Eggert  <eggert@cs.ucla.edu>
53713
53714         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
53715         glob_.h, glob-libc.h.
53716         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
53717
53718 2005-09-12  Derek Price  <derek@ximbiot.com>
53719             Paul Eggert  <eggert@cs.ucla.edu>
53720
53721         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
53722         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
53723         protecting things that should be done only in gnulib contexts.
53724         * lib/glob_.h: New file, containing only the glob things needed for
53725         gnulib.
53726         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
53727         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
53728         (glob, globfree, glob_pattern_p): Now defined simply in terms of
53729         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
53730         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
53731         and to respect the namespace rules better.
53732
53733 2005-09-08  Simon Josefsson  <jas@extundo.com>
53734
53735         * modules/socklen: New file.
53736
53737 2005-09-08  Simon Josefsson  <jas@extundo.com>
53738
53739         * m4/socklen.m4: New file.
53740
53741 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
53742
53743         * modules/utimens (Files): Add m4/utimbuf.m4, since
53744         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
53745         Reported by Sergey Poznyakoff.
53746
53747 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
53748
53749         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
53750         definitions, since that's the preferred style in glibc.
53751         Fix a minor spacing issue, and update copyright notice to match
53752         glibc's.
53753
53754 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
53755
53756         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
53757
53758 2005-09-06  Simon Josefsson  <jas@extundo.com>
53759
53760         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
53761         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
53762
53763 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
53764
53765         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
53766         warning.
53767
53768 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
53769
53770         * config/srclist.txt: Add glibc bug 1302.
53771
53772 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
53773
53774         Change bitset word type from unsigned int to unsigned long int,
53775         as this has better performance on typical 64-bit hosts.
53776         Port bitset code to hosts with unusual word sizes.
53777         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
53778         (build_collating_symbol):
53779         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
53780         argument is a bitset.  This is merely a style issue, but it makes
53781         it clearer that an entire array is expected.
53782         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
53783         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
53784         Port to the case where bitset_word is not the same as unsigned int.
53785         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
53786         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
53787         Likewise.
53788         * lib/regexec.c (check_dst_limits_calc_pos_1,
53789         check_subexp_matching_top):
53790         (build_trtable, group_nodes_into_DFAstates):
53791         Likewise.
53792         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
53793         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
53794         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
53795         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
53796         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
53797         * lib/regcomp.c (optimize_subexps, lower_subexp):
53798         Work even if bitset_word has holes in its bitwise representation.
53799         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
53800         * lib/regexec.c (check_dst_limits_calc_pos_1,
53801         check_subexp_matching_top):
53802         Likewise.
53803         * lib/regex_internal.c (re_string_reconstruct):
53804         Don't assume UCHAR_MAX == 255.
53805         * lib/regex_internal.h (bitset_set_all): Likewise.
53806         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
53807         All uses changed.
53808         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
53809         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
53810         All uses changed.
53811         (BITSET_WORD_MAX): New macro.
53812         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
53813         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
53814         (bitset_empty, bitset_copy):
53815         Prefer sizeof (bitset) to multiplying it out ourselves.
53816         (bitset_not_merge): Remove; unused.
53817         (bitset_contain): Return bool, not unsigned int with one bit on.
53818         All callers changed.
53819         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
53820         alignment than re_node_set; do this by defining a new internal
53821         type struct dests_alloc and using it to allocate memory.
53822
53823 2005-09-05  Bruno Haible  <bruno@clisp.org>
53824
53825         * gnulib-tool (func_import): Fix comparison in handling of symbolic
53826         links.
53827
53828 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
53829
53830         * modules/size_max (Makefile.am): Add size_max.h
53831
53832 2005-09-04  Derek Price  <derek@ximbiot.com>
53833
53834         * gnulib-tool (func_import): Fix reversed $symbolic logic.
53835
53836 2005-09-03  Simon Josefsson  <jas@extundo.com>
53837
53838         * gnulib-tool: Fix typo.
53839
53840 2005-09-03  Simon Josefsson  <jas@extundo.com>
53841
53842         * config/srclist.txt: Add glibc bug 1293.
53843
53844 2005-09-03  Derek Price  <derek@ximbiot.com>
53845
53846         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
53847         From Larry Jones <lawrence.jones@ugs.com>.
53848
53849 2005-09-02  Simon Josefsson  <jas@extundo.com>
53850
53851         * modules/socklen: New file.
53852
53853 2005-09-02  Simon Josefsson  <jas@extundo.com>
53854
53855         * modules/havelib: New module.
53856
53857         * modules/gettext, modules/iconv, modules/lock, modules/readline:
53858         Use havelib.
53859
53860 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
53861
53862         Check for arithmetic overflow when calculating sizes, to prevent
53863         some buffer-overflow issues.  These patches are conservative, in the
53864         sense that when I couldn't determine whether an overflow was possible,
53865         I inserted a run-time check.
53866         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
53867         macros.
53868         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
53869         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
53870         (re_xnrealloc, re_x2nrealloc): New inline functions.
53871         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
53872         parse_bracket_exp):
53873         (build_equiv_class, build_charclass): Check for arithmetic overflow
53874         in size expression calculations.
53875         * lib/regex_internal.c (re_string_realloc_buffers):
53876         (build_wcs_upper_buffer, re_node_set_add_intersect):
53877         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
53878         (re_dfa_add_node, register_state): Likewise.
53879         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
53880         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
53881         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
53882         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
53883
53884 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
53885
53886         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
53887         m4/ulonglong.m4.  Problem reported by Martin Lambers.
53888
53889 2005-09-02  Bruno Haible  <bruno@clisp.org>
53890
53891         Support for lib vs. lib64 distinction on biarch platforms.
53892         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
53893         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
53894         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
53895
53896 2005-09-02  Bruno Haible  <bruno@clisp.org>
53897
53898         * gnulib-tool (import): In the other first-use case, provide defaults
53899         as well.
53900
53901 2005-09-02  Bruno Haible  <bruno@clisp.org>
53902
53903         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
53904         patches not yet found in the latest gettext release.
53905
53906 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
53907
53908         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
53909         to avoid a collision with bits/local_lim.h in glibc.
53910         All uses changed.  Problem reported by Dmitry V. Levin in
53911         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
53912
53913         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
53914         bugs in int versus size_t comparisons.
53915         (re_string_context_at): Fix bug where the code assumed that
53916         Idx is signed.
53917
53918         Use bool where appropriate.
53919         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
53920         All callers changed.
53921         (calc_eclosure_iter): Likewise, for ROOT arg.
53922         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
53923         (build_charclass_op): Likewise, for NON_MATCH arg.
53924         * lib/regex_internal.c (re_string_allocate, re_string_construct):
53925         (re_string_construct_common): Likewise, for ICASE arg.
53926         * lib/regexec.c (re_search_2_stub, re_search_stub):
53927         Likewise, for RET_LEN arg.
53928         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
53929         (set_regs): Likewise, for FL_BACKTRACK arg.
53930         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
53931         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
53932         (calc_eclosure_iter, parse_bracket_exp):
53933         Use bool for internal variables that are booleans.
53934         * lib/regexec.c (re_search_internal, check_matching,
53935         proceed_next_node):
53936         (set_regs, build_sifted_states, sift_states_bkref):
53937         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
53938         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
53939         (find_collation_sequence_value):
53940         Likewise.
53941         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
53942         (re_node_set_compare):
53943         Return bool, not int. All callers changed.
53944         * lib/regexec.c (check_halt_node_context, check_dst_limits):
53945         (build_trtable, check_node_accept): Likewise.
53946         * lib/regex_internal.h: Include stdbool.h.
53947
53948         Fix bugs uncovered when converting to bool.
53949         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
53950         failure instead of charging ahead blindly.
53951         * lib/regex_internal.c (register_state): Likewise.
53952         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
53953         for freeing internal storage.
53954         (group_nodes_into_DFA_states): Use unsigned int, not int, for
53955         bitset pieces used as boolean, to avoid undefined behavior
53956         on hosts that do int overflow checking.
53957
53958 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
53959
53960         * config/srclist.txt: Add glibc bugs 1285-1287.
53961
53962 2005-09-01  Jim Meyering  <jim@meyering.net>
53963
53964         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
53965         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
53966         Require gl_STAT_MACROS, too.
53967
53968 2005-09-01  Bruno Haible  <bruno@clisp.org>
53969
53970         * gnulib-tool (import): In the first-use case, provide defaults.
53971
53972 2005-09-01  Bruno Haible  <bruno@clisp.org>
53973
53974         * gnulib-tool (func_import): Remove the .tmp files.
53975
53976 2005-09-01  Bruno Haible  <bruno@clisp.org>
53977
53978         * gnulib-tool (func_import): Fix handling of symbolic links.
53979
53980 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
53981
53982         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
53983         old glibc regex code mishandles strings longer than 2**31 bytes.
53984         This patch fixes this when the regex code is used in gnulib
53985         (i.e., outside glibc).
53986
53987         This patch should not affect the use of the regex code inside
53988         glibc.  No doubt this problem also needs to be handled for glibc
53989         as well, but the result will be an incompatible change to the
53990         glibc ABI, and the old ABI will have to be supported too.  That
53991         can be the the subject for another patch.
53992
53993         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
53994         governing whether the rest of this patch is active.  By default,
53995         the macro is disabled and the patch has no effect.
53996         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
53997         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
53998         (struct re_pattern_buffer, re_search, re_search_2, re_match):
53999         (re_match_2, re_set_registers): Use the new types.
54000         * lib/regex_internal.h (Idx, re_hashval_t): New types.
54001         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
54002         New macros.
54003         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
54004         (re_string_context_at, bin_tree_t, re_dfastate_t):
54005         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
54006         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
54007         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
54008         (re_string_char_size_at, re_string_wchar_at):
54009         (re_string_elem_size_at):
54010         Use the new types and macros to port to 64-bit hosts.
54011         Use unsigned types for internal values, so that the code
54012         mostly works even for arrays larger than SSIZE_MAX.
54013         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
54014         (search_duplicated_node, calc_eclosure_iter, fetch_number):
54015         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
54016         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
54017         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
54018         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
54019         (calc_inveclosure, parse_dup_op, build_range_exp):
54020         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
54021         (fetch_number, create_token_tree, mark_opt_subexp):
54022         Likewise.
54023         * lib/regex_internal.c (re_string_construct_common,
54024         create_ci_newstate):
54025         (create_cd_newstate, re_string_allocate, re_string_construct):
54026         (re_string_realloc_buffers, build_wcs_upper_buffer):
54027         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
54028         (re_string_reconstruct, re_string_peek_byte_case):
54029         (re_string_fetch_byte_case, re_string_context_at):
54030         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
54031         (re_node_set_init_copy, re_node_set_add_intersect):
54032         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
54033         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
54034         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
54035         (re_acquire_state, re_acquire_state_context, register_state):
54036         Likewise.
54037         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
54038         search_cur_bkref_entry):
54039         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
54040         (re_search_internal, re_search_2_stub, re_search_stub)
54041         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
54042         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
54043         (update_cur_sifted_state, check_dst_limits):
54044         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
54045         (check_subexp_limits, sift_states_bkref, merge_state_array):
54046         (check_subexp_matching_top, get_subexp, get_subexp_sub):
54047         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
54048         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
54049         (expand_bkref_cache, check_node_accept_bytes):
54050         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
54051         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
54052         (acquire_init_state_context, check_halt_node_context):
54053         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
54054         (sift_states_backward, clean_state_log_if_needed):
54055         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
54056         (find_recover_state, transit_state_sb, transit_state_mb):
54057         (transit_state_bkref, build_trtable, match_ctx_clean):
54058         Likewise.
54059         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
54060         to work around an assumption that REG_MISSING is negative.
54061
54062         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
54063         (seek_collating_symbol_entry) [defined _LIBC]:
54064         (lookup_collation_sequence_value) [defined _LIBC]:
54065         (build_range_exp, build_collating_symbol) [defined _LIBC]:
54066         Use prototypes rather than old-style function definitions.
54067         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
54068         (transit_state_sb) [0]:
54069         (find_collation_sequence_value) [defined _LIBC]: Likewise.
54070
54071         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
54072         rm_eo.
54073
54074         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
54075         (optimize_subexps, lower_subexp):
54076         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
54077         since the signed shift might overflow.  Use 1u<<31 instead.
54078         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
54079         Likewise.
54080         * lib/regexec.c (check_dst_limits_calc_pos_1,
54081         check_subexp_matching_top): Likewise.
54082
54083         * lib/regcomp.c (optimize_subexps, lower_subexp):
54084         Use CHAR_BIT rather than 8, for clarity.
54085         * lib/regexec.c (check_dst_limits_calc_pos_1):
54086         (check_subexp_matching_top): Likewise.
54087         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
54088         have to worry about portability issues when shifting it left.
54089         Remove no-longer-needed test for table_size > 0.
54090         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
54091         in a word, as the resulting behavior is undefined.
54092         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
54093         in one case, a <= should have been an <, and in another case the
54094         whole test was missing.
54095         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
54096         the standard name CHAR_BIT.
54097         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
54098         this is not true on one's complement and signed-magnitude hosts.
54099
54100         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
54101         next_last_offset.
54102         (struct re_dfa_t): Remove unused member states_alloc.
54103         * lib/regcomp.c (init_dfa): Don't initialize unused members.
54104
54105 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
54106
54107         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
54108         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
54109         and large-file glibc and in 32-bit large-file Solaris.
54110
54111 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
54112
54113         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
54114         lengths fit in regoff_t; this isn't true if regoff_t is the same
54115         width as size_t.
54116         * lib/regex.c (re_search_internal): 5th arg is LAST_START
54117         (= START + RANGE) instead of RANGE.  This avoids overflow
54118         problems when regoff_t is the same width as size_t.
54119         All callers changed.
54120         (re_search_2_stub): Check for overflow when adding the
54121         sizes of the two strings.
54122         (re_search_stub): Check for overflow when adding START
54123         to RANGE; if it occurs, substitute the extreme value.
54124
54125 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
54126
54127         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
54128
54129 2005-08-31  Jim Meyering  <jim@meyering.net>
54130
54131         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
54132         a pointer-to-const.
54133         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
54134         (register_state): Likewise.
54135         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
54136         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
54137         (group_nodes_into_DFAstates): Likewise.
54138
54139 2005-08-31  Jim Meyering  <jim@meyering.net>
54140
54141         * check-module: Add a FIXME comment.
54142
54143 2005-08-31  Eric Blake  <ebb9@byu.net>
54144
54145         * modules/unistd-safer (Files): Add unistd--.h.
54146         * modules/stdio-safer (Files): Add stdio--.h.
54147
54148 2005-08-31  Derek Price  <derek@ximbiot.com>
54149
54150         * lib/getdelim.c (getdelim): Return EOF on EOF.
54151         Reported by Larry Jones <lawrence.jones@ugs.com>.
54152
54153 2005-08-31  Bruno Haible  <bruno@clisp.org>
54154
54155         Avoid unnecessary diffs in the generated lib/Makefile.am.
54156         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
54157         the generated files.
54158         (func_import): Don't set cmd.
54159
54160 2005-08-31  Bruno Haible  <bruno@clisp.org>
54161
54162         * lib/strstr.c: Include <stddef.h>, for NULL.
54163         * lib/strcasestr.c: Likewise.
54164         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
54165
54166 2005-08-31  Bruno Haible  <bruno@clisp.org>
54167
54168         * gnulib-tool: New option --macro-prefix.
54169         (func_import): Use macro_prefix.
54170         (import): Handle option --macro-prefix.
54171
54172 2005-08-31  Bruno Haible  <bruno@clisp.org>
54173
54174         * gnulib-tool (import): Rename most ac_* variables to cached_*.
54175         Also use new variables cached_lgpl, cached_libtool.
54176
54177 2005-08-31  Bruno Haible  <bruno@clisp.org>
54178
54179         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
54180         always instantiating them.
54181
54182 2005-08-31  Bruno Haible  <bruno@clisp.org>
54183
54184         * gnulib-tool (func_import): Read the previous cached settings
54185         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
54186         earlier added by gnulib but are now dropped. Warn when a gnulib file
54187         overwrites a non-gnulib file.
54188
54189 2005-08-31  Bruno Haible  <bruno@clisp.org>
54190
54191         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
54192         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
54193         projects that don't keep autogenerated files in CVS. Put into
54194         actioncmd only the specified modules, not the transitive closure.
54195
54196 2005-08-31  Bruno Haible  <bruno@clisp.org>
54197
54198         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
54199         Create directories that shall be filled.
54200         (import): Don't look for gl_* macros in configure.ac. Recurse across
54201         all directories containing a gnulib-cache.m4 files, if meaningful.
54202
54203 2005-08-31  Bruno Haible  <bruno@clisp.org>
54204
54205         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
54206         (import): Set seen_libtool when we see gl_LIBTOOL.
54207
54208 2005-08-31  Bruno Haible  <bruno@clisp.org>
54209
54210         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
54211         declaration macro definitions from generated gnulib.m4.
54212
54213 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
54214
54215         * lib/iconvme.h: Add prototype for iconv_alloc.
54216
54217 2005-08-29  Simon Josefsson  <jas@extundo.com>
54218
54219         * lib/iconvme.c: Fix errno.
54220
54221 2005-08-29  Bruno Haible  <bruno@clisp.org>
54222
54223         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
54224         that it works when the directory contains spaces.
54225
54226 2005-08-29  Bruno Haible  <bruno@clisp.org>
54227
54228         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
54229
54230 2005-08-29  Bruno Haible  <bruno@clisp.org>
54231
54232         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
54233         Emit more advice.
54234
54235 2005-08-29  Bruno Haible  <bruno@clisp.org>
54236         and Stepan Kasal  <kasal@ucw.cz>
54237
54238         * check-module: If more parameters are given, check each of them
54239         separately; add more exceptions, as noted by Jim Meyering.
54240         (check_module): New procedure.
54241         (%exempt_header): Now contains all exceptions.
54242
54243 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
54244
54245         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
54246
54247 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
54248
54249         * lib/iconvme.c: Split iconv_string into iconv_alloc.
54250
54251 2005-08-28  Bruno Haible  <bruno@clisp.org>
54252
54253         * m4/gnulib-tool.m4: New file.
54254
54255 2005-08-27  Jim Meyering  <jim@meyering.net>
54256
54257         * modules/unistd-safer (Files): Add pipe-safer.c.
54258         * modules/fcntl-safer (Files): Add creat-safer.c.
54259
54260 2005-08-27  Jim Meyering  <jim@meyering.net>
54261
54262         * m4/stdlib-safer.m4: New file.  From coreutils.
54263         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
54264         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
54265         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
54266         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
54267         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
54268
54269 2005-08-27  Jim Meyering  <jim@meyering.net>
54270
54271         * lib/fopen-safer.c: Merge minor changes from coreutils.
54272         * lib/dup-safer.c: Likewise.
54273         * lib/fd-safer.c: Likewise.
54274
54275         Merge from coreutils.
54276         * lib/stdio--.h: New file.
54277         * lib/stdlib--.h: New file.
54278         * lib/mkstemp-safer.c: New file.
54279
54280         GNU tar needs these.
54281         * lib/pipe-safer.c: New file.
54282         * lib/creat-safer.c: New file.
54283         * lib/fcntl--.h (creat): Define to creat_safer.
54284         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
54285         * lib/unistd--.h (pipe): Define to pipe_safer.
54286         * lib/unistd-safer.h: Declare pipe_safer.
54287
54288 2005-08-26  Simon Josefsson  <jas@extundo.com>
54289
54290         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
54291         Haible <bruno@clisp.org>.
54292
54293 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
54294
54295         * lib/regex_internal.h: Remove all references to
54296         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
54297         or better.
54298         (bitset_not, bitset_merge, bitset_not_merge):
54299         (bitset_mask, re_string_allocate, re_string_construct):
54300         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
54301         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
54302         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
54303         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
54304         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
54305         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
54306         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
54307         (re_acquire_state_context):
54308         Remove unnecessary forward decls.
54309         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
54310         Put __attribute at function definition,
54311         now that the function decl has been removed.
54312         * lib/regex_internal.c (re_string_peek_byte_case):
54313         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
54314         Likewise.
54315
54316 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
54317
54318         * m4/regex.m4: Add AC_PREREQ(2.50).
54319         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
54320
54321 2005-08-25  Simon Josefsson  <jas@extundo.com>
54322
54323         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
54324         __fsetlocking.
54325
54326 2005-08-25  Simon Josefsson  <jas@extundo.com>
54327
54328         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
54329         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
54330         GLIBC specific code.
54331
54332 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
54333
54334         Make regex safe for g++.  This fixes one real bug (an "err"
54335         that should have been "*err").  g++ problem reported by
54336         Sam Steingold.
54337         * lib/regex_internal.h (re_calloc): New macro, consistent with
54338         re_malloc etc.  All callers of calloc changed to use re_calloc.
54339         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
54340         not int.  All callers changed.
54341         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
54342         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
54343         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
54344         (find_recover_state): Change "err" to "*err"; this fixes what
54345         appears to be a real bug.
54346         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
54347         versus int.
54348
54349 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
54350
54351         * modules/regex (Depends-on): Add malloc, since the code
54352         assumes that !malloc(0) means failure.
54353
54354 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
54355
54356         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
54357
54358         alloca modernization/simplification for regex.
54359         * lib/regex.c: Remove portability cruft for alloca.  This no longer
54360         needs to be at the start of the file, and can be moved into
54361         regex_internal.h and simplified.
54362         * lib/regex_internal.h: Include <alloca.h>.
54363         (__libc_use_alloca) [!defined _LIBC]: New macro.
54364         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
54365         now works outside glibc.
54366
54367 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
54368
54369         * config/srclist.txt: Add glibc bugs 1241, 1245.
54370
54371 2005-08-25  Jim Meyering  <jim@meyering.net>
54372
54373         * lib/open-safer.c: Include <config.h>.
54374         Otherwise, we'd lose LARGEFILE support in any file using
54375         e.g. "fcntl--.h"
54376
54377 2005-08-25  Bruno Haible  <bruno@clisp.org>
54378
54379         * m4/minmax.m4: Require autoconf 2.52.
54380         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
54381         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
54382         alternatives of translit over the alphabet.
54383         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
54384
54385 2005-08-24  Simon Josefsson  <jas@extundo.com>
54386
54387         * tests/test-getpass.c: New file.
54388
54389 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
54390
54391         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
54392         for GNU regex features.
54393
54394 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
54395
54396         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
54397         * lib/regex.h (regerror): Likewise.
54398
54399         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
54400         requires this.  (The code never needed it.)
54401
54402         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
54403         All uses of recently-renamed identifiers changed to use the new,
54404         POSIX-compliant names.  The code will build and run just fine
54405         without these changes, but it's better to eat our own dog food
54406         and use the standard-conforming names.
54407
54408         * lib/regex.h: Fix a multitude of POSIX name space violations.
54409         These changes have an effect only for programs that define
54410         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
54411         do not change anything for programs compiled in the normal way.
54412         Also, there is no effect on the ABI.
54413
54414         (_REGEX_SOURCE): New macro.
54415         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
54416         defined and _GNU_SOURCE is not; this fixes a name space violation.
54417
54418         Rename the following macros to obey POSIX requirements.
54419         The old names are still visible as macros if _REGEX_SOURCE is defined.
54420         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
54421         RE_BACKSLASH_ESCAPE_IN_LISTS.
54422         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
54423         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
54424         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
54425         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
54426         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
54427         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
54428         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
54429         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
54430         (REG_INTERVALS): renamed from RE_INTERVALS.
54431         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
54432         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
54433         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
54434         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
54435         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
54436         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
54437         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
54438         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
54439         RE_UNMATCHED_RIGHT_PAREN_ORD.
54440         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
54441         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
54442         (REG_DEBUG): renamed from RE_DEBUG.
54443         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
54444         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
54445         unusual, since we can't clash with the POSIX REG_ICASE.
54446         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
54447         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
54448         (REG_NO_SUB): renamed from RE_NO_SUB.
54449         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
54450         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
54451         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
54452         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
54453         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
54454         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
54455         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
54456         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
54457         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
54458         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
54459         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
54460         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
54461         RE_SYNTAX_POSIX_MINIMAL_BASIC.
54462         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
54463         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
54464         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
54465         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
54466         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
54467         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
54468         (REG_FIXED): Renamed from REGS_FIXED.
54469         (REG_NREGS): Renamed from RE_NREGS.
54470
54471         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
54472         of other REG_* macros, since POSIX says the user is allowed to
54473         #undef these macros selectively.
54474
54475         (reg_errcode_t): Update comment stating what other tables need
54476         to be consistent.
54477
54478         Rename the following enum values to obey POSIX requirements.
54479         The old names are still visible as macros.
54480         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
54481         is not defined, since GNU is supposed to be a superset of POSIX as
54482         much as possible, and since we want reg_errcode_t to be a signed
54483         type for implementation consistency.
54484         (_REG_NOERROR): Renamed from REG_NOERROR.
54485         (_REG_NOMATCH): Renamed from REG_NOMATCH.
54486         (_REG_BADPAT): Renamed from REG_BADPAT.
54487         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
54488         (_REG_ECTYPE): Renamed from REG_ECTYPE.
54489         (_REG_EESCAPE): Renamed from REG_EESCAPE.
54490         (_REG_ESUBREG): Renamed from REG_ESUBREG.
54491         (_REG_EBRACK): Renamed from REG_EBRACK.
54492         (_REG_EPAREN): Renamed from REG_EPAREN.
54493         (_REG_EBRACE): Renamed from REG_EBRACE.
54494         (_REG_BADBR): Renamed from REG_BADBR.
54495         (_REG_ERANGE): Renamed from REG_ERANGE.
54496         (_REG_ESPACE): Renamed from REG_ESPACE.
54497         (_REG_BADRPT): Renamed from REG_BADRPT.
54498         (_REG_EEND): Renamed from REG_EEND.
54499         (_REG_ESIZE): Renamed from REG_ESIZE.
54500         (_REG_ERPAREN): Renamed from REG_ERPAREN.
54501         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
54502         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
54503         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
54504         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
54505
54506         (_REG_RE_NAME, _REG_RM_NAME): New macros.
54507         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
54508         changed.  But support the old name if the new one is not defined
54509         and if _REGEX_SOURCE.
54510
54511         Change the following member names in struct re_pattern_buffer.
54512         The old names are still supported if !_REGEX_SOURCE.
54513         The new names are always supported, regardless of _REGEX_SOURCE.
54514         (re_buffer): Renamed from buffer.
54515         (re_allocated): Renamed from allocated.
54516         (re_used): Renamed from used.
54517         (re_syntax): Renamed from syntax.
54518         (re_fastmap): Renamed from fastmap.
54519         (re_translate): Renamed from translate.
54520         (re_can_be_null): Renamed from can_be_null.
54521         (re_regs_allocated): Renamed from regs_allocated.
54522         (re_fastmap_accurate): Renamed from fastmap_accurate.
54523         (re_no_sub): Renamed from no_sub.
54524         (re_not_bol): Renamed from not_bol.
54525         (re_not_eol): Renamed from not_eol.
54526         (re_newline_anchor): Renamed from newline_anchor.
54527
54528         Change the following member names in struct re_registers.
54529         The old names are still supported if !_REGEX_SOURCE.
54530         The new names are always supported, regardless of _REGEX_SOURCE.
54531         (rm_num_regs): Renamed from num_regs.
54532         (rm_start): Renamed from start.
54533         (rm_end): Renamed from end.
54534
54535         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
54536         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
54537         Prepend __ to parameter names.
54538
54539         Undo yesterday's changes.
54540
54541 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
54542
54543         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
54544         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
54545         lib/regex.c.
54546
54547 2005-08-24  Jim Meyering  <jim@meyering.net>
54548
54549         Sync from coreutils.
54550         * m4/fcntl-safer.m4: New file.
54551
54552         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
54553         and object files for this module.
54554
54555 2005-08-24  Jim Meyering  <jim@meyering.net>
54556
54557         Sync from coreutils.
54558         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
54559
54560 2005-08-24  Jim Meyering  <jim@meyering.net>
54561
54562         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
54563         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
54564
54565 2005-08-24  Jim Meyering  <jim@meyering.net>
54566
54567         * modules/fcntl-safer: New module.
54568         * modules/fts (Depends-on): Add fcntl-safer.
54569         * MODULES.html.sh (File descriptor based Input/Output):
54570         Add fcntl-safer.
54571
54572 2005-08-24  Bruno Haible  <bruno@clisp.org>
54573
54574         Support for unit test modules.
54575         * modules/README: Mention tests modules.
54576         * modules/TEMPLATE-TESTS: New file.
54577         * gnulib-tool: New options --extract-tests-module, --with-tests and
54578         --tests-base (unused for the moment).
54579         (testsbase, inctests): New variables.
54580         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
54581         (func_verify_module): Exclude TEMPLATE-TESTS.
54582         (func_verify_nontests_module, func_verify_tests_module): New functions.
54583         (func_get_dependencies): Add implicit dependency for tests modules.
54584         (func_get_tests_module): New function.
54585         (func_modules_transitive_closure): When --with-tests was specified,
54586         include the unit tests as well, unless explicitly avoided.
54587         (func_emit_lib_Makefile_am): Ignore the tests modules here.
54588         (func_emit_tests_Makefile_am): New function.
54589         (func_create_testdir): When --with-tests was specified, emit a
54590         tests/ directory.
54591         * MODULES.html.sh (Future developments): Update.
54592
54593 2005-08-24  Bruno Haible  <bruno@clisp.org>
54594
54595         * modules/tls-tests: New file.
54596         * tests/test-tls.c: New file, from GNU gettext.
54597
54598 2005-08-24  Bruno Haible  <bruno@clisp.org>
54599
54600         * modules/lock-tests: New file.
54601         * tests/test-lock.c: New file, from GNU gettext.
54602
54603 2005-08-24  Bruno Haible  <bruno@clisp.org>
54604
54605         * lib/lock.h: Add multiple inclusion guard.
54606         * lib/tls.h: Add multiple inclusion guard.
54607
54608 2005-08-24  Bruno Haible  <bruno@clisp.org>
54609
54610         * gnulib-tool: Add support for the --aux-dir option to
54611         --create-testdir, --create-megatestdir, --test, --megatest.
54612         (func_create_testdir, func_create_megatestdir): Optionally emit a
54613         AC_CONFIG_AUX_DIR directive.
54614         (create-testdir, create-megatestdir, test, megatest): Provide a
54615         default value for $auxdir.
54616
54617 2005-08-24  Bruno Haible  <bruno@clisp.org>
54618
54619         * gnulib-tool (import): Use compound statement instead of subshell
54620         where possible.
54621
54622 2005-08-24  Bruno Haible  <bruno@clisp.org>
54623
54624         * gnulib-tool (import): Change --aux-dir default to "build-aux".
54625
54626 2005-08-24  Bruno Haible  <bruno@clisp.org>
54627
54628         * gnulib-tool (func_version): Update.
54629
54630 2005-08-24  Bruno Haible  <bruno@clisp.org>
54631
54632         * gnulib-tool (func_import, func_create_testdir,
54633         func_create_megatestdir): Quote all autoconf macro arguments.
54634
54635 2005-08-24  Bruno Haible  <bruno@clisp.org>
54636
54637         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
54638         option --force, because --force causes the aclocal.m4 of each
54639         subdirectory to be newer than the corresponding config.h.in.
54640
54641 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
54642
54643         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
54644         All contents moved to gl_REGEX.
54645         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
54646         assume that it does.
54647
54648 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
54649
54650         * lib/regex.h (REG_NOSYS)
54651         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
54652         Define, since POSIX requires it as of 2001.
54653         (_REG_ENOSYS)
54654         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
54655         New private symbol, used to keep the enum signed in all cases.
54656         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
54657         Youngman in
54658         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
54659
54660         * lib/regex_internal.c (re_string_skip_chars, register_state):
54661         (calc_state_hash):
54662         Remove forward decls; no longer needed now that we use prototypes.
54663         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
54664         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
54665         (clean_state_log_if_needed): Likewise.
54666
54667 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
54668
54669         * config/srclist.txt: Add glibc bugs 1231-1233.
54670
54671 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
54672
54673         Fix problems reported by Sam Steingold in
54674         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
54675         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
54676         assumed that reg_errcode_t is a signed type, which is not
54677         necessarily true if _XOPEN_SOURCE is not defined.
54678         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
54679         since some compilers warn about it otherwise.
54680
54681 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
54682
54683         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
54684         (init_word_char, create_initial_state, duplicate_node_closure):
54685         (fetch_token, peek_token_bracket, build_range_exp):
54686         (build_collating_symbol): Remove forward decls; no longer needed
54687         now that we use prototypes.
54688
54689         * lib/regcomp.c:
54690         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
54691         (re_compile_fastmap_iter, regcomp, regerror, regfree):
54692         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
54693         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
54694         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
54695         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
54696         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
54697         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
54698         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
54699         (build_range_exp, build_collating_symbol, parse_bracket_exp):
54700         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
54701         (build_charclass, build_charclass_op, fetch_number, create_tree):
54702         (create_token_tree, mark_opt_subexp, duplicate_tree):
54703         Use prototypes rather than old-style definitions.
54704
54705         * lib/regex_internal.c:
54706         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
54707         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
54708         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
54709         (re_string_reconstruct, re_string_peek_byte_case):
54710         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
54711         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
54712         (re_node_set_init_copy, re_node_set_add_intersect):
54713         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
54714         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
54715         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
54716         (re_acquire_state, re_acquire_state_context, register_state):
54717         (create_ci_newstate, create_cd_newstate, free_state):
54718         Likewise.
54719         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
54720         re_search_2):
54721         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
54722         (re_search_internal, prune_impossible_nodes):
54723         (acquire_init_state_context, check_matching, static):
54724         (check_halt_node_context, check_halt_state_context, proceed_next_node):
54725         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
54726         (update_regs, sift_states_backward, build_sifted_states):
54727         (clean_state_log_if_needed, merge_state_array):
54728         (update_cur_sifted_state, add_epsilon_src_nodes):
54729         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
54730         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
54731         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
54732         (find_recover_state, check_subexp_matching_top, transit_state_mb):
54733         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
54734         (check_arrival, check_arrival_add_next_nodes):
54735         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
54736         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
54737         (check_node_accept_bytes, check_node_accept, extend_buffers):
54738         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
54739         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
54740         (sift_ctx_init):
54741         Likewise.
54742
54743         * lib/regex_internal.h:
54744         (re_string_allocate, re_string_construct, re_string_reconstruct):
54745         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
54746         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
54747         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
54748         (re_string_context_at, re_string_peek_byte_case):
54749         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
54750         is defined, since we now use prototypes always.
54751
54752         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
54753         C89 or better.  All uses removed.
54754
54755 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
54756
54757         * config/srclist.txt: Add glibc bugs 1220-1227.
54758
54759 2005-08-20  Jim Meyering  <jim@meyering.net>
54760
54761         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
54762         of unused local, dfa.
54763
54764 2005-08-20  Bruno Haible  <bruno@clisp.org>
54765
54766         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
54767
54768 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54769
54770         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
54771         (re_node_set_insert_last, re_dfa_add_node):
54772         Rename local variables to avoid GCC shadowing warnings.
54773
54774 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54775
54776         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
54777         [defined lint]: Suppress bogus uninitialized-variable warnings.
54778
54779         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
54780         and let the caller return REG_ESPACE if out of space.  This
54781         removes an uninitialied-variable warning with GCC 4.0.1, and also
54782         avoids taking the address of a local variable.  All callers
54783         changed.
54784
54785 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54786
54787         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
54788         $LIBCSRC/posix/regexec.c.
54789         Add glibc bug 1217 for regcomp.c.
54790
54791 2005-08-19  Jim Meyering  <jim@meyering.net>
54792
54793         * lib/regexec.c (proceed_next_node): Redo local variables to
54794         avoid GCC shadowing warnings.
54795
54796 2005-08-18  Bruno Haible  <bruno@clisp.org>
54797
54798         * lib/strstr.c (strstr): Fix return value in multibyte case.
54799         * lib/strcasestr.c (strcasestr): Likewise.
54800
54801 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
54802
54803         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
54804
54805 2005-08-17  Jim Meyering  <jim@meyering.net>
54806
54807         Make the %s format (seconds since the epoch) work for a negative
54808         number and when used with a zero-padded field width, e.g. %015s.
54809
54810         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
54811         label so that it precedes the code to set `digits'.  Otherwise,
54812         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
54813         print `00-22'.  Now, it prints `-0022', as it should.
54814
54815 2005-08-17  Bruno Haible  <bruno@clisp.org>
54816
54817         * modules/strstr (Files): Add m4/mbrtowc.m4.
54818         (Depends-on): Add mbuiter.
54819
54820 2005-08-17  Bruno Haible  <bruno@clisp.org>
54821
54822         * modules/strcasestr: New file.
54823         * MODULES.html.sh (String handling, based on ANSI C 89): Add
54824         strcasestr.
54825
54826 2005-08-17  Bruno Haible  <bruno@clisp.org>
54827
54828         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
54829
54830 2005-08-17  Bruno Haible  <bruno@clisp.org>
54831
54832         * modules/mbuiter: New file.
54833         * MODULES.html.sh (Extended multibyte and wide character utilities):
54834         Add mbuiter.
54835
54836 2005-08-17  Bruno Haible  <bruno@clisp.org>
54837
54838         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
54839         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
54840
54841 2005-08-17  Bruno Haible  <bruno@clisp.org>
54842
54843         * m4/strcasestr.m4: New file.
54844
54845 2005-08-17  Bruno Haible  <bruno@clisp.org>
54846
54847         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
54848         * lib/strstr.c: Completely rewritten, with multibyte locale support.
54849
54850 2005-08-17  Bruno Haible  <bruno@clisp.org>
54851
54852         * lib/strcasestr.h: New file.
54853         * lib/strcasestr.c: New file.
54854
54855 2005-08-17  Bruno Haible  <bruno@clisp.org>
54856
54857         * lib/strcasecmp.c: Use mbuiter.h.
54858
54859 2005-08-17  Bruno Haible  <bruno@clisp.org>
54860
54861         * lib/mbuiter.h: New file.
54862
54863 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
54864
54865         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
54866         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
54867         and gl_GETOPT are both invoked via different paths (as happens
54868         with GNU tar CVS because it uses both argp and getopt), the former
54869         wins.
54870
54871 2005-08-16  Bruno Haible  <bruno@clisp.org>
54872
54873         * modules/tls: New file.
54874         * MODULES.html.sh (Multithreading): Add tls.
54875
54876 2005-08-16  Bruno Haible  <bruno@clisp.org>
54877
54878         * modules/strnlen1: New file.
54879         * MODULES.html.sh (String handling): Add strnlen1.
54880
54881 2005-08-16  Bruno Haible  <bruno@clisp.org>
54882
54883         * modules/strcase (Files): Add m4/mbrtowc.m4.
54884         (Depends-on): Add strnlen1, mbchar.
54885
54886 2005-08-16  Bruno Haible  <bruno@clisp.org>
54887
54888         * modules/mbiter: New file.
54889         * MODULES.html.sh (Extended multibyte and wide character utilities):
54890         Add mbiter.
54891
54892 2005-08-16  Bruno Haible  <bruno@clisp.org>
54893
54894         * modules/mbfile: New file.
54895         * MODULES.html.sh (Extended multibyte and wide character utilities):
54896         Add mbfile.
54897
54898 2005-08-16  Bruno Haible  <bruno@clisp.org>
54899
54900         * modules/mbchar: New file.
54901         * MODULES.html.sh (Extended multibyte and wide character utilities):
54902         New section.
54903
54904 2005-08-16  Bruno Haible  <bruno@clisp.org>
54905
54906         * m4/tls.m4: New file, from GNU gettext.
54907
54908 2005-08-16  Bruno Haible  <bruno@clisp.org>
54909
54910         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
54911         always.
54912         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
54913
54914 2005-08-16  Bruno Haible  <bruno@clisp.org>
54915
54916         * m4/mbiter.m4: New file.
54917
54918 2005-08-16  Bruno Haible  <bruno@clisp.org>
54919
54920         * m4/mbfile.m4: New file.
54921
54922 2005-08-16  Bruno Haible  <bruno@clisp.org>
54923
54924         * m4/mbchar.m4: New file.
54925
54926 2005-08-16  Bruno Haible  <bruno@clisp.org>
54927
54928         * lib/tls.h: New file, from GNU gettext.
54929         * lib/tls.c: New file, from GNU gettext.
54930
54931 2005-08-16  Bruno Haible  <bruno@clisp.org>
54932
54933         * lib/strnlen1.h: New file.
54934         * lib/strnlen1.c: New file.
54935
54936 2005-08-16  Bruno Haible  <bruno@clisp.org>
54937
54938         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
54939         (mbi_init): Update.
54940         (mbi_avail, mbi_advance): Let the iteration end before the terminating
54941         NUL byte, not after it.
54942
54943 2005-08-16  Bruno Haible  <bruno@clisp.org>
54944
54945         * lib/strcase.h (strcasecmp): Add note in comments.
54946         * lib/strncasecmp.c: Use code from strcasecmp.c.
54947         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
54948         (strcasecmp): Work correctly in multibyte locales.
54949
54950 2005-08-16  Bruno Haible  <bruno@clisp.org>
54951
54952         * lib/mbiter.h: New file.
54953
54954 2005-08-16  Bruno Haible  <bruno@clisp.org>
54955
54956         * lib/mbfile.h: New file.
54957
54958 2005-08-16  Bruno Haible  <bruno@clisp.org>
54959
54960         * lib/mbchar.h: New file.
54961         * lib/mbchar.c: New file.
54962
54963 2005-08-16  Bruno Haible  <bruno@clisp.org>
54964
54965         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
54966         the valid ones. Makes the comparison operations transitive:
54967         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
54968         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
54969
54970 2005-08-15  Simon Josefsson  <jas@extundo.com>
54971
54972         * modules/ssize_t (License): Change to 'unlimited'.
54973
54974         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
54975
54976 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
54977
54978         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
54979         Add comments for each pending glibc patch.
54980
54981 2005-08-15  Bruno Haible  <bruno@clisp.org>
54982
54983         * lib/regex.h (__restrict_arr): Don't define to __restrict if
54984         __cplusplus is defined.
54985
54986 2005-08-14  Jim Meyering  <jim@meyering.net>
54987
54988         Sync from coreutils.
54989
54990         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
54991         Use the hash-table-based cycle-detection code not just when
54992         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
54993         Reported by James Youngman in
54994         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
54995         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
54996         FTS_TIGHT_CYCLE_CHECK.
54997         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
54998         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
54999         once again.
55000         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
55001         * lib/fts.c (fd_safer): Remove decl.
55002         Include fcntl--.h rather than unistd-safer.h
55003         (fts_safe_changedir): Don't call fd_safer; no longer needed
55004         now that we include fcntl--.h.
55005
55006 2005-08-12  Simon Josefsson  <jas@extundo.com>
55007
55008         * modules/getndelim2: Use ssize_t module.
55009         * modules/getnline: Likewise.
55010         * modules/safe-read: Likewise.
55011         * modules/xreadlink: Likewise.
55012
55013         * modules/ssize_t: New file.
55014
55015 2005-08-12  Simon Josefsson  <jas@extundo.com>
55016
55017         * m4/readline.m4: Look for termcap, curses or ncurses if required.
55018
55019 2005-08-12  Simon Josefsson  <jas@extundo.com>
55020
55021         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55022         ssize_t.
55023
55024 2005-08-12  Simon Josefsson  <jas@extundo.com>
55025
55026         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
55027         readline, getdelim and check_version.
55028         (Support for systems lacking ISO C 99: Sizes of integer types):
55029         Add size_max.
55030
55031 2005-08-12  Bruno Haible  <bruno@clisp.org>
55032
55033         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
55034
55035 2005-08-11  Simon Josefsson  <jas@extundo.com>
55036
55037         * modules/readline: New file.
55038
55039         * modules/strnlen (Files): Add strnlen.h.
55040
55041 2005-08-11  Simon Josefsson  <jas@extundo.com>
55042
55043         * m4/readline.m4: New file.
55044
55045 2005-08-11  Simon Josefsson  <jas@extundo.com>
55046
55047         * lib/readline.h, readline.c: New file.
55048
55049 2005-08-11  Simon Josefsson  <jas@extundo.com>
55050
55051         * doc/gnulib.texi (Initial import, Finishing touches): Mention
55052         gl_AVOID.
55053
55054 2005-08-11  Bruno Haible  <bruno@clisp.org>
55055
55056         * lib/strnlen.h (strnlen): Change parameter name to match comment.
55057
55058 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
55059
55060         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
55061
55062 2005-08-10  Simon Josefsson  <jas@extundo.com>
55063
55064         * tests/test-iconvme.c: New file.
55065
55066 2005-08-10  Simon Josefsson  <jas@extundo.com>
55067
55068         * m4/strnlen.m4: New file.
55069
55070         * m4/strndup.m4: Don't check for strnlen declaration, done in
55071         strnlen.m4.
55072
55073 2005-08-10  Simon Josefsson  <jas@extundo.com>
55074
55075         * lib/strndup.c: Use strnlen.h.
55076
55077         * lib/strnlen.h: New file.
55078
55079 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
55080
55081         * README: Typos.
55082
55083 2005-08-02  Simon Josefsson  <jas@extundo.com>
55084
55085         * modules/readline: New file.
55086
55087 2005-08-02  Simon Josefsson  <jas@extundo.com>
55088
55089         * modules/getdelim: New file.
55090
55091         * modules/getline: Rewrite, don't use getndelim2.
55092
55093 2005-08-02  Simon Josefsson  <jas@extundo.com>
55094
55095         * m4/getline.m4: Separate out getdelim stuff into separate module.
55096
55097         * m4/getdelim.m4: New file.
55098
55099 2005-08-02  Simon Josefsson  <jas@extundo.com>
55100
55101         * lib/getline.h, getline.c: Rewrite.
55102
55103         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
55104
55105 2005-07-31  Bruno Haible  <bruno@clisp.org>
55106
55107         * lib/lock.h (gl_lock_initializer): New macro.
55108         (gl_lock_define_initialized): Use it.
55109         (gl_rwlock_initializer): New macro.
55110         (gl_rwlock_define_initialized): Use it.
55111         (gl_recursive_lock_initializer): New macro.
55112         (gl_recursive_lock_define_initialized): Use it.
55113
55114 2005-07-30  Karl Berry  <karl@gnu.org>
55115
55116         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
55117         Report from Ben Pfaff, regarding getopt.
55118
55119 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
55120
55121         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
55122         normal way.
55123         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
55124         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
55125         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
55126         (gl_GETOPT): Use the new macros.  Most of the implementation
55127         is moved to the new macros.  This is for programs like Emacs
55128         that don't want all the functionality of gl_GETOPT.
55129
55130 2005-07-26  Bruno Haible  <bruno@clisp.org>
55131
55132         * m4/lock.m4: Update from GNU gettext.
55133
55134 2005-07-26  Bruno Haible  <bruno@clisp.org>
55135
55136         * lib/lock.h: Update from GNU gettext.
55137         * lib/lock.c: Update from GNU gettext.
55138
55139 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
55140
55141         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
55142         obsolescent AC_TRY_RUN.  Include the default includes files, for
55143         'exit'.
55144
55145 2005-07-24  Bruno Haible  <bruno@clisp.org>
55146
55147         * modules/visibility: New file.
55148         * MODULES.html.sh (Misc): Add visibility.
55149
55150 2005-07-24  Bruno Haible  <bruno@clisp.org>
55151
55152         * m4/visibility.m4: New file.
55153
55154 2005-07-24  Bruno Haible  <bruno@clisp.org>
55155
55156         * doc/visibility.texi: New file.
55157
55158 2005-07-22  Bruno Haible  <bruno@clisp.org>
55159
55160         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
55161         $(ALLOCA_H), redundant through BUILT_SOURCES.
55162         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
55163         redundant through BUILT_SOURCES.
55164         * modules/byteswap (Makefile.am): Remove explicit dependency on
55165         $(BYTESWAP_H), redundant through BUILT_SOURCES.
55166         * modules/fnmatch (Makefile.am): Remove explicit dependency on
55167         $(FNMATCH_H), redundant through BUILT_SOURCES.
55168         * modules/getopt (Makefile.am): Remove explicit dependency on
55169         $(GETOPT_H), redundant through BUILT_SOURCES.
55170         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
55171         redundant through BUILT_SOURCES.
55172         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
55173         redundant through BUILT_SOURCES.
55174         * modules/stdbool (Makefile.am): Remove explicit dependency on
55175         $(STDBOOL_H), redundant through BUILT_SOURCES.
55176         * modules/stdint (Makefile.am): Remove explicit dependency on
55177         $(STDINT_H), redundant through BUILT_SOURCES.
55178         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
55179         Remove explicit dependency on $(SYSEXITS_H).
55180         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
55181
55182 2005-07-18  Simon Josefsson  <jas@extundo.com>
55183
55184         * lib/check-version.c (check_version): Accept identical versions too.
55185
55186 2005-07-18  Bruno Haible  <bruno@clisp.org>
55187
55188         * modules/lock: New file.
55189         * MODULES.html.sh (Multithreading): New section.
55190
55191 2005-07-18  Bruno Haible  <bruno@clisp.org>
55192
55193         * m4/lock.m4: New file, from GNU gettext.
55194
55195 2005-07-18  Bruno Haible  <bruno@clisp.org>
55196
55197         * lib/lock.h: New file, from GNU gettext.
55198         * lib/lock.c: New file, from GNU gettext.
55199
55200 2005-07-18  Bruno Haible  <bruno@clisp.org>
55201
55202         * lib/lock.h (gl_once_t): New type.
55203         (gl_once_define, gl_once): New macros.
55204         * lib/lock.c (fresh_once): New variable.
55205         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
55206         functions.
55207
55208 2005-07-16  Simon Josefsson  <jas@extundo.com>
55209
55210         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
55211         workaround, suggested by Bruno.
55212
55213 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
55214
55215         * modules/xalloc (Depends-on): Add xalloc-die.
55216         * modules/xvasprintf (Depends-on): Add xalloc-die.
55217
55218 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
55219
55220         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
55221         with a minor change.
55222
55223 2005-07-15  Bruno Haible  <bruno@clisp.org>
55224
55225         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
55226         When using lib/poll.c, define poll as rpl_poll.
55227
55228 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
55229
55230         * modules/argp (Depends-on): Remove unlocked-io.
55231
55232 2005-07-14  Derek Price  <derek@ximbiot.com>
55233
55234         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
55235         for glob symlink bug.
55236
55237 2005-07-14  Bruno Haible  <bruno@clisp.org>
55238
55239         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
55240         Instead, test for *_unlocked function declarations directly.
55241
55242 2005-07-11  Simon Josefsson  <jas@extundo.com>
55243
55244         * modules/size_max: New file.
55245
55246         * modules/xsize: Depend on size_max module for size_max.m4.
55247
55248 2005-07-11  Simon Josefsson  <jas@extundo.com>
55249
55250         * lib/size_max.h: New file.
55251
55252 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
55253
55254         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
55255         copyright symbol and the year.
55256         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
55257         (version_etc_va): Use parameterized copyright notice.
55258         Reword to conform to the current GNU coding standards.
55259
55260 2005-07-11  Karl Berry  <karl@gnu.org>
55261
55262         * doc/gnulib.texi (Quoting): new node.
55263         (Initial import): more info, from Patrice.
55264
55265 2005-07-11  Bruno Haible  <bruno@clisp.org>
55266
55267         * gnulib-tool (func_usage): Document option --avoid.
55268         (Command line options): Handle --avoid.
55269         (func_acceptable): New function.
55270         (func_modules_transitive_closure): Use it.
55271
55272 2005-07-11  Bruno Haible  <bruno@clisp.org>
55273
55274         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
55275         Reported by Jim Meyering.
55276
55277 2005-07-10  Bruno Haible  <bruno@clisp.org>
55278
55279         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
55280         Needed when size_t is smaller than 'unsigned int'.
55281         Reported by Paul Eggert.
55282
55283 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
55284
55285         * modules/argp (Depends-on): Add unlocked-io
55286
55287 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
55288
55289         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
55290         block of defines.
55291
55292 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
55293
55294         * config/srclist.txt: Comment out regcomp.c, since we have a porting
55295         fix now.
55296
55297 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
55298         and Paul Eggert  <eggert@cs.ucla.edu>
55299
55300         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
55301         in wint_t, not wchar_t.  Remove now-unnecessary cast.
55302
55303 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
55304
55305         * modules/regex (Files): Add lib/regex_internal.c,
55306         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
55307         (Depends-on): Add extensions.
55308         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
55309
55310 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
55311
55312         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
55313         pathconf.
55314         * m4/same.m4 (gl_SAME): Likewise.
55315         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
55316
55317         * m4/regex.m4: Adjust to new libc regex implementation.
55318         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
55319         all the .c and .h parts of (the new) regex.
55320         Quote the m4 stuff better.
55321         Check for RE_ICASE bug of old gnulib.
55322         Check for REG_STARTEND of recent libc.
55323         Rename local variables from jm_* to gl_*.
55324         Quote operand of "test -f".
55325         Say "recent enough" version of libc, not "version 2".
55326         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
55327         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
55328         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
55329         Remove check for btowc, isascii.
55330         Require AM_LANGINFO_CODESET.
55331
55332 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
55333
55334         * lib/regex.c, regex.h: Sync from libc.
55335         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
55336         * lib/regexec.c:
55337         New files, synced from libc, except that regex_internal.h
55338         currently has a small porting fix.
55339
55340 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
55341
55342         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
55343         regex_internal.c, regexec.c.
55344         Add regex_internal.h too, but as a comment, since the libc version
55345         is currently broken in gnulib mode.
55346
55347 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
55348
55349         Support programs like Emacs that use gnulib but not gettext.
55350         * MODULES.html.sh (Internationalization functions): Add gettext-h.
55351         * modules/gettext-h: New file.
55352         * modules/gettext (Files): Remove lib/gettext.h.
55353         (Depends-on): Add gettext-h.
55354         (Makefile.am): Remove lib_SOURCES.
55355         * modules/argmatch, modules/c-stack, modules/closeout:
55356         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
55357         * modules/execute, modules/file-type, modules/getaddrinfo:
55358         * modules/getopt, modules/human, modules/javacomp:
55359         * modules/javaexec, modules/mkdir-p, modules/obstack:
55360         * modules/openat, modules/pagealign_alloc, modules/pipe:
55361         * modules/quotearg, modules/regex, modules/rpmatch:
55362         * modules/unicodeio, modules/userspec, modules/version-etc:
55363         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
55364         * modules/xsetenv:
55365         Depend on gettext-h, not gettext.
55366
55367 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
55368
55369         * gnulib-tool (func_import): Add support for 'public domain' license.
55370         * modules/alloca, modules/atexit, modules/memmove:
55371         Now public domain, not GPL.
55372         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
55373         * modules/realloc, modules/strerror, modules/strtod:
55374         Now LGPL, not GPL.
55375
55376 2005-07-05  Bruno Haible  <bruno@clisp.org>
55377
55378         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
55379         autoconf CVS. Needed for mingw.
55380
55381 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
55382
55383         Remove the dependency of the strftime module on the tzset module.
55384         * modules/strftime (Depends-on): Remove dependency on tzset.
55385
55386 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
55387
55388         Remove the dependency of the strftime module on the tzset module.
55389         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
55390         gl_FUNC_TZSET_CLOBBER.
55391
55392 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
55393
55394         Remove the dependency of the strftime module on the tzset module.
55395         * lib/strftime.c (my_strftime)
55396         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
55397         Copy the input structure, to work around some of the bug with
55398         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
55399         Solaris releases, you should also use the tzset module, but we won't
55400         require it as a dependency any more since we don't want LGPLed code
55401         to depend on GPLed code.
55402
55403 2005-07-02  Jim Meyering  <jim@meyering.net>
55404
55405         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
55406         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
55407         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
55408         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
55409
55410 2005-07-02  Jim Meyering  <jim@meyering.net>
55411
55412         * lib/backupfile.c (backup_args): Change a `0' to NULL.
55413
55414 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
55415
55416         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
55417         declares only 'struct timespec;' (!).
55418
55419 2005-07-01  Jim Meyering  <jim@meyering.net>
55420
55421         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
55422         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
55423         * lib/save-cwd.c, tempname.c:
55424         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
55425         and don't include <sys/file.h>).
55426
55427 2005-06-29  Jim Meyering  <jim@meyering.net>
55428
55429         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
55430         type name.  Use the variable name instead.
55431         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
55432         Likewise.
55433
55434 2005-06-28  Simon Josefsson  <jas@extundo.com>
55435
55436         * modules/check-version (Files): Add check-version.m4.
55437
55438 2005-06-28  Simon Josefsson  <jas@extundo.com>
55439
55440         * m4/check-version.m4: New file, suggested by Jim Meyering
55441         <jim@meyering.net>.
55442
55443 2005-06-28  Simon Josefsson  <jas@extundo.com>
55444
55445         * lib/check-version.h, lib/check-version.c: New files.
55446
55447 2005-06-28  Simon Josefsson  <jas@extundo.com>
55448
55449         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
55450         collision with global variable.  Better indentation.  Don't
55451         increment buffer pointer beyond buffer end.  Based on comments
55452         from Paul Eggert <eggert@cs.ucla.edu>.
55453
55454         * lib/base64.h: Indent.
55455
55456 2005-06-28  Simon Josefsson  <jas@extundo.com>
55457
55458         * doc/gnulib.texi (Library version handling): New section.
55459
55460 2005-06-28  Jim Meyering  <jim@meyering.net>
55461
55462         * check-module (find_included_lib_files): Hard-code another
55463         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
55464         but modules/fts-lgpl (correctly) does not list those files.
55465
55466         * modules/canonicalize (Files): Add lib/pathmax.h.
55467
55468 2005-06-25  Simon Josefsson  <jas@extundo.com>
55469
55470         * modules/check-version: New file.
55471
55472 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
55473
55474         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
55475         initializer of struct addrinfo, as an indication that we don't
55476         care how many members the structure has.
55477
55478 2005-06-24  Derek Price  <derek@ximbiot.com>
55479         and Bruno Haible  <bruno@clisp.org>
55480
55481         Remove stat module & update lstat.
55482         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
55483         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
55484         * m4/stat.m4: Remove this file.
55485
55486 2005-06-24  Derek Price  <derek@ximbiot.com>
55487         and Bruno Haible  <bruno@clisp.org>
55488
55489         Remove stat module & update lstat.
55490         * lib/stat.c: Remove this file...
55491         (slash_aware_lstat): ...moving this content and its support...
55492         * lib/lstat.c (rpl_lstat): ...into here.
55493         * lib/lstat.h: New file.
55494
55495 2005-06-24  Derek Price  <derek@ximbiot.com>
55496         and Bruno Haible  <bruno@clisp.org>
55497
55498         Remove stat module & update lstat.
55499         * config/srclist.txt (libc sources): Remove stat.
55500
55501 2005-06-24  Derek Price  <derek@ximbiot.com>
55502         and Bruno Haible  <bruno@clisp.org>
55503
55504         Remove stat module & update lstat.
55505         * MODULES.html.sh (stat): Remove.
55506         * MODULES.html: Regenerated.
55507         * modules/lstat (Description): Correct function name.
55508         (Files): Add "lstat.h".
55509         (Depends-on): Remove stat, add xalloc, stat-macros.
55510         * modules/stat: Remove this file.
55511         (Include): Add "lstat.h", remove <sys/stat.h>.
55512
55513 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
55514
55515         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
55516         (ranged_convert): Don't save conversion in a temporary struct.
55517         This causes a warning with GCC 4.0.0, and anyway in the typical
55518         case it's not worth the extra 100 bytes or so of code.
55519         (ranged_convert, __mktime_internal): When calling a function via a
55520         pointer P, use P () rather than (*P) (), as we now assume C89 or
55521         better.
55522
55523 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55524
55525         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
55526         "who -r" failed to give output.  Problem reported by Tim Waugh.
55527
55528         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
55529         (xcalloc): Use it to avoid needless tests.
55530         Problem reported by Jim Meyering.
55531
55532 2005-06-20  Derek Price  <derek@ximbiot.com>
55533
55534         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
55535         unnecessary for Autoconfs > 2.59c.
55536
55537 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
55538
55539         * lib/argp.h (__option_is_short): Check upper limit of
55540         __key. Isprint() requires its argument to have the value
55541         of an unsigned char or EOF.
55542
55543 2005-06-16  Jim Meyering  <jim@meyering.net>
55544
55545         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
55546         when either N or S is zero.
55547
55548 2005-06-16  Derek Price  <derek@ximbiot.com>
55549
55550         * m4/bison.m4: Declare YACC & YFLAGS precious.
55551
55552 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
55553
55554         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
55555         multibyte string or pattern, fall back on unibyte matching.
55556         Problem reported by James Youngman.
55557
55558 2005-06-08  Bruno Haible  <bruno@clisp.org>
55559
55560         * modules/csharpcomp: New file.
55561         * MODULES.html.sh (C#): Add csharpcomp.
55562
55563 2005-06-08  Bruno Haible  <bruno@clisp.org>
55564
55565         * m4/csharpcomp.m4: New file, from GNU gettext.
55566
55567 2005-06-08  Bruno Haible  <bruno@clisp.org>
55568
55569         * lib/csharpcomp.h: New file, from GNU gettext.
55570         * lib/csharpcomp.c: New file, from GNU gettext.
55571         * lib/csharpcomp.sh.in: New file, from GNU gettext.
55572
55573 2005-06-08  Bruno Haible  <bruno@clisp.org>
55574
55575         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
55576         warning on mingw.
55577
55578 2005-06-07  Derek Price  <derek@ximbiot.com>
55579
55580         Sync from CVS.
55581         * lib/glob_.h: Indent nested #ifdef.
55582
55583 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
55584
55585         Sync from coreutils.
55586         Use "file name" when talking about file names, instead of "filename"
55587         or "path", as per the GNU coding standards.
55588         * lib/mkdir-p.c: Renamed from makepath.c.
55589         (make_dir_parents): Renamed from make_path.  All callers changed.
55590         * lib/mkdir-p.h: Likewise.  All includers changed.
55591         * lib/filenamecat.c: Renamed from path-concat.c.
55592         (file_name_concat): Renamed from path_concat.  All callers changed.
55593         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
55594         * lib/filenamecat.h: Likewise.  All includers changed.
55595         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
55596         in comments or local variable names.
55597         * lib/basename.c: Likewise.
55598         * lib/canonicalize.c, canonicalize.h: Likewise.
55599         * lib/dirname.c, dirname.h: Likewise.
55600         * lib/euidaccess.c: Likewise.
55601         * lib/exclude.c: Likewise
55602         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
55603         * lib/fsusage.c, fsuage.h: Likewise.
55604         * lib/fts.c, fts_.h: Likewise.
55605         * lib/getcwd.c: Likewise.
55606         * lib/getloadavg.c: Likewise.
55607         * lib/mkstemp.c: Likewise.
55608         * lib/mountlist.c, mountlist.h: Likewise.
55609         * lib/openat.c, openat.h: Likewise.
55610         * lib/readlink-stub.c: Likewise.
55611         * lib/readutmp.c, readutmp.h: Likewise.
55612         * lib/rename.c: Likewise.
55613         * lib/rmdir.c: Likewise.
55614         * lib/same.c: Likewise.
55615         * lib/savedir.c: Likewise.
55616         * lib/stripslash.c: Likewise.
55617         * lib/tempname.c: Likewise.
55618         * lib/xreadlink.c: Likewise.
55619         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
55620         All uses changed.
55621         * lib/exclude.h: Likewise.
55622
55623         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
55624         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
55625         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
55626         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
55627         * lib/pathmax.h: Include <limits.h> unconditionally, since other
55628         files have been getting away with it for years (MORE/BSD 4.3
55629         is extinct now).
55630         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
55631         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
55632
55633         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
55634         Define to 256, not 255, as per modern POSIX.
55635
55636 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
55637
55638         Sync from coreutils.
55639         Use "file name" when talking about file names, instead of "filename"
55640         or "path", as per the GNU coding standards.
55641         * MODULES.html.sh: mkdir-p renamed from makepath.
55642         filenamecat renamed from path-concat.
55643         * modules/filenamecat: Renamed from modules/path-concat.
55644         (Files): filenamecat.h and filenamecat.c renamed from
55645         path-concat.h and path-concat.c.
55646         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
55647         (Include): filenamecat.h, not path-concat.h.
55648         * modules/mkdir-p: Renamed from modules/makepath.
55649         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
55650         makepath.c.
55651         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
55652         (Include): mkdir-p.h, not makepath.h.
55653
55654 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
55655
55656         Sync from coreutils.
55657         * m4/mkdir-p.m4: Renamed from makepath.m4.
55658         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
55659         Rename files from makepath.c to mkdir-p.c, and from
55660         makepath.h to mkdir-p.h.
55661         * m4/filenamecat.m4: Renamed from path-concat.m4.
55662         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
55663         Rename files from path-concat.c to filenamecat.c,
55664         and from path-concat.h to filenamecat.h.
55665         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
55666         "file name" in local variables or comments.
55667         * m4/rename.m4: Likewise.
55668
55669 2005-06-01  Bruno Haible  <bruno@clisp.org>
55670
55671         * modules/csharpexec: New file.
55672         * MODULES.html.sh (C#): New section.
55673
55674 2005-06-01  Bruno Haible  <bruno@clisp.org>
55675
55676         * m4/csharp.m4: New file, from GNU gettext.
55677         * m4/csharpexec.m4: New file, from GNU gettext.
55678
55679 2005-06-01  Bruno Haible  <bruno@clisp.org>
55680
55681         * lib/csharpexec.h: New file, from GNU gettext.
55682         * lib/csharpexec.c: New file, from GNU gettext.
55683         * lib/csharpexec.sh.in: New file, from GNU gettext.
55684
55685 2005-05-31  Derek Price  <derek@ximbiot.com>
55686             Paul Eggert  <eggert@cs.ucla.edu>
55687
55688         Sync from cvs.
55689         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
55690
55691 2005-05-31  Derek Price  <derek@ximbiot.com>
55692             Paul Eggert  <eggert@cs.ucla.edu>
55693
55694         Sync from cvs.
55695         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
55696
55697 2005-05-29  Derek Price  <derek@ximbiot.com>
55698
55699         * config/srclist.txt (glob_.h, glob.c): Add these files.
55700
55701 2005-05-29  Derek Price  <derek@ximbiot.com>
55702
55703         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
55704         * modules/glob: New file.
55705         * modules/getlogin_r: Add link to POSIX spec in description.
55706
55707 2005-05-29  Derek Price  <derek@ximbiot.com>
55708             Paul Eggert  <eggert@cs.ucla.edu>
55709
55710         * m4/glob.m4: New file.
55711
55712 2005-05-29  Derek Price  <derek@ximbiot.com>
55713             Paul Eggert  <eggert@cs.ucla.edu>
55714
55715         * lib/glob_.h, lib/glob.c: New files.
55716
55717 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
55718
55719         * modules/fts (Files): Remove m4/inttypes-pri.m4.
55720         * modules/fts-lgpl (Depends-on): Remove gettext.
55721
55722 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
55723
55724         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
55725         and don't require gt_INTTYPES_PRI.
55726
55727 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
55728
55729         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
55730
55731         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
55732         the configuration hassle isn't worth it.
55733         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
55734         (LONGEST_MODIFIER, PRIuMAX): Remove.
55735
55736 2005-05-27  Bruno Haible  <bruno@clisp.org>
55737
55738         * lib/getlogin_r.h: Remove second include of <stddef.h>.
55739
55740 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
55741
55742         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
55743         _POSIX_PTHREAD_SEMANTICS for Solaris.
55744
55745 2005-05-25  Derek Price  <derek@ximbiot.com>
55746
55747         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
55748
55749 2005-05-25  Derek Price  <derek@ximbiot.com>
55750             Paul Eggert  <eggert@cs.ucla.edu>
55751
55752         * modules/getlogin_r, m4/getlogin_r.m4: New files.
55753         * lib/getlogin_r.c, getlogin_r.h: New files.
55754
55755 2005-05-25  Bruno Haible  <bruno@clisp.org>
55756             Derek Price  <derek@ximbiot.com>
55757
55758         * lib/getlogin_r.h: Simplify API documentation.
55759
55760 2005-05-23  Derek Price  <derek@ximbiot.com>
55761
55762         * modules/minmax (Files): Add m4/minmax.m4.
55763         (configure.ac): Add gl_MINMAX.
55764
55765 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
55766
55767         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
55768         so that unistd-safer.h (GPL'ed code) need not be included.
55769
55770 2005-05-22  Bruno Haible  <bruno@clisp.org>
55771
55772         * m4/minmax.m4: New file.
55773         Based on a patch by Derek Price <derek@ximbiot.com>.
55774
55775 2005-05-22  Bruno Haible  <bruno@clisp.org>
55776
55777         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
55778         (INT64_MIN): Fix definition.
55779         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
55780
55781         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
55782         NEED_SIGNED_INT_TYPES.
55783
55784         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
55785         HAVE_SYSTEM_INTTYPES.
55786
55787 2005-05-22  Bruno Haible  <bruno@clisp.org>
55788
55789         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
55790         Also include <sys/param.h> if it defines MIN, MAX.
55791         Based on a patch by Derek Price <derek@ximbiot.com>.
55792
55793 2005-05-21  Jim Meyering  <jim@meyering.net>
55794
55795         * modules/fts (Files): Add m4/inttypes-pri.m4.
55796         (Depends-on): Add lstat and remove gettext.  Alphabetize.
55797
55798 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
55799
55800         New fts module.
55801         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
55802         (setup_dir, free_dir): New functions.
55803         (enter_dir, leave_dir): Define trivial
55804         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
55805         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
55806         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
55807         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
55808         Move to fts-cycle.c.
55809         (fts_open): Use setup_dir.
55810         (fts_close): Use free_dir.
55811         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
55812         This adds a label and some gotos, but the alternatives were messier.
55813         Check for memory allocation failure when entering a dir.
55814         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
55815         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
55816         (FTS): New member fts_cycle, that is a union that contains the
55817         old active_dir_ht and cycle_state.  All uses changed to mention
55818         fts_cycle.ht and fts_cycle.state.
55819         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
55820         fts.c, with the following changes:
55821         (setup_dir, free_dir): New functions.
55822         (enter_dir): Now returns bool.  Return true if successful, false
55823         if memory exhausted.  All callers changed.
55824         Do not bother partly cleaning up on
55825         memory allocation failure; that is free_dir's job.
55826         However, free ad if hash_insert fails, to avoid memory leak.
55827         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
55828         fts->fts_options to see which union member to use.
55829
55830 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
55831
55832         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
55833         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
55834
55835 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
55836
55837         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
55838
55839 2005-05-20  Jim Meyering  <jim@meyering.net>
55840
55841         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
55842         Now a macro, to pacify GCC.
55843
55844 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
55845
55846         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
55847         of -1.
55848
55849 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
55850
55851         * lib/chown.c (rpl_chown): Return -1 on failure.
55852
55853 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
55854
55855         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
55856         Don't check for stddef.h.
55857         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
55858         don't use its results.
55859         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
55860         since we include them unconditionally.  Don't require
55861         AM_STDBOOL_H, since stdbool is a prerequisite.
55862         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
55863         since we assume C89 or better.
55864         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
55865         as we don't use their results.
55866         Don't check for fchdir, memmove, memset, strrchr, as we use
55867         them unconditionally.
55868         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
55869         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
55870
55871 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
55872
55873         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
55874         Include <stddef.h> unconditionally, since we assume C89 now.
55875         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
55876         * lib/fts.c: Include fts_.h first, to check interface.
55877         Do not include intprops.h; no longer needed.
55878         Include cycle-check.h and hash.h, since fts_.h no longer does.
55879         Remove unnecessary casts of closedir to void.
55880         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
55881         decide whether to decrement nlinks.
55882         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
55883         (FTS): Use struct hash_table * instead of Hash_table, so that
55884         we no longer need to include hash.h here.
55885
55886 2005-05-18  Jim Meyering  <jim@meyering.net>
55887
55888         * modules/dirfd (License): Change to LGPL.  Most of the code
55889         is already in the public domain.
55890
55891 2005-05-18  Jim Meyering  <jim@meyering.net>
55892
55893         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
55894         Reported by Yoann Vandoorselaere.
55895
55896 2005-05-17  Jim Meyering  <jim@meyering.net>
55897
55898         * m4/fts.m4: New file, from coreutils.
55899
55900 2005-05-17  Jim Meyering  <jim@meyering.net>
55901
55902         * lib/fts.c, lib/fts_.h: New files, from coreutils.
55903
55904 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
55905
55906         Sync from coreutils.
55907         * m4/unlinkdir.m4: New file.
55908
55909 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
55910
55911         Sync from coreutils.
55912         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
55913         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
55914         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
55915         White space changes only.
55916         * lib/makepath.c (make_path): Port to hosts where leading "//" is
55917         special.
55918         * lib/yesno.c: Include getline.h, not ctype.h.
55919         (yesno): Don't remove leading white space; POSIX doesn't allow it.
55920         Use getline to remove arbitrary restriction on response length.
55921
55922 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
55923
55924         * config/srclist-update: Spell out "Street" in FSF postal
55925         mail address; this is the style the FSF seems to prefer.
55926
55927         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
55928         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
55929         this updates FSF postal mail address.
55930
55931         Sync from coreutils.
55932         * modules/unlinkdir: New file.
55933         * modules/yesno (Depends-on): Add getline.
55934         * MODULES.html.sh (File system functions): Add unlinkdir.
55935
55936 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
55937
55938         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
55939         lib/strsep.h:
55940         Change the initial comment to refer to GPL, not LGPL.
55941         gnulib-tool will change it to LGPL as needed.
55942
55943         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
55944         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
55945         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
55946         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
55947         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
55948         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
55949         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
55950         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
55951         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
55952         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
55953         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
55954         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
55955         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
55956         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
55957         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
55958         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
55959         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
55960         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
55961         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
55962         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
55963         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
55964         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
55965         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
55966         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
55967         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
55968         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
55969         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
55970         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
55971         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
55972         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
55973         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
55974         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
55975         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
55976         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
55977         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
55978         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
55979         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
55980         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
55981         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
55982         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
55983         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
55984         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
55985         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
55986         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
55987         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
55988         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
55989         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
55990         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
55991         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
55992         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
55993         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
55994         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
55995         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
55996         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
55997         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
55998         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
55999         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
56000         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
56001         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
56002         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
56003         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
56004         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
56005         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
56006         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
56007         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
56008         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
56009         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
56010         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
56011         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
56012         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
56013         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
56014         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
56015         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
56016         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
56017         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
56018         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
56019         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
56020         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
56021         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
56022         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
56023         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
56024         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
56025         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
56026         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
56027         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
56028         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
56029         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
56030         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
56031         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
56032         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
56033         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
56034         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
56035         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
56036         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
56037         lib/yesno.c, lib/yesno.h:
56038         Update FSF postal mail address.
56039
56040 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
56041
56042         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
56043         tests/test-memmem.c, tests/test-stpncpy.c:
56044         Update FSF postal mail address.
56045
56046 2005-05-13  Bruno Haible  <bruno@clisp.org>
56047
56048         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
56049         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
56050         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
56051         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
56052         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
56053         Add support for 64-bit integers in the MSVC compiler.
56054
56055 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
56056
56057         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
56058
56059 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
56060
56061         * gnulib-tool (func_import): Sort and uniquify recommended includes.
56062
56063 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
56064
56065         * doc/getdate.texi (General date syntax): Don't say that date
56066         date --iso-8601=ns generates acceptable dates; it doesn't yet.
56067         Problem reported by Nic Ferrier.
56068
56069 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56070
56071         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
56072         specified in ai_socktype. Fix invalid ai_protocol
56073         check. ai_protocol is usually set to 0 or depending on
56074         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
56075         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
56076         ai_socktype / ai_protocol in the returned addrinfo structure.
56077
56078 2005-05-10  Simon Josefsson  <jas@extundo.com>
56079
56080         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
56081         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
56082
56083 2005-05-10  Karl Berry  <karl@gnu.org>
56084
56085         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
56086         (from http://www.gnu.org/licenses).
56087         * doc/COPYING.LIB: also rename to COPYING.LESSER.
56088         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
56089         fdl.texi suffices.
56090
56091 2005-05-10  Karl Berry  <karl@gnu.org>
56092
56093         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
56094         (COPYING.DOC): remove.
56095
56096         * config/srclist-update: new FSF address.
56097
56098 2005-05-10  Derek Price  <derek@ximbiot.com>
56099
56100         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
56101         possible.
56102
56103 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56104             Bruno Haible  <bruno@clisp.org>
56105
56106         * modules/inet_ntop: New file.
56107         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56108         inet_ntop.
56109
56110 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56111             Bruno Haible  <bruno@clisp.org>
56112
56113         * m4/inet_ntop.m4: New file.
56114
56115 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56116             Bruno Haible  <bruno@clisp.org>
56117
56118         * lib/inet_ntop.h: New file.
56119         * lib/inet_ntop.c: New file, from glibc with modifications.
56120
56121 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
56122
56123         * modules/time_r (License): Change to LGPL.
56124         * modules/extensions (License): Change to LGPL.  Actually,
56125         the license is more permissive than that, but currently gnulib-tool
56126         doesn't know how to handle more-permissive licenses.
56127
56128         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
56129         Problem reported by Dave Love.
56130
56131 2005-05-08  Jim Meyering  <jim@meyering.net>
56132
56133         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
56134         blank.
56135
56136 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
56137
56138         * modules/argmatch (Depends-on): Add stdbool.
56139         * modules/backupfile (Depends-on): Likewise.
56140         * modules/chdir-long (Depends-on): Likewise.
56141         * modules/closeout (Depends-on): Likewise.
56142         * modules/cycle-check (Depends-on): Likewise.
56143         * modules/dirname (Depends-on): Likewise.
56144         * modules/fnmatch (Depends-on): Likewise.
56145         * modules/fsusage (Depends-on): Likewise.
56146         * modules/fwriteerror (Depends-on): Likewise.
56147         * modules/getcwd (Depends-on): Likewise.
56148         * modules/getloadavg (Depends-on): Likewise.
56149         * modules/hard-locale (Depends-on): Likewise.
56150         * modules/makepath (Depends-on): Likewise.
56151         * modules/mountlist (Depends-on): Likewise.
56152         * modules/nanosleep (Depends-on): Likewise.
56153         * modules/posixtm (Depends-on): Likewise.
56154         * modules/quotearg (Depends-on): Likewise.
56155         * modules/readtokens (Depends-on): Likewise.
56156         * modules/readtokens0 (Depends-on): Likewise.
56157         * modules/readutmp (Depends-on): Likewise.
56158         * modules/save-cwd (Depends-on): Likewise.
56159         * modules/strftime (Depends-on): Likewise.
56160         * modules/userspec (Depends-on): Likewise.
56161         * modules/utimecmp (Depends-on): Likewise.
56162         * modules/xgetcwd (Depends-on): Likewise.
56163         * modules/xnanosleep (Depends-on): Likewise.
56164         * modules/xstrtod (Depends-on): Likewise.
56165         * modules/yesno (Depends-on): Likewise.
56166
56167 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
56168
56169         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
56170         needless checks.
56171
56172 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
56173
56174         Merge from coreutils.  Among other things,
56175         add bulletproofing for cases where stdin, stdout, or stderr are closed.
56176         * lib/fd-safer.c: New file.
56177         * lib/fcntl-safer.h, open-safer.c: Remove.
56178         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
56179         * lib/dup-safer.c: Include unistd-safer.h first.
56180         Don't include errno.h.
56181         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
56182         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
56183         * lib/file-type.c: Rely on file-type.h change.
56184         * lib/getloadavg.c: Include unistd-safer.h.
56185         (getloadavg): Use safer open.
56186         * lib/getusershell.c: Include "stdio-safer.h".
56187         (getusershell): Use safer fopen.
56188         * lib/long-options.c (long_options): Use NULL rather than 0.
56189         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
56190         'free'.
56191         * lib/modechange.c: Likewise.
56192         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
56193         (MODE_DONE): New constant.
56194         (struct mode_change): Remove 'next' member.
56195         (make_node_op_equals): New function; like the old one of the
56196         same name, except it allocates an array.
56197         (mode_compile, mode_create_from_ref): Use it.
56198         (mode_compile): Allocate result as an array, not a linked list.
56199         Parse octal string ourself, so that we catch mistakes like "+0".
56200         (mode_adjust): Arg is an array, not a linked list.
56201         * lib/modechange.c: Include stat-macros.h, xalloc.h.
56202         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
56203         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
56204         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
56205         Remove.  This is now stat-macros.h's job.
56206         (talloc): Remove.  All callers replaced by xalloc, so that
56207         our invokers don't have to worry about reporting memory failures.
56208         (make_node_op_equals): Remove.
56209         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
56210         New constants.
56211         (struct mode_change): Moved here from modechange.h.
56212         (mode_append_entry): Remove.
56213         (mode_compile): Remove MASKED_OPS arg, since it encouraged
56214         apps to have incorrect behavior.  Use simpler algorithm for head
56215         and tail.  Don't futz with umask; that's now the job of mode_adjust.
56216         Detect more invalid usages rather than having somewhat-random behavior.
56217         Don't insert an "a=" action, as that leads to incorrect behavior.
56218         (mode_compile, mode_create_from_ref): Return NULL on error instead
56219         of an enum, since now there's only one way to have an error.  All
56220         callers changed.
56221         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
56222         at the correct time.  Simplify calculation of "+u" and its ilk.
56223         Don't mishandle "+X".
56224         (mode_free): Remove "register" and localize decls.
56225         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
56226         (struct mode_change): Move to modechange.c; callers don't
56227         need to see this stuff.
56228         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
56229         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
56230         (mode_change, mode_adjust): Reflect the new signatures noted above.
56231         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
56232         that might redefine system include files.
56233         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
56234         (my_usleep): Use NULL rather than (void *) 0.
56235         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
56236         Use siginterrupt to specify that system calls should be interrupted.
56237         (rpl_nanosleep): Move initialization of suspended closer to call of
56238         my_usleep.
56239         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
56240         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
56241         (desirable_utmp_entry): New function.
56242         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
56243         using x2nrealloc, to simplify logic.
56244         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
56245         size calculation.  Do not assume utmp file is a regular file.
56246         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
56247         (READ_UTMP_CHECK_PIDS): New constant.
56248         * lib/save-cwd.c: Include unistd-safer.h.
56249         (save_cwd): Use fd_safer.
56250         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
56251         [!_LIBC] Include "stat-macros.h" instead.
56252         * lib/unistd-safer.h (fd_safer): New decl.
56253
56254 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
56255
56256         * modules/getloadavg (Depends-on): Add unistd-safer.
56257         * modules/getusershell (Depends-on): Add stdio-safer.
56258         * modules/lstat (Depends-on): Remove xalloc.
56259         * modules/mkstemp (Depends-on): Add stat-macros.
56260         * modules/modechange (Depends-on): Remove xstrtol.
56261         Add stat-macros, xalloc.
56262         * modules/save-cwd (Depends-on): Add unistd-safer.
56263         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
56264         * modules/unistd-safer (Files): Add lib/fd-safer.c
56265         (Makefile.am): Remove lib_SOURCES.
56266
56267         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
56268         Remove fcntl-safer; unistd-safer supersedes it.
56269
56270 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
56271
56272         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
56273         AC_HEADER_STAT.
56274         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
56275         (gl_PREREQ_CHOWN): Remove.
56276         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
56277         it.  Don't require AC_HEADER_STAT.
56278         (gl_PREREQ_LSTAT): Remove.
56279         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
56280         Don't require AC_HEADER_STAT.
56281         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
56282         (gl_PREREQ_RMDIR): Remove.
56283         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
56284         mention stat-macros.h or AC_HEADER_STAT, since we'll make
56285         the stat-macros module a prerequisite.
56286         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
56287         * m4/filemode.m4 (gl_FILEMODE): Likewise.
56288         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
56289         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
56290         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
56291         variable names.
56292         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
56293         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
56294         variable prefixes.
56295         * m4/fcntl-safer.m4: Remove.
56296         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
56297         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
56298         Invoke gl_PREREQ_FD_SAFER.
56299         (gl_PREREQ_FD_SAFER): New macro.
56300         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
56301         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
56302         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
56303         Remove duplicate call to AC_LIBOBJ(readutmp).
56304         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
56305
56306         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
56307         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
56308
56309 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
56310
56311         * MODULES.html.sh (Misc): Add byteswap.
56312
56313 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
56314
56315         * modules/getcwd (Depends-on): Add extensions.
56316         * modules/openat (Depends-on): Likewise.
56317
56318 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
56319
56320         * modules/byteswap: New file.
56321
56322 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
56323
56324         * m4/byteswap.m4: New file.
56325
56326 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
56327
56328         * lib/byteswap_.h: New file.
56329
56330 2005-04-25  Karl Berry  <karl@gnu.org>
56331
56332         * m4/gettext.m4: Update from GNU gettext 0.14.4.
56333
56334 2005-04-25  Albert Chin  <china@thewrittenword.com>
56335
56336         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
56337         Toolkit C bug.
56338
56339 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
56340
56341         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
56342         (func_ln_if_changed) Remove forcibly for no error message
56343         in case file does not exist.
56344
56345 2005-04-19  Simon Josefsson  <jas@extundo.com>
56346
56347         * gnulib-tool (Options): Make --symlink mean --symbolic.
56348
56349 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
56350
56351         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
56352
56353 2005-04-16  Simon Josefsson  <jas@extundo.com>
56354
56355         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
56356
56357 2005-04-15  Simon Josefsson  <jas@extundo.com>
56358
56359         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
56360
56361 2005-04-15  Simon Josefsson  <jas@extundo.com>
56362
56363         * gnulib-tool: Rename --symlink to --symbolic.
56364
56365 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
56366
56367         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
56368         symbolic links to files instead of copying/moving.  Add --aux-dir,
56369         specifying directory relative --dir where auxiliary build tools
56370         are placed.
56371
56372 2005-04-14  Bruno Haible  <bruno@clisp.org>
56373
56374         * modules/allocsa (License): Change to LGPL.
56375         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
56376
56377 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
56378
56379         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
56380         that "UTC +1 second" continues to work.  Problem reported
56381         by Dmitry V. Levin.
56382         (relunit_snumber): New rule.
56383         (relunit): Use it.
56384
56385 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
56386
56387         * lib/getdate.y (universal_time_zone_table): New constant.
56388         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
56389         universal_time_zone_table.
56390         (lookup_zone): Prefer universal_time_zone_table to
56391         local_time_zone_table, so that "GMT" time stamps are allowed in
56392         London during the summer.  Problem reported by Ian Abbott.
56393
56394 2005-04-12  Jim Meyering  <jim@meyering.net>
56395
56396         * lib/human.c (humblock): Set *options even when returning due to
56397         xstrtoumax conversion failure.  Thanks to a used-uninitialized
56398         warning from gcc-4.
56399
56400 2005-04-09  Jim Meyering  <jim@meyering.net>
56401
56402         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
56403         -Wuninitialized: initialize tm0.tm_year.
56404
56405 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
56406
56407         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
56408         count, since there's no maximum.  All uses changed.
56409         Add member dsts_seen.
56410         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
56411         not being INT_MAX.
56412         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
56413         Use pc_rels_seen to decide whther a date is absolute.
56414
56415         * lib/getdate.y (number): Don't overwrite year.
56416         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
56417         check.
56418
56419 2005-04-02  Simon Josefsson  <jas@extundo.com>
56420
56421         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
56422         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
56423
56424 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
56425
56426         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
56427         where no absolute path name can be longer than PATH_MAX.
56428
56429 2005-03-27  Jim Meyering  <jim@meyering.net>
56430
56431         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
56432
56433 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
56434
56435         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
56436         "one's complement" -> "ones' complement" in comment, as per Knuth.
56437         "value of type" -> "type or expression" in comment.
56438         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
56439
56440 2005-03-26  Jim Meyering  <jim@meyering.net>
56441
56442         Comment nits.
56443         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
56444         Correct typos: s/or/of/.
56445
56446 2005-03-26  Jim Meyering  <jim@meyering.net>
56447
56448         * modules/check-include-files: Move to ../ and rename to...
56449         * check-module: ...this.
56450
56451 2005-03-25  Jim Meyering  <jim@meyering.net>
56452
56453         * modules/xvasprintf (Files): Add xalloc.h.
56454
56455 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
56456
56457         * modules/gettext (Files): config/config.rpath ->
56458         build-aux/config.rpath
56459         * modules/iconv (Files): Likewise.
56460         Problem reported by Oskar Liljeblad.
56461
56462 2005-03-23  Jim Meyering  <jim@meyering.net>
56463
56464         * modules/check-include-files: New script to check for
56465         missing dependencies, multiple includes, etc.
56466
56467         * modules/c-strtold (Depends-on): Add xalloc.
56468         * modules/c-strtod (Depends-on): Add xalloc.
56469         * modules/hash (Depends-on): Add xalloc.
56470         (Files): Remove lib/xalloc.h.
56471
56472         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
56473         * modules/userspec (Files): Add lib/inttostr.h.
56474
56475 2005-03-23  Jim Meyering  <jim@meyering.net>
56476
56477         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
56478
56479 2005-03-22  Jim Meyering  <jim@meyering.net>
56480
56481         * modules/stat-macros: New module.
56482         * modules/canonicalize, modules/euidaccess, modules/file-type,
56483         * modules/filemode, modules/lchown, modules/makepath,
56484         * modules/rmdir, modules/stat: Depend on new stat-macros module
56485         rather than listing lib/stat-macros.h manually.
56486         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
56487
56488 2005-03-22  Jim Meyering  <jim@meyering.net>
56489
56490         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
56491
56492 2005-03-22  Bruno Haible  <bruno@clisp.org>
56493
56494         * config/srclist.txt: Replace target directory 'config' with
56495         'build-aux'.
56496         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
56497         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
56498         ../build-aux/.
56499
56500 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
56501
56502         * modules/chdir-long (Depends-on): Add mempcpy.
56503
56504         * modules/acl, modules/backupfile, modules/c-strtod,
56505         modules/c-strtold, modules/canon-host, modules/canonicalize,
56506         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
56507         modules/exclude, modules/exitfail, modules/file-type,
56508         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
56509         modules/getdate, modules/getline, modules/getpagesize,
56510         modules/getpass, modules/getugroups, modules/group-member,
56511         modules/hard-locale, modules/hash, modules/human, modules/idcache,
56512         modules/inttostr, modules/long-options, modules/makepath,
56513         modules/md5, modules/memcasecmp, modules/memcoll,
56514         modules/modechange, modules/mountlist, modules/path-concat,
56515         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
56516         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
56517         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
56518         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
56519         modules/strftime, modules/strndup, modules/strverscmp,
56520         modules/timespec, modules/unlocked-io, modules/userspec,
56521         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
56522         modules/yesno:
56523         Remove lib_SOURCES line from Makefile.am section, as this is now
56524         done automatically by the corresponding Autoconf macro.
56525
56526 2005-03-21  Jim Meyering  <jim@meyering.net>
56527
56528         Changes imported from coreutils.
56529
56530         * lib/cycle-check.c: Don't include xalloc.h.
56531
56532         * lib/path-concat.c: Don't include assert.h.
56533         (path_concat): Remove assertion that would have triggered
56534         for ABASE starting with more than one slash.
56535         Reported by Andreas Schwab.
56536
56537         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
56538         properly when ABASE is an absolute file name.
56539         Correct the description of this function.
56540         Include <assert.h>.
56541         Add an assertion and a test driver.
56542         This fixes a bug introduced on 2004-07-02.
56543         Andreas Schwab reported the resulting failure of cp --parents:
56544         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
56545
56546 2005-03-21  Jim Meyering  <jim@meyering.net>
56547
56548         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
56549         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
56550
56551 2005-03-21  Jim Meyering  <jim@meyering.net>
56552         and  Paul Eggert  <eggert@cs.ucla.edu>
56553
56554         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
56555         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
56556         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
56557         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
56558         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
56559         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
56560         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
56561         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
56562         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
56563         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
56564         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
56565         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
56566         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
56567         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
56568         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
56569         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
56570         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
56571         for these modules.
56572
56573 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
56574
56575         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
56576         (which shouldn't happen), generate nothing instead of returning 0
56577         immediately, so that nstrftime (NULL, ...) doesn't return 0.
56578
56579 2005-03-16  Bruno Haible  <bruno@clisp.org>
56580
56581         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
56582         HAVE_LONGLONG_64BIT.
56583
56584 2005-03-16  Bruno Haible  <bruno@clisp.org>
56585
56586         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
56587         HAVE_LONGLONG_64BIT.
56588
56589 2005-03-16  Bruno Haible  <bruno@clisp.org>
56590
56591         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
56592         HAVE_LONGLONG_64BIT.
56593
56594 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
56595
56596         * lib/strftime.c (my_strftime): Prepend space to format so that we can
56597         reliably distinguish strftime failure from empty output on POSIX
56598         hosts.
56599
56600 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
56601
56602         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
56603         (iconv_string): Don't guess a size-zero buffer, as that might cause
56604         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
56605         result would be 'too large', where 'too large' is (heuristically)
56606         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
56607         overflow concerns.  This will prevent some unwanted malloc failures
56608         when the inputs are very large.
56609
56610 2005-03-15  Karl Berry  <karl@gnu.org>
56611
56612         * config/srclist.txt (config.rpath): from gettext.
56613         * config/config.rpath: update.
56614
56615 2005-03-15  Bruno Haible  <bruno@clisp.org>
56616
56617         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
56618         to 'negate'.
56619
56620         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
56621         variable.
56622
56623         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
56624         results.
56625
56626 2005-03-14  Simon Josefsson  <jas@extundo.com>
56627
56628         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
56629         <fx@gnu.org>.
56630
56631 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
56632
56633         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
56634         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
56635         intprops.h.
56636         * lib/strtol.c: Likewise.
56637
56638 2005-03-14  Jim Meyering  <jim@meyering.net>
56639
56640         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
56641         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
56642         to be nonzero so that we (and caller) can detect the difference
56643         between a valid zero-length expansion and an error return, even
56644         when the underlying strftime fails before writing anything into
56645         that location.
56646
56647 2005-03-14  Bruno Haible  <bruno@clisp.org>
56648
56649         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
56650         Update from GNU gettext 0.14.3.
56651
56652 2005-03-10  Jim Meyering  <jim@meyering.net>
56653
56654         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
56655
56656 2005-03-10  Jim Meyering  <jim@meyering.net>
56657
56658         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
56659         so that this module works on systems without fchdir.
56660
56661 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
56662
56663         Factor int-properties macros into a single file, except for
56664         glibc-related files.
56665         * lib/intprops.h: New file.
56666         * lib/getloadavg.c: Include it instead of limits.h.
56667         (INT_STRLEN_BOUND): Remove.
56668         * lib/human.c: Include intprops.h.
56669         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
56670         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
56671         302/1000.
56672         * lib/inttostr.h: Include intprops.h instead of limits.h.
56673         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
56674         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
56675         for consistency with intprops.h.
56676         (time_t_is_integer, twos_complement_arithmetic): Use them.
56677         * lib/sig2str.h: Include <signal.h>, intprops.h.
56678         (INT_STRLEN_BOUND): Remove.
56679         * lib/strftime.c (TYPE_SIGNED): Remove.
56680         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
56681         * lib/strtol.c: Adjust comments to match intprops.h.
56682         * lib/userspec.c: Include intprops.h.
56683         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
56684         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
56685         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
56686         instead of rolling our own expressions.
56687         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
56688
56689         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
56690         instead of int.
56691         (my_strftime): Do not mishandle years close to INT_MAX, by doing
56692         the right thing even if adding 1900 would overflow.  Similarly
56693         for tm_mon + 1 and tm_yday + 1.
56694         Make %Y always equivalent to %C%y, and similarly for %G and %g.
56695         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
56696         (DO_SIGNED_NUMBER): New macro.
56697         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
56698
56699 2005-03-07  Bruno Haible  <bruno@clisp.org>
56700
56701         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
56702
56703 2005-03-07  Bruno Haible  <bruno@clisp.org>
56704
56705         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
56706
56707 2005-03-04  Derek R. Price  <derek@ximbiot.com>
56708
56709         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
56710         (func_import): Only replace files via --import when they have actually
56711         changed.
56712
56713 2005-03-03  Derek R. Price  <derek@ximbiot.com>
56714
56715         * m4/mmap-anon.m4: New file.
56716         * m4/pagealign_alloc.m4: New file.
56717
56718 2005-03-03  Derek R. Price  <derek@ximbiot.com>
56719             Bruno Haible  <bruno@clisp.org>
56720
56721         * modules/pagealign_alloc: New file.
56722         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
56723
56724 2005-03-03  Derek R. Price  <derek@ximbiot.com>
56725             Bruno Haible  <bruno@clisp.org>
56726
56727         * lib/pagealign_alloc.h: New file.
56728         * lib/pagealign_alloc.c: New file.
56729
56730 2005-03-03  Bruno Haible  <bruno@clisp.org>
56731
56732         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
56733         Use an all-permissive copyright notice, recommended by RMS.
56734
56735 2005-03-02  Bruno Haible  <bruno@clisp.org>
56736
56737         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
56738         of AIX, the replacement has to be done only after <string.h> is
56739         included, therefore not in config.h. stpncpy.h does the replacement,
56740         and stpncpy.c uses it.
56741
56742 2005-03-02  Bruno Haible  <bruno@clisp.org>
56743
56744         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
56745         stpncpy.c uses it.
56746
56747 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
56748
56749         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
56750         The workaround isn't strictly needed for POSIX conformance, and
56751         it's too much of a pain to configure and maintain.  We'll ask
56752         people to fix their kernels instead.
56753         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
56754         (NANOSLEEP_BUG_WORKAROUND): Remove.
56755         (xnanosleep): Remove the workaround.
56756
56757 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
56758
56759         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
56760         Reported by Derek Price.
56761         (Include): Add "timespec.h".
56762
56763         * modules/xnanosleep (Depends-on): Remove gethrxtime.
56764
56765 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
56766
56767         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
56768         to detect nanosleep bug.
56769
56770 2005-03-01  Bruno Haible  <bruno@clisp.org>
56771
56772         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
56773
56774 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
56775
56776         * modules/gethrxtime: New file.
56777         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
56778         (Depends-on): Add gethrxtime.
56779         (configure.ac): Add gl_XNANOSLEEP.
56780         (Makefile.am): Remove lib_SOURCES line.
56781
56782 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
56783
56784         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
56785         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
56786
56787 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
56788
56789         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
56790         * lib/timespec.h (gettime): Return void, since it always
56791         succeeds now.  All uses changed.
56792         * lib/gettime.c (gettime) Likewise.
56793         [HAVE_NANOTIME]: Prefer nanotime.
56794         Assume gettimeofday succeeds, as POSIX requires.
56795         Assime time () succeeds, since other code already does.
56796         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
56797         (timespec_subtract): Remove.
56798         (NANOSLEEP_BUG_WORKAROUND): New constant.
56799         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
56800         things considerably.  Use it only on GNU/Linux hosts, since the
56801         workaround shouldn't be needed elsewhere.
56802
56803 2005-02-24  Bruno Haible  <bruno@clisp.org>
56804
56805         * modules/gettext (Files): Add m4/glibc2.m4.
56806
56807 2005-02-24  Bruno Haible  <bruno@clisp.org>
56808
56809         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
56810         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
56811         * m4/progtest.m4:
56812         Update from GNU gettext 0.14.2.
56813         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
56814
56815 2005-02-24  Bruno Haible  <bruno@clisp.org>
56816
56817         * lib/localcharset.c: Update from GNU gettext 0.14.2.
56818         * lib/config.charset: Update from GNU gettext 0.14.2.
56819
56820 2005-02-24  Bruno Haible  <bruno@clisp.org>
56821
56822         * lib/gettext.h: Update from GNU gettext 0.14.2.
56823
56824 2005-02-23  Simon Josefsson  <jas@extundo.com>
56825
56826         * m4/iconvme.m4: New file.
56827
56828 2005-02-23  Jim Meyering  <jim@meyering.net>
56829
56830         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
56831         change.
56832         Thanks to Bruno Haible for catching it.
56833
56834 2005-02-22  Simon Josefsson  <jas@extundo.com>
56835
56836         * modules/iconvme: New file.
56837
56838         * MODULES.html.sh: Add iconvme.
56839
56840 2005-02-22  Simon Josefsson  <jas@extundo.com>
56841
56842         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
56843
56844 2005-02-22  Simon Josefsson  <jas@extundo.com>
56845
56846         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
56847
56848 2005-02-22  Jim Meyering  <jim@meyering.net>
56849
56850         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
56851         s/ifndef/ifdef/.
56852
56853 2005-02-20  Neil Conway  <neilc@samurai.com>
56854
56855         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
56856         returned by OSX/Darwin if the specified buffer is not large
56857         enough for the hostname.
56858
56859 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
56860
56861         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
56862         pass it to _help, otherwise the latter coredumps trying to
56863         dereference state.root_argp.
56864
56865 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
56866
56867         * modules/chdir-long (Depends-on): Add memrchr.
56868         * modules/memrchr (Files): Add lib/memrchr.h.
56869         (Include): "memrchr.h".
56870
56871 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
56872
56873         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
56874
56875 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
56876
56877         * lib/memrchr.h: New file.
56878         * lib/chdir-long.c: Include it.
56879         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
56880         Don't bother including stddef.h.
56881
56882 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
56883
56884         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
56885         inclusion.
56886         Include <sys/types.h>, for dev_t.
56887         (ME_DUMMY, ME_REMOTE): Move from here....
56888         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
56889         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
56890         Dmitry V. Levin.
56891         Include mountlist.h first, to test the interface.
56892
56893 2005-01-29  Bruno Haible  <bruno@clisp.org>
56894
56895         * lib/progname.c (program_name): Initialize.
56896         Needed when linking statically on MacOS X.
56897
56898 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
56899
56900         Sync from coreutils.
56901         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
56902         (Depends-on): Add c-strtod.
56903         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
56904
56905 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
56906
56907         Sync from coreutils.
56908         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
56909
56910         Remove files that are specific to coreutils.
56911         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
56912
56913 2005-01-28  Bruno Haible  <bruno@clisp.org>
56914
56915         * modules/javacomp: New file.
56916         * MODULES.html.sh (Java): Add javacomp.
56917
56918 2005-01-28  Bruno Haible  <bruno@clisp.org>
56919
56920         * m4/javacomp.m4: New file, from GNU gettext.
56921
56922 2005-01-28  Bruno Haible  <bruno@clisp.org>
56923
56924         * lib/javacomp.sh.in: New file, from GNU gettext.
56925         * lib/javacomp.h: New file, from GNU gettext.
56926         * lib/javacomp.c: New file, from GNU gettext.
56927
56928 2005-01-26  Simon Josefsson  <jas@extundo.com>
56929
56930         * lib/gai_strerror.c: Use GPL in header.
56931
56932 2005-01-26  Bruno Haible  <bruno@clisp.org>
56933
56934         * modules/javaexec: New file.
56935         * MODULES.html.sh (Java): Add javaexec.
56936
56937 2005-01-26  Bruno Haible  <bruno@clisp.org>
56938
56939         * m4/javaexec.m4: New file, from GNU gettext.
56940
56941 2005-01-26  Bruno Haible  <bruno@clisp.org>
56942
56943         * lib/javaexec.sh.in: New file, from GNU gettext.
56944         * lib/javaexec.h: New file, from GNU gettext.
56945         * lib/javaexec.c: New file, from GNU gettext.
56946
56947 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
56948
56949         * modules/lchown (Depends-on): Remove lchown.h
56950
56951 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
56952
56953         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
56954         must be defined if the header file was not found, in order
56955         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
56956
56957 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
56958
56959         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
56960         initializers for struct pentry_state.
56961         (__argp_error): Check return value of __asprintf
56962         (__argp_failure): Translate error message
56963
56964         * lib/argp-parse.c: Removed braces around the expansion of N_()
56965
56966 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
56967
56968         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
56969         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
56970         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
56971         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
56972         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
56973         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
56974         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
56975         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
56976         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
56977         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
56978         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
56979         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
56980         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
56981         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
56982         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
56983         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
56984         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
56985         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
56986         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
56987         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
56988         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
56989         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
56990         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
56991         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
56992         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
56993         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
56994         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
56995         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
56996         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
56997         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
56998         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
56999         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
57000         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
57001         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
57002         xstrtol.m4, xstrtoumax.m4, yesno.m4:
57003         Use an all-permissive copyright notice, recommended by RMS.
57004
57005 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
57006
57007         * modules/chdir-long (Depends-on): Remove mempcpy.
57008
57009 2005-01-21  Jim Meyering  <jim@meyering.net>
57010
57011         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
57012         same value as for Solaris 9.
57013
57014         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
57015         component length.  This included changing the parameter to be
57016         of type `char *' rather than `char const *'.
57017         * lib/chdir-long.h (chdir_long): Update prototype.
57018
57019         * lib/openat.c (fdopendir, fstatat): New functions.
57020         * lib/openat.h: Include headers required for use of DIR and struct
57021         stat.
57022         [AT_SYMLINK_NOFOLLOW]: Define.
57023         (fdopendir, fstatat): Add prototypes.
57024
57025 2005-01-21  Bruno Haible  <bruno@clisp.org>
57026
57027         * modules/classpath: New file.
57028         * MODULES.html.sh (Java): Add classpath.
57029
57030 2005-01-21  Bruno Haible  <bruno@clisp.org>
57031
57032         * lib/classpath.h: New file, from GNU gettext.
57033         * lib/classpath.c: New file, from GNU gettext.
57034
57035 2005-01-20  Simon Josefsson  <jas@extundo.com>
57036
57037         * modules/version-etc-fsf: New file.
57038
57039 2005-01-20  Simon Josefsson  <jas@extundo.com>
57040
57041         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
57042         * lib/version-etc.c: Remove version_etc_copyright.
57043         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
57044         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
57045
57046 2005-01-20  Simon Josefsson  <jas@extundo.com>
57047
57048         * lib/base64.h (isbase64): Add.
57049
57050         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
57051         using a unsigned prototype, don't inline.
57052         (base64_decode): Use it.
57053
57054 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
57055
57056         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
57057         it.
57058
57059 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
57060
57061         * lib/save-cwd.c (save_cwd): Remove code to support the case
57062         where fchdir is missing or flaky.
57063
57064 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
57065
57066         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
57067
57068 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
57069
57070         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
57071         AC_LIBSOURCES now does this.
57072         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
57073         with new ullong_max module.
57074
57075 2005-01-19  Bruno Haible  <bruno@clisp.org>
57076
57077         * modules/sh-quote: New file.
57078         * MODULES.html.sh (Executing programs): Add sh-quote.
57079
57080 2005-01-19  Bruno Haible  <bruno@clisp.org>
57081
57082         * lib/sh-quote.h: New file, from GNU gettext.
57083         * lib/sh-quote.c: New file, from GNU gettext.
57084
57085 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
57086
57087         Merge from coreutils.
57088         * m4/ullong_max.m4: New file.
57089         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
57090         (gl_MACROS): Assume localeconv exists.
57091
57092 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
57093
57094         Merge changes from coreutils, as described below in several
57095         changelogs dated today.
57096
57097         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
57098         (O_DIRECTORY): Remove; not needed here, since "." must be
57099         a directory.  All uses removed.
57100         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
57101         universal on Suns, and we also need to test for IRIX.
57102         Revamp code to use 'if' rather than '#if'.
57103         Avoid unnecessary comparison of cwd->desc to 0.
57104
57105         * lib/utimens.c (futimens): Robustify the previous patch, by checking
57106         for known valid error numbers rather than observed invalid ones.
57107
57108 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
57109
57110         * modules/ullong_max: New file.
57111
57112         * modules/chdir-long, modules/openat: New files.
57113         * modules/save-cwd (Depends-on): Depend on chdir-long.
57114         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
57115
57116 2005-01-18  Jim Meyering  <jim@meyering.net>
57117
57118         Merge from coreutils.
57119         * m4/chdir-long.m4, m4/openat.m4: New files.
57120         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
57121         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
57122         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
57123         is sane and DOES follow symlinks.  Besides, testing 20 different
57124         systems found no broken chown implementations.
57125         Prompted by a change in rsync's copy of this macro.
57126         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
57127
57128         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
57129
57130         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
57131         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
57132         NULL-means-set-to-current-time semantics.
57133         Remove temporary file immediately, rather than waiting
57134         for configure's at-exit trap code to do it.
57135
57136 2005-01-18  Jim Meyering  <jim@meyering.net>
57137
57138         * lib/version-etc.c (version_etc_copyright): Update copyright date.
57139
57140         * lib/utimens.c (futimens): Account for the fact that futimes
57141         can also fail with errno == ENOSYS or errno == ENOENT.
57142         Patch from Dmitry V. Levin.
57143
57144         Change the name of the robust chdir function from chdir to chdir_long.
57145         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
57146         (restore_cwd): Use chdir_long, not chdir.
57147         * lib/chdir-long.c: Renamed from chdir.c.
57148         * lib/chdir-long.h: Renamed from chdir.h.
57149         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
57150         Hurd.
57151
57152 2005-01-18  Bruno Haible  <bruno@clisp.org>
57153
57154         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
57155         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
57156         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
57157         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
57158         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
57159         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
57160         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
57161         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
57162         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
57163         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
57164         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
57165         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
57166         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
57167         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
57168         Use an all-permissive copyright notice, recommended by RMS.
57169
57170 2005-01-18  Bob Proulx  <bob@proulx.com>
57171
57172         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
57173         simplify offsetof() macro construct to avoid compile failure with
57174         native HP-UX 11.0 ANSI C compiler.
57175
57176 2005-01-17  Bruno Haible  <bruno@clisp.org>
57177
57178         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
57179         redundant because stpncpy.m4 takes care of it.
57180
57181 2005-01-17  Bruno Haible  <bruno@clisp.org>
57182
57183         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
57184
57185 2005-01-17  Bruno Haible  <bruno@clisp.org>
57186
57187         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
57188         used.
57189
57190 2005-01-17  Bruno Haible  <bruno@clisp.org>
57191
57192         * lib/fwriteerror.h (fwriteerror): Change specification to include
57193         fclose.
57194         * lib/fwriteerror.c: Include <stdbool.h>.
57195         (fwriteerror): At the end, close the file stream. Record whether
57196         stdout was already closed.
57197
57198 2005-01-17  Bruno Haible  <bruno@clisp.org>
57199
57200         * lib/execute.c (environ): Declare if needed.
57201         * lib/pipe.c (environ): Likewise.
57202         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
57203
57204 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
57205
57206         * modules/argp: Depend on vsnprintf
57207
57208 2005-01-10  Jim Meyering  <jim@meyering.net>
57209
57210         * modules/closeout (Depends-on): Add atexit.
57211
57212 2005-01-06  Bruno Haible  <bruno@clisp.org>
57213
57214         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
57215
57216 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
57217
57218         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
57219         definitions to be after all include files, to avoid collisions.
57220         Problem reported by Bob Proulx.
57221
57222 2005-01-04  Jim Meyering  <jim@meyering.net>
57223
57224         Changes imported from coreutils.
57225         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
57226         as the mkstemp template, use a temporary directory and an
57227         8.3-friendly template to avoid trouble on systems like DJGPP.
57228         Reported by Juan M. Guerrero via Stepan Kasal.
57229         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
57230         close. Remove the temporary directory right away, rather than waiting
57231         for configure's at-exit trap code to do it.
57232         Suggestion from Stepan Kasal.
57233
57234 2005-01-01  Simon Josefsson  <jas@extundo.com>
57235
57236         * gnulib-tool: Print #include directives when --import'ing.
57237
57238 2004-12-28  Simon Josefsson  <jas@extundo.com>
57239
57240         * tests/test-base64.c: Include required header files.  Remove
57241         unused variables.
57242
57243 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
57244
57245         * modules/error (Depends-on): Remove gettext.
57246
57247 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
57248
57249         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
57250         not needed.  This removes a dependency on the gettext module.
57251         [defined _LIBC]: Do not include <libintl.h>; not needed.
57252
57253 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
57254
57255         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
57256         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
57257
57258 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
57259
57260         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
57261         HAVE_DECL_STRTOLD.
57262
57263 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
57264
57265         * modules/getdate (Depends-on): Remove alloca-opt.
57266
57267 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
57268
57269         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
57270
57271 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
57272
57273         * lib/argp-parse.c: Include <stddef.h>.
57274         (alignof, alignto): New macros.
57275         (parser_init): Don't assume that void * is aligned sufficiently
57276         for struct option.
57277
57278         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
57279         need to extend the stack.
57280         (YYINITDEPTH): New macro, so that the initial stack isn't overly
57281         large.
57282
57283 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
57284
57285         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
57286
57287 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
57288
57289         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
57290         (2004-10-24) change.  Apparently this was a false alarm.
57291
57292         * modules/getdate: Depend on alloca-opt, not alloca.
57293
57294 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
57295
57296         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
57297         Remove now-obsolete comment about AIX.
57298         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
57299         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
57300         (YYMAXDEPTH): New macro.
57301
57302 2004-12-18  Simon Josefsson  <jas@extundo.com>
57303
57304         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
57305
57306 2004-12-18  Bruno Haible  <bruno@clisp.org>
57307
57308         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
57309
57310 2004-12-18  Bruno Haible  <bruno@clisp.org>
57311
57312         * lib/fatal-signal.c (fatal_signals): Make non-const.
57313         (init_fatal_signals): New function.
57314         (uninstall_handlers, install_handlers): Ignore signals that were set to
57315         SIG_IGN.
57316         (at_fatal_signal): Call init_fatal_signals.
57317         (init_fatal_signal_set): Likewise. Ignore signals that were set to
57318         SIG_IGN.
57319         Reported by Paul Eggert.
57320
57321 2004-12-18  Bruno Haible  <bruno@clisp.org>
57322
57323         * doc/alloca.texi: New file.
57324         * doc/alloca-opt.texi: New file.
57325
57326 2004-12-17  Jim Meyering  <jim@meyering.net>
57327
57328         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
57329         Otherwise, install-sh could exit with improper exit status when
57330         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
57331
57332 2004-12-16  Simon Josefsson  <jas@extundo.com>
57333
57334         * tests/test-base64.c: Add license.
57335
57336 2004-12-15  Stepan Kasal  <address@hidden>
57337
57338         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
57339
57340 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
57341
57342         * modules/getcwd (Files): Add m4/d-ino.m4.
57343         Suggested by Mark D. Baushke.
57344
57345 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
57346
57347         * lib/getdate.y (textint): New member "negative".
57348         (time_zone_hhmm): New function.
57349         Expect 14 shift-reduce conflicts, not 13.
57350         (o_colon_minutes): New rule.
57351         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
57352         (yylex): Set the "negative" member of signed numbers.
57353
57354 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
57355
57356         * doc/getdate.texi (Time of day items, Time zone items):
57357         Describe new formats +00:00, UTC+00:00.
57358
57359 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
57360
57361         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
57362         spurious "-l"s.  Problem reported by Stepan Kasal.
57363
57364 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
57365
57366         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
57367         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
57368
57369 2004-12-04  Simon Josefsson  <jas@extundo.com>
57370
57371         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
57372         Vandoorselaere <yoann@prelude-ids.org>.
57373
57374 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
57375
57376         Changes imported from coreutils.
57377         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
57378         exist.
57379         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
57380
57381 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
57382
57383         Changes imported from coreutils.
57384         * lib/hard-locale.c: Assume <locale.h> exists.
57385         Include "strdup.h".
57386         (GLIBC_VERSION): New macro.
57387         (hard_locale): Assume setlocale exists.
57388         Rewrite to avoid #ifdef.
57389         Use strdup rather than malloc + strcpy.
57390         * lib/human.c: Assume <locale.h> exists.
57391         (human_readable): Assume localeconv exists.
57392
57393 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
57394
57395         * modules/hard-locale (Depends-on): Add strdup.
57396
57397 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
57398
57399         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
57400         convert T2, not T.  (Imported from libc.)
57401
57402 2004-11-30  Simon Josefsson  <jas@extundo.com>
57403
57404         * modules/restrict (License): Change to LGPL.
57405
57406 2004-11-30  Simon Josefsson  <jas@extundo.com>
57407
57408         * m4/restrict.m4: Add copyright and copying conditions.
57409
57410 2004-11-30  Simon Josefsson  <jas@extundo.com>
57411
57412         * m4/base64.m4: New file.
57413
57414 2004-11-30  Simon Josefsson  <jas@extundo.com>
57415
57416         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
57417         base64.
57418
57419         * tests/test-base64.c: New file.
57420
57421         * modules/base64: New file.
57422
57423 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
57424
57425         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
57426         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
57427
57428         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
57429
57430 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
57431
57432         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
57433         (__getcwd.c): Don't restore errno; glibc doesn't.
57434         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
57435         first, falling back to our code only if its results look suspicious.
57436         Ensure that the resulting buffer is only as large as necessary.
57437
57438         * lib/readutmp.c: Include readutmp.h first.
57439         Include <errno.h>, since readutmp.h no longer does that.
57440         * lib/readutmp.h: Don't include <errno.h>,
57441         <sys/param.h>, <time.h>; not needed to establish interface.
57442         (errno): Remove decl.
57443         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
57444         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
57445         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
57446
57447 2004-11-28  Simon Josefsson  <jas@extundo.com>
57448
57449         * lib/base64.h, base64.c: New file.
57450
57451 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
57452
57453         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
57454
57455 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
57456
57457         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
57458         (Depends-on): Remove pathmax, same.  Add mempcpy.
57459         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
57460         (Makefile.am): Append getcwd.h to lib_SOURCES.
57461         (Include): Add getcwd.h.
57462         (Maintainer): Change from Jim Meyering to "all, glibc",
57463         since getdate now uses intended-for-glibc code.
57464         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
57465         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
57466
57467 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
57468
57469         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
57470         HP's ANSI C compiler.
57471         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
57472         Declaring int functions causes warnings on some modern systems and
57473         shouldn't be needed to compile on ancient ones.
57474         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
57475         defined.
57476
57477         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
57478         with the following changes.
57479         (__set_errno): Parenthesize properly.
57480         Include <stdbool.h>.
57481         (MIN, MAX, MATCHING_INO): New macros.
57482         (__getcwd): Define with prototype, not K&R form.
57483         Use heuristics to allocate default buffer on stack if possible.
57484         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
57485         behavior, and to avoid the PATH_MAX limit when computing
57486         ../../../../...
57487         Use MATCHING_INO to compare inode number to file.
57488         Check for arithmetic overflow in size calculations.
57489         Fix bug in reallocation of dot array that caused getcwd to fail
57490         on directories nested deeper than 75.
57491         Be more careful about saving errno on error.
57492         Do not use realloc; use only free+malloc, as this is a bit
57493         more flexible and avoids a needless copy operation.
57494         Do not inspect st_dev and st_ino for symbolic links; POSIX
57495         doesn't specify the latter.
57496         Check for closedir errors.
57497         Avoid needless casts.
57498         Use "#ifdef weak_alias" around weak_alias, to be like other
57499         glibc code.
57500         The following changes to getcwd.c have effect only when used in
57501         gnulib; they have no effect inside glibc proper.
57502         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
57503         as alloca isn't used.
57504         (alloca, __alloca): Likewise.
57505         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
57506         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
57507         unconditionally, as gnulib assumes C89 or better.
57508         Do not include <sys/param.h>.
57509         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
57510         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
57511         better.
57512         (NULL) [!defined NULL]: Remove; we assume C89 or better.
57513         Include <dirent.h> in a way that is compatible with modern Autoconf.
57514         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
57515         New macros, if not already defined.
57516         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
57517         Use "_LIBC", not "defined _LIBC", for consistency.
57518         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
57519         a mempcpy module.
57520         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
57521         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
57522         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
57523         credit only to Jim Meyering and adjust the copyright dates.
57524         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
57525         <stdlib.h>, <unistd.h>, "pathmax.h".
57526         Instead, include "xgetcwd.h" (first) and "getcwd.h".
57527         (INITIAL_BUFFER_SIZE): Remove.
57528         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
57529
57530 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
57531
57532         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
57533         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
57534         Use the _ONCE methods, for efficiency.
57535         Check for fcntl.h.  In test program, include <errno.h>
57536         and <fcntl.h> if available.  Remove old K&R cruft from
57537         test program.  Check for common errors in GNU/Linux,
57538         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
57539         don't do AC_LIBOBJ, as that's getcwd.m4's job.
57540         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
57541         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
57542         name accordingly.
57543         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
57544         accommodate new getcwd.c.
57545         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
57546         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
57547         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
57548         that's all we need now.
57549
57550 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
57551
57552         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
57553         argp-parse.c depends on getopt internals, that means we should
57554         always use our getopt, to be on the safe side.
57555         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
57556         order not to spoil the result of an eventual previous invocation
57557         of gl_GETOPT_SUBSTITUTE.
57558
57559 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
57560
57561         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
57562         redefinition warnings. To avoid them, include the defines
57563         in `#if !defined __need_getopt ... #endif'. The only place
57564         where __getopt_argv_const is used is in definitions
57565         of getopt_long and getopt_long_only below, which are as well
57566         protected by `#ifndef __need_getopt'.
57567         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
57568         __need_getopt after including <stdio.h> and <unistd.h> These
57569         headers might have defined it.
57570
57571 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
57572
57573         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
57574
57575 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
57576
57577         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
57578         (futimens): New function, which uses futimes if available.
57579         (futimens, utimens): Support timespec==NULL, with same semantics
57580         as utime and utimens.
57581         * lib/utimens.h (futimens): New decl.
57582
57583 2004-11-23  Jim Meyering  <jim@meyering.net>
57584
57585         * lib/getopt_.h: Remove trailing blanks.
57586
57587 2004-11-23  Jim Meyering  <jim@meyering.net>
57588
57589         * lib/__fpending.c: Add comment.
57590
57591 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
57592
57593         * modules/canonicalize (Depends-on): Add xreadlink.
57594         Problem reported by James Youngman.
57595
57596 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
57597
57598         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
57599         New macros.
57600         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
57601         optopt): Use them instead of invoking ## directly; otherwise, the
57602         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
57603
57604 2004-11-19  Bruno Haible  <bruno@clisp.org>
57605
57606         * lib/strtok_r.c: Move comments from here...
57607         * lib/strtok_r.h: ... to here.
57608
57609 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
57610
57611         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
57612         implementations that mishandle size_t overflow.
57613
57614 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
57615
57616         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
57617         might fail.  Problem reported by Yoann Vandoorselaere.
57618         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
57619         implementations that mishandle size_t overflow.
57620
57621 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
57622
57623         * modules/canon-host (Depends-on): Add strdup.
57624
57625 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
57626
57627         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
57628
57629 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
57630
57631         * lib/canon-host.c: Include "strdup.h".
57632         (canon_host): Use getaddrinfo if available, so that IPv6 works.
57633         Use strdup instead of malloc/strcpy to duplicate strings.
57634
57635         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
57636         (human_space_before_unit): New constant.
57637         * lib/human.c (human_readable): Support it.
57638
57639         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
57640         (xgetcwd): Set errno correctly when failing.
57641         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
57642         the failure is actually due to a PATH_MAX problem.
57643
57644         Further getopt changes to make it more likely that glibc will
57645         buy the changes back.
57646         * lib/getopt.c (POSIXLY_CORRECT): New constant.
57647         (getopt): Use it, so to preserve glibc semantic
57648         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
57649         when compiling for libc.
57650         * lib/getopt_.h (__getopt_argv_const): Bring it back.
57651         (getopt_long, getopt_long_only): Use it.
57652
57653         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
57654         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
57655         (getopt): Argv is now char * const *, as per standard.
57656         (_getopt_internal_r, _getopt_internal): Argv is now char **,
57657         not char *__getopt_argv_const *.
57658         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
57659         _getopt_long_only_r): Likewise.
57660         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
57661         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
57662         _getopt_long_r, _getopt_long_only_r): Likewise.
57663         * lib/getopt_.h (__getopt_argv_const): Remove.
57664         (getopt): Argv is now char * const *, as per standard.
57665
57666         * lib/getdate.y (tORDINAL): New token.
57667         (day, relunit): Allow it for relative times.
57668         (relative_time_table): Use tORDINAL for ordinals.
57669
57670 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
57671
57672         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
57673         Document that "second" isn't allowed as an ordinal number.
57674
57675 2004-11-16  Jim Meyering  <jim@meyering.net>
57676
57677         * modules/closeout (Depends-on): Add fpending.
57678
57679 2004-11-15  Jim Meyering  <jim@meyering.net>
57680
57681         * lib/closeout.c: Include "__fpending.h" once again.
57682         Include <stdbool.h>.
57683         (close_stdout): Don't fail just because stdout was closed initially,
57684         since some programs don't write to stdout in the normal course of
57685         operation (other than --version and --help), and we don't want this
57686         function to make e.g. `touch file >&-' fail.
57687         But do fail if it was closed and someone has tried to write to it.
57688         E.g., `printf foo >&-' must fail.
57689
57690 2004-11-13  Jim Meyering  <jim@meyering.net>
57691
57692         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
57693
57694 2004-11-12  Simon Josefsson  <jas@extundo.com>
57695
57696         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
57697         small doc fix is still pending.
57698
57699 2004-11-11  Simon Josefsson  <jas@extundo.com>
57700
57701         * modules/strtok_r: New file.
57702
57703         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57704         strtok_r.
57705
57706 2004-11-11  Simon Josefsson  <jas@extundo.com>
57707
57708         * m4/strtok_r.m4: New file.
57709
57710         * m4/getopt.m4: Replace opterr.
57711
57712 2004-11-11  Simon Josefsson  <jas@extundo.com>
57713
57714         * lib/strtok_r.h, strtok_r.c: New file.
57715
57716 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
57717
57718         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
57719         of replacing opterr, getopt, etc.  This should handle the
57720         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
57721
57722 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
57723
57724         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
57725         we can stop lying to compilers about the constness of argv when we
57726         are compiled outside glibc.
57727         (getopt, getopt_long, getopt_long_only): Use it.
57728         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
57729         _getopt_internal, getopt): Likewise.
57730         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
57731         _getopt_long_only_r): Likewise.
57732         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
57733         _getopt_long_r, _getopt_long_only_r): Likewise.
57734
57735         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
57736         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
57737         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
57738         the other external symbols.
57739         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
57740         declaration, since the above renaming now works around collisions.
57741
57742 2004-11-11  Jim Meyering  <jim@meyering.net>
57743
57744         * lib/linebreak.c: Remove trailing blanks.
57745         * lib/alloca_.h: Likewise.
57746         * lib/acosl.c: Likewise.
57747         * lib/euidaccess.c: Likewise.
57748         * lib/allocsa.h: Likewise.
57749
57750 2004-11-10  Simon Josefsson  <jas@extundo.com>
57751
57752         * m4/getaddrinfo.m4: New file.
57753
57754 2004-11-10  Simon Josefsson  <jas@extundo.com>
57755
57756         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
57757
57758 2004-11-10  Simon Josefsson  <jas@extundo.com>
57759
57760         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57761         getaddrinfo.
57762
57763         * modules/getaddrinfo: New file.
57764
57765 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
57766
57767         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
57768
57769 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
57770
57771         * lib/mktime.c (SHR): New macro, which is a portable
57772         substitute for >> that should work even on Crays.
57773         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
57774         Problem reported by Mark D. Baushke in
57775         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
57776         * lib/getdate.y (SHR): Likewise.
57777         (tm_diff): Use it.
57778         * lib/strftime.c (SHR): Likewise.
57779         (tm_diff): Use it.
57780         * lib/quotearg.c (struct quoting_options): Use unsigned int for
57781         quote_these_too, so that right shifts are well defined.  All uses
57782         changed.
57783
57784 2004-11-10  Jim Meyering  <jim@meyering.net>
57785
57786         Ensure that no close failure goes unreported.
57787         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
57788         return early when it seems there's nothing to flush.
57789         Don't include __fpending.h.
57790
57791 2004-11-10  Jim Meyering  <jim@meyering.net>
57792
57793         * modules/closeout (Depends-on): Remove fpending.
57794
57795 2004-11-10  Jim Meyering  <jim@meyering.net>
57796
57797         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
57798
57799 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
57800
57801         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
57802         gl_FUNC_STRFTIME.
57803         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
57804         and AC_REQUIRE when possible, to avoid duplicate checks.
57805         Check for <wchar.h>.
57806
57807 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
57808
57809         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
57810
57811 2004-11-09  Bruno Haible  <bruno@clisp.org>
57812
57813         * m4/sockpfaf.m4: New file.
57814
57815 2004-11-05  Bruno Haible  <bruno@clisp.org>
57816
57817         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
57818         Reported by Mark D. Baushke <mdb@cvshome.org>.
57819
57820 2004-11-04  Bruno Haible  <bruno@clisp.org>
57821
57822         2004-09-11  Bruno Haible  <bruno@clisp.org>
57823                 * allocsa.valgrind: New file.
57824         2004-02-06  Bruno Haible  <bruno@clisp.org>
57825                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
57826                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
57827                 Reported by Christopher Seip <chris.seip@hp.com>.
57828
57829 2004-11-04  Bruno Haible  <bruno@clisp.org>
57830
57831         * modules/allocsa (Files): Add lib/allocsa.valgrind.
57832         (Makefile.am): Distribute it.
57833
57834 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
57835
57836         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
57837         with errno == ERANGE if the buffer is too small.
57838         Problem reported by Mark D. Baushke.
57839
57840 2004-11-03  Albert Chin  <china@thewrittenword.com>
57841             Paul Eggert  <eggert@cs.ucla.edu>
57842
57843         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
57844         equivalent, substitute $ac_type for equivalent type rather than
57845         blindly using uint32_t *always* which won't work if uint32_t is not
57846         available.  Define _UINT32_T to work around typedef of uint32_t if
57847         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
57848         2.5.1.
57849
57850 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
57851
57852         * m4/jm-macros.m4: Sync from coreutils.
57853         (gl_MACROS): Check for mbrlen, for pathchk.
57854         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
57855
57856 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
57857
57858         * lib/xreadlink.c (MAXSIZE): New macro.
57859         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
57860         size does not exceed MAXSIZE.  Avoid cast.
57861         As suggested by Mark D. Baushke in
57862         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
57863         if readlink fails with buffer size just under MAXSIZE, try again
57864         with MAXSIZE.
57865
57866 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
57867
57868         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
57869
57870 2004-11-02  Derek R. Price  <derek@ximbiot.com>
57871         and  Paul Eggert  <eggert@cs.ucla.edu>
57872
57873         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
57874         (get_date): Overparenthesize to avoid GCC warning.
57875
57876 2004-11-02  Bruno Haible  <bruno@clisp.org>
57877
57878         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
57879         returns void.
57880
57881 2004-11-02  Bruno Haible  <bruno@clisp.org>
57882
57883         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
57884         function returns void.
57885
57886 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
57887
57888         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
57889         fflush_unlocked, flockfile, funlockfile, funlockfile,
57890         fputs_unlocked, putc_unlocked.
57891
57892 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
57893
57894         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
57895         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
57896         already declared.
57897
57898 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
57899
57900         * modules/getdate (Files): Add doc/getdate.texi.
57901         (Depends-on): Add setenv, xalloc.
57902
57903 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
57904
57905         * lib/getdate.y: Add support for TZ="foo" within a date string.
57906         Fix some bugs near time_t boundaries.  Reject dates with
57907         out-of-range components, e.g., "Sept 31".
57908         Include <stdlib.h>, "setenv.h", "xalloc.h".
57909         (ISDIGIT_LOCALE): Remove; unused.
57910         Note that the TZ and time functions used here are not reentrant.
57911         (mktime_ok, get_tz): New functions.
57912         (TZBUFSIZE): New constant.
57913         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
57914         This requires that we sometimes generate our own TZ="XXX..." setting.
57915
57916 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
57917
57918         * doc/getdate.texi: New file, from coreutils with modifications for
57919         the new TZ parsing.
57920
57921 2004-10-27  Derek R. Price  <derek@ximbiot.com>
57922
57923         * lib/mktime.c (not_equal_tm): Remove redundant check.
57924
57925 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57926
57927         * modules/regex (lib_SOURCES): Add regex.c.
57928         Reported by James Youngman in
57929         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
57930
57931 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57932
57933         * lib/getdate.y: Use Bison 1.875 features, and some minor
57934         code cleanups.  This change does not affect semantics.
57935         Don't include <stdlib.h>; no longer needed.
57936         Don't include unlocked-io.h; only the "#if TEST" code uses
57937         stdio, and performance isn't crucial there.
57938         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
57939         Bison 1.875 features as described below.
57940         All uses of "PC." replaced by "pc->".
57941         (YYSTYPE): Add a forward declaration.
57942         (yylex, yyerror): Use full prototypes in forward decls.
57943         Use "%pure-parser" rather than obsolescent "%pure_parser".
57944         Use %parse-param and %lex-param instead of obsolescent
57945         YYPARSE_PARAM and YYLEX_PARAM.
57946         (meridian_table, month_and_day_table, time_units_table,
57947         relative_time_table, time_zone_table, military_table,
57948         lookup_zone, lookup_word, get_date):
57949         Use NULL instead of 0 where appropriate.
57950         (to_hour): Avoid abort (), to avoid a dependency on
57951         stdlib.h.
57952         (yyerror, yylex): Now accepts parser_control * arg.
57953         (main) [TEST]: Use '\0' rather than 0 for char.
57954
57955 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
57956
57957         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
57958
57959 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
57960
57961         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
57962         It's now the caller's responsibility to handle the case where
57963         !HAVE_GETPAGESIZE && !defined getpagesize.
57964
57965         * lib/mktime.c (leapyear): Arg is long int, not int.
57966
57967 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
57968
57969         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
57970
57971 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
57972
57973         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
57974         missing.  Problem reported by James Youngman.
57975
57976 2004-10-16  Simon Josefsson  <jas@extundo.com>
57977
57978         * gnulib-tool: Fix comments.  Fix parse problem.
57979         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
57980
57981 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
57982
57983         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
57984         implementation of getopt_long.  Problem reported by Alexander Taler in:
57985         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
57986
57987 2004-10-15  Bruno Haible  <bruno@clisp.org>
57988
57989         * gnulib-tool: Untabify. Initialize supplied_libname.
57990         (func_usage): More homogenous output.
57991         (func_modules_transitive_closure, func_modules_to_filelist,
57992         func_emit_lib_Makefile_am): New functions.
57993         (func_import): New function, extracted from big case statement. Use
57994         func_get_license, func_modules_transitive_closure,
57995         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
57996         opt_lgpl. Don't use test -a, as it's not portable.
57997         (func_create_testdir): Use func_modules_transitive_closure,
57998         func_modules_to_filelist, func_emit_lib_Makefile_am.
57999
58000 2004-10-15  Bruno Haible  <bruno@clisp.org>
58001
58002         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
58003
58004 2004-10-15  Bruno Haible  <bruno@clisp.org>
58005
58006         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
58007         the portions belonging to each module.
58008         Suggested by Derek Robert Price <derek@ximbiot.com>.
58009
58010 2004-10-12  Simon Josefsson  <jas@extundo.com>
58011
58012         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
58013         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
58014         to real functions.
58015
58016 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
58017
58018         * modules/vsnprintf: New file.
58019
58020 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
58021
58022         * m4/vsnprintf.m4: New file.
58023
58024 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
58025
58026         * lib/vsnprintf.h: New file.
58027         * lib/vsnprintf.c: New file.
58028
58029 2004-10-11  Bruno Haible  <bruno@clisp.org>
58030
58031         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
58032         vsnprintf.
58033
58034 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
58035
58036         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
58037
58038 2004-10-07  Bruno Haible  <bruno@clisp.org>
58039
58040         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
58041         fits into the provided buffer.
58042
58043 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
58044
58045         * lib/diacrit.c, diacrit.h: Add GPL notice.
58046
58047         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
58048         notice.
58049         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
58050         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
58051         This avoids a potential constant-folding bug.
58052
58053 2004-10-05  Bruno Haible  <bruno@clisp.org>
58054
58055         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
58056         for the declaration of strsep.
58057
58058 2004-10-05  Bruno Haible  <bruno@clisp.org>
58059
58060         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
58061
58062 2004-10-04  Simon Josefsson  <jas@extundo.com>
58063
58064         * modules/memmem: New file.
58065         * tests/test-memmem.c: New file.
58066         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
58067
58068 2004-10-04  Simon Josefsson  <jas@extundo.com>
58069
58070         * m4/memmem.m4: New file.
58071
58072 2004-10-04  Simon Josefsson  <jas@extundo.com>
58073
58074         * lib/memmem.h: New file.
58075         * lib/memmem.c: New file, taken from glibc.
58076
58077 2004-10-04  Simon Josefsson  <jas@extundo.com>
58078
58079         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
58080         '#ifdef USE_UNLOCKED_IO'.
58081
58082 2004-10-04  Simon Josefsson  <jas@extundo.com>
58083
58084         * config/srclist.txt: Add memmem from glibc.
58085
58086 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
58087
58088         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
58089
58090         * modules/argmatch, modules/argp, modules/closeout, modules/error,
58091         modules/exclude, modules/getdate, modules/getline,
58092         modules/getndelim2, modules/getpass, modules/getpass-gnu,
58093         modules/getusershell, modules/linebuffer, modules/md5,
58094         modules/mountlist, modules/posixtm, modules/readtokens,
58095         modules/readutmp, modules/regex, modules/sha1,
58096         modules/version-etc, modules/yesno:
58097         Remove dependency on unlocked-io.
58098
58099 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
58100
58101         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
58102
58103         * m4/unlocked-io.m4: Add copyright notice.
58104         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
58105
58106 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
58107
58108         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
58109         * lib/xmalloc.c (xmemdup): Likewise.
58110         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
58111         XFREE): Remove these long-obsolescent macros.
58112         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
58113         * lib/xstrdup.c: Remove.
58114
58115         * lib/regex.c (re_comp): Cast gettext return value to char *,
58116         Problem reported by Martin Neitzel via Mark D. Baushke.
58117
58118 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
58119
58120         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
58121         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
58122         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
58123         regex.c, sha1.c, version-etc.c, yesno.c:
58124         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
58125         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
58126         the includer's responsibility.
58127
58128         Sync from coreutils.
58129
58130         * lib/modechange.c (mode_compile): Don't decrement a pointer that
58131         points to the start of a string, as the C Standard says the
58132         resulting behavior is undefined.
58133
58134         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
58135         simple -> simple_backups, numbered_existing ->
58136         numbered_existing_backups, numbered -> numbered_backups
58137         to avoid shadowing problems.  All uses changed.
58138         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
58139         * lib/backupfile.c (check_extension, numbered_backup):
58140         Rename locals to avoid shadowing 'basename'.
58141         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
58142         once.
58143
58144         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
58145         * lib/.cvsignore: Add getopt.h.
58146
58147 2004-10-04  Bruno Haible  <bruno@clisp.org>
58148
58149         * modules/README: New file.
58150         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
58151         not a module.
58152
58153 2004-10-02  Jim Meyering  <jim@meyering.net>
58154
58155         * lib/dirfd.h, getpagesize.h: Add copyright notice.
58156
58157 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
58158
58159         * modules/strsep: New file.
58160
58161 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
58162
58163         * m4/strsep.m4: New file.
58164
58165 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
58166
58167         * lib/strsep.h: New file.
58168         * lib/strsep.c: New file.
58169
58170 2004-10-01  Simon Josefsson  <jas@extundo.com>
58171
58172         * lib/snprintf.c (snprintf): Handle size==0.
58173
58174 2004-10-01  Simon Josefsson  <jas@extundo.com>
58175             Bruno Haible  <bruno@clisp.org>
58176
58177         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
58178         (snprintf): Declare 'args'.
58179
58180 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
58181
58182         * lib/snprintf.c: Remove comments as to why each header is needed.
58183
58184 2004-10-01  Bruno Haible  <bruno@clisp.org>
58185
58186         * MODULES.html.sh: Add strsep.
58187
58188 2004-09-30  Simon Josefsson  <jas@extundo.com>
58189
58190         * modules/snprintf: New file.
58191
58192 2004-09-30  Simon Josefsson  <jas@extundo.com>
58193
58194         * m4/snprintf.m4: New file.
58195
58196 2004-09-30  Simon Josefsson  <jas@extundo.com>
58197
58198         * lib/snprintf.h, lib/snprintf.c: New files.
58199
58200 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58201
58202         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
58203         (hol_entry_help): Never translate an empty string.
58204         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
58205         * lib/argp.h (OPTION_NO_TRANS): New option.
58206
58207 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
58208
58209         * modules/argp (Maintainer): Replace Simon Josefsson
58210         by Sergey Poznyakoff.
58211
58212 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
58213
58214         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
58215         changes merged back into glibc.
58216
58217 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
58218
58219         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
58220
58221 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
58222
58223         * lib/xvasprintf.c: Include xalloc.h.
58224         (xvasprintf): Use xalloc_die, not xmalloc_die.
58225
58226 2004-09-29  Bruno Haible  <bruno@clisp.org>
58227
58228         * modules/alloca-opt: New file, derived from modules/alloca.
58229         * modules/allocsa: Depend on alloca-opt instead of alloca.
58230         * modules/setenv: Likewise.
58231         * modules/vasnprintf: Likewise.
58232         * MODULES.html.sh: Add alloca-opt.
58233
58234 2004-09-28  Simon Josefsson  <jas@extundo.com>
58235
58236         * gnulib-tool: New parameter --lgpl, to asseert that modules are
58237         LGPL, and to replace license template from GPL to LGPL.
58238
58239 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
58240
58241         * modules/dummy: Change license to LGPL.
58242
58243 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
58244
58245         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
58246
58247 2004-09-24  Simon Josefsson  <jas@extundo.com>
58248
58249         * modules/minmax (License): Change from GPL to LGPL.
58250
58251 2004-09-23  Simon Josefsson  <jas@extundo.com>
58252
58253         * gnulib-tool (--import): Typo.
58254
58255 2004-09-23  Simon Josefsson  <jas@extundo.com>
58256
58257         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
58258
58259 2004-09-22  Bruno Haible  <bruno@clisp.org>
58260
58261         * modules/*: Add 'License' field.
58262         * gnulib-tool: Accept --extract-license option.
58263         (func_get_license): New function.
58264
58265 2004-09-21  Bruno Haible  <bruno@clisp.org>
58266
58267         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
58268         Reported by Simon Josefsson.
58269
58270 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
58271
58272         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
58273         gl_AC_TYPE_LONG_LONG.
58274
58275 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
58276
58277         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
58278
58279 2004-09-18  Simon Josefsson  <jas@extundo.com>
58280         and  Paul Eggert  <eggert@cs.ucla.edu>
58281
58282         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
58283         calls with autoreconf.  Define GL_LIB.
58284
58285 2004-09-14  Karl Berry  <karl@gnu.org>
58286
58287         * config/srclist.txt: unsync setenv.c, sigh.
58288
58289 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
58290
58291         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
58292         Problem reported by Bruno Haible in:
58293         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
58294
58295 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
58296
58297         * config/srclist.txt: Comment out argp-pvh.c.
58298
58299 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
58300
58301         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
58302         in case some system header has #define'd it.  Problem reported by
58303         Soeren D. Schulze in
58304         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
58305
58306 2004-09-09  Karl Berry  <karl@gnu.org>
58307
58308         * regex.[ch]: delete from the root.  These were supposed to be
58309                 synced with emacs cvs, but this has not happened for about
58310                 a year, and anyway nothing else uses emacs regex.[ch].
58311                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
58312                 lib/regex[.ch] is untouched.
58313
58314 2004-09-09  Bruno Haible  <bruno@clisp.org>
58315
58316         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
58317
58318 2004-09-09  Bruno Haible  <bruno@clisp.org>
58319
58320         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
58321         modifications.
58322         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
58323
58324 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
58325
58326         * modules/xvasprintf: New file.
58327         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
58328
58329 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
58330
58331         * lib/xvasprintf.h: New file.
58332         * lib/xvasprintf.c: New file.
58333         * lib/xasprintf.c: New file.
58334
58335 2004-09-08  Bruno Haible  <bruno@clisp.org>
58336
58337         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
58338
58339 2004-09-08  Bruno Haible  <bruno@clisp.org>
58340
58341         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
58342         length is > INT_MAX.
58343         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
58344         more.
58345
58346 2004-09-08  Bruno Haible  <bruno@clisp.org>
58347
58348         * lib/stdint_.h: New file, taken from GNU clisp.
58349
58350 2004-09-08  Bruno Haible  <bruno@clisp.org>
58351             Oskar Liljeblad  <oskar@osk.mine.nu>
58352
58353         * modules/stdint: New file.
58354         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
58355
58356 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
58357
58358         Import from coreutils.
58359         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
58360         strings on unbounded length.  alloca's performance benefits aren't
58361         that important here.
58362         (V_STRDUP): Remove.
58363         (parse_with_separator): New function, with most of the internals
58364         of the old parse_user_spec.  Allow user to omit both user and group,
58365         for compatibility with FreeBSD.
58366         Clone only the user name, not the entire spec.
58367         Do not set *uid, *gid unless entirely successful.
58368         Avoid memory leak in some failing cases.
58369         Fix regression for USER.GROUP reported by Dmitry V. Levin in
58370         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
58371         (parse_user_spec): Rewrite to use parse_with_separator.
58372
58373 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
58374
58375         * modules/userspec: Don't depend on alloca.
58376
58377 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
58378
58379         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
58380
58381 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
58382
58383         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
58384         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
58385         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
58386
58387 2004-08-16  Simon Josefsson  <jas@extundo.com>
58388
58389         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
58390         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
58391         Add --dry-run for --import.
58392         Let user provided command line parameters override configure.ac
58393         settings.
58394
58395 2004-08-12  Simon Josefsson  <jas@extundo.com>
58396
58397         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
58398         as discussed with Paul Eggert in threads rooted at
58399         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
58400         and
58401         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
58402         Before, the test was empty, and relied on ELIDE_CODE in source
58403         code.)
58404         (gl_PREREQ_GETOPT): New macro.
58405         (gl_GETOPT): Use them.
58406
58407 2004-08-12  Simon Josefsson  <jas@extundo.com>
58408
58409         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
58410         * lib/getopt_.h: Renamed from getopt.h.
58411
58412 2004-08-12  Simon Josefsson  <jas@extundo.com>
58413
58414         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
58415         Change default library name from libfoo to libgnu.
58416         Now, if you have a configure.ac that says:
58417                 gl_SOURCE_BASE(gl)
58418                 gl_M4_BASE(gl/m4)
58419                 gl_MODULES(error getopt etcetera)
58420                 gl_INIT
58421         you can import all you need by running:
58422                 ../gnulib/gnulib-tool --import
58423
58424         * modules/getopt (Files): Rename getopt.h to getopt_.h.
58425         (Makefile.am): Rewrite, use logic from argz.
58426         (Include): Use <getopt.h> instead of "getopt.h".
58427
58428 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
58429
58430         * modules/argp (Files): Add m4/unlocked-io.m4.
58431         (Depends-on): Add extensions.
58432
58433 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
58434
58435         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
58436         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
58437         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
58438         Check for program_invocation_name, program_invocation_short_name,
58439         flockfile, funlockfile, features.h, _getopt_long_only_r.
58440
58441 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
58442
58443         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
58444         its complicated substitute.
58445         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
58446         and program_invocation_name.
58447         (__argp_basename) [!_LIBC]: Remove; the only use was
58448         replaced by its body.
58449         (__argp_short_program_name): Change condition from
58450         !defined __argp_short_program_name to
58451         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
58452         to match argp-namefrob.h.
58453         (__argp_failure): Don't assume strerror_r returns char *.
58454         * lib/argp-parse.c (N_): Define unconditionally.
58455         (argp_default_options): Fill out initializers with 0 to avoid
58456         gcc warnings.
58457
58458 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
58459
58460         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
58461         getopt1.c.
58462
58463 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
58464
58465         Merge from coreutils.
58466
58467         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
58468
58469         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
58470         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
58471
58472 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
58473
58474         Merge from coreutils.
58475
58476         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
58477         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
58478         for Reliant Unix 5.43.
58479
58480         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
58481         (union fooround): Use uintmax_t, not long int.
58482         The rest is a merge from libc:
58483         [defined _LIBC]: Include <shlib-compat.h>.
58484         (_obstack) [defined _LIBC]: Remove after 2.3.4.
58485
58486         * lib/settime.c (settime): Recode to avoid warning with
58487         Sun Forte C 6U2.
58488
58489         * lib/strverscmp.c: Convert to UTF-8.
58490
58491 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
58492
58493         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
58494         m4/uintmax_t.m4.
58495
58496 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
58497
58498         * modules/xalloc-die: New file.
58499         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
58500
58501         * modules/md5 (Files): Add m4/uint32_t.m4.
58502         * modules/sha1: Renamed from modules/sha.
58503         (Files):
58504         Rename lib/sha.h to lib/sha1.h.
58505         Rename lib/sha.c to lib/sha1.c.
58506         Rename m4/sha.m4 to m4/sha1.m4.
58507         (lib_SOURCES): Likewise.
58508         (configure.ac): Rename gl_SHA to gl_SHA1.
58509         (Include): sha.h -> sha1.h.
58510
58511 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
58512
58513         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
58514         * m4/sha1.m4: Renamed from sha.m4.
58515         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
58516
58517 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
58518
58519         * lib/obstack.h (obstack_empty_p):
58520         Don't assume that chunk->contents is suitably aligned.
58521         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
58522         Likewise. Problem reported by Benno in
58523         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
58524
58525         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
58526         readable.  This could be improved further but it'd take some work.
58527
58528 2004-08-08  Simon Josefsson  <jas@extundo.com>
58529
58530         * modules/xgethostname (Depends-on): Remove exit and error (not
58531         used).
58532
58533         * modules/getpass-gnu: Add getpass.h.
58534         (Depends-on): Add stdbool.
58535         * modules/getpass: Add getpass.h.
58536
58537 2004-08-08  Simon Josefsson  <jas@extundo.com>
58538
58539         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
58540         Check getpass declaration.
58541
58542 2004-08-08  Simon Josefsson  <jas@extundo.com>
58543
58544         * lib/xgethostname.c: Don't include error.h (not used).
58545
58546         * lib/getpass.h: Add.
58547         * lib/getpass.c: Include getpass.h first.
58548
58549 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
58550
58551         * lib/xalloc-die.c: New file.
58552         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
58553         All uses removed.
58554         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
58555         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
58556         xalloc-die.c.
58557         (_, N_, xalloc_die): Move to xalloc-die.c.
58558         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
58559         so that we needn't mess with xalloc_msg_memory_exhausted.
58560
58561         * lib/sha1.h: Renamed from sha.h.
58562         (SHA1_H): Renamed from _SHA_H.
58563         (sha1_ctx): Renamed from sha_ctx.
58564         (sha1_init_ctx): Renamed from sha_init_ctx.
58565         (sha1_process_block): Renamed from sha_process_block.
58566         (sha1_process_bytes): Renamed from sha_process_bytes.
58567         (sha1_finish_ctx): Renamed from sha_finish_ctx.
58568         (sha1_read_ctx): Renamed from sha_read_ctx.
58569         (sha1_stream): Renamed from sha_stream.
58570         (sha1_buffer): Renamed from sha_buffer.
58571         * lib/sha1.c: Likewise; renamed from sha.c.
58572         Do not include <sys/types.h>.
58573         Include <stddef.h> rather than <stdlib.h>.
58574
58575 2004-08-08  Bruno Haible  <bruno@clisp.org>
58576
58577         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
58578         FILESYSTEM_PREFIX_LEN.
58579         * lib/progreloc.c: Likewise.
58580         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
58581
58582 2004-08-06  Simon Josefsson  <jas@extundo.com>
58583
58584         * modules/progname (Depends-on): Don't depend on stdbool.
58585
58586 2004-08-06  Simon Josefsson  <jas@extundo.com>
58587
58588         * modules/getsubopt: New file.
58589         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58590         getsubopt.
58591
58592 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
58593
58594         More merge from coreutils.
58595
58596         * m4/utimens.m4, m4/utimecmp.m4: New files.
58597         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
58598         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
58599         prereq.m4, sha.m4: Import changes from coreutils.
58600
58601 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
58602
58603         More merge from coreutils.
58604         * modules/raise, modules/readtokens0, modules/utimens:
58605         * modules/utimecmp, module/xnanosleep: New files.
58606         * modules/strftime: Add lib/strftime.h.
58607         Change include from <time.h> to "strftime.h".
58608         * modules/yesno: Add lib/yesno.h.
58609         * modules/backupfile: Remove lib/addext.c.
58610         * modules/euidaccess: Add stat-macros.h.
58611         * modules/canonicalize, modules/euidaccess,
58612         modules/filemode, modules/lchown, modules/makepath,
58613         modules/rmdir, modules/stat: Likewise.
58614
58615 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
58616
58617         Merge from tar.
58618         * lib/argp-help.c (make_hol, hol_append): Don't assume that
58619         SIZE_MAX is a valid preprocessor constant.
58620         (__argp_basename): Change from "#ifndef _LIBC"
58621         to "#ifndef __argp_short_program_name", so that
58622         we don't compile these functions for tar.
58623
58624         More merges from coreutils.
58625         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
58626         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
58627         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
58628         * lib/addext.c: Remove; no longer needed.
58629         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
58630         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
58631         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
58632         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
58633         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
58634         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
58635         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
58636         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
58637         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
58638         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
58639         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
58640         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
58641         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
58642         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
58643         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
58644         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
58645         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
58646         Import changes from coreutils.
58647
58648 2004-08-05  Simon Josefsson  <jas@extundo.com>
58649
58650         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
58651
58652 2004-08-05  Simon Josefsson  <jas@extundo.com>
58653
58654         * m4/getsubopt.m4: New file.
58655
58656 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
58657
58658         Merge from coreutils.
58659
58660         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
58661         * m4/getcwd-path-max.m4: New files.
58662
58663         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
58664         FILESYSTEM_PREFIX_LEN ->
58665         FILE_SYSTEM_PREFIX_LEN.
58666         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
58667         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
58668         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
58669         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
58670
58671         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
58672         prerequisite modules now handle the DOS stuff.
58673         Don't check for unistd.h.
58674
58675 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
58676
58677         Merge from coreutils.
58678
58679         * lib/.gdb-history: Remove; this doesn't belong here.
58680
58681         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
58682         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
58683         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
58684         * lib/getcwd.c: New files.
58685
58686         * lib/dirname.h: Include <stdbool.h>.
58687         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
58688         for consistency with POSIX terminology.  All uses changed.
58689         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
58690         (strip_trailing_slashes): Use bool for booleans.
58691         * lib/stripslash.c (strip_trailing_slashes): Likewise.
58692
58693         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
58694         sometimes returns a positive errno value even when it succeeds.
58695         (print_errno_message) [!LIBC]: Fall back on strerror if
58696         __strerror_r fails.
58697
58698         * lib/path-concat.c (mempcpy): Don't define if a system header defines
58699         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
58700         (longest_relative_suffix): New function.
58701         (path_concat): Use it.  Assume first argument is not NULL.
58702         Port to DOS.  Omit redundant separators.
58703         Report an error instead of returning NULL.
58704         Use mempcpy instead of memcpy.
58705         (xpath_concat): Remove: not declared or used.
58706
58707         * lib/same.h: Include <stdbool.h>
58708         (same_name): Return bool, not int.
58709         * lib/same.c (same_name): Likewise.
58710         (errno): Don't declare; we assume C89 or better now.
58711
58712         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
58713         if not already defined.
58714
58715         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
58716         * lib/dup-safer.c (errno): Likewise.
58717
58718 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
58719
58720         Merge from coreutils.
58721         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
58722         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
58723         * modules/path-concat: Don't depend on strdup.
58724
58725 2004-08-03  Simon Josefsson  <jas@extundo.com>
58726
58727         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
58728         * lib/progname.h: Don't include stdbool.h.
58729
58730 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
58731
58732         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
58733         * MODULES.html.sh (func_all_modules): Remove fatal.
58734
58735 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
58736
58737         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
58738
58739 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
58740
58741         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
58742         working.
58743
58744 2004-08-02  Simon Josefsson  <jas@extundo.com>
58745
58746         * lib/getsubopt.h: New file, with comments from Bruno Haible.
58747         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
58748         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
58749
58750 2004-08-01  Simon Josefsson  <jas@extundo.com>
58751
58752         * lib/xgetdomainname.c: Include stdlib.h, for free().
58753
58754 2004-07-19  Bruno Haible  <bruno@clisp.org>
58755
58756         * MODULES.html.sh (func_all_modules): Add dummy.
58757
58758 2004-07-16  Simon Josefsson  <jas@extundo.com>
58759
58760         * modules/dummy: New file.
58761
58762 2004-07-16  Simon Josefsson  <jas@extundo.com>
58763
58764         * lib/dummy.c: New file.
58765
58766 2004-07-16  Bruno Haible  <bruno@clisp.org>
58767
58768         * lib/backupfile.h: Add extern "C" for C++.
58769         * lib/closeout.h: Likewise.
58770         * lib/copy-file.h: Likewise.
58771         * lib/findprog.h: Likewise.
58772         * lib/full-write.h: Likewise.
58773         * lib/pathname.h: Likewise.
58774         * lib/progname.h: Likewise.
58775         * lib/stpcpy.h: Likewise.
58776         * lib/stpncpy.h: Likewise.
58777         * lib/strcase.h: Likewise.
58778         * lib/strstr.h: Likewise.
58779         * lib/xalloc.h: Likewise.
58780
58781         * lib/mbswidth.h: Add extern "C" for C++.
58782         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
58783
58784 2004-07-13  Robert Millan  <robertmh@gnu.org>
58785
58786         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
58787
58788 2004-07-09  Simon Josefsson  <jas@extundo.com>
58789
58790         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
58791         failed without this.)
58792
58793 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
58794
58795         * modules/chown (Files): Add lib/fchown-stub.c, since
58796         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
58797
58798 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
58799
58800         * lib/fchown-stub.c: New file.
58801
58802 2004-06-24  Jim Meyering  <jim@meyering.net>
58803
58804         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
58805
58806 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
58807
58808         * modules/argz: Omit "#include".
58809
58810         * MODULES.html.sh (func_all_modules): Add calloc, to match
58811         2004-06-01 addition of calloc module.
58812
58813 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
58814
58815         * m4/argz.m4: New file, which is autoupdated from libtool.
58816
58817 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
58818
58819         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
58820         libtool.
58821
58822 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
58823
58824         * config/srclist-update: Don't insist on "USA." before the
58825         close-comment, as libtool omits the period and puts the */ on a
58826         separate line.
58827         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
58828         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
58829
58830 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
58831
58832         * modules/argz: New file.
58833         * MODULES.html.sh (func_all_modules): Add argz.
58834
58835 2004-06-12  Jim Meyering  <jim@meyering.net>
58836         and  Paul Eggert  <eggert@cs.ucla.edu>
58837
58838         * modules/hash (Files): Add lib/xalloc.h.
58839         * modules/pipe (Depends-on): Add wait-process.
58840         * modules/stat (Depends-on): Add xalloc.
58841         * modules/userspec (Files): Add lib/userspec.h.
58842         * modules/xstrto
58843
58844         Upgrade from gettext-0.13.
58845         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
58846         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
58847         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
58848
58849 2004-06-10  Jim Meyering  <jim@meyering.net>
58850
58851         * lib/calloc.c: New file.
58852
58853 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
58854
58855         * lib/getdate.y (yylex): Allow space between sign and number.
58856         Problem reported by Dan Jacobson.
58857
58858 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
58859
58860         Merge from coreutils CVS.
58861
58862         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
58863         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
58864         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
58865         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
58866         xstrtol.m4: Fix copyright date and/or serial number.
58867
58868         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
58869         See if we need an fchown replacement.
58870         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
58871         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
58872         and use the replacement function if we detect either defect.
58873
58874         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
58875         gl_UTIMECMP.
58876
58877 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
58878         and  Jim Meyering  <jim@meyering.net>
58879
58880         Merge from coreutils CVS.
58881
58882         * lib/stat-macros.h: New file, with contents from file-type.h
58883         and coreutils' system.h.
58884         * lib/file-type.c: Include "stat-macros.h".
58885         * lib/file-type.h (file_type): Move all macro definitions to new file,
58886         stat-macros.h.
58887
58888         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
58889         Wrap old code with this conditional.
58890         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
58891         function that does not dereference symlinks.
58892         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
58893
58894         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
58895         dependency problems.
58896         (xreadlink): Accept new arg SIZE, for efficiency.
58897         All decls and uses changed.
58898         * lib/xreadlink.h: Include <stddef.h>, for size_t.
58899
58900         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
58901         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
58902
58903         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
58904         sysexits.h.
58905
58906 2004-06-01  Jim Meyering  <jim@meyering.net>
58907
58908         * m4/calloc.m4: New file.
58909
58910 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
58911
58912         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
58913         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
58914         Also, fix a typo in a diagnostic.
58915
58916 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
58917
58918         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
58919         or AC_FUNC_REALLOC.
58920
58921 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
58922
58923         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
58924         macros to be defined.
58925         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
58926         the allocator returns NULL because the requested size is zero.
58927
58928 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
58929
58930         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
58931         var.  Add comment explaining why libc still defines it.  This
58932         merges the following patch from glibc:
58933         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
58934
58935 2004-05-20  Andreas Schwab  <schwab@suse.de>
58936
58937         * m4/free.m4: Replace free if it not known to work, not the other
58938         way round.
58939
58940 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
58941
58942         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
58943         present in glibc since revision 1.1 of this file.
58944         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
58945         obstack_alignment_mask, obstack_alloc, obstack_base,
58946         obstack_blank, obstack_blank_fast, obstack_chunk_size,
58947         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
58948         obstack_grow0, obstack_init, obstack_int_grow,
58949         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
58950         obstack_next_free, obstack_object_size, obstack_ptr_grow,
58951         obstack_ptr_grow_fast, obstack_room): Remove declarations of
58952         nonexistent functions.
58953
58954 2004-05-18  Karl Berry  <karl@gnu.org>
58955
58956         * config/srclist.txt: break link for vasnprintf.c.
58957
58958 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
58959
58960         Port obstack to the AS/400, where pointers are 16 bytes wide and
58961         you cannot cast an integer to a valid pointer.  This patch is
58962         currently waiting to be integrated into glibc; see
58963         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
58964
58965         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
58966         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
58967         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
58968         (struct obstack): temp member is now a union of a pointer and
58969         an integer, instead of an integer.  All integer uses changed.
58970         This does not affect the physical layout of struct obstack,
58971         except on hosts (like the AS/400) where the size or alignment of
58972         void * is greater than that of ptrdiff_t.
58973         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
58974         __STDC__)]: Store temporary in pointer member of union, not
58975         integer member.
58976         * lib/obstack.c: Include <stddef.h>, for offsetof.
58977         (struct fooalign): Remove; it doesn't need a name.
58978         (union fooround): Change double to long double, and add void *.
58979         (DEFAULT_ALIGNMENT): Use offsetof to compute.
58980         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
58981         not a macro.  Hence the values are always int; so remove all
58982         casts-to-int in uses.
58983
58984 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
58985
58986         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
58987         we can get this patch merged into glibc.
58988
58989 2004-05-17  Derek R. Price  <derek@ximbiot.com>
58990             Paul Eggert  <eggert@cs.ucla.edu>
58991
58992         * m4/argp: Depend on alloca.
58993
58994 2004-05-17  Derek R. Price  <derek@ximbiot.com>
58995             Paul Eggert  <eggert@cs.ucla.edu>
58996
58997         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
58998         freecoding.
58999
59000 2004-05-17  Bruno Haible  <bruno@clisp.org>
59001
59002         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
59003         precision that consists of a '.' followed by an empty digit string.
59004         Patch by Tor Lillqvist <tml@iki.fi>.
59005
59006 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
59007
59008         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
59009         for backward compatibility with older code.  We need our own
59010         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
59011         it under some other name, and our alloca.h will define it.
59012
59013 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
59014             Derek Price  <derek@ximbiot.com>
59015
59016         * lib/alloca.c: Include <alloca.h>, to get our interface.
59017         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
59018         include <alloca.h> first.  Use C89 prototype for alloca; this
59019         requires including <stddef.h> for size_t.  Use extern "C" if C++.
59020         Use #elif for simplicity, since we can assume C89 now.
59021         Don't try to source the system alloca.h since it will not be found
59022         and to prevent recursively including its replacement.
59023         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
59024         * lib/regex.c: Likewise.
59025
59026 2004-05-16  Derek Price  <derek@ximbiot.com>
59027             Paul Eggert  <eggert@cs.ucla.edu>
59028
59029         getline cleanup.  This changes the getndelim2 API: both order of
59030         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
59031         no delimiter).
59032
59033         * lib/getline.c: Don't include stddef.h or stdio.h, since our
59034         interface does that.
59035         (getline): Always use getdelim, so that we don't have two
59036         copies of this code.
59037         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
59038         if available.
59039         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
59040         (GETNDELIM2_MAXIMUM): New macro.
59041         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
59042         instead of the old practice of delim2==0.  All callers changed.
59043         Return -1 on overflow, instead of returning junk.
59044         Do not set *linesize unless allocation succeeds.
59045         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
59046         that we include sys/types.h.
59047         * lib/getnline.h: Likewise.
59048         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
59049         (getndelim2): Reorder arguments.
59050         * lib/getnline.c (getnline, getndelim):
59051         Don't discard the NMAX argument.
59052         (getnline): Invoke getndelim, to avoid code duplication.
59053         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
59054         of (size_t) -1 by callers of the getnline family.
59055
59056 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
59057
59058         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
59059         Check for gettimeofday.
59060         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
59061         Check for settimeofday, stime.
59062
59063 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
59064
59065         * lib/nanosleep.c (suspended): Change its type from int to
59066         sig_atomic_t volatile.
59067         (first_call): Make it private to rpl_nanosleep, and have it
59068         be zero initially as that's a bit faster.
59069         (my_usleep): Round up fractional times instead of truncating them,
59070         as this is the usual meaning for 'sleep'.
59071
59072         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
59073         doesn't work.
59074         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
59075         (ENOSYS): Define if not defined.
59076         (settime): Fall back on stime if it exists and settimeofday fails.
59077         But don't bother with fallbacks if a method fails with errno == EPERM.
59078
59079 2004-05-11  Jim Meyering  <jim@meyering.net>
59080
59081         Prior to this change, the save_cwd caller required read access to the
59082         current directory on most systems (ones with the fchdir function).
59083
59084         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
59085         fails, try write-only, and finally, resort to using xgetcwd.
59086
59087 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
59088
59089         * lib/obstack.c, obstack.h: Import changes from libc.
59090
59091 2004-04-28  Bruno Haible  <bruno@clisp.org>
59092
59093         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
59094         also implicitly appends .exe to executables.
59095         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
59096         accepts Windows pathnames.
59097         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
59098         Treat Cygwin like Windows, since it now accepts Windows pathnames.
59099         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
59100         Treat Cygwin like Windows, since it now accepts Windows pathnames.
59101         Reported by Derek Robert Price <derek@ximbiot.com>.
59102
59103 2004-04-21  Karl Berry  <karl@gnu.org>
59104
59105         * config/srclist.txt (localcharset.c): break sync.
59106
59107 2004-04-20  Paul Eggert  <eggert@twinsun.com>
59108
59109         * m4/host-os.m4: Add a copyright notice.
59110
59111 2004-04-20  Jim Meyering  <jim@meyering.net>
59112
59113         Change UTILS_ to gl_ in AC_DEFINE'd names.
59114         Change utils_- and jm_-prefixed variables, too.
59115         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
59116         UTILS_FUNC_MKDIR_TRAILING_SLASH.
59117         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
59118
59119         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
59120         Don't emit trailing blanks.
59121         Also rename jm_-prefixed variables to have gl_ prefix.
59122
59123         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
59124         Also rename jm_-prefixed variables to have gl_ prefix.
59125
59126         * m4/jm-macros.m4: Reflect the renamings.
59127         * m4/prereq.m4: Likewise.
59128
59129 2004-04-20  Jim Meyering  <jim@meyering.net>
59130
59131         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
59132         memory.
59133
59134 2004-04-20  Jim Meyering  <jim@meyering.net>
59135             Bruno Haible  <bruno@clisp.org>
59136
59137         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
59138         memory when realloc fails.
59139
59140 2004-04-19  Jim Meyering  <jim@meyering.net>
59141
59142         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
59143         now that readutmp.c may call `free (0)'.
59144
59145 2004-04-19  Bruno Haible  <bruno@clisp.org>
59146
59147         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
59148         * m4/inttypes_h.m4: Likewise.
59149         * m4/stdint_h.m4: Likewise.
59150         * m4/intmax_t.m4: Likewise.
59151         * m4/uintmax_t.m4: Likewise.
59152
59153 2004-04-18  Jim Meyering  <jim@meyering.net>
59154
59155         * m4/prereq.m4: Don't forbid jm_ prefix.
59156
59157         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
59158         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
59159         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
59160         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
59161         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
59162         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
59163         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
59164         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
59165         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
59166         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
59167         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
59168         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
59169         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
59170         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
59171         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
59172         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
59173         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
59174         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
59175         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
59176
59177 2004-04-18  Jim Meyering  <jim@meyering.net>
59178
59179         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
59180         failure, don't leak memory and do call END_UTMP_ENT.
59181
59182 2004-04-16  Jim Meyering  <jim@meyering.net>
59183
59184         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
59185         coreutils' stat program.
59186         (gl_PREREQ): Don't require jm_PREREQ_STAT.
59187
59188 2004-04-11  Paul Eggert  <eggert@twinsun.com>
59189
59190         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
59191         C89.
59192         (CHAR_BIT): Remove, since we assume C89.
59193         Include <stdint.h> if available, as per current Autoconf CVS advice.
59194
59195 2004-03-31  Jim Meyering  <jim@meyering.net>
59196
59197         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
59198         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
59199         * m4/xalloc.m4: Likewise.
59200
59201 2004-03-30  Paul Eggert  <eggert@twinsun.com>
59202
59203         Merge from coreutils.
59204
59205         * m4/inttostr.m4: New file.
59206         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
59207         Require AM_STDBOOL_H and gl_TIMESPEC instead.
59208         Require gl_CLOCK_TIME.
59209         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
59210
59211 2004-03-30  Paul Eggert  <eggert@twinsun.com>
59212
59213         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
59214         not bool, to be more consistent with Unix conventions.
59215         Suggested by Bruno Haible.
59216
59217         Merge from coreutils.
59218
59219         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
59220         * lib/umaxtostr.c: New files.
59221
59222         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
59223         the usual <time.h> dance.
59224         (get_date): Change signature to support fractional time stamps.
59225         All callers changed.
59226         * lib/getdate.y: Include "getdate.h" first, as we can now
59227         assume C89 and don't need to worry about 'const'.
59228         Similarly, include "unlocked-io.h" near start, not in middle.
59229         Include <limits.h>.
59230         (textint.value): Use long int rather than int.
59231         (textint.digits): Use size_t rather than int.
59232         (BILLION, LOG10_BILLION): New constants.
59233         (parser_control): New member rel_ns.  Members day_ordinal,
59234         time_zone, month, day, hour, minutes, rel_year, rel_month,
59235         rel_day, rel_hour, rel_minutes, rel_seconds
59236         are now long int, not int.  Member seconds is now struct timespec,
59237         not int.  New member timespec_seen.  Members dates_seen, days_seen,
59238         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
59239         not int.
59240         (%union.intval): Now long int, not int.
59241         New member timespec.
59242         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
59243         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
59244         (spec): Now is a timespec or an item list.
59245         (timespec, items): New nonterminals.
59246         (time, rel, relunit, number, get_date):
59247         Add support for fractional seconds.
59248         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
59249         (gmtime, localtime, mktime): Remove decls; not needed with C89.
59250         (to_hour): First arg is now long int, not int.
59251         (to_year): Returns long int, not int.
59252         Don't treat year -70 like 70.
59253         (tm_diff): Returns long int, not int.
59254         (lookup_word): Use bool instead of int when appropriate.
59255         (yylex): Use size_t for count, not int.
59256         Detect overflow when parsing large integer constants.
59257         Add support for fractions.
59258         (get_date): Make pointers 'const' if possible.
59259         Use more-portable code to detect integer overflow.
59260         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
59261         Don't use ctime; it's not reliable if the year has >4 digits.
59262
59263         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
59264         This is for compatibility with BSD.
59265
59266         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
59267         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
59268         From coreutils' system.h.
59269
59270         * lib/userspec.c: Don't include "posixver.h".
59271         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
59272         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
59273         compatible extension.  Simplify code by removing a boolean int
59274         that was always nonzero if a string was nonnull.
59275
59276 2004-03-30  Jim Meyering  <jim@meyering.net>
59277
59278         Merge from coreutils.
59279
59280         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
59281         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
59282         on some systems one must include <grp.h> before it.
59283         Reported by Christian Krackowizer.
59284
59285 2004-03-30  Jim Meyering  <jim@meyering.net>
59286
59287         Merge from coreutils.
59288
59289         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
59290
59291         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
59292         an empty input stream.
59293
59294         * lib/readtokens.c: Include <stdbool.h>.
59295         (readtoken): Use `size_t' rather than int/long.
59296         All callers adjusted.
59297         Use `bool' rather than `int' where appropriate.
59298         Use memset rather than an explicit loop.
59299         Use x2nrealloc rather than xrealloc.
59300         Allow the use of `\0' as a delimiter.
59301         (readtokens): Likewise.
59302         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
59303
59304 2004-03-30  Jim Meyering  <jim@meyering.net>
59305
59306         * m4/realloc.m4: Remove file, since now it does no more than
59307         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
59308         the `configure.ac' section of module/realloc.
59309         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
59310
59311 2004-03-30  Bruno Haible  <bruno@clisp.org>
59312
59313         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
59314         nonnull.
59315
59316 2004-03-29  Paul Eggert  <eggert@twinsun.com>
59317
59318         Merge changes to getloadavg.c from coreutils and Emacs.
59319
59320         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
59321         Define to an expression, not to the empty string.
59322         Include cloexec.h and xalloc.h.
59323         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
59324         Use set_cloexec_flag rather than rolling our own.
59325         * lib/cloexec.c, lib/cloexec.h: New files.
59326
59327 2004-03-29  Paul Eggert  <eggert@twinsun.com>
59328
59329         * m4/cloexec.m4: New file.
59330
59331 2004-03-18  Paul Eggert  <eggert@twinsun.com>
59332
59333         * lib/getopt.h: Sync with libc CVS.
59334
59335 2004-03-18  Paul Eggert  <eggert@twinsun.com>
59336             Bruno Haible  <bruno@clisp.org>
59337
59338         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
59339         mbswidth.
59340
59341 2004-03-18  Paul Eggert  <eggert@twinsun.com>
59342             Bruno Haible  <bruno@clisp.org>
59343
59344         * lib/mbswidth.h: Include <wchar.h> only if
59345         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
59346         <wchar.h>.
59347         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
59348
59349 2004-03-09  Paul Eggert  <eggert@twinsun.com>
59350
59351         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
59352         Sync with libc CVS.
59353         * lib/getopt_int.h: New file, also synced from libc.
59354
59355 2004-03-09  Paul Eggert  <eggert@twinsun.com>
59356
59357         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
59358         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
59359         Bring back getopt.c, getopt.h, getopt1.c.
59360
59361 2004-03-07  Paul Eggert  <eggert@twinsun.com>
59362
59363         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
59364         All uses changed.  Check for sa_sigaction member; this fixes
59365         a bug first reported by Jason Andrade in
59366         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
59367
59368 2004-03-07  Paul Eggert  <eggert@twinsun.com>
59369
59370         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
59371         '#if' expressions.  Unlike the code it replaces, it does not
59372         depend on (defined _SC_PAGESIZE).  However, it does depend on
59373         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
59374         first reported by Jason Andrade in
59375         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
59376
59377 2004-02-25  Simon Josefsson  <jas@extundo.com>
59378
59379         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
59380
59381 2004-02-25  Simon Josefsson  <jas@extundo.com>
59382
59383         * lib/strdup.h: New file.
59384         * lib/strdup.c: Include it.
59385         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
59386         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
59387
59388 2004-02-23  Karl Berry  <karl@gnu.org>
59389
59390         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
59391         (from fencepost.gnu.org:/gd/gnuorg).
59392
59393 2004-02-23  Karl Berry  <karl@gnu.org>
59394
59395         * config/srclistvars.sh (GNUORG) [karl]: redefine.
59396         * config/srclist.txt: add maintain/standards documents.
59397
59398 2004-02-18  Bruno Haible  <bruno@clisp.org>
59399
59400         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
59401         Reported by Derek Robert Price <derek@ximbiot.com>.
59402
59403 2004-02-16  Karl Berry  <karl@gnu.org>
59404
59405         * config/mkinstalldirs, install-sh: update from automake.
59406
59407 2004-02-06  Karl Berry  <karl@gnu.org>
59408
59409         * m4/po.m4: update from gettext 0.14.1.
59410
59411 2004-02-06  Karl Berry  <karl@gnu.org>
59412
59413         * lib/config.charset: update from gettext 0.14.1.
59414
59415 2004-02-05  Paul Eggert  <eggert@twinsun.com>
59416
59417         Add comments and code, prompted by suggestions from Bruno Haible
59418         for sh-quote.
59419         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
59420         describing the enum quoting_style values.
59421         * lib/quotearg.c (quotearg_alloc): New function.
59422         (quotearg_buffer_restyled): Treat lone { and } as special.
59423         Treat = as special.  Work around bug with older shells
59424         that "see" a '\' that is really the 2nd byte of a multibyte char.
59425         Quote empty string with shell_quoting_style.
59426
59427 2004-02-03  Bruno Haible  <bruno@clisp.org>
59428
59429         * m4/pipe.m4: New file, from GNU gettext.
59430
59431 2004-02-03  Bruno Haible  <bruno@clisp.org>
59432
59433         * lib/pipe.h: New file, from GNU gettext.
59434         * lib/pipe.c: New file, from GNU gettext.
59435
59436 2004-01-27  Bruno Haible  <bruno@clisp.org>
59437
59438         * m4/execute.m4: New file, from GNU gettext.
59439
59440 2004-01-27  Bruno Haible  <bruno@clisp.org>
59441
59442         * lib/execute.h: New file, from GNU gettext.
59443         * lib/execute.c: New file, from GNU gettext.
59444         * lib/w32spawn.h: New file, from GNU gettext.
59445
59446 2004-01-24  Paul Eggert  <eggert@twinsun.com>
59447
59448         Merge from diffutils.
59449
59450         * lib/file-type.c (file_type): Add typed memory objects.
59451         * lib/file-type.h (S_TYPEISTMO): New macro.
59452
59453         * lib/c-stack.h (c_stack_action): Remove argv argument.
59454         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
59455         (die): Don't calculate message unless segv_action returns.
59456         (get_stack_location, min_address_from_argv, max_address_from_argv,
59457         volatile stack_base, volatile_stack_size): Remove.
59458         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
59459         that every segmentation violation is a stack overflow.  (Ouch!)
59460         See Debian bug 136249 (still outstanding) for more info about why
59461         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
59462
59463 2004-01-24  Paul Eggert  <eggert@twinsun.com>
59464
59465         Exit-status fix from coreutils.
59466
59467         Use exit_failure consistently in place of EXIT_FAILURE,
59468         so that program exit statuses are consistent on failure.
59469
59470         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
59471         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
59472         * lib/argmatch.h: Comment fix to match the above.
59473         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
59474         Now a macro referring to exit_failure, instead of a separate
59475         variable.  Include "exitfail.h" to get it.
59476         * lib/xstrtol.h: Include "exitfail.h".
59477         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
59478
59479         * lib/long-options.c (parse_long_options): Use prototype
59480         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
59481         for clarity.
59482
59483 2004-01-21  Jim Meyering  <jim@meyering.net>
59484
59485         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
59486         so as not to conflict with a different-sized __mktime_internal
59487         function in GNU libc.
59488         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
59489         Problem building statically-linked `ls' reported by Michael Brunnbauer.
59490
59491 2004-01-20  Karl Berry  <karl@gnu.org>
59492
59493         * config/config.guess: update from config.
59494
59495         * config/srclistvars.sh: GNUWWWLICENSES for karl.
59496
59497 2004-01-20  Bruno Haible  <bruno@clisp.org>
59498
59499         Safer stack allocation.
59500         * lib/setenv.c: Include allocsa.h.
59501         (alloca): Remove fallback definition.
59502         (freea): Remove macro.
59503         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
59504         instead of freea.
59505
59506 2004-01-20  Bruno Haible  <bruno@clisp.org>
59507
59508         * m4/eealloc.m4: New file, from GNU gettext.
59509
59510 2004-01-20  Bruno Haible  <bruno@clisp.org>
59511
59512         * m4/allocsa.m4: New file, from GNU gettext.
59513
59514 2004-01-20  Bruno Haible  <bruno@clisp.org>
59515
59516         * lib/xallocsa.h: New file, from GNU gettext.
59517         * lib/xallocsa.c: New file, from GNU gettext.
59518
59519 2004-01-20  Bruno Haible  <bruno@clisp.org>
59520
59521         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
59522
59523 2004-01-20  Bruno Haible  <bruno@clisp.org>
59524
59525         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
59526         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
59527         specially.
59528
59529 2004-01-20  Bruno Haible  <bruno@clisp.org>
59530
59531         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
59532         patch.
59533
59534 2004-01-20  Bruno Haible  <bruno@clisp.org>
59535
59536         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
59537
59538 2004-01-20  Bruno Haible  <bruno@clisp.org>
59539
59540         * lib/eealloc.h: New file.
59541
59542 2004-01-20  Bruno Haible  <bruno@clisp.org>
59543
59544         * lib/binary-io.h: Avoid warnings on Cygwin.
59545
59546 2004-01-20  Bruno Haible  <bruno@clisp.org>
59547
59548         * lib/allocsa.h: New file, from GNU gettext.
59549         * lib/allocsa.c: New file, from GNU gettext.
59550
59551 2004-01-18  Karl Berry  <karl@gnu.org>
59552
59553         * doc/gpl.texi, doc/lgpl.texi: new files.
59554
59555 2004-01-18  Karl Berry  <karl@gnu.org>
59556
59557         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
59558         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
59559
59560 2004-01-15  Paul Eggert  <eggert@twinsun.com>
59561
59562         Merge from coreutils.
59563
59564         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
59565         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
59566         (gl_DEFAULT_POSIX2_VERSION): Move
59567         the documentation from 'configure' into 'config.hin',
59568         so that 'configure --help' isn't burdened by it and
59569         we don't have to worry about its formatting there.
59570         Reword the documentation so that it's more succinct
59571         and can be run together into a single paragraph.
59572         * m4/same.m4 (gl_SAME): Check for pathconf.
59573
59574 2004-01-15  Paul Eggert  <eggert@twinsun.com>
59575
59576         Merge from coreutils.
59577
59578         * lib/posixver.c: Include posixver.h.
59579
59580         * lib/same.c: Include <stdbool.h>, <limits.h>.
59581         (_POSIX_NAME_MAX): Define if not defined.
59582         (MIN): New macro.
59583         (same_name): If file names are silently truncated, report
59584         that the file names are the same if they are the same after
59585         the silent truncation.
59586
59587         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
59588         conversion function.
59589         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
59590         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
59591         longer needed.
59592
59593 2004-01-15  Jim Meyering  <jim@meyering.net>
59594
59595         Merge from coreutils.
59596
59597         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
59598         if no library is required.
59599         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
59600         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
59601         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
59602         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
59603         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
59604         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
59605         value, $ac_cv_search_crypt, if it's "none required".
59606         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
59607         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
59608         not gl_FUNC_GETLOADAVG.
59609         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
59610         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
59611
59612 2004-01-15  Jim Meyering  <jim@meyering.net>
59613
59614         Merge from coreutils.
59615
59616         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
59617         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
59618         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
59619
59620         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
59621         optional configure-time default.
59622
59623         * lib/version-etc.c (version_etc_copyright): Update copyright date.
59624
59625         * lib/xreadlink.c (xreadlink): Correct outdated comment.
59626
59627 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
59628
59629         Merge from coreutils.
59630
59631         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
59632         value, $ac_cv_search_nanosleep, if it's "none required".
59633
59634 2004-01-14  Paul Eggert  <eggert@twinsun.com>
59635
59636         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
59637         with like-named macro in fnmatch.c.
59638         (EXT): Use an internal constant instead.
59639
59640         Merge fnmatch patches from glibc.
59641         * lib/fnmatch.c (mbsinit): Remove define.
59642         Add libc_hidden_ver (__fnmatch, fnmatch).
59643         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
59644         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
59645
59646 2004-01-14  Karl Berry  <karl@gnu.org>
59647
59648         * config/install-sh: update from automake.
59649
59650 2004-01-13  Karl Berry  <karl@gnu.org>
59651
59652         * config/install-sh: update from automake.
59653
59654 2004-01-09  Karl Berry  <karl@gnu.org>
59655
59656         * config/install-sh: update from automake.
59657
59658 2004-01-05  Karl Berry  <karl@gnu.org>
59659
59660         * config/config.{sub,guess}: update from config.
59661
59662 2003-12-31  Karl Berry  <karl@gnu.org>
59663
59664         * config/depcomp: update from automake.
59665
59666 2003-12-14  Karl Berry  <karl@gnu.org>
59667
59668         * lib/config.charset: update from gettext-runtime.
59669
59670 2003-12-03  Paul Eggert  <eggert@twinsun.com>
59671
59672         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
59673         Bug reported by Alfred M. Szmidt.
59674
59675 2003-12-03  Bruno Haible  <bruno@clisp.org>
59676
59677         * m4/gettext.m4: Upgrade from gettext-0.13.
59678         * m4/po.m4: Upgrade from gettext-0.13.
59679         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
59680         * m4/intmax.m4: New file, from gettext-0.13.
59681         * m4/printf-posix.m4: New file, from gettext-0.13.
59682
59683 2003-11-29  Karl Berry  <karl@gnu.org>
59684
59685         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
59686
59687 2003-11-25  Paul Eggert  <eggert@twinsun.com>
59688             Bruno Haible  <bruno@clisp.org>
59689
59690         * lib/printf-parse.h: Don't include sys/types.h.
59691         (ARG_NONE): New macro.
59692         (char_directive): Change type of *arg_index fields to size_t.
59693         * lib/printf-parse.c: Don't include sys/types.h.
59694         (SSIZE_MAX): Remove macro.
59695         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
59696         Remove unnecessary overflow check.
59697         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
59698         fields.
59699
59700 2003-11-25  Bruno Haible  <bruno@clisp.org>
59701
59702         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
59703
59704 2003-11-25  Bruno Haible  <bruno@clisp.org>
59705
59706         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
59707         gt_TYPE_SSIZE_T.
59708
59709 2003-11-24  Paul Eggert  <eggert@twinsun.com>
59710
59711         * modules/alloca: Remove dependency on xalloc.
59712
59713 2003-11-24  Paul Eggert  <eggert@twinsun.com>
59714
59715         * lib/alloca.c: Remove dependency on xalloc module.
59716         (xalloc_die): Remove.
59717         (memory_full) [!defined emacs]: New macro.
59718         [!defined emacs]: Don't include xalloc.h.
59719         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
59720         address arithmetic overflows.  Change datatypes a bit to avoid
59721         unnecessary casts.
59722
59723 2003-11-22  Jim Meyering  <jim@meyering.net>
59724
59725         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
59726         s/size/size_t/.
59727
59728 2003-11-21  Karl Berry  <karl@gnu.org>
59729
59730         * config/config.{sub,guess}: update from config.
59731
59732 2003-11-18  Karl Berry  <karl@gnu.org>
59733
59734         * config/config.{sub,guess}: update from config.
59735
59736         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
59737
59738 2003-11-17  Paul Eggert  <eggert@twinsun.com>
59739
59740         * README: Mention that S+T cannot overflow if S is the size of
59741         an existing object and T is sufficiently small.
59742
59743 2003-11-17  Jim Meyering  <jim@meyering.net>
59744
59745         On systems without utime and without a utimes function capable of
59746         dealing with a NULL struct utimbuf* argument, this utime replacement
59747         could -- in unusual circumstances -- leak a file descriptor.
59748         * lib/utime.c: Include <unistd.h> and <errno.h>.
59749         (utime_null): Be sure to close `fd' and to preserve errno.
59750         Reported by Geoff Collyer via Arnold Robbins.
59751
59752 2003-11-17  Bruno Haible  <bruno@clisp.org>
59753
59754         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
59755         (Depends-on): Add xsize.
59756
59757 2003-11-17  Bruno Haible  <bruno@clisp.org>
59758
59759         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
59760
59761 2003-11-17  Bruno Haible  <bruno@clisp.org>
59762
59763         * lib/vasnprintf.c (alloca): Remove fallback definition.
59764         (freea): Remove definition.
59765         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
59766         Reported by Paul Eggert.
59767
59768 2003-11-16  Paul Eggert  <eggert@twinsun.com>
59769             Bruno Haible  <bruno@clisp.org>
59770
59771         Protect against address arithmetic overflow.
59772         * lib/printf-args.h: Include stddef.h.
59773         (arguments): Change type of field 'count' to size_t.
59774         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
59775         'unsigned int' where appropriate.
59776         * lib/printf-parse.h: Include sys/types.h.
59777         (char_directive): Change type of *arg_index fields to ssize_t.
59778         (char_directives): Change type of fields 'count', max_*_length to
59779         size_t.
59780         * lib/printf-parse.c: Include sys/types.h and xsize.h.
59781         (SSIZE_MAX): Define fallback value.
59782         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
59783         instead of 'int' where appropriate. Check a_allocated, d_allocated
59784         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
59785         * lib/vasnprintf.c: Include xsize.h.
59786         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
59787         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
59788         overflow. Avoid wraparound when converting a width or precision from
59789         decimal to binary.
59790
59791 2003-11-16  Bruno Haible  <bruno@clisp.org>
59792
59793         Update from GNU gettext.
59794         * lib/printf-parse.c: Generalize to it can be compiled for wide
59795         strings.
59796         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
59797         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
59798         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
59799         SNPRINTF): New macros.
59800         Don't include <alloca.h> if the file is used inside libintl.
59801         (local_wcslen): New function, for Solaris 2.5.1.
59802         (VASNPRINTF): Use it instead of wcslen.
59803
59804 2003-11-16  Bruno Haible  <bruno@clisp.org>
59805
59806         * lib/xsize.h (xmax): New function.
59807         (xsum, xsum3, xsum4): Declare as "pure" functions.
59808
59809 2003-11-12  Paul Eggert  <eggert@twinsun.com>
59810
59811         * modules/xalloc (Files): Undo latest change, since xalloc.h
59812         no longer needs SIZE_MAX or PTRDIFF_MAX.
59813
59814 2003-11-12  Paul Eggert  <eggert@twinsun.com>
59815
59816         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
59817         gl_PTRDIFF_MAX.
59818
59819 2003-11-12  Paul Eggert  <eggert@twinsun.com>
59820
59821         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
59822         "return", to pacify some unknown compiler.  Problem reported
59823         by Joerg Schilling.
59824
59825 2003-11-12  Paul Eggert  <eggert@twinsun.com>
59826
59827         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
59828         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
59829         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
59830         heuristic is just as accurate as far as we know, and it removes a
59831         dependency on size_max.m4 and ptrdiff_max.m4.
59832
59833 2003-11-11  Bruno Haible  <bruno@clisp.org>
59834
59835         * modules/xsize (Files): Add m4/size_max.m4.
59836         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
59837
59838 2003-11-11  Bruno Haible  <bruno@clisp.org>
59839
59840         * m4/size_max.m4: New file.
59841         * m4/ptrdiff_max.m4: New file.
59842         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
59843         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
59844         (gl_XALLOC): Invoke it.
59845
59846 2003-11-11  Bruno Haible  <bruno@clisp.org>
59847
59848         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
59849         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
59850         defined.
59851
59852 2003-11-10  Paul Eggert  <eggert@twinsun.com>
59853
59854         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
59855         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
59856         rejected some allocations of exactly SIZE_MAX - 2 bytes.
59857         From Bruno Haible.
59858         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
59859         not (size_t) -1, since it's defined here.
59860
59861 2003-11-09  Karl Berry  <karl@gnu.org>
59862
59863         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
59864
59865 2003-11-06  Paul Eggert  <eggert@twinsun.com>
59866
59867         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
59868         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
59869         Reject sizes of exactly SIZE_MAX bytes.
59870         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
59871         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
59872
59873 2003-11-05  Bruno Haible  <bruno@clisp.org>
59874
59875         * lib/xsize.h: Include limits.h, to avoid a possible collision with
59876         SIZE_MAX defined in <limits.h> on Solaris.
59877
59878 2003-11-04  Jim Meyering  <jim@meyering.net>
59879
59880         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
59881         variable names, rather than @VAR@.
59882         * modules/poll: Likewise.
59883
59884 2003-11-04  Bruno Haible  <bruno@clisp.org>
59885
59886         * modules/xsize: New file.
59887         * modules/linebreak: Depend on xsize.
59888         * MODULES.html.sh (func_all_modules): Add xsize.
59889
59890 2003-11-04  Bruno Haible  <bruno@clisp.org>
59891
59892         * m4/xsize.m4: New file.
59893
59894 2003-11-04  Bruno Haible  <bruno@clisp.org>
59895
59896         * lib/xsize.h: New file.
59897         * lib/linebreak.c: Include xsize.h.
59898         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
59899         argument for overflow.
59900         Suggested by Paul Eggert.
59901
59902 2003-11-03  Karl Berry  <karl@gnu.org>
59903
59904         * config/config.{guess,sub}: update from config.
59905
59906 2003-11-03  Jim Meyering  <jim@meyering.net>
59907
59908         * modules/userspec (lib_SOURCES): Add userspec.h.
59909         (Include): Add "userspec.h".
59910         Improve description.
59911
59912 2003-11-03  Jim Meyering  <jim@meyering.net>
59913
59914         * lib/userspec.c: Include "userspec.h".
59915         * lib/userspec.h: New file.
59916
59917 2003-11-03  Bruno Haible  <bruno@clisp.org>
59918
59919         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
59920
59921 2003-11-03  Bruno Haible  <bruno@clisp.org>
59922
59923         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
59924         available, to avoid (extremely rare) race condition.
59925         Suggested by Paul Eggert.
59926
59927 2003-11-02  Karl Berry  <karl@gnu.org>
59928
59929         * config/srclist.txt (vasprintf.c): sync broken, sigh.
59930
59931 2003-10-31  Paul Eggert  <eggert@twinsun.com>
59932
59933         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
59934         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
59935         (read_filesystem_list): Set and use me_type_malloced.
59936         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
59937         whatever the type happens to be), for brevity and consistency.
59938         Check for size calculation overflow on Alphas running OSF/1.
59939
59940 2003-10-31  Jim Meyering  <jim@meyering.net>
59941
59942         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
59943
59944         * lib/linebuffer.c: Include <string.h> for declaration of memset.
59945
59946 2003-10-30  Paul Eggert  <eggert@twinsun.com>
59947             Bruno Haible  <bruno@clisp.org>
59948
59949         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
59950         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
59951
59952 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
59953
59954         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
59955         netbsd*-gnu*.  Suggested by Robert Millan.
59956
59957 2003-10-29  Paul Eggert  <eggert@twinsun.com>
59958
59959         * modules/group-member: Depend on stdbool.
59960
59961 2003-10-29  Paul Eggert  <eggert@twinsun.com>
59962
59963         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
59964
59965 2003-10-29  Paul Eggert  <eggert@twinsun.com>
59966
59967         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
59968         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
59969         after the 'gnu' in these cases.  This fixes some bugs in the
59970         previous change, and is based on suggestions by Robert Millan.
59971
59972 2003-10-29  Paul Eggert  <eggert@twinsun.com>
59973
59974         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
59975         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
59976         no longer needed.
59977         * lib/quotearg.c (quotearg_n_options): Use it.
59978         * lib/group-member.c: Include <stdbool.h>.
59979         (free_group_info): Arg is now const *; don't free arg.
59980         (get_group_info): Now returns bool and accepts struct group_info *,
59981         rather than returning a malloc'ed struct group_info *.
59982         All uses changed.  Check for overflow in internal size calculation.
59983
59984         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
59985         rather than xmalloc/xrealloc.
59986         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
59987         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
59988         conformance bug: the old code used a pointer after freeing the
59989         storage that it addressed.
59990         * lib/hash.c (hash_initialize): Simplify the code by using
59991         xalloc_oversized rather than doing it by hand.
59992         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
59993         the buffer preserved.  Use free and xmalloc instead.
59994         * lib/quotearg.c (quotearg_n_options): Likewise.
59995         Use a simpler test for size overflow.  Don't use xalloc_oversized
59996         because unsigned int might be wider than size_t (!); this suggests
59997         that we should switch from unsigned int to size_t for slot numbers.
59998
59999 2003-10-28  Paul Eggert  <eggert@twinsun.com>
60000
60001         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
60002         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
60003         NetBSD kernels.  Requested by Richard Stallman.
60004
60005 2003-10-27  Paul Eggert  <eggert@twinsun.com>
60006
60007         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
60008         to allocate the returned structure.  Do not allocate a subarray,
60009         as x2nrealloc will do that.
60010         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
60011         instead of xnrealloc.
60012         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
60013
60014 2003-10-27  Bruno Haible  <bruno@clisp.org>
60015
60016         * lib/stdbool_.h: Better support for BeOS.
60017
60018 2003-10-26  Paul Eggert  <eggert@twinsun.com>
60019
60020         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
60021         now uses inline.
60022
60023 2003-10-26  Paul Eggert  <eggert@twinsun.com>
60024
60025         * lib/xalloc.h (xalloc_oversized): New static inline function, for
60026         callers that want to do their own size-overflow checking.  Include
60027         <stdbool.h>, since xalloc_oversized returns bool.
60028         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
60029         to use xalloc_oversized.
60030
60031         Add two functions x2realloc, x2nrealloc, for programs that grow
60032         arrays dynamically by doubling their sizes.
60033         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
60034         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
60035         New functions.
60036
60037         Port to C99 semantics for 'inline' of external functions.
60038         Bug reported by Bruno Haible.
60039         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
60040         with the old contents of xnmalloc.
60041         (xnmalloc, xmalloc): Use it.
60042         (xnrealloc_inline): New static inline function,
60043         with the old contents of xnrealloc.
60044         (xnrealloc, xrealloc): Use it.
60045
60046         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
60047         that.
60048
60049 2003-10-26  Karl Berry  <karl@gnu.org>
60050
60051         * config/srclist.txt (COPYING.DOC): no longer available from
60052         /gd/gnuorg; don't know where the ultimate source is.
60053
60054 2003-10-25  Paul Eggert  <eggert@twinsun.com>
60055
60056         Fix several address-calculation bugs in the hash modules,
60057         plus some minor code cleanup.
60058
60059         * lib/hash.h: Include <stdbool.h>, for bool.
60060         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
60061         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
60062         hash_get_n_entries, hash_get_max_bucket_length,
60063         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
60064         hash_rehash): Use size_t rather than unsigned.
60065         * lib/hash.c (struct hash_table, hash_get_n_buckets,
60066         hash_get_n_buckets_used, hash_get_n_entries,
60067         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
60068         hash_get_entries, hash_do_for_each, hash_string, is_prime,
60069         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
60070         Likewise.
60071         (SIZE_MAX): Define if not defined.
60072         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
60073         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
60074         hash_print):
60075         Use const * when possible.
60076         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
60077         (check_tuning): Fix bug: if tuning parameters were very close to
60078         0 or 1, rounding errors could have caused subscript violations.
60079         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
60080         (hash_initialize): Add 'fail:' label
60081         to free table and return NULL, and use it to simplify code.
60082         Use calloc rather than clearing the storage ourself.
60083         (hash_initialize, hash_rehash): Check for arithmetic overflow in
60084         buffer size calculations.
60085         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
60086         Include <stddef.h>, for size_t.
60087         * lib/hash-pjw.c (hash_pjw): Likewise.
60088         Switch to method described by Bruno Haible.
60089         Include <limits.h>, for CHAR_BIT.
60090         (SIZE_BITS): New macro.
60091
60092 2003-10-23  Paul Eggert  <eggert@twinsun.com>
60093
60094         * m4/getline.m4 (AM_FUNC_GETLINE):
60095         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
60096         hosts.  Problem reported by Derek Robert Price in
60097         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
60098         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
60099         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
60100
60101 2003-10-21  Paul Eggert  <eggert@twinsun.com>
60102
60103         * lib/getndelim2.c (getndelim2): When size calculation overflows,
60104         ceiling the allocation at NMAX bytes rather than silently
60105         discarding input bytes before NMAX is reached.  This makes
60106         a difference only if NMAX exceeds SIZE_MAX / 2.
60107
60108         * lib/obstack.c: Merge from glibc.
60109         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
60110         Add libc_hidden_def (_obstack_newchunk).
60111         (_obstack_free) [! defined _LIBC]: Remove.
60112         [defined _LIBC]: Make a strong alias from obstack_free, rather than
60113         a clone of the function body.
60114         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
60115         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
60116
60117         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
60118         glibc.
60119         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
60120         arg to memcpy.
60121
60122         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
60123         (obstack_ptr_grow_fast, obstack_int_grow_fast):
60124         Don't use lvalue casts, as GCC plans to remove support for them
60125         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
60126         was also present in the non-GCC version, indicating that this
60127         code had always been buggy and had never been widely used.
60128         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
60129         Use the fast variant of each macro, rather than copying the
60130         definiens of the fast variant; that way, we'll be more likely to
60131         catch future bugs in the fast variants.
60132
60133 2003-10-20  Bruno Haible  <bruno@clisp.org>
60134
60135         * modules/wait-process: New file.
60136         * MODULES.html.sh (func_all_modules): Add wait-process.
60137
60138 2003-10-20  Bruno Haible  <bruno@clisp.org>
60139
60140         * m4/wait-process.m4: New file.
60141
60142 2003-10-20  Bruno Haible  <bruno@clisp.org>
60143
60144         * lib/wait-process.h: New file, from GNU gettext.
60145         * lib/wait-process.c: New file, from GNU gettext.
60146
60147 2003-10-19  Jim Meyering  <jim@meyering.net>
60148
60149         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
60150         HPUX 10.20.
60151
60152 2003-10-18  Karl Berry  <karl@gnu.org>
60153
60154         * config/config.guess: update from config.
60155
60156 2003-10-16  Paul Eggert  <eggert@twinsun.com>
60157
60158         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
60159         (getgroups): First arg is int, not size_t.
60160         Don't let 'free' mangle errno.
60161
60162 2003-10-16  Paul Eggert  <eggert@twinsun.com>
60163
60164         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
60165
60166 2003-10-16  Karl Berry  <karl@gnu.org>
60167
60168         * config/config.{guess,sub}: update from config.
60169
60170 2003-10-16  Jim Meyering  <jim@meyering.net>
60171
60172         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
60173         memcpy.
60174
60175 2003-10-15  Paul Eggert  <eggert@twinsun.com>
60176
60177         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
60178         (SIZE_MAX): Remove.
60179         (new_exclude, add_exclude_file): Initial size no longer needs to
60180         be a power of 2.
60181         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
60182         our own address arithmetic overflow checking.
60183
60184         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
60185         (fnmatch): Do not alloca more than 2000 wide characters;
60186         instead, use malloc for large buffers.
60187         Check for address arithmetic overflow, and return -1
60188         with errno set to ENOMEM in that case.
60189         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
60190         (NEW_PATTERN): Do not alloca more than 8000 bytes;
60191         instead, return -1.  Check for address arithmetic overflow.
60192
60193 2003-10-14  Paul Eggert  <eggert@twinsun.com>
60194
60195         Handle invalid suffixes and overflow independently, so that
60196         callers can treat them independently as needed.  Fix some bugs in
60197         suffix handling, e.g., "100k@" was not diagnosed as an invalid
60198         suffix for a human-readable blocksize.  The major caller-visible
60199         change is the addition of a new
60200         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
60201         that both overflow and suffix chars were found.
60202
60203         * lib/human.c (humblock): Don't check separately for invalid suffix
60204         char; that is xstrtoumax's job (now that its bug is fixed).
60205         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
60206         INTMAX_MAX]: New macros.
60207         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
60208         TYPE_MAXIMUM): New macros.
60209         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
60210         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
60211         if overflow occurs, as it's what __strtol does and it's more useful
60212         in practice.
60213         (__xstrtol): If __strtol reports some error other than ERANGE,
60214         reflect it to the caller as LONGINT_INVALID.  If it reports
60215         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
60216         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
60217         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
60218         value.
60219         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
60220         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
60221         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
60222         [defined UINTMAX_MAX]: New macros.
60223
60224 2003-10-14  Bruno Haible  <bruno@clisp.org>
60225
60226         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
60227
60228 2003-10-14  Bruno Haible  <bruno@clisp.org>
60229
60230         * m4/sig_atomic_t: New file, from GNU gettext.
60231         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
60232
60233 2003-10-14  Bruno Haible  <bruno@clisp.org>
60234
60235         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
60236         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
60237         Also use volatile where needed.
60238
60239 2003-10-12  Paul Eggert  <eggert@twinsun.com>
60240
60241         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
60242         Change maintainer from Bruno Haible to 'all'.
60243
60244 2003-10-12  Paul Eggert  <eggert@twinsun.com>
60245
60246         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
60247
60248 2003-10-12  Paul Eggert  <eggert@twinsun.com>
60249
60250         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
60251         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
60252         and define in terms of the other primitives.
60253         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
60254         (SIZE_MAX): Define if not already defined.
60255         (array_size_overflow): New function.
60256         (xalloc_die): Abort instead of exiting if 'error' returns.
60257         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
60258         (xmalloc, xrealloc): Use them.
60259         (xcalloc): Check for address arithmetic overflow.
60260         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
60261         a bit faster than strcpy.
60262
60263 2003-10-10  Simon Josefsson  <jas@extundo.com>
60264
60265         * modules/argp (Depends-on): Add restrict and strcase.
60266
60267 2003-10-10  Simon Josefsson  <jas@extundo.com>
60268
60269         * m4/argp.m4: Add AC_C_INLINE.
60270
60271 2003-10-08  Paul Eggert  <eggert@twinsun.com>
60272
60273         Merge getpass from libc, plus a few fixes.
60274
60275         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
60276         Include <stdbool.h>.
60277         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
60278         __fsetlocking to empty.
60279         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
60280         do include <bits/libc-lock.h>.
60281         Do not include <fcntl.h>; not needed.
60282         [_LIBC]: Include <wchar.h>.
60283         (NOTCANCEL_MODE): New macro.
60284         (flockfile, funlockfile) [_LIBC]: New macros.
60285         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
60286         [!_LIBC]: New macros.
60287         (call_fclose): New function.
60288         (getpass): Use it.  Save tty stream separately; this simplifies the
60289         code and makes it more reliable if stdin happens to equal stdout.
60290         Invoke __fsetlocking on tty.
60291         Handle thread cancellation if needed.
60292         Namespace cleanup (use __tcgetattr, __getline).
60293         Use bool for Booleans.
60294         [USE_IN_LIBIO]: Handle wide streams.
60295         [!_LIBC]: Unconditionally do the fseek, since we don't know what
60296         stream might go where.
60297
60298         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
60299         doesn't have to include <stdio.h> before us.
60300         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
60301         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
60302         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
60303         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
60304         if not declared, so that we can use getpass.c code from libc without
60305         rewriting it.
60306         (flockfile, ftrylockfile, funlockfile): New macros.
60307
60308 2003-10-08  Paul Eggert  <eggert@twinsun.com>
60309
60310         * modules/getpass: Depend on stdbool.
60311
60312 2003-10-08  Paul Eggert  <eggert@twinsun.com>
60313
60314         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
60315
60316 2003-10-07  Karl Berry  <karl@gnu.org>
60317
60318         * config/config.{guess,sub}: update from config.
60319
60320 2003-10-06  Jim Meyering  <jim@meyering.net>
60321             Bruno Haible  <bruno@clisp.org>
60322
60323         This lets translators provide better translations for the
60324         "Written by ..." part of --version output.
60325         * lib/version-etc.h: Include stdarg.h.
60326         (version_etc_copyright): Declare as readonly.
60327         (version_etc): Make this function variadic with a NULL-terminated list
60328         of author name strings.
60329         (version_etc_va): New declaration.
60330         * lib/version-etc.c: Include stdarg.h, stdlib.h.
60331         (version_etc_copyright): Declare as readonly.
60332         (version_etc_va): New function. Provide a different translatable string
60333         for each possible number of authors < 10. Abbreviate when there are 10
60334         authors or more.
60335         (version_etc): Make this function variadic. Call version_etc_va.
60336         Suggestion from Gary V. Vaughan.
60337
60338         * lib/long-options.h (parse_long_options): Change prototype: the
60339         authors string is moved to the end and becomes variadic.
60340         * lib/long-options.c: Include stdarg.h.
60341         (parse_long_options): Make this function variadic, too.
60342         Call version_etc_va, not version_etc.
60343
60344 2003-10-06  Bruno Haible  <bruno@clisp.org>
60345
60346         * modules/version-etc-2: Remove file.
60347         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
60348
60349 2003-10-06  Bruno Haible  <bruno@clisp.org>
60350
60351         * modules/fatal-signal: New file.
60352         * MODULES.html.sh (func_all_modules): Add fatal-signal.
60353
60354 2003-10-06  Bruno Haible  <bruno@clisp.org>
60355
60356         * m4/fatal-signal.m4: New file.
60357         * m4/signalblocking.m4: New file, from GNU gettext.
60358
60359 2003-10-06  Bruno Haible  <bruno@clisp.org>
60360
60361         * lib/version-etc-2.h: Remove file.
60362         * lib/version-etc-2.c: Remove file.
60363
60364 2003-10-06  Bruno Haible  <bruno@clisp.org>
60365
60366         * lib/fatal-signal.h: New file, from GNU gettext.
60367         * lib/fatal-signal.c: New file, from GNU gettext.
60368
60369 2003-10-05  Paul Eggert  <eggert@twinsun.com>
60370
60371         * README: Rework advice for preventing empty .o files.
60372         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
60373         not <sys/types.h>.
60374
60375 2003-10-04  Karl Berry  <karl@gnu.org>
60376
60377         * lib/argp*: update from libc.
60378
60379 2003-10-04  Karl Berry  <karl@gnu.org>
60380
60381         * config/config.{guess,sub}: update from config.
60382
60383 2003-10-02  Bruno Haible  <bruno@clisp.org>
60384
60385         * modules/lchown (Include): Add lchown.h.
60386         * modules/time_r (Include): Use "..." syntax.
60387         * modules/xgetdomainname (Include): Add xgetdomainname.h.
60388
60389 2003-10-01  Simon Josefsson  <jas@extundo.com>
60390
60391         * MODULES.html.sh (func_all_modules): Move gethostname from section
60392         'based on' to section 'lacking' POSIX:2001.
60393
60394 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
60395
60396         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
60397         to output mode on the same stream.
60398
60399 2003-09-29  Paul Eggert  <eggert@twinsun.com>
60400
60401         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
60402         Fix arg typo in previous patch.
60403
60404 2003-09-28  Jim Meyering  <jim@meyering.net>
60405
60406         * lib/error.c: Correct cpp indentation.
60407
60408 2003-09-27  Paul Eggert  <eggert@twinsun.com>
60409
60410         * modules/free: New file.
60411
60412 2003-09-27  Paul Eggert  <eggert@twinsun.com>
60413
60414         * m4/free.m4: New file.
60415
60416 2003-09-27  Paul Eggert  <eggert@twinsun.com>
60417
60418         * lib/minmax.h (MIN, MAX)
60419         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
60420         Omit the special code that used __typeof__, since we worry that
60421         it could be more trouble than it's worth.  See:
60422         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
60423         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
60424
60425         * lib/free.c: New file.
60426
60427 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
60428
60429         Trivial fixes to Makefile.am parts of module listings.
60430         * modules/strstr: Append strstr.h to lib_SOURCES.
60431         * modules/strcase: Likewise, for strcase.h.
60432
60433 2003-09-27  Karl Berry  <karl@gnu.org>
60434
60435         * config/mkinstalldirs: update from automake.
60436
60437 2003-09-26  Paul Eggert  <eggert@twinsun.com>
60438
60439         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
60440         (error_tail): Do not loop, reallocating temporary buffer, since
60441         the output cannot contain more wide characters than the input
60442         contains bytes, the size must be big enough already.  This avoids
60443         one potential size overflow calculation.  Check for size overflow
60444         when calculating temporary buffer size.  Free temporary buffer
60445         when done, if it was allocated with malloc; this plugs a memory
60446         leak.  Remove casts from void * to pointers, that are no longer
60447         needed now that we're assuming C89 or better.
60448
60449         Merge error changes from glibc.
60450
60451         * lib/error.c, error.h: Update copyright notice header to match glibc.
60452         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
60453         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
60454         Disable cancellation while printing error.
60455         * lib/error.h: Prepend __ to parameter names.
60456
60457 2003-09-26  Jim Meyering  <jim@meyering.net>
60458
60459         * lib/error.c (error_tail): Move some declarations
60460         into inner scope where the local variables are used.
60461
60462 2003-09-26  Bruno Haible  <bruno@clisp.org>
60463
60464         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
60465         stpncpy().
60466         Don't define stpncpy through config.h; it's now done through stpncpy.h.
60467
60468 2003-09-26  Bruno Haible  <bruno@clisp.org>
60469
60470         * lib/stpncpy.h (gnu_stpncpy): New declaration.
60471         (stpncpy): Define as alias for gnu_stpncpy.
60472         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
60473
60474 2003-09-25  Simon Josefsson  <jas@extundo.com>
60475
60476         * lib/xgetdomainname.h: New file.
60477         * lib/xgetdomainname.c: New file.
60478
60479 2003-09-25  Simon Josefsson  <jas@extundo.com>
60480             Bruno Haible  <bruno@clisp.org>
60481
60482         * modules/getdomainname: New file.
60483         * modules/xgetdomainname: New file.
60484         * MODULES.html.sh (func_all_modules): Add getdomainname,
60485         xgetdomainname.
60486
60487 2003-09-25  Simon Josefsson  <jas@extundo.com>
60488             Bruno Haible  <bruno@clisp.org>
60489
60490         * m4/getdomainname.m4: New file.
60491
60492 2003-09-25  Simon Josefsson  <jas@extundo.com>
60493             Bruno Haible  <bruno@clisp.org>
60494
60495         * lib/getdomainname.h: New file.
60496         * lib/getdomainname.c: New file.
60497
60498 2003-09-25  Karl Berry  <karl@gnu.org>
60499
60500         * lib/argp-fmtstream.c, argp-help.c: update from libc.
60501
60502 2003-09-25  Karl Berry  <karl@gnu.org>
60503
60504         * config/install-sh: update from automake.
60505
60506 2003-09-25  Bruno Haible  <bruno@clisp.org>
60507
60508         * modules/version-etc-2: New file, from modules/version-etc with
60509         modifications.
60510         * MODULES.html.sh (func_all_modules): Add version-etc-2.
60511
60512 2003-09-25  Bruno Haible  <bruno@clisp.org>
60513
60514         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
60515         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
60516
60517 2003-09-24  Simon Josefsson  <jas@extundo.com>
60518
60519         * modules/xgethostname: Add xgethostname.h.
60520
60521 2003-09-24  Paul Eggert  <eggert@twinsun.com>
60522
60523         * lib/linebuffer.c (freebuffer): Don't free the argument, just
60524         the buffer associated with the argument.  Bug reported by
60525         Simon Josefsson.
60526
60527 2003-09-24  Paul Eggert  <eggert@twinsun.com>
60528
60529         * README: Document assumptions that 'int' is at least 32 bits
60530         wide, that integer arithmetic is 2's complement without overflow,
60531         that there are no holes in integer values, that adding sizes of
60532         two nonoverlapping objects can't overflow, and that all-bits-zero
60533         yields scalar zero.  Fix spelling and capitalization typos.
60534
60535 2003-09-19  Karl Berry  <karl@gnu.org>
60536
60537         * lib/argp.h: update from libc.
60538
60539 2003-09-17  Paul Eggert  <eggert@twinsun.com>
60540
60541         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
60542         to avoid spurious warnings like "AC_RUN_IFELSE was called before
60543         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
60544
60545 2003-09-17  Paul Eggert  <eggert@twinsun.com>
60546
60547         * gnulib-tool: Use "test -h", not "test -L", for portability
60548         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
60549         (tags_regexp): Remove, since \| doesn't conform to POSIX.
60550         (sed_extract_prog): Issue s commands one-by-one, rather than
60551         using \| in one s command.
60552
60553 2003-09-16  Paul Eggert  <eggert@twinsun.com>
60554
60555         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
60556         input error, instead of returning NULL the next time we are called
60557         (and therefore losing track of errno).
60558
60559 2003-09-16  Bruno Haible  <bruno@clisp.org>
60560
60561         * gnulib-tool (func_create_testdir): Warn about duplicated
60562         dependencies.
60563
60564 2003-09-15  Paul Eggert  <eggert@twinsun.com>
60565
60566         * modules/argmatch, modules/fatal, modules/obstack,
60567         modules/xalloc, modules/xgethostname: Sort dependencies by
60568         importance, not alphabetically.
60569
60570 2003-09-15  Paul Eggert  <eggert@twinsun.com>
60571
60572         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
60573         fails, so that the caller gets the proper errno.
60574
60575         * lib/readutmp.c (read_utmp): Likewise.
60576         Check for fstat error.  Close stream and free storage
60577         when failing.
60578
60579 2003-09-14  Karl Berry  <karl@gnu.org>
60580
60581         * config/srclist.txt (strdup.c): disable for c89 changes.
60582
60583 2003-09-14  Jim Meyering  <jim@meyering.net>
60584
60585         * lib/getloadavg.c: Correct cpp indentation.
60586         * lib/strdup.c: Likewise.
60587         * lib/vasnprintf.c: Likewise.
60588
60589 2003-09-14  Bruno Haible  <bruno@clisp.org>
60590
60591         * modules/fwriteerror: New file.
60592         * MODULES.html.sh (func_all_modules): Add fwriteerror.
60593
60594 2003-09-14  Bruno Haible  <bruno@clisp.org>
60595
60596         * lib/fwriteerror.h: New file.
60597         * lib/fwriteerror.c: New file.
60598
60599 2003-09-12  Paul Eggert  <eggert@twinsun.com>
60600
60601         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
60602         modules/xgethostname, modules/xalloc: Depend on exit.
60603
60604 2003-09-12  Paul Eggert  <eggert@twinsun.com>
60605
60606         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
60607
60608         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
60609         and AC_MINIX, too, so that their extensions are available.
60610
60611         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
60612         This macro has been superseded by gl_BACKUPFILE.
60613
60614         More patches to assume C89 or better.
60615
60616         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
60617
60618         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
60619         unconditionally.
60620         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
60621         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
60622         Include <string.h>, <stdlib.h> unconditionally.
60623         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
60624         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
60625         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
60626         headers or for string.h.
60627         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
60628         or strtoul.
60629
60630         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
60631         headers.
60632         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
60633         * m4/userspec.m4 (gl_USERSPEC): Likewise.
60634         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
60635         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
60636         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
60637         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
60638         memcpy, memset.
60639         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
60640         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
60641         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
60642         strtol.
60643         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
60644         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
60645         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
60646         strtoul.
60647
60648 2003-09-12  Paul Eggert  <eggert@twinsun.com>
60649
60650         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
60651         * lib/obstack.c [!defined _LIBC]: Likewise.
60652         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
60653         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
60654         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
60655
60656         More changes to assume C89 or better.
60657
60658         * lib/error.c (error_tail): Assume vprintf.
60659
60660         * lib/argmatch.c (getenv): Remove decl.
60661         * lib/progreloc.c (get_full_program_name): Define via prototype.
60662         * lib/setenv.c (clearenv): Likewise.
60663         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
60664         needed.
60665         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
60666         (malloc, memcpy): Remove decls.
60667         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
60668         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
60669         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
60670         (memcpy): Remove macro.
60671         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
60672         (__P): Remove.  All uses removed.
60673         (PTR): Remove.  All uses changed to void *.
60674         (CHAR_BIT, NULL): Remove.
60675         (spaces, zeros, memset_space, memset_zero)
60676         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
60677         Remove.
60678         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
60679         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
60680         Define with prototype.
60681         Remove now-unnecessary prototype decl.
60682         (extra_args_spec): Assume ANSI C.  All uses changed.
60683         (extra_args_spec_iso): Remove.
60684         (my_strftime, emacs_strftimeu): Define via prototype.
60685         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
60686         unconditionally.
60687         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
60688         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
60689         (strtoul, strtol): Remove decls.
60690         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
60691         LONG_MAX): Remove.
60692         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
60693         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
60694         (LOCALE_PARAM_PROTO): New macro.
60695         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
60696         (INTERNAL (strtol), strtol): Define with a prototype.
60697         (PARAMS): Remove.  All uses removed.
60698         * lib/tempname.c: Include <string.h> unconditionally.
60699         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
60700         * lib/xgethostname.c (main): Define with a prototype.
60701         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
60702         Include <stdlib.h> unconditionally.
60703         (calloc, malloc, realloc, free): Remove decls.
60704         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
60705         Include <stdlib.h> unconditionally.  Sort include file names.
60706         (strtod): Remove.
60707         (xstrtod): Define with a prototype.
60708         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
60709         (strtol, strtoul): Remove decls.
60710
60711 2003-09-11  Paul Eggert  <eggert@twinsun.com>
60712
60713         More patches to assume C89 or better.
60714         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
60715         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
60716         string.h, memchr, STDC_HEADERS.
60717
60718 2003-09-11  Paul Eggert  <eggert@twinsun.com>
60719
60720         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
60721         Include <stdlib.h>, <string.h> unconditionally.
60722         Remove now-unnecessary cast to char *.
60723         * lib/strnlen.c: Include <string.h> unconditionally.
60724         * lib/yesno.c (yesno): Define with a prototype.
60725
60726 2003-09-11  Bruno Haible  <bruno@clisp.org>
60727
60728         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
60729
60730 2003-09-10  Jim Meyering  <jim@meyering.net>
60731
60732         * lib/error.c: Correct indentation of cpp directives.
60733
60734 2003-09-10  Bruno Haible  <bruno@clisp.org>
60735
60736         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
60737         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
60738         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
60739         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
60740         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
60741         <stdlib.h> and <string.h> checks.
60742         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
60743         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
60744
60745 2003-09-10  Bruno Haible  <bruno@clisp.org>
60746
60747         * lib/strcspn.c: Include <string.h> unconditionally.
60748         * lib/strpbrk.c: Include <string.h> unconditionally.
60749         * lib/strstr.c: Include <string.h> unconditionally.
60750         * lib/unicodeio.c: Include <string.h> unconditionally.
60751         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
60752         * lib/unsetenv.c: Likewise.
60753         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
60754         * lib/yesno.c: Include <stdlib.h> unconditionally.
60755         (rpmatch): Add prototype.
60756
60757 2003-09-09  Paul Eggert  <eggert@twinsun.com>
60758
60759         More patches to assume C89 or better.
60760         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
60761         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
60762         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
60763         or for string.h.
60764         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
60765         stdlib.h.
60766         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
60767         C headers.
60768         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
60769         string.h.
60770         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
60771         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
60772         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
60773         or for string.h.
60774         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
60775         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
60776         C headers.
60777         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
60778         memcpy.
60779         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
60780         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
60781         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
60782         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
60783         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
60784         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
60785         string.h, free.
60786         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
60787         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
60788         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
60789         C headers, or for string.h.
60790         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
60791         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
60792         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
60793         headers, memory.h, stdlib.h, string.h, strings.h.
60794         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
60795         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
60796         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
60797         strchr.
60798         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
60799         headers, memory.h, string.h.
60800         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
60801         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
60802         free.
60803         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
60804         headers.
60805         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
60806         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
60807         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
60808         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
60809         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
60810
60811 2003-09-09  Paul Eggert  <eggert@twinsun.com>
60812
60813         More K&R removal.
60814
60815         * lib/acosl.c (main): Use a prototype.
60816         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
60817         tanl.c: Likewise.
60818
60819         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
60820
60821         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
60822         (getopt, etopt_long, getopt_long_only, _getopt_internal)
60823         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
60824         with a prototype.
60825         * lib/getopt.c (const): Remove macro.
60826         Include <string.h> unconditionally.
60827         (my_index): Remove; all uses changed to strchr.
60828         (strlen): Remove decl.
60829         (exchange): Remove forward decl; no longer needed.
60830         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
60831         Define with prototype.
60832         * lib/getopt1.c (const): Remove macro.
60833         (getopt_long, getopt_long_only, main): Define with prototype.
60834
60835         * lib/getugroups.c: Include <string.h> unconditionally.
60836
60837         * lib/getusershell.c: Include <stdlib.h> unconditionally.
60838         (getusershell, setusershell, endusershell, readname, main):
60839         Define with prototypes.
60840
60841         * lib/group-member.c: Include group-member.h first.
60842         Include <stdlib.h> unconditionally.
60843
60844         * lib/hard-locale.c: Include hard-locale.h first.
60845         Include <stdlib.h>, <string.h> unconditionally.
60846
60847         * lib/hash.c (free, malloc): Remove decls.
60848         Include <stdlib.h> unconditionally.
60849
60850         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
60851         (getenv): Do not declare.
60852
60853         * lib/idcache.c: Include <string.h> unconditionally.
60854
60855         * lib/long-options.c: Include long-options.h first, to test interface.
60856         Include <stdlib.h> unconditionally.
60857
60858         * lib/makepath.c: Include makepath.h first, to test interface.
60859         Include <stdlib.h> and <string.h> unconditionally.
60860
60861         * lib/linebuffer.c: Include <stdlib.h>.
60862         (free): Remove decl.
60863
60864         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
60865         stddef.h. rpl_malloc returns void *, not char *.
60866         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
60867         prototype.
60868
60869         * lib/md5.h: Include <limits.h> unconditionally.
60870         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
60871         (__P): Remove; all uses removed.
60872         * lib/md5.c: Include "md5.h" first.
60873         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
60874         md5_buffer, md5_process_bytes, md5_process_block):
60875         Define with prototypes.
60876         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
60877         * lib/sha.c: Include "sha.h" first.
60878         Include <stdlib.h>, <string.h> unconditionally.
60879
60880         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
60881         * lib/memcmp.c (__ptr_t): Likewise.
60882         * lib/memrchr.c (__ptr_t): Likewise.
60883         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
60884         Include <string.h> unconditionally.
60885         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
60886         * lib/memchr.c: Include <stdlib.h> unconditionally.
60887         * lib/memchr.c (LONG_MAX): Remove.
60888         * lib/memrchr.c (LONG_MAX): Likewise.
60889         * lib/memchr.c (__memchr): Define via a prototype.
60890         * lib/memrchr.c (__memrchr): Likewise.
60891         * lib/memcmp.c (__P): Remove, and remove all uses.
60892         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
60893         Remove forward decls; no longer needed.
60894         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
60895         Use types required by C89 in prototype.
60896
60897         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
60898         * lib/savedir.c: Likewise.
60899         * lib/mkdir.c (free): Remove decl.
60900         * lib/rmdir.c (rmdir): Define with a prototype.
60901         * lib/savedir.c: Include savedir.h first, to test interface.
60902
60903         * lib/mktime.c (STDC_HEADERS): Remove.
60904         Include <stdlib.h>, <string.h> unconditionally.
60905
60906         * lib/modechange.c: Include <stdlib.h> unconditionally.
60907         (malloc): Remove decl.
60908
60909         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
60910         (free): Remove decl.
60911
60912         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
60913         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
60914         (This type really should be intptr_t, but that's a C99ism.)
60915         (_obstack_memcpy): Remove: all uses changed to memcpy.
60916         Include <string.h> unconditionally.
60917         (struct obstack): Assume __STDC__ for types of members
60918         chunkfun, freefun, extra_arg.
60919         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
60920         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
60921         obstack_begin, obstack_specify_allocation,
60922         obstack_specify_allocation_with_arg, obstack_chunkfun,
60923         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
60924         Remove unprototyped decls and the macros that use them.
60925         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
60926         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
60927         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
60928         (defined __STDC__ && __STDC__)]:
60929         Remove nonprototyped code.
60930         Include <stdlib.h> unconditionally.
60931         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
60932         _obstack_allocated_p, _obstack_free, obstack_free,
60933         _obstack_memory_used, print_and_abort):
60934         Define using prototypes.
60935         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
60936         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
60937         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
60938         obstack_next_free, obstack_object_size, obstack_room) [0]:
60939         Remove unused, unprototyped code.
60940
60941         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
60942
60943         * lib/physmem.c (physmem_total, physmem_available, main): Define
60944         with prototypes.
60945
60946         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
60947         (main): Define with a prototype.
60948
60949         * lib/posixver.c (getenv): Remove decl.
60950
60951         * lib/putenv.c (malloc): Returns void *, not char *.
60952         Include <string.h> unconditionally.
60953         (strchr, memcpy, NULL): Do not define.
60954
60955         * lib/readtokens.c: Include readtokens.h first, to test interface.
60956         Include <stdlib.h>, <string.h> unconditionally.
60957         (init_tokenbuffer): Define with a prototype.
60958
60959         * lib/regex.c (PARAMS): Remove.  All uses removed.
60960         All uses of _RE_ARGS removed, too.
60961         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
60962         unconditionally.
60963         (bzero): Assume memset exists.
60964         (memcmp, memcpy, NULL): Remove.
60965         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
60966         char, or assignments to local vars of type signed char.
60967         (init_syntax_once, PREFIX(extract_number_and_incr),
60968         PREFIX(print_partial_compiled_pattern),
60969         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
60970         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
60971         PREFIX(regex_grow_registers), PREFIX(regex_compile),
60972         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
60973         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
60974         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
60975         wcs_compile_range, byte_compile_range, truncate_wchar,
60976         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
60977         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
60978         count_mbs_length, wcs_re_match_2_internal,
60979         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
60980         PREFIX(alt_match_null_string_p),
60981         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
60982         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
60983         regfree, PREFIX(extract_number)): Define with prototype.  Remove
60984         now-unnecessary declaration, if any.
60985         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
60986         regcomp, regexec):
60987         Remove now-unnecessary casts among pointer types.
60988         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
60989
60990         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
60991         (free): Remove decl.
60992
60993         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
60994
60995         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
60996         (free): Remove decl.
60997
60998         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
60999         * lib/xgetcwd.c: Likewise.
61000
61001         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
61002         (free): Remove decl.
61003
61004         * lib/strchrnul.c (strchrnul): Define with a prototype.
61005         Fix bug: c_in was not converted to char before searching.
61006
61007         The following changes are not K&R related:
61008
61009         * lib/group-member.h: Include <sys/types.h>, so that this file is
61010         self-contained.
61011         * lib/makepath.h: Likewise.
61012
61013         * lib/getusershell.c (readname, default_index, line_size, readname):
61014         Use size_t, not int, for sizes.
61015         (readname): If the size overflows, report an error instead of
61016         looping forever.
61017
61018 2003-09-09  Paul Eggert  <eggert@twinsun.com>
61019
61020         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
61021         libc.
61022
61023 2003-09-09  Paul Eggert  <eggert@twinsun.com>
61024
61025         * README: New section: portability guidelines.
61026
61027 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
61028
61029         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
61030         C89 spec.
61031
61032 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
61033
61034         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
61035
61036 2003-09-08  Paul Eggert  <eggert@twinsun.com>
61037
61038         Assume C89 or better; remove K&R cruft.
61039         A few of these changes were first proposed by Derek Robert Price
61040         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
61041
61042         * lib/addext.c: Include <string.h> unconditionally.
61043         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
61044         Don't declare getenv or malloc.
61045
61046         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
61047         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
61048         (NULL): Remove.
61049         (find_stack_direction, alloca): Use prototypes.
61050
61051         * lib/atexit.c (atexit): Define using a prototype.
61052
61053         * lib/basename.c, dirname.c, stripslash.c:
61054         Include <string.h> unconditionally.
61055
61056         * lib/bcopy.c: Include <stddef.h>.
61057         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
61058
61059         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
61060
61061         * lib/error.h (error, error_at_line, error_print_progname)
61062         [! (defined (__STDC__) && __STDC__)]: Remove decls.
61063         * lib/error.c: Include error.h first, to check interface.
61064         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
61065         (VA_START): Remove; all uses changeed to va_start.
61066         (exit, strerror): Remove decls.
61067         (error_print_progname): Prototype uncondionally.
61068         Don't include <errno.h>; no longer needed.
61069         (private_strerror): Remove.
61070         (error_tail): Always define.
61071         (error, error_at_line): Assume C89 or better; always use prototypes.
61072         * lib/fatal.c: Include "fatal.h" first, to test interface.
61073         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
61074         (VA_START): Remove; all uses changed to va_start.
61075         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
61076         this case.
61077         (exit): Remove decl.
61078         (fatal): Prototype unconditionally.  Assume va_start works.
61079         Abort at end, to pacify gcc.
61080
61081         * lib/euidaccess.c (main): Define with a prototype.
61082
61083         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
61084
61085         * lib/exitfail.c: Include <stdlib.h> unconditionally.
61086
61087         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
61088         prototypes.
61089         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
61090         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
61091         (getenv): Remove decl.
61092         (fnmatch): Define using a prototype.
61093         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
61094         (FCT): Define using a prototype.
61095
61096         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
61097
61098         * lib/gethostname.c: Include <stddef.h>.
61099         (gethostname): Define with prototype.  Length is size_t, not int.
61100
61101 2003-09-08  Paul Eggert  <eggert@twinsun.com>
61102
61103         Assume C89 or better; remove K&R cruft.
61104         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
61105         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
61106         string.h, getenv, malloc.
61107         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
61108         headers.
61109         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
61110         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
61111         do not check for strerror.
61112         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
61113         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
61114         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
61115         do not check for doprnt or vprintf.
61116         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
61117         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
61118
61119 2003-09-08  Paul Eggert  <eggert@twinsun.com>
61120
61121         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
61122         getversion.c should have been removed then, but was accidentally
61123         preserved.
61124
61125         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
61126         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
61127
61128 2003-09-08  Karl Berry  <karl@gnu.org>
61129
61130         * config/config.sub, config.guess, srclistvars.sh: update from savannah
61131                 config, forget about prep.
61132
61133         * config/depcomp, missing: update from automake.
61134
61135 2003-09-07  Paul Eggert  <eggert@twinsun.com>
61136
61137         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
61138         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
61139
61140 2003-09-07  Paul Eggert  <eggert@twinsun.com>
61141
61142         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
61143         copy_tm_result.  Bug reported by Simon Josefsson in
61144         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
61145
61146 2003-09-06  Paul Eggert  <eggert@twinsun.com>
61147
61148         * m4/time_r.m4: New file.
61149         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
61150         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
61151         is. Check for timegm declaration.
61152         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
61153         Do not check for gmtime_r.
61154         Replace mktime if __mktime_internal does not exist and if mktime
61155         hasn't been replaced already.
61156
61157 2003-09-06  Paul Eggert  <eggert@twinsun.com>
61158
61159         * lib/time_r.c, lib/time_r.h: New files.
61160
61161         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
61162         __localtime_r.
61163         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
61164         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
61165
61166         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
61167         __gmtime_r.
61168         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
61169         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
61170         Include <time_r.h>.
61171
61172         * lib/timegm.c: Switch to glibc implementation, with the following
61173         changes:
61174         [defined HAVE_CONFIG_H]: Include <config.h>.
61175         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
61176         (__mktime_internal) [!defined _LIBC]: New decl.
61177         (__gmtime_r) [!defined _LIBC]: New macro and function.
61178         (timegm): Use a prototype, since gnulib assumes C89.
61179         Do not bother declaring tmp to be const, as it's not really usefu.
61180         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
61181         (timegm): Declare only if HAVE_DECL_TIMEGM.
61182
61183 2003-09-06  Paul Eggert  <eggert@twinsun.com>
61184
61185         * MODULES.html.sh (func_all_modules): Add time_r.
61186         * modules/time_r: New file.
61187         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
61188         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
61189
61190 2003-09-03  Paul Eggert  <eggert@twinsun.com>
61191
61192         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
61193         Bug reported by Lute Kamstra in
61194         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
61195
61196         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
61197         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
61198         course with correspondingly smaller numbers for tomorrow and
61199         yesterday.  From Tadayoshi Funaba.  Originally installed into
61200         sh-utils on 1999-08-07, but the patch got lost (I guess during the
61201         coreutils merge?).
61202
61203 2003-08-31  Simon Josefsson  <jas@extundo.com>
61204
61205         * modules/timegm: New file.
61206         * MODULES.html.sh (func_all_modules): Add timegm.
61207
61208 2003-08-31  Simon Josefsson  <jas@extundo.com>
61209
61210         * m4/timegm.m4: New file.
61211
61212 2003-08-31  Simon Josefsson  <jas@extundo.com>
61213
61214         * lib/timegm.h: New file.
61215         * lib/timegm.c: New file.  Based on
61216         wget-1.8.2/src/http.c:mktime_from_utc.
61217
61218 2003-08-31  Karl Berry  <karl@gnu.org>
61219
61220         * lib/argp.h: update from libc.
61221
61222 2003-08-28  Bruno Haible  <bruno@clisp.org>
61223
61224         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
61225         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
61226         followed by '#define fnmatch fnmatch_posix' gives an error.
61227
61228 2003-08-28  Bruno Haible  <bruno@clisp.org>
61229
61230         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
61231         warning on QNX, which defines O_BINARY to 000000.
61232
61233 2003-08-27  Jim Meyering  <jim@meyering.net>
61234
61235         * m4/mkstemp.m4: Require that the system mkstemp be able to create
61236         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
61237         would fail after 32.  Reported by Danny Levinson.  Details here:
61238         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
61239
61240 2003-08-24  Bruno Haible  <bruno@clisp.org>
61241
61242         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
61243         MSVC7 <stdio.h> is included later.
61244
61245 2003-08-22  Simon Josefsson  <jas@extundo.com>
61246
61247         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
61248
61249 2003-08-20  Karl Berry  <karl@gnu.org>
61250
61251         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
61252
61253 2003-08-20  Bruno Haible  <bruno@clisp.org>
61254
61255         * modules/progname: New file.
61256         * MODULES.html.sh (func_all_modules): Add progname.
61257
61258 2003-08-20  Bruno Haible  <bruno@clisp.org>
61259
61260         * lib/progname.h: New file, from GNU gettext.
61261         * lib/progname.c: New file, from GNU gettext.
61262         * lib/progreloc.c: New file, from GNU gettext.
61263
61264 2003-08-19  Jim Meyering  <jim@meyering.net>
61265
61266         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
61267         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
61268
61269 2003-08-19  Bruno Haible  <bruno@clisp.org>
61270
61271         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
61272         more.
61273
61274 2003-08-19  Bruno Haible  <bruno@clisp.org>
61275
61276         * lib/xstrdup.c: Assume <string.h> exists.
61277
61278 2003-08-18  Paul Eggert  <eggert@twinsun.com>
61279
61280         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
61281         in makefile rules.
61282
61283 2003-08-18  Jim Meyering  <jim@meyering.net>
61284
61285         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
61286         * m4/lib-ld.m4: Likewise.
61287
61288 2003-08-18  Jim Meyering  <jim@meyering.net>
61289
61290         * lib/setenv.h: Indent nested cpp directive.
61291         * lib/vasnprintf.c: Remove trailing blanks.
61292
61293 2003-08-17  Simon Josefsson  <jas@extundo.com>
61294
61295         * modules/xstrndup: New file.
61296         * MODULES.html.sh (func_all_modules): Add xstrndup.
61297
61298 2003-08-17  Simon Josefsson  <jas@extundo.com>
61299
61300         * modules/argp: Fix autoconf macro name. Add more dependencies.
61301
61302 2003-08-17  Simon Josefsson  <jas@extundo.com>
61303
61304         * m4/xstrndup.m4: New file.
61305
61306 2003-08-17  Simon Josefsson  <jas@extundo.com>
61307
61308         * m4/argp.m4: New file.
61309
61310 2003-08-17  Simon Josefsson  <jas@extundo.com>
61311             Bruno Haible  <bruno@clisp.org>
61312
61313         * lib/xstrndup.h: New file.
61314         * lib/xstrndup.c: New file.
61315
61316 2003-08-17  Bruno Haible  <bruno@clisp.org>
61317
61318         * modules/strndup (Files, Include): Add lib/strndup.h.
61319
61320 2003-08-17  Bruno Haible  <bruno@clisp.org>
61321
61322         * modules/euidaccess (Files): Add lib/euidaccess.h.
61323
61324 2003-08-17  Bruno Haible  <bruno@clisp.org>
61325
61326         * lib/strndup.h: New file.
61327
61328 2003-08-17  Bruno Haible  <bruno@clisp.org>
61329
61330         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
61331         like AC_GNU_SOURCE.
61332         * modules/extensions (configure.ac): Comment out the invocation of
61333         gl_USE_SYSTEM_EXTENSIONS.
61334
61335 2003-08-16  Paul Eggert  <eggert@twinsun.com>
61336
61337         Merges from coreutils, etc.
61338         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
61339         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
61340         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
61341         fixing a typo.
61342         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
61343         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
61344
61345 2003-08-16  Paul Eggert  <eggert@twinsun.com>
61346
61347         Document merge from coreutils.
61348         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
61349         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
61350         * modules/utime: Add m4/utimes-null.m4.
61351
61352 2003-08-16  Paul Eggert  <eggert@twinsun.com>
61353
61354         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
61355         space, undoing this 2003-08-12 change:
61356         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
61357
61358 2003-08-16  Paul Eggert  <eggert@twinsun.com>
61359
61360         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
61361         strtoul.c from libc, undoing this 2003-08-12 change:
61362         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
61363
61364 2003-08-16  Jim Meyering  <jim@meyering.net>
61365
61366         Merges from coreutils.
61367         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
61368         prefix.  Adjust cache variables similarly.  Create 500 rather than
61369         just 300 files, to exercise bug on Darwin6.5, too.
61370         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
61371         $missing_dir.
61372         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
61373         AM_SYS_POSIX_TERMIOS.
61374         Reported by mkc@mathdogs.com.
61375         Also change use of $am_cv_sys_posix_termios
61376         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
61377         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
61378         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
61379         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
61380         in /proc/mounts until it finds one with matching device number.  This
61381         is unnecessary when the FILE argument *is* a mount point.  No stat call
61382         is necessary in that case.  So, disable the statvfs-testing code on
61383         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
61384         as RedHat bug# 84846.
61385         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
61386         to 1MB, so as not to render systems with no stack size limit (e.g.,
61387         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
61388         Include <unistd.h>.  On some systems,
61389         it is required for the definition of _SC_PAGESIZE.
61390
61391 2003-08-16  Jim Meyering  <jim@meyering.net>
61392
61393         Merge from coreutils.
61394         * lib/xstrtoimax.c: #else #if -> #elif.
61395         * lib/xstrtoumax.c: Likewise.
61396
61397 2003-08-16  Jim Meyering  <jim@meyering.net>
61398
61399         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
61400         * m4/utimes.m4: Removed.
61401         * m4/utimes-null.m4: Renamed from utimes.m4.
61402
61403         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
61404         to 1MB, so as not to render systems with no stack size limit (e.g.,
61405         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
61406         Include <unistd.h>.  On some systems,
61407         it is required for the definition of _SC_PAGESIZE.
61408
61409 2003-08-16  Jim Meyering  <jim@meyering.net>
61410         and Paul Eggert  <eggert@cs.ucla.edu>
61411
61412         Merges from coreutils, etc.
61413
61414         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
61415         using the latest version from cvs.  This avoids problems with #line
61416         directives using a vendor (Sun) compiler.
61417         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
61418         Don't set GETGROUPS_LIB here; now it's
61419         done via getgroups.m4's wrapper function.
61420         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
61421         rather than just in sh-util/configure.in, so that the
61422         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
61423         same.
61424         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
61425         AC_FUNC_GETLOADAVG where to find getloadavg.c.
61426         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
61427         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
61428         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
61429         Remove code that is now done by the newly-required macros.
61430         Append $(EXEEXT) to DF_PROG.
61431         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
61432         Do not invoke or require the following here,
61433         since prereq.m4 or some gnulib .m4 now does this for us:
61434         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
61435         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
61436         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
61437         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
61438         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
61439         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
61440         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
61441         AC_FUNC_OBSTACK.
61442         Do not replace the following functions, as this is now the job
61443         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
61444         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
61445         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
61446         atexit getpass, strdup, getpagesize.
61447         Replace 'raise'.
61448         Do not check for the following functions, as this is now the job
61449         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
61450         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
61451         setregid.
61452         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
61453         Check for sys/sysctl.h.
61454         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
61455         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
61456         of checking for ssize_t ourselves.
61457
61458         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
61459         Require every macro that gnulib/modules/* suggests for us.
61460         (jm_PREREQ_ADDEXT): New macro.
61461         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
61462         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
61463
61464         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
61465         (gl_PHYSMEM): Use it.
61466         Also check for `table' function.
61467         Check for new headers and functions.
61468         Add check for sys/sysmp.h.
61469         With suggestions from Kaveh Ghazi.
61470         Ignore headers that are present but cannot be compiled.  This
61471         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
61472         C 5.4.
61473
61474 2003-08-15  Paul Eggert  <eggert@twinsun.com>
61475
61476         Document merge from coreutils.
61477         * modules/userspec: Depend on posixver.
61478         * modules/strftime: Depend on tzset.
61479
61480 2003-08-15  Paul Eggert  <eggert@twinsun.com>
61481
61482         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
61483         rather than tab, after '#' in shell-script copyright notices.
61484         Suggested by Bruno Haible.
61485
61486 2003-08-15  Paul Eggert  <eggert@twinsun.com>
61487
61488         * config/srclist-update: Use three spaces, rather than tab, after '#'
61489         in shell-script copyright notices.  Suggested by Bruno Haible.
61490         Remove unnecessary parenthesization in regular expression.
61491
61492 2003-08-15  Jim Meyering  <jim@meyering.net>
61493
61494         Merge from coreutils.
61495         * lib/xgethostname.c: Include <stdlib.h>.
61496         (xghostname): Don't exit for anything other than memory-related
61497         failure; just return NULL.
61498         * lib/userspec.c: Include "posixver.h".
61499         (parse_user_spec): Accept `.' as a separator only
61500         in pre-POSIX-200112 mode.
61501         * lib/strtoimax.c: Use #elif rather than #else #if.
61502         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
61503         Remove function, now that we can rely on a working tzset function.
61504         [!_LIBC]: Ensure that the required autoconf test has been run.
61505         [!defined _NL_CURRENT && HAVE_STRFTIME]:
61506         Use underlying_strftime for %r.
61507         * lib/sha.c: Merge in some clean-up and optimization changes from
61508         glibc.
61509         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
61510         Ensure that it is a multiple of 64.
61511         Rearrange loop exit tests so as to avoid performing an
61512         additional fread after encountering an error or EOF.
61513         * lib/realloc.c: Update copyright date.
61514
61515 2003-08-15  Jim Meyering  <jim@meyering.net>
61516         and Paul Eggert  <eggert@twinsun.com>
61517
61518         Merge from coreutils.
61519         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
61520         member but strut utmpx does not.  Needed for AIX 4.3.3.
61521         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
61522
61523 2003-08-15  Jim Meyering  <jim@meyering.net>
61524         and Paul Eggert  <eggert@cs.ucla.edu>
61525
61526         Merges from coreutils, etc.
61527         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
61528         Require gl_FUNC_TZSET_CLOBBER.
61529         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
61530         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
61531         members.
61532
61533 2003-08-14  Paul Eggert  <eggert@twinsun.com>
61534
61535         Help the merge from coreutils.
61536         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
61537         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
61538         * m4/tzset.m4: Use it too.
61539
61540 2003-08-14  Paul Eggert  <eggert@twinsun.com>
61541
61542         * modules/tzset: New file.
61543
61544 2003-08-14  Jim Meyering  <jim@meyering.net>
61545
61546         Merges from coreutils.
61547         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
61548         variable names, rather than @FNMATCH_H@.
61549         * modules/alloca: Likewise for $(ALLOCA_H).
61550
61551         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
61552         the three copies of the literal target, `fnmatch.h'.
61553         * modules/alloca (alloca.h): Likewise.
61554
61555 2003-08-14  Jim Meyering  <jim@meyering.net>
61556
61557         Merge from coreutils.
61558         * m4/tzset.m4: New file.
61559         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
61560         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
61561         otherwise, AIX 5.1 systems would end up using the latter.
61562         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
61563         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
61564         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
61565         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
61566
61567 2003-08-14  Jim Meyering  <jim@meyering.net>
61568
61569         Merge from coreutils.
61570         * lib/obstack.h: Whitespace changes.
61571         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
61572         and xcalloc return values.
61573         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
61574         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
61575         hang on OSF/1 5.1 for DIR on both local and remote file systems.
61576         Reported by (and fix confirmed by) Nelson H. F. Beebe.
61577         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
61578         error from mntctl.
61579         Use mntctl's return value to drive the entry-processing loop, since
61580         we can't rely on the value of the vmt_length member in the last
61581         entry.  On some systems doing so could result in exhausting
61582         virtual memory.  Based in part on a patch from Mike Jetzer.
61583
61584 2003-08-14  Jim Meyering  <jim@meyering.net>
61585         and Paul Eggert  <eggert@twinsun.com>
61586
61587         Merges from coreutils, plus other fixes.
61588         * lib/physmem.c: Merge in portability changes from gcc/libiberty
61589         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
61590         for credits and details.  Thanks to Kaveh Ghazi for helping
61591         to keep these files in sync.
61592         (ARRAY_SIZE): Define it.
61593         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
61594         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
61595         (memcasecmp): Don't assume size_t fits in unsigned int.
61596         Remove casts and duplicate code.
61597         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
61598         (memcpy): Remove definition.
61599         Merge in some clean-up and optimization changes from glibc.
61600         [BLOCKSIZE]: Move definition to top of file.
61601         Ensure that it is a multiple of 64.
61602         Rearrange loop exit tests so as to avoid performing an
61603         additional fread after encountering an error or EOF.
61604         * lib/md5.h (md5_uintptr): Define.
61605         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
61606         return to the initial working directory.  Preserve errno
61607         for caller.
61608         * lib/idcache.c: Include "xalloc.h".
61609         (xmalloc, xrealloc): Remove decls.
61610         (getuser): Remove casts no longer required in C89.
61611         * lib/human.c: Include stdio.h, for sprintf.
61612         * lib/group-member.c: Include "xalloc.h".
61613         (xmalloc, xrealloc): Remove decls.
61614         (get_group_info): Remove casts no longer required in C89.
61615         * lib/getusershell.c (readname): Remove casts no longer required in
61616         C89.
61617         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
61618         * lib/getline.c: Whitespace fix, from coreutils.
61619
61620 2003-08-13  Paul Eggert  <eggert@twinsun.com>
61621
61622         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
61623         Check for isascii.
61624
61625         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
61626         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
61627         Undo previous (whitespace-only) change.
61628
61629 2003-08-13  Paul Eggert  <eggert@twinsun.com>
61630
61631         * lib/exclude.c: Include <ctype.h>
61632         (IN_CTYPE_DOMAIN): New macro.
61633         (is_space): New fn.
61634         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
61635         and empty lines.
61636
61637         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
61638         Undo previous (whitespace-only) change.
61639
61640 2003-08-13  Paul Eggert  <eggert@twinsun.com>
61641
61642         * config/srclist-update: Change update back to the old behavior,
61643         leaving whitespace alone.  Use one 'sed' command rather than a
61644         pipeline.
61645         (fixlicense): Now a variable, not a function.
61646         (remove_trailing_blanks): Remove.
61647         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
61648         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
61649         Undo previous (whitespace-only) change.
61650
61651 2003-08-12  Paul Eggert  <eggert@twinsun.com>
61652
61653         Merge from coreutils.
61654         * modules/euidaccess: Add lib_SOURCES, include for new
61655         file euidaccess.h
61656
61657 2003-08-12  Paul Eggert  <eggert@twinsun.com>
61658
61659         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
61660         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
61661         Normalize leading white space and remove trailing white space.
61662
61663         Merge from coreutils
61664         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
61665
61666         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
61667         0.12.1.  These files are now being upgraded automatically by
61668         ../config/srclist-update.
61669
61670 2003-08-12  Paul Eggert  <eggert@twinsun.com>
61671
61672         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
61673         Normalize leading white space and remove trailing white space.
61674         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
61675         notice, as per ../config/srclist-update.
61676
61677         Merge from coreutils.
61678         * lib/euidaccess.h: New file.
61679         * lib/euidaccess.c: Include it.
61680         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
61681         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
61682         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
61683
61684 2003-08-12  Paul Eggert  <eggert@twinsun.com>
61685
61686         * config/srclist-update: Add copyright notice.
61687         (remove_id_lines, remove_trailing_blanks): New constants.
61688         (fixfile): Use them to normalize spacing a bit in copied files.
61689         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
61690         Normalize leading white space and remove trailing white space.
61691
61692         * config/texinfo.tex: Sync with texinfo.
61693
61694         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
61695         strtoul.c from libc, to merge coreutils whitespace changes.
61696
61697         * config/srclist.txt: Get the following m4 files from gettext:
61698         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
61699         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
61700         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
61701         wint_t.m4.
61702
61703 2003-08-12  Karl Berry  <karl@gnu.org>
61704
61705         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
61706         been made.
61707
61708 2003-08-11  Paul Eggert  <eggert@twinsun.com>
61709
61710         * modules/gnu-source, m4/gnu-source.m4:
61711         Remove; we're assuming Autoconf 2.54 or later now.
61712         Suggested by Bruno Haible.
61713         * MODULES.html.sh (func_all_modules): Remove gnu-source.
61714
61715 2003-08-11  Bruno Haible  <bruno@clisp.org>
61716
61717         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
61718
61719 2003-08-11  Bruno Haible  <bruno@clisp.org>
61720
61721         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
61722         (vasnprintf): Use it instead of wcslen.
61723
61724 2003-08-11  Bruno Haible  <bruno@clisp.org>
61725
61726         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
61727         value to ensure that _Bool promotes to int. Use #define for _Bool when
61728         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
61729
61730 2003-08-10  Karl Berry  <karl@gnu.org>
61731
61732         * lib/regex.h: update from libc (whitespace fix).
61733
61734 2003-08-09  Paul Eggert  <eggert@twinsun.com>
61735
61736         Merge some files from coreutils.  These changes were
61737         originally made by Jim Meyering.
61738         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
61739         many older Unixes require this.
61740         * lib/alloca.c (alloca): Remove cast to argument of free;
61741         no longer needed in C89.
61742         * lib/alloca_.h, regex.h: Fix white space to match
61743         what GNU indent does.
61744
61745 2003-08-09  Paul Eggert  <eggert@twinsun.com>
61746
61747         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
61748         apparently Emacs's Unicode mode got confused before my 2003-08-05
61749         checkin.
61750
61751 2003-08-08  Paul Eggert  <eggert@twinsun.com>
61752
61753         * m4/extensions.m4: New file.
61754         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
61755         Require gl_USE_SYSTEM_EXTENSIONS.
61756         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
61757         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
61758
61759 2003-08-08  Paul Eggert  <eggert@twinsun.com>
61760
61761         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
61762         * modules/extensions, modules/gnu-source: New files.
61763         * modules/timespec, modules/unlocked-io: Depend on extensions.
61764
61765 2003-08-07  Paul Eggert  <eggert@twinsun.com>
61766
61767         * modules/restrict: New file.
61768         * MODULES.html.sh (func_all_modules): Add restrict.
61769         * modules/regex: Depend on restrict.
61770
61771 2003-08-07  Paul Eggert  <eggert@twinsun.com>
61772
61773         * m4/restrict.m4: New file.
61774         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
61775
61776 2003-08-07  Bruno Haible  <bruno@clisp.org>
61777
61778         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
61779         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
61780
61781 2003-08-07  Bruno Haible  <bruno@clisp.org>
61782
61783         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
61784         makes the module 'getndelim2' compatible with the module 'getline'.
61785
61786 2003-08-05  Paul Eggert  <eggert@twinsun.com>
61787
61788         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
61789         byte with "\201" to avoid glitches when editing that source file
61790         with multi-gnome-terminal.
61791
61792 2003-08-05  Paul Eggert  <eggert@twinsun.com>
61793
61794         * lib/bumpalloc.h: Remove.
61795
61796 2003-08-05  Paul Eggert  <eggert@twinsun.com>
61797
61798         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
61799         * modules/bumpalloc: Remove.
61800
61801 2003-08-04  Paul Eggert  <eggert@twinsun.com>
61802
61803         * lib/getloadavg.c: Change copyright notice and spacing to conform to
61804         GNU coding style.
61805
61806         Merge from coreutils.
61807         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
61808         1. From glibc.
61809         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
61810         from Karl Berry, implemented by Jim Meyering.
61811         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
61812         from Dmitry V. Levin.
61813         Remove anachronistic cast of xrealloc.
61814         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
61815         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
61816         type. Otherwise, it wouldn't compile with at least /bin/cc on
61817         ymp-cray-unicos9.0.2.X.
61818         Combine two mostly-identical uses of alloca into one.
61819         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
61820
61821 2003-08-04  Dave Love  <d.love@dl.ac.uk>
61822
61823         [From Emacs.]
61824
61825         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
61826         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
61827         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
61828         obsolete NLIST_NAME_UNION.
61829         [__GNU__]: Undef BSD and FSCALE.
61830         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
61831
61832 2003-08-03  Paul Eggert  <eggert@twinsun.com>
61833
61834         * lib/stdbool_.h (_Bool): Make it signed char, instead of
61835         an enum type, so that it's guaranteed to promote to int.  See:
61836         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
61837
61838 2003-08-03  Karl Berry  <karl@gnu.org>
61839
61840         * config/depcomp: update from automake.
61841
61842 2003-07-31  Paul Eggert  <eggert@twinsun.com>
61843
61844         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
61845         (strerror): Don't assume that a printable int fits in 14 bytes.
61846
61847 2003-07-31  Bruno Haible  <bruno@clisp.org>
61848
61849         * modules/getpass-gnu: New file.
61850         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
61851
61852 2003-07-31  Bruno Haible  <bruno@clisp.org>
61853
61854         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
61855
61856 2003-07-24  Karl Berry  <karl@gnu.org>
61857
61858         * config/missing: update from automake.
61859
61860 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
61861             Bruno Haible  <bruno@clisp.org>
61862
61863         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
61864         * lib/getline.c (getline, getdelim): Likewise.
61865         Remove _GNU_SOURCE define; now it's defined in config.h through
61866         m4/getline.m4.
61867
61868 2003-07-23  Karl Berry  <karl@gnu.org>
61869
61870         * config/config.sub: update from prep.
61871
61872 2003-07-22  Paul Eggert  <eggert@twinsun.com>
61873
61874         * modules/xalloc (Depends-on): Add exitfail.
61875         * modules/xmemcoll: Likewise.
61876
61877 2003-07-22  Paul Eggert  <eggert@twinsun.com>
61878
61879         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
61880         over-parenthesization in macros.
61881
61882         Sync with coreutils.
61883
61884         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
61885         required by C99.
61886
61887         Use `exit_failure' for xalloc and xmemcoll instead of their own
61888         private exit-failure variables.
61889         * lib/xalloc.h (xalloc_exit_failure): Remove.
61890         * lib/xmalloc.c: Likewise.  Include exitfail.h.
61891         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
61892         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
61893         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
61894         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
61895
61896 2003-07-20  Jim Meyering  <jim@meyering.net>
61897
61898         * modules/closeout (Depends-on): Add exitfail.
61899         Suggestion from Bruno Haible.
61900
61901 2003-07-19  Karl Berry  <karl@gnu.org>
61902
61903         * config/config.sub: update from prep.
61904
61905 2003-07-18  Paul Eggert  <eggert@twinsun.com>
61906
61907         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
61908         Remove.
61909         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
61910         to test that it can stand by itself.  Include "exitfail.h".
61911         Clients should set exit_failure instead.
61912         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
61913
61914 2003-07-18  Bruno Haible  <bruno@clisp.org>
61915
61916         * modules/getndelim2: New file.
61917         * modules/getline: Share files with module getndelim2.
61918         * modules/getnline: Depend on getndelim2 instead of sharing files with
61919         it. Add getnline.c to lib_SOURCES.
61920         * MODULES.html.sh (func_all_modules): Add getndelim2.
61921
61922 2003-07-18  Bruno Haible  <bruno@clisp.org>
61923
61924         * m4/getndelim2.m4: New file.
61925         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
61926         invoke gl_PREREQ_GETNDELIM2.
61927         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
61928         gl_PREREQ_GETNDELIM2.
61929         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
61930         gl_GETNDELIM2.
61931
61932 2003-07-18  Bruno Haible  <bruno@clisp.org>
61933
61934         * lib/getndelim2.h: New file.
61935         * lib/getndelim2.c: Make into a module of its own. Include config.h,
61936         getndelim2.h.
61937         (getndelim2): Make non-static. Change return type to ssize_t.
61938         * lib/getline.h: Change argument names.
61939         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
61940         * lib/getnline.c: Include getndelim2.h.
61941
61942 2003-07-18  Andreas Schwab  <schwab@suse.de>
61943
61944         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
61945
61946 2003-07-17  Karl Berry  <karl@gnu.org>
61947
61948         * config/config.sub: update from prep.
61949
61950 2003-07-17  Bruno Haible  <bruno@clisp.org>
61951
61952         * modules/getnline: New file.
61953         * modules/getline: Add lib/getndelim2.c to source file list.
61954         * MODULES.html.sh (func_all_modules): Add getnline.
61955
61956 2003-07-17  Bruno Haible  <bruno@clisp.org>
61957
61958         * m4/getnline.m4: New file.
61959
61960 2003-07-17  Bruno Haible  <bruno@clisp.org>
61961
61962         * m4/Makefile.am.in: Remove file.
61963         * m4/Makefile.am: Remove file.
61964         * m4/Makefile.in: Remove file.
61965
61966 2003-07-17  Bruno Haible  <bruno@clisp.org>
61967
61968         * lib/getnline.h: New file.
61969         * lib/getnline.c: New file.
61970         * lib/getndelim2.c: New file, extracted from getline.c.
61971         (getndelim2): Renamed from getdelim2, with added nmax argument.
61972         * lib/getline.c: Include getndelim2.c.
61973         (getdelim2): Moved out to getndelim2.c.
61974         (getline, getdelim): Update.
61975
61976 2003-07-17  Bruno Haible  <bruno@clisp.org>
61977
61978         * lib/Makefile.am: Remove file.
61979         * lib/Makefile.in: Remove file.
61980
61981 2003-07-17  Bruno Haible  <bruno@clisp.org>
61982
61983         * configure.in: Remove file.
61984         * Makefile.in: Remove file.
61985
61986 2003-07-17  Bruno Haible  <bruno@clisp.org>
61987
61988         * MODULES.html.sh: Put the </BODY> right before </HTML>.
61989
61990 2003-07-16  Karl Berry  <karl@gnu.org>
61991
61992         * config/srclist-update: was running fixlicense twice, which caused
61993                 texinfo.tex to be nullified for some reason.  Simplify,
61994                 $gplsrc is no longer needed as far as I can see?
61995
61996 2003-07-16  Jim Meyering  <jim@meyering.net>
61997
61998         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
61999
62000 2003-07-15  Paul Eggert  <eggert@twinsun.com>
62001
62002         * config/srclist.txt: Get the following files from gettext-runtime/intl
62003         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
62004         ref-del.sin.  From Bruno Haible.
62005         * config/srclist-update (fixfile): Change grep pattern again, since the
62006         previous fix didn't work (there was another trailing $).  Use
62007         '[$]' to escape the $s.
62008
62009 2003-07-15  Karl Berry  <karl@gnu.org>
62010
62011         * lib/vasnprintf.c: update from gettext.
62012
62013 2003-07-15  Karl Berry  <karl@gnu.org>
62014
62015         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
62016         gets expanded when surrounded by '$'.
62017
62018 2003-07-15  Jim Meyering  <jim@meyering.net>
62019
62020         * modules/save-cwd: Don't depend on error.  From Derek Price.
62021
62022 2003-07-15  Jim Meyering  <jim@meyering.net>
62023
62024         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
62025
62026 2003-07-14  Simon Josefsson  <jas@extundo.com>
62027
62028         * modules/mempcpy: New file.
62029         * MODULES.html.sh (func_all_modules): Add mempcpy.
62030
62031 2003-07-14  Simon Josefsson  <jas@extundo.com>
62032
62033         * m4/mempcpy.m4: New file.
62034
62035 2003-07-14  Simon Josefsson  <jas@extundo.com>
62036
62037         * lib/mempcpy.h: New file.
62038         * lib/mempcpy.c: New file.
62039
62040 2003-07-14  Paul Eggert  <eggert@twinsun.com>
62041
62042         * modules/getdate, modules/posixtm: Depend on mktime.
62043
62044 2003-07-14  Paul Eggert  <eggert@twinsun.com>
62045
62046         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
62047         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
62048         unicodeio.c, unicodeio.h, unlocked-io.h:
62049         Switch from LGPL to GPL.
62050
62051 2003-07-14  Paul Eggert  <eggert@twinsun.com>
62052
62053         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
62054         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
62055         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
62056         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
62057         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
62058         updated automatically by ../config/srclist-update.  This changes
62059         their license from LPGL to GPL.
62060
62061 2003-07-14  Paul Eggert  <eggert@twinsun.com>
62062
62063         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
62064         assumed to refer to the root of the most recent stable gettext version.
62065         * config/srclistvars.sh: Add defaults for eggert.
62066         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
62067         Match "This program" as well as "The program".  This is needed
62068         for gettext.
62069
62070 2003-07-14  Jim Meyering  <jim@meyering.net>
62071
62072         Don't emit diagnostics.  Let callers do that.
62073         * lib/save-cwd.c: Don't include "error.h".
62074         (save_cwd): Don't call error.  Ensure that errno is valid
62075         when returning nonzero.
62076
62077         * lib/save-cwd.h (restore_cwd): Update prototype.
62078         * lib/save-cwd.c (restore_cwd): Remove two parameters.
62079         Simplify.  Don't call error upon failure.  Let callers do that.
62080         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
62081         when auditing is enabled.  But don't bother updating the #if.
62082
62083 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
62084
62085         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
62086         it breaks C++ compilation.
62087         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
62088
62089 2003-07-10  Simon Josefsson  <jas@extundo.com>
62090
62091         * modules/strchrnul (Makefile.am): Add strchrnul.h.
62092
62093 2003-07-10  Jim Meyering  <jim@meyering.net>
62094
62095         * m4/clock_time.m4: Remove trailing blank.
62096         * m4/intmax_t.m4: Likewise.
62097
62098 2003-07-10  Jim Meyering  <jim@meyering.net>
62099
62100         * lib/vasnprintf.c: Remove trailing blanks.
62101         Make cpp indentation consistent.
62102
62103 2003-07-09  Paul Eggert  <eggert@twinsun.com>
62104
62105         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
62106         posixver.c, strftime.c, strnlen.c, strverscmp.c:
62107         Switch from LGPL to GPL.
62108
62109 2003-07-09  Paul Eggert  <eggert@twinsun.com>
62110
62111         * config/srclist.txt: Sort sublists.  Add
62112         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
62113         that differ from gnulib for one reason or another; we'd like this list
62114         to be smaller but for now let's document what we have.
62115
62116 2003-07-08  Paul Eggert  <eggert@twinsun.com>
62117
62118         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
62119         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
62120         and sweeter "eval x=$x".
62121         * config/srclist.txt: Get lib/argp* from glibc.
62122
62123 2003-07-07  Paul Eggert  <eggert@twinsun.com>
62124
62125         * lib/mktime.c: Fix some boundary cases and remove need for floating
62126         point.
62127
62128         Issue a compile-time diagnostic if time_t is floating point, or if
62129         two's complement arithmetic is not in effect, or if arithmetic
62130         right shift does not propagate the sign.  These assumptions were
62131         all in the original code but they weren't checked.
62132
62133         (TIME_T_MIDPOINT, verify): New macros.
62134         (__isleap): Remove; it has integer overflow problems.
62135         (leapyear): New function, without those problems.
62136         (ydhms_tm_diff): Remove; splitting into two parts.
62137         (ydhms_diff): New function, containing the arithmetic part of
62138         the old ydhms_tm_diff function.  Issue a compile-time
62139         diagnostic if we are not using C99 integer division.
62140         Avoid casts when possible.
62141         (guess_time_tm): New function, containing the checking part of
62142         the old ydhms_tm_diff function.  Return the new value, rather than
62143         the difference between it and the old.  Accept a new argument T
62144         so that *T specifies the old value.  Check for overflow in the result.
62145
62146         (__mktime_internal): Use a time_t offset, not a long int offset.
62147         This undoes the 2003-06-04 change, which is no longer needed now
62148         that we have better overflow checking.
62149         (localtime_offset): Likewise.
62150
62151         (__mktime_internal): Avoid harmful overflow on hosts where time_t
62152         and long are 64-bit but int is only 32-bit.
62153         (ydhms_diff): Use long int to store year1 and yday1.
62154         Issue a compile-time diagnostic if long int is not wide enough.
62155
62156         (__mktime_internal): Use long int to store adjusted year and yday.
62157         Use plain C rather than preprocessor commands, if that doesn't
62158         affect efficiency.
62159         Check for overflow (and try to repair) after each probe
62160         rather than checking only at the very end.  This avoids some bugs
62161         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
62162         does not equal GMT offset at maximum time).
62163         Use integer to check for overflow rather than floating point; this
62164         is more portable to non-IEEE hosts, and is a tad faster.
62165         When we detect that we are oscillating between two values,
62166         don't check whether tm_isdst has the requested value, since
62167         we already know the answer.  When tm_isdst has the wrong value,
62168         use a different heuristic to find the right one, based on the
62169         extreme values actually observed in practice in tz2003a,
62170         rather than the (overly optimistic) "previous 3 calendar quarters".
62171
62172         (not_equal_tm, print_tm, check_result): Use "const T" rather than
62173         "T const" to accommodate glibc style.
62174         (check_result): Use less-confusing report format.  "long" -> "long int.
62175         (main): Likewise.
62176         Don't loop if the iteration overflows time_t.
62177         Allow a negative step in the iteration.
62178
62179 2003-07-06  Karl Berry  <karl@gnu.org>
62180
62181         * config/depcomp: update from automake.
62182         * config/config.sub: update from prep.
62183
62184 2003-07-03  Karl Berry  <karl@gnu.org>
62185
62186         * config/config.guess: update from prep.
62187
62188 2003-07-01  Paul Eggert  <eggert@twinsun.com>
62189
62190         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
62191         xreadlink.c now includes it unconditionally.
62192
62193 2003-07-01  Paul Eggert  <eggert@twinsun.com>
62194
62195         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
62196         having it depend on HAVE_SYS_TYPES_H.
62197
62198 2003-07-01  Bruno Haible  <bruno@clisp.org>
62199
62200         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
62201         <sys/types.h> should be sufficient.
62202         Reported by Paul Eggert.
62203
62204 2003-06-26  Karl Berry  <karl@gnu.org>
62205
62206         * config/depcomp: update from automake.
62207
62208 2003-06-26  Bruno Haible  <bruno@clisp.org>
62209
62210         * modules/human: Depend on module stdbool.
62211
62212 2003-06-25  Bruno Haible  <bruno@clisp.org>
62213
62214         * modules/readlink: New file.
62215         * modules/xreadlink: Depend on it.
62216         * MODULES.html.sh (func_all_modules): Add readlink.
62217
62218 2003-06-25  Bruno Haible  <bruno@clisp.org>
62219
62220         * m4/readlink.m4: New file.
62221
62222 2003-06-25  Bruno Haible  <bruno@clisp.org>
62223
62224         * lib/readlink.c: New file.
62225
62226 2003-06-22  Karl Berry  <karl@gnu.org>
62227
62228         * config/srclist.txt: update mkinstalldirs from automake.
62229         * config/mkinstalldirs: update.
62230
62231 2003-06-22  Bruno Haible  <bruno@clisp.org>
62232
62233         Portability to mingw32.
62234         * m4/ssize_t.m4: New file, from GNU gettext.
62235         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
62236         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
62237
62238 2003-06-22  Bruno Haible  <bruno@clisp.org>
62239
62240         * modules/safe-read: Add m4/ssize_t.m4.
62241         * modules/xreadlink: Add m4/ssize_t.m4.
62242
62243 2003-06-20  Bruno Haible  <bruno@clisp.org>
62244
62245         Assume C89, so PARAMS isn't needed.
62246         * lib/unicodeio.h (PARAMS): Remove.
62247         * lib/unicodeio.c: Don't use PARAMS.
62248
62249 2003-06-18  Karl Berry  <karl@gnu.org>
62250
62251         * config/config.{guess,sub}: update from prep.
62252
62253 2003-06-18  Jim Meyering  <jim@meyering.net>
62254
62255         Merge changes from coreutils.
62256         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
62257         Remove explicit declarations of xmalloc and realloc.
62258         Include xalloc.h.
62259         (read_utmp): Remove anachronistic cast of xmalloc.
62260
62261 2003-06-17  Paul Eggert  <eggert@twinsun.com>
62262
62263         Assume C89, so PARAMS isn't needed.
62264         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
62265         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
62266         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
62267         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
62268         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
62269         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
62270         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
62271         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
62272         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
62273         lib/xstrtod.h, lib/xstrtol.h: Likewise.
62274         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
62275         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
62276         no longer needed. Anyway, config.h should always be included before any
62277         other file.
62278
62279 2003-06-11  Simon Josefsson  <jas@extundo.com>
62280
62281         * modules/sysexits: New file.
62282         * MODULES.html.sh (func_all_modules): Add sysexits.
62283
62284 2003-06-11  Simon Josefsson  <jas@extundo.com>
62285
62286         * lib/sysexit_.h: New file.
62287
62288 2003-06-11  Derek Price  <derek@ximbiot.com>
62289
62290         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
62291         necessary.
62292
62293 2003-06-11  Bruno Haible  <bruno@clisp.org>
62294
62295         * m4/sysexits.m4: New file.
62296
62297 2003-06-10  Simon Josefsson  <jas@extundo.com>
62298
62299         * lib/argp.h: New file, from glibc.
62300         * lib/argp-ba.c: New file, from glibc.
62301         * lib/argp-eexst.c: New file, from glibc.
62302         * lib/argp-fmtstream.c: New file, from glibc.
62303         * lib/argp-fmtstream.h: New file, from glibc.
62304         * lib/argp-fs-xinl.c: New file, from glibc.
62305         * lib/argp-help.c: New file, from glibc.
62306         * lib/argp-namefrob.h: New file, from glibc.
62307         * lib/argp-parse.c: New file, from glibc.
62308         * lib/argp-pv.c: New file, from glibc.
62309         * lib/argp-pvh.c: New file, from glibc.
62310         * lib/argp-xinl.c: New file, from glibc.
62311
62312 2003-06-10  Simon Josefsson  <jas@extundo.com>
62313
62314         * modules/strchrnul: New file.
62315
62316 2003-06-10  Simon Josefsson  <jas@extundo.com>
62317
62318         * modules/argp: New file.
62319
62320 2003-06-10  Simon Josefsson  <jas@extundo.com>
62321
62322         * m4/strchrnul.m4: New file.
62323
62324 2003-06-10  Simon Josefsson  <jas@extundo.com>
62325
62326         * lib/strchrnul.h: New file.
62327         * lib/strchrnul.c: New file.
62328
62329 2003-06-10  Bruno Haible  <bruno@clisp.org>
62330
62331         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
62332
62333 2003-06-07  Karl Berry  <karl@gnu.org>
62334
62335         * config/config.{guess,sub}: update from prep.
62336
62337 2003-06-07  Jim Meyering  <jim@meyering.net>
62338
62339         * modules/strtod: Use $(...) notation, not @...@ for
62340         AC_REPLACE'd variables.
62341         * modules/localcharset: Likewise.
62342
62343 2003-06-07  Jim Meyering  <jim@meyering.net>
62344
62345         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
62346         in place of my name in the copyright comment.
62347         Remove definition and uses of __P.
62348
62349         From coreutils.
62350         * lib/stat.c: Don't declare xmalloc explicitly.
62351         Instead, include "xalloc.h".
62352         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
62353         xrealloc, and xcalloc return values.
62354         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
62355         Improve comment.
62356         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
62357
62358 2003-06-07  Bruno Haible  <bruno@clisp.org>
62359
62360         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
62361         avoid AC_CONFIG_LINKS.
62362         * modules/fnmatch (Makefile.am): Use explicit creation rule for
62363         fnmatch.h, to avoid AC_CONFIG_LINKS.
62364         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
62365
62366 2003-06-07  Bruno Haible  <bruno@clisp.org>
62367
62368         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
62369         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
62370         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
62371         directory.
62372         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
62373         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
62374         directory.
62375
62376 2003-06-06  Jim Meyering  <jim@meyering.net>
62377
62378         Merge from coreutils.
62379         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
62380         Consolidate declarations and initializations of *_base* locals.
62381
62382         Merge from coreutils.
62383         This avoids a core dump on systems without GNU putenv,
62384         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
62385         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
62386         (unsetenv): New static function, from GNU libc.
62387         (rpl_putenv): Use it.
62388
62389         * lib/modechange.c: Remove trailing blanks.
62390
62391         Merge from coreutils.
62392         * lib/fsusage.c: Remove declaration of statfs.
62393         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
62394
62395         * lib/posixtm.c: Include <stdbool.h> unconditionally.
62396
62397 2003-06-06  Jim Meyering  <jim@meyering.net>
62398
62399         * lib/stdbool_.h: Renamed from stdbool.h.in.
62400
62401 2003-06-06  Jim Meyering  <jim@meyering.net>
62402             Bruno Haible  <bruno@clisp.org>
62403
62404         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
62405         Adjust Makefile.am snippet not to redirect directly to target.
62406         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
62407
62408 2003-06-05  Paul Eggert  <eggert@twinsun.com>
62409
62410         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
62411         mismatch, look in future quarters as well as past.  This fixes a
62412         bug when processing fall-backwards gaps immediately after a long
62413         period of daylight-saving time.
62414
62415         * lib/mktime.c: Assume freestanding C89 or better.
62416         (HAVE_LIMITS_H): Remove.  Assume it's 1.
62417         (__P): Remove; not used.
62418         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
62419         (mktime, not_equal_tm, print_tm, check_result,
62420         main): Use prototypes.  Use const * where appropriate.
62421         (main): Fix typo in testing code that uncovered by above changes.
62422         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
62423
62424 2003-06-04  Paul Eggert  <eggert@twinsun.com>
62425
62426         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
62427         locale.h, localeconv.  This merges changes from coreutils.
62428
62429         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
62430         It can be removed after the next Autoconf is released.
62431         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
62432         needed.
62433
62434 2003-06-04  Paul Eggert  <eggert@twinsun.com>
62435
62436         * lib/mktime.c: Fix Debian bug 177940
62437         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
62438         (localtime_offset): Now long int, not time_t, because we want it
62439         to be guaranteed to be signed.  All uses changed.
62440         (__mktime_internal): If overflow would occur when adding offset,
62441         don't add it.
62442
62443         Merge 'human' changes from coreutils.  Rewrite to support
62444         locale-specific notations like thousands separators.
62445         * lib/human.c: Simplify authorship notice.
62446         Include human.h immediately after config.h.
62447         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
62448         <limits.h>: Do not include, since human.h does.
62449         (SIZE_MAX, UINTMAX_MAX): New macros.
62450         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
62451         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
62452         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
62453         (power_letter): Renamed from suffixes.
62454         (generate_suffix_backwards): Remove.
62455         (adjust_value): Now takes int style (because of human.h changes)
62456         and long double value (for greater precision on some platforms).
62457         (group_number): New function.
62458         (human_readable): Use it.  Use integer options, not enum.
62459         Put the options before the sizes in the arg list.
62460         Support all the new options.
62461         The old human_readable function has been removed;
62462         use inttostr.h instead.
62463         (human_readable, default_block_size, humblock):
62464         Use uintmax_t, not int, for block sizes.
62465         (human_readable_inexact, block_size_types): Remove.
62466         (block_size_opts): New constant.
62467         (human_options): Renamed from human_block_size, with new signature
62468         that allows block sizes up to UINTMAX_MAX.  All callers changed.
62469         * lib/human.h: Add copyright and authorship notice.
62470         Include <limits.h> and <stdbool.h> unconditionally.
62471         (PARAMS): Remove.  All uses removed.
62472         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
62473         (enum human_inexact_style): Remove tag; now a nameless enum.
62474         (human_floor, human_ceiling, human_round_to_even): Now have
62475         values 2, 0, 1 rather than -1, 1, 0.
62476         (human_group_digits, human_suppress_point_zero, human_autoscale,
62477         human_base_1024, human_SI, human_B): New constants.
62478         (human_readable_inexact, human_block_size): Remove.
62479         (human_readable): Size args are now uintmax_t, not int.
62480         (human_options): New decl.
62481
62482         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
62483         unnecessary now that we assume C89 or better.  This change
62484         imported from coreutils.
62485
62486         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
62487         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
62488         in the 2003-05-30 sync from glibc.
62489
62490         .h files should stand alone, but we shouldn't include <sys/types.h>
62491         if we can get away with just <stddef.h>.
62492
62493         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
62494         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
62495         rather than <sys/types.h>, as we merely need size_t.
62496         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
62497         to get size_t.
62498         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
62499         Include <stdio.h>, to get FILE.
62500         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
62501         memcasecmp.h has included <stddef.h> and all we need is size_t.
62502         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
62503         our interface, instead of including <sys/types.h>
62504
62505 2003-06-04  Paul Eggert  <eggert@twinsun.com>
62506
62507         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
62508         now, as glibc mktime is buggy on non-glibc systems.
62509
62510 2003-06-03  Karl Berry  <karl@gnu.org>
62511
62512         * config/config.sub: update from prep.
62513
62514 2003-06-02  Paul Eggert  <eggert@twinsun.com>
62515
62516         [from coreutils]
62517         Fix some minor time-related bugs with POSIX time arguments.
62518         Some valid time stamps were being rejected (notably -1, and
62519         time stamps before 1900 on 64-bit hosts).  And some invalid
62520         time stamps were being accepted, e.g. September 31.
62521
62522         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
62523         that we can return (time_t) -1 successfully.
62524         * lib/posixtm.c: Likewise.
62525         [HAVE_STDBOOL_H]: Include <stdbool.h>.
62526         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
62527         (t): Remove static var.
62528         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
62529         of static var.  All uses changed.
62530         (year): Do not reject years before 1900; they can occur with
62531         64-bit time_t.
62532         (posix_time_parse): Do not check for out-of-range components;
62533         that is now the caller's responsibility, since our checks were
62534         only approximations.
62535         (posixtime): Use mktime to check for out-of-range components,
62536         since it knows them exactly.
62537         If mktime returns (time_t) -1, check whether an error actually occurred
62538         by invoking localtime on -1.
62539         (main) [TEST_POSIXTIME]: Check for input data errors, and report
62540         posixtime failures better.
62541         Improve the test data (in comments only).
62542
62543 2003-06-02  Karl Berry  <karl@gnu.org>
62544
62545         * config/mkinstalldirs (version): new variable.
62546         (--version): new option.
62547         (usage): improve message.
62548
62549 2003-05-30  Karl Berry  <karl@gnu.org>
62550
62551         * lib/mktime.c: update from libc.
62552
62553 2003-05-30  Bruno Haible  <bruno@clisp.org>
62554
62555         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
62556         * config/config.rpath: Upgrade to gettext-0.12.1.
62557
62558 2003-05-30  Bruno Haible  <bruno@clisp.org>
62559
62560         * m4/gettext.m4: Upgrade to gettext-0.12.1.
62561         * m4/nls.m4: New file, from gettext-0.12.1.
62562         * m4/po.m4: New file, from gettext-0.12.1.
62563         * m4/progtest.m4: Upgrade to gettext-0.12.1.
62564
62565 2003-05-30  Bruno Haible  <bruno@clisp.org>
62566
62567         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
62568         * lib/localcharset.h: Likewise.
62569         * lib/localcharset.c: Likewise.
62570
62571 2003-05-29  Karl Berry  <karl@gnu.org>
62572
62573         * config/config.rpath: update from gettext.
62574
62575 2003-05-28  Paul Eggert  <eggert@twinsun.com>
62576
62577         Assume the headers required for C89 freestanding compilers.
62578         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
62579         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
62580         * m4/human.m4 (gl_HUMAN): Likewise.
62581         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
62582         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
62583         * m4/userspec.m4 (gl_USERSPEC): Likewise.
62584         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
62585         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
62586         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
62587
62588 2003-05-28  Paul Eggert  <eggert@twinsun.com>
62589
62590         Assume the headers required for C89 freestanding compilers.
62591         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
62592         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
62593         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
62594         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
62595         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
62596         define, since <limits.h> is guaranteed to do that.
62597         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
62598         * lib/exclude.c: Include <stdbool.h> unconditionally.
62599         * lib/tempname.c: Include <stddef.h> unconditionally.
62600         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
62601         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
62602         <stddef.h> does that.
62603         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
62604         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
62605         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
62606         needed.
62607         * lib/xstrtol.c: Likewise.
62608         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
62609         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
62610
62611         * lib/addext.c (addext): Use assignment rather than cast, to avoid
62612         warnings on some platforms.
62613
62614         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
62615         arbitrarily.
62616
62617 2003-05-26  Jim Meyering  <jim@meyering.net>
62618
62619         Merge in a change from coreutils:
62620         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
62621         that is guaranteed to be `no'.  Use `no_such_member' to indicate
62622         that condition, rather than `-1' which is slightly misleading.
62623         Change the name of the cache variable to have the gl_ prefix.
62624         Prompted by a patch from Richard Dawe for DJGPP.
62625
62626 2003-05-24  Karl Berry  <karl@gnu.org>
62627
62628         * config/config.guess: update from prep.
62629
62630 2003-05-22  Karl Berry  <karl@gnu.org>
62631
62632         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
62633
62634 2003-05-20  Karl Berry  <karl@gnu.org>
62635
62636         * config/config.guess: update from prep.
62637
62638 2003-05-18  Karl Berry  <karl@gnu.org>
62639
62640         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
62641         might actually be set by the user.
62642
62643         * config/depcomp, install-sh, mdate-sh: update from automake.
62644
62645 2003-05-17  Bruno Haible  <bruno@clisp.org>
62646
62647         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
62648         invalid expansion for AC_EGREP_CPP.
62649         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
62650         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
62651         Suggested by Akim Demaille <akim@epita.fr> in
62652         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
62653
62654 2003-05-12  Jim Meyering  <jim@meyering.net>
62655
62656         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
62657         the space-padded-by-default conversion specifiers, %e, %k, %l.
62658
62659 2003-05-12  Bruno Haible  <bruno@clisp.org>
62660
62661         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
62662         the string is longer than 4 KB.
62663
62664 2003-05-11  Karl Berry  <karl@gnu.org>
62665
62666         * config/config.{guess,sub}: update from prep.
62667
62668 2003-05-09  Bruno Haible  <bruno@clisp.org>
62669
62670         * modules/error: Add m4/strerror_r.m4 to file list.
62671
62672 2003-05-03  Bruno Haible  <bruno@clisp.org>
62673
62674         Upgrade to Unicode-4.0.
62675         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
62676         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
62677         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
62678         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
62679         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
62680         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
62681         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
62682         Change width of U+E0100..U+E01EF from 1 to 0.
62683
62684 2003-04-25  Jim Meyering  <jim@meyering.net>
62685
62686         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
62687         of type size_t, not int.
62688
62689 2003-04-25  Bruno Haible  <bruno@clisp.org>
62690
62691         * lib/copy-file.c: Include <stddef.h>, for size_t.
62692
62693 2003-04-21  Paul Eggert  <eggert@twinsun.com>
62694
62695         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
62696         code which expansion is under static control.  Patch imported from
62697         Akim Demaille's patch to Bison; see
62698         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
62699
62700 2003-04-14  Bruno Haible  <bruno@clisp.org>
62701
62702         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
62703
62704 2003-04-11  Jim Meyering  <jim@meyering.net>
62705
62706         Merge changes from Coreutils.
62707
62708         2003-03-22  Jim Meyering  <jim@meyering.net>
62709
62710         * lib/strftime.c (widen): Cast alloca return value to proper type.
62711
62712         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
62713
62714         From GNU libc.
62715         * lib/strftime.c (my_strftime): Handle very large width
62716         specifications for numeric values correctly.  Improve checks for
62717         overflow.
62718
62719         2003-01-19  Jim Meyering  <jim@meyering.net>
62720
62721         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
62722         definitions.
62723         (nl_get_alt_digit) [! defined my_strftime]: Define.
62724         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
62725         _nl_get_alt_digit and _nl_get_walt_digit.
62726
62727         * lib/strftime.c (my_strftime): Merge in locale-related changes from
62728         libc. These changes have no effect outside of _LIBC.
62729
62730 2003-04-10  Bruno Haible  <bruno@clisp.org>
62731
62732         * modules/findprog: New file.
62733         * MODULES.html.sh (func_all_modules): Add it.
62734
62735 2003-04-10  Bruno Haible  <bruno@clisp.org>
62736
62737         * m4/findprog.m4: New file.
62738         * m4/eaccess.m4: New file.
62739
62740 2003-04-10  Bruno Haible  <bruno@clisp.org>
62741
62742         * lib/findprog.h: New file, from GNU gettext.
62743         * lib/findprog.c: New file, from GNU gettext.
62744
62745 2003-04-05  Jim Meyering  <jim@meyering.net>
62746
62747         Merge changes from Coreutils.
62748
62749         * lib/exclude.h (PARAMS): Remove definition and uses.
62750         * lib/exclude.c: Remove uses of `PARAMS'.
62751
62752         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
62753         Add test-cases for DOS filenames. Declare program_name.
62754         (main): Set up program_name.  Patch by Rich Dawe.
62755
62756         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
62757         error from mntctl.
62758         Use mntctl's return value to drive the entry-processing loop, since
62759         we can't rely on the value of the vmt_length member in the last
62760         entry.  On some systems doing so could result in exhausting
62761         virtual memory.  Based in part on a patch from Mike Jetzer.
62762
62763 2003-04-04  Bruno Haible  <bruno@clisp.org>
62764
62765         * modules/linebreak: New file.
62766         * MODULES.html.sh (func_all_modules): Add it.
62767
62768 2003-04-04  Bruno Haible  <bruno@clisp.org>
62769
62770         * m4/linebreak.m4: New file.
62771
62772 2003-04-04  Bruno Haible  <bruno@clisp.org>
62773
62774         * lib/linebreak.h: New file, from GNU gettext.
62775         * lib/linebreak.c: New file, from GNU gettext with slight
62776         modifications.
62777         * lib/lbrkprop.h: New file, from GNU gettext.
62778
62779 2003-04-03  Bruno Haible  <bruno@clisp.org>
62780
62781         * modules/utf8-ucs4: New file.
62782         * modules/utf16-ucs4: New file.
62783         * modules/ucs4-utf8: New file.
62784         * modules/ucs4-utf16: New file.
62785         * MODULES.html.sh (func_all_modules): Add them.
62786
62787 2003-04-03  Bruno Haible  <bruno@clisp.org>
62788
62789         * m4/utf-ucs4.m4: New file.
62790         * m4/ucs4-utf.m4: New file.
62791
62792 2003-04-03  Bruno Haible  <bruno@clisp.org>
62793
62794         * lib/utf8-ucs4.h: New file, from GNU gettext.
62795         * lib/utf16-ucs4.h: New file, from GNU gettext.
62796         * lib/ucs4-utf8.h: New file, from GNU gettext.
62797         * lib/ucs4-utf16.h: New file, from GNU gettext.
62798
62799 2003-04-02  Bruno Haible  <bruno@clisp.org>
62800
62801         * modules/binary-io: New file.
62802         * MODULES.html.sh (func_all_modules): Add it.
62803
62804 2003-04-02  Bruno Haible  <bruno@clisp.org>
62805
62806         * lib/binary-io.h: New file, from GNU gettext.
62807
62808 2003-04-01  Bruno Haible  <bruno@clisp.org>
62809
62810         * modules/pathname: New file.
62811         * MODULES.html.sh (func_all_modules): Add it.
62812
62813 2003-04-01  Bruno Haible  <bruno@clisp.org>
62814
62815         * lib/pathname.h: New file, from GNU gettext.
62816         * lib/concatpath.c: New file, from GNU gettext.
62817
62818 2003-03-30  Bruno Haible  <bruno@clisp.org>
62819
62820         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
62821
62822 2003-03-30  Bruno Haible  <bruno@clisp.org>
62823
62824         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
62825         function chown() doesn't exist.
62826
62827 2003-03-28  Bruno Haible  <bruno@clisp.org>
62828
62829         * modules/copy-file: New file.
62830         * MODULES.html.sh (func_all_modules): Add it.
62831
62832 2003-03-28  Bruno Haible  <bruno@clisp.org>
62833
62834         * m4/copy-file.m4: New file.
62835
62836 2003-03-28  Bruno Haible  <bruno@clisp.org>
62837
62838         * lib/copy-file.h: New file, from GNU gettext.
62839         * lib/copy-file.c: New file, from GNU gettext.
62840
62841 2003-03-18  Jim Meyering  <jim@meyering.net>
62842
62843         * lib/quote.c (quote_n): Fix typo in comment.
62844
62845 2003-03-18  Bruno Haible  <bruno@clisp.org>
62846
62847         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
62848         checking.
62849         * m4/onceonly_2_57.m4: Likewise.
62850
62851 2003-03-17  Bruno Haible  <bruno@clisp.org>
62852
62853         * m4/onceonly.m4: Require autoconf 2.54 or newer.
62854         (m4_quote): Remove macro.
62855         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
62856
62857 2003-03-14  Jim Meyering  <jim@meyering.net>
62858
62859         Merge changes from Coreutils.
62860         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
62861         to be const, in order to avoid warnings.
62862         (obstack_room): Likewise.
62863         (obstack_empty_p): Likewise.
62864
62865 2003-03-14  Bruno Haible  <bruno@clisp.org>
62866
62867         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
62868         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
62869
62870 2003-03-13  Paul Eggert  <eggert@twinsun.com>
62871
62872         Merge changes from Bison.
62873         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
62874         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
62875         when compiling Bison 1.875's `bitset bset = obstack_alloc
62876         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
62877         * lib/hash.c: Include <stdbool.h> unconditionally.
62878
62879 2003-03-13  Paul Eggert  <eggert@twinsun.com>
62880
62881         * m4/onceonly.m4 (m4_quote): New macro.
62882         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
62883         Quote AC_FOREACH variable-expansions properly.
62884
62885 2003-03-13  Paul Eggert  <eggert@twinsun.com>
62886
62887         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
62888
62889 2003-03-09  Paul Eggert  <eggert@twinsun.com>
62890
62891         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
62892         Reported by Bruce Becker; see:
62893         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
62894
62895 2003-03-03  Paul Eggert  <eggert@twinsun.com>
62896             Bruno Haible  <bruno@clisp.org>
62897
62898         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
62899         Reported by John Hughes, see
62900         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
62901
62902 2003-02-20  Bruno Haible  <bruno@clisp.org>
62903
62904         * MODULES.html.sh (func_all_modules): Add poll.
62905
62906 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
62907
62908         * modules/poll: New file.
62909
62910 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
62911
62912         * lib/poll_.h: New file.
62913         * lib/poll.c: New file.
62914
62915 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
62916
62917         * m4/poll.m4: New file.
62918
62919 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
62920
62921         * modules/mathl: New file.
62922
62923 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
62924
62925         * lib/mathl.h: New file.
62926         * lib/acosl.c: New file.
62927         * lib/asinl.c: New file.
62928         * lib/atanl.c: New file.
62929         * lib/ceill.c: New file.
62930         * lib/cosl.c: New file.
62931         * lib/expl.c: New file.
62932         * lib/floorl.c: New file.
62933         * lib/frexpl.c: New file.
62934         * lib/ldexpl.c: New file.
62935         * lib/logl.c: New file.
62936         * lib/sincosl.c: New file.
62937         * lib/sinl.c: New file.
62938         * lib/sqrtl.c: New file.
62939         * lib/tanl.c: New file.
62940         * lib/trigl.c: New file.
62941         * lib/trigl.h: New file.
62942
62943 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
62944
62945         * m4/mathl.m4: New file.
62946
62947 2003-02-18  Bruno Haible  <bruno@clisp.org>
62948
62949         * MODULES.html.sh (func_all_modules): Add mathl.
62950
62951 2003-02-17  Bruno Haible  <bruno@clisp.org>
62952
62953         * modules/mkdtemp: New module.
62954         * MODULES.html.sh (func_all_modules): Add it.
62955
62956 2003-02-17  Bruno Haible  <bruno@clisp.org>
62957
62958         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
62959
62960 2003-02-17  Bruno Haible  <bruno@clisp.org>
62961
62962         * lib/mkdtemp.h: New file, from GNU gettext.
62963         * lib/mkdtemp.c: New file, from GNU gettext.
62964
62965 2003-02-02  Jim Meyering  <jim@meyering.net>
62966
62967         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
62968         e.g. glibc-2.2.93.
62969
62970 2003-01-31  Bruno Haible  <bruno@clisp.org>
62971
62972         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
62973         'rpl_rename'.
62974         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
62975         'rpl_strnlen'.
62976         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
62977         'rpl_strtod'.
62978         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
62979         'rpl_utime'.
62980
62981 2003-01-31  Bruno Haible  <bruno@clisp.org>
62982
62983         * lib/rename.c: #undef rename before defining rpl_rename.
62984         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
62985
62986 2003-01-30  Bruno Haible  <bruno@clisp.org>
62987
62988         * modules/vasnprintf, modules/vasprintf: New modules.
62989         * MODULES.html.sh (func_all_modules): Add them.
62990
62991 2003-01-30  Bruno Haible  <bruno@clisp.org>
62992
62993         * m4/signed.m4: New file, from GNU gettext.
62994         * m4/longdouble.m4: New file, from GNU gettext.
62995         * m4/wchar_t.m4: New file, from GNU gettext.
62996         * m4/wint_t.m4: New file, from GNU gettext.
62997         * m4/vasnprintf.m4: New file.
62998         * m4/vasprintf.m4: New file.
62999
63000 2003-01-30  Bruno Haible  <bruno@clisp.org>
63001
63002         * lib/printf-args.h: New file, from GNU gettext.
63003         * lib/printf-args.c: New file, from GNU gettext.
63004         * lib/printf-parse.h: New file, from GNU gettext.
63005         * lib/printf-parse.c: New file, from GNU gettext.
63006         * lib/vasnprintf.h: New file, from GNU gettext.
63007         * lib/vasnprintf.c: New file, from GNU gettext.
63008         * lib/asnprintf.c: New file, from GNU gettext.
63009         * lib/vasprintf.h: New file, from GNU gettext with modifications.
63010         * lib/vasprintf.c: New file, from GNU gettext.
63011         * lib/asprintf.c: New file, from GNU gettext.
63012
63013 2003-01-29  Bruno Haible  <bruno@clisp.org>
63014
63015         * modules/stpncpy: New module.
63016         * MODULES.html.sh (func_all_modules): Add it.
63017
63018 2003-01-29  Bruno Haible  <bruno@clisp.org>
63019
63020         * m4/stpncpy.m4: New file.
63021
63022 2003-01-29  Bruno Haible  <bruno@clisp.org>
63023
63024         * lib/stpncpy.h: New file, from GNU gettext with modifications.
63025         * lib/stpncpy.c: New file, from GNU gettext with modifications.
63026
63027 2003-01-28  Bruno Haible  <bruno@clisp.org>
63028
63029         * modules/c-ctype: New module.
63030         * MODULES.html.sh (func_all_modules): Add it.
63031
63032 2003-01-28  Bruno Haible  <bruno@clisp.org>
63033
63034         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
63035         Paul Eggert.
63036         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
63037         Paul Eggert.
63038
63039 2003-01-27  Bruno Haible  <bruno@clisp.org>
63040
63041         * modules/xsetenv: New module.
63042         * MODULES.html.sh (func_all_modules): Add it.
63043
63044 2003-01-27  Bruno Haible  <bruno@clisp.org>
63045
63046         * lib/xsetenv.h: New file, from GNU gettext.
63047         * lib/xsetenv.c: New file, from GNU gettext.
63048
63049 2003-01-23  Jim Meyering  <jim@meyering.net>
63050
63051         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
63052         from working on systems without dirfd (at least Irix and OSF1/Tru64).
63053
63054 2003-01-23  Bruno Haible  <bruno@clisp.org>
63055
63056         * modules/minmax: New module.
63057         * MODULES.html.sh (func_all_modules): Add it.
63058
63059 2003-01-23  Bruno Haible  <bruno@clisp.org>
63060
63061         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
63062         Eggert.
63063
63064 2003-01-22  Bruno Haible  <bruno@clisp.org>
63065
63066         * modules/exit: New module.
63067         * MODULES.html.sh (func_all_modules): Add it.
63068
63069 2003-01-22  Bruno Haible  <bruno@clisp.org>
63070
63071         * lib/exit.h: New file, from GNU gettext.
63072
63073 2003-01-19  Bruno Haible  <bruno@clisp.org>
63074
63075         * gnulib-tool: Recognize option --extract-maintainer.
63076         (func_get_maintainer): New function.
63077         * modules/*: Add Maintainer entry.
63078
63079 2003-01-16  Jim Meyering  <jim@meyering.net>
63080
63081         * m4/regex.m4: The `regex' struct is both input and output.
63082         Initialize it before each use.  Patch by Tim Waugh.
63083
63084 2003-01-16  Bruno Haible  <bruno@clisp.org>
63085
63086         * MODULES.html.sh: Add a table of contents. Add the module name as
63087         leftmost column. Add hyperlinks.
63088
63089 2003-01-15  Bruno Haible  <bruno@clisp.org>
63090
63091         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
63092
63093 2003-01-15  Bruno Haible  <bruno@clisp.org>
63094
63095         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
63096         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
63097         suffix.
63098
63099 2003-01-15  Bruno Haible  <bruno@clisp.org>
63100
63101         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
63102
63103 2003-01-15  Bruno Haible  <bruno@clisp.org>
63104
63105         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
63106         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
63107
63108 2003-01-14  Jim Meyering  <jim@meyering.net>
63109
63110         * lib/same.c (same_name): Tweak a comment.
63111
63112 2003-01-14  Bruno Haible  <bruno@clisp.org>
63113
63114         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
63115         when a string comparison is sufficient.
63116
63117 2003-01-14  Bruno Haible  <bruno@clisp.org>
63118
63119         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
63120         'unsigned int'.
63121
63122 2003-01-14  Bruno Haible  <bruno@clisp.org>
63123
63124         * lib/hash-pjw.c: Add comment about low quality of this function.
63125
63126 2003-01-13  Bruno Haible  <bruno@clisp.org>
63127
63128         * modules/stpcpy: Distribute lib/stpcpy.h.
63129         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
63130
63131 2003-01-13  Bruno Haible  <bruno@clisp.org>
63132
63133         * modules/*: Add a description.
63134         * modules/strpbrk: Fix Makefile.am snippet.
63135         * modules/strtoimax: Fix dependencies.
63136         * modules/strtoumax: Likewise.
63137
63138 2003-01-13  Bruno Haible  <bruno@clisp.org>
63139
63140         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
63141         * modules/alloca (Makefile.am): All object files depend on alloca.h.
63142         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
63143
63144 2003-01-13  Bruno Haible  <bruno@clisp.org>
63145
63146         * gnulib-tool (func_create_testdir): Store config/* files in the main
63147         directory.
63148         * config.rpath: Move to ...
63149         * config/config.rpath: ... here.
63150         * modules/gettext: Contains config/config.rpath, not config.rpath.
63151         * modules/iconv: Likewise.
63152
63153 2003-01-12  Paul Eggert  <eggert@twinsun.com>
63154
63155         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
63156         to avoid collisions with libcurses and libreadline.
63157
63158         * m4/getstr.m4: Remove.
63159         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
63160
63161 2003-01-12  Paul Eggert  <eggert@twinsun.com>
63162
63163         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
63164         to avoid collisions with libcurses and libreadline.
63165
63166         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
63167         * lib/getstr.h, getstr.c: Remove.
63168         * lib/getline.c: Include "getline.h", to check interface.
63169         Move body of old getstr.c here: this defines MIN_CHUNK and
63170         declares getdelim2, which is renamed from getstr.
63171         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
63172
63173         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
63174         All uses changed.
63175         * lib/linebuffer.h: Likewise.
63176         (readline): Remove backward-compatibility macro.
63177
63178 2003-01-12  Paul Eggert  <eggert@twinsun.com>
63179
63180         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
63181         to avoid collisions with libcurses and libreadline.
63182         * getstr: Remove.
63183         * MODULES.html.sh: Remove getstr.
63184         * modules/getline: Depend on unlocked-io, not getstr.
63185
63186 2003-01-12  Jim Meyering  <jim@meyering.net>
63187
63188         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
63189
63190 2003-01-10  Bruno Haible  <bruno@clisp.org>
63191
63192         * modules/alloca: Change Makefile.am requirements. Simplify Include
63193         requirements. Add lib/alloca_.h to file list.
63194
63195 2003-01-10  Bruno Haible  <bruno@clisp.org>
63196
63197         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
63198
63199 2003-01-10  Bruno Haible  <bruno@clisp.org>
63200
63201         * lib/alloca_.h: New file.
63202         * lib/getdate.y: Unconditionally include alloca.h.
63203         * lib/makepath.c: Likewise.
63204         * lib/setenv.c: Likewise.
63205         * lib/userspec.c: Likewise.
63206
63207 2003-01-09  Karl Berry  <karl@gnu.org>
63208
63209         * MODULES.html.sh: include `dirname $0` in PATH, to find
63210         gnulib-tool.
63211
63212 2003-01-09  Bruno Haible  <bruno@clisp.org>
63213
63214         * modules/stdbool: Change configure.ac, Makefile.am requirements.
63215         Simplify Include requirements. Add lib/stdbool.h.in to file list.
63216
63217 2003-01-09  Bruno Haible  <bruno@clisp.org>
63218
63219         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
63220
63221 2003-01-09  Bruno Haible  <bruno@clisp.org>
63222
63223         * lib/stdbool.h.in: New file.
63224
63225 2003-01-09  Bruno Haible  <bruno@clisp.org>
63226
63227         * gnulib-tool (func_all_modules): Ignore files ending in ~.
63228         * MODULES.html.sh: Likewise.
63229
63230 2003-01-08  Jim Meyering  <jim@meyering.net>
63231
63232         * lib/full-write.c: Undefine and define-away `const' after inclusion
63233         of errno.h, not before.  Suggestion from Bruno Haible.
63234
63235 2003-01-08  Bruno Haible  <bruno@clisp.org>
63236
63237         * modules/full-read: Depend on full-write.
63238
63239 2003-01-08  Bruno Haible  <bruno@clisp.org>
63240
63241         * lib/safe-read.c: Include specification header first, to ensure its
63242         selfcontainedness.
63243         * lib/full-write.c: Likewise.
63244
63245 2003-01-07  Jim Meyering  <jim@meyering.net>
63246
63247         * lib/full-write.c: Rework so that it may serve to define full_read,
63248         too.
63249         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
63250
63251 2003-01-07  Bruno Haible  <bruno@clisp.org>
63252
63253         * lib/strtoimax.c: Include <stdint.h> as an alternative to
63254         <inttypes.h>.
63255         * lib/xstrtol.h: Likewise.
63256         * lib/xstrtoimax.c: Likewise.
63257         * lib/xstrtoumax.c: Likewise.
63258         * lib/human.h: Likewise.
63259
63260         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
63261         on systems that have <inttypes.h> but not <stdint.h>.
63262
63263 2003-01-07  Bruno Haible  <bruno@clisp.org>
63264
63265         * MODULES.html.sh: Add copyright notice.
63266         (missed_files): Omit CVS directory entries.
63267         (func_module): Make it work with sed-3.02.
63268         * MODULES.txt: Remove file.
63269
63270 2003-01-06  Jim Meyering  <jim@meyering.net>
63271
63272         * lib/version-etc.c: Update year in translatable copyright string.
63273
63274 2003-01-03  Karl Berry  <karl@gnu.org>
63275
63276         * config/config.{guess,sub}: update from prep.
63277
63278 2003-01-02  Karl Berry  <karl@gnu.org>
63279
63280         * doc/COPYING.DOC: belatedly updated to 1.2.
63281
63282 2003-01-01  Karl Berry  <karl@gnu.org>
63283
63284         * gnulib-tool (func_verify_module): report module name $module in
63285         error message, not $1.
63286         * gnulib-tool (create-testdir): don't complain if destdir couldn't
63287         be created, only if it doesn't exist.
63288         * gnulib-tool (last_checkin_date): don't expand the $Date here.
63289
63290 2002-12-31  Paul Eggert  <eggert@twinsun.com>
63291
63292         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
63293
63294 2002-12-31  Paul Eggert  <eggert@twinsun.com>
63295
63296         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
63297         memcmp if strcoll doesn't work.
63298
63299 2002-12-31  Bruno Haible  <bruno@clisp.org>
63300
63301         * lib/utime.c (utime_null): No need to call ftruncate if the file was
63302         nonempty.
63303
63304 2002-12-31  Bruno Haible  <bruno@clisp.org>
63305
63306         * lib/memcoll.c (STRCOLL): New macro.
63307         (memcoll): Use it.
63308
63309 2002-12-31  Bruno Haible  <bruno@clisp.org>
63310
63311         * lib/localcharset.h: New file.
63312         * lib/localcharset.c: Include it.
63313         * lib/unicodeio.c: Likewise.
63314
63315 2002-12-31  Bruno Haible  <bruno@clisp.org>
63316
63317         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
63318         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
63319
63320 2002-12-31  Bruno Haible  <bruno@clisp.org>
63321
63322         * lib/getline.h: Include <stddef.h>, for size_t.
63323
63324         * lib/unicodeio.h: Include <stddef.h>, for size_t.
63325         * lib/unicodeio.c: Don't include <stddef.h>.
63326
63327 2002-12-31  Bruno Haible  <bruno@clisp.org>
63328
63329         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
63330         HAVE_TM_ZONE.
63331
63332 2002-12-24  Karl Berry  <karl@gnu.org>
63333
63334         * config/config.guess: update from prep.
63335
63336 2002-12-24  Bruno Haible  <bruno@clisp.org>
63337
63338         General infrasructure.
63339         * m4/README: Rewritten.
63340         * m4/onceonly.m4: New file.
63341         * m4/onceonly_2_57.m4: New file.
63342
63343         Module atexit.
63344         * m4/atexit.m4: New file.
63345
63346         Module strtod.
63347         * m4/strtod.m4: New file.
63348
63349         Module strtol.
63350         * m4/strtol.m4: New file.
63351
63352         Module strtoul.
63353         * m4/strtoul.m4: New file.
63354
63355         Module memchr.
63356         * m4/memchr.m4: New file.
63357
63358         Module memcmp.
63359         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
63360         (jm_FUNC_MEMCMP): Invoke it.
63361
63362         Module memcpy.
63363         * m4/memcpy.m4: New file.
63364
63365         Module memmove.
63366         * m4/memmove.m4: New file.
63367
63368         Module memset.
63369         * m4/memset.m4: New file.
63370
63371         Module strcspn.
63372         * m4/strcspn.m4: New file.
63373
63374         Module strpbrk.
63375         * m4/strpbrk.m4: New file.
63376
63377         Module strstr.
63378         * m4/strstr.m4: New file.
63379
63380         Module strerror.
63381         * m4/strerror.m4: New file.
63382
63383         Module mktime.
63384         * m4/mktime.m4: Renamed from jm-mktime.m4.
63385         (gl_PREREQ_MKTIME): New macro.
63386         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
63387
63388         Module malloc.
63389         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
63390         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
63391         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
63392
63393         Module realloc.
63394         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
63395         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
63396         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
63397
63398         Module strftime.
63399         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
63400         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
63401         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
63402         gl_TM_GMTOFF.
63403         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
63404
63405         Module xalloc.
63406         * m4/xalloc.m4: New file.
63407
63408         Module alloca.
63409         * m4/alloca.m4: New file.
63410
63411         Module putenv.
63412         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
63413         (jm_FUNC_PUTENV): Invoke it.
63414
63415         Module setenv.
63416         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
63417         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
63418         when invoked twice.
63419         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
63420         gt_FUNC_SETENV.
63421
63422         Module memrchr.
63423         * m4/memrchr.m4: New file.
63424
63425         Module stpcpy.
63426         * m4/stpcpy.m4: New file.
63427
63428         Module strcase.
63429         * m4/strcase.m4: New file.
63430
63431         Module strdup.
63432         * m4/strdup.m4: New file.
63433
63434         Module strnlen.
63435         * m4/strnlen.m4: New file.
63436
63437         Module strndup.
63438         * m4/strndup.m4: New file.
63439
63440         Module xstrtod.
63441         * m4/xstrtod.m4: New file.
63442
63443         Module xstrtol.
63444         * m4/xstrtol.m4: New file.
63445
63446         Module getdate.
63447         * m4/getdate.m4: New file.
63448
63449         Module unlocked-io.
63450         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
63451         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
63452         * m4/jm-glibc-io.m4n: Remove file.
63453
63454         Module long-options.
63455         * m4/long-options.m4: New file.
63456
63457         Module md5.
63458         * m4/md5.m4: New file.
63459
63460         Module sha.
63461         * m4/sha.m4: New file.
63462
63463         Module getstr.
63464         * m4/getstr.m4: New file.
63465
63466         Module getline.
63467         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
63468         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
63469         <sys/types.h>, for size_t. Use the function name gnu_getline, not
63470         simply getline. Infoke gl_PREREQ_GETLINE.
63471
63472         Module obstack.
63473         * m4/obstack.m4: New file.
63474
63475         Module hash.
63476         * m4/hash.m4: New file.
63477
63478         Module readtokens.
63479         * m4/readtokens.m4: New file.
63480
63481         Module strverscmp.
63482         * m4/strverscmp.m4: New file.
63483
63484         Module stdbool.
63485         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
63486         OSF/1.
63487
63488         Module strtoll.
63489         * m4/strtoll.m4: New file.
63490
63491         Module strtoull.
63492         * m4/strtoull.m4: New file.
63493
63494         Module strtoimax.
63495         * m4/strtoimax.m4: New file.
63496
63497         Module strtoumax.
63498         * m4/strtoumax.m4: New file.
63499
63500         Module xstrtoimax.
63501         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
63502         jm_AC_PREREQ_XSTRTOIMAX.
63503         Moved the strtol prerequisites to strtol.m4.
63504         Moved the strtoll prerequisites to strtoll.m4.
63505         Moved the strtoimax prerequisites to strtoimax.m4.
63506
63507         Module xstrtoumax.
63508         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
63509         jm_AC_PREREQ_XSTRTOUMAX.
63510         Moved the strtoul prerequisites to strtoul.m4.
63511         Moved the strtoull prerequisites to strtoull.m4.
63512         Moved the strtoumax prerequisites to strtoumax.m4.
63513
63514         Module chown.
63515         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
63516         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
63517
63518         Module dup2.
63519         * m4/dup2.m4: New file.
63520
63521         Module ftruncate.
63522         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
63523         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
63524
63525         Module getgroups.
63526         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
63527         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
63528
63529         Module gettimeofday.
63530         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
63531         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
63532         gl_PREREQ_GETTIMEOFDAY.
63533
63534         Module mkdir.
63535         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
63536         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
63537
63538         Module mkstemp.
63539         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
63540         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
63541         jm_AC_TYPE_UINTMAX_T.
63542         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
63543
63544         Module stat.
63545         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
63546         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
63547
63548         Module lstat.
63549         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
63550         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
63551
63552         Module timespec.
63553         * m4/timespec.m4 (gl_TIMESPEC): New macro.
63554         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
63555         * m4/st_mtim.m4: Indentation.
63556
63557         Module nanosleep.
63558         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
63559         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
63560         gl_PREREQ_NANOSLEEP.
63561
63562         Module regex.
63563         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
63564         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
63565         (gl_REGEX): New macro.
63566
63567         Module rename.
63568         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
63569         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
63570
63571         Module rmdir.
63572         * m4/rmdir.m4: New file.
63573
63574         Module utime.
63575         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
63576         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
63577         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
63578
63579         Module dirname.
63580         * m4/dirname.m4: New file.
63581
63582         Module getopt.
63583         * m4/getopt.m4: New file.
63584
63585         Module unistd-safer.
63586         * m4/unistd-safer.m4: New file.
63587
63588         Module fnmatch.
63589         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
63590         declaration.
63591         (gl_PREREQ_FNMATCH_EXTRA): New macro.
63592         (gl_FUNC_FNMATCH_POSIX): New macro.
63593         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
63594         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
63595         simply fnmatch.
63596
63597         Module exclude.
63598         * m4/exclude.m4: New file.
63599
63600         Module human.
63601         * m4/human.m4: New file.
63602
63603         Module acl.
63604         * m4/acl.m4: Nop.
63605
63606         Module backupfile.
63607         * m4/backupfile.m4: New file.
63608         * m4/d-ino.m4: Indentation.
63609
63610         Module fsusage.
63611         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
63612         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
63613         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
63614
63615         Module dirfd.
63616         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
63617         requirements.
63618
63619         Module euidaccess.
63620         * m4/euidaccess.m4: New file.
63621
63622         Module file-type.
63623         * m4/file-type.m4: New file.
63624
63625         Module fileblocks.
63626         * m4/fileblocks.m4: New file.
63627
63628         Module filemode.
63629         * m4/filemode.m4: New file.
63630
63631         Module isdir.
63632         * m4/isdir.m4: New file.
63633
63634         Module lchown.
63635         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
63636         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
63637
63638         Module makepath.
63639         * m4/makepath.m4: New file.
63640
63641         Module modechange.
63642         * m4/modechange.m4: New file.
63643
63644         Module mountlist.
63645         * m4/mountlist.m4: New file.
63646         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
63647         Indentation.
63648
63649         Module path-concat.
63650         * m4/path-concat.m4: New file.
63651
63652         Module pathmax.
63653         * m4/pathmax.m4: New file.
63654
63655         Module same.
63656         * m4/same.m4: New file.
63657
63658         Module save-cwd.
63659         * m4/save-cwd.m4: New file.
63660
63661         Module savedir.
63662         * m4/savedir.m4: New file.
63663
63664         Module xgetcwd.
63665         * m4/xgetcwd.m4: New file.
63666         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
63667
63668         Module xreadlink.
63669         * m4/xreadlink.m4: New file.
63670
63671         Module safe-read.
63672         * m4/safe-read.m4: New file.
63673
63674         Module safe-write.
63675         * m4/safe-write.m4: New file.
63676
63677         Module closeout.
63678         * m4/closeout.m4: New file.
63679
63680         Module stdio-safer.
63681         * m4/stdio-safer.m4: New file.
63682
63683         Module getpass.
63684         * m4/getpass.m4: New file.
63685
63686         Module getugroups.
63687         * m4/getugroups.m4: New file.
63688
63689         Module group-member.
63690         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
63691         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
63692
63693         Module idcache.
63694         * m4/idcache.m4: New file.
63695
63696         Module userspec.
63697         * m4/userspec.m4: New file.
63698
63699         Module gettime.
63700         * m4/clock_time.m4: New file.
63701         * m4/gettime.m4: New file.
63702
63703         Module settime.
63704         * m4/settime.m4: New file.
63705
63706         Module posixtm.
63707         * m4/posixtm.m4: New file.
63708
63709         Module gethostname.
63710         * m4/gethostname.m4: New file.
63711
63712         Module canon-host.
63713         * m4/canon-host.m4: New file.
63714
63715         Module gettext.
63716         * m4/codeset.m4: New file, from gettext-0.11.5.
63717         * m4/gettext.m4: New file, from gettext-0.11.5.
63718         * m4/glibc21.m4: New file, from gettext-0.11.5.
63719         * m4/iconv.m4: New file, from gettext-0.11.5.
63720         * m4/intdiv0.m4: New file, from gettext-0.11.5.
63721         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
63722         * m4/inttypes.m4: New file, from gettext-0.11.5.
63723         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
63724         * m4/isc-posix.m4: New file, from gettext-0.11.5.
63725         * m4/lcmessage.m4: New file, from gettext-0.11.5.
63726         * m4/lib-ld.m4: New file, from gettext-0.11.5.
63727         * m4/lib-link.m4: New file, from gettext-0.11.5.
63728         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
63729         * m4/progtest.m4: New file, from gettext-0.11.5.
63730         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
63731         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
63732         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
63733
63734         Module localcharset.
63735         * m4/localcharset.m4: New file.
63736
63737         Module hard-locale.
63738         * m4/hard-locale.m4: New file.
63739
63740         Module mbswidth.
63741         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
63742         onceonly macros.
63743         * m4/mbrtowc.m4: Add comment.
63744
63745         Module memcasecmp.
63746         * m4/memcasecmp.m4: New file.
63747
63748         Module memcoll.
63749         * m4/memcoll.m4: New file.
63750
63751         Module unicodeio.
63752         * m4/unicodeio.m4: New file.
63753
63754         Module rpmatch.
63755         * m4/rpmatch.m4: New file.
63756
63757         Module yesno.
63758         * m4/yesno.m4: New file.
63759
63760         Module exitfail.
63761         * m4/exitfail.m4: New file.
63762
63763         Module c-stack.
63764         * m4/c-stack.m4 (gl_C_STACK): New macro.
63765         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
63766
63767         Module error.
63768         * m4/error.m4 (gl_ERROR): New macro.
63769         (jm_PREREQ_ERROR): Use onceonly macros.
63770
63771         Module fatal.
63772         * m4/fatal.m4: New file.
63773
63774         Module getloadavg.
63775         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
63776         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
63777
63778         Module getpagesize.
63779         * m4/getpagesize.m4: New file.
63780
63781         Module getusershell.
63782         * m4/getusershell.m4: New file.
63783
63784         Module physmem.
63785         * m4/physmem.m4: New file.
63786
63787         Module posixver.
63788         * m4/posixver.m4: New file.
63789
63790         Module quotearg.
63791         * m4/quotearg.m4: New file.
63792
63793         Module quote.
63794         * m4/quote.m4: New file.
63795
63796         Module readutmp.
63797         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
63798
63799         Module sig2str.
63800         * m4/sig2str.m4: New file.
63801
63802         Other.
63803         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
63804         ulonglong.m4.
63805         * m4/intmax_t.m4: New file.
63806         * m4/d-type.m4: Indentation.
63807         * m4/jm-macros.m4: Update.
63808         * m4/prereq.m4 (jm_PREREQ): Update.
63809         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
63810         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
63811         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
63812         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
63813         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
63814         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
63815         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
63816         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
63817         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
63818         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
63819         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
63820         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
63821         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
63822         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
63823         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
63824         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
63825         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
63826         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
63827         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
63828
63829 2002-12-24  Bruno Haible  <bruno@clisp.org>
63830
63831         * MODULES.txt: Update according to m4/ changes.
63832
63833         Module gettext.
63834         * config.rpath: New file, from gettext-0.11.5.
63835
63836         * modules/*: New module descriptions.
63837         * gnulib-tool: New file.
63838         * MODULES.html.sh: New file.
63839
63840 2002-12-21  Karl Berry  <karl@gnu.org>
63841
63842         * doc/fdl.texi: update to version 1.2.
63843
63844 2002-12-19  Karl Berry  <karl@gnu.org>
63845
63846         * config/config.guess: update from prep.
63847
63848 2002-12-18  Bruno Haible  <bruno@clisp.org>
63849
63850         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
63851         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
63852
63853 2002-12-17  Bruno Haible  <bruno@clisp.org>
63854
63855         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
63856         stdlib.h, string.h.
63857
63858 2002-12-17  Bruno Haible  <bruno@clisp.org>
63859
63860         * lib/canon-host.c (strdup): Remove unused declaration.
63861
63862         * lib/fsusage.c: Include full_read.h.
63863         (get_fs_usage): Use full_read instead of safe_read.
63864
63865         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
63866
63867 2002-12-12  Karl Berry  <karl@gnu.org>
63868
63869         * config/config.guess: update from prep.
63870
63871 2002-12-11  Bruno Haible  <bruno@clisp.org>
63872
63873         * m4/setenv.m4: New file, from gettext-0.11.5.
63874
63875 2002-12-11  Bruno Haible  <bruno@clisp.org>
63876
63877         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
63878         not unsetenv().
63879         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
63880         modifications:
63881
63882         2002-12-11  Bruno Haible  <bruno@clisp.org>
63883
63884                 * setenv.c (alloca): Fall back to malloc.
63885                 (freea): New macro.
63886                 (setenv): Use freea() to free memory allocated with alloca().
63887
63888         2002-11-13  Bruno Haible  <bruno@clisp.org>
63889
63890                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
63891                 function declarations.
63892                 * unsetenv.c (unsetenv): Likewise.
63893
63894         2002-03-04  Bruno Haible  <bruno@clisp.org>
63895
63896                 Portability to AIX 4.3.3.
63897                 * unsetenv.c: New file, extracted from setenv.c.
63898                 * setenv.c: Move the unsetenv() function to unsetenv.c.
63899
63900         2001-12-20  Bruno Haible  <bruno@clisp.org>
63901
63902                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
63903                 use malloc instead. For SunOS 4.
63904
63905         2001-12-11  Bruno Haible  <bruno@clisp.org>
63906
63907                 * setenv.c: Declare alloca.
63908                 (compar_fn_t): New typedef.
63909                 (KNOWN_VALUE, STORE_VALUE): Use it.
63910
63911         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
63912         setenv.h.
63913
63914 2002-12-10  Paul Eggert  <eggert@twinsun.com>
63915
63916         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
63917         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
63918         Choose values that are less likely to collide with system fnmatch
63919         options.
63920         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
63921         defined (e.g., a pure POSIX system).
63922         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
63923         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
63924
63925 2002-12-06  Paul Eggert  <eggert@twinsun.com>
63926
63927         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
63928         a pain in practice to deal with generated m4 files.  This change
63929         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
63930
63931         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
63932         and jm-glibc-io.m4, as they are no longer a special case.
63933         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
63934         kludge and the auto-generation stuff.  Check only whether the
63935         functions are declared, not whether they exist, since older hosts
63936         that don't declare the functions can't use the optimization anyway.
63937
63938 2002-12-06  Jim Meyering  <jim@meyering.net>
63939
63940         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
63941
63942         Merge in changes from libc's misc/error.c, in preparation
63943         for the merge of gnulib's changes back into libc.
63944
63945         * lib/error.c (_): Define only if not already defined.
63946         Move definition to follow all #include directives.
63947         Include unlocked-io.h only if !_LIBC.
63948         [_LIBC]: Include <libio/libioP.h>.
63949         [USE_IN_LIBIO]: Include <libio/iolibio.h>
63950         (fflush): Tweak definition to use INTUSE.
63951         (putc): Define.
63952
63953 2002-12-05  Paul Eggert  <eggert@twinsun.com>
63954
63955         * lib/alloca.c [defined emacs]: Include "lisp.h".
63956         (xalloc_die) [defined emacs]: New macro.
63957         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
63958         [! defined emacs]: Include <xalloc.h>.
63959         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
63960         (pointer): Typedef to POINTER_TYPE *.
63961         (malloc): Remove decl; we now always use xmalloc.
63962         (alloca): Use old-style definition, since Emacs needs this.
63963         Check for arithmetic overflow when computing combined size.
63964
63965 2002-12-04  Paul Eggert  <eggert@twinsun.com>
63966
63967         Do not generate unlocked-io.h automatically, since it's easier to
63968         maintain it by hand.
63969
63970         * lib/unlocked-io.h: New file, from GNU diffutils,
63971         but with proper copyright notice and attribution.
63972         * lib/gen-uio: Remove.
63973         * lib/Makefile.am: Add copyright notice.
63974         (libfetish_a_SOURCES): Add unlocked-io.h.
63975         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
63976         (DISTCLEANFILES, io_functions): Remove macros.
63977         (EXTRA_DIST): Remove gen_uio.
63978         (unlocked-io.h): Remove rule.
63979
63980 2002-12-04  Jim Meyering  <jim@meyering.net>
63981
63982         Reflect the fact that stat.c and lstat.c are no longer generated.
63983         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
63984         (DISTCLEANFILES): Likewise.
63985         (EXTRA_DIST): Likewise.
63986         (all_local): Don't depend on stat.c or lstat.c.
63987         (stat.c, lstat.c): Remove rules.
63988         (EXTRA_DIST): Remove xstat.in.
63989
63990         * lib/xstat.in: Remove file.  Contents moved into stat.c.
63991         * lib/stat.c: New file.  Contents mostly from xstat.in.
63992         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
63993         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
63994
63995         * lib/safe-read.c: Rework so that it may serve to define safe_write,
63996         too.
63997         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
63998
63999 2002-12-03  Jim Meyering  <jim@meyering.net>
64000
64001         * lib/safe-read.c, safe-write.c: Change variable names and comments,
64002         but not semantics, to minimize the differences between these two files.
64003         (safe_read): Change comment to mention SAFE_READ_ERROR.
64004
64005         * lib/safe-read.c (IS_EINTR): Define.
64006         (safe_read): Use IS_EINTR in place of in-function cpp directives.
64007
64008 2002-12-02  Jim Meyering  <jim@meyering.net>
64009
64010         * lib/safe-read.c (EINTR): Define.
64011         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
64012         (INT_MAX): Provide fallback.
64013         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
64014
64015         * lib/safe-read.h (SAFE_READ_ERROR): Define.
64016
64017 2002-12-02  Bruno Haible  <bruno@clisp.org>
64018
64019         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
64020         Define, taken from safe-read.c.
64021         (INT_MAX): Provide fallback.
64022         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
64023         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
64024
64025         * lib/safe-read.c (EINTR): Remove definition.
64026         (safe_read): Don't use EINTR if it is absent.
64027
64028 2002-12-01  Jim Meyering  <jim@meyering.net>
64029
64030         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
64031         zero.
64032         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
64033
64034 2002-11-27  Paul Eggert  <eggert@twinsun.com>
64035
64036         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
64037         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
64038         with `if (! (value < limit)) abort ();', for readability.
64039
64040 2002-11-26  Karl Berry  <karl@gnu.org>
64041
64042         * lib/strdup.c: copy from libc again, with jim's ok.
64043         * lib/.cppi-disable: re-add strdup.c
64044
64045 2002-11-25  Karl Berry  <karl@gnu.org>
64046
64047         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
64048         instead of "strtol.c".
64049
64050 2002-11-25  Karl Berry  <karl@gnu.org>
64051
64052         * config/install-sh: update from automake for variable quoting, $0 in
64053         error msgs, etc.
64054
64055         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
64056         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
64057         entry.
64058
64059 2002-11-25  Jim Meyering  <jim@meyering.net>
64060
64061         * lib/mktime.c: Sync from libc, now that it has the latest fix.
64062
64063 2002-11-24  Karl Berry  <karl@gnu.org>
64064
64065         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
64066         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
64067
64068 2002-11-24  Jim Meyering  <jim@meyering.net>
64069
64070         Update from coreutils:
64071
64072         * lib/mktime.c: Merge in changes from libc.
64073
64074         Avoid a link-time failure on some Linux systems.
64075         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
64076         (otherwise).
64077         (__mon_yday): Declare with the STATIC attribute.
64078         (__mktime_internal): Likewise.
64079         Based on a report from Greg Schafer.
64080
64081 2002-11-23  Jim Meyering  <jim@meyering.net>
64082
64083         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
64084         Use `unsigned', not `int', as type of index.
64085
64086         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
64087
64088         * lib/fsusage.c: Remove unneeded parentheses around operands of
64089         `defined'.
64090
64091 2002-11-22  Paul Eggert  <eggert@twinsun.com>
64092
64093         * lib/quotearg.h: Allow multiple inclusion by surrounding with
64094         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
64095         so that we can be included first.
64096         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
64097         * lib/quotearg.c: Include quotearg.h immediately after config.h.
64098         No need to include stddef.h or sys/types.h any more.
64099         Surround local include files with "", not "<>".
64100         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
64101         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
64102         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
64103         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
64104         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
64105         (ISPRINT): Remove; no longer needed now that we assume C89.
64106
64107         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
64108         Preserve errno.
64109
64110         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
64111         quotearg_char): Use SIZE_MAX rather than
64112         (size_t) -1 when we are talking about "infinity".
64113
64114         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
64115
64116 2002-11-22  Paul Eggert  <eggert@twinsun.com>
64117
64118         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
64119         hint that one should use `if (! x) abort ();' rather than `assert
64120         (x);', and anyway it's one less thing to worry about configuring.
64121         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
64122         hash_rehash, hash_insert): Use abort rather than assert.
64123
64124 2002-11-22  Bruno Haible  <bruno@clisp.org>
64125
64126         * lib/safe-read.h: Assume C89. Add comments.
64127         (safe_read): Change return type to size_t.
64128         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
64129         byte counts > SSIZE_MAX correctly.
64130         * lib/safe-write.h: New file.
64131         * lib/safe-write.c: New file.
64132         * lib/full-read.h: New file.
64133         * lib/full-read.c: New file.
64134         * lib/full-write.h: Assume C89. Add comments.
64135         * lib/full-write.c: Include safe-write.h.
64136         (full_write): Rewritten to use safe_write.
64137         Suggested by Jim Meyering and Paul Eggert.
64138
64139 2002-11-21  Jim Meyering  <jim@meyering.net>
64140
64141         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
64142
64143         Merge in changes from the coreutils.
64144
64145         2002-09-25  Paul Eggert  <eggert@twinsun.com>
64146         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
64147         <stdint.h>.
64148         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
64149         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
64150         int.  Work more efficiently if X is the same width as uintmax_t.
64151         Do not compare X to -1, to avoid bogus compiler warning.
64152         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
64153         Don't assume that f_frsize and f_bsize are the same type.
64154
64155         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
64156         warning on FreeBSD.
64157
64158         * lib/makepath.c (make_path): Restore umask *before* creating the final
64159         component.
64160         (make_path): Minor reformatting.
64161
64162         * lib/xmalloc.c: Adjust to work with new autoconf macros,
64163         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
64164         HAVE_MALLOC/HAVE_REALLOC.
64165
64166         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
64167         dummy ones.  At least on GNU/Linux systems, `auto' means something
64168         else.
64169         From Michael Stone.
64170
64171 2002-11-21  Bruno Haible  <bruno@clisp.org>
64172
64173         Remove case insensitive option matching.
64174         * lib/argmatch.h (argcasematch): Remove declaration.
64175         (ARGCASEMATCH): Remove macro.
64176         (__xargmatch_internal): Remove case_sensitive argument.
64177         (XARGMATCH): Update.
64178         (XARGCASEMATCH): Remove macro.
64179         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
64180         case_sensitive argument.
64181         (argcasematch): Remove function.
64182         (__xargmatch_internal): Remove case_sensitive argument.
64183         (main): Use XARGMATCH instead of XARGCASEMATCH.
64184
64185         * lib/xmalloc.c: Change compile-time error message. Add comment about
64186         required autoconf version.
64187
64188 2002-11-20  Paul Eggert  <eggert@twinsun.com>
64189
64190         Merge argmatch cleanups from Bison.  Assume C89.
64191
64192         * lib/argmatch.c: Include config.h here, not in argmatch.h.
64193         Include stdlib.h, for EXIT_FAILURE.
64194         Always include <string.h>, since we assume C89.
64195         (EXIT_FAILURE): Remove pre-C89 bug workaround.
64196         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
64197         Include <stddef.h> instead, since it's all we need for size_t.
64198         (PARAMS): Remove.  All uses removed.
64199         (ARRAY_CARDINALITY): Do not bother to #undef.
64200         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
64201         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
64202         Remove unnecessary parentheses.
64203         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
64204         Insert necessary parentheses.
64205         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
64206         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
64207
64208 2002-11-19  Bruno Haible  <bruno@clisp.org>
64209
64210         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
64211         * lib/mbswidth.h: Include <stddef.h>, for size_t.
64212
64213         * lib/mbswidth.h (PARAMS): Remove macro.
64214         (mbswidth, mbsnwidth): Use ANSI C function declarations.
64215         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
64216
64217         * lib/gcd.h (PARAMS): Remove macro.
64218         (gcd): Use ANSI C function declarations.
64219         * lib/gcd.c (gcd): Likewise.
64220
64221 2002-11-15  Bruno Haible  <bruno@clisp.org>
64222
64223         * lib/strcspn.c: Include <stddef.h>.
64224         (strcspn): Use ANSI C function declaration. Change return type to
64225         size_t. Use NULL.
64226         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
64227         (strpbrk): Use NULL.
64228         * lib/strpbrk.h (PARAMS): Remove macro.
64229         (strpbrk): Use ANSI C function declaration.
64230         * lib/strstr.c: Don't include <sys/types.h>.
64231         * lib/strstr.h (PARAMS): Remove macro.
64232         (strstr): Use ANSI C function declarations.
64233
64234 2002-11-14  Karl Berry  <karl@gnu.org>
64235
64236         * config/mkinstalldirs: `do' on separate line, instead of
64237         `for var; do'.
64238
64239 2002-11-06  Bruno Haible  <bruno@clisp.org>
64240
64241         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
64242         * lib/gcd.c (gcd): Likewise.
64243
64244 2002-11-05  Bruno Haible  <bruno@clisp.org>
64245
64246         * lib/gcd.h: New file, from gettext-0.11.5.
64247         * lib/gcd.c: New file, from gettext-0.11.5.
64248
64249 2002-11-05  Bruno Haible  <bruno@clisp.org>
64250
64251         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
64252         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
64253         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
64254         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
64255
64256         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
64257         <libintl.h>.
64258         * lib/makepath.c: Include gettext.h instead of <locale.h> and
64259         <libintl.h>.
64260
64261         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
64262         * lib/human.c: Include gettext.h instead of <libintl.h>.
64263         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
64264         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
64265         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
64266         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
64267         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
64268         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
64269         (textdomain): Remove definition.
64270         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
64271
64272         * lib/long-options.c: Remove include of <libintl.h> and definition of
64273         _.
64274         * lib/same.c: Remove include of <libintl.h> and definition of _.
64275
64276 2002-11-04  Owen Taylor  <otaylor@redhat.com>
64277
64278         * lib/config.charset: A few additions for Solaris.
64279
64280 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
64281
64282         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
64283         * lib/localcharset.c (locale_charset): Declare as extern "C".
64284
64285 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
64286
64287         * lib/config.charset: msdos in uk_UA uses CP1125.
64288
64289 2002-11-04  Bruno Haible  <bruno@clisp.org>
64290
64291         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
64292         * lib/strcase.h: New file, from GNU gettext-0.11.5.
64293         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
64294         * lib/strstr.h: New file, from GNU gettext-0.11.5.
64295         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
64296
64297 2002-11-04  Bruno Haible  <bruno@clisp.org>
64298
64299         * lib/localcharset.c (locale_charset): Don't return an empty string.
64300
64301 2002-11-04  Bruno Haible  <bruno@clisp.org>
64302
64303         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
64304         aliases.
64305
64306 2002-11-04  Bruno Haible  <bruno@clisp.org>
64307
64308         * lib/config.charset: Update for newest glibc. Add canonical names
64309         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
64310
64311 2002-11-04  Bruno Haible  <bruno@clisp.org>
64312
64313         * lib/config.charset: Add support for NetBSD.
64314
64315 2002-11-04  Bruno Haible  <bruno@clisp.org>
64316
64317         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
64318
64319 2002-11-01  Bruno Haible  <bruno@clisp.org>
64320
64321         * configure.in: Add AC_CONFIG_AUX_DIR call.
64322         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
64323         test/Makefile.
64324         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
64325
64326 2002-09-28  Karl Berry  <karl@gnu.org>
64327
64328         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
64329         installed automake until the next release, since changes have been
64330         made.
64331
64332 2002-09-25  Karl Berry  <karl@gnu.org>
64333
64334         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
64335         * lib/getopt*: copy from libc/posix.
64336         * lib/gettext.h: copy from gettext.
64337         * lib/.cppi-disable: add strdup.c, gettext.h.
64338
64339 2002-09-25  Karl Berry  <karl@gnu.org>
64340
64341         * config/srclist.txt: enable gettext.h check.
64342         * config/config.{guess,sub}: update from prep.
64343         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
64344                 from automake 1.6.3.
64345         See srclist*.
64346
64347 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
64348
64349         * regex.c (PATFETCH): Remove the translating fetch.
64350         (PATFETCH_RAW): Rename to PATFETCH.
64351         (set_image_of_range): New fun.
64352         (SET_RANGE_TABLE_WORK_AREA): Use it.
64353         (regex_compile): Don't translate the pattern chars so eagerly.
64354         Only do it when inserting an `exactn' bytecode or when handling
64355         a char-range.
64356         (mutually_exclusive_p): Avoid empty statement.
64357
64358 2002-07-06  Jim Meyering  <meyering@lucent.com>
64359
64360         * m4/README: Don't mention Makefile.am.in.
64361         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
64362
64363 2002-07-01  Jim Meyering  <meyering@lucent.com>
64364
64365         * lib/c-stack.c: Include sys/time.h.
64366         From Volker Borchert.
64367
64368 2002-06-26  Paul Eggert  <eggert@twinsun.com>
64369
64370         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
64371
64372 2002-06-26  Paul Eggert  <eggert@twinsun.com>
64373
64374         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
64375         New macro.  Use it uniformly instead of
64376         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
64377         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
64378         reported by Vin Shelton.
64379
64380 2002-06-22  Paul Eggert  <eggert@twinsun.com>
64381
64382         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
64383         Do not assume SA_SIGINFO behavior.
64384         Bug reported by Jim Meyering on NetBSD 1.5.2.
64385
64386 2002-06-22  Jim Meyering  <meyering@lucent.com>
64387
64388         * m4/c-stack.m4: New file, from diffutils-2.8.2.
64389         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
64390
64391         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
64392         now that configure.ac uses AC_GNU_SOURCE.
64393         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
64394         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
64395
64396         Update to latest tools.  Suggestions from Paul Eggert.
64397         * m4/stdbool.m4: New file, from diffutils-2.8.2.
64398         * m4/gnu-source.m4: Update from diffutils-2.8.2.
64399         * m4/fnmatch.m4: Likewise.
64400         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
64401         to AC_HEADER_STDBOOL
64402
64403 2002-06-22  Jim Meyering  <meyering@lucent.com>
64404
64405         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
64406         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
64407
64408 2002-06-22  Jim Meyering  <meyering@lucent.com>
64409
64410         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
64411
64412         * lib/exitfail.c, exitfail.h: Likewise.
64413         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
64414
64415         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
64416         of fnmatch.h.
64417         (EXTRA_DIST): Add fnmatch_loop.c.
64418         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
64419
64420         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
64421         * lib/fnmatch.c: Update from diffutils-2.8.2.
64422         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
64423         * lib/fnmatch.h: Remove file.
64424
64425 2002-06-21  Jim Meyering  <meyering@lucent.com>
64426
64427         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
64428         * m4/mbrtowc.m4: Likewise.
64429
64430         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
64431         * m4/mbswidth.m4: Reflect name change:
64432         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
64433         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
64434
64435         * m4/lib-link.m4: Update from gettext-0.11.2.
64436         * m4/gettext.m4: Likewise.
64437
64438         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
64439         From Alfred M. Szmidt.
64440
64441 2002-06-18  Paul Eggert  <eggert@twinsun.com>
64442
64443         * lib/file-type.h: Report an error if neither S_ISREG nor
64444         S_IFREG is defined, instead of using a test specific to glibc
64445         2.2.  This should be safe, since POSIX requires S_ISREG and
64446         Unix Version 7 had S_IFREG.  We don't need to check for
64447         <sys/types.h> since we don't use any symbols that it defines.
64448
64449 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
64450
64451         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
64452         $@-t, so that each temporary file name is unique and valid in the first
64453         8 characters, for operation under DOS.
64454
64455 2002-06-15  Paul Eggert  <eggert@twinsun.com>
64456
64457         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
64458
64459 2002-06-15  Jim Meyering  <meyering@lucent.com>
64460
64461         Work even with DJGPP 2.03, which lacks support for symlinks.
64462         From Richard Dawe.
64463         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
64464         is defined.
64465         * lib/lchown.c (S_ISLNK): Likewise.
64466
64467 2002-06-15  Jim Meyering  <meyering@lucent.com>
64468
64469         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
64470         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
64471         have been included before this file.
64472
64473 2002-06-14  Jim Meyering  <meyering@lucent.com>
64474
64475         * lib/file-type.h: Use the version from diffutils-2.8.2.
64476         * lib/file-type.c: Likewise.
64477
64478 2002-06-07  Jim Meyering  <meyering@lucent.com>
64479
64480         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
64481         They're needed at least for NetBSD 1.5.2.
64482         ($statxfs_includes): Include those same headers.
64483         ($statxfs_includes): Include sys/vfs.h if available.
64484         ($statxfs_includes): Likewise for sys/statvfs.h.
64485         Check for the following members in both structs statfs and statvfs:
64486         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
64487
64488 2002-06-01  Jim Meyering  <meyering@lucent.com>
64489
64490         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
64491         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
64492
64493 2002-05-28  Jim Meyering  <meyering@lucent.com>
64494
64495         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
64496         Reported by Volker Borchert.
64497
64498 2002-05-27  Jim Meyering  <meyering@lucent.com>
64499
64500         Fix a problem seen only on nonconforming systems whereby ls.c's
64501         use of localtime, and then of gettimeofday would cause trouble:
64502         the localtime call used to initialize rpl_gettimeofday's save
64503         mechanism would clobber ls's current local time information so
64504         that in any long listing the first file would always be listed
64505         with date 1970-01-01.  Analysis by Volker Borchert.
64506
64507         * lib/gettimeofday.c (localtime): Undefine.
64508         (rpl_localtime): New function.
64509
64510 2002-05-27  Jim Meyering  <meyering@lucent.com>
64511
64512         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
64513         localtime.
64514
64515         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
64516         use the replacement function; it wouldn't resolve at link time.
64517         Reported by Volker Borchert.
64518
64519 2002-05-22  Jim Meyering  <meyering@lucent.com>
64520
64521         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
64522         file-type.h.
64523         * lib/file-type.h: New file.
64524         * lib/file-type.c (file_type): New file/function.  Extracted from
64525         diffutils.
64526
64527 2002-04-30  Jim Meyering  <meyering@lucent.com>
64528
64529         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
64530
64531 2002-04-29  Paul Eggert  <eggert@twinsun.com>
64532
64533         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
64534
64535 2002-04-29  Paul Eggert  <eggert@twinsun.com>
64536
64537         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
64538         Do not check for alloca.h (no longer used) or stdbool.h (was never
64539         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
64540
64541 2002-04-29  Paul Eggert  <eggert@twinsun.com>
64542
64543         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
64544
64545 2002-04-29  Jim Meyering  <meyering@lucent.com>
64546
64547         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
64548         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
64549         Use AC_FUNC_STRNLEN here instead.
64550
64551         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
64552         With autoconf-2.53a, it's part of AC_PROG_CC.
64553
64554 2002-04-28  Paul Eggert  <eggert@twinsun.com>
64555
64556         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
64557         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
64558
64559 2002-04-28  Paul Eggert  <eggert@twinsun.com>
64560
64561         * lib/sig2str.h, lib/sig2str.c: New files.
64562         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
64563
64564 2002-04-28  Paul Eggert  <eggert@twinsun.com>
64565
64566         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
64567         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
64568         of 127, since 64 is the largest conceivable number for ancient
64569         nonstandard hosts.
64570         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
64571
64572 2002-04-28  Jim Meyering  <meyering@lucent.com>
64573
64574         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
64575
64576 2002-04-24  Jim Meyering  <meyering@lucent.com>
64577
64578         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
64579         (jm_PREREQ): Use it.
64580
64581         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
64582         mach/mach.h fcntl.h.
64583         Check for this function: setlocale.
64584
64585 2002-04-24  Jim Meyering  <meyering@lucent.com>
64586
64587         * lib/gettext.h: New file, from Gettext.
64588         * lib/Makefile.am (INCLUDES): Remove -I../intl.
64589         (libfetish_a_SOURCES): Add gettext.h.
64590
64591 2002-04-16  Jim Meyering  <meyering@lucent.com>
64592
64593         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
64594         ut_pid, ut_id, ut_exit.
64595
64596 2002-04-16  Jim Meyering  <meyering@lucent.com>
64597
64598         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
64599         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
64600         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
64601
64602 2002-04-12  Jim Meyering  <meyering@lucent.com>
64603
64604         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
64605         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
64606         existence of the getmntinfo function.  Needed for Darwin 5.3.
64607
64608         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
64609         This is necessary at least on Darwin 5.3.
64610
64611         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
64612         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
64613         strnlen.o in the library, and that makes some versions of ranlib
64614         object.
64615
64616 2002-04-12  Jim Meyering  <meyering@lucent.com>
64617
64618         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
64619
64620 2002-04-09  Jim Meyering  <meyering@lucent.com>
64621
64622         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
64623         to be more precise.  Rather than saying we're checking whether the
64624         function `works', say what we're testing.
64625         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
64626         Reported by Bruno Haible.
64627
64628 2002-03-10  Jim Meyering  <meyering@lucent.com>
64629
64630         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
64631         Suggestion from Santiago Vila.
64632
64633 2002-03-08  Jim Meyering  <meyering@lucent.com>
64634
64635         * lib/rename.c: Mention that this wrapper is needed also on
64636         mips-dec-ultrix4.4 systems.
64637
64638 2002-03-02  Jim Meyering  <meyering@lucent.com>
64639
64640         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
64641         not HAVE_CLOCK_SETTIME.
64642
64643 2002-02-27  Paul Eggert  <eggert@twinsun.com>
64644
64645         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
64646         Check for clock_settime.
64647
64648 2002-02-27  Paul Eggert  <eggert@twinsun.com>
64649
64650         * lib/nanosleep.h: Rename to....
64651         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
64652
64653         * lib/gettime.c: New file.
64654         * lib/settime.c: New file.
64655         * lib/stime.c: Remove.
64656
64657         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
64658         timespec.h.  Remove nanosleep.h.
64659
64660 2002-02-25  Paul Eggert  <eggert@twinsun.com>
64661
64662         * m4/acl.m4: New file.
64663         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
64664         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
64665
64666 2002-02-25  Paul Eggert  <eggert@twinsun.com>
64667
64668         * lib/acl.c, lib/acl.h: New files.
64669         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
64670
64671 2002-02-24  Jim Meyering  <meyering@lucent.com>
64672
64673         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
64674         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
64675         cause trouble.  Reported by Nelson Beebe.
64676
64677 2002-02-23  Paul Eggert  <eggert@twinsun.com>
64678
64679         * lib/path-concat.c (xpath_concat): Reorder code to pacify
64680         compilers that don't know that xalloc_die never returns.
64681
64682 2002-02-20  Jim Meyering  <meyering@lucent.com>
64683
64684         * lib/getdate.c: Regenerate using bison-1.33.
64685
64686 2002-02-17  Jim Meyering  <meyering@lucent.com>
64687
64688         * config/config.guess (main): Don't use `head -1'; it's no longer
64689         portable. Use `sed 1q' instead.
64690
64691 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
64692
64693         * m4/codeset.m4: Upgrade to gettext-0.11.
64694         * m4/gettext.m4: Upgrade to gettext-0.11.
64695         * m4/glibc21.m4: Upgrade to gettext-0.11.
64696         * m4/iconv.m4: Upgrade to gettext-0.11.
64697         * m4/isc-posix.m4: Upgrade to gettext-0.11.
64698         * m4/lcmessage.m4: Upgrade to gettext-0.11.
64699         * m4/lib-ld.m4: New file, from gettext-0.11.
64700         * m4/lib-link.m4: New file, from gettext-0.11.
64701         * m4/lib-prefix.m4: New file, from gettext-0.11.
64702         * m4/progtest.m4: Upgrade to gettext-0.11.
64703
64704 2002-02-15  Paul Eggert  <eggert@twinsun.com>
64705
64706         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
64707         (jm_PREREQ): Use it.
64708
64709 2002-02-15  Paul Eggert  <eggert@twinsun.com>
64710
64711         * lib/posixver.c, lib/posixver.h: New files.
64712         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
64713
64714 2002-02-02  Paul Eggert  <eggert@twinsun.com>
64715             Bruno Haible  <bruno@clisp.org>
64716
64717         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
64718         (fwrite_success_callback): New declaration.
64719         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
64720         print_unicode_char. Call failure callback instead of error.
64721         (fwrite_success_callback): New function.
64722         (exit_failure_callback): New function.
64723         (fallback_failure_callback): New function.
64724         (print_unicode_char): Call unicode_to_mb.
64725
64726 2002-01-26  Jim Meyering  <meyering@lucent.com>
64727
64728         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
64729         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
64730
64731 2002-01-26  Jim Meyering  <meyering@lucent.com>
64732
64733         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
64734
64735 2002-01-22  Paul Eggert  <eggert@twinsun.com>
64736
64737         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
64738
64739 2002-01-22  Jim Meyering  <meyering@lucent.com>
64740
64741         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
64742         Otherwise, some versions of automake would omit the rule that makes
64743         Makefile from Makefile.in.
64744
64745 2002-01-21  Paul Eggert  <eggert@twinsun.com>
64746
64747         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
64748         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
64749         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
64750         (memcoll): Set errno to zero if there is no error.
64751
64752         * lib/quotearg.c (quotearg_buffer_restyled):
64753         Fix bug with quoting buffers containing NUL when backslashing escapes.
64754         This bug was exposed by the other changes in this patch.
64755         (quotearg_n_options): New arg ARGSIZE.
64756         All callers changed.
64757         (quoting_options_from_style): New function.
64758         (quotearg_n_style): Use it.
64759         (quotearg_n_style_mem): New function.
64760
64761         * lib/quotearg.h (quotearg_n_style_mem): New function.
64762
64763 2002-01-19  Jim Meyering  <meyering@lucent.com>
64764
64765         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
64766         Remove useless quotes: DF_PROG="df".
64767         * m4/strnlen.m4: New file.
64768
64769 2002-01-16  Paul Eggert  <eggert@twinsun.com>
64770
64771         * lib/backupfile.c (ISDIGIT): Comment fix.
64772         * lib/getdate.y (ISDIGIT): Likewise.
64773         * lib/posixtm.c (ISDIGIT, year): Likewise.
64774         * lib/strverscmp.c (ISDIGIT): Likewise.
64775         * lib/userspec.c (ISDIGIT): Likewise.
64776
64777 2002-01-16  Jim Meyering  <meyering@lucent.com>
64778
64779         * lib/getdate.y: Add three semicolons, each just before a closing
64780         brace. Bison (as of version 1.31) no longer papers over that mistake.
64781
64782 2002-01-05  Jim Meyering  <meyering@lucent.com>
64783
64784         * lib/version-etc.c (version_etc_copyright): Update copyright year.
64785
64786 2001-12-19  Paul Eggert  <eggert@twinsun.com>
64787
64788         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
64789         not silently exit merely because the output buffer happens to
64790         have nothing pending.
64791
64792 2001-12-18  Paul Eggert  <eggert@twinsun.com>
64793
64794         See the big note in ../ChangeLog.
64795         * lib/human.c (suffixes): Prefer K to k for 1024.
64796         (generate_suffix_backwards): New function.
64797         (human_readable_inexact): Use it.
64798         * lib/xstrtol.c (__xstrtol): If there is no number but there
64799         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
64800         Accept 'K' as well as 'k'.
64801
64802 2001-12-15  Jim Meyering  <meyering@lucent.com>
64803
64804         * lib/regex.h (__restrict_arr): Update from libc.
64805
64806         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
64807         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
64808         (STREQ): Define.
64809
64810 2001-12-14  Jim Meyering  <meyering@lucent.com>
64811
64812         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
64813         Suggestion from Bruno Haible.
64814
64815 2001-12-10  Jim Meyering  <meyering@lucent.com>
64816
64817         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
64818         xrealloc, Instead, include "xalloc.h".
64819         (initbuffer): Don't cast xmalloc return value to char*.
64820         (readline): Reword comment.
64821         Don't cast xrealloc return value to char*
64822         Return NULL, not 0.
64823
64824 2001-12-09  Jim Meyering  <meyering@lucent.com>
64825
64826         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
64827         about `signed and unsigned type in conditional expression'.
64828         * lib/posixtm.c (posix_time_parse): Likewise.
64829
64830         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
64831
64832         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
64833         to avoid a pedantic warning.
64834
64835         * lib/getstr.c: Don't include assert.h.
64836         (getstr): Remove warning-evoking assertions.
64837         Return -1 if offset parameter is out of bounds.
64838         Change the type of a local from int to size_t.
64839
64840         * lib/strftime.c (my_strftime_localtime_r): Include this function
64841         definition in the `#if ! HAVE_TM_GMTOFF' block.
64842
64843         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
64844         Include xalloc.h instead.
64845
64846 2001-12-02  Jim Meyering  <meyering@lucent.com>
64847
64848         * lib/tempname.c: Don't declare getenv, thus reverting the change of
64849         2001-11-18.  It's no longer necessary, now that stdlib.h is always
64850         included.
64851
64852         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
64853         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
64854
64855 2001-11-30  Akim Demaille  <akim@epita.fr>
64856
64857         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
64858         before being defined.
64859
64860 2001-11-27  Paul Eggert  <eggert@twinsun.com>
64861
64862         * lib/quotearg.h (quotearg_n, quotearg_n_style):
64863         First arg is int, not unsigned.
64864         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
64865         (SIZE_MAX, UINT_MAX): New macros.
64866         (quotearg_n_options): Abort if N is negative.
64867         Avoid overflow check on hosts where size_t is 64 bits and int
64868         is 32 bits, as overflow is impossible there.
64869         Fix off-by-one typo that caused unnecessary reallocation.
64870
64871 2001-11-27  Jim Meyering  <meyering@lucent.com>
64872
64873         * lib/tempname.c: Merge with version from libc.
64874         * lib/regex.c: Likewise.
64875
64876         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
64877         systems for which STDC_HEADERS is 0, it was not included, resulting in
64878         a warning about an integer-to-pointer conversion problem with getenv.
64879         Reported by Volker Borchert.
64880
64881 2001-11-26  Jim Meyering  <meyering@lucent.com>
64882
64883         * lib/gtod.h: Remove file.
64884         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
64885         * lib/gettimeofday.c: Don't include gtod.h.
64886         (GTOD_init): Remove function.
64887         (rpl_gettimeofday): Do its job here instead, rather than aborting.
64888         Suggestion from Volker Borchert.
64889
64890 2001-11-23  Jim Meyering  <meyering@lucent.com>
64891
64892         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
64893         it.
64894         * lib/hash.c (struct hash_table): Define it here instead.
64895
64896 2001-11-22  Jim Meyering  <meyering@lucent.com>
64897
64898         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
64899
64900 2001-11-20  Jim Meyering  <meyering@lucent.com>
64901
64902         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
64903         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
64904
64905 2001-11-19  Jim Meyering  <meyering@lucent.com>
64906
64907         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
64908         directory.  Use "conftestXXXXXX" as the template.
64909         Suggestion from Paul Eggert.
64910
64911         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
64912         immediately, so the test doesn't mistakenly hit the max-open-files
64913         limit.
64914
64915 2001-11-18  Paul Eggert  <eggert@twinsun.com>
64916
64917         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
64918         (TEMPORARIES): New macro.
64919         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
64920         removes an artificial limitation (e.g. HP-UX 10.20, where
64921         TMP_MAX is 17576).
64922
64923 2001-11-18  Jim Meyering  <meyering@lucent.com>
64924
64925         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
64926
64927 2001-11-18  Jim Meyering  <meyering@lucent.com>
64928
64929         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
64930         on SunOS 4.
64931
64932         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
64933         files will be created before anything else.
64934
64935 2001-11-17  Paul Eggert  <eggert@twinsun.com>
64936
64937         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
64938         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
64939
64940 2001-11-17  Jim Meyering  <meyering@lucent.com>
64941
64942         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
64943         Prompted by a report from Bob Proulx.
64944
64945         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
64946         Instead, require UTILS_FUNC_MKSTEMP.
64947
64948 2001-11-17  Jim Meyering  <meyering@lucent.com>
64949
64950         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
64951         Now, that's done as part of AC_FUNC_STRTOD.
64952
64953 2001-11-17  Jim Meyering  <meyering@lucent.com>
64954
64955         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
64956         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
64957         rather than group writable.  Patch by Juan F. Codagnone.
64958
64959         * lib/readtokens.c: Remove explicit declarations of xmalloc and
64960         xrealloc, Instead, include "xalloc.h".
64961
64962         * lib/mountlist.c: Include unlocked-io.h after all system headers.
64963         Remove explicit declarations of xmalloc, xrealloc,
64964         and xstrdup.  Instead, include "xalloc.h".
64965
64966         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
64967         unlocked-io.h.
64968         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
64969         Likewise.
64970         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
64971
64972         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
64973         Reported by Padraig Brady.
64974
64975         * lib/mkstemp.c: #undef mkstemp.
64976         Include config.h.
64977         (rpl_mkstemp): Rename from mkstemp.
64978         Protoize.
64979
64980 2001-11-16  Jim Meyering  <meyering@lucent.com>
64981
64982         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
64983         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
64984         determine the amount of total physical memory, use pstat_getstatic.
64985         HPUX-11 doesn't define _SC_PHYS_PAGES.
64986         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
64987         If sysconf couldn't be used to determine the amount of available
64988         physical memory, use both pstat_getstatic and pstat_getdynamic.
64989         Based on a patch from Bob Proulx.
64990
64991 2001-11-10  Jim Meyering  <meyering@lucent.com>
64992
64993         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
64994         (jm_PREREQ): Use it.
64995
64996 2001-11-09  Jim Meyering  <meyering@lucent.com>
64997
64998         * m4/jm-macros.m4: Require autoconf-2.52f.
64999         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
65000         Use these AC_-prefixed names, not the AM_-prefixed ones.
65001
65002         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
65003
65004 2001-11-05  Jim Meyering  <meyering@lucent.com>
65005
65006         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
65007
65008 2001-11-04  Jim Meyering  <meyering@lucent.com>
65009
65010         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
65011         $DEFS.
65012
65013 2001-11-03  Jim Meyering  <meyering@lucent.com>
65014
65015         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
65016         of AC_DEFUN.
65017
65018         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
65019         know the name of the variable in the macro definition.
65020
65021 2001-11-03  Jim Meyering  <meyering@lucent.com>
65022
65023         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
65024         in argmatch_to_argument call.
65025
65026         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
65027         argument.
65028
65029         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
65030         e.g., a fault due to an attempt to free a NULL pointer.
65031
65032 2001-11-01  Jim Meyering  <meyering@lucent.com>
65033
65034         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
65035         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
65036
65037 2001-11-01  Jim Meyering  <meyering@lucent.com>
65038
65039         * lib/dirfd.c, lib/dirfd.h: New files.
65040         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
65041
65042         * lib/hash.c (hash_print) [TESTING]: Clean up.
65043
65044 2001-10-22  Paul Eggert  <eggert@twinsun.com>
65045
65046         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
65047         to avoid a warning if -Wall.
65048
65049 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
65050
65051         * README: New file
65052         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
65053         (per RMS's instructions, this is now the canonical source)
65054         * lgpl/, gpl/: New directories.
65055
65056 2001-10-21  Paul Eggert  <eggert@twinsun.com>
65057
65058         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
65059
65060 2001-10-21  Jim Meyering  <meyering@lucent.com>
65061
65062         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
65063         this code would end up calling gettext even in packages built
65064         with --disable-nls.
65065         * lib/getopt.c (_): Likewise.
65066         * lib/regex.c (_): Likewise.
65067
65068 2001-10-20  Paul Eggert  <eggert@twinsun.com>
65069
65070         * m4/error.m4 (jm_PREREQ_ERROR):
65071         Do not invoke AC_CHECK_FUNCS with strerror_r, as
65072         AC_FUNC_STRERROR_R does that.
65073         Check for strerror declaration.
65074
65075         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
65076         are supposed to have them these days.
65077         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
65078         Merge changes from latest Autoconf CVS.
65079         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
65080         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
65081         POSIX decided to standardize on the int flavor of strerror_r.
65082
65083 2001-10-20  Paul Eggert  <eggert@twinsun.com>
65084
65085         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
65086         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
65087         Use strerror_r that is only a macro, even if it is not a function.
65088         (strerror): Check for HAVE_DECL_STRERROR before declaring.
65089         (private_strerror): Use prototypes, not old-style function definition.
65090         (print_errno_message): New function.
65091         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
65092         char*-flavored one.
65093         (error_tail, error, error_at_line): Use it.
65094
65095 2001-10-11  Jim Meyering  <meyering@lucent.com>
65096
65097         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
65098         and quote_n (1, ... to avoid clobbering a buffer.
65099
65100 2001-10-05  Jim Meyering  <meyering@lucent.com>
65101
65102         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
65103         hash-pjw.h.
65104         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
65105         * lib/hash-pjw.h: New file.
65106
65107 2001-09-30  Jim Meyering  <meyering@lucent.com>
65108
65109         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
65110         `struct fsstat' has the `f_fstypename' member.
65111         Use that to define FS_TYPE, which is now used to make
65112         the getfsstat link test tighter.
65113
65114 2001-09-30  Jim Meyering  <meyering@lucent.com>
65115
65116         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
65117         Include <sys/ucred.h>, for Apple Darwin.
65118         Include sys/mount.h and sys/fs_types.h only if available.
65119         (FS_TYPE): Define.
65120         (read_filesystem_list): Use FS_TYPE.
65121
65122 2001-09-29  Paul Eggert  <eggert@twinsun.com>
65123
65124         * lib/exclude.c (excluded_filename): 0 -> false, since it's
65125         a boolean context.
65126
65127 2001-09-29  Jim Meyering  <meyering@lucent.com>
65128
65129         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
65130         [one-argument getmntent function]): Include stdio.h before mntent.h.
65131         SunOS 4.1.x needs it for the declaration of `FILE'.
65132         Patch by Volker Borchert.
65133
65134         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
65135         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
65136         sys/fs_types.h, and make the link-test for getfsstat guard #include
65137         directives with appropriate #if HAVE_*_H tests so that we can
65138         detect getfsstat on Apple Darwin1.3.7 systems.
65139         Reported by Nelson Beebe.
65140         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
65141
65142 2001-09-28  Paul Eggert  <eggert@twinsun.com>
65143
65144         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
65145         #defines strtoimax.  Also treat the other strto* functions
65146         like strtoimax.
65147
65148         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
65149         Check for strtoul and strtoumax,
65150         as those declarations are made even in the signed case.
65151         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
65152         Likewise, for strtol and strtoimax.
65153
65154 2001-09-28  Paul Eggert  <eggert@twinsun.com>
65155
65156         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
65157         #defines strtoimax.  Also treat the other strto* functions
65158         like strtoimax.
65159
65160         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
65161         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
65162         (strtoimax, strtoumax): Do not declare if already defined as a macro.
65163
65164 2001-09-26  Jim Meyering  <meyering@lucent.com>
65165
65166         Most macros in unlocked-io.h had the wrong number of arguments.
65167         * lib/gen-uio: New script.
65168         (USE_UNLOCKED_IO): Define to 1 if not already defined.
65169         * lib/unlocked-io.hin: Remove file.
65170         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
65171         rather than trying to embed it here.
65172         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
65173         Reported by Padraig Brady.
65174
65175 2001-09-25  Volker Borchert  <bt@teknon.de>
65176
65177         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
65178         `result'.
65179
65180 2001-09-24  Jim Meyering  <meyering@lucent.com>
65181
65182         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
65183
65184 2001-09-23  Jim Meyering  <meyering@lucent.com>
65185
65186         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
65187         instead of the mere test for existence of mntent.h.  The latter
65188         would get a false-positive on AIX 3.4 systems.
65189         In the outer getmntent if-block, don't die if neither of the getmntent
65190         tests succeeds.  Instead, just fall through and continue with the
65191         remaining tests.
65192
65193 2001-09-23  Jim Meyering  <meyering@lucent.com>
65194
65195         * lib/mountlist.c: Remove useless parentheses in #if directives.
65196         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
65197         the deprecated MOUNTED symbol is no longer defined in mntent.h.
65198
65199 2001-09-22  Jim Meyering  <meyering@lucent.com>
65200
65201         * m4/gettext.m4: New file.  From gettext.
65202         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
65203         * m4/progtest.m4: Likewise
65204         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
65205         * m4/glibc21.m4: Likewise.
65206
65207         * m4/libintl.m4: Remove.  No longer used.
65208
65209 2001-09-22  Jim Meyering  <meyering@lucent.com>
65210
65211         * lib/localcharset.c: Update from latest gettext.
65212         * lib/config.charset: Likewise.
65213
65214 2001-09-20  Jim Meyering  <meyering@lucent.com>
65215
65216         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
65217         strtoimax.
65218         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
65219         strtoumax.
65220
65221 2001-09-20  Jim Meyering  <meyering@lucent.com>
65222
65223         * lib/xstrtol.c (strtoimax): Guard declaration with
65224         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
65225         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
65226         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
65227         (strtoumax): Likewise, for completeness (it wasn't necessary).
65228
65229 2001-09-17  Paul Eggert  <eggert@twinsun.com>
65230
65231         * lib/strtoimax.c (HAVE_LONG_LONG):
65232         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
65233         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
65234         to work around bug in IBM C compiler.
65235
65236 2001-09-17  Jim Meyering  <meyering@lucent.com>
65237
65238         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
65239         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
65240         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
65241         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
65242         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
65243         whenever the right hand side need not be expanded by the shell.
65244
65245 2001-09-16  Paul Eggert  <eggert@twinsun.com>
65246
65247         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
65248         library.  It's not correct, as some older glibcs are buggy.
65249         fnmatch wasn't fixed until glibc 2.2.
65250
65251         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
65252         special shell magic here.
65253
65254 2001-09-16  Jim Meyering  <meyering@lucent.com>
65255
65256         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
65257         * m4/jm-macros.m4: Require it.
65258
65259 2001-09-16  Jim Meyering  <meyering@lucent.com>
65260
65261         * lib/mkdir.c: New file.
65262
65263 2001-09-15  Jim Meyering  <meyering@lucent.com>
65264
65265         * m4/jm-macros.m4: Check for help2man.
65266
65267 2001-09-11  Jim Meyering  <meyering@lucent.com>
65268
65269         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
65270         The body, by Paul Eggert, was moved here from configure.in.
65271         * m4/jm-macros.m4: Require UTILS_HOST_OS.
65272
65273 2001-09-04  Paul Eggert  <eggert@twinsun.com>
65274
65275         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
65276         (jm_PREREQ): Use it.
65277
65278 2001-09-04  Paul Eggert  <eggert@twinsun.com>
65279
65280         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
65281         Use ssize_t, not int, to store result of readlink.
65282         Check for ssize_t overflow as well as size_t overflow,
65283         as POSIX says the result of readlink is implementation-defined
65284         when ssize_t overflows.
65285         Remove unnecessary cast to char*.
65286         Use free+malloc instead of realloc, as the storage doesn't need
65287         to be preserved and it's clearer and can be more efficient that way.
65288         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
65289         * lib/xreadlink.h (xreadlink): Update prototype.
65290
65291 2001-09-04  Paul Eggert  <eggert@twinsun.com>
65292
65293         * lib/xgetcwd.c: Revert some of the previous change; intead,
65294         fix the HAVE_GETCWD_NULL code to behave more like the
65295         !HAVE_GETCWD_NULL code used to.
65296
65297         Include "xalloc.h".
65298         (xgetcwd): Do not return NULL when memory is exhausted; instead,
65299         invoke xalloc_die.
65300
65301 2001-09-03  Paul Eggert  <eggert@twinsun.com>
65302
65303         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
65304         sys/param.h, as pathmax.h includes them.
65305
65306 2001-09-03  Paul Eggert  <eggert@twinsun.com>
65307
65308         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
65309         (jm_PREREQ_XGETCWD): New macro.
65310
65311         * m4/getcwd.m4: New file.
65312
65313 2001-09-03  Paul Eggert  <eggert@twinsun.com>
65314
65315         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
65316         like the HAVE_GETCWD_NULL code.
65317         Include pathmax.h if not HAVE_GETCWD.
65318         Do not include xalloc.h.
65319         (INITIAL_BUFFER_SIZE): New symbol.
65320         Do not use xmalloc / xrealloc, since the caller is responsible for
65321         handling errors.  Preserve errno around `free' during failure.
65322         Do not overrun buffer when using getwd.
65323
65324 2001-09-03  Paul Eggert  <eggert@twinsun.com>
65325
65326         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
65327         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
65328         getcwd (NULL, 0).
65329
65330 2001-09-03  Paul Eggert  <eggert@twinsun.com>
65331
65332         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
65333         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
65334         spotted by Jim Meyering.
65335
65336 2001-09-03  Jim Meyering  <meyering@lucent.com>
65337
65338         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
65339         failure.
65340
65341 2001-09-02  Jim Meyering  <meyering@lucent.com>
65342
65343         * lib/error.c: Update from GNU libc.
65344
65345 2001-09-01  Jim Meyering  <meyering@lucent.com>
65346
65347         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
65348         Used by df.
65349
65350 2001-09-01  Jim Meyering  <meyering@lucent.com>
65351
65352         * lib/xreadlink.c: New file.
65353         * lib/xreadlink.h: New file.
65354         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
65355         xreadlink.h.
65356
65357         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
65358         doesn't conflict with sparc Solaris 7's definition in
65359         /usr/include/sys/int_types.h.
65360
65361         * lib/exclude.c: Use `""', not `<>' to #include non-system header
65362         files.
65363         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
65364         and strncasecmp as r-values.  Unixware didn't have declarations.
65365
65366 2001-08-31  Paul Eggert  <eggert@twinsun.com>
65367
65368         * lib/xstrtol.h: Add copyright notice.
65369         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
65370         LONGINT_INVALID_SUFFIX_CHAR.
65371
65372 2001-08-31  Paul Eggert  <eggert@twinsun.com>
65373
65374         * lib/xstrtol.c (strtoimax): New decl.
65375
65376 2001-08-31  Paul Eggert  <eggert@twinsun.com>
65377
65378         * lib/xgetcwd.c: Don't include pathmax.h.
65379         Include stdlib.h and unistd.h if available.
65380         Include xalloc.h.
65381         (xmalloc, xstrdup, free): Remove decls.
65382         (xgetcwd): Don't assume sizes fit in unsigned.
65383         Check for overflow when computing sizes.
65384         Simplify reallocation code.
65385
65386 2001-08-31  Paul Eggert  <eggert@twinsun.com>
65387
65388         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
65389         a directory's st_size can have an arbitrary value, so the old
65390         usage could waste an arbitrary amount of memory.  All uses
65391         changed.
65392         * lib/savedir.h: Update prototype.
65393
65394 2001-08-31  Paul Eggert  <eggert@twinsun.com>
65395
65396         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
65397
65398         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
65399         old strtoimax.c.
65400
65401         Also, make the following further changes to make this file's
65402         configuration more similar to that of strtol.c:
65403         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
65404         (strtoumax, uintmax_t, strtoull, strtol): Remove.
65405         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
65406         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
65407         changed to signed values.
65408
65409         And make the following changes as well:
65410         Fix copyright notice, as 1999 was missing.
65411         (verify): New macro.
65412         (strtoimax): Check sizes at compile-time, not run-time.
65413         Prefer strtol to strtoll if both work.
65414         (main): Remove; it was not that useful and was a pain to maintain.
65415
65416         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
65417
65418 2001-08-31  Jim Meyering  <meyering@lucent.com>
65419
65420         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
65421         Use an initial, malloc'd, buffer of length 128 rather than
65422         a statically allocated one of length 1024.
65423
65424 2001-08-30  Paul Eggert  <eggert@twinsun.com>
65425
65426         Simplify code, partly by assuming autoconf 2.52 semantics.
65427
65428         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
65429
65430         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
65431         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
65432         All uses removed.
65433         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
65434         Move AC_REQUIRE to next-to-top level, to avoid confusion.
65435         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
65436         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
65437         jm_AC_HEADER_INTTYPES_H.
65438         * m4/jm-macros.m4 (jm_MACROS): Likewise.
65439
65440         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
65441
65442         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
65443         Quote first arg of AC_DEFUN.
65444         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
65445         since they are needed to parse the include file even if we need
65446         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
65447         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
65448         but with opposite signedness.
65449
65450 2001-08-30  Paul Eggert  <eggert@twinsun.com>
65451
65452         Merge 'exclude' changes from tar 1.13.22.
65453         This fixes one or two unlikely storage allocation overflow bugs,
65454         but doesn't change user-visible behavior otherwise.
65455
65456 2001-08-30  Paul Eggert  <eggert@twinsun.com>
65457
65458         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
65459         (jm_PREREQ_EXCLUDE): New macro.
65460
65461 2001-08-30  Paul Eggert  <eggert@twinsun.com>
65462
65463         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
65464         tm to be declared.
65465
65466 2001-08-30  Paul Eggert  <eggert@twinsun.com>
65467
65468         * lib/hash.c: Remove '2001' from copyright notice.
65469
65470 2001-08-30  Paul Eggert  <eggert@twinsun.com>
65471
65472         * lib/full-write.h: New file.
65473         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
65474         * lib/full-write.c: Correct credits, as cccp.c no longer
65475         exists and anyway it was so heavily changed from the old cccp
65476         code as to be unrecognizable.  Include full-write.h.
65477         (full_write) Return size_t, with short writes meaning failure.
65478         All callers changed.  This fixes a bug with large buffers
65479         on 64-bit hosts.
65480         * lib/utime.c: Include full-write.h.
65481
65482 2001-08-30  Paul Eggert  <eggert@twinsun.com>
65483
65484         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
65485         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
65486         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
65487         Include if available.
65488         (<xalloc.h>): Include
65489         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
65490         (verify): New macro.  Use it to verify that EXCLUDE macros do not
65491         collide with FNM macros.
65492         (struct patopts): New struct.
65493         (struct exclude): Use it, as exclude patterns now come with options.
65494         (new_exclude): Support above changes.
65495         (new_exclude, add_exclude_file):
65496         Initial size must now be a power of two to simplify overflow checking.
65497         (free_exclude, fnmatch_no_wildcards): New function.
65498         (excluded_filename): No longer requires options arg, as the options
65499         are determined by add_exclude.  Now returns bool, not int.
65500         (excluded_filename, add_exclude):
65501         Add support for the fancy new exclusion options.
65502         (add_exclude, add_exclude_file): Now takes int options arg.
65503         Check for arithmetic overflow when computing sizes.
65504         (add_exclude_file): xrealloc might modify errno, so don't
65505         realloc until after errno might be used.
65506
65507         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
65508         New macros.
65509         (free_exclude): New decl.
65510         (add_exclude, add_exclude_file): Now takes int options arg.
65511         (excluded_filename): No longer requires options arg, as the options
65512         are determined by add_exclude.  Now returns bool, not int.
65513
65514 2001-08-30  Paul Eggert  <eggert@twinsun.com>
65515
65516         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
65517
65518 2001-08-27  Jim Meyering  <meyering@lucent.com>
65519
65520         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
65521
65522         * lib/version-etc.c (N_): Remove definition.
65523         Revert most of last change.
65524         Instead, simply don't mark the `Copyright...' string for translation.
65525         Based on advice from Paul Eggert.
65526
65527         * lib/strtoxmax.c: Tweak comment.
65528
65529 2001-08-26  Jim Meyering  <meyering@lucent.com>
65530
65531         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
65532
65533         * m4/xstrtoimax.m4: New file.
65534         * m4/xstrtoumax.m4: Add comments explaining why we
65535         AC_REPLACE_FUNCS(strtol).
65536
65537 2001-08-26  Jim Meyering  <meyering@lucent.com>
65538
65539         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
65540         of copyright with `%s' so translators don't get an untranslated
65541         message in 2002.
65542         (COPYRIGHT_YEAR): Define.
65543         (version_etc): Use fprintf rather than fputs.
65544         Suggestion from Ulrich Drepper.
65545
65546         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
65547
65548         * lib/strtoll.c: New file, from GNU libc.
65549         * lib/xstrtoimax.c: New file.
65550
65551         * lib/xstrtol.h: Add xstrtoimax.
65552         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
65553         * lib/strtoimax.c: New file.  Likewise, but first define
65554         STRTOUXMAX_SIGNED.
65555
65556         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
65557         ...
65558         * lib/strtoxmax.c: ... then renamed to this.
65559
65560 2001-08-18  Paul Eggert  <eggert@twinsun.com>
65561
65562         * m4/inttypes.m4: Add AC_PREREQ(2.13).
65563         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
65564         (jm_AC_TYPE_INTMAX_T): New macro.
65565         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
65566
65567         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
65568
65569         * m4/longlong.m4: Renamed from ulonglong.m4.
65570         * m4/inttypes.m4: Renamed from inttypes_h.m4.
65571         * m4/uintmax_t.m4: Removed.
65572
65573 2001-08-13  Paul Eggert  <eggert@twinsun.com>
65574
65575         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
65576         Port to Solaris 8, where 'sed' requires a space after the 'r'
65577         command, and where sh dislikes "$/".  Clean up the spacing a bit.
65578         Redirect output to $tmp just once.
65579
65580 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
65581
65582         * lib/addext.c (<errno.h>): Include.
65583         (errno): Declare if not defined.
65584         (addext): Work correctly when pathconf returns -1 and leaves
65585         errno alone because there is no limit.  Also, work even if
65586         pathconf returns a value greater than SIZE_MAX.
65587
65588 2001-08-12  Jim Meyering  <meyering@lucent.com>
65589
65590         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
65591         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
65592         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
65593         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
65594         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
65595         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
65596         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
65597         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
65598         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
65599         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
65600         utime.m4, utimes.m4, xstrtoumax.m4:
65601         Quote the first argument in each use of AC_DEFUN.
65602
65603 2001-08-12  Jim Meyering  <meyering@lucent.com>
65604
65605         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
65606         Simply `return getcwd (NULL, 0);'.
65607         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
65608         Use 1300 as initial value for length, not PATH_MAX.
65609
65610         * lib/pathmax.h: Clean up cpp syntax.
65611
65612 2001-08-12  Jim Meyering  <meyering@lucent.com>
65613
65614         * lib/gettimeofday.c: New file.
65615         * lib/gtod.h: New file.
65616         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
65617
65618 2001-08-05  Jim Meyering  <meyering@lucent.com>
65619
65620         * m4/jm-macros.m4: Require autoconf-2.52.
65621
65622 2001-08-04  Jim Meyering  <meyering@lucent.com>
65623
65624         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
65625         stmt, to get in sync with glibc.
65626
65627 2001-08-03  Paul Eggert  <eggert@twinsun.com>
65628
65629         The following changes are from gettext 0.10.39 as maintained by
65630         Bruno Haible.
65631
65632         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
65633         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
65634         with inverted sense.  All uses changed.
65635
65636         * lib/mbswidth.c: Don't include <limits.h>.
65637         Include <stdlib.h> and <string.h> unconditionally.
65638         (iswcntrl, mbsinit, ISCNTRL): New macros.
65639         (mbsnwidth): Use K&R style function declarations.
65640         Don't bother checking for MB_LEN_MAX == 1, since the compiler
65641         can optimize it when MB_CUR_MAX == 1.
65642         The width of control characters is zero, not 1.
65643
65644 2001-08-03  Paul Eggert  <eggert@twinsun.com>
65645
65646         The following changes are from gettext 0.10.39 as maintained by
65647         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
65648
65649         * m4/codeset.m4: Upgrade to serial AM1.
65650         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
65651         all uses changed.  Quote first arg of AC_DEFUN.
65652         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
65653
65654         * m4/iconv.m4: Upgrade to serial AM2.
65655         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
65656         Add --with-libconv-prefix.
65657         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
65658         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
65659         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
65660         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
65661         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
65662
65663         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
65664         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
65665         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
65666         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
65667         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
65668         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
65669         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
65670         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
65671         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
65672
65673         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
65674         string.h any more.
65675
65676         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
65677         not the default value.
65678
65679         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
65680         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
65681         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
65682         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
65683         Also check for iswcntrl, used for wcwidth fallback.
65684         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
65685         to Autoconf 2.13.
65686
65687 2001-08-03  Jim Meyering  <meyering@lucent.com>
65688
65689         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
65690         as it was in the original.  Reported by Paul Eggert.
65691
65692 2001-07-16  Jim Meyering  <meyering@lucent.com>
65693
65694         * m4/gettimeofday.m4: New file.
65695         Prompted by a report from Bernhard Baehr.
65696
65697 2001-07-15  Jim Meyering  <meyering@lucent.com>
65698
65699         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
65700         stuff. Now it's in ../Makefile.cfg.
65701
65702 2001-07-15  Jim Meyering  <meyering@lucent.com>
65703
65704         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
65705         (BUILT_SOURCES): Add unlocked-io.h.
65706         (io_functions): Define.
65707         (unlocked-io.h): New rule.
65708         (DISTCLEANFILES): Add unlocked-io.h.
65709         (all-local): Depend on unlocked-io.h, to ensure it is created.
65710
65711         * lib/unlocked-io.hin: New file
65712
65713         * lib/regex.c: Update from glibc.
65714
65715 2001-07-05  Jim Meyering  <meyering@lucent.com>
65716
65717         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
65718         recommendation.
65719         (libfetish_a_SOURCES): Put all .h files here instead.
65720         Remove a thus-exposed (better checks in automake) duplicate and
65721         two unnecessary .h files.
65722
65723 2001-07-04  Jim Meyering  <meyering@lucent.com>
65724
65725         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
65726         that generates jm-glibc-io.m4 so that it doesn't trigger any make
65727         distcheck failure.
65728
65729 2001-07-02  Jim Meyering  <meyering@lucent.com>
65730
65731         The following changes were prompted by suggestions from Bruno Haible.
65732
65733         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
65734         is now generated.
65735         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
65736         definition of EXTRA_DIST.
65737         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
65738         ensure that the generated file is created/updated whenever the list
65739         of $(unlocked_functions) is changed.
65740         (jm-glibc-io.m4): New rule.
65741         (unlocked-io.h): New rule -- currently unused.
65742
65743 2001-06-24  Jim Meyering  <meyering@lucent.com>
65744
65745         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
65746         unmatched right bracket, rather than kludging it with an extra,
65747         falsely-matching quote in a comment.  Patch by Akim Demaille.
65748
65749 2001-06-11  Jim Meyering  <meyering@lucent.com>
65750
65751         * lib/regex.c: Update from GNU libc.
65752
65753 2001-05-27  Jim Meyering  <meyering@lucent.com>
65754
65755         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
65756         Check for ut_type in struct utmp.
65757
65758 2001-05-27  Jim Meyering  <meyering@lucent.com>
65759
65760         * lib/readutmp.h (UT_TYPE): Define.
65761
65762 2001-05-24  Jim Meyering  <meyering@lucent.com>
65763
65764         * lib/argmatch.c: Include "quote.h".
65765         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
65766         quote function.  Reported by Göran Uddeborg.
65767
65768 2001-05-22  Jim Meyering  <meyering@lucent.com>
65769
65770         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
65771         now that we use the package-supplied version unconditionally.
65772         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
65773
65774 2001-05-21  Jim Meyering  <meyering@lucent.com>
65775
65776         * m4/regex.m4: Change a couple backticks to single quotes to avoid
65777         shell syntax errors.
65778
65779 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
65780
65781         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
65782
65783 2001-05-20  Paul Eggert  <eggert@twinsun.com>
65784
65785         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
65786         Don't bother to check library strftime, since
65787         we'll be using our own my_strftime function anyway.
65788         Define my_strftime instead of strftime.
65789
65790 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
65791
65792         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
65793         which is not yet declared.
65794
65795 2001-05-15  Jim Meyering  <meyering@lucent.com>
65796
65797         * m4/regex.m4: Use proper quoting so brackets appear in the test
65798         program.
65799         Reported by, and with help from, Bruno Haible.
65800
65801 2001-05-13  Jim Meyering  <meyering@lucent.com>
65802
65803         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
65804         undefined.
65805
65806 2001-05-11  Paul Eggert  <eggert@twinsun.com>
65807
65808         dirname code cleanup.  base_name now behaves more compatibly
65809         with POSIX basename when given file names that have trailing
65810         slashes, and similarly for dir_name.  Add new primitives
65811         base_len and dir_len.  Put the directory-name-related decls
65812         into dirname.h.
65813
65814         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
65815         * lib/backupfile.c (base_name): Likewise.
65816         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
65817         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
65818         * lib/makepath.c (strip_trailing_slashes): Likewise.
65819         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
65820         ISSLASH): Likewise.
65821         * lib/rename.c (strip_trailing_slashes): Likewise.
65822         * lib/same.c (base_name): Likewise.
65823         * lib/stripslash.c (ISSLASH): Likewise.
65824
65825         * lib/addext.c: Include <dirname.h> after size_t is defined.
65826         * lib/backupfile.c: Likewise.
65827
65828         * lib/addext.c (addext): Use base_len to trim redundant
65829         trailing slashes instead of doing it ourselves.
65830         But do not trim the last slash if it is not redundant.
65831
65832         * lib/backupfile.c (find_backup_file_name,
65833         max_backup_version): Use base_len instead of rolling it ourselves.
65834         Handle the case of "" and (on DOS) "C:" correctly.
65835
65836         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
65837         needed. Include <string.h>, <dirname.h>.
65838         (base_name): Allow file names ending in slashes, other than names
65839         that are all slashes.  In this case, return the basename followed
65840         by the slashes.  This is more general, and can be used in places
65841         where the original base_name purposely had an assertion failure.
65842         (base_len): New function.
65843
65844         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
65845         Do not include <assert.h>; no longer needed.
65846         Include xalloc.h.
65847         (memrchr): Remove decl.
65848         (dir_name_r): Remove.
65849         (dir_len): Renamed from dirlen.  All callers changed.
65850         Rewrite in terms of base_name, for simplicity and consistency.
65851         (dir_name): Never return NULL.  All callers changed.
65852         Do not include <stdlib.h> in test program; no longer needed.
65853         return 0; is fine for test program.
65854
65855         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
65856         New macros.
65857         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
65858
65859         * lib/path-concat.c (path_concat): Use base_len to compute
65860         base length, not strlen; this means we cannot rely on memcpy
65861         to null-terminate.
65862
65863         * lib/same.c (STREQ): Remove.
65864         (same_name): Handle the case where the basename ends in trailing '/'.
65865
65866         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
65867         a slash was stripped.  Do not strip the last slash after a
65868         file system prefix.
65869
65870 2001-05-11  Paul Eggert  <eggert@twinsun.com>
65871
65872         * lib/Makefile.am (libfetish_a_SOURCES):
65873         Add strftime.c, since we now compile it on all hosts.
65874
65875         * lib/strftime.c (my_strftime):
65876         Define to nstrftime if emacs, but only if my_strftime is not defined.
65877         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
65878         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
65879         Add one more extra argument: a nanoseconds value.
65880         All uses changed.
65881         (ns): New macro.
65882         (my_strftime function): Add %N format.
65883         (emacs_strftimeu): Renamed from emacs_strftime,
65884         with extra ut argument.
65885
65886 2001-05-09  Paul Eggert  <eggert@twinsun.com>
65887
65888         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
65889
65890 2001-04-21  Jim Meyering  <meyering@lucent.com>
65891
65892         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
65893         doesn't interfere.
65894
65895 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
65896
65897         * m4/ftruncate.m4: Check for chsize.
65898         Link with ftruncate.o unconditionally if ftruncate is missing.
65899         This was required when cross-compiling to i586-mingw32msvc.
65900
65901 2001-04-08  Jim Meyering  <meyering@lucent.com>
65902
65903         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
65904         recomputed; that's necessary when the offset spans a DST transition.
65905         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
65906
65907 2001-04-02  Jim Meyering  <meyering@lucent.com>
65908
65909         * lib/regex.h, regex.c: Update from GNU libc.
65910
65911 2001-03-24  Jim Meyering  <meyering@lucent.com>
65912
65913         * m4/jm-macros.m4: Require autoconf-2.49d.
65914
65915 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
65916
65917         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
65918
65919 2001-03-19  Paul Eggert  <eggert@twinsun.com>
65920
65921         * lib/version-etc.c (version_etc_copyright): Update to 2001.
65922
65923 2001-03-17  Jim Meyering  <meyering@lucent.com>
65924
65925         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
65926         now that the version in autoconf is equivalent.
65927         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
65928
65929         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
65930         Suggestion from Akim Demaille.
65931
65932         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
65933         (jm_PREREQ_TEMPNAME): New function.
65934
65935 2001-03-16  Paul Eggert  <eggert@twinsun.com>
65936
65937         * lib/tempname.c (uint64_t): Define to uintmax_t if
65938         not defined, and if UINT64_MAX is not defined.
65939         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
65940         Reported by John David Anglin.
65941
65942 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
65943
65944         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
65945         resolve alias if codeset is empty.
65946         * lib/config.charset (BeOS): Use wildcard syntax.
65947
65948 2001-03-13  Jim Meyering  <meyering@lucent.com>
65949
65950         * lib/path-concat.c (path_concat)
65951         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
65952         concatenating e.g., `C:' and `foo'.
65953         From Bruno Haible.
65954
65955 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
65956
65957         * lib/localcharset.c (locale_charset): Don't use
65958         setlocale(LC_CTYPE,NULL). Don't return NULL.
65959         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
65960
65961 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
65962
65963         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
65964         support for DOS/DJGPP.
65965
65966 2001-03-01  Paul Eggert  <eggert@twinsun.com>
65967
65968         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
65969         lacks mkstemp.  Compile our own tempname.c if we compile our own
65970         mkstemp.c, as mkstemp relies on tempname.
65971
65972 2001-03-01  Jim Meyering  <meyering@lucent.com>
65973
65974         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
65975         AH_VERBATIM really does output its argument verbatim.
65976
65977 2001-02-28  Paul Eggert  <eggert@twinsun.com>
65978
65979         * lib/Makefile.am (libfetish_a_SOURCES):
65980         Add dup-safer.c, fopen-safer.c.
65981         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
65982
65983         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
65984         * lib/unistd-safer.h: New files.
65985
65986 2001-02-25  Paul Eggert  <eggert@twinsun.com>
65987
65988         The mkstemp replacement is taken from glibc 2.2.2, with some
65989         portability fixes for use outside glibc, as follows:
65990
65991         * lib/tempname.c (struct_stat64): New macro.
65992         (direxists, __gen_tempname): Use it.
65993         This avoids a portability problem with Solaris 8.
65994
65995         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
65996         (<stddef.h>, <stdint.h>, <string.h>):
65997         Include only if STDC_HEADERS || _LIBC.
65998         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
65999         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
66000         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
66001         (__set_errno): Define this macro if <errno.h> doesn't.
66002         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
66003         Define these macros if <stdio.h> doesn't.
66004         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
66005         Define these macros if <sys/stat.h>
66006         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
66007         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
66008         __xstat64): Define if not _LIBC.
66009         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
66010         (__gen_tempname): Invoke gettimeofday only if
66011         HAVE_GETTIMEOFDAY || _LIBC;
66012         otherwise, fall back on plain "time".
66013         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
66014
66015         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
66016
66017         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
66018
66019 2001-02-18  Paul Eggert  <eggert@twinsun.com>
66020
66021         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
66022
66023 2001-02-17  Paul Eggert  <eggert@twinsun.com>
66024
66025         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
66026         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
66027         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
66028         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
66029
66030 2001-02-17  Paul Eggert  <eggert@twinsun.com>
66031
66032         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
66033         Remove workaround macros for hosts that have mbrtowc but not
66034         mbstate_t, as we now insist on proper declarations for both
66035         before using mbrtowc.
66036
66037 2001-02-17  Jim Meyering  <meyering@lucent.com>
66038
66039         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
66040         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
66041         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
66042         UnixWare 7.1.1.
66043
66044         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
66045         rather than AC_CACHE_VAL.
66046
66047 2001-02-17  Jim Meyering  <meyering@lucent.com>
66048
66049         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
66050         around included file name.
66051
66052         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
66053
66054         * lib/strftime.c: Update from GNU libc (the only changes were to
66055         comments).
66056
66057 2001-02-17  Jim Meyering  <meyering@lucent.com>
66058
66059         * lib/regex.c: Update from libc.
66060
66061 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
66062
66063         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
66064         clash.
66065
66066 2001-02-16  Paul Eggert  <eggert@twinsun.com>
66067
66068         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
66069         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
66070         Reported by Mark Hounschell via Paul Eggert.
66071
66072 2001-02-07  Jim Meyering  <meyering@lucent.com>
66073
66074         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
66075
66076 2001-02-05  Jim Meyering  <meyering@lucent.com>
66077
66078         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
66079         it includes the patch required for `large file' support with at least
66080         HP-UX's 10.20 /bin/cc.
66081
66082 2001-02-03  Jim Meyering  <meyering@lucent.com>
66083
66084         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
66085         AS_IF, now that it works once again (mysteriously).
66086         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
66087
66088 2001-01-30  Jim Meyering  <meyering@lucent.com>
66089
66090         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
66091         * m4/chown.m4: Rename conftestchown to conftest.chown.
66092         * m4/rename.m4: s/conftestdir/conftest.d1/ and
66093         s/conftestdir2/conftest.d2/.
66094         * m4/utimes.m4: s/conftestdata/conftest.data/
66095         Inspired by Pavel Roskin's change in autoconf.
66096
66097 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
66098
66099         * lib/config.charset: Update for FreeBSD 4.2.
66100
66101 2001-01-27  Jim Meyering  <meyering@lucent.com>
66102
66103         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
66104         a use of AS_IF.
66105         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
66106
66107 2001-01-26  Jim Meyering  <meyering@lucent.com>
66108
66109         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
66110         quotearg.c includes it.
66111
66112 2001-01-26  Jim Meyering  <meyering@lucent.com>
66113
66114         * lib/quotearg.c: Include stddef.h.
66115         * lib/quote.c: Include stddef.h.
66116         Reported by Axel Kittenberger.
66117
66118         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
66119         line in double quotes so that it evokes a better diagnostic.
66120         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
66121         Reported by Axel Kittenberger.
66122
66123 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
66124
66125         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
66126         as if it was a `charset'.
66127
66128 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
66129
66130         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
66131         has const.
66132
66133 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
66134
66135         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
66136         to avoid a warning.  Add back 'const' to inptr.
66137
66138 2001-01-20  Jim Meyering  <meyering@lucent.com>
66139
66140         Be sure that headers are checked before used in code compiled
66141         for the type checks.
66142         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
66143         In place of that, invoke jm_CHECK_ALL_TYPES.
66144         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
66145         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
66146         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
66147         The check for ssize_t was mistakenly run before the test for unistd.h.
66148
66149         The configure-time check for stdbool.h was missing.
66150         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
66151         (jm_PREREQ_HASH): New function.
66152
66153 2001-01-17  Jim Meyering  <meyering@lucent.com>
66154
66155         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
66156         for autoconf-2.49c.
66157         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
66158
66159 2001-01-16  Jim Meyering  <meyering@lucent.com>
66160
66161         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
66162         From Bruno Haible.
66163
66164 2001-01-14  Jim Meyering  <meyering@lucent.com>
66165
66166         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
66167         foo and bar.  Create conftestdir/ in the script, not in the C code.
66168         Remove directories in the script, not in the C code.
66169         Remove conftestdir{,2} before trying to create the directory.
66170         Make the entire configure script fail if the mkdir fails.
66171
66172 2001-01-14  Jim Meyering  <meyering@lucent.com>
66173
66174         * lib/rename.c: New file.  From Volker Borchert.
66175         Include stdlib.h, string.h or strings.h, and xalloc.h.
66176         Use strip_trailing_slashes rather than open-coding it.
66177
66178 2001-01-03  Paul Eggert  <eggert@twinsun.com>
66179
66180         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
66181
66182 2001-01-03  Jim Meyering  <meyering@lucent.com>
66183
66184         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
66185         of local `inptr' to avoid warning with some system declarations of
66186         iconv.
66187
66188 2001-01-02  Volker Borchert  <bt@teknon.de>
66189
66190         * m4/rename.m4: New file.
66191         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
66192
66193 2001-01-01  Jim Meyering  <meyering@lucent.com>
66194
66195         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
66196         even on systems with utmpx.h.  It's necessary for the declaration of
66197         utmp's ut_user member.  Reported by Andreas Jaeger.
66198
66199         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
66200         available. They are required for the declarations of getgrgid and
66201         getpwuid resp.
66202         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
66203         Reported by Andreas Jaeger.
66204
66205 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
66206
66207         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
66208         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
66209         so `make install' also works in VPATH builds.
66210
66211 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
66212
66213         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
66214         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
66215         can be used in subdirectories.
66216
66217 2000-12-29  Paul Eggert  <eggert@twinsun.com>
66218
66219         * lib/modechange.c: Do not assume that mode_t uses the
66220         traditional octal encoding.  E.g. "chmod 1 FOO" should set
66221         the other-execute bit of FOO even if S_IXOTH != 1.
66222
66223         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
66224         WOTH, XOTH, ALLM): New macros.
66225         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
66226          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
66227         Use them.
66228         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
66229         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
66230         (mode_compile):
66231         No need to use uintmax_t; unsigned long is long enough.
66232         Don't bother to get suffix since we don't use it.
66233
66234 2000-12-26  Jim Meyering  <meyering@lucent.com>
66235
66236         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
66237         better with autoheader.
66238
66239 2000-12-24  Jim Meyering  <meyering@lucent.com>
66240
66241         * lib/hash.c (is_prime): Return explicit boolean values.
66242         (hash_get_first): Return NULL to appease Irix5.6's 89.
66243         Reported by Nelson Beebe.
66244
66245 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
66246
66247         * lib/localcharset.c (locale_charset): Add support for Win32.
66248
66249 2000-12-18  Paul Eggert  <eggert@twinsun.com>
66250
66251         * lib/physmem.h, lib/physmem.c: New files.
66252
66253         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
66254         (noinst_HEADERS): Add physmem.h.
66255
66256         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
66257         't' for compatibility with Solaris 8 sort.
66258
66259 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
66260
66261         * lib/config.charset: Add support for BeOS.
66262
66263 2000-12-17  Jim Meyering  <meyering@lucent.com>
66264
66265         * m4/dos.m4 (jm_AC_DOS): New file and macro.
66266         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
66267
66268 2000-12-16  Jim Meyering  <meyering@lucent.com>
66269
66270         This bug had a serious impact on chown: `chown N:M FILE' (for integer
66271         N and M) would have treated it like `chown N:N FILE'.
66272
66273         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
66274
66275 2000-12-16  Jim Meyering  <meyering@lucent.com>
66276
66277         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
66278         SHELLS_FILE to a file name that's useful on djgpp systems.
66279         Include stdlib.h.
66280         (ADDITIONAL_DEFAULT_SHELLS): Define.
66281         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
66282         Based mostly on a patch from Prashant TR.
66283
66284 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
66285
66286         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
66287         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
66288         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
66289
66290 2000-12-08  Andreas Schwab  <schwab@suse.de>
66291
66292         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
66293         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
66294
66295 2000-12-07  Jim Meyering  <meyering@lucent.com>
66296
66297         * lib/stripslash.c (ISSLASH): Define.
66298         (strip_trailing_slashes): Use ISSLASH rather than comparing against
66299         `/'.
66300         From Prashant TR.
66301
66302         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
66303         (dir_name_r): Declare this function as static.
66304         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
66305         manifest itself on a name containing a mix of slashes and
66306         backslashes.
66307         Make this function work with names starting with a DOS-style
66308         drive letter and colon prefix.
66309         (dir_name): Append `.' if necessary.
66310         Based mostly on patches from Prashant TR and Eli Zaretskii.
66311
66312         * lib/dirname.h (dir_name_r): Remove prototype.
66313
66314 2000-12-06  Paul Eggert  <eggert@twinsun.com>
66315
66316         * m4/off_t-format.m4: Remove this file.
66317         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
66318
66319 2000-12-06  Jim Meyering  <meyering@lucent.com>
66320
66321         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
66322         replacement strtoull, we may well need the replacement strtoul, too.
66323         Check for declarations of strtoul and strtoull.
66324         Check for strtol.  Mainly as a cue to cause automake to include
66325         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
66326         Check for limits.h -- strtol.c needs it.
66327
66328 2000-12-05  Jim Meyering  <meyering@lucent.com>
66329
66330         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
66331
66332 2000-12-04  Jim Meyering  <meyering@lucent.com>
66333
66334         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
66335         Also include memory.h, stdlib.h, unistd.h if appropriate.
66336         Reported by Andreas Jaeger (conflicting declaration of malloc).
66337
66338 2000-12-02  Jim Meyering  <meyering@lucent.com>
66339
66340         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
66341         * m4/jm-macros.m4 (jm_MACROS): require it.
66342
66343 2000-12-02  Jim Meyering  <meyering@lucent.com>
66344
66345         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
66346
66347 2000-12-01  Paul Eggert  <eggert@twinsun.com>
66348
66349         * lib/memrchr.c: Include <config.h> before any system include file.
66350
66351 2000-11-30  Jim Meyering  <meyering@lucent.com>
66352
66353         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
66354
66355 2000-11-30  Jim Meyering  <meyering@lucent.com>
66356
66357         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
66358
66359 2000-11-29  Paul Eggert  <eggert@twinsun.com>
66360
66361         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
66362
66363 2000-11-26  Jim Meyering  <meyering@lucent.com>
66364
66365         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
66366
66367 2000-11-22  Paul Eggert  <eggert@twinsun.com>
66368
66369         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
66370         size of (size_t) -1; it's not portable.
66371
66372 2000-11-17  Jim Meyering  <meyering@lucent.com>
66373
66374         * lib/strstr.c: Update from GNU libc.
66375
66376 2000-11-17  Akim Demaille  <akim@epita.fr>
66377
66378         * lib/obstack.h: Formatting changes.
66379         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
66380         prevent type checking.
66381         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
66382         cast the value to (void *): assigning a `foo *' to a `void *'
66383         variable is valid.
66384         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
66385
66386 2000-11-16  Jim Meyering  <meyering@lucent.com>
66387
66388         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
66389
66390 2000-11-11  Jim Meyering  <meyering@lucent.com>
66391
66392         * lib/error.c: Add a couple #includes, merging from GNU libc version.
66393
66394 2000-11-10  Jim Meyering  <meyering@lucent.com>
66395
66396         * lib/obstack.h: Update from GNU libc.
66397         * lib/obstack.c: Likewise.
66398
66399 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
66400
66401         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
66402
66403 2000-11-06  Paul Eggert  <eggert@twinsun.com>
66404
66405         * lib/getusershell.c (setusershell): Use rewind rather than
66406         fseek/fseeko, to avoid configuration hassles with fseeko.
66407         Don't bother opening SHELLS_FILE if shellstream is NULL;
66408         it's not necessary.
66409
66410 2000-11-05  Jim Meyering  <meyering@lucent.com>
66411
66412         * lib/makepath.h (make_dir): Declare.
66413         * lib/makepath.c (make_dir): Remove `static' attribute.
66414         Tweak a comment.
66415
66416 2000-11-04  Jim Meyering  <meyering@lucent.com>
66417
66418         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
66419
66420 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
66421
66422         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
66423         last one in a bucket, advance to the next bucket.
66424
66425 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
66426
66427         * lib/fnmatch.c: Do not comment out all the code if we are using
66428         the GNU C library, because in some cases we are replacing buggy
66429         code in the GNU C library itself.
66430
66431 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
66432
66433         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
66434         (regex_compile): Catch bogus \(\1\).
66435
66436 2000-10-30  Paul Eggert  <eggert@twinsun.com>
66437
66438         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
66439         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
66440         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
66441
66442 2000-10-30  Paul Eggert  <eggert@twinsun.com>
66443
66444         * lib/error.h, getline.h, modechange.h:
66445         Remove "2000" from Copyright line, as the file hasn't been
66446         changed this year other than in the copyright notice.
66447
66448         * lib/xalloc.h: Add "2000" to Copyright line, as this file
66449         was changed this year.
66450
66451 2000-10-29  Jim Meyering  <meyering@lucent.com>
66452
66453         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
66454         renaming.
66455         * m4/ls-mntd-fs.m4: Likewise
66456
66457 2000-10-29  Jim Meyering  <meyering@lucent.com>
66458
66459         * lib/xstat.in: Fix grammar in comment.
66460
66461 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
66462
66463         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
66464         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
66465         doesn't define __restrict_arr.
66466
66467 2000-10-28  Jim Meyering  <meyering@lucent.com>
66468
66469         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
66470         (jm_PREREQ_MEMCHR): New function.
66471
66472 2000-10-28  Jim Meyering  <meyering@lucent.com>
66473
66474         * lib/memchr.c: Update from libc.
66475         Adjust for portability:
66476         [HAVE_STDLIB_H]: Include stdlib.h.
66477         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
66478         Undef __memchr, too.
66479         [!weak_alias]: Define __memchr to memchr.
66480
66481         * lib/regex.c: Update from libc.
66482         * lib/regex.h: Likewise.
66483         * lib/getopt1.c: Likewise.
66484         * lib/memcmp.c: Likewise.
66485
66486         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
66487         Avoid using fseek, when possible -- it's broken by design.
66488         Patch by Ulrich Drepper.
66489
66490 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
66491
66492         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
66493         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
66494         Giving in to popular pressure to shut up the compiler with casts.
66495
66496 2000-10-26  Jim Meyering  <meyering@lucent.com>
66497
66498         * lib/strftime.c: Update from libc.
66499
66500 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
66501
66502         * regex.c: More `unsigned char' -> `re_char' changes.
66503         Also change several `int' into `re_wchar_t'.
66504         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
66505         (PUSH_FAILURE_POINTER): Don't cast any more.
66506         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
66507         We want GCC to complain, since this piece of code makes
66508         re_match non-reentrant, which *should* be fixed.
66509         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
66510         (EXTEND_BUFFER): Use RETALLOC.
66511         (SET_LIST_BIT): Don't cast.
66512         (re_wchar_t): New type.
66513         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
66514         that those two functions will always properly return.
66515         (IMMEDIATE_QUIT_CHECK): Cast to void.
66516         (analyse_first): Use recursion rather than an explicit stack.
66517         (re_compile_fastmap): Can't fail anymore.
66518         (re_search_2): Don't check re_compile_fastmap for failure.
66519         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
66520         Now also sets the new value (passed in a new argument).
66521         (re_match_2_internal): Use it.
66522         Also, use a new var `reg' of type size_t when looping through regs
66523         rather than reuse the inappropriate `mcnt'.
66524
66525 2000-10-25  Jim Meyering  <meyering@lucent.com>
66526
66527         * lib/obstack.c: Update from libc.
66528
66529 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
66530
66531         * regex.c (regex_compile): Change the way of handling a range from
66532         a char less than 256 to a char not less than 256.
66533
66534 2000-10-24  Andrew Innes  <andrewi@gnu.org>
66535
66536         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
66537         NT-Emacs only.
66538         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
66539         so that re_search functions only quit when callers expect them to.
66540
66541 2000-10-23  Jim Meyering  <meyering@lucent.com>
66542
66543         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
66544         wrong.  That set_locale call must not have any side effects.
66545         From Paul Eggert.
66546
66547 2000-10-22  Jim Meyering  <meyering@lucent.com>
66548
66549         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
66550         [CYCLIC]: Remove now-unused definition.
66551
66552         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
66553         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
66554         Suggestion from Ulrich Drepper.
66555
66556 2000-10-21  Jim Meyering  <meyering@lucent.com>
66557
66558         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
66559         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
66560         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
66561
66562 2000-10-21  Jim Meyering  <meyering@lucent.com>
66563
66564         * lib/dirname.c (memrchr): Declare if necessary.
66565         (dir_name): Remove the restriction that there be no
66566         trailing slashes.  Now, this code skips past them, effectively
66567         ignoring them.
66568         [TEST_DIRNAME] (main): New unit tests.
66569
66570         * lib/memrchr.c: New file from GNU libc.
66571         Undef __memrchr, too.
66572         [!weak_alias]: Define __memrchr to memrchr.
66573         Guard weak_alias use with `#ifdef weak_alias'.
66574
66575 2000-10-21  Jim Meyering  <meyering@lucent.com>
66576
66577         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
66578         (dir_name): Use dir_name_r.
66579         * lib/dirname.h (dir_name_r): Declare it.
66580
66581 2000-10-17  Jim Meyering  <meyering@lucent.com>
66582
66583         * lib/quote.h (PARAMS): Define and use.
66584         Reported by Akim Demaille.
66585
66586         * lib/getopt.c: Update from libc.
66587
66588 2000-10-16  Jim Meyering  <meyering@lucent.com>
66589
66590         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
66591         setlocale.
66592         From Jan Fedak.
66593
66594 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
66595
66596         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
66597
66598 2000-09-25  Jim Meyering  <meyering@lucent.com>
66599
66600         * lib/md5.h (rol): Define (from GnuPG).
66601
66602         * lib/sha.c: Give credit (GnuPG) where due.
66603         (M): Use rol rather than open-coding it.
66604         Add a FIXME comment.
66605
66606 2000-09-21  Jim Meyering  <meyering@lucent.com>
66607
66608         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
66609         Reported by Michael Stone.
66610
66611 2000-09-20  Jim Meyering  <meyering@lucent.com>
66612
66613         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
66614         (noinst_HEADERS): Add sha.h.
66615         Based on code from Scott G. Miller and from GnuPG.
66616
66617 2000-09-18  Jim Meyering  <meyering@lucent.com>
66618
66619         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
66620         LIBS. Otherwise, everyone ends up linking with -lelf for some
66621         configurations.
66622         Reported by Mike Stone.
66623
66624 2000-09-15  Jim Meyering  <meyering@lucent.com>
66625
66626         * lib/regex.c: Update from libc.
66627
66628 2000-09-10  Jim Meyering  <meyering@lucent.com>
66629
66630         * lib/getopt.c (_getopt_internal): Update from glibc.
66631
66632 2000-09-09  Jim Meyering  <meyering@lucent.com>
66633
66634         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
66635         think it should be used as a general replacement for isascii.
66636         * lib/fnmatch.c: Likewise.
66637         * lib/mbswidth.c: Likewise
66638         * lib/regex.c: Likewise.
66639
66640         Don't use atoi.
66641         * lib/userspec.c: Include sys/param.h and limits.h.
66642         Include xstrtol.h.
66643         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
66644         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
66645         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
66646         UID, GID.  Check range.
66647
66648 2000-09-06  Jim Meyering  <meyering@lucent.com>
66649
66650         * lib/getopt.c (_getopt_internal): Update from glibc.
66651
66652 2000-08-30  Jim Meyering  <meyering@lucent.com>
66653
66654         * lib/strftime.c: Merge in changes from GNU libc.
66655
66656 2000-08-26  Jim Meyering  <meyering@lucent.com>
66657
66658         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
66659         * m4/fpending.m4: New file.
66660
66661 2000-08-26  Jim Meyering  <meyering@lucent.com>
66662
66663         * lib/closeout.c: Include "__fpending.h".
66664         (close_stdout_status): Return right away if there's nothing to flush.
66665
66666         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
66667         * lib/__fpending.c: New file.
66668         * lib/__fpending.h: New file.
66669
66670 2000-08-20  Jim Meyering  <meyering@lucent.com>
66671
66672         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
66673         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
66674         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
66675
66676 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
66677
66678         Improve fileutils installation on systems where running
66679         programs (like install) can't be unlinked.
66680         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
66681         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
66682
66683 2000-08-07  Paul Eggert  <eggert@twinsun.com>
66684
66685         Standardize on "memory exhausted" instead of "Memory exhausted"
66686         or "virtual memory exhausted".
66687         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
66688         "virtual memory exhausted".
66689         * lib/same.c (same_name): Invoke xalloc_die instead of printing
66690         our own message.
66691         * lib/userspec.c (parse_user_spec): Likewise.
66692         * lib/bumpalloc.h: comment fix
66693         * lib/same.c, userspec.c: Include xalloc.h.
66694
66695         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
66696         not char *const and pointing to a constant array.
66697         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
66698         (xrealloc): Comment fix.
66699
66700         * lib/userspec.c (parse_user_spec):
66701         Don't translate a message until just before returning,
66702         to avoid unnecessary translation.
66703
66704 2000-08-07  Jim Meyering  <meyering@lucent.com>
66705
66706         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
66707         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
66708         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
66709         getgroups.c, gethostname.c, getopt.h, group-member.c,
66710         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
66711         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
66712         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
66713         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
66714         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
66715         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
66716         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
66717         yesno.c: Back out Copyright date changes for each file with no change
66718         this year.  This eases coordination with other programs using the same
66719         source code modules.  From Paul Eggert.
66720
66721 2000-08-06  Paul Eggert  <eggert@twinsun.com>
66722
66723         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
66724         not char, for compatibility with glibc 2.1.3 strftime.c.
66725
66726 2000-08-03  Greg McGary  <greg@mcgary.org>
66727
66728         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
66729         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
66730         (EXTEND_BUFFER): Use them.
66731
66732 2000-08-01  Jim Meyering  <meyering@lucent.com>
66733
66734         * lib/dirname.c (ISSLASH): Define.
66735         (BACKSLASH_IS_PATH_SEPARATOR): Define.
66736         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
66737         both `\' and `/' may be use as path separators.
66738         Based on a patch from Prashant TR.
66739
66740 2000-07-31  Paul Eggert  <eggert@twinsun.com>
66741
66742         * lib/quotearg.c (quotearg_n_options): Don't make the initial
66743         slot vector a constant, since it might get modified.
66744
66745 2000-07-31  Jim Meyering  <meyering@lucent.com>
66746
66747         * lib/xmalloc.c: Use `virtual memory exhausted', not
66748         `Memory exhausted'.
66749         * lib/obstack.c (print_and_abort): Likewise.
66750
66751 2000-07-30  Paul Eggert  <eggert@twinsun.com>
66752
66753         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
66754         buffer, so that the caller can always quote one small
66755         component of a "memory exhausted" message in slot 0.
66756         From a suggestion by Jim Meyering.
66757
66758 2000-07-30  Jim Meyering  <meyering@lucent.com>
66759
66760         * lib/makepath.c (make_path): Quote the other instance, too.
66761
66762         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
66763         (STATIC_BUF_SIZE): Define.
66764         (quotearg_n_options): Use only statically allocated storage when
66765         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
66766         than STATIC_BUF_SIZE.
66767
66768 2000-07-29  Jim Meyering  <meyering@lucent.com>
66769
66770         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
66771         * lib/dirname.c (dir_name): Likewise.
66772
66773         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
66774         `/'.
66775
66776         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
66777         (dir_name): Assert that there are no trailing slashes.
66778
66779 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
66780
66781         * lib/mbswidth.h (mbswidth): Add a flags argument.
66782         (mbswidth): New declaration.
66783         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
66784         * lib/mbswidth.c (mbswidth): Add a flags argument.
66785         (mbsnwidth): New function.
66786
66787 2000-07-24  Jim Meyering  <meyering@lucent.com>
66788
66789         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
66790
66791 2000-07-23  Paul Eggert  <eggert@twinsun.com>
66792
66793         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
66794
66795 2000-07-23  Paul Eggert  <eggert@twinsun.com>
66796
66797         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
66798         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
66799         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
66800         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
66801         invoke multibyte primitives.
66802
66803 2000-07-23  Paul Eggert  <eggert@twinsun.com>
66804
66805         * lib/quotearg.c:
66806         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
66807         so that mbstate_t is always defined.
66808
66809         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
66810         be 1 in at least one GCC installation, and this configuration
66811         error is likely to be common.  Ignoring MB_LEN_MAX hurts
66812         performance on hosts that have mbrtowc but have only unibyte
66813         locales, but I assume these hosts are rare.
66814
66815 2000-07-23  Paul Eggert  <eggert@twinsun.com>
66816
66817         * lib/mbswidth.c (_XOPEN_SOURCE):
66818         Don't define; this causes problems on Solaris 7.
66819         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
66820
66821 2000-07-23  Jim Meyering  <meyering@lucent.com>
66822
66823         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
66824         too: getgrgid, getpwuid, getuid.
66825
66826 2000-07-23  Jim Meyering  <meyering@lucent.com>
66827
66828         * lib/basename.c (base_name): Add an assertion.
66829
66830 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
66831
66832         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
66833         shadow its mbsinit function.
66834
66835 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
66836
66837         * lib/mbswidth.h: New file.
66838         * lib/mbswidth.c: New file.
66839         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
66840         (noinst_HEADERS): Add mbswidth.h.
66841
66842 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
66843
66844         * lib/config.charset: Add support for FreeBSD. Improve support for
66845         HP-UX and IRIX 6.
66846
66847 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
66848
66849         * m4/mbswidth.m4: New file.
66850         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
66851
66852 2000-07-15  Jim Meyering  <meyering@lucent.com>
66853
66854         * lib/makepath.c: Include quote.h.
66855         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
66856         corresponding argument in a `quote (...)' call.
66857         Give better diagnostics.
66858
66859         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
66860         (noinst_HEADERS): Add quote.h.
66861
66862         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
66863         from tar's src/misc.c.
66864         * lib/quote.h: New file.  Prototypes for same.
66865
66866 2000-07-14  Paul Eggert  <eggert@twinsun.com>
66867
66868         From a suggestion by Bruno Haible.
66869         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
66870         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
66871         to decide whether to define the BeOS workaround macro;
66872         this adjusts to the change to AC_MBSTATE_T.
66873
66874 2000-07-14  Jim Meyering  <meyering@lucent.com>
66875
66876         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
66877         jm_AC_TYPE_UINTMAX_T.
66878
66879 2000-07-13  Paul Eggert  <eggert@twinsun.com>
66880
66881         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
66882
66883         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
66884         quotearg_buffer_restyled): Add support for
66885         clocale_quoting_style.  Undo previous change to
66886         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
66887         and "{RIGHT QUOTATION MARK}" msgids.
66888
66889 2000-07-10  Paul Eggert  <eggert@twinsun.com>
66890
66891         From a suggestion by Bruno Haible.
66892         * m4/mbstate_t.m4 (AC_MBSTATE_T):
66893         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
66894         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
66895         and mbstate_t, to a single-part test that simply defines mbstate_t.
66896         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
66897         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
66898
66899 2000-07-10  Jim Meyering  <meyering@lucent.com>
66900
66901         * m4/strerror_r.m4: Mirror the correction made in autoconf.
66902
66903         * m4/gnu-source.m4: Output to confdefs.h directly.
66904         Suggestion from Akim Demaille.
66905
66906 2000-07-09  Paul Eggert  <eggert@twinsun.com>
66907
66908         The old behavior of quoting `like this' doesn't look good with
66909         newer, ISO-style fonts.  See:
66910         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
66911
66912         Instead, quote "like this" by default.  Let the translator
66913         tailor the locale-specific quoting behavior by providing
66914         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
66915
66916         * lib/quotearg.c (N_): New macro.
66917         (gettext_default): New function.
66918         (quotearg_buffer_restyled): Use
66919         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
66920         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
66921
66922 2000-07-09  Jim Meyering  <meyering@lucent.com>
66923
66924         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
66925         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
66926
66927         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
66928         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
66929
66930 2000-07-09  Jim Meyering  <meyering@lucent.com>
66931
66932         * lib/Most files: Update copyright dates to include 2000.
66933
66934 2000-07-08  Jim Meyering  <meyering@lucent.com>
66935
66936         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
66937         if not defined.
66938         (xgethostname): Remove now-unnecessary #ifdef.
66939         Move declaration of `err' into loop where it's used.
66940
66941 2000-07-05  Paul Eggert  <eggert@twinsun.com>
66942         and Bruno Haible  <haible@clisp.cons.org>
66943
66944         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
66945         only if the test for an object-type mbstate_t fails.  This
66946         prevents us from mistakenly reporting that mbstate_t is a
66947         system object type after we "#define mbstate_t int" to work
66948         around its lack.
66949
66950 2000-07-05  Paul Eggert  <eggert@twinsun.com>
66951         and Bruno Haible  <haible@clisp.cons.org>
66952
66953         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
66954
66955 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
66956
66957         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
66958         to strerror_r.
66959         Include <ctype.h> for use of isalpha.
66960
66961 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
66962
66963         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
66964         by allocating a larger buffer. Test the gethostname return value for
66965         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
66966         returns an error and ENAMETOOLONG isn't defined.
66967
66968 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
66969
66970         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
66971         dimension.
66972
66973 2000-07-04  Jim Meyering  <meyering@lucent.com>
66974
66975         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
66976         of the deprecated AC_CHECKING.
66977
66978 2000-07-04  Jim Meyering  <meyering@lucent.com>
66979
66980         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
66981         Reported by Bruno Haible.
66982
66983 2000-07-04  Jim Meyering  <meyering@lucent.com>
66984
66985         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
66986         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
66987         lacks mbrtowc.
66988
66989 2000-07-03  Paul Eggert  <eggert@twinsun.com>
66990
66991         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
66992         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
66993
66994 2000-07-03  Paul Eggert  <eggert@twinsun.com>
66995         and Bruno Haible  <haible@clisp.cons.org>
66996
66997         * lib/quotearg.c (mbrtowc):
66998         Assign to *pwc, and return 1 only if result is nonzero.
66999         (iswprint): Use ISPRINT when substituting our own mbrtowc.
67000
67001 2000-07-03  Jim Meyering  <meyering@lucent.com>
67002
67003         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
67004
67005 2000-07-03  Jim Meyering  <meyering@lucent.com>
67006
67007         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
67008         This is necessary to get a definition of e.g., UTMP_FILE on
67009         HP-UX 10.20.
67010         From Bob Proulx.
67011
67012 2000-07-02  Jim Meyering  <meyering@lucent.com>
67013
67014         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
67015
67016         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
67017         AC_LIBOBJ(function_name).
67018         * m4/chown.m4: Likewise.
67019         * m4/fnmatch.m4: Likewise.
67020         * m4/ftruncate.m4: Likewise.
67021         * m4/getgroups.m4: Likewise.
67022         * m4/getline.m4: Likewise.
67023         * m4/group-member.m4: Likewise.
67024         * m4/jm-macros.m4: Likewise.
67025         * m4/lstat.m4: Likewise.
67026         * m4/malloc.m4: Likewise.
67027         * m4/memcmp.m4: Likewise.
67028         * m4/nanosleep.m4: Likewise.
67029         * m4/putenv.m4: Likewise.
67030         * m4/realloc.m4: Likewise.
67031         * m4/regex.m4: Likewise.
67032         * m4/stat.m4: Likewise.
67033         * m4/strftime.m4: Likewise.
67034
67035 2000-07-02  Jim Meyering  <meyering@lucent.com>
67036
67037         * lib/quotearg.c (mbstate_t): Don't define here.
67038
67039 2000-07-02  Jim Meyering  <meyering@lucent.com>
67040
67041         * lib/nanosleep.c (SIGCONT): Define if not already defined.
67042
67043 2000-07-01  Jim Meyering  <meyering@lucent.com>
67044
67045         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
67046
67047 2000-07-01  Jim Meyering  <meyering@lucent.com>
67048
67049         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
67050         problem.
67051
67052 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
67053
67054         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
67055         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
67056
67057 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
67058
67059         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
67060         per change in ../m4/ls-mntd-fs.m4.
67061         (read_filesystem_list): Ignore symbolic links.
67062
67063 2000-06-29  Jim Meyering  <meyering@lucent.com>
67064
67065         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
67066         for declaration of strcmp.
67067
67068         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
67069
67070         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
67071         Avoid warning by casting result to `char *' to remove `const'.
67072
67073 2000-06-28  Jim Meyering  <meyering@lucent.com>
67074
67075         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
67076         included by quotearg.c, for which we perform this test.  From
67077         Bruno Haible.
67078
67079 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
67080
67081         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
67082         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
67083         <utmpx.h> exists, put readutmp.o into LIBOBJS.
67084
67085 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
67086
67087         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
67088
67089 2000-06-26  Paul Eggert  <eggert@twinsun.com>
67090
67091         savedir now sets errno on failure and invokes xmalloc to get memory.
67092         Fix a couple of other minor bugs while we're at it.
67093
67094         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
67095         (NAMLEN): Remove macro.
67096         (malloc, realloc): Remove decls.
67097         (stpcpy): Likewise.
67098         ("xalloc.h"): Include.
67099         (NAME_SIZE_DEFAULT): New macro.
67100         (savedir): Use xmalloc / xrealloc to allocate memory.
67101         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
67102         Skip "" directory entries.
67103         Use strlen to calculate directory entry length, since the old method
67104         is rarely used these days and isn't worth supporting.
67105         Don't use a pointer after freeing it.
67106         Check for integer overflow when calculating allocation size.
67107         Use memcpy to copy entries, instead of stpcpy.
67108         Set errno properly when returning NULL.
67109         Check for readdir error.
67110
67111 2000-06-26  Jim Meyering  <meyering@lucent.com>
67112
67113         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
67114
67115 2000-06-25  Jim Meyering  <meyering@lucent.com>
67116
67117         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
67118         Linux header bug when _XOPEN_SOURCE is defined to 500.
67119
67120 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
67121
67122         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
67123         deficiency.
67124
67125 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
67126
67127         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
67128         Include xalloc.h.
67129         Don't include <stdlib.h>.  Don't declare malloc, realloc.
67130
67131 2000-06-24  Jim Meyering  <meyering@lucent.com>
67132
67133         * m4/strerror_r.m4: Revive this file -- to try out an experimental
67134         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
67135         for which strerror does return char*, but which lacks a conveniently
67136         accessible declaration of the function.  If the compile-test says
67137         strerror_r doesn't work, then resort to a `run'-test that works on
67138         BeOS and segfaults on DEC Unix.
67139
67140 2000-06-24  Jim Meyering  <meyering@lucent.com>
67141
67142         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
67143
67144 2000-06-23  Paul Eggert  <eggert@twinsun.com>
67145
67146         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
67147         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
67148
67149 2000-06-23  Paul Eggert  <eggert@twinsun.com>
67150
67151         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
67152         (mbrtowc, mbstate_t): Define substitutes if
67153         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
67154         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
67155         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
67156
67157 2000-06-23  Jim Meyering  <meyering@lucent.com>
67158
67159         * m4/afs.m4: Add missing AC_MSG_RESULT.
67160         Reported by Bruno Haible.
67161
67162         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
67163         Suggestion from Bruno Haible.
67164
67165 2000-06-23  Jim Meyering  <meyering@lucent.com>
67166
67167         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
67168
67169 2000-06-21  Jim Meyering  <meyering@lucent.com>
67170
67171         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
67172
67173 2000-06-21  Jim Meyering  <meyering@lucent.com>
67174
67175         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
67176         (noinst_HEADERS): Add getstr.h.
67177
67178         * lib/getline.c (getstr): Move into a separate file.
67179         * lib/getstr.c (getstr): New file, extracted from getline.c, with
67180         the following changes: new parameter, delim2; both delim[12]
67181         parameters have type `int', not `char'.  The latter would lose
67182         with 8-bit delimiters.
67183         * lib/getstr.h: New file.
67184
67185 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
67186
67187         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
67188         than 1024, return a memory chunk of least possible size, instead
67189         of size PATH_MAX + 2. In the loop, increment the size proportionally.
67190         Use free/xmalloc instead of xrealloc to avoid copying for very long
67191         paths.
67192
67193 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
67194
67195         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
67196         the empty string.
67197
67198 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
67199
67200         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
67201         address, not strdup.  Include <stdlib.h> and don't declare free().
67202
67203 2000-06-19  Jim Meyering  <meyering@lucent.com>
67204
67205         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
67206
67207 2000-06-18  Jim Meyering  <meyering@lucent.com>
67208
67209         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
67210
67211         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
67212         `checking whether...' message to be consistent with that of the
67213         lstat test.
67214
67215 2000-06-18  Jim Meyering  <meyering@lucent.com>
67216
67217         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
67218         Besides, these days every porting target provides a mkdir function.
67219
67220         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
67221         needed. (this snippet comes from src/system.h).
67222
67223 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
67224
67225         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
67226
67227 2000-06-15  Paul Eggert  <eggert@twinsun.com>
67228
67229         * lib/human.c (adjust_value): New function.
67230         (human_readable_inexact): Apply rounding style even when
67231         printing approximate values.
67232
67233 2000-06-14  Paul Eggert  <eggert@twinsun.com>
67234
67235         * lib/human.c (human_readable_inexact): Allow an input block
67236         size that is not a multiple of the output block size, and vice versa.
67237         Reported by Piergiorgio Sartor.
67238
67239 2000-06-14  Paul Eggert  <eggert@twinsun.com>
67240
67241         * lib/getdate.y (get_date): Apply relative times after time
67242         zone indicator, not before.  Reported by Todd A. Jacobs.
67243
67244 2000-06-13  Jim Meyering  <meyering@lucent.com>
67245
67246         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
67247
67248         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
67249
67250 2000-06-12  Paul Eggert  <eggert@twinsun.com>
67251
67252         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
67253
67254 2000-06-12  Jim Meyering  <meyering@lucent.com>
67255
67256         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
67257         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
67258         optional argument.
67259         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
67260         the optional argument, `lib'.
67261
67262 2000-06-08  Jim Meyering  <meyering@lucent.com>
67263
67264         * m4/largefile.m4: Remove file (now that it's part of autoconf).
67265
67266 2000-06-04  Paul Eggert  <eggert@twinsun.com>
67267
67268         Rewrite largefile configuration so that we don't need to run
67269         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
67270         AC_CANONICAL_HOST in configure.in -- jmm]
67271
67272         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
67273         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
67274         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
67275         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
67276         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
67277         All uses changed.
67278         Instead of inspecting the output of getconf, try to compile the
67279         test program without and with the macro definition.
67280         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
67281         for getconf.  Instead, check for the needed flags by compiling
67282         test programs.
67283
67284 2000-06-04  Paul Eggert  <eggert@twinsun.com>
67285
67286         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
67287
67288 2000-06-04  Jim Meyering  <meyering@lucent.com>
67289
67290         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
67291         SunOS 4.1.4 for which gid_t is an unsigned type.
67292
67293 2000-06-03  Jim Meyering  <meyering@lucent.com>
67294
67295         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
67296         now that autoconf requires that.
67297
67298         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
67299         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
67300         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
67301
67302 2000-06-03  Jim Meyering  <meyering@lucent.com>
67303
67304         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
67305
67306 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
67307
67308         * m4/glibc21.m4: New file.
67309         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
67310
67311 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
67312
67313         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
67314         newer, don't install charset.alias.
67315         * lib/config.charset: Change the Linux/glibc rules so they become empty
67316         on glibc-2.1 or newer.
67317
67318 2000-06-02  Jim Meyering  <meyering@lucent.com>
67319
67320         * lib/mountlist.c: Back out last change.  Instead, do this...
67321         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
67322         me_dummy member using the same `ignore'-testing code.
67323         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
67324         fs_type strings.
67325         From Mark D. Roth.
67326
67327 2000-05-29  Jim Meyering  <meyering@lucent.com>
67328
67329         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
67330         mounts with the `ignore' attribute.  Based on a patch from
67331         Mark D. Roth.
67332
67333 2000-05-28  Jim Meyering  <meyering@lucent.com>
67334
67335         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
67336         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
67337         * m4/stat.m4: Likewise.
67338         * m4/lstat.m4: Likewise.
67339         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
67340
67341         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
67342         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
67343
67344 2000-05-26  Jim Meyering  <meyering@lucent.com>
67345
67346         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
67347
67348 2000-05-24  Jim Meyering  <meyering@lucent.com>
67349
67350         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
67351         autoconf requires that.
67352         * m4/lib-check.m4: Likewise.
67353         * m4/jm-macros.m4: Likewise.
67354         * m4/strftime.m4: Likewise.
67355
67356         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
67357         AC_CHECK_DECLS, now that autoconf requires that.
67358
67359 2000-05-22  Jim Meyering  <meyering@lucent.com>
67360
67361         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
67362         * m4/lstat.m4: Likewise.
67363
67364 2000-05-22  Jim Meyering  <meyering@lucent.com>
67365
67366         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
67367
67368 2000-05-20  Jim Meyering  <meyering@lucent.com>
67369
67370         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
67371         (jm_PREREQ): Use it.
67372
67373 2000-05-18  Jim Meyering  <meyering@lucent.com>
67374
67375         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
67376         back, too, since it may have been modified by allocate_entry.
67377         (hash_delete): Rewrite to use neither the assignment operator
67378         nor the comma operator in an if-expression.
67379
67380 2000-05-15  Paul Eggert  <eggert@twinsun.com>
67381
67382         * lib/closeout.c:
67383         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
67384         Remove; no longer needed.
67385         "quotearg.h": Add include.
67386         (file_name): Do not bother to explicitly initialize to NULL; it's less
67387         efficient on some hosts.
67388         (close_stdout_status): Remove test as to whether stdout was already
67389         closed; it breaks for the case "echo x | sort >&-".
67390         Quote file name colons.
67391         Do not assume that _("write error") lacks format strings.
67392
67393 2000-05-15  Jim Meyering  <meyering@lucent.com>
67394
67395         * lib/version-etc.c (version_etc_copyright): Update the copyright
67396         string used in all --version output.
67397
67398 2000-05-14  Jim Meyering  <meyering@lucent.com>
67399
67400         * lib/closeout.c (close_stdout_set_file_name): New function.
67401         (close_stdout_status): Use new file-scoped global.
67402         Return right away if fstat says the stdout file descriptor is invalid.
67403         * lib/closeout.h (close_stdout_set_file_name): Declare.
67404
67405 2000-05-10  Jim Meyering  <meyering@lucent.com>
67406
67407         * lib/closeout.c [default_exit_status]: New file-scoped variable.
67408         (close_stdout_set_status): New function.
67409         * lib/closeout.h (close_stdout_set_status): Declare.
67410
67411 2000-05-09  Jim Meyering  <meyering@lucent.com>
67412
67413         * m4/gettext.m4: Rename this...
67414         * m4/libintl.m4: ...to this.
67415
67416 2000-05-08  Jim Meyering  <meyering@lucent.com>
67417
67418         * lib/long-options.c: Don't include closeout.h.
67419         (parse_long_options): Don't call close_stdout for --version.
67420
67421 2000-05-06  Paul Eggert  <eggert@twinsun.com>
67422
67423         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
67424         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
67425         2.1.3 bug.  This avoids a clash when files like regex.c define
67426         _GNU_SOURCE.
67427
67428 2000-05-06  Jim Meyering  <meyering@lucent.com>
67429
67430         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
67431         (AC_REPLACE_FUNCS): Add strnlen.
67432
67433         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
67434         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
67435
67436         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
67437         AC_SEARCH_LIBS call for nanosleep.
67438         (LIB_NANOSLEEP): Set and AC_SUBST.
67439
67440 2000-05-06  Jim Meyering  <meyering@lucent.com>
67441
67442         * lib/strnlen.c: Undefine __strnlen and strnlen.
67443         [!weak_alias]: Define __strnlen to strnlen.
67444
67445         * lib/atexit.c: New file, from libiberty.
67446
67447 2000-05-06  Jim Meyering  <meyering@lucent.com>
67448
67449         * lib/closeout.c (close_stdout_status): Also check for errors on the
67450         stderr stream.
67451
67452 2000-05-05  Jim Meyering  <meyering@lucent.com>
67453
67454         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
67455         AC_SEARCH_LIBS call for clock_gettime.
67456         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
67457
67458         * m4/search-libs.m4: Update from autoconf.
67459
67460         su doesn't work on Solaris 2.6.
67461         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
67462         <shadow.h>.  Reported by Dragos Harabor.
67463
67464 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
67465
67466         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
67467         memcpy instead of xmalloc, xrealloc, path_concat.
67468         (locale_charset): Treat empty environment variables as absent.
67469         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
67470
67471 2000-05-04  Jim Meyering  <meyering@lucent.com>
67472
67473         * lib/getopt.c: Update from glibc.
67474         * lib/obstack.c: Likewise.
67475         * lib/obstack.h: Likewise.
67476         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
67477         file
67478
67479         * lib/regex.h: Likewise.
67480         * lib/strndup.c: Likewise.
67481         * lib/strnlen.c: New file, from glibc.
67482
67483 2000-05-03  Jim Meyering  <meyering@lucent.com>
67484
67485         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
67486
67487 2000-05-02  Paul Eggert  <eggert@twinsun.com>
67488
67489         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
67490         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
67491         compile-time test, rather than inspecting host and OS, to
67492         decide whether to define _LARGEFILE_SOURCE.
67493
67494 2000-05-01  Jim Meyering  <meyering@lucent.com>
67495
67496         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
67497
67498         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
67499         Based on a patch from Bruno Haible.
67500
67501 2000-05-01  Jim Meyering  <meyering@lucent.com>
67502
67503         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
67504
67505 2000-04-29  Jim Meyering  <meyering@lucent.com>
67506
67507         * lib/path-concat.c: Declare strdup only if it's not defined.
67508         * lib/canon-host.c: Likewise.
67509
67510 2000-04-28  Jim Meyering  <meyering@lucent.com>
67511
67512         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
67513         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
67514         is included first, then limits.h is included by locale.h by libintl.h.
67515         From John David Anglin.
67516
67517 2000-04-25  Jim Meyering  <meyering@lucent.com>
67518
67519         * lib/makepath.c (S_IRWXUGO): Define.
67520         (make_path): Always perform explicit chmod if MODE specifies any
67521         of the `special' permission bits.  Prompted by a bug report against
67522         install from Mate Wierdl and Joost van Baal.
67523
67524 2000-04-18  Jim Meyering  <meyering@lucent.com>
67525
67526         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
67527         (jm_PREREQ): Use it.
67528
67529 2000-04-18  Jim Meyering  <meyering@lucent.com>
67530
67531         * lib/README: New file.
67532
67533         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
67534         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
67535
67536 2000-04-17  Jim Meyering  <meyering@lucent.com>
67537
67538         Get it right :-)
67539         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
67540         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
67541         Suggestion from Akim Demaille.
67542
67543 2000-04-17  Jim Meyering  <meyering@lucent.com>
67544
67545         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
67546         the definition of it to rpl_strftime also defined-away the system's
67547         declaration.
67548
67549 2000-04-15  Jim Meyering  <meyering@lucent.com>
67550
67551         Use `C' to denote so-called `contiguous' files, the same way
67552         that tar does.
67553         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
67554         (ftypelet): Use S_ISCTG.
67555         From Michael Deutschmann.
67556
67557 2000-04-14  Jim Meyering  <meyering@lucent.com>
67558
67559         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
67560         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
67561         clobbered.
67562
67563 2000-04-14  Jim Meyering  <meyering@lucent.com>
67564
67565         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
67566
67567 2000-04-13  Jim Meyering  <meyering@lucent.com>
67568
67569         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
67570         AH_VERBATIM to insert required #ifndef into config.h.in.
67571         Suggestion from Akim Demaille.
67572
67573 2000-04-12  Jim Meyering  <meyering@lucent.com>
67574
67575         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
67576         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
67577         Christian Krackowizer.
67578
67579         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
67580         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
67581         (AC_SYS_LARGEFILE): Require.
67582         (AM_C_PROTOTYPES): Require.
67583
67584 2000-04-08  Jim Meyering  <meyering@lucent.com>
67585
67586         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
67587         names don't conflict.  Reported by Eli Zaretskii.
67588
67589 2000-04-07  Jim Meyering  <meyering@lucent.com>
67590
67591         * lib/putenv.c: Move inclusion of errno.h so it follows that of
67592         sys/types.h, to work around system header problems on AIX 3.2.5.
67593         From Bruno Haible.
67594
67595 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
67596
67597         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
67598         bug.  Deal with the different error behavior of Irix iconv.
67599
67600 2000-04-05  Paul Eggert  <eggert@twinsun.com>
67601
67602         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
67603         IRIX if the installer said otherwise.
67604
67605 2000-04-05  Jim Meyering  <meyering@lucent.com>
67606
67607         Portability tweaks required for ultrix4.3.
67608         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
67609         (jm_CHECK_DECLS): Add getutent to the list of functions.
67610         (_jm_DECL_HEADERS): Add utmpx.h.
67611         From John David Anglin.
67612
67613         * m4/strftime.m4: Back out the 2000-04-02 change.
67614         Instead of that change, simply undefine putenv in the test program.
67615
67616 2000-04-05  Jim Meyering  <meyering@lucent.com>
67617
67618         Portability tweaks required for ultrix4.3.
67619         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
67620         getutent.
67621         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
67622         * lib/canon-host.c: Declare strdup.
67623         * lib/path-concat.c: Likewise.
67624         From John David Anglin.
67625
67626 2000-04-04  Jim Meyering  <meyering@lucent.com>
67627
67628         Be more DOS 8.3-friendly.
67629         * lib/ref-add.sin: Renamed from ref-add.sed.in.
67630         * lib/ref-del.sin: Renamed from ref-del.sed.in.
67631         * lib/Makefile.am: Reflect renaming.
67632         Reported by Eli Zaretskii.
67633
67634         Use a temporary file name that won't clash with `charset.alias'
67635         in the DOS 8.3 name space.
67636         * lib/Makefile.am (charset_tmp): Define.
67637         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
67638         (uninstall-local): Likewise.
67639         Reported by Eli Zaretskii.
67640
67641 2000-04-03  Jim Meyering  <meyering@lucent.com>
67642
67643         * m4/gettext.m4: Fix typo in comment.
67644
67645         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
67646         textutils/configure.in).  Suggestion from Paul Eggert.
67647         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
67648
67649 2000-04-02  Paul Eggert  <eggert@twinsun.com>
67650
67651         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
67652         variable in the shell rather than using putenv, which isn't
67653         portable.  This avoids the configure-time inter-test dependency
67654         on the potentially-renamed putenv function.
67655
67656 2000-03-30  Paul Eggert  <eggert@twinsun.com>
67657
67658         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
67659         before checking struct stat.st_blksize, so that
67660         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
67661
67662 2000-03-29  Paul Eggert  <eggert@twinsun.com>
67663
67664         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
67665         since strftime.c uses HAVE_STRFTIME to decide whether to use
67666         the underlying strftime.
67667
67668 2000-03-29  Paul Eggert  <eggert@twinsun.com>
67669
67670         * lib/time/strftime.c (my_strftime): Make sure we call the system
67671         strftime, not ourselves, when invoking the underlying strftime.
67672
67673 2000-03-24  Jim Meyering  <meyering@lucent.com>
67674
67675         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
67676         (charset_alias): Define.
67677         (install-exec-local): Factor out common code.
67678         (uninstall-local): Split lines longer than 80.
67679         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
67680         (SUFFIXES): Define.
67681         (.sed.in.sed): New rule.  Don't redirect directly to $@.
67682         (CLEANFILES): Add ref-add.sed and ref-del.sed.
67683
67684 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
67685
67686         * lib/config.charset: Output a line containing "Packages using this
67687         file".
67688         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
67689         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
67690         ref-del.sed): New rules.
67691
67692 2000-03-17  Jim Meyering  <meyering@lucent.com>
67693
67694         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
67695         Otherwise, include <strings.h>
67696
67697 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
67698
67699         * lib/unicodeio.c (utf8_wctomb): New function.
67700         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
67701         format instead of in UCS-4 with platform dependent endianness.
67702
67703 2000-03-10  Jim Meyering  <meyering@lucent.com>
67704
67705         * m4/lib-check.m4: Look for getspnam in -lgen, too.
67706         From Marco Franzen.
67707
67708 2000-03-07  Paul Eggert  <eggert@twinsun.com>
67709
67710         * lib/savedir.c (savedir): Work even if directory size is
67711         negative; this can happen with some screwy NFS configurations.
67712
67713 2000-03-06  Jim Meyering  <meyering@lucent.com>
67714
67715         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
67716         if it's NULL (because we ran out of memory).  From Bruno Haible.
67717
67718 2000-03-05  Jim Meyering  <meyering@lucent.com>
67719
67720         * lib/localcharset.c ("path-concat.h"): Include.
67721         (get_charset_aliases): Use path_concat instead of ANSI string
67722         concatenation.
67723
67724         * lib/unicodeio.h (PARAMS): Define.
67725         Use it to guard prototype.
67726
67727 2000-03-04  Jim Meyering  <meyering@lucent.com>
67728
67729         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
67730         for lib/localcharset.c.
67731
67732 2000-03-04  Jim Meyering  <meyering@lucent.com>
67733
67734         * lib/Makefile.am (install-exec-local): Create $(libdir) before
67735         installing into it.
67736         (uninstall-local): Uncomment this rule so `make distcheck' works
67737         once again.
67738
67739         * lib/unicodeio.c (<errno.h>): Include it.
67740         (errno): Declare if not defined.
67741
67742         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
67743
67744         * lib/config.charset: New version, incorporating remarks from a linux
67745         i18n mailing list.  From Bruno Haible.
67746
67747 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
67748
67749         * m4/codeset.m4: New file.
67750         * m4/iconv.m4: New file.
67751         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
67752
67753 2000-03-03  Jim Meyering  <meyering@lucent.com>
67754
67755         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
67756
67757 2000-03-02  Jim Meyering  <meyering@lucent.com>
67758
67759         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
67760         the messages come out on separate lines.
67761
67762         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
67763         rather than jm_CHECK_DECLARATIONS.
67764         * m4/decl.m4: Remove now-unused file.
67765
67766         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
67767         geteuid.
67768
67769 2000-03-02  Jim Meyering  <meyering@lucent.com>
67770
67771         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
67772
67773 2000-03-01  Jim Meyering  <meyering@lucent.com>
67774
67775         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
67776         * lib/unicodeio.c: Likewise.
67777
67778 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
67779
67780         * lib/config.charset: New file.
67781         * lib/localcharset.c: New file.
67782         * lib/unicodeio.h, lib/unicodeio.c: New files.
67783         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
67784         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
67785         (noinst_HEADERS): Add unicodeio.h.
67786         (all-local, install-exec-local, charset.alias): New targets.
67787
67788 2000-02-28  Paul Eggert  <eggert@twinsun.com>
67789
67790         * lib/quotearg.c (ALERT_CHAR): New macro.
67791         (quotearg_buffer_restyled): Use it.
67792
67793 2000-02-27  Jim Meyering  <meyering@lucent.com>
67794
67795         * m4/check-decl.m4: Add getenv to the list.
67796
67797 2000-02-27  Jim Meyering  <meyering@lucent.com>
67798
67799         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
67800         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
67801
67802         * lib/backupfile.c: Guard inclusion of stdlib.h with
67803         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
67804         Declare malloc if needed.
67805
67806         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
67807         `#ifndef HAVE_DECL..'
67808         now that autoconf always defines the HAVE_DECL_ symbols.
67809         * lib/human.c: Likewise.
67810         * lib/same.c: Likewise.
67811         * lib/strtoumax.c: Likewise.
67812
67813         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
67814         declaration check was not run.
67815         * lib/hash.c: Likewise.
67816         * lib/human.c: Likewise.
67817         * lib/same.c: Likewise.
67818         * lib/strtoumax.c: Likewise.
67819
67820         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
67821         `.', then first look up the entire `.'-containing string as a login
67822         name.
67823
67824 2000-02-23  Jim Meyering  <meyering@lucent.com>
67825
67826         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
67827         in place of my hack.
67828
67829 2000-02-18  Paul Eggert  <eggert@twinsun.com>
67830
67831         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
67832         (textint): New typedef.
67833         (parser_control): Member year changed from int to textint.
67834         All uses changed.
67835         (YYSTYPE): Removed; replaced by %union with int and textint members.
67836         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
67837         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
67838         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
67839         (tSNUMBER, tUNUMBER): Now of type <textintval>.
67840         (date, number, to_year): Use width of number in digits, not its value,
67841         to determine whether it's a 2-digit year, or a 2-digit time.
67842         (yylex): Store number of digits of numeric tokens.
67843         Reported by John Kendall.
67844
67845         (parser_control): Changed from struct parser_control to typedef (for
67846         consistency).  All uses changed.
67847
67848         (tID): Removed; not used.
67849         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
67850
67851 2000-02-14  Paul Eggert  <eggert@twinsun.com>
67852
67853         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
67854         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
67855
67856 2000-02-12  Jim Meyering  <meyering@lucent.com>
67857
67858         * lib/userspec.c (ISDIGIT): Define it.
67859         (isdigit): Remove definition.
67860         (is_number): Use ISDIGIT, not isdigit.
67861         <libintl.h>: Include.
67862         (_ and N_): Define.
67863         (parse_user_spec): Mark translatable strings.
67864
67865 2000-02-10  Jim Meyering  <meyering@lucent.com>
67866
67867         With these changes, nanosleep.[ch] are finally enough like the other
67868         lib/* replacement files to compile on a few more losing systems.
67869
67870         * lib/nanosleep.h: Don't include config.h.
67871         Remove prototype from declaration of nanosleep.
67872         (PARAMS): Remove now-unneeded definition.
67873         * lib/nanosleep.c: #undef nanosleep.
67874         (rpl_nanosleep): Rename from nanosleep.
67875
67876 2000-02-10  Jim Meyering  <meyering@lucent.com>
67877
67878         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
67879         gnu_nanosleep to rpl_nanosleep.
67880
67881 2000-02-09  Jim Meyering  <meyering@lucent.com>
67882
67883         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
67884         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
67885
67886 2000-02-08  Akim Demaille  <akim@epita.fr>
67887
67888         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
67889         `[' and `]' and remove uses of `changequote'.
67890         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
67891         (AC_SYS_LARGEFILE): Likewise.
67892         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
67893         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
67894         of changequote.
67895         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
67896         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
67897         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
67898         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
67899
67900 2000-02-05  Jim Meyering  <meyering@lucent.com>
67901
67902         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
67903         Remove explicit use of AC_HEADER_TIME.  It is required by
67904         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
67905         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
67906         in autoconf whereby the expansion of the latter ended up preceding
67907         the expansion of its prerequisite, AC_HEADER_TIME.
67908         Reported by Volker Borchert.
67909
67910 2000-02-03  Jim Meyering  <meyering@lucent.com>
67911
67912         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
67913
67914 2000-02-03  Jim Meyering  <meyering@lucent.com>
67915
67916         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
67917         rather than with `#if HAVE_UTMPNAME'.
67918
67919 2000-02-02  Jim Meyering  <meyering@lucent.com>
67920
67921         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
67922         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
67923         Reported by Eli Zaretskii.
67924
67925 2000-02-01  Jim Meyering  <meyering@lucent.com>
67926
67927         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
67928
67929 2000-01-31  Jim Meyering  <meyering@lucent.com>
67930
67931         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
67932         functions.  Add the time.h and sys/time.h headers along with the
67933         AC_REQUIRE'ment of AC_HEADER_TIME.
67934
67935 2000-01-31  Jim Meyering  <meyering@lucent.com>
67936
67937         * lib/nanosleep.h (nanosleep): Guard declaration with
67938         `#if ! HAVE_DECL_NANOSLEEP'.
67939         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
67940         the declaration in that vendor's sys/timers.h.
67941         Reported by Christian Krackowizer.
67942
67943         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
67944         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
67945         (ISPRINT): Likewise.
67946         Reported by Tom Tromey.
67947
67948 2000-01-30  Jim Meyering  <meyering@lucent.com>
67949
67950         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
67951
67952         * m4/prereq.m4 (utmp_includes): Define.
67953         Check for ut_user and ut_name members in both struct utmpx
67954         and struct utmp.
67955
67956 2000-01-30  Jim Meyering  <meyering@lucent.com>
67957
67958         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
67959         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
67960         header files where only utmpx.ut_user is declared.
67961
67962         * lib/readutmp.h (UT_USER): Define.
67963
67964 2000-01-29  Jim Meyering  <meyering@lucent.com>
67965
67966         * m4/lib-check.m4: New file containing library-related checks from
67967         fileutils and sh-utils (textutils had none).
67968
67969 2000-01-28  Jim Meyering  <meyering@lucent.com>
67970
67971         * m4/perl.m4: Change format of warning message to look more like that
67972         from the missing script.  Suggestion from François Pinard.
67973
67974 2000-01-25  Jim Meyering  <meyering@lucent.com>
67975
67976         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
67977         well as time.h in the compile check.
67978         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
67979         Fix typo in cross-compiling case: s/yes/no/.
67980
67981 2000-01-23  Jim Meyering  <meyering@lucent.com>
67982
67983         * m4/jm-macros.m4: Move df-related tests here from
67984         fileutils/configure.in
67985
67986         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
67987         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
67988
67989         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
67990         s/space/ac_fsusage_space/.
67991         (jm_FILE_SYSTEM_USAGE): Take two parameters.
67992
67993         * m4/ftruncate.m4: New file (derived from part of
67994         fileutils/configure.in).
67995         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
67996         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
67997
67998         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
67999         AC_SUBST these here, rather than just in sh-util/configure.in, so
68000         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
68001         all the same.
68002         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
68003         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
68004         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
68005         (AC_SUBST(POW_LIBM)): Likewise.
68006         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
68007
68008 2000-01-23  Jim Meyering  <meyering@lucent.com>
68009
68010         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
68011         obstack.c.
68012
68013 2000-01-22  Jim Meyering  <meyering@lucent.com>
68014
68015         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
68016
68017         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
68018
68019         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
68020         configure.in
68021         (AC_CHECK_HEADERS): Likewise for sh-utils.
68022         (AC_CHECK_HEADERS): Likewise for textutils.
68023         Merge the three lists of headers.
68024
68025         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
68026         from fileutils' configure.in.
68027
68028         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
68029         code. Moved tests into their own function (_jm_DECL_HEADERS) in
68030         check-decl.m4.
68031
68032         * m4/check-decl.m4: Use #if rather than #ifdef.
68033         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
68034         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
68035         (_jm_DECL_HEADERS): Define new function.
68036         (jm_CHECK_DECLARATIONS): Require it.
68037
68038 2000-01-22  Jim Meyering  <meyering@lucent.com>
68039
68040         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
68041         [! HAVE_DECL_STRTOULL]: Declare strtoull.
68042         Required for some AIX systems.  Reported by Christian Krackowizer.
68043         [TESTING] (main): New function.
68044
68045         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
68046         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
68047         letters.
68048
68049         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
68050         iswprint.
68051
68052         * lib/strverscmp.c (ISDIGIT): Define.
68053         (strverscmp): Use ISDIGIT, not isdigit.
68054
68055 2000-01-19  Jim Meyering  <meyering@lucent.com>
68056
68057         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
68058         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
68059         defines `struct timespec' in <sys/time.h>
68060
68061         * m4/c-bs-a.m4: Remove uses of changequote altogether.
68062         Thanks to Akim for explaining.
68063
68064 2000-01-17  Paul Eggert  <eggert@twinsun.com>
68065
68066         * lib/nanosleep.c (nanosleep):
68067         Don't use SA_INTERRUPT to decide whether to call sigaction, as
68068         POSIX.1 doesn't require SA_INTERRUPT and some systems
68069         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
68070         it's been part of POSIX.1 since day 1 (in 1988).
68071
68072 2000-01-17  Jim Meyering  <meyering@lucent.com>
68073
68074         * lib/interlock: Remove unused file.  Reported by François Pinard.
68075
68076 2000-01-16  Paul Eggert  <eggert@twinsun.com>
68077
68078         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
68079         alert, backslash, formfeed, and vertical tab unnecessarily in
68080         shell quoting style.
68081
68082 2000-01-16  Jim Meyering  <meyering@lucent.com>
68083
68084         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
68085         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
68086         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
68087         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
68088
68089 2000-01-16  Jim Meyering  <meyering@lucent.com>
68090
68091         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
68092         because the latter didn't work.
68093
68094 2000-01-15  Jim Meyering  <meyering@lucent.com>
68095
68096         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
68097         (AC_REPLACE_FUNCS): Add memcpy and memset.
68098         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
68099         Add strpbrk.
68100         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
68101
68102 2000-01-12  Jim Meyering  <meyering@lucent.com>
68103
68104         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
68105         (jm_PREREQ): Use it.
68106         (jm_PREREQ_READUTMP): New macro.
68107         (jm_PREREQ): Use it.
68108
68109 2000-01-11  Paul Eggert  <eggert@twinsun.com>
68110
68111         Quote multibyte characters correctly.
68112         * m4/c-bs-a.m4: New file.
68113         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
68114         (jm_PREREQ): Use it.
68115
68116 2000-01-11  Paul Eggert  <eggert@twinsun.com>
68117
68118         * m4/uintmax_t.m4: Port to autoconf 2.13.
68119
68120 2000-01-08  Jim Meyering  <meyering@ascend.com>
68121
68122         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
68123         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
68124
68125 2000-01-04  Jim Meyering  <meyering@ascend.com>
68126
68127         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
68128         jm_STRUCT_DIRENT_D_TYPE.
68129         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
68130         jm_STRUCT_DIRENT_D_INO.
68131         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
68132         jm_STRUCT_UTIMBUF.
68133         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
68134         renamings.
68135         * m4/utime.m4: Likewise.
68136
68137         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
68138         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
68139
68140 2000-01-03  Paul Eggert  <eggert@twinsun.com>
68141
68142         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
68143         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
68144
68145 2000-01-02  Jim Meyering  <meyering@ascend.com>
68146
68147         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
68148         remember if this is necessary.
68149
68150 1999-12-26  Jim Meyering  <meyering@ascend.com>
68151
68152         * m4/jm-macros.m4: Use it here.
68153         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
68154
68155 1999-12-23  Jim Meyering  <meyering@ascend.com>
68156
68157         * m4/jm-macros.m4: Check for clock_gettime (moved from
68158         fileutils/configure.in)
68159         Check for gettimeofday.
68160
68161 1999-12-20  Jim Meyering  <meyering@ascend.com>
68162
68163         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
68164         autoconf-2.14a-1999-12-20.
68165
68166 1999-12-19  Jim Meyering  <meyering@ascend.com>
68167
68168         * m4/lstat-slash.m4: New file.
68169         * m4/jm-macros.m4: Use the new macro:
68170         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
68171
68172 1999-12-07  Jim Meyering  <meyering@ascend.com>
68173
68174         * m4/perl.m4: Require that File::Compare be available, too.
68175         Too many systems seem to lack it.
68176
68177         * m4/strftime.m4: Add checks for most of the cpp macros tested in
68178         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
68179
68180 1999-11-18  Paul Eggert  <eggert@twinsun.com>
68181
68182         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
68183         problem with the QNX 4.25 shell, which doesn't propagate exit
68184         status of failed commands inside shell assignments.
68185
68186 1999-11-17  Jim Meyering  <meyering@ascend.com>
68187
68188         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
68189
68190 1999-11-07  Jim Meyering  <meyering@ascend.com>
68191
68192         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
68193
68194 1999-11-06  Jim Meyering  <meyering@ascend.com>
68195
68196         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
68197         * m4/jm-macros.m4 (jm_MACROS): Use it here.
68198
68199 1999-11-05  Jim Meyering  <meyering@ascend.com>
68200
68201         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
68202         configure.in of textutils, fileutils, and sh-utils into this one
68203         (shared between those packages) file.
68204         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
68205         AC_STRUCT_ST_BLKSIZE.
68206
68207 1999-11-03  Jim Meyering  <meyering@ascend.com>
68208
68209         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
68210         of AC_CHECK_TYPE checks includes unistd.h.
68211         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
68212         Suggestion from Akim Demaille.
68213
68214 1999-10-30  Jim Meyering  <meyering@ascend.com>
68215
68216         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
68217         m4-quoted string.
68218         * m4/ls-mntd-fs.m4: Likewise.
68219         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
68220         * m4/jm-winsz1.m4: Likewise.
68221
68222         * m4/const.m4: Remove file, since the fix made it into the experimental
68223         version of autoconf.
68224         * m4/mktime.m4: Likewise.
68225
68226         * m4/check-type.m4: Remove file, now that the latest version of
68227         AC_CHECK_TYPE takes a third arg to specify additional #includes.
68228
68229         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
68230         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
68231         AC_CHECK_TYPE.
68232
68233 1999-10-04  Jim Meyering  <meyering@ascend.com>
68234
68235         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
68236
68237 1999-09-22  Paul Eggert  <eggert@twinsun.com>
68238
68239         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
68240         2.95.1 bug with HP-UX 10.20.
68241
68242 1999-09-17  Jim Meyering  <meyering@ascend.com>
68243
68244         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
68245         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
68246         due to missing strdup (against sh-utils-2.0).
68247
68248 1999-08-29  Jim Meyering  <meyering@ascend.com>
68249
68250         * m4/jm-macros.m4: Require jm_BISON.
68251         * m4/bison.m4: New file.
68252
68253 1999-08-17  Paul Eggert  <eggert@twinsun.com>
68254
68255         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
68256         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
68257
68258 1999-08-05  Jim Meyering  <meyering@ascend.com>
68259
68260         * m4/getline.m4: Rename test file from conftestdata to conftest.data
68261         to avoid conflicts with `conftest' on 8+3 filesystems.
68262         Suggestion from Eli Zaretskii.
68263
68264 1999-08-04  Jim Meyering  <meyering@ascend.com>
68265
68266         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
68267         fileutils and sh-utils (textutils's getline test was inadequate).
68268         (AM_FUNC_GETLINE): Run this test.
68269         (AC_CHECK_FUNCS): Check for getdelim.
68270         Reported by Bob Proulx.
68271
68272 1999-08-02  Jim Meyering  <meyering@ascend.com>
68273
68274         * m4/jm-macros.m4: Add a comment.
68275
68276 1999-08-01  Paul Eggert  <eggert@twinsun.com>
68277
68278         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
68279         <inttypes.h> defines strtoumax as a macro (and not as a
68280         function).
68281
68282 1999-08-01  Paul Eggert  <eggert@twinsun.com>
68283
68284         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
68285         that we can shift, multiply and divide unsigned long long
68286         values; Ultrix cc can't do it.
68287
68288 1999-08-01  Paul Eggert  <eggert@twinsun.com>
68289
68290         * m4/mktime.m4: New file, which is a preview of what should appear
68291         in the next public autoconf release.
68292
68293 1999-08-01  Paul Eggert  <eggert@twinsun.com>
68294
68295         * m4/lfs.m4: Remove this file.
68296         * m4/largefile.m4: New file.  It contains the old contents of
68297         lfs.m4, except that all names with prefix AC_LFS have been
68298         changed to use the prefix AC_SYS_LARGEFILE instead, to be
68299         compatible with future autoconf versions.  Also, some minor m4
68300         quoting problems have been fixed.
68301
68302 1999-08-01  Paul Eggert  <eggert@twinsun.com>
68303
68304         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
68305         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
68306         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
68307         and simplify the shell code.
68308
68309 1999-08-01  Jim Meyering  <meyering@ascend.com>
68310
68311         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
68312         m4.
68313
68314 1999-07-20  Jim Meyering  <meyering@ascend.com>
68315
68316         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
68317
68318 1999-07-15  Jim Meyering  <meyering@ascend.com>
68319
68320         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
68321
68322 1999-05-22  Jim Meyering  <meyering@ascend.com>
68323
68324         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
68325
68326 1999-05-20  Jim Meyering  <meyering@ascend.com>
68327
68328         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
68329         Add a colon after each `then' in case $4 is empty.
68330
68331 1999-05-16  Jim Meyering  <meyering@ascend.com>
68332
68333         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
68334
68335 1999-05-10  Jim Meyering  <meyering@ascend.com>
68336
68337         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
68338
68339         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
68340         AC_FUNC_MKTIME.
68341
68342 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
68343
68344         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
68345
68346 1999-05-04  Paul Eggert  <eggert@twinsun.com>
68347
68348         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
68349         not CPPFLAGS, so that linking works correctly in IRIX.
68350
68351 1999-04-30  Paul Eggert  <eggert@twinsun.com>
68352
68353         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
68354
68355 1999-04-20  Paul Eggert  <eggert@twinsun.com>
68356
68357         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
68358         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
68359         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
68360         jm_AC_TYPE_UNSIGNED_LONG_LONG.
68361         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
68362
68363         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
68364
68365 1999-04-20  Jim Meyering  <meyering@ascend.com>
68366
68367         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
68368         AC_REPLACE xstroull if necessary.  From Paul Eggert.
68369         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
68370
68371 1999-04-18  Jim Meyering  <meyering@ascend.com>
68372
68373         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
68374         * m4/jm-macros.m4: Use it.
68375
68376 1999-04-06  Jim Meyering  <meyering@ascend.com>
68377
68378         * m4/strftime.m4: Remove test for %f.
68379
68380 1999-03-29  Jim Meyering  <meyering@ascend.com>
68381
68382         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
68383         superset of the AC_TYPE_* checks in the textutils, fileutils,
68384         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
68385         AC_TYPE_PID_T.
68386
68387 1999-03-28  Jim Meyering  <meyering@ascend.com>
68388
68389         * m4/jm-macros.m4: Define GNU_PACKAGE here.
68390         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
68391         replaced e.g., in the *.sh files of the sh-utils.
68392
68393 1999-03-20  Jim Meyering  <meyering@ascend.com>
68394
68395         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
68396         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
68397         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
68398
68399 1999-03-19  Jim Meyering  <meyering@ascend.com>
68400
68401         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
68402
68403 1999-03-12  Jim Meyering  <meyering@ascend.com>
68404
68405         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
68406
68407 1999-03-07  Jim Meyering  <meyering@ascend.com>
68408
68409         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
68410         declared.
68411
68412 1999-02-17  Jim Meyering  <meyering@ascend.com>
68413
68414         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
68415         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
68416
68417 1999-02-07  Jim Meyering  <meyering@ascend.com>
68418
68419         * m4/group-member.m4: New file -- extracted from sh-utils'
68420         configure.in.
68421
68422         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
68423         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
68424
68425 1999-02-06  Jim Meyering  <meyering@ascend.com>
68426
68427         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
68428         * m4/fnmatch.m4: Likewise.
68429         * m4/getgroups.m4: Likewise.
68430         * m4/lstat.m4: Likewise.
68431         * m4/malloc.m4: Likewise.
68432         * m4/putenv.m4: Likewise.
68433         * m4/realloc.m4: Likewise.
68434         * m4/regex.m4: Likewise.
68435         * m4/stat.m4: Likewise.
68436         * m4/strftime.m4: Likewise.
68437         Suggestion from Alain Magloire.
68438
68439         * m4/chown.m4: Use `.$ac_objext', not `.o'.
68440         * m4/fnmatch.m4: Likewise.
68441         * m4/getgroups.m4: Likewise.
68442         * m4/getline.m4: Likewise.
68443         * m4/lstat.m4: Likewise.
68444         * m4/malloc.m4: Likewise.
68445         * m4/memcmp.m4: Likewise.
68446         * m4/putenv.m4: Likewise.
68447         * m4/realloc.m4: Likewise.
68448         * m4/regex.m4: Likewise.
68449         * m4/stat.m4: Likewise.
68450         * m4/strftime.m4: Likewise.
68451         Suggestion from Alain Magloire.
68452
68453         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
68454         an argument.
68455
68456         * m4/regex.m4: Add a run-time Test for proper operation of
68457         re_compile_pattern.
68458
68459 1999-01-31  Jim Meyering  <meyering@ascend.com>
68460
68461         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
68462
68463 1999-01-30  Jim Meyering  <meyering@ascend.com>
68464
68465         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
68466
68467         * m4/jm-mktime.m4: Make this a wrapper around the official
68468         AM_FUNC_MKTIME rather than my private copy, now that the official one
68469         is up to date.
68470         * m4/mktime.m4: Remove file.
68471
68472         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
68473         * m4/uptime.m4: Likewise.
68474         * m4/uintmax_t.m4: Likewise.
68475
68476 1999-01-28  Jim Meyering  <meyering@ascend.com>
68477
68478         * m4/jm-macros.m4: Use jm_AFS.
68479         * m4/afs.m4: New file (from fileutils' configure.in).
68480
68481         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
68482         * m4/chown.m4: Likewise.
68483         * m4/d-ino.m4: Likewise.
68484         * m4/d-type.m4: Likewise.
68485         * m4/fnmatch.m4: Likewise.
68486         * m4/getgroups.m4: Likewise.
68487         * m4/gettext.m4: Likewise.
68488         * m4/jm-mktime.m4: Likewise.
68489         * m4/jm-winsz2.m4: Likewise.
68490         * m4/lcmessage.m4: Likewise.
68491         * m4/ls-mntd-fs.m4: Likewise.
68492         * m4/malloc.m4: Likewise.
68493         * m4/memcmp.m4: Likewise.
68494         * m4/putenv.m4: Likewise.
68495         * m4/realloc.m4: Likewise.
68496         * m4/st_mtim.m4: Likewise.
68497         * m4/strftime.m4: Likewise.
68498
68499 1999-01-16  Jim Meyering  <meyering@ascend.com>
68500
68501         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
68502         (ARGMATCH_DIE_DECL): Define.
68503
68504 1999-01-12  Jim Meyering  <meyering@ascend.com>
68505
68506         * m4/Makefile.am.in: Rewrite to avoid using fmt.
68507         Reported by Lars Hecking.
68508
68509 1999-01-10  Jim Meyering  <meyering@ascend.com>
68510
68511         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
68512         gross kludge.
68513         * m4/inttypes_h.m4: Likewise.
68514         * m4/lstat.m4: Likewise.
68515         * m4/malloc.m4: Likewise.
68516         * m4/readdir.m4: Likewise.
68517         * m4/realloc.m4: Likewise.
68518         * m4/st_dm_mode.m4: Likewise.
68519         * m4/stat.m4: Likewise.
68520         * m4/utimbuf.m4: Likewise.
68521         * m4/utimes.m4: Likewise.
68522
68523         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
68524         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
68525         comments in config.h.in are meaningful.
68526
68527         * m4/jm-macros.m4: Require autoconf-2.13 here.
68528
68529         * m4/regex.m4: By default, don't use the included regex.c on systems
68530         with glibc 2.  Suggestion from Uli Drepper.
68531
68532 1999-01-02  Jim Meyering  <meyering@ascend.com>
68533
68534         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
68535
68536 1998-12-18  Jim Meyering  <meyering@ascend.com>
68537
68538         * m4/Makefile.am.in (Makefile.am): Simplify rule.
68539         Based on a suggestion from Lars Hecking.
68540
68541 1998-11-16  Paul Eggert  <eggert@twinsun.com>
68542
68543         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
68544
68545 1998-11-16  Jim Meyering  <meyering@ascend.com>
68546
68547         * m4/lfs.m4: Double-quote the `uname...` expression.
68548
68549 1998-11-14  Jim Meyering  <meyering@ascend.com>
68550
68551         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
68552         * m4/stat.m4: Likewise.
68553
68554 1998-11-03  Jim Meyering  <meyering@ascend.com>
68555
68556         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
68557         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
68558
68559 1998-10-18  Jim Meyering  <meyering@ascend.com>
68560
68561         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
68562
68563 1998-10-17  Jim Meyering  <meyering@ascend.com>
68564
68565         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
68566         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
68567         calls for those previously hard-coded headers.  Instead, take a new
68568         parameter.
68569         (jm_CHECK_DECLARATIONS): Reflect interface change.
68570         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
68571         (jm_CHECK_DECL_LOCALTIME_R): New macro.
68572
68573         * m4/mktime.m4: Test for spring-forward gap before long-running test.
68574
68575 1998-10-14  Jim Meyering  <meyering@ascend.com>
68576
68577         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
68578         instead of "TZ=America/Vancouver".  From Paul Eggert.
68579
68580 1998-10-11  Jim Meyering  <meyering@ascend.com>
68581
68582         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
68583         This adds a test for a recently added compatibility fix for mktime.c.
68584         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
68585
68586 1998-09-27  Jim Meyering  <meyering@ascend.com>
68587
68588         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
68589
68590         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
68591         ../configure.in, including a change from Gordon Matzigkeit to allow
68592         cross-compiling for the Hurd.
68593
68594         * m4/glibc.m4: New file/macro to test for the GNU C Library
68595         versions 1 and 2.  From Gordon Matzigkeit.
68596         Indent.
68597
68598 1998-09-21  Jim Meyering  <meyering@ascend.com>
68599
68600         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
68601
68602 1998-08-18  Paul Eggert  <eggert@twinsun.com>
68603
68604         Port nanosecond-resolution times to UnixWare 2.1.2 and
68605         pedantic Solaris 2.6.
68606
68607         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
68608         AC_STRUCT_ST_MTIM.
68609         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
68610         Generate name of ns member, instead of just 1 or undef.
68611         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
68612
68613 1998-08-15  Jim Meyering  <meyering@ascend.com>
68614
68615         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
68616         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
68617         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
68618         instead of jm_TYPE_SSIZE_T.
68619
68620 1998-08-12  Jim Meyering  <meyering@ascend.com>
68621
68622         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
68623
68624 1998-08-02  Jim Meyering  <meyering@ascend.com>
68625
68626         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
68627         in acconfig.h manually.
68628
68629 1998-07-31  Paul Eggert  <eggert@twinsun.com>
68630
68631         * m4/st_mtim.m4: New file.
68632
68633 1998-07-28  Jim Meyering  <meyering@ascend.com>
68634
68635         * m4/utimes.m4: Undef stat.
68636
68637 1998-07-25  Jim Meyering  <meyering@ascend.com>
68638
68639         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
68640         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
68641
68642 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
68643
68644         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
68645         uid and gid actually remain unchanged.
68646
68647 1998-07-07  Jim Meyering  <meyering@ascend.com>
68648
68649         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
68650
68651 1998-07-04  Jim Meyering  <meyering@ascend.com>
68652
68653         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
68654         to prove that this macro can be used in packages without regex.c.
68655
68656 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
68657
68658         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
68659         is to be used.
68660
68661 1998-07-03  Jim Meyering  <meyering@ascend.com>
68662
68663         * m4/gettext.m4: Add -lintl if it's found to be necessary.
68664
68665         * m4/gettext.m4: New file -- from gettext-0.10.35.
68666         * m4/lcmessage.m4: Likewise.
68667         * m4/progtest.m4: Likewise.
68668
68669         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
68670         * m4/jm-macros.m4: Require the new macro.
68671
68672 1998-06-29  Jim Meyering  <meyering@ascend.com>
68673
68674         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
68675         for the definition of NGROUPS (used in a system header included
68676         by sys/mount.h).
68677
68678 1998-06-28  Jim Meyering  <meyering@ascend.com>
68679
68680         * m4/ls-mntd-fs.m4: New file.
68681         * m4/fstypename.m4: New file.
68682
68683         * m4/jm-macros.m4: Require the new macro.
68684         * m4/jm-glibc-io.m4: New file.
68685
68686 1998-05-19  Jim Meyering  <meyering@ascend.com>
68687
68688         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
68689         * m4/lchown.m4: New file.
68690
68691         * m4/Makefile.am.in: New file.
68692         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
68693
68694 1998-05-14  Jim Meyering  <meyering@ascend.com>
68695
68696         * m4/Makefile.am (EXTRA_DIST): Add them.
68697         * m4/jm-macros.m4: New file.
68698         * m4/utimbuf.m4: New file.
68699
68700 1998-05-12  Jim Meyering  <meyering@ascend.com>
68701
68702         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
68703
68704 1998-05-11  Jim Meyering  <meyering@ascend.com>
68705
68706         * m4/isc-posix.m4: New file.
68707
68708 1998-05-10  Jim Meyering  <meyering@ascend.com>
68709
68710         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
68711
68712 1998-05-09  Jim Meyering  <meyering@ascend.com>
68713
68714         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
68715         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
68716         with automake.
68717
68718         * m4/ssize_t.m4: New file.
68719         * m4/mktime.m4: Remove file -- the new automake has this now.
68720
68721 1998-04-26  Jim Meyering  <meyering@ascend.com>
68722
68723         * m4/assert.m4: New file.
68724         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
68725
68726 1998-04-05  Jim Meyering  <meyering@ascend.com>
68727
68728         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
68729         (jm_PREREQ): Use it here.
68730
68731 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
68732
68733         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
68734         in acconfig.h.
68735
68736 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
68737
68738         * m4/prereq.m4: New file.
68739         * m4/error.m4: New file.
68740         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
68741
68742 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
68743
68744         * m4/getline.m4: Don't set am_cv_func_working_getline before the
68745         cache-check for the same variable -- that defeated the purpose of
68746         the test; the test program was never run.  This was a problem only
68747         on systems with losing getline functions -- HP-UX 10.20 is one.
68748         Reported by Bjorn Helgaas.
68749
68750 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
68751
68752         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
68753
68754 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
68755
68756         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
68757
68758         * m4/const.m4: New file.  Use an initializer in this declaration
68759         typedef int charset[2]; const charset x;
68760         Reported by Bob Glickstein.
68761
68762 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
68763
68764         * m4/chown.m4: Fix reversed types on -1 args to chown.
68765         From Kaveh Ghazi.
68766
68767 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
68768
68769         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
68770         Add lseek and memchr.
68771
68772         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
68773         T.E.Dickey <dickey@clark.net> said that some older preprocessors
68774         have a 20-character limit on names.
68775
68776 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
68777
68778         * m4/inttypes_h.m4: New file.
68779         * m4/uintmax_t.m4: New file.
68780         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
68781
68782
68783         -----
68784
68785         Local Variables:
68786         coding: utf-8
68787         End:
68788
68789         Copyright (C) 1997-2010 Free Software Foundation, Inc.
68790
68791         Copying and distribution of this file, with or without
68792         modification, are permitted provided the copyright notice
68793         and this notice are preserved.